Im trying to switch from SpaceWorld to ShopWorld.
I've read that having a menu in another world would essentially pause the original world, but this is not the case for me.
I am switching worlds like this:
I think it generates a new world instad of returning to the old world. How can i change this?
I've tried it without the "new" and without the "()" but that did not work.
Greenfoot.setWorld(new ShopWorld()); //go to ShopWorld
Greenfoot.setWorld(new SpaceWorld()); //go back to original world