Can you change the size of a "Tile" to fit the "Cell Size"?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 1MochaChan1

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

:bust_in_silhouette: Reply From: exuin

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.

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?

1MochaChan1 | 2021-06-15 14:14

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

exuin | 2021-06-15 15:39