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