10 years ago by stahlmanDesign
I have a game timer that starts at 0 and counts up.
When I save my game, I save the ig.game.gameTimer.delta(); // 7.8 seconds
But when I reload the game, I cannot set the timer to where it was when saved, because it is always negative
Example:
I tried setting it to a negative number but this doesn't seem to work
When I save my game, I save the ig.game.gameTimer.delta(); // 7.8 seconds
But when I reload the game, I cannot set the timer to where it was when saved, because it is always negative
Example:
ig.game.gameTimer.set(savedTime); // saved time = 7.8 but timer now starts counting up from -7.8
I tried setting it to a negative number but this doesn't seem to work