I am programing a game with several levels. And if the next level is reached, the world should be the same as at the beginning of level 1. But the variables should not be changed.
Can someone help me?
Thanks a lot


public void started() { if (!hasStarted) { // reset all 'static' variables} } } // first statement in world act method hasStarted = true;