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