Better Timer? Mine tells Lies!!
Marc_n_Soph
Member Posts: 111
Hi all.
I have a timer
when game.timer = 1
Timer
Every 0.05 seconds
change attrib game.timer game.time+0.05
This counts up the last digit in 5's.
My "Level complete" times are displayed always ending in a 5 or 0
eg
27.75 37.30 52.15 etc.
However, when I save this attrib and display it on "Your TIme" screen, it is sometimes (more often than not) 0.05 seconds less then the time on the displayed timer when the player crossed the finish line. So, if they finish in say, 34.45, the next screen (your time) displays 34.40. Dont know why!?!?!?!
By the way, I have it couting up on 5's as I just cant seem the get the last digit counting up in anything else!! Ideally, it would count up in 1's. So the display would read 36.29 for example.
I tried changing the game.timer+0.05 to game.timer 0.01 but it just slowed the timer right down... I know im probably doin somethin stupid, any help on this would be greatly appreciated!!!
Thanks for readin!!
Marc n Soph
I have a timer
when game.timer = 1
Timer
Every 0.05 seconds
change attrib game.timer game.time+0.05
This counts up the last digit in 5's.
My "Level complete" times are displayed always ending in a 5 or 0
eg
27.75 37.30 52.15 etc.
However, when I save this attrib and display it on "Your TIme" screen, it is sometimes (more often than not) 0.05 seconds less then the time on the displayed timer when the player crossed the finish line. So, if they finish in say, 34.45, the next screen (your time) displays 34.40. Dont know why!?!?!?!
By the way, I have it couting up on 5's as I just cant seem the get the last digit counting up in anything else!! Ideally, it would count up in 1's. So the display would read 36.29 for example.
I tried changing the game.timer+0.05 to game.timer 0.01 but it just slowed the timer right down... I know im probably doin somethin stupid, any help on this would be greatly appreciated!!!
Thanks for readin!!
Marc n Soph
Comments
My "Level complete" times are displayed always ending in a 5 or 0
eg
27.75 37.30 52.15 etc.
27.75. impossible. Im sorry, Its late and Mr Smirnoff has the better of me. Doh.
Marc