Player moves out of camera after max zoom limit

Hello all.

So I’m working on a 2D fighting game and currently, I am trying to make it so the player always stays within the camera view after the max zoom limit has been reached.
They will still be able to move, but they cannot move any further after the max zoom limit has been reached.

However, the problem is that the player will continue to keep moving out of the camera’s view once the max zoom limit has been reached.

I couldn’t really figure out a solution, so I searched online to see if there were any questions similar to this, but to no avail. There were some that were from different game engine forums, but the situation was vastly different from mine.

Don’t write out a script or anything. Just some tips or ideas that could guide me to the solution would be good enough. Thanks :),

just add invisible walls at the end. or, check if the maxzoomlimit is reached then move the player in the other direction using Humanoid.MoveTo()

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.