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

Error working with yaxis and xaxis.

F

Freezin

Guest
I have defined both the xaxis, and the yaxis variables. I still get this error every time I try to run the program.



___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:

Variable <unknown_object>.yaxis(100003, -2147483648) not set before reading it.
at gml_GlobalScript_move_state (line 3) - dir = point_direction(0, 0, xaxis, yaxis);
############################################################################################
gml_GlobalScript_move_state (line 3)


Help is appreciated.
 
F

Freezin

Guest
Fixed my issue, realized I was following an outdated source of code.

Thank you all for helping!
 
Top