MENU

Fun & Interesting

Master Tilemap PATHFINDING & Obstacle Avoidance in Godot 4.2

Cashew OldDew 35,133 11 months ago
Video Not Working? Fix It Now

I'm making a game! Wishlist Fangs & Faith Solitaire Now: https://store.steampowered.com/app/3032430/Fangs__Faith_Solitaire/ This is yet another video on pathfinding. This time we combine the best features in Godot: Pathfinding, Tilemaps and Navigation Layers. This tutorial aims to cover the usage and quirks of them, presenting how basic pathfinding is done, how to apply avoidance and finally, how to use obstacles on a Tilemap with different approaches, such as physics layers and updating navigation layers at runtime. Links for the discussed topics: Introduction to 2D Navigation - https://docs.godotengine.org/en/stable/tutorials/navigation/navigation_introduction_2d.html Navigation Agents - https://docs.godotengine.org/en/4.0/tutorials/navigation/navigation_using_navigationagents.html#doc-navigation-using-navigationagents Godot Groups - https://docs.godotengine.org/en/stable/tutorials/scripting/groups.html Update Tiles at runtime - https://docs.godotengine.org/en/stable/classes/class_tilemap.html#class-tilemap-private-method-tile-data-runtime-update Assets: Tilemap and character animations: https://cupnooble.itch.io/sprout-lands-asset-pack -------------------- Github repository for this project. https://github.com/cashew-olddew/godot-tutorials/tree/main/4.2/7%20-%20pathfinding%20using%20navigation%20layers Support me on Ko-Fi: https://ko-fi.com/cashewolddew -------------------- Chapters: 0:00 - Project Setup 0:30 - Pathfinding with Navigation Layers 8:56 - More complex pathfinding 14:35 - Pathfinding Avoidance 19:07 - Add obstacles on the Tilemap for Pathfinding #godot #gamedev #pathfinding

Comment