Why doesn't my camera follow the player?

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

What is going on. The camera2d node is set to current, and it is attached to the player node.

It is within a canvas layer node, would that impact it?

The kinematic body is within the canvas layer, then the camera is inside the kinematic body.
From what kidscancode said as a response, this should have no impact on the camera, but now the camera won’t follow the player at all. It seems not to use the camera, and I was wondering if the engine doesn’t check in canvas layer nodes for cameras that are set to current.

edit 2: simple spelling mistake “seam → seem”

Did you ever solve this? I believe I have the same issue.

Edit: I solved this issue by changing the root node of the scene from Canvas2DLayer to a regular Node2D. Had to fix a couple of other things because of that but that was the issue for sure.

misterjdizzle | 2022-11-06 01:21

:bust_in_silhouette: Reply From: kidscancode

Yes. If it’s on a different canvas layer from the player, it’s not going to affect the player.

It is within the player node, within the canvas layer node.

as in, the player is in the canvas layer node, and then the camera is within the player.

Opherus | 2020-05-15 05:34