Hi LaurenceBedford,
If you're using the pathfinding example I posted, one way would be to pin (position only) a new sprite with the npc animations to the moving npc sprite, check the moving sprite's angle and change the animation accordingly e.g.:
If moving sprite angle between -45 and 45 set animation sprite's animation to "walk right"
If moving sprite angle between 45 and 135 set animation sprite's animation to "walk down" etc