Game Maker Studio Help! 01-05-2017, 11:35 PM
#1
So this is an issue i have been experiencing and would like people with knowledge in game maker to help.
The issue is that on my main menu i can click enter to choose an option. So in this instance it is 'New Game', so once i click 'New Game', the game will ask if i want to overwrite the current saved game and will allow me to choose yes or no. The yes or no options are also selected with clicking enter. However, if i click enter on the main menu for to choose 'New Game', the key press of enter somehow carries onto the second menu, therefore, automatically choosing 'Yes' as this is the first option. The second menu is an overlay style menu where it is drawn over the main menu (see figure 1). I have used an if statement "if (keyboard_check_pressed(vk_enter))" to check when the enter key is pressed and i have done this for both the menus.
Thanks in advance!
![[Image: 9jC4mHx.png]](http://i.imgur.com/9jC4mHx.png)
The issue is that on my main menu i can click enter to choose an option. So in this instance it is 'New Game', so once i click 'New Game', the game will ask if i want to overwrite the current saved game and will allow me to choose yes or no. The yes or no options are also selected with clicking enter. However, if i click enter on the main menu for to choose 'New Game', the key press of enter somehow carries onto the second menu, therefore, automatically choosing 'Yes' as this is the first option. The second menu is an overlay style menu where it is drawn over the main menu (see figure 1). I have used an if statement "if (keyboard_check_pressed(vk_enter))" to check when the enter key is pressed and i have done this for both the menus.
Thanks in advance!
Spoiler: Figure 1
![[Image: 9jC4mHx.png]](http://i.imgur.com/9jC4mHx.png)
(This post was last modified: 01-09-2017, 08:36 PM by 0M4R.)



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)




