Can anyone tell me how to swap scenes like in an RPG when a battle take place, and reload the previous screen in the same location?
Basically, how do I reload a previous level in the same position as before after swapping to the battle scene?
asked Dec 17 '10 at 02:41 PM
You need to keep track of the game state and restore the game objects when returning to the previous scene (referring to scene as level). This can become complicated depending the scope of your game. As far as I know, Unity has no way to automatically store the state of a level so it becomes easily reloaded at a later point in time.
You'll have to either
Another approach would be to have a different place within your scene where battle takes place. Briefly disable the characters in the "main world" while you're in the battle. This might be easier for you to implement. In the end you'll have to make the decision which would fit your game best.
answered Dec 17 '10 at 04:59 PM