First Person Controller Animations - FPS Game With Unity & Blender

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 118

  • @kiritsakis1
    @kiritsakis1 Рік тому +6

    After 3+ years I finally have free time to get back to unity and I really appreciate these quick simple tutorials just to freshen things up again

  • @Quantumstar65
    @Quantumstar65 4 місяці тому +1

    You explained it so well that I could even use this tutorial for Unreal engine! Thanks!

  • @alekazam
    @alekazam Рік тому +3

    dude you are so underrated

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

    one of the best UA-cam playlists for beginners starting out on unity that don't like making shitty floppy birds or downloading asset form unity's free assets store and also not making things overcomplicated with blender and the c# scripts.

  • @alonsocerpa2745
    @alonsocerpa2745 9 місяців тому +8

    I found a solution to the problem of the animations not working in Unity (I am using Unity 2022.3.12f1). Select the animation that you imported in Unity, under the Inspector, select the Model tab, and then check the box that says "Preserve Hierarchy".

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

    I used some of your code & incorporated it into some other scripts I had, very helpful.

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

    Thanks for the tutorial !

  • @lemonboywastaken2913
    @lemonboywastaken2913 3 роки тому +7

    Hello! I am a big dan of your tutorials, I did not know how to model in blender whatsoever, these tutorials have been keeping me up, but I don't use Unity, can you make a tutorial for the Godot game engine?

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

      Thanks, tho I never used Godot so I cant :/

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

      @@SingleSapling Ok, I can understand that, thanks for the model tutorials, they helped me a lot, I guess I will have to make my own first person controller

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

      Good luck

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

    10/10

  • @user-de1wj5hu8y
    @user-de1wj5hu8y 5 місяців тому

    YOu are the best

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

    hi i followed every step in the tutorial but as soon as i put my prefab in the palm it just becomes huge...like very very big gun...

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

      Did u scale up the character model?

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

      @@SingleSapling honestly i dont know..i sent a vid in your discord maybe u can see the problem from there?

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

      Yo did u ever figure out how to fix this its happening to me 2 lol

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

      @@Carteeeer52 my guess is to apply all the object scale, rotation, ect in blender...i didnt see if that worked (i was working on blender skills) but that is just my guess

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

      @@epicnessatpeak yeah probably something weird with converting blender to unity. Scaling them down to the right size inside of unity works fine

  • @bloudy.x
    @bloudy.x Рік тому +2

    Great tutorial, but I have a question, should I learn blender, for the animations, VFX, etc. When I'm a beginner in coding, Unity?

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

      Blender is a VERY useful thing to know about, I cant tell you if you should learn it but it definetely wont be wasting your time.

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

    When I press play, my arms go up above my camera
    I fixed it by moving the arms down to the ground and now they are visible when playing like they should
    Still weird thay they get moved up though
    But Ig its not a problem rn

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

    These tutorials are awesome but I have one small question: why animate the arms and weapons as two different objects, rather than having the arms with weapon be one object?

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

      You can do it both ways but then u would have to instantiate new arms with the new weapon aswell each time you swap a weapon. I personaly dont like to do it that way but a lot of games do. It comes down to personal preferencep

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

      @@SingleSapling ahh I see. Thanks for the reply!

  • @DangOldRegularOld
    @DangOldRegularOld 10 місяців тому

    It all works until 6:25. My animations don't play when I click play and change the speed. I thought Id just continue the tutorial and see if it works in the end and it doesn't. The gun is giant, backwards and the arms don't animate.

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

    When I added all my animation and my fps hands there was this glitch when I played the animations my right pinky fig bones disappeared and it would stretch along the screen and I reimported and remade the everything but it still has that glitch and my naming is all correct too 😢

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

    Can u do a unity vid about 3d enemy that has a skeleton that has proper animation and shot toward player?

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

      Ill be making zombies in this series, but it shouldnt be too hard to implement the rest yourself

  • @Dev-Chic
    @Dev-Chic 2 дні тому

    When I add an avatar to the arm animations they distort and have a weird shape.

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

    my animations stop working when i actually start playing
    but in the blend tree when i play the animations they looks fine

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

    Why does the left hand not sync well with the right hand like it was in blender? I've been having an issue with the left hand not syncing up with the right hand in my animations for a few weeks and I notice the same thing is happening in your game. The hands were suppose to move in unison like they were in blender but that is not the case when the animations are exported to unity.

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

      Its the case in blender too you just cant see it that well, the problem is the child of constraint that we added, alternatevly you can use a dampend track constraint but that one is a bit harder to work with. I feel like for the quality that we got this was the best and easiest way to do it.0

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

      @@SingleSapling Ah, I see. Thanks for the explanation!

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

    When I export my animation, I can never get it to work unless I export the mesh with it (The same selection as your video for exporting the game arms with the Shift+Click, then selecting Mesh and Armature in the Export Window). Any ideas?

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

      Same problem, I don't export mesh, only armature but it doesn't work as well.:C

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

    When i drag the speed slider, the animations don't change what do i do

    • @Liam-789
      @Liam-789 2 місяці тому

      Exactly the same problem, did you fix this in the end?

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

      @@Liam-789 damn I completely forgot what I did to fix this haha. I think it might've been the way I was importing my blender animations. Check that first, then maybe try tweaking the humanoid and generic settings?

    • @Liam-789
      @Liam-789 2 місяці тому +1

      Hey man, yeah I played around with it being generic rather than humanoid because unity complains about there being no left leg bone. Kinda felt like it just fixed itself annoyingly... Hopefully it won't happen when I do the other weapons 😅 cheers for the reply though 👍

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

      @@Liam-789glad u fixed it lol took me so long to figure it out

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

    how do you make it so that the arms are always facing forward? for me the arms follow the players position but not rotation

  • @Liam-789
    @Liam-789 2 місяці тому

    When I switch to humanoid my animations still don't play?
    Can you help with this atall?

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

    what about ads

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

    Help Me my Animations is not playing in unity

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

    Boyfrriends!

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

    When I change the rig to humanoid the hands get all distorted and looks nothing like it did before

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

      Did you figure it out?

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

      @@damnthishandleistaken no sorry :/

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

      @@yodizx Lol, no worries, thanks for the quick reply.

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

      @@damnthishandleistaken did any of you get the problem where the animation blend tree just doesn't show the animations at all? this issue is so annoying

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

      @@uviolin593 Yes, I did and I don't know why. It's infuriating.

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

    This is a great tutorial, but I have one problem. When I import the gun model to the scene, it always gets a error: A polygon of Mesh 'G903' in Assets/Resources/FBX/Weapons/G903.fbx is self-intersecting and has been discarded. Any ways to solve this?

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

      Hmm first time hearing about that error. What does the unity forum say?

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

      @@SingleSapling There's only one in unity forum but it's about the consequence of it

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

      I am really not sure what the error is, just to be safe u can remake the model and see if it still happends then

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

      @@SingleSapling so the error make some of my model face disappear

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

      @@Minclnhat I know what it does but I dont know why it does it, you can check if you have any faces inside the mesh

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

    Good tutorial:) But when I played the animations after changing the arms to humanoid some parts of the mesh dissapeard. Do you know why?

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

    I am using unity 2022.2.2 and i cant find a way to update the animations like you do in 6:47. please help

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

    there is no colour on the gun

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

      Get the texture as well(on patreon) and in unity give to the guns material

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

    Hey, when I turn my camera to the far up and down off the screen the arm gets scratched, would be happy if you help

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

      There is an option on the mesh renderer component of the arms called something along the lines of "render off screen", turn that on and see if it still happends

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

    i cant see my gun when i enter play mode but everything else works

    • @Chris-lw5po
      @Chris-lw5po 2 роки тому

      turn on update when off screen on the weapon mesh // set the near clipping plane value lower on your camera

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

    Im trying to copy your script, but im stuck in the private void update part, can you help me? did you do a method signature on that part? how can i do that?
    this is the error:
    Error CS0501 'PlayerControl.Update()' must declare a body because it is not marked abstract, extern, or partial

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

      Check your { }, I am not 100% sure what it could be

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

    I can’t get my animations to import correctly. When ever I view them it just shows the arms not moving. Also in the blend tree I would click on the walk and run anim and it would still say idle in the tree. Can you help?
    Edit: I fixed all of the above but now the mesh won’t show and it just shows the bones.

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

      How did you fix it?

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

      @@uviolin593 I reimported all the animations then I changed it to humanoid then clicked update on all the animations then changed the rig back to generic. Make sure strip bones off.

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

      @@earlgamz95 oh I’ll try turning bone strip off, thanks!

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

      @@earlgamz95 the update button doesn’t show for me, I don’t know why.

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

      @@earlgamz95 still doesn’t work for me :(

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

    hey how do you do you do to have player controller script

  • @hugodanielvalladoliddaumas7073

    do you have the repository for sharing?

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

    hello, when i export the animation from blender to unity the key frame are not exporting with ist.
    well the original keyframes are 24 but in unity i just got 1.
    Any solution please?

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

      Hmm make sure animation frames are set to 24 in the export settings tab

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

      @@SingleSapling i solve it, the problem was that, the belnder was not on the last version. because of that

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

      @@ahmadisnoob4847 bruh

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

    very cool👍 IDK if you take fan suggestions for SFM but I'm wondering if you are possibly down to create an animation using the season 2 model of Kenny and season 4 or season 1 Lilly models from TWD (Telltales the walking dead) videogame series. Or if you cannot find lilly use Jane. The idea could be where Kenny and Lilly or instead Jane go on a hiking on foot adventure walking around exploring an outside OR INSIDE map or whatever and kill a group of zombies together melee style or with fists.make it as long or as short as you want. use the Kenny player model and npc. Then search up lilly player model and npc or search up Jane player model and NPC

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

      Hmm, never done a game like that and I dont know about copyright issues with that. But it seems like a good project to start making, see what u can do and join the discord, there is a help channel where u can ask if you run into trouble ( link in desc)

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

    Can i get a new link for the download i need it for a school project fast pls

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

      Doesnt this one work

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

      @@SingleSapling nope

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

      @@SingleSapling and if you give the download link give the full project one pls

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

      @@SingleSapling bro I only have 3 days left I also need to make the game hurry

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

      @@SingleSapling pls help?

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

    Bro if you really want to teach make the video in sequence. Your videos are hazzy