0 votes

I have a conveyor belt node that holds items in an isometric view and I'd like to draw the items on the conveyor belt above the next isometric tile's conveyor belt. The items get drawn above their own parent, but dip below the parent's neighbor; is there a way to prevent this?

in Engine by (15 points)

1 Answer

+1 vote
Best answer

A sort of straight forward way is to elevate the Z value of your Node2D to be higher than the tiles in question.

There are a variety of approaches, depending on your design. If you have something complex, maybe you need an algorithm to adjust these values of tiles and objects in real time.

Another method is to separate out what you want above the tiles into another CanvasItem (Node2D), or even create a new CanvasLayer for hold those nodes, and elevate the layer number.

by (5,206 points)
selected by

Wow, that is incredibly simple. Thanks!

No problem. X)

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.