Z axis misunderstanding (Godot 4, 2D)
Asked Answered
D

1

0

Hey everyone !
I have 2 parallax nodes in my game tree, one showing in the front of my player, enemies, objects, and a huge collection of background parallax. My foreground is showing in front of everything, and that's great, but i still want my control nodes working on the cutscenes to show in front, yet the foreground always pops through !

I've been tinkering with the Z axis for a few day, but the only way I found to hide the foreground from the cutscenes nodes is to change the z axis to -1 (or lower), and even tho my player has a z axis of -50 it still show up in front of it !
I should mention my player is instanced in the ready func of the tree but i'm not sure how it would affect it at all.
Here I've shown my tree and my foreground showing on top of the transition_scene node, even though that one is at a 100 on the z axis.

Thank you so much and have a good one !

pink

Domingodominguez answered 16/1 at 22:58 Comment(0)
D
0

Fixed ! All control nodes should be placed in a canvas layer node. A good lesson !

Domingodominguez answered 26/1 at 10:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.