- Home /
Camera to move when i move to the next room
i want my camera to go to the next room like in binding of isaac when i go to a different room How do i do this, im thinking you instantiate a camera for each room and destroy the other one or that you have a value on your player which displays what room i am in and use that camera
Answer by HexadimensionalerAlp · May 20, 2021 at 01:31 PM
You could just move the main camera to the room your player is in when he enters the room. For that the player needs to trigger an event when entering a room. In this event you'd have to set the camera position to the center of the room. To enhance this you should have a look into cinemachine. With cinemachine you can make a smooth transition easily.
Your answer
Follow this Question
Related Questions
Cinemachine glitch 0 Answers
clamping camera movement to map size and camera corners 0 Answers
Jerky 3rd Person Camera Following Movement and Rotation 0 Answers
Keeping UI Element To Game Object When Camera Moves 2 Answers
Cinemachine Camera zooms in to player when Cinemachine collider is on 0 Answers