Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello! Is there a way to a put a timer in my game? Lets say the goal of the player is to collect some objects but in a certain period of time. If time passes then the game will stop. |
||||
|
Yes that is possible... You can use javascript for that or can set every few seconds do someyhing and then.. On every 1000 ms set a variable.. Variable name = seconds Add Value = 1 And then execute if a variable has a value.. Seconds Value more than 10 Then do something. Execute your action.. And to draw time on screen you can usr every few seconds do something.. Every 100 ms Change 2d overlay text.. Select a 2d overlay... And change it text to $seconds$ Thats all... Hope you understand.. |
||||
|
Perfect!!!!! Thank you very much!!!! |
|