2D - How to block camera from going too far left/right?
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.
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
answered Feb 19 '16 at 08:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here