2D - How to block camera from going too far left/right?

Hey.

I imagine that your camera is currently part of your character blueprint. Meaning the camera is a child of your character.
Which means the camera will always follow the character.

If this particular scene/screen is the only screen you want your camera to focus on, you might want to disable or delete the camera attached to your character. Then you can just add a camera to your level and focus it directly on this scene. Once the camera is set it will be stationary and not move when the character moves.

However, if you just want the character to appear at the left edge of the camera instead of being in the middle of the camera, you can use the camera offset feature in your camera’s blueprint details.

hope this helps

So basically, for a project for my college, I’m trying to replicate the original Megaman game (or at least a small demo of it).

When the player runs all the way left of a level, the camera stops focusing on the player and stops moving so it doesn’t show the wall blocking the out of bounds area

So say this is the starting position, if he runs left where there is no platform, how do I prevent the camera from following?

Thanks for any help.

Thanks for the reply -

The level is more than just that scene, it extends right for a bit.

However, if you just want the character to appear at the left edge of the camera instead of being in the middle of the camera, you can use the camera offset feature in your camera’s blueprint details.

I want the player to be in the middle apart from a certain point when he goes too far left. The picture attached above will be the starting point, so the camera there is fine. If he goes right, the camera will still focus with him in the middle.

If, however, the player goes left from the starting point (towards the invisible wall), I don’t want the camera to move, but stay still.
So where the camera is placed in the picture, won’t go left at all from that point, if you get what I mean (apologies if you don’t, I’m tired :confused: )

Did you ever solve it or does anyone know an answer to this?

Bump. I need help with this too!