How do you move a picture (Sprite) To The Right Infinitely?
Hi guys, I am working on a 2D infinite runner game, and I don't know how to Move a picture to the right! I know it's simple but can someone please help me? I don't have and/or can't find a script.
Comment
Best Answer
Answer by ntl92bk · Apr 12, 2016 at 05:00 AM
Try this public class InfinityMoveScript : MonoBehaviour {
float speed = 10.0f;
// Update is called once per frame
void Update () {
transform.Translate (Vector2.right * speed * Time.deltaTime);
}
}