I'm creating a FNAF minigame where the player (PurpleGuy/purple) has to find his Springtrap suit (IdleSpring/spring). The suit is in a different world than the player initially. Once PurpleGuy makes his way to the room and changes to the suit, it does not carry over into the other worlds; however, I change the worlds whenever the purple guy is in a certain X or Y location in them: for instance above, where in my world "Turn" (it's just a corner) if he's at the top he goes into the suit up room, or if he's on the right he goes to the fan room.
How would I go about "carrying" PurpleGuy's information over between worlds.
Sorry if this is confusing how I word it.
Also shoutout to danpost for helping me on my last two (the only one's I've made) posts!
public void act() { if(purple.getX() > 983) { Greenfoot.setWorld(fan); } else if(purple.getY() < 40) { Greenfoot.setWorld(suit); } }