Why is the pathfinding shifted from the texture?

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

The problem:

I am using isometric view. The problem is that the pathfinding which I set to to the texture is not aligned to the position of the tile. I might be missing something, please help.

Did you change the texture offset or shape offset properties in the Tileset editor?

exuin | 2021-07-29 23:31

:bust_in_silhouette: Reply From: Zedespook

There are 2 solutions to the problem!

  1. Don’t drag and drop the textures into a Node2D scene, but rather, setup the resource by hand, and add the Navigation nodes to each single tile. This solution is slow and bad.
  2. After you dragged the textures to the scene, turn off the centered property in the inspector. I also put their transform to Vector2(0, 0) which you might or might not have to do.