I have tried to switch worlds using the following instruction:
but when I do the same thing to a world which is a subclass of a created world, it does not happen anything.
Can you help me?
import greenfoot.*;
public class Previous extends Actor
{
public void act()
{
if (Greenfoot.mouseClicked(this) == true)
Greenfoot.setWorld(new MyWorld());
}
}

