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

GML WASD Keys not Responding, Arrows are fine

I

Ivan.

Guest
Code:
if (keyboard_check(vk_right)) x += 4;
if (keyboard_check(vk_left)) x -= 4;
if (keyboard_check(vk_up)) y -= 4;
if (keyboard_check(vk_down)) y += 4;
if (keyboard_check("D")) x += 4;
if (keyboard_check("A")) x -= 4;
if (keyboard_check("W")) y -= 4;
if (keyboard_check("S")) y += 4;
I am doing 'My First Game" tutorial and my WASD are not responding. They worked but then stoppped. I tried creating a new project and putting the code in the player in that one and it worked. Did i do something wrong with the code?
 
T

Thunder Lion

Guest
Code:
if (keyboard_check(vk_right)) x += 4;
if (keyboard_check(vk_left)) x -= 4;
if (keyboard_check(vk_up)) y -= 4;
if (keyboard_check(vk_down)) y += 4;
if (keyboard_check("D")) x += 4;
if (keyboard_check("A")) x -= 4;
if (keyboard_check("W")) y -= 4;
if (keyboard_check("S")) y += 4;
I am doing 'My First Game" tutorial and my WASD are not responding. They worked but then stoppped. I tried creating a new project and putting the code in the player in that one and it worked. Did i do something wrong with the code?
Use ord("") for the letters.
 
Top