hey guys, I'm trying to implement a custom pause menu and the game is an infinite scroller.
thing is, there are waves of random objects that are being created and timers (tried both counters or clock object) to wait for the next wave or something. now, when I save, I close the entire game "engine" group, and upon unpausing, reopen the engine group.
everything is good, except the timers I made to 'wait' for the next wave, gets reset every time the game unpauses.
example - there's a random wave generator, and it has a condition like "if the random generator is XXX, set the timer/counter to XXX (seconds)".
when pausing, the counter/timer pauses alright (either setting the timer to pause or checking every second to subtract 1 from counter -- since the group is closed, it won't sub anything from the counter).
now when the group is reopened, I understand this line will be read again, even if the counter/timer was already running before pausing, causing it to reset every time I unpause.
I was looking for something like "if the random generator is XXX, set the timer/counter to XXX (seconds) but only if the game wasn't 'unpaused' amidst this"
I hope I was somewhat clear lol...
what would be the best way to overcome this?? thanks!