I have a big layout and i want to restrict the camera within this layout. So what i do is I have a camera object that follows the player on X (due to the way the game is structured) and that works well.
so at the oment i have a trigger in my level that, once the camera touches it, stops the camera from following the player. the result is that the player moves within that camera zone that does not move.
that also works as it should.
now, sometimes i want the camera to stop at a certain point and then later move again at a certain point. i do that with triggers and that works well BUT there is now a jump in X positions in the camera. and here i figured to avoid that, wouldn't it be possible to tell the camera to automatically stop moving when the edge of a area is reached, kinda like when it stops scrolling once the edge of the layout is reached.
i am not sure i am explaining this correctly, though. technically speaking, everything works as it should, it's just not pretty, is all.
so yeah, is there a way to define an area within a layout and bind the camera to that area?