Returning to the menu after selecting an option

Hi,

I noticed that once you choose an option and currentScreen is changed to Screen.Password, if you then type ‘menu’, it returns to the menu, as designed, but currentScreen stays the same.

This may be addressed further down the course, but I fixed it by adding “currentScreen = Screen.MainMenu;” to the ShowMainMenu() function.

EDIT: Oh, ok it was fixed a couple of lectures later…

1 Like

Hi,

I noticed that as well. One more thing that happened with me was that the level remained 1 even after we are in the main menu screen. Therefore, we need to update the level variable to 0. In the OnUserInput function.

1 Like

Privacy & Terms