This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I've created a tileset using the method of making a node containing sprites for each tile and convert to => tileset. I added the NavigationPolygons to the tiles I wanted navigation for, which worked fine - a path is found when I click around the map. However the navigation map seems to be offset down about a tile's height and so the path will send the character about one tile below the map which shouldn't be part of the navigation. Likewise at the top, the path found won't go within about one tile of the top of the map.

This is very similar to this question on the reddit forum which is unsolved: https://www.reddit.com/r/godot/comments/a7t5hm/navigation_on_tilemap_is_at_offset/

Pics attached for clarification:

below map
top of map
in tileset editor

in Engine by (103 points)
reshown by

1 Answer

0 votes
Best answer

Found a fix... In the inspector tab for the tileset that has been converted from a scene, the settings navigation offset and shape offset were for whatever reason both set to 32 for both x and y. As in my case my collision and navigation was dropped down one, I changed the y offset for both to 0 which fixed it immediately. Hope that helps someone!

Inspector

by (103 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.