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!!!
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.
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. :-)
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!
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.
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.
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:)
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
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.
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
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
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.
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.
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.
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"...)
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.
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?
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 .
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.
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.
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.
@@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!
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
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!
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
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?
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?
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.
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!
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 !
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?
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?
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.
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
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. 😢
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. 🤷♂️
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
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? :/
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!
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
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
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).