Detect when all actors have stopped moving
How do I determine when all actors in a scene have stopped moving?
Best Answers
-
JohnPapiomitis Posts: 6,256
Made you a demo
http://www.mediafire.com/?j0cfhfbue1ma09v
touch the actors to toggle them between moving and not moving
cheers -
tatiang Posts: 11,949
Alright, try this version: http://dl.dropbox.com/u/19602014/AllActorsStopped v0.2.zipNew to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
So if self.motion.linear.x or self.motion.linear.y are > 0 add 1 otherwise subtract 1.
I can't get this to do exactly what I'm attempting. The attribute ends up 0 if all actors are moving and -3 if all 3 have stopped. Any ideas?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
But sometimes my actors start stationary and then move. In this case, my moving actors game attribute goes to negative number while they are stopped.