Using tilemap

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

Hi everyone, Iam using the tilemap to build my level 2d (not isometric) but I would like to know if there is a way to set the z order when I am drawing, because if I draw over an existing image, the new oneestay behind and I want it in front of that, I dont know if I am explaining well, I hope you understand

Related issue: tileset painting z-index issues in editor · Issue #4070 · godotengine/godot · GitHub
My mistake, not much related actually, this issue is specifically about isometric tilemaps, while the question is about non-isometric ones.

Bojidar Marinov | 2016-03-18 10:10

Do you mean having more than one tile at the same place in a specific order?

Bojidar Marinov | 2016-03-18 19:56

:bust_in_silhouette: Reply From: PixelWizzard

If you mean, that you’ve got another object above your tilemap, that is not visible, you can simple increase its Z-value (found in the inspector under the node2d-tab).

:bust_in_silhouette: Reply From: Zylann

If the hierarchy is not an issue, you can also enable Y-Sort in your TileMap and put the Sprite as a child of it, like in the isometric sample (it works for non-isometric too). So the Sprite will be auto-sorted with tiles in vertical order.

:bust_in_silhouette: Reply From: The_Duskitty

I personally just use different tilemaps sorted by Level, So that’s an option too, make as many tilemap nodes as you need for layers (In the Heiarchy, Higher is further back, and Lower is Closer to the camera)