I've made a maze game with two different levels, but I don't know how to go from one level to the next. The two levels are in subclasses from the World. They are supposed to change when the actor reaches the edge. How do I code it?
if(isTouching(something.class))
{
World1 lvl1 = new World1();
Greenfoot.setWorld(lvl1);
}