hours using game.time???
i don't want the clock hour
whats the function for hours using game time
floor( something something something)
whats the function for hours using game time
floor( something something something)
Comments
Floor rounds down, and ceil rounds up.
Example:
floor(0.004) = 0
ceil(0.004) = 1
Yeah the wiki reference page is gone. But someone was so kind enough to post this, so we can still get to it!
http://web.archive.org/web/20101201052929/http://gamesalad.com/wiki/
awesome thanks bro!
"Floor rounds down, and ceil rounds up."
Thanks for that John ! It's seemingly impossible to find information on even half of Gamesalad's functionality, without a shadow of a doubt it is the least documented piece of software I have ever come across (by a long margin), and I have used Photoshop 2!
"so any help with how to get milliseconds to hours?"
1 hour = 3,600,000 milliseconds.
No problem guys. And yeah even with the cookbook, i dont think there was any reason to take the wiki down. Theres some really useful stuff and explantions in there, bookmark the link i posted!
@ morphinegaming
I have it written down somewhere, let me get it
So to say display it all in a display text it would be:
floor( game.time /3600)..":"..floor(floor(( game.time %3600)/60)/10)..floor((floor( game.time %3600)/60)%10)..":"..floor(( game.time %60)/10).. game.time %10