+1 vote

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?

in Engine by (294 points)
edited by

1 Answer

+2 votes
Best answer

1) Turn on the TileMap's "YSort" property.
2) Make the character a child of the TileMap.

by (21,981 points)
selected by

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.