How do I check the direction my pathfinding object is moving? I'm doing a beat em up, so I need this to set enemy's movement animations correctly whether the object is moving towards or away from player. The system currently picks random points within set distance, so there isn't a seperate "move towards" and "move away" system set in. Is it possible to check the pathfinder's momentum somehow or the destination's position after it's set?
i'm looking for the same info at the moment. I have sprites moving around a board when I click, but I need to somehow fetch their directions so I can have them walking in the correct direction.
I'll watch this thread for an answer too
Bump. For glory and justice.
Develop games in your browser. Powerful, performant & highly capable.
Not sure if you are using the same plugins for movement, but I figured it out in my other thread:
Hope that's of some use?