So far, all our player movement has been through the use of arrow keys or similar. We’ve yet to create a click-to-move system, or any sort of enemy or NPC (nonplayable character) movement. Before we can do that, we need to build a foundation for pathfinding.
That’s going to be the focus of this chapter. We’re going to look at how Godot handles pathfinding and how we can build maps with obstacles that the player must navigate around.
Getting Set Up
Let’s create a new experiment in our experiment project, ...