I am working on my game project and I want to change the cameras when I am changing scenes with scenemanager.
I have different size of 2d maps and each one of them has a different camera(I think) because I set the bounds around the maps and the cameras will stay inside of the map so the size of the camera for each map might vary.
Right now I am trying to make the scene-changing to work but it is really awkward that my previous camera from the previous map will affect the next scene’s camera.
Is there a way to fix this? I wonder if it is something like turn off the previous camera when changing the scene and then active again when going back? Please help. Thanks a lot.