As the title says, I'm trying to spawn the player in different spots. What I mean by this is that the player starts out at the beginning of the level normally, but in my game, there are secret areas. Once they leave the secret area, I would like them to spawn near the end of the level instead of at the beginning. Think Mario and the pipelines.
But so far, I'm completely baffled on how to do this. Because spawning the character at the beginning of the level is done by placing the sprite there, but I can't think of any way to change that specifically for when the player leaves the secret area that actually works.
Any idea on how to do this?