Hi!
trying to write simple bouncing ball script here...
can't get it work..

1st frame

Set Variable: "minloch" = 0
Set Variable: "maxloch" = 300
Set Variable: "minlocv" = 0
Set Variable: "maxlocv" = 70
Set Variable: "mypointh" = random(5)+1
Set Variable: "mypointv" = random(5)+1

2nd frame

Set Property ("/mytarget", X Position) = "GetProperty (/mytarget, _x )+mypointh"
// same for vloc
Go to Next Frame
Play

4th frame

If (GetProperty (mytarget, _x ) >= maxloch or GetProperty ( mytarget, _x ) <= minloch)
Set Variable: "mypointh" = -mypointh
Set Variable: "mypointv" = -mypointv
End If
Go to and Play (2)


what i am doing wrong..??
Thank you
Ilia