my game is simple 2d game in unity 4.2.1f. In my game main camera is orthographic and size is 100. Main camera is still there is no script with camera. I move just the background and its jittering.I use simple translate in code.Here is the code sample…
function Update () {
var something : GameObject;
something = GameObject.Find("Game manager");
speed = something.GetComponent(gameSpeed).gamingSpeed;
transform.Translate(Vector3.down * Time.deltaTime*speed);
if(transform.position.y<=-200){
var plane3 =GameObject.FindGameObjectWithTag("plane3").transform;
transform.position = new Vector3(transform.position.x,plane3.position.y+200,transform.position.z);
transform.Translate(Vector3.down * Time.deltaTime*speed);
createCoin();
}
}
how to solve this?
thank you.