Hi all, I need you help! Thanks
The game like this:
When i touch screen, many sprites start moving (in some way) and going to stop in seconds but they not stop the same time,
When all stop user can touch again and sprite will start again.
I code this:
WHEN_SPRITE_SPEED = 0 AND TOUCH_ANY_WHERE -> SPRITE >>START_MOVING
and the Problem is: when one of sprites is stop, some other is still moving: SPRITE >>START_MOVING is still happen.
how can i do like: Just when all the sprites is stop: SPRITE >>START_MOVING happen?
Many Thanks !
Develop games in your browser. Powerful, performant & highly capable.
You can do a For Each loop that checks if object speed = 0, then increments a counter. If counter == object.count, then you know all objects are at speed zero.
I have a easy way to to that by using "else"
SPRITE_SPEED > 0 => DO_NO_THING
else => when_all_stop = 1