Camera boundary switch issue

How do I…

I’m trying to make the camera follow the player object through a map with non-square edges

What is the expected result

image
The camera should follow a player object through the map, the faded red squares are the two different objects that determine where the camera should be, the dark red is where they overlap, and the white is where the camera can’t go, the camera should seamlessly go across them

What is the actual result

When the player passes between the light and dark red, the camera glitches and snaps because it starts using a different object to determine the X and Y of the camera bounds

Related screenshots


image