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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Camera help for endless runner

Discussion in 'Getting Started' started by soniclinkerman, Feb 22, 2017.

  1. soniclinkerman

    soniclinkerman

    Joined:
    Feb 20, 2017
    Posts:
    9
    Hello, I am making an endless runner for my first game and am having difficulties with the camera following the player. I'm not sure if I scripted it wrong but my game does not tell me any script is wrong so I'm not sure if I didn't put the write code. If you could help I'd appreciate it.

    Thx
     
  2. Buhlaine

    Buhlaine

    Community Manager

    Joined:
    Feb 5, 2016
    Posts:
    348
    Hi @soniclinkerman! It would be great if you could share your work/script with the community, the best way for everyone to help is if they can see what you suspect is broken. We've also got a lot of great resources to help with your first game on the Learn page!
     
    SarfaraazAlladin likes this.
  3. soniclinkerman

    soniclinkerman

    Joined:
    Feb 20, 2017
    Posts:
    9
    Yeah sure ! How would I go about showing my script?
     
  4. SarfaraazAlladin

    SarfaraazAlladin

    Joined:
    Dec 20, 2013
    Posts:
    280
    Buhlaine and Ryiah like this.
  5. smacbride

    smacbride

    Joined:
    Jan 10, 2015
    Posts:
    50
    Check out the example scenes in the standard unity assets. They have some good examples of a camera rig that sits on a pivot and follows the player around. The pivot helps the camera rig move around obstacles etc. in the scene while following the player. It's a good basis to start with.
     
  6. soniclinkerman

    soniclinkerman

    Joined:
    Feb 20, 2017
    Posts:
    9
    Thank you guys so much, I seemed to find the problem and my development seems to be going well. It's not huge but I hope you guys would be willing to play it when its complete :D