I have a Player scene that handles the player input and movements and it has a Camera2d node as a child of this player. I have a scene for a game area that will procedurally generate some things into 3 canvas layers. I have a SubLayer, PlayerLayer, and SuperLayer. I have an instance of my player sceen as a child of the PlayerLayer. The PlayerLayer also contains a few randomly spawned rocks that the player can collide with.
The camera, however, is not moving with the Player, I believe because the camera is not a direct child of the root. If I move the player outside this layer, the camera will stay centered on the player who appears to move as the player will still rotate with inputs. But the rocks that have been rendered keep their position relative to the player.
How do I make the player's camera the current camera when it is within the PlayerLayer canvas?