+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 (255 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 (20,895 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 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 webmaster@godotengine.org with your username.