-
Book Overview & Buying
-
Table Of Contents
Game Development with Godot 4 and C#
By :
Currently, we have a small, cozy game where we can collect mushrooms and run around our world. We also have a UI to navigate through the different menus, and in the previous chapter, we added audio to boost the ambiance of our game.
Now, we’re going to look at filling our game with non-playable characters (NPCs) and utilizing the navigation nodes within Godot to make those NPCs wander about our forest land. Pathfinding and general navigation can be a huge component of your game, depending on the setting. If you’re looking to populate a town with people and make it feel alive, then wandering NPCs could be extremely valuable. You could be creating a multiplayer game that uses escort missions. Then, the escort would need to know the path to get there.
In this chapter, we’ll learn about the nodes Godot provides to create pathfinding, and then we’ll use some of those nodes to create wandering NPCs in our world. To do...