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.

Question freeCodeCamp 'Learn Unity - Beginners Game Development Tutorial'

Discussion in 'Getting Started' started by Naturalis616, Nov 24, 2022.

  1. Naturalis616

    Naturalis616

    Joined:
    Nov 24, 2022
    Posts:
    1
    i am recieving this error when i try to program the 'playermovement' script onto the sprite.

    Assets\Scripts\Player.cs(5,36): error CS1514: { expected
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    8,909
    This isn't something to post on the 2D forum.

    I'll move your post to the Getting Started forum.

    All it's telling you though is that you've typed it wrong when trying to follow what to type out the tutorial. Line 5 of that script or prior to it. The compiler was expected a "{". Your job is to go back and look at the code, not ask others to do that for you TBH.

    Also, it should be obvious that nobody can see what you've typed either. :)
     
  3. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    831
    Show us your code, using CODE tags, if it's showing errors it'll probably be riddled with typos.