GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Possible timer as a highscore?

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

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member

    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.

  • rozsa.jatekfejlesztesrozsa.jatekfejlesztes Posts: 45Member, PRO

    Thanks for the fast reply! It works great. :)

Sign In or Register to comment.