2d navigation doesn't work when i change cell size in tilemap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gangashman
:warning: Old Version Published before Godot 3 was released.

Hello. I’m trying to make a 2D game. I use Navigation2D like in example project, but when I change size of cells in tilemap - navigation doesn’t work, only when size is 64x64. I need to change size to 40x40.

As far as I understood the fact that godot does not support other sizes for Navigation2D. Anyone have worked to change the size of the cells and successfully use the features such as the get_simple_path()?

Does anyone have any idea how I can do this? Thanks for any help!

:bust_in_silhouette: Reply From: MrMonk

it works for any sizes. In the project you mentioned, you need to change the size of the tiles/nav path in the scene: tileset_src.tscn, and then convert to tileset.tres: like in this tutorial:

then in the project change also the size on the tilemap as I imagine you already did.

Where I can change tiles/nav path in the scene? I cant find this option. Btw, thanks for help!

gangashman | 2017-05-01 17:14