How to make things follow camera2d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stevepetoskey

So I think that in order to get things to follow the camera like gui, you need to make that object a child of a canvas layer which is a child of the camera. However I want multiple things to follow the camera and the camera is a child of a object that is being instanced in. Is there a better way to go about this, or do I need to rework everything?

:bust_in_silhouette: Reply From: Asthmar

Its fine that your are instancing in the camera, in most cases for example, the player is instance into a scene and the player has the camera node.

You would need to be more specific with what those multiple things are that you want to follow the camera. But if its all GUI then it should work, as long as a node is child of the canvas layer it will follow the camera. Also the canvas layer doesn’t have to be a child of the camera for it to work. Hope that helps!