math timer display issue

SingleSparqSingleSparq Member Posts: 1,339
edited November -1 in Working with GS (Mac)
Having a strange problem. I have a countdown attribute "timer". I have 2 buttons to set the time either minus 200 or plus 200 to the main timer - so if the timer is set to 500 and I choose a button it ether adds or subtracts 200 to the timer (game.timer.... game.timer+200 would equal 700).

Now if I set the text to display the game.timer it shows properly but if I use this equation to show it in a clock style timer (00:00) it does not like anything added.

If I say game.timer+50 (and the game timer is set to 600) it starts the clock at 50 instead of 650

Here is the display expression

floor(floor(( game.Timer /3600)/60)/10)..floor((floor( game.Timer %3600)/60)%10)..":"..floor(( game.Timer %60)/10)..floor( game.Timer %10)

- any suggests?

Comments

Sign In or Register to comment.