Help With "Overworld Encounters"

I can't seem to figure out how to do this in an elegant way.

  • I've got a game world with the player and enemies running around in it.

  • I want the player to run into these enemies and be taken into the battle system. (Think Persona 4 or a dozen other RPGs)

  • I'm able to get the two to collide and then change the scene to the battle screen, but when the battle is over and I change back to the "overworld", the entire scene is reset and the everything is back where it started. Is there a simple function to save the scene exactly the way it is, go to another scene, then load the first scene again exactly how it was?

I hope it's not something as involved as saving out the existence of each and every enemy as a variable check and having to save/load the player's position each time.

Comments

Sign In or Register to comment.