Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity 2d camera like Jump King

Discussion in '2D' started by Begard, Dec 13, 2022.

  1. Begard

    Begard

    Joined:
    Dec 12, 2022
    Posts:
    4
    I am making a wish.com version of Jump King and i have met a problem where when i leave the camera, it just stays behind (obviously I haven't done anything to change it) does anyone know what to do to change that?
     
  2. AngryProgrammer

    AngryProgrammer

    Joined:
    Jun 4, 2019
    Posts:
    437
    Simple solution: drag and drop the camera in the hierarchy into the player object. Then the camera will follow the player object.

    If you need a more advanced solution, you'll need to explore the Cinemachine manual.
     
  3. Begard

    Begard

    Joined:
    Dec 12, 2022
    Posts:
    4
    Thanks for quick reply it worked like intended