How can I make enemies with Pathfinding behavior show the correct animation according to their angle of rotation or displacement in 8 directions?
I tried these options but they don’t work.
Unfortunately The problem with the Minda example is that MINDA obeys the actions of the mouse or keyboard. In my case if the enemy applied a default control effectively changes the animation …
But if I only apply Pathfinding behavior to the enemy, the enemy persecutes me but does not change his animation even with events.
I don’t know if there is another alternative to Pathfinding behavior for the enemy to chase me and change their animations according to their angle.
Finally after much trial and error.:alegría: I achieved a solution to the change of animation according to the angle of rotation of an enemy with Pathfinding behavior. Here my solution. If you have any other way please tell me.
Thanks for your reply, maybe i will try to do like this. I tried but i couldnt do it, maybe im doing something wrong. I will do it again later and i will tell you if it goes for me:
I found another solution that i find simpler, since all that math stuff makes no sense to me. I have a hidden object following my moving character. The hidden object has rotation enabled. That allows me to get an angle while the object is moving without having my visible object rotating. Instead my visible object gets the correlating animation number.