Godot Version
4.3
Question
`how do I make pipe show above the background but below the floor Im stumped
`
4.3
`how do I make pipe show above the background but below the floor Im stumped
Wouldn’t you want the Background and Floor to not be a child of the “character follow”? Then you can position the elements in the scene tree accordingly, otherwise you will have to edit the z-index
property.
I don’t understand the question.
2D nodes in godot are drawn in the order they appear in the tree, in reverse of how it works in programs like photoshop, the last item is drawn on top of the previous one.
all you need are Node2Ds to serve as layers, and you put the other nodes in these.
Node2D
|->background
| |-> sky
|->ground
| |-> tiles
| |-> player
|->foreground
|-> columns that pass over the camera
and static objects should NEVER be children of characterbody or rigidbody, it creates problems with the physics engine.
sorry for the late reply but how ive set my thing is my camera follows character follow the character follow’s y posistion is locked but goes right the same speed as the real character so the camera doesnt go up and down all the code character follow has is to lock its y posistion thats it and also going left so the background and floor is following camera 2d so it doesnt move out of frame
I just made 2 paralax layers and put pipe inbetween them