4 directional movement with mouse

okay, i asked this in the animation forum, but i realized afterward that that forum has very little activity. there’s still a thread from 2015 on the front page, and it has only 15 replies. so i hope the moderators will allow me to ask this question here:


here’s my script. i set up the triggers with those names in the animator view. the behavior i see is that the idle animation plays for a second or two then stops. then when i move around there is no animation, just the sprite renderer sprite.


any ideas how i can get this working?

Okay, I got it working thanks to IRC: https://hastebin.com/otofesater.cs

i’m not sure if i was right to use the stringtohash function, but it works, so i’m not complaining…