First of all, sorry for my english...
I'm making an asteroids style game. The problem is: asteroids spawn.
I configured them to spawn:
every x seconds: random(4,10);
the problem is that "every x seconds" is occurring every moment.
so, when you click on the menu screen and go to the gameplay, may already be starting to spawn asteroids, since "every x seconds" was passing on the menu too.
Any tips on how to reset the 'time' when start a layout?