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.
Lần sửa cuối bởi Mischief Aaron; 11 Thg05, 2016 @ 6:57pm
< >
Đang hiển thị 1-4 trong 4 bình luận
neikeq 12 Thg05, 2016 @ 3:03am 
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.
Mischief Aaron 13 Thg05, 2016 @ 4:49pm 
Thanks! That seems to be what I needed. Thought I saw some built-in feature for it but seems that was collision layers.
Mischief Aaron 14 Thg05, 2016 @ 4:18pm 
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.
Mischief Aaron 21 Thg05, 2016 @ 2:12pm 
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?
< >
Đang hiển thị 1-4 trong 4 bình luận
Mỗi trang: 1530 50

Ngày đăng: 11 Thg05, 2016 @ 6:57pm
Bài viết: 4