how do i stop the timer (score) when my actor hits the ground? then add the score to highscore?
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.
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.