var speed = 0.5;
function Update () {
var x = Input GetAxis (“Horizontal”) * Time.deltaTime * speed;
var z = Input GetAxis (“Vertical”) * Time.deltaTime * speed;
trasform.Translate(x, 0, z);
}
var speed = 0.5;
function Update () {
var x = Input GetAxis (“Horizontal”) * Time.deltaTime * speed;
var z = Input GetAxis (“Vertical”) * Time.deltaTime * speed;
trasform.Translate(x, 0, z);
}
Try spelling ‘transform’ correctly. Programming languages are very picky! You also need to have full stops (.) in between Input and GetAxis- otherwise it doesn’t know what GetAxis is talking about.
var x = Input.GetAxis("Horizontal") * Time.deltaTime * speed;
transform.Translate(x, 0, z);
Thank you . It helped a lot.