Hi, i have a question over here.
I am doing a 2d platform, with player 1 at the left side of the screen, and player 2 at the right side of the screen facing each other. The camera is showing both players. There is a maximum distance between player 1 and player 2 for the camera to show.
When player 1 moves backwards and reach the maximum distance, he cannot move backwards.
I uses Mathf.Clamp for both player1 and 2. But it seems that when player1 moves backwards, he is dragging player2 along too.
-addon:
When the player1 moves backwards, and reach the maximum distance between both players, there was like an invisible wall, the player can’t move anymore backwards. how?
But i guess you and thinking of a tekken like game, so what i would do is, have the camera’s distance to go out to a point and have a box colliders on each end, with a width of lets say 15, so and when the players come closer to each other the camera simply zooms in…