The distance is just a check. So, if a player and enemy meet, they engage in battle, no matter if they are pathing elsewhere.
Sorry for the upside down photo.. slowly I'll get to grips with this forum and posting things. It's been 6 years+
Just want to find closest enemy. Move towards them.
In any situation any enemy and player meet (distance<= 40) stop, engage battle.
I've got all body working indipendantly, and battle is done asides from dodging and punch turns.
Just the pathing, and I can make a game from it