TWO PLAYER TOP DOWN - STOP PLAYERS RUNNING OFF SCREEN
I'm currently creating a two player top down shooter. Both players play on the same screen and I've set up a camera to always follow the mid point of the players. Unfortunately, I can't figure out a way to stop the players running off screen. I've tried setting up collision boxes in the camera blueprint, which isn't ideal, stopping player movement when a set distance from the other - but also not ideal as the player always needs to be able to move (still allowing them to run back toward the centre of screen).
Is there a way to invert the collision sphere? Seems like that would be perfect to slap into the camera blueprint.
Any other solutions anyone has?
asked Feb 25 '15 at 10:24 AM in Blueprint Scripting
You could have your camera zoom in and out dependent on the distance between the players (smooth average between the two) and then limit the distance they can be apart from each other by measuring the difference in distance and giving a branch if greater than distance then movement wouldn't work?
answered Feb 25 '15 at 12:01 PM
Is it possible to attach the NavMesh to the camera and make it the same size as the field of view, so that the players cannot move out of it?
answered Mar 08 '15 at 12:48 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here