Stopwatch! Can't find this anywhere
amigoni
Member Posts: 78
I looked everywhere and I feel a little dumb asking but How do I make a stopwatch?
I am trying to use the time variables but they don't seem to reset to 0 when I asked them to. Neither the game or the prototype variable.
I am trying to have a character start a timer when he collides with and object and stop the timer when he collides with another while displaying the time all along.
Please help.
Thanks
I am trying to use the time variables but they don't seem to reset to 0 when I asked them to. Neither the game or the prototype variable.
I am trying to have a character start a timer when he collides with and object and stop the timer when he collides with another while displaying the time all along.
Please help.
Thanks
Comments
Change: game.myTimeOffset to game.time
Constrain: game.myRunningTime to `game.time - game.myTimeOffset`
Just repeat step #1 anytime you need your running time reset to '0'...