Coding the Game State Screen

i have done the excercise on coding the Game State from MainMenu to Password.
It works for me in that way that the current Screen is set to Main Menu on starting the game and changes to Password when entering 1,2 or 3. But once I have typed one of the above numbers it does not go back to Main Menu even though I reset to the main menue by typing: menu

Before I looked at your solution I tried myself and came up with the following (see ref picute). It always resets to or remains at main menu but I guess its a bit clumsy. And the level is not reset to 0

I would be happy to hear your feedback.



Privacy & Terms