Junior Programmer Course - Issues with "Unit 1 - Player Control": Input.GetAxis not working

Hi there,

I'm new to this forum and unsure if this is the right place to post this. Please let me know if there is somewhere more appropriate.

I currently working thought the Junior Programming course and I'm stuck on "Unit 1 - Player Control" and in particular "Lesson 1.4 - Step into the Driver's Seat". The "horizontalInput" variable does not seem to be working even tho I have copied the course instructions (See below).

Am I missing something or is this possible an outdated lesson with the latest version of Unity?

Thanks in advance to anyone who replies!


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
    public float speed = 5.0f;
    public float turnSpeed;
    public float horizontalInput;
    // Start is called before the first frame update
    void Start()


    // Update is called once per frame
    void Update()
        horizontalInput = Input.GetAxis("Horizontal");

        transform.Translate(Vector3.forward * Time.deltaTime * speed);
        transform.Translate(Vector3.right * Time.deltaTime * turnSpeed * horizontalInput);


I am having the same issue and can't find any solutions :(

Same here.. I can see the numbers in the Horizontal Input field in the inspector changing, so the code is definitely right. The object itself just isn't moving.

Set the turn speed to something other than 0.

8394159--1107810--turn speed.PNG