I’m trying to create a 2d platform game were the camera moves from left to right. I want the camera to stop moving when it reaches the end of the level. I tried stopping the camera when it’s greater than or equal to the coordinates that I need. And it works! But if I try my game on different monitors/resolutions you get black space at the end of the level. (It doesn’t stop when I want it to stop.) So is there a way to, no matter the resolution of the screen, stop the camera from moving?
Thanks for your help!