I have 2 issues:
1) Is there a way for a sprite to move through a tilemap with PathFinder but only with vertical and horizontal movements?
2) I want to make an AI where the enemy tracks the nearest player and moves towards it, the problem is that using "nodes.length" doesn't seem to be helpful.
In the image below, when I click the lowest red square it throws that the player to the far left is "nearest" than the player who's near center only because the nodes length is 2 and the other is 3, even though it needs to move 7 tiles versus only 6 tiles from the other player. So, what could be a better way to track distances and find the nearest player?