Running time?

Hey!

I want to have a simple timer kind of display on the top right of my screen to show how long the user is playing so far, something like:

Minutes:Seconds

(eg: MM:SS - no need for hours as the clock will not be incremented when the game is not in play and its not possible for anyone to play for more than 30 mins as the game gets too fast for a human)

is there some kind of "digital clock" functionality?

I had a look at game.time but that has a whole bunch of decimal places and it keeps jumping around :(

Any ideas?

Thanks!

Comments

  • zweg25zweg25 Member Posts: 738

    I would suggest looking for a better way than this, because you cannot really do anything with this, but I had two minutes before I went to sleep so I made it. If you can not find a better way, (which you can), then I will make a better demo tomorrow. But in the mean time her you go.

    Display text: padInt(game.time/60,2)..":"..padInt(game.Time%60,2)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    The OSTime Demo at http://gamesalad.com/manuals is a good place to start.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ryastryast Member Posts: 145

    Thanks! Will check it out! :)

Sign In or Register to comment.