Search Unity

Question Player moves faster when run in unity, but moves slower when run in the build.

Discussion in 'Visual Scripting' started by korbib01, Apr 12, 2021.

  1. korbib01

    korbib01

    Joined:
    Feb 5, 2021
    Posts:
    2
    I'm using bolt. So, the player's movement speed is much slower in the build than the editor. It's not the speed of the game that's slow, the player just doesn't move as fast. Jumps just as high, moves in the air fine, but on ground he can't even move. Attached is my movement script and I hope this helps in diagnosing my problem. I'm a very beginner programmer, so could you explain in words I could understand?
     

    Attached Files:

    • help.png
      help.png
      File size:
      213.4 KB
      Views:
      313
    • help.png
      help.png
      File size:
      213.4 KB
      Views:
      304
  2. unity_OGXtbUJUjMcirg

    unity_OGXtbUJUjMcirg

    Joined:
    Oct 7, 2022
    Posts:
    1
    it happends the same to me but i use c sharp
     
  3. REDACT3D_

    REDACT3D_

    Joined:
    Nov 8, 2020
    Posts:
    222
    I would assume it's because there's nothing that takes current frame or time into account.

    you can add a thing that makes stuff move relative to game time.
    this way when you're lagging the computer with commands it still functions at a predictable clock speed.

    Normally you see folks multiplying by Delta Time to obtain this corrected value to move objects with.
    Capture.PNG
     
    Last edited: Oct 8, 2022