I'm making a fake Pokemon and I'm stuck with something. My character can get into the pokecenter and out fo the center. But if you get out of it, you spawn back at the beginning. I want it to be spawned at the front door of the center. Can you help me?
I'm using an actor to place it back in the gameworld. Here is the code.
public void act()
{
if (isTouching(Ash.class))
{
Greenfoot.setWorld(new MyWorld());
}
}

