I'm pretty new to Greenfoot, just started about a couple weeks ago. So I've been working on a sidescroller game and I've run into something I'm not sure about. When the player goes past a certain x coordinate, the world will change to the next room. I want to make it so when the player goes below 0 on the x coordinate, the world will change to the previous room. However, when I do so, a new world is created and the player is created on the left side of the screen instead of the right side of the screen. How can I make it so the player starts on the left side of the screen when I go backwards to a previous room?

