Reinitializing of currentScreen when 'menu' command entered

I noted when I played the game and entered the password menu that when I entered the code ‘menu’ it would return to the main menu but in the debugger currentScreen was still set to Password. I added this line to change the currentScreen back to MainMenu if ‘menu’ is typed in. Didn’t know if that is what is desired, but it seems that if you want the menu to display properly the currentScreen should be showing that, maybe?

Never mind, just had to go to the next video to see the issue being solved!

I did this too buddy :slight_smile: just came here to comment on it but good to know it will be covered in the next lecture.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms