S
SpaceKill
Guest
Hello.I'm new to gamemaker and I'm trying to make character movement (only left and right).
I've entered the neccesary code in a step event
if(keyboard_check(ord("A") ) ) {
x -= walkSpeed
image_Speed = walkSpeed / 3;
sprite_index = sprite41;
and I get this error when I press A
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object object34:
Variable object34.walkSpeed(100004, -2147483648) not set before reading it.
at gml_Object_object34_Step_0 (line 5) - x -= walkSpeed
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_object34_Step_0 (line 5)
Thank you in advance.
I've entered the neccesary code in a step event
if(keyboard_check(ord("A") ) ) {
x -= walkSpeed
image_Speed = walkSpeed / 3;
sprite_index = sprite41;
and I get this error when I press A
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object object34:
Variable object34.walkSpeed(100004, -2147483648) not set before reading it.
at gml_Object_object34_Step_0 (line 5) - x -= walkSpeed
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_object34_Step_0 (line 5)
Thank you in advance.
Last edited by a moderator: