I'm making a 2d sidescroller game that requires a player to move from one layout to the other, and occasionally back to the previous layout after hitting a trigger. For example. Player starts in Layout 1-3-1, and moves into layout 1-3-1a, activates a painting which opens up a hidden wall in 1-3-2.
How do I make it so the player exits 1-3-1a and spawns in the same point that he entered 1-3-1a, instead of at the initial spawn on 1-3-1?