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