is there anyway that i can go to the next level if my score reaches so much and carry that score through to the next level?
public void act()
{
if(myScore>=scoreNeeded) {
gotoNextLevel();
}
doStuff();
}public void nextLevel()
{
if((Counter) >= 100)
{
Greenfoot.setWorld(new Space2());
}
} public void nextLevel()
{
if((Counter) >= 100)
{
Greenfoot.setWorld(new Space1());
}