How make timer with decimal?

1UpGamestudio1UpGamestudio Member Posts: 213
edited November -1 in Working with GS (Mac)
I'm trying to create a timer with decimals:
example 00:00:00 (minutes: seconds: tenths)
how can I do?

Comments

  • PhoticsPhotics Member Posts: 4,172
    Use Modulo
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    wath is it modulo?
  • PhoticsPhotics Member Posts: 4,172
    It's explained in the Math section of The Unofficial GameSalad Textbook. Basically, it returns the remainder.

    Is this what you're looking for...
    floor(( game.Time /60))..":"..floor( game.Time %60)..":"..floor( game.Time *10)%10
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    I have buy the unofficial gamesalad textbook on iphone. Could you send a copy to be printed because it is inconvenient to read it on iphone.
    thanks
  • PhoticsPhotics Member Posts: 4,172
    1UpGamestudio said:
    I have buy the unofficial gamesalad textbook on iphone. Could you send a copy to be printed because it is inconvenient to read it on iphone.

    I think it's actually pretty useful to have the book on the iPhone. It's like a second monitor. The printed version of the book may return after GameSalad leaves beta. But right now, the software changes too frequently. A book published today could be rendered obsolete with the next update.

    I use the app version. I don't even have a printed copy of the book. HA HA :)
  • PhoticsPhotics Member Posts: 4,172
    The problem with the video is that it's really hard to read the formula. I looked at it quickly, looks like a good formula because it seems to have fixed digit spacing.
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    thanks
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    I have used this: http://www.youtube.com/user/GameSaladCookbook#p/u/29/zDWJ9oarQUo
    but when i put game in pause the timer don't stop!!!
Sign In or Register to comment.