Search Unity

I'm a complete noobie please help

Discussion in 'Scripting' started by Ragnarww, Jan 19, 2019.

  1. Ragnarww

    Ragnarww

    Joined:
    Jan 19, 2019
    Posts:
    1
    I had tried follow multiple tutorials but when I try to do a public float (check pictures) it doesn't show up in inspector. If you need additional information to help me I'll do my best.

    p.s: Don't roast me to hard. d.s

    2019-01-19.png 2019-01-19 (1)_LI.jpg 2019-01-19.png 2019-01-19 (1)_LI.jpg
     

    Attached Files:

  2. sylon

    sylon

    Joined:
    Mar 5, 2017
    Posts:
    246
    Hi.

    There is an error in your script. That's why that float hasn't turned up yet.
    By the way, it's better to post your code using code tags (https://forum.unity.com/threads/using-code-tags-properly.143875/)

    There are a few things i can tell from your screenshot.
    - line 20 (there is a "." after GetAxis. -> remove it)
    - line 22 (new Vector3(Horizontal,0,0f Vertical); should probably be : new Vector3(Horizontal, 0f, Vertical);

    keep an eye on those red wiggly lines in your code editor.
    and your unity console output.

    Hope it helps.
     
    TaleOf4Gamers likes this.