I am working on a game similar to Gravity Guy and I want to do the following: When the guy dies I want the level to restart.
To do that I tried:
but that didn't work, gave me an error: "cannot find symbol - class getWorld"
so I tried:
but that gave me the same error.
How can I do it?
Greenfoot.setWorld(new getWorld());
World w = getWorld(); Greenfoot.setWorld(new w());