Hi been following long just the beginning of the series on episode 2 (part 2: Animation) of this series. The scripted is causing an error code.
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:
Variable <unknown_object>.direction(8, -2147483648) not set before reading it.
at gml_GlobalScript_PlayerAnimateSprite (line 2) - var _cardinalDirection = round(direction/90);
############################################################################################
gml_GlobalScript_PlayerAnimateSprite (line 2)
I have written the code twice to make sure if the mistake was on my end, and every word matches the video. If anyone can point me in the right direction or give me some understanding what going on. Anything would be helpful