ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

UNITY 3D PLAYER MOVEMENT in 2 MINUTES! FPS Shooter

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ค. 2023
  • Walk, Run, Jump and Sprint! Easily customizable!
    A very simple player movement script that will get you started on your 3d project. Code is pinned in comments.
    3D, First person (easy change to third person).
    Sub for more :)

ความคิดเห็น • 605

  • @Brogrammer1
    @Brogrammer1  ปีที่แล้ว +218

    Here is the script. If you are confused please let me know!
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    [RequireComponent(typeof(CharacterController))]
    public class PlayerMovement : MonoBehaviour
    {
    public Camera playerCamera;
    public float walkSpeed = 6f;
    public float runSpeed = 12f;
    public float jumpPower = 7f;
    public float gravity = 10f;
    public float lookSpeed = 2f;
    public float lookXLimit = 45f;
    public float defaultHeight = 2f;
    public float crouchHeight = 1f;
    public float crouchSpeed = 3f;
    private Vector3 moveDirection = Vector3.zero;
    private float rotationX = 0;
    private CharacterController characterController;
    private bool canMove = true;
    void Start()
    {
    characterController = GetComponent();
    Cursor.lockState = CursorLockMode.Locked;
    Cursor.visible = false;
    }
    void Update()
    {
    Vector3 forward = transform.TransformDirection(Vector3.forward);
    Vector3 right = transform.TransformDirection(Vector3.right);
    bool isRunning = Input.GetKey(KeyCode.LeftShift);
    float curSpeedX = canMove ? (isRunning ? runSpeed : walkSpeed) * Input.GetAxis("Vertical") : 0;
    float curSpeedY = canMove ? (isRunning ? runSpeed : walkSpeed) * Input.GetAxis("Horizontal") : 0;
    float movementDirectionY = moveDirection.y;
    moveDirection = (forward * curSpeedX) + (right * curSpeedY);
    if (Input.GetButton("Jump") && canMove && characterController.isGrounded)
    {
    moveDirection.y = jumpPower;
    }
    else
    {
    moveDirection.y = movementDirectionY;
    }
    if (!characterController.isGrounded)
    {
    moveDirection.y -= gravity * Time.deltaTime;
    }
    if (Input.GetKey(KeyCode.R) && canMove)
    {
    characterController.height = crouchHeight;
    walkSpeed = crouchSpeed;
    runSpeed = crouchSpeed;
    }
    else
    {
    characterController.height = defaultHeight;
    walkSpeed = 6f;
    runSpeed = 12f;
    }
    characterController.Move(moveDirection * Time.deltaTime);
    if (canMove)
    {
    rotationX += -Input.GetAxis("Mouse Y") * lookSpeed;
    rotationX = Mathf.Clamp(rotationX, -lookXLimit, lookXLimit);
    playerCamera.transform.localRotation = Quaternion.Euler(rotationX, 0, 0);
    transform.rotation *= Quaternion.Euler(0, Input.GetAxis("Mouse X") * lookSpeed, 0);
    }
    }
    }

    • @JeditrexBruh
      @JeditrexBruh 11 หลายเดือนก่อน +3

      baller

    • @danielandhenry1082
      @danielandhenry1082 10 หลายเดือนก่อน

      THANK YOU!!!

    • @MAMAHIDGAMEROFFICIAL
      @MAMAHIDGAMEROFFICIAL 10 หลายเดือนก่อน +1

      ❤🎉

    • @recomical
      @recomical 9 หลายเดือนก่อน +1

      ConsoIe says playerCamera is not defined

    • @recomical
      @recomical 9 หลายเดือนก่อน +1

      Wait nevermind

  • @oryxdotpng
    @oryxdotpng 5 หลายเดือนก่อน +13

    This is the best coding tutorial I have gotten so far. When I first tried Unity, I was unable to comprehend the game engine and quit. Now, a few months later, I have a working 3D project. Thank you. So much.

    • @Brogrammer1
      @Brogrammer1  5 หลายเดือนก่อน +1

      You're very welcome!

    • @user-sy7ct2ls8t
      @user-sy7ct2ls8t 27 วันที่ผ่านมา

      @@Brogrammer1 Make an explanation video

  • @stuff62720
    @stuff62720 ปีที่แล้ว +19

    Hay I know you posted this 2 months ago but I’m having a bit of trouble because when I add the script as a component it doesn’t add the character controller and the script shows but has no variables like “Camera” and “walk speed” it only has the name of the script.

    • @howtodie_1
      @howtodie_1 8 หลายเดือนก่อน +1

      same

    • @MaxwellTheAnimator
      @MaxwellTheAnimator 7 หลายเดือนก่อน

      Same

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +2

      Sorry for the super late reply - Make sure the name of the script is the exact same as the one I used in the video. That could be the issue.

    • @Chris-Stikman
      @Chris-Stikman 6 หลายเดือนก่อน

      Ok because I’m having the same issue

    • @stuff62720
      @stuff62720 6 หลายเดือนก่อน

      @@Chris-Stikman I fixed the issue, you kinda just have to re-save the script until it works

  • @ccpbg
    @ccpbg 25 วันที่ผ่านมา +1

    Bro thanks so much I watched a lot of other videos and I made it for so long but it didn’t even work but thanks to you you even put the script in the commans

  • @Redblocks_14
    @Redblocks_14 4 หลายเดือนก่อน +26

    Everything worked fine except the fact that My character decided just not to obey the laws of physics and follow through the ground so

    • @kunal-ko
      @kunal-ko 4 หลายเดือนก่อน +4

      Add a rigidbody component to it. Should work fine

    • @fardplayer69
      @fardplayer69 3 หลายเดือนก่อน

      Cause you didn't add a capsule collider to it or maybe you didn't add a collider to your ground

    • @QuaninVN
      @QuaninVN 3 หลายเดือนก่อน

      Fr

    • @UrPlagued-hd5tr
      @UrPlagued-hd5tr หลายเดือนก่อน

      😂

  • @ikerpaezrodriguez9735
    @ikerpaezrodriguez9735 6 วันที่ผ่านมา

    Finally a tutorial that works i love you bro keep up the good work.

  • @acceleratingthesupernatural
    @acceleratingthesupernatural 8 หลายเดือนก่อน +16

    Bro I fucking love you. I had spent half an hour battling with like 3 scripts for the alternative input manager from unity until I decided to scrap the entire movement system and look for another solution. Yours worked like a charm, you are a legend man

    • @beefytime1374
      @beefytime1374 7 หลายเดือนก่อน +3

      Same

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +7

      Glad I could help :)

  • @cammyposey5054
    @cammyposey5054 4 หลายเดือนก่อน +1

    If your player is falling then click the player folder and a green line will show up. Click the capsule and move it up to the green line and it should work!

  • @spaghettiHell
    @spaghettiHell 2 หลายเดือนก่อน

    I love you, you are the best, YOU PUT THE SCRIPT DOWN, THE SCRIPT WORKS PERFECTLY, YOU SOLVED A 5 HOUR LONG PROBLEM IN SECONDS, YOU NEED ALL THE SUBS

  • @brackers10gaming232
    @brackers10gaming232 หลายเดือนก่อน +4

    can someone help my floor keeps falling into the void and i can't find a tutorial to fix it i only started unity yesterday and if u can help the will me appreciated

  • @NicestAngel
    @NicestAngel 2 หลายเดือนก่อน +1

    EEK!! THANK YOU SO MUCH BRO, I LOVE YOU!! (not in a weird way)

  • @BananaPuddingMuntjac
    @BananaPuddingMuntjac ปีที่แล้ว +14

    This was really helpful, I couldn’t find a tutorial that I actually understood until now

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +6

      Glad I could help

    • @Ossmania
      @Ossmania 6 หลายเดือนก่อน +2

      @@Brogrammer1 You earned a sub Thanks

    • @GKBGAMER9733
      @GKBGAMER9733 4 หลายเดือนก่อน +1

      It doesn’t work 😢

    • @Ossmania
      @Ossmania 4 หลายเดือนก่อน

      @@GKBGAMER9733 It does

    • @gilmannguyen9434
      @gilmannguyen9434 4 หลายเดือนก่อน +2

      if we just copy the code, that not mean we understand it
      ...

  • @user-ez1ib1wy2z
    @user-ez1ib1wy2z 9 วันที่ผ่านมา

    Thank you so Fuuuuging much bro easies tuturial ever

  • @lakkibro47
    @lakkibro47 2 หลายเดือนก่อน +4

    bro I can't add playermovement as component its show compile error please tell me how solve it i am beginner in unity 😥

    • @Jr_radman-true
      @Jr_radman-true 2 หลายเดือนก่อน +1

      same

    • @lakkibro47
      @lakkibro47 2 หลายเดือนก่อน +1

      @@Jr_radman-true 😭

  • @landonhampton3799
    @landonhampton3799 หลายเดือนก่อน

    Thanks for this! Worked completely fine.

  • @spiffykanger7901
    @spiffykanger7901 หลายเดือนก่อน +2

    no intro, no bullshit, just coding. Perfection

  • @KevinKolack
    @KevinKolack 8 หลายเดือนก่อน +1

    Thanks! So many tutorials but this one was the best!

    • @IgorBernardo-dd3fr
      @IgorBernardo-dd3fr 8 หลายเดือนก่อน +1

      HI
      HOW TO TURN THE CAMERA SIDEWAYS

  • @NVVideo7
    @NVVideo7 27 วันที่ผ่านมา +1

    THank you so much i can a map but i dont know ho to make scrpt for walk soo thank you so much

  • @OfficialKaiVerse
    @OfficialKaiVerse 8 หลายเดือนก่อน +1

    Very good Tutorial easy to setup so customizable I subscribed btw :)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +2

      Thanks for the sub! I'm glad it works

  • @KEICOSCOMEDY
    @KEICOSCOMEDY 2 หลายเดือนก่อน

    Thank you so much! Worked like a charm!

  • @alexkarivelil6350
    @alexkarivelil6350 หลายเดือนก่อน +1

    Fucki** thx bro it’s like the 100th tutorial I do and 99th of them doesn’t work appreciating you sorry my English I’m French

  • @Redblocks_14
    @Redblocks_14 4 หลายเดือนก่อน +1

    I would like A kind of detailed tutorial that shows you how to like change the speed and jump height I like something like that

  • @EasyTutorials3845
    @EasyTutorials3845 3 หลายเดือนก่อน +2

    when i try to add the main camera to the script, i can't find it. its just script:player movement(name of the script)

    • @ivanmajetic99
      @ivanmajetic99 3 หลายเดือนก่อน

      how did you fix it

  • @Redblocks_14
    @Redblocks_14 4 หลายเดือนก่อน +1

    This is a really good video it helped me

  • @UnleasedRL
    @UnleasedRL 10 หลายเดือนก่อน +1

    Thanks for the help because I'm new to unity :)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      You're welcome :)

  • @kiwiking15
    @kiwiking15 2 หลายเดือนก่อน

    its not working the script isnt giving me any extra options

  • @Streed-vy4sh
    @Streed-vy4sh 7 หลายเดือนก่อน +1

    bro thank you so much this really helped me

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad it helped

  • @SuperAdonisGaming
    @SuperAdonisGaming 4 หลายเดือนก่อน +1

    I tried third person but the camera keeps on turning around when i start up the game and wont follow the player

    • @HaiderSaqib-id4ry
      @HaiderSaqib-id4ry 2 หลายเดือนก่อน

      hmm try to make another script with camera movement and delete the camera movement from the movement script and like just make a new one or search up a new script

  • @themrinigo8686
    @themrinigo8686 8 หลายเดือนก่อน

    thank you, Ive been serching for hours how to make my player move and youre tutorial was the only on that worked, thank you

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad I could help!

  • @GamerGuy69-Q
    @GamerGuy69-Q 2 หลายเดือนก่อน +1

    There is a problem. I tell my PC to open the code in GOOGLE. But whats the problem? I cant change the script.

    • @GamerGuy69-Q
      @GamerGuy69-Q 2 หลายเดือนก่อน

      Nvm i figured it out

    • @BankingSoda
      @BankingSoda 2 หลายเดือนก่อน

      @@GamerGuy69-Q WHAT WAS IT

  • @Laggyboiii
    @Laggyboiii 9 หลายเดือนก่อน

    hey, i wanted to thank you. i needed this for a schoolproject i need to finish next week. thanks

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      A bit late, but im glad I could help :)

  • @pandexVR
    @pandexVR 2 หลายเดือนก่อน

    this is the PERFECT Tutorial its short and everything works perfect this is the first game i ever make and im so happy thx a lot

  • @keyxe-np2lm
    @keyxe-np2lm 2 หลายเดือนก่อน

    thank you brother i was struggling tryna learn the code but u made it so easy great to help me study and referance off of big thanks

  • @akuma_btw
    @akuma_btw 2 หลายเดือนก่อน

    First of all, THANK YOU SO MUCH. Besides this, could you please create more videos similar to this one? It's helped me a lot, and it would be great if you could help with other things as well

  • @christophergamer626
    @christophergamer626 4 หลายเดือนก่อน +1

    for some reason i have a bug, my player is moving without control, if you make a vid of how to fix that than you will get 10 subs (because i have this and other 9 devices)

  • @AviyaleTales
    @AviyaleTales ปีที่แล้ว +9

    Hey thank you! I used your code for my game to make snappy movement and its perfectly scalable and clean! I have some big ideas and needed a good movement base to work off of so thank you so much

  • @easy_fx
    @easy_fx ปีที่แล้ว +1

    Can you start a new Horror Game Tutorial series? Great to see a new developer, whom I can follow live. All the best!

    • @Brogrammer1
      @Brogrammer1  ปีที่แล้ว +2

      I’m actually making a small one right now, it’s running out really fun

    • @easy_fx
      @easy_fx ปีที่แล้ว +1

      @@Brogrammer1 Oh, you're gonna upload tutorials too?

  • @hepona6073
    @hepona6073 6 หลายเดือนก่อน

    bro you are my hero. i have been stuck at the player movement for 4 years but finally i found a working tutorial. i love you so much

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      No problem!

  • @majkys6084
    @majkys6084 2 หลายเดือนก่อน

    hope you make a discord server one day im really strugglin with this shit so even just talking with someone that knows about it would help me a ton:D

  • @TheCraft100
    @TheCraft100 10 หลายเดือนก่อน +1

    Bro Your A Frickin LIFESAVER man, THANKS

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +1

      No Problem!

  • @MemoryYT11
    @MemoryYT11 23 วันที่ผ่านมา

    I would suggest putting a collider on the camera so that you do not see through things

  • @TherealMcnugget
    @TherealMcnugget 2 หลายเดือนก่อน

    Thanks this helped me out a lot!

  • @fireblaze5260
    @fireblaze5260 4 หลายเดือนก่อน

    bro thank you so much i wouldve never been able to do anything ever and wouldve deleted unity immediately if i didnt have this

  • @frogo333
    @frogo333 9 หลายเดือนก่อน

    bro thanks so much it works perfectly and it is sick and easy bro keep the good work up

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Happy to hear it works :)

  • @Random99993
    @Random99993 8 หลายเดือนก่อน

    First totorial that works. Thank you

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      No Problem!

  • @Reedinioh77
    @Reedinioh77 8 หลายเดือนก่อน +9

    I HAVE BEEN SEARCHING THROUGH SO MANY TUTORIALS AND UR IS THE FIRST TO ACTUALLY WOKR!!!!!!

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +2

      I'm glad to hear it worked :)

  • @clade.official
    @clade.official 6 วันที่ผ่านมา

    yo thanks so much im new to unity and everytime i try to find a video it always doesnt work but this one does!

  • @takundachamaona
    @takundachamaona หลายเดือนก่อน

    Thanks man this was a lot of help❤

  • @ShxdowsMusics
    @ShxdowsMusics 3 หลายเดือนก่อน +1

    you are a LIFE SAVER!!! i was so confused since i dont know c#, thank you a lot!

  • @TxY01V_
    @TxY01V_ 3 หลายเดือนก่อน

    Thank u very much for this great tutorial :D

  • @intelIigentz
    @intelIigentz 5 หลายเดือนก่อน

    ur such a W bro, ive been looking for wasd controls since like, january, and this one finally worked, and i didnt expect it to only take 2 minutes, (i know it wouldve taken way longer if you didnt just let us copy the code, and instead walked us through the code like others)

  • @beefytime1374
    @beefytime1374 8 หลายเดือนก่อน +1

    Easiest and fastest fps view game controller thankyou so much.

  • @allentothemax1223
    @allentothemax1223 6 หลายเดือนก่อน +1

    thats why i love ctrl c and v

  • @VkStudio_
    @VkStudio_ 10 หลายเดือนก่อน +4

    not only did this man make a 2 min tutorial straight to the point, but even put the script in the comments. Absolute chad. Keep up the great work. However im having a small problem. When i change the values of the Run speed & walk speed and then start the game the run speed resets to 12 and the walk speed resets to 6. How can i fix this?

    • @fritzwulf
      @fritzwulf 10 หลายเดือนก่อน

      Did you make sure that you edited the values with the play button unselected? If you change anything while in play mode (even if you also have it paused) it will reset.

    • @eklerka25-official
      @eklerka25-official 7 หลายเดือนก่อน

      Edit the code on lines 67 and 68. It says that if you are not crouching or sprinting, it will set these values ​​to 6 and 12

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +1

      Sorry for the late reply, instead of through unity, try changing the values through the actual script. Just look for where I have the walk and run speed set and change the values there. You can use control f to search for keywords.

  • @user-dh7ko7xw1d
    @user-dh7ko7xw1d 6 หลายเดือนก่อน

    Thank you wery much this tutorial was quick and clear

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      You're welcome!

  • @hannahgreen9881
    @hannahgreen9881 หลายเดือนก่อน

    Thanks so much for script, you just write my 1st script

  • @ajizfunny
    @ajizfunny 2 หลายเดือนก่อน

    Bro thank you, you helped so much!!!!

  • @kutlutortop4245
    @kutlutortop4245 8 หลายเดือนก่อน

    holyyyyy this is the tutorial that was the easiest to understand. also thank you so much for posting the code in the comments, I don't have to pause the video every 10 seconds to write the code and waste time. Instead i can look through it myself after it is in a working state.

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      I like to make my videos as easy as possible to follow :) glad I could help

  • @narukirk
    @narukirk ปีที่แล้ว +1

    Thanks! This tutorial was really helpfull for my game.

    • @Brogrammer1
      @Brogrammer1  ปีที่แล้ว

      Great!

    • @bingus_MC
      @bingus_MC 8 หลายเดือนก่อน

      @@Brogrammer1 i can't rotate :(
      can you help me?

    • @IgorBernardo-dd3fr
      @IgorBernardo-dd3fr 8 หลายเดือนก่อน

      Hi
      HOW TO TURN THE CAMERA SIDEWAYS@@Brogrammer1

  • @psychosniper1798
    @psychosniper1798 22 วันที่ผ่านมา

    thanks a lot this helps:)

  • @Da_best_in_za_west
    @Da_best_in_za_west 4 หลายเดือนก่อน

    Bro im totally new to unity and this tutorial will help me with alot of games

  • @fugey1701
    @fugey1701 11 หลายเดือนก่อน +1

    it did work but For me I was not impressed I started to have problem like the camera not sticking to the player and even with colliders for my ground it still falls thought but kinda helpfull

  • @Fall_3N
    @Fall_3N 3 หลายเดือนก่อน +1

    You are a legend bro

  • @zerg6205
    @zerg6205 5 หลายเดือนก่อน +1

    VERY helpful and simple! Thank You for nailing this tutorial!

  • @piyush-editz61
    @piyush-editz61 ปีที่แล้ว +1

    op bro good job and pls make the video how to make AI enemies in your game in unity

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +2

      Sorry for the late response. I will work on that video soon! I just upload a working gun, so that could get you started on your ai journey :)

    • @piyush-editz61
      @piyush-editz61 6 หลายเดือนก่อน +1

      @@Brogrammer1 thanks bro for the Gun tutorial its really helpful
      Support from India

  • @DeApple_king
    @DeApple_king 6 หลายเดือนก่อน

    I loved the video and it really helped me a lot! Thanks!

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad it helped!

  • @Redblocks_14
    @Redblocks_14 4 หลายเดือนก่อน +2

    Hi I have a question Do you think you can make some more videos I watched both your videos and they were really cool and they helped me make my games can you make some more like maybe just 1 or 2 😊😊😊

  • @dr.shwetatomar1923
    @dr.shwetatomar1923 23 วันที่ผ่านมา

    very simple! TY

  • @aM_Tovi
    @aM_Tovi 5 หลายเดือนก่อน +4

    Thanks a ton brother, have been watching videos for more than an hour but couldn't move my player correctly but you gave the solution to my problem.
    You got a new sub😊

  • @SneakyVR496
    @SneakyVR496 14 วันที่ผ่านมา

    Ik its been 1 yr but when I add the script to my character empty it makes the capsule fall threw the ground?

  • @Xxyrow
    @Xxyrow 7 หลายเดือนก่อน

    thank you this was super useful :)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad it was helpful!

  • @timmytheturtle1012
    @timmytheturtle1012 6 หลายเดือนก่อน

    Perfect job. Much more in detail unlike some other tutorials that already expect you to know stuff. I managed to make it with no issues. Thank you!

  • @Bashi_boi
    @Bashi_boi 7 หลายเดือนก่อน

    Really great tutorial! I can finaly start making stuff!

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Great to hear!

  • @Footbaltopic
    @Footbaltopic 7 หลายเดือนก่อน

    great video man 👍

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Appreciate it!

  • @Darknags
    @Darknags หลายเดือนก่อน

    If the script don’t work just use chat for and say give me a script for walkibg

  • @adilmansoor1028
    @adilmansoor1028 6 หลายเดือนก่อน

    lifesaver!! please upload code a explanation video too. (+ you gained a subscriber)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad you liked it :)

  • @Verytiredyeti
    @Verytiredyeti หลายเดือนก่อน +1

    when i drag it in it just dosent work

  • @PersonalisedPetsLtd
    @PersonalisedPetsLtd 10 หลายเดือนก่อน +2

    i had 3 errors while adding your script and i dont know how to fix them pls could u tell me how to the errors were Assets/PlayerMovement.cs(23,10: error CS1529: A clause must precede all other elements defined in the namespace exept extern allies declarations

    • @PersonalisedPetsLtd
      @PersonalisedPetsLtd 10 หลายเดือนก่อน

      the other 2 were the same (errors)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Ensure that the name of the file is the exact name I used in the video! Also copy the code directly from the comments and use that.

  • @IkerL23
    @IkerL23 5 หลายเดือนก่อน

    This help me a lot to make a game thanks

  • @ThatLoserTyler
    @ThatLoserTyler หลายเดือนก่อน

    Awesome tutorial. Everything works except the variables don't save when changed in the inspector? I'll change run and walk to 4 and 8 for example, go to test play and it automatically resets them to 6 and 12.

  • @Z717F
    @Z717F หลายเดือนก่อน

    Can u do another version talking slower I have to pause every second but this is still helpful

  • @konrad9353
    @konrad9353 11 หลายเดือนก่อน +4

    this script is not working for me

  • @RGDFF
    @RGDFF 7 หลายเดือนก่อน

    hang on, let me launch unity!

  • @David64580
    @David64580 7 หลายเดือนก่อน +2

    THANK U SO MUCH MAN THIS IS MY LIKE 20TH TUTORIAL THAT I TRIED AND IT FINALLY WORKS THANKS

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Haha, glad I could help!

  • @BestEraUA
    @BestEraUA 11 หลายเดือนก่อน +1

    Thats literally the best video tutorial about fps control

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad you liked it :) More videos coming up as well

  • @GRATErug
    @GRATErug 17 วันที่ผ่านมา

    when i put the script into the player folder/ inspector side it just says default-material (Material)

  • @Bizdude32
    @Bizdude32 3 หลายเดือนก่อน

    this helped so much highly suggest!

  • @2_or3
    @2_or3 6 หลายเดือนก่อน

    hippity hoppity, this code is my property (this tut actually helped a lot thanks mate)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      No problem :)

  • @ponffffes
    @ponffffes 10 หลายเดือนก่อน +2

    Thank u man!!!

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน +1

      No Problem!

  • @Reedinioh77
    @Reedinioh77 8 หลายเดือนก่อน +2

    PLEASE KEEP UPLOADING

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Just uploaded another video - and more to come :)

  • @Kick-_-Off-_-Kings
    @Kick-_-Off-_-Kings 24 วันที่ผ่านมา

    YUR THE BESTTT

  • @DodoVerse1
    @DodoVerse1 หลายเดือนก่อน +1

    the things is wrong

  • @binkbonkbones3402
    @binkbonkbones3402 4 หลายเดือนก่อน

    Thanks for being efficient, but honestly you could use slowing down and explaining a little bit, you literally just skip through coloring the blocks and how you do it in less than 2 seconds while you explain something unrelated
    That's problematic for a tutorial when you have to slow down to quarter speed and still have to guess work what fucking key combo you use

  • @Cynthesilly
    @Cynthesilly 10 หลายเดือนก่อน +1

    Well... It sort of works. For me it doesn't turn or jump. It is first person but you cant do anything. When i press the play button it immiedelty falls through everything undergound

    • @thearchybambi
      @thearchybambi 5 หลายเดือนก่อน

      for me it falls through

  • @Wookie-1
    @Wookie-1 5 หลายเดือนก่อน +2

    Can you please help me ive been trying for ages and ive restarted the project loads of times but nothing works. At 1:40 when i drag and srop it there is no option for the player camrea and its just all greyed out please help ive looked at multiple videos but its just the same issue.

    • @Wookie-1
      @Wookie-1 5 หลายเดือนก่อน

      nvm i got it working

    • @DKsantana409
      @DKsantana409 5 หลายเดือนก่อน

      @@Wookie-1how did you fix it

    • @esxcape4756
      @esxcape4756 4 หลายเดือนก่อน

      @@Wookie-1 thats happening to me how did you fix it?

    • @jadenhefner5049
      @jadenhefner5049 3 หลายเดือนก่อน

      @@esxcape4756 me too its so annoying

  • @myriannel3109
    @myriannel3109 2 หลายเดือนก่อน

    The script doesn't work for me. :(( Any tips? I did absolutely everything you said. Thank you!

  • @codewithakthar-wc2nn
    @codewithakthar-wc2nn 9 หลายเดือนก่อน

    Great Brother ! .i was Looking For the Perfect Movement Script ,!

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad it works :)

  • @linusasbjrnsimonlautruplyn4537
    @linusasbjrnsimonlautruplyn4537 9 หลายเดือนก่อน +1

    For me it falls through the terrain even tho i have colliders for both they are not trigger (Fixed it i deleted the empty gameobject called player then i added the script to my player (game object)) (Fixed it)

    • @Brogrammer1
      @Brogrammer1  6 หลายเดือนก่อน

      Glad it hear its working now 👍

  • @TheSEWEGI
    @TheSEWEGI หลายเดือนก่อน

    When i run the scene i instantly clip through the plane =/

  • @TMP5_xd
    @TMP5_xd 5 หลายเดือนก่อน +1

    I've got a question, though I'm not sure if you'll answer given this is a 9 month old tutorial. The movement works overall, but I find that when moving diagonally the speed is increased. Do you have any idea on how to fix this?

    • @gokete3555
      @gokete3555 5 หลายเดือนก่อน

      don't fix it, it's a really known thing on movement systems, games like minecraft and karlson have it. it is not uncommon at all

    • @TMP5_xd
      @TMP5_xd 5 หลายเดือนก่อน

      @@gokete3555 Thing is, i don’t really want that in my game

    • @Dylanj8795
      @Dylanj8795 5 หลายเดือนก่อน

      @@TMP5_xd no one will notice that

    • @TMP5_xd
      @TMP5_xd 5 หลายเดือนก่อน

      @@Dylanj8795 They almost certainly will

    • @Dylanj8795
      @Dylanj8795 5 หลายเดือนก่อน

      @@TMP5_xd I have been playing games for a really long time now and I have never noticed that so….