First-Person Controller for Unity Part 2 - FPS Move and Jump C# | Bolt(Visual Scripting) Parallel

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • Add Move and Jump to player controls of your Unity game.
    New Input System: • How to Use New Unity I...
    Part 1: • Unity First-Person Con...
    Support us: / smartpenguins
    Discord: / discord
    #Unity #CSharp #Bolt #gamedev #tutorials #nocode
    Music: www.orchestral... "Fantasy Adventure", "Sugar Fairies", "Eternal Story"

КОМЕНТАРІ • 159

  • @elbar5541
    @elbar5541 4 роки тому +20

    You're so underrated, mate!!! Keep it up

  • @o2xygen717
    @o2xygen717 3 роки тому +24

    If anybody wants to know how to get smooth movement (as in the Player accelerates and decelerates), use Vector3 Clamp Magnitude instead of Normalize. Then just set the max magnitude to 1. Otherwise the Player movement will be very jittery and there will be some lag when you stop moving.

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому +1

      Thanks you so much, my player would keep moving for a moment and that is one of the only issues I have left to fix for my game

    • @nuke2625
      @nuke2625 2 роки тому

      yea it worked thanx

    • @francescocalvi7096
      @francescocalvi7096 2 роки тому

      This works beautifully. Thank you

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому +5

      But is there any way to make it so the player immediately stops moving when you stop making him move

    • @doku5317
      @doku5317 2 роки тому

      LIFE SAVER THANK YOU SO MUCH 😭😭😭

  • @immersize-jeuximmersifsmob7006
    @immersize-jeuximmersifsmob7006 2 роки тому +1

    After watching all tutorials for visual scripting and turn myself crazy to it, i finally made it thanks to you.
    Awesome work, subscribed, huge BIG UP !

  • @Kiffoppern95
    @Kiffoppern95 3 роки тому +3

    I dont comment on videos at all but man these tutorials are exceptional. Thank you for making them. Really.
    I will finally take steps towards my dream of developing games!

  • @rrahll
    @rrahll 4 роки тому +6

    You're so underrated, mate!!! Keep it up

  • @francescocalvi7096
    @francescocalvi7096 2 роки тому

    Really enjoying these. Learning quite a bit on the UVS side and it makes reading C# lines much more understandable. Thank you for this!

  • @Builtit1
    @Builtit1 3 роки тому +2

    full bolt course for complete beginners? You have a great flow and i love you.

  • @anirudhsevar
    @anirudhsevar 4 роки тому +1

    these videos are really helpful and doing both the visual scripting and c# scripting really helps in understanding, ima sub rn.

  • @adityajaiswal7158
    @adityajaiswal7158 3 роки тому

    Very easy way to do the same thing. I watched other videos as well tried to make is work properly. But everything was very complex and not working very well. Then I specially seached smart penguin and scroll down to this video as I am previous subscribers. And finally got it working in 2:49 am. Thanks for such easy tutorials. I am here mainly for bolt tutorials. I watch C# but replicate it in bolt. So Bolt is the main reason I am here.. Bolt is your USP (atleast for me).

  • @arthurdarocharuzinsky8182
    @arthurdarocharuzinsky8182 2 роки тому

    I am just trying out the Bolt and I love it how easy can be it for Artists, your video helps a lot to understand how the Bolt Works

  • @MrZero000cool
    @MrZero000cool 4 роки тому +1

    god I wish I could program c# and do bolt at the same time. very nice tutorial !

  • @tsunderenekokun
    @tsunderenekokun 2 роки тому +2

    it didnt seem to work, is it because of how i cant edit the velocity in the inspector (or its gray?)

  • @joakimsjovall6496
    @joakimsjovall6496 Рік тому +1

    A question...why is the velocity in the update and not in the fixed update? I am learning but have been learning that anything with rigidbody should be in fixed update to be the same on every computer...otherwise the velocity will be different depending on framerate? or have I got it all wrong?

  • @666XIfrit
    @666XIfrit 3 роки тому +1

    Dude, thank you. You are my new hero.

  • @timhermelink3779
    @timhermelink3779 2 роки тому

    Will save for later i tried to search on google for the move in direction pointing, but no results. Searched First person controller and found this helpful tutorial, thanks for helping!

  • @gabetheborkingdog5985
    @gabetheborkingdog5985 3 роки тому +4

    Bro the quaternion is not multiplying with vector3 in my case it shows error. I tried changing the multiplier from generic to vector3, I tried getting the quaternion euler in vector 3 output then gave it to the multiplier but it still didn't work.

    • @gabetheborkingdog5985
      @gabetheborkingdog5985 3 роки тому +5

      So I figured this out. The order of multiplication matters (A x B). The quaternion output will go into A and Vector output will go into B. The vice versa won't work.

    • @RetroAnt3
      @RetroAnt3 Рік тому

      @@gabetheborkingdog5985 Had the same issue here and came up with the same solution. However glad to see I wasnt the only one

  • @priti8110
    @priti8110 3 роки тому +2

    This is so helpful.

  • @dr_f1405
    @dr_f1405 3 роки тому +6

    I have a problem, when I stop moving the player realizes late that I have stopped why ?

    • @gabetheborkingdog5985
      @gabetheborkingdog5985 3 роки тому

      Due to drag. Since we are using rigid body, the drag and other forces are also working when u move an object, since there is not friction between your object and ground, it comes to stop a little late. U can increase the drag of your object to check if it works. Or u can add a physics Material to the ground ur object is standing or moving on.

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      Replace the “Normalize” unit with “vector 3 clamp magnitude” and then set the maximum magnitude to 1

  • @a.technology1446
    @a.technology1446 4 роки тому +1

    Don't stop Plz 🤝❤️

  • @dudi1788
    @dudi1788 3 роки тому

    How doesn’t this dude have 100k + subscribers?????

  • @sxn5302
    @sxn5302 4 роки тому +5

    tutorial on how to add sprinting option with this exact code?

    • @SmartPenguins
      @SmartPenguins  4 роки тому +3

      You have more interest in c# or Bolt?

    • @aiduck8307
      @aiduck8307 4 роки тому +1

      Smart Penguins sir I have in bolt

    • @abhayk1602
      @abhayk1602 3 роки тому +1

      @@SmartPenguins Bolt please

    • @eliyahumedia
      @eliyahumedia 3 роки тому +1

      @@SmartPenguins How about a 4th part detailing sprinting and crouching in both Bolt (or Visual Scripting) and C#?

  • @imgone1705
    @imgone1705 4 роки тому +5

    Is there normally a delay when I stop pressing the key the character doesn't stop for half a second?

    • @guyabikhair7066
      @guyabikhair7066 4 роки тому +4

      Changing GetAxis to GetAxisRaw (horizontal and vertical) seemed to fix it for me, hope it helps :)

    • @guyabikhair7066
      @guyabikhair7066 4 роки тому +2

      On second though/discovery, changing gravity in the input manager under horizontal and vertical should help. Axisraw can make it choppy

    • @imgone1705
      @imgone1705 4 роки тому

      @@guyabikhair7066 I thank you good sir. It worked flawlessly.

    • @guyabikhair7066
      @guyabikhair7066 4 роки тому +1

      @@imgone1705 which one did u do?

    • @imgone1705
      @imgone1705 4 роки тому

      @@guyabikhair7066 just the first one. I didn't notice the choppy gravity

  • @pythonrabbit6854
    @pythonrabbit6854 3 роки тому +1

    Why is the fps low

  • @-Randomations-
    @-Randomations- 7 місяців тому

    If you don't like it when your character keeps walking for a bit after releasing a walking key, just simply remove the Normalize node!

  • @newcat0761
    @newcat0761 3 роки тому +3

    My player just goes into ground :/

    • @Kay-eh8lm
      @Kay-eh8lm 3 роки тому +2

      make sure there is a box collider on your floor and that the floor is quite thick not just a flat plane, and make sure the capsule collider is fully lining up with the capsule model for the player

    • @newcat0761
      @newcat0761 3 роки тому +1

      @@Kay-eh8lm thx

    • @Kay-eh8lm
      @Kay-eh8lm 3 роки тому +1

      @@newcat0761 I changed my advice actually lol after I encountered some problems myself then fixed them

    • @imtoolazytomakeaname4415
      @imtoolazytomakeaname4415 2 роки тому +1

      @@Kay-eh8lm whenever i walk my object just falls over and i tried this but it did not work Edit: It now only does it when i walk side ways Second Edit: I fixed it

  • @Tsotsii
    @Tsotsii Рік тому

    I know you probably wont read this but i have a problem with when i try to strafe to one side my character instead of just moving that direction moves in a circle

  • @svetozark9903
    @svetozark9903 4 роки тому

    1000 лайков тебе друг! ты лучший!!

  • @GamerRentz
    @GamerRentz Рік тому

    I am using Unity 2021 version, so I cannot find float node in Visual Scripting.
    And it also shows an error that is:
    cannot convert system.single to Unityengine Vector3

  • @alexjr977
    @alexjr977 4 роки тому +1

    Gooooooooooooooddddddddd

  • @Alixar125
    @Alixar125 Рік тому

    doesnt let me multiply vector 3 by the rotation

  • @axps4964
    @axps4964 4 роки тому +1

    how camera dosent show the character when rotate in x axis? camera is not parent parent is palyer

    • @gabetheborkingdog5985
      @gabetheborkingdog5985 3 роки тому

      The camera is inside the object, it's a child of the object. Also, when camera is inside another object then it can't render that object on screen (you can actually change this now). Also, the flow machine is applied to the player(empty object) which actually a parent of both, the capsule and the camera too. So when u r rotating the camera in x, the capsule also rotates.

  • @relix3267
    @relix3267 2 роки тому

    When I move my mouse in the x axis it moves the character in that direction. Can you help?
    I figured it out

  • @DARK_AMBIGUOUS
    @DARK_AMBIGUOUS Рік тому

    Is there a way to prevent my player from being able to walk up extremely steep walls?

  • @Fire-bolty
    @Fire-bolty 2 роки тому

    i know i am late but i need help i cant find the float

  • @jeremybillauer9584
    @jeremybillauer9584 3 роки тому

    This and the previous videos are wonderful tutorials so please keep it up! I am having an odd behavior happening with my camera movement. I've implemented the clamp just like the way you did in order to limit the rotation. However, when I begin my game it automatically jumps to the max value and makes it so every time I start the game my player is looking at the ground. Not sure why this is happening but any help would be much appreciated!

    • @SmartPenguins
      @SmartPenguins  3 роки тому +1

      make sure your camera rotation is 0, 0, 0

  • @DARK_AMBIGUOUS
    @DARK_AMBIGUOUS 6 місяців тому

    I have a problem with my C# script, when I try to play my game, it just doesn't start and at the bottom of Unity, it says "Error CS0246: The Type or namespace name 'Transform' could not be found" and I also noticed that in your script, the words Transform, and Rigidbody are Light Blue while mine are just white. I think I was supposed to do something to make them blue but idk what, can you please help me?

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 6 місяців тому

      I just figured out what I was doing wrong. I didn't have Unity snd Visual Studio setup to work properly together. What you have to do is go into Unity and go to Edit, Preferences, External Tools, and then change the "External Script Editor" from "Open by file extension" to "Visual Studio 2022" or to whichever code editor you are using. Then you have to save your script and close Visual Studio, then go into Unity and double click your script to open Unity, the text that needs to vor blue still won't be blue so you have to click on the words that should be blue at the top right above the "Start" area and hit Alt+Enter to bring up the thing that fixes problems, then I forgot exactly what I did but I think I hit enter or I clicked on one of the provided solutions and then hit enter or I did something and then all of the sudden my words turned blue. Also I recommend not using a theme in Visual Studio if you are just starting out learning C# because themes change the colors of words and sometimes make multiple colors into the same color and that makes it a lot more confusing. I love using themes for stuff but unfortunately cannot use them right now

  • @temeqforreal
    @temeqforreal Рік тому

    I have a problem when i start the game and try to move, the player literally falls onto the ground and starts to roll, how can i fix this?

  • @phearedphantom
    @phearedphantom Місяць тому

    Btw new vector 3 is now create vector 3

  • @arcanedanger3149
    @arcanedanger3149 3 роки тому

    that was helpful but you should have shown how to make a ground check

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      ua-cam.com/video/xYatCQSlnvs/v-deo.html&ab_channel=SmartPenguins-GameDev

  • @rebels-uu9xg
    @rebels-uu9xg 3 роки тому

    Thx.

  • @Kasuga-
    @Kasuga- 2 роки тому

    Nice tutorial! But i have a Little issue, my Player is passing through objects when i put a little force on them.
    For example: if i am standing on a collider it works fine, but when i am standing in front of a collider and Press W it passes throught it. i've been trying to fix this for 2days so let me know if you could help!
    (i have added rigid body to the player and the object, other objects also contain a rigid body & It is not set to trigger, i am using a beam for player)
    -Thanks

    • @SmartPenguins
      @SmartPenguins  2 роки тому

      Can't really see exactly what is going on but,
      1) you don't need to add rigid body to object that you don't want to move,
      2) if the collider is thin and the movement speed is big enough the you will pass the object
      3) on your player rigid body try changing Collision Detection to Continuous see if that helps

    • @Kasuga-
      @Kasuga- 2 роки тому

      @@SmartPenguins 1) oh sorry i meant collider but due to auto correct it changed to rigid body
      2) the collider is not thin it is normal, and the movement speed is set to 20 (Per second = 20)
      3) I tried changing it to continues, dynamic, and all the other options, it is not working :(
      i will try to decrease the speed to see if that works

  • @restushlogic5794
    @restushlogic5794 4 роки тому

    Do you know how to math.clamp raycast distance? So player wouldn't get a carrot from a mile.

    • @SmartPenguins
      @SmartPenguins  4 роки тому +2

      Use the Max Distance option just like I show here ua-cam.com/video/52wcfJWzi-w/v-deo.html

  • @dankrijk9678
    @dankrijk9678 3 роки тому +1

    WASD is delayed why is that?

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      Try using Input.GetAxisRaw(...)
      Instead of Input.GetAxis(...)

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      Just replace the “Normalize” unit with “Vector 3 Clamp Magnitude” and then set the maximum magnitude to 1. I had this same exact issue and someone posted a comment on how to fix it

  • @nevohh8785
    @nevohh8785 3 роки тому

    thank u so much

  • @goober4882
    @goober4882 2 місяці тому

    9:24 dont mind this

  • @VTBlackfox69
    @VTBlackfox69 3 роки тому

    hey can you pls help me out cuz when I move my mouse to X axis it makes me float pls help to fix the error

    • @SmartPenguins
      @SmartPenguins  3 роки тому +1

      Go onto my discord server and ask the quotation there with a screenshot of your flow graph

  • @VTBlackfox69
    @VTBlackfox69 3 роки тому +1

    i am in , and send in discord"questions" pls help

  • @itsYOGII
    @itsYOGII 4 роки тому

    Need help plz urgent reply....
    When make a moving plateform in buildbox my charecter not move with that it stay in that position i have to move it so that it move with plateform ...what to do

    • @SmartPenguins
      @SmartPenguins  4 роки тому +1

      Set character to dynamic. Make sure stay awake is on in the character start node options.

    • @itsYOGII
      @itsYOGII 4 роки тому

      @@SmartPenguins cant find stay awake in starter node....

    • @itsYOGII
      @itsYOGII 4 роки тому

      @@SmartPenguins can i send a pic to you so that u can understand easily

  • @noved4340
    @noved4340 3 роки тому

    My character just falls through the ground 😢 not sure what i did wrong

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      make sure you have a collider on your ground and you character

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      Add a mesh collider to the ground

  • @jandam9765
    @jandam9765 2 роки тому

    tnx i nede this

  • @ethanbrown9457
    @ethanbrown9457 3 роки тому

    I can't find the transform get rotate

    • @SmartPenguins
      @SmartPenguins  3 роки тому +1

      It will be transform rotate, with out "get"

  • @The_Codemaster144k
    @The_Codemaster144k 2 роки тому

    Can you please make a tutorial for sprinting please!

    • @RetroAnt3
      @RetroAnt3 Рік тому

      just add smth to your velocity if shift is pressed

  • @DXDgamingsubnow
    @DXDgamingsubnow 3 роки тому

    im having an issue where the player is not moving like at all but the camera works tho

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      Come over to discord and the community or me can help you out with that.

    • @DXDgamingsubnow
      @DXDgamingsubnow 3 роки тому

      @@SmartPenguins i fixed it thanks for the tutorial sir and plz make one with animations bools i really need that for my project

    • @m-oi-kahl7225
      @m-oi-kahl7225 3 роки тому

      @@DXDgamingsubnow Your are The same like Skyward diamond. Please share your solution. I have the same problems. So annoying that ppl found the solution but dont bother helping other ppl. ...

    • @DXDgamingsubnow
      @DXDgamingsubnow 3 роки тому

      @@m-oi-kahl7225 there were one link that was not right I looked many time and I saw that I connected it to the wrong anchor so yeah check the wires

  • @pythonrabbit6854
    @pythonrabbit6854 3 роки тому

    Why does the movement lag it did not lag for me when I put time.deltatime

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      Where did you put time.deltatime?

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      Replace the “normalize” unit with “Vector 3 clamp Magnitude” and then set the maximum magnitude to 1

  • @twomur_
    @twomur_ 3 роки тому

    How do I test if they are on the ground tho with bolt??

    • @SmartPenguins
      @SmartPenguins  3 роки тому +2

      it's in the next part ua-cam.com/video/xYatCQSlnvs/v-deo.html&ab_channel=SmartPenguins-GameDev

    • @twomur_
      @twomur_ 3 роки тому

      @@SmartPenguins ahhh yes it wasnt recommended to me so i assumed that was the end thank you! I was like YOU ARE REALLY GONNA LEAVE IT ON THAT??? XD

    • @twomur_
      @twomur_ 3 роки тому

      @@SmartPenguins great devlog btw super good im new to unity and this gave me such a good idea and overview of Bolt! :D

  • @freshxset2931
    @freshxset2931 3 роки тому

    you forgot to make movement to the sides with a, d.

    • @SmartPenguins
      @SmartPenguins  3 роки тому +2

      Get axis "horizontal" does that.

    • @freshxset2931
      @freshxset2931 3 роки тому

      @@SmartPenguins hmmm... its not working for me

  • @HakZG
    @HakZG 3 роки тому

    i fall through my map thats imported from maya

  • @chaetys4818
    @chaetys4818 3 роки тому

    4:38 there isnt a thing as a litterer float for me

    • @FighterBot.1
      @FighterBot.1 3 роки тому

      same

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      Did you chose programmer naming in bolt? Because something have different names of you chose programmer or human naming, for example in programmer naming, “New Vector 3” is called “Create Vector 3”

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      It might be called “Float Literal”

  • @skywarddiamond600
    @skywarddiamond600 3 роки тому

    I did it but the player is still not moving

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      What have you do? Send me more info on discord.

    • @skywarddiamond600
      @skywarddiamond600 3 роки тому

      @@SmartPenguins I got it to work I only thing I need to fix it to camera to look and and down

    • @DXDgamingsubnow
      @DXDgamingsubnow 3 роки тому

      @@skywarddiamond600 how i cant make it move and my graph is exactly the same only the camera works

    • @skywarddiamond600
      @skywarddiamond600 3 роки тому

      @@DXDgamingsubnow I did something to get it working

    • @DXDgamingsubnow
      @DXDgamingsubnow 3 роки тому

      @@skywarddiamond600 what did you do to make it work

  • @veryezgaming8971
    @veryezgaming8971 3 роки тому

    Help The Player Falls Through The Floor

    • @travalik7006
      @travalik7006 3 роки тому

      You maybe forgot to add a rigidbody or maybe you made the player clip through the floor

    • @veryezgaming8971
      @veryezgaming8971 3 роки тому

      @@travalik7006 The Rigidbody Is In There I Think You Need To Set The Ground But Idk How

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 роки тому

      @@veryezgaming8971 go to the ground and add a mesh collider

  • @photonaut_8875
    @photonaut_8875 3 роки тому

    I cant find vector 3 new unless im an idiot

    • @SmartPenguins
      @SmartPenguins  3 роки тому

      look for create vector 3, it will be named different if you use Programing naming or Human naming

    • @photonaut_8875
      @photonaut_8875 3 роки тому

      @@SmartPenguins ok thanks man your the best👍

  • @newwonderer
    @newwonderer Рік тому

    you should definitely be slower on node selecting, to understand what node you choosing I must rewatch few times every time. It is painful as hell, you are too fast

  • @theonepuck5735
    @theonepuck5735 4 роки тому

    Almost first

  • @restushlogic5794
    @restushlogic5794 4 роки тому

    First here!

  • @atte2038
    @atte2038 Рік тому

    5:40

  • @VTBlackfox69
    @VTBlackfox69 3 роки тому

    I am

  • @Gamer.Cat22
    @Gamer.Cat22 Рік тому

    wait isnt there ment to be delta time or something like that?

  • @Gamer.Cat22
    @Gamer.Cat22 Рік тому

    im at 6:17 and its not letting me multiply the rotation

    • @Gamer.Cat22
      @Gamer.Cat22 Рік тому

      nvm mangeded to fix it im just bult like that

    • @YoX-p1v
      @YoX-p1v Рік тому +1

      @@Gamer.Cat22how

    • @Gamer.Cat22
      @Gamer.Cat22 Рік тому

      @@YoX-p1v you need to change it to a default multiply rather than a special one like vector 3 multiply or something like that. I don't remember once I get back home I will tell you how

  • @ragtagragnor2943
    @ragtagragnor2943 3 роки тому +1

    I have a problem where when I walk the camera even when it's a child of the player it will gust stay there and the player moves why is this and how can I fix it?