Possible timer as a highscore?
rozsa.jatekfejlesztes
Member, PRO Posts: 45
Hi
I creating my first game and only what i need is a timer as high score.
How can i do that?
Its a kind of runner game. i would like if my actor reach the finish the timer stop and can be share it on different platforms (and its save and load later.)
I new here so please write the solution step by step.
Comments
A timer is simple
Make a game level attribute integer type and call it time. if you have an attribute that tells when the game is started use it in a rule.
Rule
When attribute game.started is true
Timer
Every 1 second (uncheck run to completion)
Change attribute game.time to game.time+1
When your player crosses the place where the game stops change game.start to false this will stop the timer. Use a save behavior to save the game.time attribute when game.start is false. Make sure you add the load behavior to reload the saved value in you start screen.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thanks for the fast reply! It works great.