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 (97 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 (97 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 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 webmaster@godotengine.org with your username.

Categories