Anyone who got an idea on how to do this?
I shared my game here; http://www.greenfoot.org/scenarios/10980
public void nextLevel2() { if (getWorld().getObjects(Diamond.class).isEmpty() && canSee(Keyhole.class)) { Mollenworld2 mw2 = new Mollenworld2(); Counter mw1counter = (Counter)getWorld().getObjects(Counter.class).get(0); Counter mw2counter = (Counter)mw2.getObjects(Counter.class).get(0); mw2counter.setValue(mw1counter.getValue()); Greenfoot.setWorld(mw2); } }