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

First game

Discussion in 'Getting Started' started by Laur155, Mar 2, 2017.

  1. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
    Hello guys i just started making my first game folllowing the tutorial about the rolling ball
    For some reason the ball is not moving
    What do need to see so you can tell me what is wrong?
    Thank you
     
  2. boxhallowed

    boxhallowed

    Joined:
    Mar 31, 2015
    Posts:
    513
    You need to post what you have already done. Any code needs to be in code tags.
     
    JoeStrout likes this.
  3. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
  4. Ryeath

    Ryeath

    Joined:
    Dec 4, 2016
    Posts:
    265
    Is your Playermovement script attached to your player? I don't see it in the player inspector picture you posted.

    If it is attached, a common mistake is to forget to enter a value for speed, make sure you have entered a speed value also.

    Code looks okay.

    Not sure you need to have a rigidbody attached to your ground.
     
    Last edited: Mar 3, 2017
  5. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
  6. boxhallowed

    boxhallowed

    Joined:
    Mar 31, 2015
    Posts:
    513

    Attached Files:

  7. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
    I do not kwon
     
  8. smacbride

    smacbride

    Joined:
    Jan 10, 2015
    Posts:
    50
    The variable movement is miss-spelled so the compiler sees it as two different variables.
     
  9. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
    So what i have to do to fix it?
     
  10. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,148
    Correct the spelling. You're referring to it as movent in one location and as movement in another. Both have to match.
     
  11. Laur155

    Laur155

    Joined:
    Mar 2, 2017
    Posts:
    30
    Now i saw it hahahaa
    Tnx