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);
}
}