This tutorial aims to solve the issue of setting up navigation with an AStarGrid2D on a Tilemap in Godot 4.2. Topics covered in the video are AStarGrid2D, Custom Data Layers, Movement relative to a tilemap, mouse movement.
Pathfinding is essential when looking for how to make a game because it can be used for a lot of things like enemies that follow your character or attackers in a tower defense game which have to follow a path towards the castle.
For me, this has been the easiest way of doing pathfinding in my whole game development experience with Godot, so I thought I’d share it with you.
While this is similar to my other video: , it manages the pathfinding in a totally different way. Instead of using a navigation agent, it uses the AStarGrid2D for more precise pathfinding and exact tile movement.
Special thanks go to Trixie for making this amazing tileset:
If you want to learn more a