So what I am trying to achieve is using a variable to do something.
For example:
If I want the setWorld to go to lvl7, and I have a variable that counts what level your on, how can I make this happen.
//So I will start by declaring a variable that has the number 7 attached to it
lvlNum = 7;
//Now I will declare an if statement:
if (EXAMPLE = true)
{
Greenfoot.setWorld(new lvl...
}
//WHAT DO I DO ?

