Custom Timer Queries (Hours:Minute;Secs Format)
I set up a timer on my game and right now im having trouble working out the formula for it. I set up my time record like this.
123 : 59 : 59
On Seconds i use this;
"timer_"..floor( game.TotalGameTime %10)..".png"
"timer_"..floor(( game.TotalGameTime %60)/10)..".png"
On minutes;
"timer_"..floor((floor( game.TotalGameTime %3600)/60)%10)..".png"
"timer_"..floor((floor( game.TotalGameTime %3600)/60)/10)..".png"
Edit: Figured out already its;
"timer_"..(floor( game.TotalGameTime /3600)%10)..".png"
for the first digit. Sometimes you really need to move away from GS to figure out something. Anyways Any Sous can delete this one already. Thanks.
-Drahc
123 : 59 : 59
On Seconds i use this;
"timer_"..floor( game.TotalGameTime %10)..".png"
"timer_"..floor(( game.TotalGameTime %60)/10)..".png"
On minutes;
"timer_"..floor((floor( game.TotalGameTime %3600)/60)%10)..".png"
"timer_"..floor((floor( game.TotalGameTime %3600)/60)/10)..".png"
Edit: Figured out already its;
"timer_"..(floor( game.TotalGameTime /3600)%10)..".png"
for the first digit. Sometimes you really need to move away from GS to figure out something. Anyways Any Sous can delete this one already. Thanks.
-Drahc