M
Montigor
Guest
Hi, i am very new to Gamemaker and many hours trying to make object move with W A S D keys but can not do that. I tried to take code from other users but it did not help.
if (keyboard_check(ord('D'))) x = x + 4; // i tried this
i tried to write D with "" or with ' ' or without them.
if keyboard_check(ord('A')) {x = x + 4} // also tried this
I succeeded to launch game but got fatal error
FATAL ERROR in
action number 1
of Step Event0
for object obj_player:
Variable obj_player.D(100002, -2147483648) not set before reading it.
at gml_Object_obj_player_Step_0 (line 1) - if (keyboard_check(ord(D))) x = x + 4;
Thank you for your help.
if (keyboard_check(ord('D'))) x = x + 4; // i tried this
i tried to write D with "" or with ' ' or without them.
if keyboard_check(ord('A')) {x = x + 4} // also tried this
I succeeded to launch game but got fatal error
FATAL ERROR in
action number 1
of Step Event0
for object obj_player:
Variable obj_player.D(100002, -2147483648) not set before reading it.
at gml_Object_obj_player_Step_0 (line 1) - if (keyboard_check(ord(D))) x = x + 4;
Thank you for your help.