Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
removed meta tags; formatted code
Source Link
Gnemlock
  • 5.3k
  • 5
  • 30
  • 60

When my character moves inthrough my cam follow playercameras 'FollowPlayer' script, the backroundbackground just looks really glitchy and bad, Is there anyway to fix thatthis? heres my script

using UnityEngine; using System.Collections; public class FollowPlayer This is my script: MonoBehaviour { Transform bar;

using UnityEngine;
using System.Collections;
public class FollowPlayer : MonoBehaviour {
    Transform bar;

    void Start() {
        bar = GameObject.Find("PlayerMovingBar").transform;
    }

    void Update() {
        transform.position = new Vector3(
            bar.position.x, transform.position.y, transform.position.z);
    }
}

}

When my character moves in my cam follow player script the backround just looks really glitchy and bad, Is there anyway to fix that? heres my script

using UnityEngine; using System.Collections; public class FollowPlayer : MonoBehaviour { Transform bar;

 void Start() {
    bar = GameObject.Find("PlayerMovingBar").transform;
 }

 void Update() {
    transform.position = new Vector3(bar.position.x, transform.position.y, transform.position.z);
 }

}

When my character moves through my cameras 'FollowPlayer' script, the background just looks really glitchy and bad Is there anyway to fix this?

This is my script:

using UnityEngine;
using System.Collections;
public class FollowPlayer : MonoBehaviour {
    Transform bar;

    void Start() {
        bar = GameObject.Find("PlayerMovingBar").transform;
    }

    void Update() {
        transform.position = new Vector3(
            bar.position.x, transform.position.y, transform.position.z);
    }
}
edited tags
Link
Source Link

How to make camera smooth when following player

When my character moves in my cam follow player script the backround just looks really glitchy and bad, Is there anyway to fix that? heres my script

using UnityEngine; using System.Collections; public class FollowPlayer : MonoBehaviour { Transform bar;

 void Start() {
    bar = GameObject.Find("PlayerMovingBar").transform;
 }

 void Update() {
    transform.position = new Vector3(bar.position.x, transform.position.y, transform.position.z);
 }

}