- Home /
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:
https://hastebin.com/epiyamoqot.cs
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.
http://s1302.photobucket.com/user/george_young4/media/Capture6_zpsiptpvt8j.png.html
any ideas how i can get this working?
Answer by gibberingmouther · Feb 10, 2017 at 07:40 PM
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....
Your answer
Follow this Question
Related Questions
the animation walk but he still in the same place and rotate left and right on this white circle 0 Answers
First script plays animation but second script stops if from playing said animation 1 Answer
how to make ui button run an animation 0 Answers
Synchronize two animator states to have the same normalized time - Mecanim 0 Answers
Strange animation behaviour trying to implement hover functionality 1 Answer