I am currently writing a replay-feature for my game. Therefore I save the seed and all the player inputs. This works fine in the first level and I get a nice replay to watch.
However there is a problem in level 2. I get the same level layout and all starting positions also match. But by whatever reason it seems that some monsters do their turn a little later in the replay compared to the original game. It seems like the speed scheduler still remembers some events from the previous level.
Is there a way to reset the speed-scheduler to its initial state (as if it was newly created)?
I am currently writing a replay-feature for my game. Therefore I save the seed and all the player inputs. This works fine in the first level and I get a nice replay to watch.
However there is a problem in level 2. I get the same level layout and all starting positions also match. But by whatever reason it seems that some monsters do their turn a little later in the replay compared to the original game. It seems like the speed scheduler still remembers some events from the previous level.
Is there a way to reset the speed-scheduler to its initial state (as if it was newly created)?