Camera2D drags behind in Godot 4

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

Hi,
I decided to try out godot 4. Among the first things I tried was to just create a 2d camera that always follows the player around. The problem is that it always drags behind even when smoothing is off. Tho it isn’t even like smoothing as it drags behind by the amount that the character moves in 1 process, and when character doesn’t move it jumps to it right away. I don’t often use Godot so if there is some obvious thing I am missing I am sorry.

:bust_in_silhouette: Reply From: popcar2

Is your camera a child of the player? If so, don’t do that. Have the camera be outside and add a RemoteTransform2D to the player, then choose the Remote Path for it in the inspector to the camera. That makes it so that the camera will follow the player directly.

Used both child, remoteTransform and script but it always does the same thing.

Wrokin | 2023-04-23 19:24