timers

GnarlyGnarly 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

  • zweg25zweg25 Member Posts: 738

    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.

  • SocksSocks London, UK.Member Posts: 12,822

    @gattoman said:
    I have an actor with timers....

    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 . . . .

  • JSprojectJSproject Member Posts: 730

    @Socks you need to work on your mind reading abilities again

  • GnarlyGnarly canadaMember Posts: 840

    @Socks said:

    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

  • GnarlyGnarly canadaMember Posts: 840

    @zweg25 said:
    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.

    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

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2015

    ...

  • Thunder_ChildThunder_Child Member Posts: 2,343

    @gattoman just add a save and load high score behavior and even if game resets it should show the high score I believe.

Sign In or Register to comment.