A pathfinding solution

yes the arrive() method make my creature move to the target.

but now i think thats the problem is my target im not sure that its store the closest water source.
When i run my code, it work (ouf :slight_smile: ) but my creature dont move to the closest.

my arrive() methode is based on the code wroted by Daniel Shiffman :


i didnt make a change, i just wrote it on java