IsVarious wrote...
So I loaded your first, "removeObjects(getObjects(Pieces.class)); "choice into a method inside the board class, and then called that method from one of the buttons. Where Pieces is the superclass of the other buttons/menu items being added to the world.
here's the error I received.
java.lang.NullPointerException
at sbp.CleanUpStartMenu(sbp.java:39)
at sbp.CleanUpStartMenu(sbp.java:44)
at sbp.act(sbp.java:29)
at greenfoot.core.Simulation.actActor(Simulation.java:507)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:470)
at greenfoot.core.Simulation.runContent(Simulation.java:204)
at greenfoot.core.Simulation.run(Simulation.java:194)
