Hi, I’m trying to develope a side scroller Beat’em up, left to right movement. How can I prevent the camera moving to the left and block it on the right side in certain zones until the last enemy has been defeated?
To achieve this, consider setting up a spline with a camera at specific locations. Next, take control of the camera and monitor the character’s position, smoothly transitioning the camera between the two points on the spline.
To activate the new camera, set up a trigger. When the boss is defeated, another trigger can switch the camera back to the player’s perspective.
It’s worth noting that while this approach may be effective for Beat’em up games, my knowledge in this area is limited. You may wish to seek input from someone with more expertise in this field.
Thanks. That’s the same solution I thought, set a spline for the camera, then when player reaches a trigger switch to a static camera and build invisible walls to “trap” the player in that place until the last enemy is defeated, then switch again to spline camera. But the problem is, splines only allow camera to move in one axis, let’s say X-axis, but I want/need the camera moving on X and Y axis, left to right and in to out movement, or even Z, doesn’t matter if camera moves up and down when jump. So instead of a spline it should be a plane or a box. But I don’t know it it’s posible to do that.
You should be able to do this, however it’s not something I have personally done before. So I hope someone else are able to help out here! ![]()