I'm making a game where the player can travel between the layers at will, even back to layers they've already visited in the past. Each level has a layout. As such, everything that the player can interact with has "persist" to ensure that the object keeps its state when the player returns.
I want the player to be able to restart the game. I've scoured the forums on how to do this and I've tried all the methods I've found, including resetting global variables, restarting the layout and going back to the same layout.
None of this works!!
Objects that were destroyed stay destroyed. Objects that had their animation frame changed don't go back to their starting animation frame.
Surely there MUST be a way to restart the entire game!! I can't believe that there wouldn't be. Can anybody please tell me what the most reliable method of resetting EVERY object in the game back to its starting state?