This is an example of how to use Godot's Navigation 2D pathfinding in a platformer.
Control the character using directional keys or wasd. Space jumps.
This example was created for this video: https://youtu.be/LKyGdiHzIk8
Navigation2D related stuff:
- There are two characters, a player controlled character and a follower NPC.
- Path is recalculated every 400 milliseconds.
- Follower will automatically jump and avoid obstacles.
Extras:
- Tilemap with auto-tiling enabled.
- Character with movement, jump and gravity implemented.