Camera Limits in Camera2d

Godot Version

4.2.2

Question

I have a Camera2d in my Player and I want to add limits. But since there’s gonna be multiple limits I wanna know if I can change this in different scenes through code or something.

You sure can. I would setup a unique camera for each scene, unless it needs to be seamless.

Camera2D — Godot Engine (stable) documentation in English

Is there a way I could access these from a different node in a different scene? My main question is how do I set the limits with code… and I’m fairly new so I obviously dunno about that.

It’s doable. You would probably need to set up an auto load so that they can both the scrne can register its limits and the camera can access those limits. Maybe could set up a signal so that when the level sets the new limits it will automatically signal the camera

1 Like