Godot Engine

Godot Engine

Would like to know more about 'layers'
I ended up needing to organize my nodes according to what needs to be loaded in and out. It would be pretty inconvenient to sort it out in order of display, so I was hoping to learn more about how to use the layer function manually. The documentation on it's use is something I cannot find. I do know it's a newer feature though, so it's understandable. Willing to hear any of your input.
Zuletzt bearbeitet von Mischief Aaron; 11. Mai 2016 um 18:57
< >
Beiträge 14 von 4
If you are talking about draw order, then you are probably looking for the Z property in Node2D. Node2D with lower Z-order are drawn first.
Thanks! That seems to be what I needed. Thought I saw some built-in feature for it but seems that was collision layers.
Hmm okay, sounds great Kirkkaf! I do actually use these for parallax already funny enough.

It looks like what I want so long as I can have multiple canvases use the same layer.

The main reason I am doing this is so I can have the player still exist, but be outside the level data, that way I can show the player entering the new area and not have to reload any of the player data or have to bother with moving it out of the child nodes of the level first.
So I tried out the canvas layers and that seems to do more than adjust the render order, it also seperates all colliders! So now my collision does not interact and I see no option to void that... I'm thinking these canvas layers might be the wrong way to go.

So far using the Z-axis seems to be the best idea. I can probably just replace these CanvasLayers now with Node2Ds with the Z-order stored in those parent nodes.

Any better ideas?
< >
Beiträge 14 von 4
Pro Seite: 1530 50

Geschrieben am: 11. Mai 2016 um 18:57
Beiträge: 4