Question by
WhiteKoiPond · Nov 08, 2021 at 04:06 AM ·
c#scripting problemscripting beginner
Can't get my ball to move.
Hey all, I'm currently doing this tutorial.
For whatever reason when i copy the code i just cannot get my ball to move like in the tutorial.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bundy : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.Translate(Input.GetAxis("Horizontal"), 0, 0);
}
}
I'm 100% sure i've got it exactly but for whatever reason Unity just won't work with me on it. Could someone please point out how i'm being an idiot thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613045120im_/https://answers.unity.com/themes/thub/images/avi.jpg)