Having moving and steady views in two parts of the display

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

I have a game split in two parts. The top part should move with the sprite and the bottom part has controls to alter the movements and so needs to be steady.

I have set up a camera and a sprite with RemoteTransform2D having remote path set to the camera to make the camera move with it. This part works fine.

Now I want to keep the bottom part steady and not move it along with the sprite.
How do I do that?

I tried a different viewport with a separate Camera2D (with current option enabled) but this doesn’t seem to work.

:bust_in_silhouette: Reply From: Calinou

If you want to put a HUD on top of a 2D scene, add your HUD as a child of a CanvasLayer node.