Hey guys!
Iam new to programming and i want to create a little Mario game.
So basically i have a Startscreen named "Start_Screen" with a little Cursor blinking.
Now i want the player to press "enter" to load the first Level.
The 1st Level is another World.
So i tried this:
But if iam going to run it by this way there will be no reaction to my enter press.
The world doesnt switch!
This Code was inserted on the code to the Start_Screen.
Is this a mistake?
I searched for an error a long time but i couldnt find one.
Help me please :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if (Greenfoot.isKeyDown( "enter" )) { startLvL1(); } public void startLvL1 () { Greenfoot.setWorld( new LvL_1()); } |