2D platformer: how to stop camera at the end of the map?
I know this has already been answered, but I couldn'tunderstand how to do it by the answers I found online.
I am making a 2d platformer and I have a problem: when I reach the end of the map with my player gameobject, the camera shows the background color, whilw I would just prefer to stop it when it reaches the end of the map. It should be able to stop whatever the resolution of the monitor/screen/game window is in order not to ever show what's over the border.
When the camera stops, though, the player should still be able to walk towards the wall.
Thanks to anyone who can help me.
Your answer
Follow this Question
Related Questions
I want to make my camera follow the player ONLY when the player is on solid ground [2D] 0 Answers
Is there a way to smoothly change a float number between two numbers when a key is pressed? 1 Answer
I want to make my camera follow the player ONLY when the player is on solid ground [2D] 1 Answer
Changing gravity depending on character/camera rotation 0 Answers
How to address a 2D animation flaw during a ledge climb? 0 Answers