"Restart layout" seems pretty obvious but when I start the command in game, the game doesn't reset as if it was the first time it started. What can screw this up? Shouldn't everything reset, including globals/locals and the position of the sprites? It's kind of screwing everything up.
If you use the same layout for levels, then you need to set your globals and Restart, which then makes any alterations based on your settings.
Develop games in your browser. Powerful, performant & highly capable.
Each level has it's own layout and event sheet. blackhornet
My example was just that - an example of why you wouldn't want that behaviour.
I am facing same problem as restarting layout wasn't able to reset the game .............
Our game is just a top down racing game but somehow after restarting the layout using "Restart Layout" isn't working as it should .............
So what is the solution for that ???
You can try resetting globals, or alternatively, Browser.Reload. One of those should work.
Close the game in the browser 1st , then restart layout.
Do any of your objects have the "persist" behavior? If so, add "system -> reset persisted objects" to your event that restarts the layout.