Platformer - limit camera movement

Hi there, dear community members! I am making a Platformer game based on 2D-Sidescroller with Blueprints.

Right now, Camera is following 2D player everywhere on the level (default settings). I need it to stop when its field of view reaches “border” (dunno which element could be used for this) of the level, allowing Player to move inside of it’s current field of view. And then start moving again once Player reaches center of screen horizontally.

Could you point me to some kind of tutorial or solution for such issue?

Okay, I haven’t found a ready solution, so I made one myself - hope this helps someone else.
Firstly, create Ator blueprint that contains Collision Box and fires OnBeginOverlap and onEndOverlap.
When player overlaps this item - deactivate Camera Boom, and do the opposite when player stops overlapping.

1 Like

i have the same question