I'm playing a game with this mechanic: At the beginning of Layout, I run a LOOP and create 150 obstacles from an XML. As the player walks through the phase the objects left behind will be destroyed. When the player dies, the game restarts. My question is as follows: Is there any way I can restart the layout without having to run LOOP again so that the game starts again faster.
Develop games in your browser. Powerful, performant & highly capable.
How's about set the player back to the starting point instead restarting the game?
I can't. Because I destroy the objects after the player passes them