How to Stop Game.MyTimer when the action is done ?
Hey,
How can I stop game.MyTimer when the action is done .. It's counting down timer.
When actor is dead how can I freeze the timer ?
Any help ?
Thanks
Best Answer
-
tatiang Posts: 11,949
game.Time only stops when an app has been quit. If you constrain another attribute to game.Time, there is no way to stop it from increasing or decreasing. There are two things you could do: (1) change another attribute to game.myTimer when the actor is dead and then display that attribute instead of game.myTimer or (2) Use a timer set to every 0.1 seconds change attribute game.myTimer to game.myTimer - 0.1 and set game.myTimer initially to 33 (or whatever start value). Then you wouldn't constrain game.myTimer at all.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
How are you doing the count down?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
https://www.dropbox.com/s/8bopye0zte9m2tc/Timer_Rules.jpg
@tatiang