add_child() or add_sibbling()?

Godot version

4.4.1

Question

i am making a flappy bird esc game as my first. and im trying to make the different types of pipes ,eg the end of the pipe thats facing up or the base tube segment, and i dont know if should either use the add child or add sibling functions for the dulication. waht should i use?

Depends on what you are adding to and where in the scene tree you want it to be. add_sibling is a shorthand for get_parent().add_child, so it’s not much different. Main take away should be that the new node will not use the current node’s transform, if your current node moves and you don’t want the new node to move, then add_sibling or adding it elsewhere like get_tree().current_scene.add_child would be better.