Hi,
I would like to make a minigame in the middle of one of the levels. I am thinking of implementing the minigame as a separate world class (this seems the most convenient way). After the minigame is completed the player should be returned to exactly the same level and spot where he was when the minigame started; the enemies or other game items should be exactly the same. When I try a simply:
FP.world = level1
where level1 is an instance of the Level world, it reloads everything in the starting state; i.e. all enemies are alive, etc.
Is there an easy way to remember the state of the level and come back to it when you switch the worlds? Thank in advance for suggestions (and saving my time)