Search Unity

Unity 2D: Static Camera Follow

Discussion in '2D' started by sidcool3600, Dec 2, 2019.

  1. sidcool3600

    sidcool3600

    Joined:
    Dec 2, 2019
    Posts:
    4
    How can I achieve a scene where if my main character exits the boundaries, the camera immediately moves a certain distance? Kind of like a top down RPG type of camera, but without fading, and this time, it is a platformer. Any help would be appreciated!

    upload_2019-12-2_17-13-50.png
     
  2. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    You can use Clamping and offsets to achieve this effect. Here's a video to get you started :)