How to make a node that isn't a child of another node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By scovelme
:warning: Old Version Published before Godot 3 was released.

I made a node, but now whenever I make another node it makes it a child of the first node. Help?

:bust_in_silhouette: Reply From: thirite

Everything in Godot is a child of something, except for the viewport. So if you want to make something not a child of something it doesn’t really make much sense.

But I think I know what you’re trying to do. Every scene has a root node that everything else is a child of. Typically this is just a “Node”. Imagine it’s like a folder that holds all your stuff. Now inside the folder, everything can sit beside each other without being parents, but you can only have one ‘root folder’ per scene, and it must be the parent of everything else (its children can also have children and so on).

Hope that helps

Oh… so I just have one node and then put all my other nodes in it? That makes sense

scovelme | 2016-05-18 03:11