Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help me with this Error

Discussion in 'Getting Started' started by gigawolf860, Oct 11, 2023.

?

Why that Error?

  1. One answer to the error may be the script that I copy from a tutorial had something that don't work

    0 vote(s)
    0.0%
  2. like it should.

    0 vote(s)
    0.0%
  1. gigawolf860

    gigawolf860

    Joined:
    Oct 11, 2023
    Posts:
    1
    I was starting to understand Unity creating a video game, until this error just popped up, if know what happen and the solution, please let me know.  Screenshot 2023-10-10 192553.png Screenshot 2023-10-10 191515.png
     
  2. BABIA_GameStudio

    BABIA_GameStudio

    Joined:
    Mar 31, 2020
    Posts:
    488
    The error is clearly telling you that the error is on line 18 (the first number in the brackets), and if you look at that line you should be able to see that you have typed something wrong.
    float InputMovimiento = Input GetAxis("Horizontal");

    You have put a space between
    Input
    and
    GetAxis
    instead of putting a
    .

    You need to type everything 100% correct.
    In future, please do not post images of your code - use the code tags that are part of the forum. Otherwise people responding have to type everything out again just to help you.
     
    Chubzdoomer likes this.