0 votes

I am referring to this Navigation2D Tutorial . The tutorial says that I need to have a tilemap for the Navigation2D to work.

After creating the two tiles from the provided tileset it appears that my tiles are smaller than my cell size.
I can fix this by change the cell size, but I want to know if I can do the opposite, i.e.

Change the tile size to match the cell size

Godot version v3.3.2.stable.official
in Engine by (34 points)

1 Answer

0 votes
Best answer

You do not need a TileMap for Navigation2D to work. There is currently no way to scale tiles in the Tileset editor, so you can't change tiles to match cell size.

by (7,190 points)
selected by

Thanks for your answer.
And yes you are right I don't need to have a tilemap for Navigation2D it can work without a tilemap too.
Although this is a different question, but assuming I have a tilemap but my enemy AI is getting stuck on the edges so switching to NavigationoPolygon instead of using the tiles for navigation a good idea?

Yeah I would just draw the navigation polygon with space between the collision shapes so that the character doesn't get stuck on them.

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.