how to stop timer when actor hits ground?
EclipseGamers
Member, PRO Posts: 91
how do i stop the timer (score) when my actor hits the ground? then add the score to highscore?
Comments
use boolean attribute like "hit ground" and set it to false by default. When actor hits ground, change it to true.
When hit ground is false, run your timer. Then your timer won't be running when it is true.
To add to high score, when hit ground is true, and if score > high score then change high score to score Otherwise high score = high score.
My Gamesalad Games On App Store:
Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1