So I am creating an app and simplified it has two time-based expressions:
Every 2.5 seconds -> Create object "obstacle"
Every 9.9 seconds -> Create object "changing players color"
So basically it creates 3 obstacles and then 1 sprite which changes the color of my player.
It works great and I don't have any issues with it, but when game over, a menu pops up with the option to replay. When it does that it changes everything to their initial state, except for the time the game is running, so then the spawning becomes irregular and wrong.
Someone with a sollution? Thanks in advance