public void NextLevel2()
{
if (score == 20){
Greenfoot.setWorld(new L3());
//This code changes the back ground to level 3 when 20 points are scored
}
}
There is no need for a return in this method. In fact, I believe that any problem you may have been experiencing is probably resolved by the changes I gave in another discussion thread.
okay Thankyou i was not sure if it was the fact i kept calling the method and that is why it could never get past level2
Thank you very much to the people who helped