how to set z index of each tile in a tile map

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

i’m making a top down game. and is there any way to set the z index of each tile to its position.y value ( to create a depth in the game )

enter image description here
enter image description here

if we can’t set the z value of each tile, what’s the best alternative?

:bust_in_silhouette: Reply From: kidscancode
  1. Turn on the TileMap’s “YSort” property.
  2. Make the character a child of the TileMap.

thanks it works!
but what if I have 2 different TileMaps in my game?

Thakee Nathees | 2019-06-07 09:42