Camera2D Drag Margins

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

I want to make a camera that moves with the player, but the player is not centered but a bit to the side and bottom, like in geometry dash, the problem is that i want to make it so the camera moves with the player horizontally always, but vertically only when the player touches the sides. What i did is enable the drag margin only vertically and offset the camera, the problem is that the drag margins basically ignore the current position of the player(the parent to the camera2D node), and moves as if i hadn’t touched the offset. If i change the position in the transform tab is the same.
¿How can i change the starting position of the camera without messing with the drag margins relative to the player?