First Person Character Controller with Unity + Playmaker

Поділитися
Вставка
  • Опубліковано 4 чер 2024
  • In this video, you will learn how to make a player gameObject move around with WASD and arrow keys, set up the first-person camera, and set up the player speed variable.
    Download the PlayerSimpleMove: hutonggames.com/downloads/tut...
    Sample package requirements:
    Playmaker 1.9.1 or newer and Unity 2018.4 or newer + built-in render pipeline.
    Timestamps
    00:00 - Intro
    00:30 - Setting up the scene
    01:16 - Setting up player movement with keys
    02:45 - Customize the keys for movement (input manager)
    03:40 - Setting up the first-person camera
    06:45 - Hiding and locking the cursor/mouse
    07:07 - Player speed variable
    Some helpful info on character controllers by Nicky B:
    • How to Move Characters...
    For more help visit:
    Playmaker forums @ hutonggames.com/playmakerforu...
    Playmaker Discord @ / discord
    Find us on Twitter @HutongGames

КОМЕНТАРІ • 69

  • @kylemakesgames
    @kylemakesgames 2 місяці тому +1

    Tired, bad sleep last night, was still able to follow and excute this tutorial with ease. Thanks so much for the quality videos.

  • @rustychickengames4466
    @rustychickengames4466 3 роки тому +18

    Always love Stephens video editing and comedy!

  • @Phrygian100
    @Phrygian100 3 місяці тому +1

    Didnt expect these to be hilarious

  • @aeon_zero
    @aeon_zero 2 роки тому +9

    There are so many tuts out there but I've yet to see one better than these, clearly spoken, straight to the point and entertaining. I just got PM, please keep up the good work

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

    Awesome tool, with a just as awesome tutorial series. Absolutely mind blowing how intuitive your plugin is, thanks so much for making a really accessible tool!
    Oh yeah, I really wanted to re-iterate how in-depth this series is, they teach you how to use the system they've created, so you can experiment, and make what you really want with it.
    They tell you how everything works, really!

  • @jvdongames
    @jvdongames Рік тому +4

    Oh my goodness, I love these tutorials, and the comic relief's awesome 😁 cracks me up at the beginning of the lesson and by doing so, gives an in-depth soothing environment for quick and enjoyable learning curves. 👍 Great job.

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

    These tutorials are so good! Informative and with a dash of humor. Great Work!

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

    Brilliant humor!!! and nice explanations too. you are the best!

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

    This video was so so helpful! Everything welt smooth and idk how but surely will look further your videos! :) :) :) THANK YOU SO MUCH 👽👽

  • @phantasmrain
    @phantasmrain 2 роки тому +9

    At 0:45 they change the scale to 2, claiming that it makes the size 6 ft. Don't do this for 2 reasons: Firstly the 1 scale capsule is already 6ft, so they''ve turned that object into something which is 12ft tall. Second is that when you get to video 4 of this tutorial (Grab and throw objects with Playmaker), if you grab an object then it will start stretching horribly due to the 2 scale of player. So keep player scale at 1.

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

      Read this comment by absolute chance! Will look more carefully at the comment section moving forward. Thanks man!

  • @studyASMRcoffee
    @studyASMRcoffee 2 роки тому +8

    This was amazing, please keep going with EVERYTHING!! love the humor and the way you teach. Good Job.

  • @AhmadAbuGdairi
    @AhmadAbuGdairi 9 місяців тому

    This guy is so great! So funny too! Best content, without a doubt!

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

    please don't stop on this

  • @user-lf2mg3xv4g
    @user-lf2mg3xv4g 8 місяців тому

    Fantastic!

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

    A new user here I love the way you do your presentations everything is clear and straightforward the humour is a must and I can't live without it I'm so happy that I purchased your tool as a pure artist with no programming knowledge you gave me again the hope I was in need to start working on my dream game again I was stupid because I let so many years get away but never is to late thank you and your team so much for this amazing asset

  • @striverfor7628
    @striverfor7628 Рік тому +2

    Notes for myself
    Setting up the scene
    0:29 Create a Plane. 3D Object > Capsule (for the player). Change its scale (Unity’s default measure unit is metres). Add FSM to player, name it PlayerMovement. Add Controller Simple Move action. Can add a CharacterController Component yourself or click to add it. Change Character Controller Radius - 0.8.
    2:07 Controller Simple Move needs input to Move Vector. Add Get Axis Vector action. Store Vector in New Variable, name it playerMoveVector3. Controller Simple Move - Move Vector > playerMoveVector3. Press Play, now capsule moves with WASD keys.
    2:45 Edit > Project Settings - look at Horizontal and Vertical and you can change their controls if you want.
    Setting up the first-person camera
    3:38 Right click Player object > Camera. Move camera to where you want it in the Capsule.
    4:15 Add FSM to capsule. (In Inspector) Add Component > PlayMakerFSM, name it ‘PlayerLook’. > Edit. Add mouse Look action, Specify Game Object as PlayerCamera. Axes > Mouse Y. Press Play, you can move and look up and down.
    5:13 Add Mouse Look action, keep Use Owner, Axes > Mouse X. Press Play, can move and look everywhere, but it doesn’t walk where you look. PlayerMovement FSM > Edit. In Get Axis Vector action, drag Player object to it, makes moving forward always relative to moving forward for the capsule, same thing for other directions. Blue Z arrow points to what Unity considers forward. Now it steers where you look.
    Hiding and locking the cursor/mouse
    6:45 Player Look (FSM) > Edit, add Set Mouse Cursor action, check Hide Cursor and Lock Cursor so you don’t click outside of the screen.
    Player speed variable
    7:04 In PlayerMovement (FSM) > Edit, in Controller Simple Move, can change Speed, but better to make Speed > New Variable, name it. In Variables tab, select that variable and set its value (speed) what you want, so if you’ll want things in the game to change how fast the player moves, you can reference this variable.
    7:56 Wrap up. We learned to create player movement with Controller Simple Move and Character Controller component, how to look and steer with two Mouse Look actions.

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

    Thank you for making this video and help us to learn how to make it :D I had a problem with the asset first person, if you press escape and dont click back. it freezes the camera movement. so i have to fix and make a first person in the game. lucky there is a video about this.

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

    @5:20 changing mouse look to "use owner" moves the object it's attached to. "Specifying game object" moves an object parented to the object it's attached to.

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

    Thank you!!
    '

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

    I hope this asset will help me building my prototype game.

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

    Great tutorial! One Question. How do I change the sensitivity of the mouse look? It's way too high.

  • @TimM-kz1vl
    @TimM-kz1vl 2 роки тому +1

    This was amazing and hilarious! Thank you so much! Do you know how to invert the looking up and down though? I tried inverting it in the axis menu and it does nothing.

    • @TimM-kz1vl
      @TimM-kz1vl 2 роки тому

      Nevermind, went to Mouse Y in axis and inverted that

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

    yhe finally after 4 year we getting this good helping stuffs

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

    all explained very well, one thing though, when you say to insert the gameobject player in the "relative to" ... I had to insert the camera of the player to make it move in the direction of the view otherwise it didn't work ... I don't know why

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

    Since I'm a stupid goat, to make something like this in code it required me like 8 hours, with playmaker just 8 minutes and easily understandable too? Well, no wonder I'm buying it right now

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

    Thanks for your tutorial.What if we want to add mobile joystick based movement with playmaker.Could you please help me how can we achieve this functionality

  • @ramonmff5158
    @ramonmff5158 4 місяці тому

    0:25 laughed my *ss off just now 😂😂😂

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

    quick question. I notice the fps controllers has some trouble when going up stairs in a game, its like it can't smoothly walk up a set of stairs. Any fixes?

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

    My FSM doesn't seem to have the Get Axis Vector action, has it been removed?

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

    What if i want my camera to face with the character, by not using a mouse?

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

    player is sliding when I use w-a-s-d input why? ( Horizontal transform )

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

      check to see if your capsule collider is set to Direction -> Y axis

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

    Love the tutorial, but for some reason my player is sliding infinitely if you hold down a key to long, can you please help?

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

      nevermind, now when you move once it stops moving altogether

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

    I don't have a Controller Simple Move action; which asset do I need to install to get it?

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

      Never mind, I didn't have an actions tab at all. I was searching for components, not actions. Oops.

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

      @@EmilySmirleGURPS lol

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

    I followed the same steps but when I look very up or very down (more than 60 degrees), the screen flashes very rapidly. Anyone else has the same issue?

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

    Can you do a tutorial on a 2d character doing attacks like punching and kicking

  • @IndiaHaven
    @IndiaHaven 4 місяці тому

    Lol I put my player capsule in the "relative to" part and now its moving the opposite ways. :,(

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

    if it didn't work just like mine try changing the relative from player to the camera

  • @aditya-dixit
    @aditya-dixit 2 роки тому +1

    You need to update this to use the player input get move vector instead of the Get axis vector thanks!

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

      Check out our tutorial on the New Input System 👍👍

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

    What about running by pressing shift

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

    please bro i need a videyo how to make a multiplayer fbs game whit play macker please

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

    please make videos on mobile controllers/touch

  • @sau-rif5199
    @sau-rif5199 3 роки тому +1

    Can you show how to Jumping and Crouching?

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

      If you haven't seen them by this point, be sure to check out our jumping and crouching tutorials which can be found in the First Person Controller playlist 👍

  • @Frosty-pp8kf
    @Frosty-pp8kf 2 роки тому

    My camera for some reason can look thru walls when up close how I fix that

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

    No jumping crouching or running?

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

      There is now! Check out the first person playlist!

  • @id-null
    @id-null 2 роки тому +1

    Oml, the default unity capsule is 2m tall already, you just made yours 4m tall (14 feet) lmao

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

      Lesson learned, good catch! 😅

    • @id-null
      @id-null 2 роки тому

      @@HutongGamesLLC no worries! still very helpful tutorial for starting out

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

    Third person controller please

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

      Noted. We are on it 👍

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

      @@HutongGamesLLC Great non tank controls would be sweet haha but look forward to it

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

    First of all, what the fuck is PlayMakerGUI?

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

    is does not work

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

    Character Controller with Controller Simple Move lead to many issues. Don't use them.

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

    please bro i need a videyo how to make a multiplayer fbs game whit play macker please