Hello to everybody. I'm new in Greenfoot programming (and java ) and I would like to ask you how can I restore the world when the hero loses and start from the beginning?
Hello to everybody. I'm new in Greenfoot programming (and java ) and I would like to ask you how can I restore the world when the hero loses and start from the beginning?
The line of code:
Greenfoot.setWorld(new MyWorld());
where, MyWorld is the name of your World subclass should do the trick.