• 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!

Keyboard_Check_Pressed(ord())

P

PrinceOfBelgium

Guest
For some reason when I input this code, instead of just activating key_z when the z key is pressed, it activates at any button pressed. Any ideas why?

global.key_z = keyboard_check_pressed(ord(“Z”));
 
P

PrinceOfBelgium

Guest
Never mind, I figured it out. I just now saw your response. The problem was with the usage of the variable, not the creation. I put
‘if keyboard_check_pressed(key_z)’ instead of just ‘if (key_z)’. Sorry for the hassle.
 
Top