Yes, I believe pathfinding is actually using the A* algorithm. But what I really used is the Navigation2D tools that's part of the available Godot engine classes, so for me the algorithm used for pathfinding was abstracted by Godot, which made it super easy to implement. Here's the documentation on that: