In game that I'm working on, I'm having trouble getting the enter key to work after the player triggers a game over.
When the player starts the game they first see the title screen. Upon pressing enter the player is taken to the game screen. Here, they would then press enter one last time to start the game. After getting a game over, the player is taken to the game over screen where they are prompted to press enter to return to the title screen. should the player decide to play the game again they would follow the prompts like the first time and be taken to the game screen. This time around however, the game is not recognizing any inputs from the player.
Here are some methods I've tried to combat the problem:
- forcibly re-initiate the keyboard plugin when the game starts over.
- change where the start game call is initiated by essentially creating a boolean statement (isRunning).
- abstract the behaviors to functions and place calls in different areas to try and identify where the problem is happening.
I've attached some executable files for context and the .capx file for anyone who wishes to view the code associated with the problem.
Many thanks in advance!