Isometric height wth half block tileset

Godot Version

4.5

I’m trying to do an isometric TileMap with multiple TileMapLayer, I have found this assets to try: 32 x 32 Pixel Isometric Tiles by scrabling

And the render is like that:

I have tried to move the impair TileMapLayer of 8 pixel on y axis to have this:


But when I tried to click on a tile and getting it’s position it’s doesn’t work well.

So what I don’t understand is:

  • Are isometric tileset needed to be block and not half block like the one I found?
  • Is there a way to use this kind of TileSet in Godot?
  • Is handling height in 2D TileMapLayer possible with one TileMapLayer by height possible or is this the wrong way to do it and 3D object with an orthogonal camera is better?

The answer is in How do I correctly stack isometric TileMapLayers?
I was missing the: “Rendering.YSortOrigin set opposite of its y transform”

Each TileMapLayer must have its own Rendering.YSortOrigin set opposite of its y transform, to “negate” the y-movement.

Adding negative pixel to the y position of the TileMapLayer correct the view, and adding it to Rendering.YSortOrigin correct the function to get the tile position.