#Anyone know whats with this error?

23 messages · Page 1 of 1 (latest)

pale nimbus
#

############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_player:

Variable obj_player.yinput(100009, -2147483648) not set before reading it.
at gml_Object_obj_player_Step_0 (line 22) - var temp = yinput;
############################################################################################
gml_Object_obj_player_Step_0 (line 22)

meager halo
#

"not set before reading it" means you tried to use a variable that doesn't exist. So at the point that var temp = yinput runs, yinput has never been set to anything

pale nimbus
#

idk i just followed a tutorial

meager halo
#

Probably missed a step then

pale nimbus
#

ill see

#

nah doesnt seem like i did anything?

#

do i send my code?

#

visual code more correctly

#

ill send it anyway

meager halo
#

the order is important here

#

can't see what's above what in those screenshots

pale nimbus
#

theres nothing above?

meager halo
#

actually wait

#

I see the issue

pale nimbus
#

whats the issue?

meager halo
#

you're creating a variable named "temp" and setting it to yinput instead of making a variable called yinput

pale nimbus
#

oh

meager halo
#

and then you have another one also called temp that's getting what should be yinput's value

pale nimbus
#

okok