> You should start here:
>
Thanks for your help but i know how to add animation ^^
my question is a little more difficult than this ...
i have my npc with animation.., i just need to know how to program the animation for the movement
ex:
every tick if x<x.npc play leftanimation ... something like that ...
but i don t know how can i write this
(i hope you understand with my bad english )
—
thanks a lot for answer ..
at first i want to test with basic 4 direction (i have isometric chars for my project but i think its the same way )
Well, you just solve the problem yourself, make a variable on your player that sets towards the touch or mouse angle, and when it's between 90 and 180 lets say, the animation "front" is played, or something like that.