Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

hello shaun, im on ep2 but I keep getting a error message and i followed instructions but it says 

___________________________________________

############################################################################################

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_PlayerAnimationScript (line 2) - var _cardinalDirection = round(direction/45);

############################################################################################

gml_GlobalScript_PlayerAnimationScript (line 2)....


plz help

i need the same hel

(1 edit)

/90 not /45. 90 is 4 dirs, 45 is 8. If you had 8 sprites, you'd do 45 I believe.