timers
Gnarly
canadaMember Posts: 840
I have an actor with timers....
Spawn at 3.4 seconds, 5.2 seconds, 6.8 seconds...
Works perfectly on initial play. Game over is a different scene. Play again button press changes scene back to the game scene.
But the replays the timers are off. Unfortunatly a small change wrecks everything.
I can fix this with a "reset game" and timers work every time then but my high score is then returned to zero.
Not sure why game reset and change scene should be different?
thanks
Comments
Hey Dwayne,
Oddly, I cannot recreate this. Is run to completion checked on your timers? Also, if you save the high score in the game over screen and load it in the gameplay scene then it should not return to 0.
These timers could be 'after' or 'every' timers, they could be set up in dozens of different ways with hundreds of different conditions, 'the timers are off' could means just about anything, 'a small change' could mean just about anything, ' wrecks everything' could mean just about anything . . . .
@Socks you need to work on your mind reading abilities again
Im a timer junkie. You hate me already. Timers are correct. What Im talking about is timing is off by .2 of a second on the replay than the game start. I thought there might be some logic difference from game reset than change scene. I can't think of why? I see it in the creator and adhoc.
thanks
Dwayne
Yeah game start works fine. But replay its really noticeable on the 5th spawn its spawns .2 early and game is impossible to survive............
I have a work around. I just restart game every time.
All good.
Thanks
...
@gattoman just add a save and load high score behavior and even if game resets it should show the high score I believe.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing