Тёмный

How to Animate Characters in Unity 3D | Blend Trees Explained: One Dimensional 

iHeartGameDev
Подписаться 79 тыс.
Просмотров 209 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 351   
@ivyzheng2047
@ivyzheng2047 4 года назад
The series so far is the most explicit Unity tutorials for me to follow along so far! You're my LIFESAVER! Thank you so much Nicky! Can't wait to see the rest of them!!!
@NoldoWalker
@NoldoWalker 3 года назад
Agree, best about animations what ive founded for now!
@artyomcg
@artyomcg Год назад
You can also just clamp velocity if (forwardPressed) { m_Velocity += m_Acceleration * Time.deltaTime; } else { m_Velocity -= m_Deceleration * Time.deltaTime; } m_Velocity = Mathf.Clamp01(m_Velocity);
@SamuelDarby
@SamuelDarby 11 месяцев назад
that works really well thanks
@fret2fret221
@fret2fret221 4 года назад
you've gained a sub man. holy crap. im actually starting to understand code and how it works. it all looks like gibberish before this particular video. now im starting to realize what it all means in the script and how its logically written. so fascinating. thank you! I don't know if its planned in your series or not but I would love to see a video on world interaction. specifically walking toward an object and picking it up, climbing onto something, etc. thank you.
@GameDevNerd
@GameDevNerd 3 года назад
Code is the best part! It's just a way to tell a computer what it must do and how to follow your commands. And it's not hard at all, it just looks intimidating at first, but it's all simple, short-handed ways of expressing logical processes and the flow of control. Once you get familiar with coding and learn a language you realize you can literally make anything you want happen in a computer system. :-)
@gaetanolombardo6150
@gaetanolombardo6150 Год назад
I have never listened to a clearer and more proper explanation on mechanim than this one. At last. This is gold
@GameDevNerd
@GameDevNerd 3 года назад
I liked and even went ahead and subscribed. I'm an old DirectX programmer and C# master who just started messing with Unity and your videos solved confusion I had about getting animations working and taught me what all the editor buttons and gizmos do. I'm doing my first Unity game prototype right now and it's getting quite sophisticated. I've done all of these things before, and used to write my own engines on top of DirectX and OpenGL, but Unity is a new tool for me. So far, thanks in part to these videos, Unity has been an absolute joy to work with. I was away from development for a few years and the industry and tech has advanced GREATLY! There's never been a more fun or interesting time to be a game developer than today in 2021!
@jas2890
@jas2890 4 года назад
for thos who want to still use the run with shift feature still ive pulled some messy code up for you: using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimationStateController : MonoBehaviour { Animator animator; float velocity = .0f; public float acceleration = .4f; public float deceleration = .8f; int velocityHash; public float MaxWalkingSpeed = .5f; void Start() { animator = GetComponent(); velocityHash = Animator.StringToHash("Velocity"); } void Update() { bool forwardPressed = Input.GetKey("w"); bool runPressed = Input.GetKey("left shift"); if (forwardPressed && velocity < MaxWalkingSpeed){ velocity += Time.deltaTime * acceleration; }if (runPressed && forwardPressed && velocity < 1.0f){ velocity += Time.deltaTime * acceleration; } if (!forwardPressed && velocity > .0f){ velocity -= Time.deltaTime * deceleration; }if ((!forwardPressed || !runPressed) && velocity > MaxWalkingSpeed){ velocity -= Time.deltaTime * deceleration; } if (!forwardPressed && velocity < .0f){velocity = .0f;} animator.SetFloat(velocityHash, velocity); } } ps. the variables are changed to suit my game.
@blaccy5991
@blaccy5991 4 года назад
Don't put every line of code into update. Put them into their own separate functions and call them. Also you are creating new bools every frame instead of holding them as a private variable. A better way would be to make a function to get inputs (isCrouching, isSprinting, isWalking etc) another function for setting your velocity velocity and a third function for setting your animator variables. If you do this it would be more modular, more performant and much easier to manage.
@jas2890
@jas2890 4 года назад
Blaccy thanks
@blaccy5991
@blaccy5991 4 года назад
@@jas2890 No problem. If you want I can rewrite your code
@jas2890
@jas2890 4 года назад
Blaccy no don’t worry about it it’ll keep me occupied for a little bit
@blaccy5991
@blaccy5991 4 года назад
@@jas2890 Just ask if you have a problem then
@slsno3333
@slsno3333 3 года назад
Hi Nicky, was frustratingly stuck for days following different tutorials then youre chanel came along. What a life + time saver thank you so mutch can't wait to watch the rest of the tuts! Awesome amount of info in short movies thanks again.
@kkrup5395
@kkrup5395 3 года назад
Wow i looked at your subscribers cound and saw 3,95 figure. I thought "nice, 4 million subs, that's why quality is so great".. And then I realized it is thousands. I feel you gonna grow rapidly, thanks for the video:)
@jccfrancis
@jccfrancis 11 месяцев назад
Even though this is from 3 years ago, everything is so clear man, keep it up, great tutorials
@saadmansuri4092
@saadmansuri4092 3 года назад
Haven't even started the video but dropped that like already cuz i know it's gonna be another mind-blowing tutorial. Ayo yo Nicky, Don't forget us OG's when you make it big on youtube xD
@SassyPantsy
@SassyPantsy 3 года назад
Amazing tutorials man, Subbed! For anybody having trouble with jittering in the animation - basically a split second transition between the blend tree and back to idle, and then back to blend tree again: The reason this happens is that for a split second, by using an acceleration rate of 0.1f, the value of velocity is both less then 0.5f AND greater than 0, so the animation does this double transition. To fix this, Up your acceleration values to something greater (for me it's 0.5). It might be effective to do a much smaller number, but I couldn't find one.
@nikesh_niki
@nikesh_niki Год назад
I did 0.5 but still facing the same issue. Any idea why ?
@OrdinaryOcean2001
@OrdinaryOcean2001 3 года назад
Honestly one of the best tutorials I've ever seen. It was the perfect speed and covered just the right amount of detail. Keep up the good work!
@akashjaiswar9437
@akashjaiswar9437 3 года назад
I used unity animations before but this series taught me new things and helped me become better then I was ever using unity. Keep on going like this sir it really helps people like me
@AphixDev
@AphixDev 3 года назад
I love how you explain everything, no matter how relevant it is for this tutorial! :D
@gizel4376
@gizel4376 3 года назад
i like it too, i hate when other tutorial show you how to do something, but they assume you don't need to know what some line do, but yes i do, i need to know what everything do in my code, otherwise, how can i play with it
@thygrrr
@thygrrr 3 года назад
Excellently structured for intermediate and advanced unity users. Awesome tutorial!
@chadzulu4328
@chadzulu4328 3 года назад
Best Unity series that I've watched in years (since around 2016).
@Asimaro
@Asimaro 5 месяцев назад
im gonna say real thank to all your work man
@iHeartGameDev
@iHeartGameDev 5 месяцев назад
Thank you for your kindness! I'm happy to help!
@Aphelion78
@Aphelion78 3 года назад
Thank you so much for these videos. I haven't been working with Unity very long but the most difficult and frustrating things for me has always been mecanim. This is the first time that I'm finally beginning to grasp the concept and make forward progress.
@cam4722
@cam4722 4 года назад
Great presentation quality and pacing. I look forward to seeing more!
@phantomprogramming
@phantomprogramming 4 года назад
Super high quality! I was surprised to see you only have 783 subs, you deserve more! Keep it up!
@dwanascie228
@dwanascie228 6 месяцев назад
For anyone wondering the tutorial still works fine in 2024, there are some additions in the newer version of unity but the old stuff still works the same.
@lesarch
@lesarch 4 года назад
These tutorials are awesome! Very clear and goes straight to the point. I look forward to your future tutorials.
@DanPos
@DanPos 3 года назад
Great tutorials Nicky!
@iHeartGameDev
@iHeartGameDev 3 года назад
Hey Dan! Thanks so much 😊
@justbg4e520
@justbg4e520 3 года назад
@@iHeartGameDev thanks man
@iHeartGameDev
@iHeartGameDev 3 года назад
@@justbg4e520 Thank you for watching!
@SuperLordee
@SuperLordee 11 месяцев назад
insanely helpful tutorial. Very well explained!
@iHeartGameDev
@iHeartGameDev 11 месяцев назад
Thanks so much Super Lordee!
@Chapter9
@Chapter9 Год назад
great effort dear NickyB. no one on youtube with such detail.
@casparrii
@casparrii 2 года назад
These are GREAT tutorials! Good level of detail and brilliant explanations and examples! Thank you :)
@EnigmaStudioPro
@EnigmaStudioPro 4 года назад
Hey! Thanks Nicky you are an amazing Teacher. You explain everything. Please make more videos. We love you. I love your way of teaching. You explain everything.
@EnigmaStudioPro
@EnigmaStudioPro 4 года назад
@@iHeartGameDev please make more videos. We love your teaching style and editing. Thank you so much!!! Soon you'll hit million subscribers.
@rendum9152
@rendum9152 3 года назад
when I press w, the speed goes up, but he remains in idle. He starts running at about 0.9f. other times it starts walking at 0.3f...
@numero7mojeangering
@numero7mojeangering 2 года назад
Keep seeking for where the bug could come from!
@cello91
@cello91 3 года назад
Just found your channel yesterday! Awesome content - love how accurately you explain every detail! :)
@cello91
@cello91 3 года назад
@@iHeartGameDev amazing that you just started 8 Month agieren and already put out such high quality content! Did you teach yourself?
@cello91
@cello91 3 года назад
@@iHeartGameDev Amazing! Wish you the best for Your Channel! Will join discord later today!
@buysmartter
@buysmartter 2 года назад
Dude, you are awesome! your videos are super clear, explained in details, and are really fun to watch. You are clearly investing a lot of effort doing them. Thanks! BTW, if you get to one of the videos by search (and not via the Unity's Animatin System series) it's not clear which is the next video to watch. I struggled to find the next video in the series. It would help if you put a link to next video on the description, and put at the end of each video a clearer thumbnail of the next one (Saying "part 5"...)
@buysmartter
@buysmartter 2 года назад
Actually you did put a link to the series in the description 🙂 so scratch that...
@mikokosasi4074
@mikokosasi4074 2 года назад
videos on pretty much everytNice tutorialng. Feels like I can finally move forward with making soft.
@edsarenas6389
@edsarenas6389 4 года назад
this is super awesome. hope you cover IK and animation layers too
@sneaky9073
@sneaky9073 3 года назад
At 4:01, when I try to drag Velocity, my character stays still. Any help?
@iHeartGameDev
@iHeartGameDev 3 года назад
Hey! Be sure that the character is selected when entering play mode :)
@pro-hunter4588
@pro-hunter4588 3 года назад
@@iHeartGameDev worked thanks
@isirapramodith8720
@isirapramodith8720 3 года назад
good tutorial . thanks
@TalhaRiaz197
@TalhaRiaz197 2 года назад
You are one of my Favourite RU-vidr
@hadimalik4313
@hadimalik4313 3 года назад
Hello, Nicky. Could you please do a tutorial on how to blend a run and shoot animation( both are available from mixamo). I've done everything I can think of, but the animation result still comes out looking extremely wonky, with the arms going off sideways.
@marcelorochacomposer
@marcelorochacomposer Год назад
Thank you! Help me a lot!
@evilplantosavetheworld
@evilplantosavetheworld 3 года назад
First off this series is friggin awesome, honestly the best unity animation tutorials I've ever found. Second off, is there a reason we don't just use Mathf.Clamp on velocity? Or is it just to avoid going into additional code?
@vieirapereira1298
@vieirapereira1298 3 года назад
i think this should be on unity official program, great work !
@ty-xq7bl
@ty-xq7bl 3 года назад
best tutorials ever.
@Damian_h
@Damian_h Год назад
dang ur clean bro!!! thanks.
@ismail3819
@ismail3819 4 года назад
This video is really unexpectedly useful. Did not know you can explain very easily . But , I don't have an application for unity scripting . By the way , please make videos of playmaker in the future .
@ismail3819
@ismail3819 4 года назад
Am I the only one who is just helpless 😭 . I still cannot code scripts in unity
@ismail3819
@ismail3819 4 года назад
I didn't know that blend tree is useful like this 😯
@penciltamaraart
@penciltamaraart 4 месяца назад
I have followed this tutorial and have integrated the new code parts with the ones in the previous episode. However, I feel like something is missing as my character, which uses the XBot model from Mixamo, is not working as it should. I believe I am missing an explanation on how to remake the transitions between states and the blend tree, and I do not know how to set them up.
@Haerinaaaaa
@Haerinaaaaa 4 года назад
Thank you Nick. This is awesome
@santiagorodriguezsaura9418
@santiagorodriguezsaura9418 3 года назад
you explain very well, great tutorial!
@AndersonMarquesss
@AndersonMarquesss 3 года назад
Your content is amazing!!! Thanks for share it with us.
@CarpathianWasteGroup
@CarpathianWasteGroup 3 года назад
I have a problem: When I press w the character doesn't start to walk until velocity reaches like 0.65-ish and the time it take to reach 1 is way slower than the deceleration. When it reaches 1 and I let go of the w it is buttery smooth when it comes to going back to 0 and the animation work perfectly.
@CarpathianWasteGroup
@CarpathianWasteGroup 3 года назад
I solved the problem where I have to wait for the animation to start when I press w. But the acceleration speed is still way slower then the deceleration speed of the character animation.
@linkous4924
@linkous4924 3 года назад
I really like your smile, and nice tutorials :)
@rashidfarhan6223
@rashidfarhan6223 3 года назад
you are soo underrated my man
@signalised9540
@signalised9540 4 года назад
This is a great vid, ty for ur time and effort
@joydeeproy9542
@joydeeproy9542 4 года назад
Can you please make a video on how to make advanced third person controller just like we have in many AAA games
@joydeeproy9542
@joydeeproy9542 4 года назад
@@iHeartGameDev yaaah....thanks 😀😀😀
@AnshumanStark
@AnshumanStark 4 года назад
@@iHeartGameDev bro make it as fast as you can please....
@coverscollection8775
@coverscollection8775 7 месяцев назад
4:46 Why when testing blend tree dragging the velocity didnt move my player at all? I already press play and and dragging it nothing happens
@coverscollection8775
@coverscollection8775 6 месяцев назад
@@_kdgbljr nahh just forget it hahah
@shammahcharles4941
@shammahcharles4941 Год назад
Hello, I put the code in like you said and followed your instructions to a T, but my code is still not working when I press “w”
@WolvenBolt
@WolvenBolt 3 года назад
SO my animations are getting a weird delay when pressing W I can see my velocity increasing but the animation doesn't start for another 5 seconds
@WolvenBolt
@WolvenBolt 3 года назад
@@iHeartGameDev I uncheck exit times from the last tutorial where there wasn't a blendtree, but I I forgot to for blend tree method and remembered unchecking it before. Thanks NIcky!
@pnka999
@pnka999 Год назад
then what was the point of pressing left shift in code ... when blend tree triggers the running animation
@largeicedpumpkin
@largeicedpumpkin 3 года назад
I love these tutorials and find them extremely helpful! I'm just confused by one thing right now, is the velocity code supposed to go in the same script as the one we made last episode? it looks like you started a new script in this video and i got lost around there lol
@largeicedpumpkin
@largeicedpumpkin 3 года назад
more specifically, im getting a "Controller 'XBotController': Transition '' in state 'Blend Tree' uses parameter 'Velocity' which does not exist in controller." error message, if that helps!
@largeicedpumpkin
@largeicedpumpkin 3 года назад
@@iHeartGameDev okay, that makes a lot of sense now!! i started a new script and now its working, thank you!
@drake_eric9799
@drake_eric9799 2 месяца назад
I don't have error my blendtree not working in build run just frozen not walking but in editor is walking i use starterAsset i didn't know what i did
@gamedeveloperashish
@gamedeveloperashish 3 года назад
Your the best for game developer teach .
@iHeartGameDev
@iHeartGameDev 3 года назад
Thank you!!
@doodlestein4397
@doodlestein4397 Год назад
does anybody know how to actually make the character move after following this tutorial? all the animations work great but the character stays in the same place
@rendum9152
@rendum9152 3 года назад
Do I just replace the script from the boolean video with the one from this video?
@iHeartGameDev
@iHeartGameDev 3 года назад
:) You can make a new script!
@valuee5298
@valuee5298 Год назад
U r awesome! thx bro
@iHeartGameDev
@iHeartGameDev Год назад
thanks very much!
@jdiosilvaf
@jdiosilvaf 3 года назад
Amazing!
@rendum9152
@rendum9152 3 года назад
am I suppost to create a different animationstatecontroller or something?
@iHeartGameDev
@iHeartGameDev 3 года назад
If you’re coming from the Boolean video, yeah you can save the Boolean script and just title this one something different :)
@PauloSamurai
@PauloSamurai 3 года назад
Really awesome content! thanks!
@bayefek8047
@bayefek8047 3 года назад
whenever I make a blend tree it creates a new parameter called blend should I delete it or what should I do with it in the video when he makes a blend tree it doesnt create a blend parameter is there something wrong with my unity?
@touqan5091
@touqan5091 3 года назад
If i drag my velocity value to the right it does not start walking can someone help
@iHeartGameDev
@iHeartGameDev 3 года назад
Try selecting the character in the hierarchy and then dragging
@gamesknot3165
@gamesknot3165 3 года назад
same problem...it walks after 5 sec everytime
@gamesknot3165
@gamesknot3165 3 года назад
the solution is to uncheck has exit time
@Redsun0000
@Redsun0000 4 года назад
You really need to contact Unity to make official tutorial !
@jroc6745
@jroc6745 3 года назад
This is cool. Well explained too. How would I make the movement speed also increase/decrease with the velocity perameter to match the animations in the blend?
@VinayKumar-ge1dl
@VinayKumar-ge1dl 3 года назад
Hey my animation is not working my charecter is just standing in idle position pls helpppp Now it just started running without any velocity control
@NotMichaelEither
@NotMichaelEither 2 года назад
7:07 My animation is delayed. It will start walking only after 0.1 velocity. I dont have time to figure it out now, so i hope someone can tell me if im doing something wrong by the time i get back to this. Thanks.
@yuvallevy5368
@yuvallevy5368 3 года назад
hi. i have a problem when i try to blend from the walk to the run nothing happens, can someone help me with this
@justbg4e520
@justbg4e520 3 года назад
bro, i made the exact script and when i pressing w nothing happening. please help !
@iHeartGameDev
@iHeartGameDev 3 года назад
Hey! If you are still stuck, feel free to jump into the discord and ask for help. Otherwise, I will have the projects and scripts up on Patreon in the next couple of weeks when the Patreon launches!
@rishavpattnaik06
@rishavpattnaik06 3 года назад
Hey Nicky ! thankyou for sharing the knowledge but I'm facing an issue, i.e. when I run my game, my character first does the idle animation then goes to walk animation then again comes back to idle animation then it starts increasing it's velocity....how to fix that ? I'll be waiting for ur answer !
@considermecrunchy3431
@considermecrunchy3431 3 года назад
mine too
@hydroweapon
@hydroweapon 3 года назад
How would this be done on the new input system?
@bonsai0076
@bonsai0076 4 года назад
When starting to code, where do I start the script?? Also under ybot?
@bonsai0076
@bonsai0076 4 года назад
@@iHeartGameDev So just add a second animationStateController?
@bonsai0076
@bonsai0076 4 года назад
@@iHeartGameDev Ohhh, thanks so much!! Also, thank you for replying so quickly!!! Great quality tutorials bro, amazing work!
@bonsai0076
@bonsai0076 4 года назад
@@iHeartGameDev Thx✌🏻
@clintonpambayi893
@clintonpambayi893 2 года назад
Does soft soft co with the samples? And are these copyright free?
@maeseke9097
@maeseke9097 3 года назад
how do you add a jump animation?
@iHeartGameDev
@iHeartGameDev 3 года назад
Next video that will be released hpoefully next sunday.
@TheShadowprototype
@TheShadowprototype 3 года назад
Big question here, please I need help, if I wanna use the pistol idle and pistol shooting from mixamo on a third person game the character move their entire body when moving, is there some way to make only the torso follow the aiming camera?
@iHeartGameDev
@iHeartGameDev 3 года назад
Yes! That’s known as Inverse Kinematics! Definitely check it out
@TheShadowprototype
@TheShadowprototype 3 года назад
@@iHeartGameDev So much thanks for the answer, btw got any reference where I could get around it?
@kaloshabuthapa3284
@kaloshabuthapa3284 2 года назад
What did you do with the blend parameter? It appears when I first create the blend tree
@dogwatch6144
@dogwatch6144 2 года назад
You can use that in place of Velocity, you can even rename it if you wish. My guess is that Unity auto creates it now to save the user time.
@md.hasibulislamvlogs7689
@md.hasibulislamvlogs7689 3 года назад
Hey bro, love your work. I used the script you provided and seemingly did everything right. But when I press W the volocity isn't changing. Any idea what went wrong?
@iHeartGameDev
@iHeartGameDev 3 года назад
Hey, no clue! But if you join the discord someone can probably help you out
@md.hasibulislamvlogs7689
@md.hasibulislamvlogs7689 3 года назад
Ok
@harshsonwane05
@harshsonwane05 4 года назад
can you plz give tutorial for working with mouse and keyboard both, for attacking an enemy
@xander_cane2151
@xander_cane2151 3 года назад
Hi. I was following your tutorial and I just noticed that my character is not moving at all. The animation is playing but the character is staying only in one place.
@iHeartGameDev
@iHeartGameDev 3 года назад
Hey be sure to watch my videos about the built in character controller and movement!
@fret2fret221
@fret2fret221 4 года назад
right about the 3 minute mark were you're showing the blend tree and you're adding the animation to the blend tree and showing the loop Time and loop pose boxes, mine is grayed out and when I hit play and adjust the velocity like you did nothing happens. also...when I go to select which animation to add to the blend tree in the inspector window I have a bunch of options to choose from. I went through all of them and they all keep the loop time grayed out and nothing happens when I adjust velocity. please help. lol
@fret2fret221
@fret2fret221 4 года назад
Nicky B ok so I got it to finally not be grayed out, but still nothing happens when I hit play and adjust velocity. Trying to figure it out as we speak. You are correct tho I had chosen the wrong animation not realizing it at first. Still lost tho. 😢
@fret2fret221
@fret2fret221 4 года назад
Nicky B so I figured it out...I think....eventually hit play and he started moving. But he was running when the velocity was turned down and walking as I turned it up. The order of the walking and running motions on the blend tree inspector tab matters apparently. Re-ordering then and putting running on top of walking made it work correctly. 🤷‍♂️
@2ksp235
@2ksp235 3 года назад
Hello @Nicky B the video is great it helps me but i have a problem i did use the blend tree but my character just froze when the animation is done. I t does not loop can u please help me?i even try this check box loop but it does not work
@fret2fret221
@fret2fret221 4 года назад
Also one more comment before I move to the next video. On mixamo, I downloaded an already created/skinned character. Will this matter when I get to the future videos about adding our own created character model? :/
@gcmabraham1468
@gcmabraham1468 2 года назад
RetroSun oh my god too let know when you figure it out
@donbalanzat
@donbalanzat 3 года назад
I'm on the part with the first blend tree transition with the idle animation. The entire idle animation is playing before transitioning to the blend tree state - any help appreciated!
@donbalanzat
@donbalanzat 3 года назад
@@iHeartGameDev Thanks so much for the quick response! Worked like a charm!!
@yasasvitennety4885
@yasasvitennety4885 Год назад
I’m having the same issue, how do I fix it?
@AhmedDeedatPalestine
@AhmedDeedatPalestine 3 года назад
Bravo!
@ekanshtardeja
@ekanshtardeja 4 года назад
What about moving right and left
@ekanshtardeja
@ekanshtardeja 4 года назад
@@iHeartGameDev thx dude u r really a gud utyber taht u listen to the comments
@CalitoMr
@CalitoMr 3 года назад
Please make the next video how to start animation with a button for mobile
@CalitoMr
@CalitoMr 3 года назад
Ok thx
@biaristiqomah7483
@biaristiqomah7483 2 года назад
very very nicceeee
@mxyer2605
@mxyer2605 3 года назад
My animation keeps looping from idle to walk/run then back to idle but i cant get my guy to stay in idle when not moving
@mxyer2605
@mxyer2605 3 года назад
@@iHeartGameDev lol my bad im not good at explaining but i fixed it after i watched the video over
@Headcator
@Headcator 2 месяца назад
Does anyone else have that limp animation when you first start walking?
@harshsonwane05
@harshsonwane05 4 года назад
2 week bro no video we are waiting
@animelitestudios3283
@animelitestudios3283 4 года назад
My character is walking in the place and not moving forward
@animelitestudios3283
@animelitestudios3283 4 года назад
@@iHeartGameDev so will you be teaching it in a separate video.
@animelitestudios3283
@animelitestudios3283 4 года назад
@@iHeartGameDev I will be waiting 😄
@Dr3ampunk
@Dr3ampunk 3 месяца назад
Assets\animationStateController.cs(40,58): error CS1026: ) expected Assets\animationStateController.cs(45,2): error CS1513: } expected i got these errors.
@roughcactus69
@roughcactus69 3 года назад
quick question, where does he put his code? I did everything he did, but it's not working. Pretty sure it's because the code is in the wrong spot.
@roughcactus69
@roughcactus69 3 года назад
@@iHeartGameDev Thanks! Another question are you ever going to show how to add physics?
@chief_rasko
@chief_rasko 3 года назад
Nicky, while following the tutorial I found that when setting up the initial transition back from the first Blend Tree to the Idle animation, setting the Condition for the transition as Velocity < 0.05 caused the Animation to jitter/revert back to the Idle animation for a second before continuing with the walking -> running animations, this was quite confusing however setting the Condition for the transition to Velocity < 0.01 instead fixed the issue. Hope this helps anyone who came across the same issue
@RaulCesarAdolfo
@RaulCesarAdolfo 2 года назад
This helped me, thank you :)
@KnightFury9900
@KnightFury9900 2 года назад
OMG that bugged me out thanks mate appreciate it
@chananimation9484
@chananimation9484 2 года назад
You save my life mare
@Cap0verkil
@Cap0verkil 2 года назад
Hi can you help me with this? I don’t understand how to change the condition for to transition to velocity
@DeadHandRed
@DeadHandRed 10 месяцев назад
thanks chief
@lucifxxrog8319
@lucifxxrog8319 2 года назад
Hi I am following your tutorial. I am getting a problem of my animation being stuck, the character walks but the transition between walk and run just messes everything. he freezes, wont walk wont run and goes inside ground
@MarkRiverbank
@MarkRiverbank 3 года назад
These are extremely helpful for learning more complex animation. A couple code tips though, it's generally better to expose your fields in the inspector by adding the "[SerializeField]" attribute rather than making them public. And, for your input handlers, there is the class "KeyCode" with static members for all the keycodes, so you don't have to use strings (eg. KeyCode.W, KeyCode.LeftShift).
Далее
Трудности СГОРЕВШЕЙ BMW M4!
49:41
Просмотров 1,3 млн
Barno
00:22
Просмотров 619 тыс.
I Made a Graphics Engine
6:42
Просмотров 254 тыс.
The Making of Karlson 2D (Game)
11:41
Просмотров 6 млн
6 Years of Learning Game Development
9:02
Просмотров 2,4 млн
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
Escaping Unity Animator HELL
18:18
Просмотров 509 тыс.