Search Unity

Cant make player move

Discussion in 'Physics' started by sktvete, Sep 21, 2019.

  1. sktvete

    sktvete

    Joined:
    Sep 19, 2019
    Posts:
    2
    I have been trying to make the player move for ages, and neither me or my friends know how to fix the problem. We are all new to programming and very new to C#. Ill put the game as a file with the thread.
    I followed this tuturial when I tried to make movement with Jetbrains Rider. (
    )
    (btw I lost my last save, but it didnt work there either.)

    ok so I cant upload the whole project, but these two scripts sets my game on pause and I cant unpause. When I disable the scripts everything works, except from movement.
     

    Attached Files:

  2. uotsabchakma

    uotsabchakma

    Joined:
    Sep 17, 2019
    Posts:
    93
    I don't have experience about scripting well yet, because I don't have monodevelop or visual studio. But I learned many online unity scripting tutorials. Now I understand about many basic words for scripting.
    I think you would set,
    float horizontalMove = 0f;
    That 0f as 1f. (PlayerMovement.cs)
    If it dosen't works, so sorry I can't help yet. reset it again.
    Except, more information would be needed about your game to solve this.
     
  3. sktvete

    sktvete

    Joined:
    Sep 19, 2019
    Posts:
    2
    Thank you, but that didnt work.,
    I didnt figure out how to share the game, so I just shared the scripts, the problem is not that the player isnt walking, the problem is that it wont run with the script. The pause butten is paused when I try to play, and it cant be unpaused.