I'm trying to make a room based camera for my game, but I can't find any tutorial that explain the Camera2d node in Godot 4. I'm trying to make a camera similar to Super Metroid's. Does anyone know how I could do this? Any tutorials on the Camera2d node would also be helpful.

    DaveTheCoder Instead of following the player directly, a room-based camera scrolls to the room that the character is in. A room is typically the size of the camera, and the camera doesn’t move while in the room unless the room is larger than the camera

    You can use code to detect when the character enters the room, and makes the room camera the active camera.

    If you want one camera to be the room camera for different rooms, instead of having a different camera for each room, then you would need to move the camera's position to the current room, and change its other properties (where it's looking, etc.) accordingly.