Y Velocity Problem - Detect when actor has stopped moving...

Hurricane09Hurricane09 Member Posts: 40
edited November -1 in Working with GS (Mac)
Hi Guys,

I have an actor that you swipe to launch and I want to detect where it stops moving. After its swiped I set a variable to identify it as launched, and then within the actor my rule is

If launched = yes then
if
self.velocity.x <3 and
self.velocity.x > -3 and
self.velocity.y < 3 and
self.velocity.y > -3
then
'do what we have to do when the actor is stopped.

This works perfect on my Mac, but doesnt work at all on my iPod. Any suggestions?

Thansks,
Hurricane09
Sign In or Register to comment.