Player Movement using Animator | Unity

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 502

  • @DJLKM1
    @DJLKM1 4 года назад +110

    This has to be the quickest and simplest tutorial on a basic controller ever. Very good video.

  • @StarLuson
    @StarLuson 3 года назад +11

    Words cannot convey my delight that at least someone has a working tutorial! Man, thank you so much! I was already on the verge of despair, I reconsidered everything, in some tutorials there were some special assets and things to download, in others there were complex non-working scripts ... But I just had a model with bones and several animations for it !
    Thank you all the best, thank you, thank you

    • @obalfaqih
      @obalfaqih  3 года назад +2

      Thank you so much for your comment, glad you found the tutorial helpful 🙏🏼

  • @jeremyb2120
    @jeremyb2120 3 года назад +6

    I loved this tutorial! The best I've seen on this subject. I really liked how you covered the basics, but also made it simple. You're very easy to understand. I would very much like to see more. I need to see if you have made more tutorials since when you made this. It was really helpful!

  • @ZigzagKazak
    @ZigzagKazak 4 года назад +2

    Nice video. No unnecessary info, just clear explanation of how to animate a character.

  • @spinti-t6t
    @spinti-t6t 3 года назад +12

    I subscribed immediately, my character has been stuck without a turning animation for far too long and most people weren't covering it.

    • @obalfaqih
      @obalfaqih  3 года назад +1

      Hey thanks for subscribing! Welcome to the community community 🙏🏼😁
      Glad it helped you, let me know if you have any other questions or requests for future tutorials.

  • @prateekpanwar646
    @prateekpanwar646 4 года назад +1

    Best tutorial for unity animator on RUclips 10/10

  • @Abdullah-yt9yj
    @Abdullah-yt9yj 5 лет назад +9

    بصراحة وبدون مجاملة انت احسن واحد يشرح عن unity لاني شاهدت الكثير من الفديوهات ولم استطع الفهم جيدا

    • @rayanm2175
      @rayanm2175 5 лет назад +1

      فيه زياد خالد

  • @xX_BeamCRASH_Xx
    @xX_BeamCRASH_Xx 3 года назад

    Wow! Finally I have working animations! You deserve more subs! Seriously you dont know for how long I tried this with no success!

    • @obalfaqih
      @obalfaqih  3 года назад

      Hey, thanks a lot!
      Glad I could help🙏🏼😁

  • @skeeterburke
    @skeeterburke 3 года назад

    your tutorial was suggested to me by a friend who works in animation / game creation so 🏆 just thought you should know, you have earned our approval lol

    • @obalfaqih
      @obalfaqih  3 года назад

      Hey thanks! Truly appreciate it and thank your friend for me 🙌🏼😁

  • @FredGreen182
    @FredGreen182 5 лет назад +20

    This is great, I'd love to see more in depth look at what you can do with this

    • @enesdmz
      @enesdmz 3 года назад

      Turn it off

  • @TDM-07
    @TDM-07 4 года назад +2

    أقسم بالله صرلي زمان ادور على شرح مثل هاذ و ما كنت الاقي المطلوب بس بالصدفة شقت مقطعك و على طول دخلته شكرا حبيبي
    Man I Swear I Was Searching For Video Like This From A Long Time And I aint Find The Exact Video I Want But You Helped Me Too Much Thx You Bro

    • @obalfaqih
      @obalfaqih  4 года назад +1

      الحمدلله قدرت افيد ولو بمعلومة، مشكوور جدا على دعمك 🙏🏼🙏🏼

  • @TonyIsCool45
    @TonyIsCool45 2 года назад +1

    Great tutorial! You've earned a subscriber!

    • @obalfaqih
      @obalfaqih  2 года назад +1

      Thanks! Welcome to the community 🙏🏼

    • @TonyIsCool45
      @TonyIsCool45 2 года назад

      @@obalfaqih Thanks for the warm welcome. I'm starting to get into making 3D games. I'm a decent digital musician, 3D modeler, and artist, I'm just getting into the actual coding part.

    • @obalfaqih
      @obalfaqih  2 года назад +1

      @@TonyIsCool45 That's really great! I think having multiple skills, like yourself, helps you become a better creative person. Also you get to communicate more clear with your teammates.
      You're welcome to join our small Discord server and share your work there:
      discord.gg/x7q9VrX

    • @TonyIsCool45
      @TonyIsCool45 2 года назад

      @@obalfaqih I joined.

  • @obalfaqih
    @obalfaqih  4 года назад +20

    Check out a new update for OB - Object Placer V2:
    ruclips.net/video/EBc_-5vQUZU/видео.html
    For those of you looking for the animation pack, it seems that they have removed it unfortunately.
    The animations used in this tutorial and the project files are available here:
    github.com/OBalfaqih/PlayerMovementUsingAnimator
    If you want another animation library, you can use this one:
    assetstore.unity.com/motion-library
    Also there's Mixamo, a free online animations platform:
    www.mixamo.com
    How to use 5 different types of cameras with Cinemachine: ruclips.net/p/PLaqp5z-4pFi5ccz8E84Pfi6EQ-T-mHkWd

    • @obalfaqih
      @obalfaqih  3 года назад

      @Vasishth Gupta probably it’s read only. Try duplicating it, you may have the ability to modify it.

  • @TenhoPro
    @TenhoPro 3 года назад

    Thanks! This was really helpful, I Spend many days so far to get basic movement animation works, with no results... Now i finaly understand how even use animator right, and that script code was really simple!

    • @obalfaqih
      @obalfaqih  3 года назад

      I’m glad that you found it helpful, thanks for your comment 🙏🏼

  • @thecrazyartist6003
    @thecrazyartist6003 2 года назад

    Congratulations 🎉, you have got 2 new subscribers .... Stay Blessed... Allah bless you more and more

    • @obalfaqih
      @obalfaqih  Год назад +1

      Thanks a lot 🙏🏼😁

  • @theman3282
    @theman3282 4 года назад

    wa'laikum salaam ya habiib..its a rare a habib delving with programming and game programming to be specific.

    • @obalfaqih
      @obalfaqih  4 года назад

      🙏🏼🙏🏼🙏🏼

  • @ashutoshhiremath720
    @ashutoshhiremath720 4 года назад +1

    Damn you just made movement so easy for me thanks man
    New sub from India :)

    • @obalfaqih
      @obalfaqih  4 года назад

      Welcome to the community 🤗

  • @diegolopez5924
    @diegolopez5924 4 года назад +1

    long time looking for a root motion movement, u solved my problem man, nice tutorial!!

    • @obalfaqih
      @obalfaqih  4 года назад

      Thanks! Glad that you found it helpful 🙏🏼🙏🏼

  • @dilaratrn5810
    @dilaratrn5810 4 года назад +21

    im hearing the first time that someone say bismillah in a game tutorial. ,-like

    • @obalfaqih
      @obalfaqih  4 года назад +4

      🙏🏼🙏🏼🙏🏼

    • @hamzaodt3515
      @hamzaodt3515 4 года назад +1

      is that wrong??

    • @hamhampangpang_customer
      @hamhampangpang_customer 4 года назад +1

      @@hamzaodt3515 im very impressed that you have the thought of thinking that its wrong

    • @majesticchicken3213
      @majesticchicken3213 4 года назад +2

      @@hamzaodt3515 who say it is wrong?

    • @hamzaodt3515
      @hamzaodt3515 4 года назад

      @@majesticchicken3213 I'm Muslim 🤭🤭

  • @chupitheslug
    @chupitheslug 2 года назад +1

    THANK YOU!!
    SUPER STR8 FORWARD AND EASY YOU HAVE MADE IT

  • @finalrenderanimationstudio
    @finalrenderanimationstudio 4 года назад +1

    This was a surprising Tutorial for me! Amazing Job

  • @xx11s
    @xx11s 4 года назад +1

    Thanks for the help good sir the hardest part for me was using animator this tutorial helped me a lot.Keep doing this awesome tutorial video
    :)

  • @zed8970
    @zed8970 4 года назад

    Very HelpFul bro. Thanks. It solved my many problems with animation and player movement.

    • @obalfaqih
      @obalfaqih  4 года назад

      You're welcome🙏🏼 Glad I could help🤗

  • @222مجهول
    @222مجهول 4 года назад +2

    dude you r my man الله يوفقك

    • @obalfaqih
      @obalfaqih  4 года назад

      🙏🏼🙏🏼🙏🏼🙏🏼

  • @sukhmanpreetsingh1525
    @sukhmanpreetsingh1525 4 года назад

    Thanks for helping me out. Keep up the great work.

    • @obalfaqih
      @obalfaqih  4 года назад

      You're welcome, always glad to help🙏🏼

  • @_libush5025
    @_libush5025 4 года назад

    افضل شخص يشرح يونتي 3d

    • @obalfaqih
      @obalfaqih  4 года назад

      الله يحفظك 🙏🏼🙏🏼🤗

  • @ylloo
    @ylloo 4 года назад

    Thanks. Really helped getting animations started

    • @obalfaqih
      @obalfaqih  4 года назад +1

      You’re very welcome, glad I could help 🙏🏼

  • @bhanujoshi6989
    @bhanujoshi6989 4 года назад

    great video .. looking forward for next video on more movement with animator

    • @obalfaqih
      @obalfaqih  4 года назад

      Thanks! Hopefully will create more animator tutorials, as for now, the focus is on Cinemachine tutorials

  • @cpcaraho7046
    @cpcaraho7046 3 года назад

    You have got a new subscriber

  • @caligulajones1237
    @caligulajones1237 Год назад

    WOW!! I followed a long as hell video on animations if statements up the butt! and nothing worked. This video saved my sanity frfr

  • @baherarts
    @baherarts 5 лет назад +9

    بالله عليك لا توقف ابدا
    THANKS PRO

    • @nibbayougay7227
      @nibbayougay7227 5 лет назад +2

      Do you mean thank bro? Thanks pro doesnt sounds make sense.

    • @moric4677
      @moric4677 4 года назад

      @@nibbayougay7227 you know pro doesn't make sense here

    • @HandheldGamingHQ
      @HandheldGamingHQ 4 года назад

      @@nibbayougay7227 pro as for professional
      not necessarily a typo for bro
      after all he's a pro more than his bro
      and if he was really wrong he would have fixed it by now

  • @matteocotichelli7131
    @matteocotichelli7131 3 года назад +1

    you are a genius, thnx a lot!

    • @obalfaqih
      @obalfaqih  3 года назад

      You're welcome and thanks for the comment🙏🏼😁

  • @natasales8007
    @natasales8007 4 года назад +5

    You have Jona Hill voice dude haha, great tutorial bro Thanks

    • @obalfaqih
      @obalfaqih  4 года назад +3

      Hahahaha never noticed that😂
      You're very welcome! Thank you for your comment 😁🙏🏼

  • @jahangirakbar4524
    @jahangirakbar4524 4 года назад

    Walikum Assalam Brother... Great video thank you for Uploading. Subscribed from Pakistan 😍🇵🇰

  • @fypage.
    @fypage. 4 года назад

    I love u this is so helpful I am learning unity complete beginner no coding experience so if I can master animation rigging and character modeling this will be fun

    • @obalfaqih
      @obalfaqih  4 года назад

      Thanks! Hopefully more animation tutorials are on the way👌🏻

  • @billyanimation9757
    @billyanimation9757 3 года назад

    Thanks, now I finally made my character's pose move

    • @obalfaqih
      @obalfaqih  3 года назад

      Congratulations! Glad to know that 🙏🏼

  • @NowWeWake
    @NowWeWake 4 года назад

    Thank you for the excellent tutorial. Just a note: The linked raw mocap data is no longer available on the asset store. Luckily, the tutorial can still be completed with your GitHub repo. Thanks again.

  • @PlayerOne360
    @PlayerOne360 5 лет назад

    Nice tutorial. Thank you

  • @mohammeddelyar7183
    @mohammeddelyar7183 4 года назад

    الفيديو رائع واسلوبك في الشرح ممتاز. بارك الله فيك .احبك في الله

    • @obalfaqih
      @obalfaqih  4 года назад

      مشكوور الله يحفظك 🙏🏼

  • @ZahedFelemban
    @ZahedFelemban Год назад

    يعطيك العافية

    • @obalfaqih
      @obalfaqih  Год назад

      الله يعافيك 🙏🏼

  • @rgbmines4295
    @rgbmines4295 3 года назад

    I love your intro and starting with bissimillah ♥♥♥

    • @obalfaqih
      @obalfaqih  3 года назад +1

      🙏🏼🙏🏼🙏🏼

  • @santhosh6700
    @santhosh6700 4 года назад

    Nice sir...its good...came from Mix and jam....have one doubt....in this lesson u perfectly explained what is Anima controller...but how to create a animation for Idle,walk,run,attack,jump, landing..... could you please explain...
    Thank you sir...
    Love from India 🇮🇳🇮🇳

    • @obalfaqih
      @obalfaqih  4 года назад +1

      Thanks!
      Hopefully will create more tutorials about Animator soon. One of them will be about jumping with 3 different animations.. Jump.. Air.. Contact.
      Thanks again!

  • @nv7287
    @nv7287 4 года назад +3

    Fantastic tutorial!
    Any tips for dealing with walking over uneven ground or colliding with objects?

  • @Sikopianist22
    @Sikopianist22 5 лет назад +3

    Best Tuto Love From Algeria ❤

  • @nersonmadriaga4842
    @nersonmadriaga4842 4 года назад +1

    May I know what is the disadvantage of this setup? Great tutorial btw.

  • @bopshuk
    @bopshuk 11 месяцев назад

    Thanks bro it works!

    • @obalfaqih
      @obalfaqih  9 месяцев назад

      Happy to help🙏

  • @stevoglitchyfishy2689
    @stevoglitchyfishy2689 4 года назад +4

    The link to this doesn't work anymore, are there other places where I can obtain this Data?

  • @SandeepTogarathi
    @SandeepTogarathi 5 лет назад +3

    You should make more tuts at a consistent pace.. your other tuts are also awesome

  • @sohrabhamza3805
    @sohrabhamza3805 4 года назад

    Thank you! Good Tutorial.

  • @Ahmed.Bin.Abdouu
    @Ahmed.Bin.Abdouu 4 года назад +1

    Ma shaa Allah good jop brother

  • @veno8571
    @veno8571 2 года назад +1

    Love this video but can you help if i can go back like asd it does not work can you help me?

  • @WithGamerAngelo
    @WithGamerAngelo 4 года назад +1

    انت اسطورتي ولله u are good

    • @obalfaqih
      @obalfaqih  4 года назад

      مشكوور الله يحفظك 🙏🏼🙏🏼

  • @brutalgamer1507
    @brutalgamer1507 2 года назад +1

    Bro also for backward and running
    And make a tutorial on mecanim please please please

  • @ilhamwicaksono5802
    @ilhamwicaksono5802 4 года назад +14

    the raw mocap data is now not available anymore in asset store :(

    • @jaskaransingh-ez4vf
      @jaskaransingh-ez4vf 4 года назад +2

      Raw mocap is not available so now you can get your assets from www.mixamo.com/
      Everything else in the tutorial remains the same.
      Cheers

  • @TechnoPhiliaa
    @TechnoPhiliaa 4 года назад

    its only turning towards the right (on pressing w+D) and making a circle. (A, A+W, D) is not working ? Can you plz help me out

  • @colton2073
    @colton2073 4 года назад +2

    Hi there I know I’m a little late but I’m trying to create a punching action when the player left clicks but have no idea how do do it. I already have a punching animation that I made and I’m using two arms for it (no actual character because the player can’t see it) and was wondering if you could tell me how to I could accomplish this or point me in the direction of some who can. Thank you for your amazing tutorial. Edit: instead Of doing the horizontal and vertical axis I might be able to do mouse button down or something of the sorts let me know what you think. Greetings from America

    • @DJLKM1
      @DJLKM1 4 года назад +1

      Drop the ainimation in the animator and put a link to it from the any state box (if you want the punch to happen at any time) and make a trigger param, and in the script add
      if(Input.GetMouseDown(0){
      .SetTrigger("");
      }

  • @parsec3d
    @parsec3d 4 года назад +1

    Great video! having a weird issue, if I press forward then left then right then and so on , and then for some reason it kind of gets saturated and I need to drop forward and then klick several combinations until it reacts again.. any clues?

    • @obalfaqih
      @obalfaqih  4 года назад +2

      Thanks!
      You mean it stops playing the animation? If that's the case, make sure all used animations have the loop option enabled.

    • @parsec3d
      @parsec3d 4 года назад +1

      @@obalfaqih yup either stops and refuses to walk again for several keystrokes or walks backwards 2-3 steps and stops.. will upload a small video .

    • @parsec3d
      @parsec3d 4 года назад +1

      @@obalfaqih !!! Loop was turned off in forward!! :o) Thanks ! the walking backwards remains :( and for some reason after a minute of so it stars to incrementally walk in -Y :( so the floor level is at the knees..

    • @obalfaqih
      @obalfaqih  4 года назад +2

      Lol. Such things happen all the time.
      As for the -Y issue, you don't have a rigidbody, right? I mean any gravity or a force that might affect it.
      Or, if it gradually goes down, maybe the animation itself has an issue.

  • @bonfaceosuka
    @bonfaceosuka 4 года назад

    Thanks so much for this video

    • @obalfaqih
      @obalfaqih  4 года назад +1

      You're very welcome 🤗

    • @bonfaceosuka
      @bonfaceosuka 4 года назад

      @@obalfaqih Could you please show me how to control the animations using keyboard inputs ?I have been trying to do so but its really hard .

  • @druidaloko8496
    @druidaloko8496 3 года назад

    4:09 I have a problem, in this version , when i tried to create a new var i click in the add button and instantly create a variable but it didnt let me change it to boolean or any other. Thanks, great video

    • @nicoledailey2322
      @nicoledailey2322 2 года назад

      Make sure ur on the parameters panel and not the layers panel

  • @xyz1i
    @xyz1i 4 года назад +1

    أولا انا اشكرك جدا لهذا الدرس الرائع لكن انا لدي الكثير من الحركات اريد ان يؤديها اللاعب وهو يمشي أو في وضع التنفس أي بارمتار اختار ؟ ارجو الرد وشكراا.

  • @jaymehta3615
    @jaymehta3615 4 года назад +2

    If we click S key will the player rotate backwards ?

  • @kunkles1763
    @kunkles1763 3 года назад +1

    Help if I change the animations in the blend tree my character don´t move (i have enabled apply root motion) Thanks and new sub

  • @MrMannmalik
    @MrMannmalik 4 года назад +1

    Fantastic! but any idea how to create smooth transition between the movements and also I am looking for procedural leaning while running & walking..any suggestion or idea would be great help!

  • @zyadibrahim3776
    @zyadibrahim3776 3 года назад +1

    please help me!
    i did every thing and the animation work perfectly but the player didnt move any where he still at the same place

    • @obalfaqih
      @obalfaqih  3 года назад

      Hi,
      When you select your animator controller, make sure “Apply root motion” is enabled.

  • @VirusFusion
    @VirusFusion 3 года назад

    When i play my character is stuck crouching and it looks like what it is on the muscles and settings tab, it also has the mirror option grayed out, can you help me out please!

  • @bleedn_out
    @bleedn_out 4 года назад +4

    my thing doesnt actually move it just does the animation
    and the script doesnt work

    • @antiyoygame2001
      @antiyoygame2001 4 года назад

      ....

    • @suanzalal
      @suanzalal 4 года назад

      @@antiyoygame2001 I feel you bro

    • @hamzabeg6882
      @hamzabeg6882 4 года назад

      Maybe because you didn't actually program movement... It's been 5 months and I really hope you've realized this by now

    • @bleedn_out
      @bleedn_out 4 года назад

      @@hamzabeg6882 it was an additional problem with video being outdated lol

  • @darken8312
    @darken8312 4 года назад +2

    Hello how are you? Thank you very much in advance for all your effort and tutorials that you do to learn to program, I was wondering if you could guide me about the rotation of the character, it is something I have wanted to work on for a long time but I can not find material about it. I would like to do something similar to your game, that the character rotates from left to right and vice versa, using an animation? Would it be too much to ask for a tutorial about it or some link or guide to do it? without obligation of course. Thank you in advance for everything and greetings from Argentina! you are an inspiration to many!

  • @rpmexpert5679
    @rpmexpert5679 4 года назад +2

    what version is this ?

  • @sangu1916
    @sangu1916 4 года назад

    I can't add configure button what may b the problem sir? It showing the avatar can b configured after settings have been applied

  • @Stinger-rq4gy
    @Stinger-rq4gy 3 года назад

    Excellent video, thank you for making these videos, helps people makes their games.😁😁😁😁🏆🏆🏆🏆🥇🥇🥇🥇🥇.
    Can you help me with this question?
    Can I make a 3D boss just follow my FPS character controller player around, and attack when close just by using Bolt Visual Scripting, and the Unity Animator Controller? Or do you need to use hand-writing coding to do something this complex?🤔🤔🤔

    • @obalfaqih
      @obalfaqih  3 года назад +1

      Thanks for your comment, I'm always glad to help 🙏🏼😁
      As for your question, I think it's doable in an easy way. I'm not familiar with visual scripting, but hopefully I'll get into that in upcoming tutorials. For starters, you can use NavMesh, which will handle the enemy's AI and follow you while avoiding obstacles. Then you'll have to calculate the distance and play the attack animation if you're within a certain range.

    • @Stinger-rq4gy
      @Stinger-rq4gy 3 года назад

      @@obalfaqih Excellent, thank you, I am making my first 3D boss. I don't like to use hand-written coding, it looks complicated, I prefer the Bolt Visual Scripting way of coding.

  • @TechWrathTV
    @TechWrathTV 3 года назад

    how is the player moving forward? or is it just for moving left and right?

    • @obalfaqih
      @obalfaqih  3 года назад

      It’s using root motion of the walk forward animation.

  • @marwanhany1995
    @marwanhany1995 5 лет назад +1

    I really can't thank you enough for this great tutorial

    • @EmesZack
      @EmesZack 4 года назад

      أفضل قناة بالعربي تشرح يونتي

  • @untitleddragon7322
    @untitleddragon7322 4 года назад +1

    my problem is my character wont move forward, and when I turn left or right and stop, it goes back to the first place... How can I fix this?
    P.S. animations work, its just not going to the right place

  • @vertigo2604
    @vertigo2604 Год назад

    Good job, but there is the question - will it work for example with mouse control (you make put the point by mouse click where player has to go)? Or also with character that is controlled by AI?

  • @immortalcry2266
    @immortalcry2266 3 года назад +1

    My character just walks fine in unity but on VrChat in-game, when she walks she bounces up and down and the animation just seems off

  • @fredyuckinghell2027
    @fredyuckinghell2027 4 года назад

    I have been looking since 9 in the moring, it is 23;30. I cannnot thank you enought, i can finally go to bed

    • @obalfaqih
      @obalfaqih  4 года назад

      Glad that I could help! Happy dreams😁🤗

  • @erfanzandi1362
    @erfanzandi1362 Год назад

    one the best Videos Still :)

  • @truesosense7722
    @truesosense7722 3 года назад

    Is there a way to script a navmesh AI that walks in the same way ? (Using turn animations). I couldn't find any tutorial, can you help me ?

  • @kingchabah328
    @kingchabah328 3 года назад +1

    thanks' that help me lot

    • @obalfaqih
      @obalfaqih  3 года назад +1

      You’re welcome, glad it helped 🙏🏼😁

  • @ponigo
    @ponigo 4 года назад

    does that for like WASD? or something else (sorry i am a beginner)

    • @obalfaqih
      @obalfaqih  4 года назад

      Yes, it does👌🏻
      We did that in the script where we used Input.GetAxis("Horizontal") which gives a value between - 1 and 1 based on the following input:
      (left and right arrow, A and D)
      And Input.GetAxis("Vertical") is for up, down, W and S.
      Hope that explains it🙏🏼😁

  • @iratemusic4575
    @iratemusic4575 4 года назад

    How do you animate animal controller? Fox Walking. Fox running. Fox eating food?

  • @hyperadoi
    @hyperadoi 3 года назад

    i have to click " W, A" to go left and "W, D" to go right but it goes left and forward and if i click just A the animation dont play :(

  • @Coolcause
    @Coolcause 4 года назад

    It's kicking off about the void in void update

  • @smelly_belly
    @smelly_belly 3 года назад

    So, I need help, I got some animations (that are not from the asset store I believe) that I tried to put in the motion box, but my cursor becomes like a stop sign and it doesnt let me put the animations in.
    Any help will be appreciated! :)

  • @BokiX_TDT
    @BokiX_TDT 3 года назад

    why i cant edit vertical or horizontal again?i can just rename it or delete?

  • @deardanagrace
    @deardanagrace 3 года назад

    idk if you can help with this but the animation only works when I am moving up and not when I can move left and right or back down. Is there anything I can do to fix this?

  • @JayJoeVid4EVER
    @JayJoeVid4EVER Год назад

    Simple! Just wish there was a version for first person.

    • @obalfaqih
      @obalfaqih  Год назад +1

      Thanks! For FPS you don't need walk animation, this tutorial was to show how to use the animations to drive the player's movement.
      For FPS, you will have two controls... one to move the player (WASD Keys) and rotate left and right... then rotating the camera up and down.

  • @ammomuzik
    @ammomuzik 4 года назад

    Thank you that helped me, but how I can make it turn left or right without moving forward first ?
    And I want to add collider so it can't move across the wall, please help and thanks again.

  • @Noname-yt5yv
    @Noname-yt5yv 4 года назад

    I know this video's a year old, but my character won't animate unless I'm using the parametres, if I use the player input it just moves while in the idle animation.
    Overall though this is a great video and you're a great help!

    • @gavenhollenbeck4630
      @gavenhollenbeck4630 4 года назад

      Same

    • @obalfaqih
      @obalfaqih  4 года назад

      Thanks, Emyl!
      First of all, are you using the same script in the tutorial? (You can get it + the project files from GitHub, the link in the description)
      If the player moves while in idle mode, then the script is the one moving it, probably not the animation (root motion).
      Common issues can be:
      - Not setting the transitions between the animation states correctly.
      - Not calling the correct parameters.
      Let me know what happens with you. All the best!

  • @manyu2266
    @manyu2266 4 года назад

    bro i am getting this error,The referenced script on this Behaviour (Game Object 'knight') is missing!

    • @obalfaqih
      @obalfaqih  4 года назад

      I think you just need to assign you gameObject to that variable

  • @1PRANAVDUTT
    @1PRANAVDUTT 3 года назад

    Another question ,how to make this character to interact with terrain and other bodies ,it is going through them and rigid body is also not working

  • @mousekeeters2820
    @mousekeeters2820 4 года назад

    Hi have you got the left & right movement script written diwn

  • @xofebruary
    @xofebruary 4 года назад

    Great tutorial, but i'm running into an issue where the animation only plays if i'm pressing 'w'

    • @obalfaqih
      @obalfaqih  4 года назад

      Thanks!
      If the other keys aren't working, then make sure:
      - You're using the same naming in your code and parameters (it's case sensitive)
      - Double check the transitions between the animations
      You can check the script here:
      github.com/OBalfaqih/PlayerMovementUsingAnimator/blob/master/Assets/Scripts/PlayerController.cs
      Or get the full project:
      github.com/OBalfaqih/PlayerMovementUsingAnimator
      Hope that helps, good luck!

  • @ozcanshalak7280
    @ozcanshalak7280 4 года назад

    hello omar .. thanks for this tutorial it was helpful but there are some mistake maybe ... you but the animation of tern right for the left and right value

    • @obalfaqih
      @obalfaqih  4 года назад

      Hi there, you're welcome 😁
      Yes, you can use "mirror" to use it for the other side👌🏻

    • @ozcanshalak7280
      @ozcanshalak7280 4 года назад

      @@obalfaqih thanks you make it clear 😁😁

  • @kingdom216
    @kingdom216 3 года назад

    What keys are you pressing for it to move? What is causing the axis to change?

    • @BossKing1243
      @BossKing1243 Год назад

      Exactly I don’t know how he did that lol

  • @runtigerL
    @runtigerL 2 года назад

    This works but a and w dont work together sometimes also for d and w please try to find the problem

  • @sidgamedev4587
    @sidgamedev4587 4 года назад

    Gr8 tutorial !

  • @aliwalid6682
    @aliwalid6682 4 года назад

    hey I have a question
    in the script when I put (public animator......;) nothing pops out in unity

    • @obalfaqih
      @obalfaqih  4 года назад

      Does it show any errors? You can refer to the script:
      github.com/OBalfaqih/PlayerMovementUsingAnimator/blob/master/Assets/Scripts/PlayerController.cs

    • @aliwalid6682
      @aliwalid6682 4 года назад

      @@obalfaqih its alright i found the problem but i have another question
      I want to make the character do another animation when it sprints
      what should I do pls answer

    • @obalfaqih
      @obalfaqih  4 года назад

      You can create another parameter, a boolean for instance and name it "sprint" whenever it's true and there's input, then it plays the animation.

    • @aliwalid6682
      @aliwalid6682 4 года назад

      @@obalfaqih yeah u r right, thank u man

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 5 лет назад +1

    فيه مشكل صغير
    عندما اقف يقوم بانيميشن المشي والعكس عندما امشي يقوم بانيميشن الوقوف

    • @obalfaqih
      @obalfaqih  5 лет назад +1

      اتأكد من الشروط في الاسهم واتأكد ان انيميشن الوقوف هو default

  • @uviolin593
    @uviolin593 Год назад

    huh how would i make a turn right and turn left animation?