I need some help with changing levels using either an if statement or something else.Thanks in advanced to anyone who can help.
if (counter.getValue()==80){ Greenfoot.setWorld(new Level2()); } if (counter.getValue()==150 { Greenfoot.setWorld(new Level3()); }