2D NPC Direction

I am making a 2D Game and I use the AStar pathfinding to move my NPC’s around the screen. Problem is I cannot tell which direction the NPC is moving in to update their sprite. Anyone know how I could solve this issue?



That depends on the movement script you are using. Are you using these scripts? Simple example script for a 2d top down character (y up axis)?