Layers above/below

Godot Version

Godot 4

Question

How can I specify which sprites are on top of all others, or below all others? For example, I need to make a fence that will cover people and so on, but objects like graffiti will be shown on top of the fence

You can achieve this by either moving the nodes up or down in the scene tree, as their order also dictates the drawing order, or you may modify your Node’s “Z Index” property, which can be found under the “Ordering” group.

You may also use “Top Level” but it might have unintended side effects and do more than just draw on top of others.

1 Like