2D camera that follows my player only follow my player left/right and not up/down.

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

(GODOT3) I have a 2D camera that follows my player but I want the camera to only follow my player left/right and not up/down. What settings do I have to use? I have been playing with the Drag Margin settings but no luck so far. Do I have to write my own for this? Any help would be welcomed. Thank you

:bust_in_silhouette: Reply From: StarTek

Try to set camera bottom and up limits to minimal values (i think -1 and 1 would work for you).