Im doing a thing where the play touches the house and the world will change to a smaller size and background. The problem is i don't know how to add the player into the new world. This is what i have:
public void act()
{
Actor player;
player = getOneObjectAtOffset(0, 0, Player.class);
if (player != null)
{
Greenfoot.setWorld(new inside());
getWorld().addObject(player, 200, 50);
}

