How do I make a Timer countdown of 5 minutes where I can pause the game so the time aswell. And the time starts when in the menu i click on start.
I usually have a variable that I add or subtract Delta Time from.
You might find this helpful:
https://www.scirra.com/tutorials/450/timers
https://www.scirra.com/manual/133/common-expressions
https://www.scirra.com/tutorials/67/del ... dependence
I made a simple capx that needs some fixing, i couldn't fix it
[attachment=0:1e1ozc8i][/attachment:1e1ozc8i]
Develop games in your browser. Powerful, performant & highly capable.
Thank you JJEVil fow answer and thanks wisdoms for the .capx it was very hepfull; but I have a problem. How can I change the level (so the layout) having an independent countdown (everytime I change of level/layout the countdown starts again from 5 minutes; I want that you have to pass the game before the five minutes; all the game, not for each level 5 minutes. Can you help me again wisdoms or anyone else with another capx file please?
thanks
Put the Timer behaviour on a global object, and it will span layouts.
thank you so much blackhornet!!