• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

vk_nokey not working? help

I

izark

Guest
HI.
If I alt+tab the game and it is minimized, when I open it again, some code that is triggered by
keyboard_check(vk_nokey) doesn´t work. however, if I press ctrl + alt, the code starts working again.
How can I solve this? is there a way to 'reset' the keyboard. Thank you!
 

jo-thijs

Member
There is: io_clear and keyboard_clear (which is better).

EDIT: ninja'd

EDIT:
Also, your problem might be that the game receives the releases of the buttons when it is minimized, but GameMaker might ignore them then, thinking the keys are still pressed.
 
I

izark

Guest
There is: io_clear and keyboard_clear (which is better).

EDIT: ninja'd

EDIT:
Also, your problem might be that the game receives the releases of the buttons when it is minimized, but GameMaker might ignore them then, thinking the keys are still pressed.
I am clearing those keys then, thank you.
 
Top