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

  Рет қаралды 156,470

iHeartGameDev

iHeartGameDev

Күн бұрын

Пікірлер: 407
@ronnid8837
@ronnid8837 4 жыл бұрын
Watched the whole series and it is really well explained! Probably one of the best unity tutorials and always straight on point. Subscribed =)
@ashtonquincy3800
@ashtonquincy3800 3 жыл бұрын
i guess I'm kind of off topic but does anyone know of a good website to watch new movies online?
@kaydenkorbin225
@kaydenkorbin225 3 жыл бұрын
@Kenzo Misael definitely, have been using Flixzone for since april myself :D
@ashtonquincy3800
@ashtonquincy3800 3 жыл бұрын
@Kenzo Misael Thank you, I went there and it seems like a nice service =) I appreciate it !
@kenzomisael8259
@kenzomisael8259 3 жыл бұрын
@Ashton Quincy you are welcome =)
@MrCat-hx4sk
@MrCat-hx4sk 2 жыл бұрын
Completely agree
@kulak8548
@kulak8548 3 жыл бұрын
The fact you timestamped every little piece of this video shows next-level dedication to making the information accessible.
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thank you Kulak! Happy to hear it’s worth the time investment!
@sinify6676
@sinify6676 4 жыл бұрын
If making tutorials is something you enjoy, I beg you to keep going. You have the 'x' factor for it (i.e. voice, cadence, attention to detail, etc.)--see the rate of people saying likewise in the other comments. This series is exceptionally done. For me, the main detail that I have enjoyed is how you explain EVERY menu-item found in the unity UI when covering the topic. It is extremely common to see tutorials that: only cover a very primitive overview of what they are implementing, never explain how their 'solution' scales to other implementations, never touch on the details of other features, never explain why you would use their idea (vs. some other concept), etc. Based on that, I think it is essentially guaranteed that you can grow your channel to an arbitrary amount of subscribers/likes/views. I would not be surprised to check back later and see you have 100k+ subs. Best of luck, and again, well done.
@T8BB
@T8BB 11 ай бұрын
even tho i didnt understand the tutorial clearly due to my limit of english language and my knowledge in coding and using unity, i subscribed and joined the membership because of how detailed your explaining was, it is really hard to find people like you in KZbin who literally explain every single detail and information to the viewer. THANK YOU A LOT.
@iHeartGameDev
@iHeartGameDev 11 ай бұрын
Hey! Thank you so much for the support! I hope the content on my channel is able to help you on your gamedev journey!!
@harrangkhalsa7408
@harrangkhalsa7408 4 жыл бұрын
Dude this is one of the best tutorials I've ever seen I've been looking for something like this for so long. Thank you for this so much
@barelycertain
@barelycertain 3 жыл бұрын
If you're having trouble making the animations blend and play correctly make sure you have the animations looped as he explained in previous videos. He didn't explain it this time and I had trouble figuring out what I was doing wrong.
@rwinftw
@rwinftw 3 жыл бұрын
I had the animations looped but my character waits to walk then it blends after that wait
@GuruguyGaming
@GuruguyGaming 3 жыл бұрын
Comments section is a lifesaver sometimes lol, thnx fam!
@goobler7191
@goobler7191 2 жыл бұрын
@@rwinftw disable exit time
@AnimateIt2BauBau
@AnimateIt2BauBau 2 жыл бұрын
Thanks you're really awesome
@newgoogleaccount3526
@newgoogleaccount3526 3 жыл бұрын
I love the fact that you cover almost every aspect of Unity's UI which helps to learn more about the topic and develop better game. Nice background music, this is how all tutorials on the internet should be.
@SassyPantsy
@SassyPantsy 3 жыл бұрын
Honestly, after 7 months of learning gameDev by myself, finding your channel is like taking a breath of much needed air. Everything's explained instead of just being written down, including the glitches, so we could learn what makes them happen, and what should be taken into consideration. Way better tutorials than everyone else, including brackey's and the other big names. I sincerely hope you continue with this!
@kevinmitchell6775
@kevinmitchell6775 3 жыл бұрын
Bruh, I've been looking for a tutorial series that actually explains what's happening and not just how to accomplish something! Great job!
@gekcon86
@gekcon86 9 ай бұрын
the Goat at animations tutorials
@SomnolentPotato
@SomnolentPotato 3 ай бұрын
Its been 3 years already from the upload and its still one of the best (if not the BEST) animation tutorial you can find. Tysm for this tutorial
@annoyingpigeon2688
@annoyingpigeon2688 3 жыл бұрын
If anyone is having issues with the animations, make sure they are set to loop and exit time has been disabled on the transitions into the blend tree
@angelkaki5707
@angelkaki5707 Жыл бұрын
all the animations?? or just the idle, walk and run?? coz now that i added the code my left input its not working as long with the left shift run
@JustinHendrix-i2c
@JustinHendrix-i2c 9 ай бұрын
Saved my ass thank you!
@michaelderosier3505
@michaelderosier3505 2 жыл бұрын
This is a "Must Watch Tutorial Series" for any beginner using Unity Animation Tools. If you watch his entire series for Unity Animation you will be far better off in the long run. Thank you soooo much for this upload !HeartGameDev.
@iHeartGameDev
@iHeartGameDev 2 жыл бұрын
Thank you for watching! I think my newer videos are even better 😊
@derbabonennt8876
@derbabonennt8876 4 жыл бұрын
your tutorials are one of the best - pretty clean and relativly short.
@akshay_gyaan
@akshay_gyaan 3 жыл бұрын
I really like that he doesn't treat us as "beginners". Great tutorials for intermediate to advanced level learners!
@victor1102
@victor1102 3 жыл бұрын
Your reminder at 12:53 is very much appreciated! Often time for beginner like myself this is often overlooked when overwhelmed by the code.
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Amazing! Thank you! I love to hear that :D
@MrRevelance
@MrRevelance 3 жыл бұрын
I didnt even notice there was an ad at the beginning of the video because you make us so excited to see the tutorial asap. Wonderful work!
@lucasfarias1148
@lucasfarias1148 2 жыл бұрын
Thank you for the video! For anyone wanting a shorter way, this is what I've done: Vector2 inputVelocity; -------> Using Input System (new) I get a Vector2 instead of a single float from the Input Manager (old) Vector2 currentVelocity; -------> As I get a Vector2, instead of storing inputs in single floats, I use a single Vector2 float maxVelocityX; -------> Max allowed velocity in X float maxVelocityY; -------> Max allowed velocity in Y (Z axis in the video) private void Update() { LateralMovement(); ForwardMovement(); animator.SetFloat(VelocityYHashCode, currentVelocity.y); animator.SetFloat(VelocityXHashCode, currentVelocity.x); } private void LateralMovement() { maxVelocityX = runPressed ? maxRunVelocity : maxWalkVelocity; maxVelocityX *= MathF.Sign(inputVelocity.x); -------> be sure to use MathF (capital F) instad of Mathf, the later is a Unity library and behaves differently from MathF (c# library) currentVelocity.x = Mathf.MoveTowards(currentVelocity.x, maxVelocityX, Time.deltaTime * changeRate); } private void ForwardMovement() { maxVelocityY = runPressed ? maxRunVelocity : maxWalkVelocity; maxVelocityY *= MathF.Sign(inputVelocity.y); -------> be sure to use MathF (capital F) instad of Mathf, the later is a Unity library and behaves differently from MathF (c# library) currentVelocity.y = Mathf.MoveTowards(currentVelocity.y, maxVelocityY, Time.deltaTime * changeRate); } public void OnMove(InputAction.CallbackContext context) -------> Input System Events { inputVelocity = context.ReadValue(); } public void OnRun(InputAction.CallbackContext context) -------> Input System Events { if (context.started) { runPressed = true; } else if (context.canceled) { runPressed = false; } }
@anaibrahim4361
@anaibrahim4361 3 жыл бұрын
not just learned about unity animation system but i also learned how to write clean code perfect this is what i call pure gold thanks a lot bro
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thanks so much for the kindness Ana! Really happy to have helped you learn!
@ericbramble5043
@ericbramble5043 3 жыл бұрын
Here you are almost a year later and your videos are still helping aspiring game devs learn essential concepts to create. Thanks for what you do man!
@miguelsandoval6800
@miguelsandoval6800 4 жыл бұрын
Straight on point, explaining everything even when its not used, what more can I ask for? Oh, wait, I know... More videos! :D
@greedy_onigiri
@greedy_onigiri 5 ай бұрын
Wonderful tutorial. Clear, concise, and extremely informative. I've yet to see any tutorial go through such lengths to explain these features. THANK YOU!!
@foofitz7661
@foofitz7661 4 жыл бұрын
Nice work Nicky! I'm from Brazil and just want you to know that even for people that don't understand to much about coding, you make a lot easier! Thanks for doing this =)
@divergentunity5020
@divergentunity5020 3 жыл бұрын
You have a natural gift for teaching and breaking thing's down to bite size chucks. Great work on all your video's. Thanks for making them available for everyone to watch.
@ljoraanstad
@ljoraanstad 2 жыл бұрын
this is an absolutely brilliant video/series. You cover topics and complex features super well. I really appreciate this and look forward to putting it into my own game. Highly recommend this.
@iHeartGameDev
@iHeartGameDev 2 жыл бұрын
Hey Levi! Thanks so much! I’d recommend actually checking out some of my newer tutorials too! I’ve learned a lot since this tutorial was released and hopefully you can learn it too!
@alexthompson8977
@alexthompson8977 2 жыл бұрын
@@iHeartGameDev I'm new to unity and all the animated running works but my character isn't working. I'm using unities in built animation system as well as simple cubes for the character so does it need to be a proper rigged character or am I doing something wrong?
@PersonalAccountIndeed
@PersonalAccountIndeed 2 жыл бұрын
You are absolutely the king of Unity animation tutorials, these go so in-depth and are explained really well. I'm glad I found this!
@ved7108
@ved7108 3 жыл бұрын
this is the best tutorial series on the internet(including paid ones)
@018FLP
@018FLP 3 жыл бұрын
Oh man, as a beginnerDev, i'm really really proud of using the same logic as you before seeing this video, really got me in a "yaaah, i'm in the right path!" mood. Your refactoring is amazing, btw. It's a thing nobody covers, so your tutorials are complete, not that "do this, do that", and i appreciate it so much. Thank you! Keep up the good work
@captainvaughn5692
@captainvaughn5692 9 ай бұрын
Damn all this time learning unity felt like i was just copying someone elses work, and to be honest it was just that, simply because every explanation didn't actually learn me to develop features myself. This is probably the first video that not only taught me something, but gave me ideas on how to implement stuff myself. I'm now thinking about making a blend tree system that merges different aim animations through camera rotation. Man, thank you. For real. You are amazing!
@iHeartGameDev
@iHeartGameDev 9 ай бұрын
I know this video is years old, but I still go through and read all of my comments. I love these types of comments because they really hit home that the direction of quality vs quantity on this channel was the right approach. Thank you for taking the time to write it.
@captainvaughn5692
@captainvaughn5692 9 ай бұрын
@@iHeartGameDev I'm currently going over your state machine videos, and altough i don't understand everything yet, i think its important to learn about more abstract concepts in programming as well, and learning about OOP concepts like inheritance, polymorphism and so on is really cool. You really explain things well, i'm very thankful for your work!
@wett1988
@wett1988 4 жыл бұрын
Great explanation of this complex mechanics, thank you so much for your work! I didn't even know how to approach the animation process before, but now I will definitely try!
@stephenq24
@stephenq24 3 жыл бұрын
I think this was an amazing video because you not only showed HOW to do something; but, you explained the WHY behind everything that was done. Good job and keep making videos please.
@aldigangster123
@aldigangster123 4 жыл бұрын
Outstanding quality! Instant sub. I like how much effort you put into the explanation! And even timecodes, wow. Please keep making Unity tutorials like these :)
@chrisdewitt1598
@chrisdewitt1598 3 жыл бұрын
Nicky, this is an outstanding series. As an educator myself I really appreciate your level of detail in explaining all of the different options so people can make use of those in the future. What might help though, is a video on what to do if something goes wrong. Maybe a "how to troubleshoot" animation problems video. Speaking from experience, I go through these step-by-step and my results don't always work out. Then it is really difficult being new to the content to figure out what happened. Sometimes the comments section provides a solution, but not always.
@mr.dingleberry4882
@mr.dingleberry4882 3 жыл бұрын
Top-notch quality right here people! Very thorough and insightful explanation, hard to believe we are getting it for free.
@Sodr123
@Sodr123 4 ай бұрын
Hi, thank you so much for this tutorials, english isnt my native language but you managed to clearify information even for someone like me, highly appreciate your hardwork, keep going!!!
@nucleartide
@nucleartide 2 жыл бұрын
Thanks for creating this tutorial series, I'm learning loads about how Unity animation works! One note on the acceleration + deceleration: it'd be cleaner to use Mathf.SmoothDamp, or even Vector3.SmoothDamp to damp between desired values. Here's what my implementation ended up as: void Update() { // Grab inputs. var w = Input.GetKey(KeyCode.W); var a = Input.GetKey(KeyCode.A); var d = Input.GetKey(KeyCode.D); var leftShift = Input.GetKey(KeyCode.LeftShift); // Compute desired Z. var desiredZ = 0f; if (w && leftShift) desiredZ = walkSpeed; else if (w && !leftShift) desiredZ = runSpeed; // Update Z. velocityZ = Mathf.SmoothDamp(velocityZ, desiredZ, ref smoothDampForVelocityZ, smoothTime); // Compute desired X. var desiredX = 0f; if (a) desiredX -= 1f; if (d) desiredX += 1f; desiredX *= leftShift ? runSpeed : walkSpeed; // Update X. velocityX = Mathf.SmoothDamp(velocityX, desiredX, ref smoothDampForVelocityX, smoothTime); // Update animator. animator.SetFloat(velocityXHash, velocityX); animator.SetFloat(velocityZHash, velocityZ); } An additional improvement would be to use Vector3.SmoothDamp as mentioned earlier. Also, the input vector should be normalized so the player's diagonal movement is equal to cardinal movement.
@Random_Guy420
@Random_Guy420 2 жыл бұрын
Bro your video are so well edited and jam pack with useful infos that a beginner need to understand.
@zardify_
@zardify_ 4 жыл бұрын
Just a heads up for them folks here; Been doing stuff with Unity for ages now (~6 years). This seems so easy every time you get to it... up until the point where you're still adjusting to the engine. Once you have an idea or you're trying to implement a concrete design, it suddenly seems to feel really rigid, and impossible to adjust to perfection. If you're going into the last camp, know that you'll have to mix blend trees with normal states, layers and sometimes handle root motion yourself from script, even. You'll have to do things not even documented by Unity themselves... XD
@buysmartter
@buysmartter 2 жыл бұрын
I am learning tons of new stuff I didn't know. Thanks! the whole series is great!
@kalebmcgregor2993
@kalebmcgregor2993 3 жыл бұрын
Maybe it's just on the patreon project files but at 19:28 when you are scrolling through the code, I didn't see mention of locking left and right, just locking forward. That's cool and all just thought it was a weird jump in logic and made me go back and forth a couple of times to catch it.
@ironheavenz
@ironheavenz 2 жыл бұрын
Thanks a lot for this series, I have been struggling to correctly understand animations and this is a lifesaver Really concise and straight to the point tutorials, each one self-contained yet better paired together, I ended up following the entire series to make sure I didn't miss anything and ended up learning really useful details on top on what I already knew and I also didn't feel bored or overwhelmed Each one of your tutorials is god tier quality and really thorough, not just being a "follow along" but also allowing me to get a deeper understanding of what we're doing in a simple way This is just amazing
@iHeartGameDev
@iHeartGameDev 2 жыл бұрын
Thanks so much Ignacio!
@thygrrr
@thygrrr 3 жыл бұрын
Excellent tutorial. Easily S tier among all the tutorial makers. The coding stuff is standard fare - but the refactoring part at the end is absolute diamond level good.
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thank you so much! I hope the rest of my videos meet the same quality!
@MarcGrosset-nk8kl
@MarcGrosset-nk8kl 10 ай бұрын
Wow, congrats ! clear, cool, complete. Really an awesome tutorial
@gabrijel9129
@gabrijel9129 2 жыл бұрын
Honestly, a really well done tutorial series that gets me excited to learn more! You're doing great!
@acewinge2302
@acewinge2302 4 жыл бұрын
mate you are one of the best out there in terms of tutorial. Your channel will definitely blow up.
@TNTCProject
@TNTCProject 4 жыл бұрын
Good Job Nicky! Your explanations are always clear and precise Super happy to see that your channel is growing :) - Erik
@TNTCProject
@TNTCProject 4 жыл бұрын
@@iHeartGameDev
@weimaychen4346
@weimaychen4346 4 жыл бұрын
Really amazing tutorials you have! Clear and easy to follow, very well planned! Would love to see a similar tutorial for creating NPC character animations :)
@yoyopei3793
@yoyopei3793 7 ай бұрын
So helpful even after 3 years! Thank you
@ironheavenz
@ironheavenz 2 жыл бұрын
For anyone who's forward animations are working but the strafing ones are not unless you press forward first: Make sure that the blend tree is your default animation If you want to have another one as your default animation, make sure you make one transition that checks if velocityZ is greater than 0 and a sepparate one that checks if velocityX is greater than 0
@kunalbhayana
@kunalbhayana 4 жыл бұрын
As always Concise and brilliant explanation! I love these timestamps that you add. Can't Thank you Enough! Definitely Gonnna hit the notification bell.
@fishy_96
@fishy_96 4 жыл бұрын
@@iHeartGameDev Bro You are The best. Can you also please add tutorials on another subjects that'll be really helpful 😁😉😁
@danielweber4961
@danielweber4961 4 жыл бұрын
Great tutorial! I love how well separated and organized it is, on the video player and on the side bar.
@Herdetzy
@Herdetzy 4 жыл бұрын
Great content! I have been working with this and it is the best mixamo and animation videos out there. Very easy step by step and it is keeping me motivated!
@barelycertain
@barelycertain 3 жыл бұрын
It's saying the video is from Manhattan, but I'm seeing a really sizable area behind you! But you know what, you're one of the few people that deserve it. You're incredible. I appreciate this more than you know, and it kinda blows my mind that Unity can combine animations. The idea that animations can be combined in the first place is just whack.
@elmundodeFreeman
@elmundodeFreeman 3 жыл бұрын
Everything you do is magic.
@coro54
@coro54 3 жыл бұрын
Never worked with unity or blender and I simply decided to create a character for Risk of Rain 2, and without these videos I'd given up a long time ago, still i have to learn so much...
@ahmetomercicek5848
@ahmetomercicek5848 2 жыл бұрын
Thank you for making the complex process simple and understandable. I would love to see more educational content for unity from you.
@bentom945
@bentom945 4 жыл бұрын
Now I understand about these 2D options, better than Unity documentation itself LoL. Thanks for your great tutorials, excellent explanation. Your videos can be masterpiece soon. Can’t wait for new videos.
@DennisGJerzSHU
@DennisGJerzSHU 3 жыл бұрын
Yes, this series is teaching me just what I needed to know. I've subscribed.
@chamudpathirana
@chamudpathirana 4 жыл бұрын
These videos are really great man. Appreciate a lot. Please keep making more tutorials!! Looking forward to learn more from you.
@MarcGrosset-nk8kl
@MarcGrosset-nk8kl 10 ай бұрын
No doubt, Nikky should be awarded. Subscription is a duty^^
@inorishu1877
@inorishu1877 4 жыл бұрын
One be the most organized tutorial series....i would love to see more
@ajmckennan1663
@ajmckennan1663 4 жыл бұрын
LOVE IT! Well done as usual!!
@charlesonis3484
@charlesonis3484 4 жыл бұрын
Lovin' these tutorials man, so well made!
@lycagos1278
@lycagos1278 3 жыл бұрын
what did i jusr saw???? god damn, the most glorious tutorial in the internet!!!!!!! i subscribe immediately
@hydroweapon
@hydroweapon 3 жыл бұрын
These videos are exactly what I was looking for
@unbotheredwaffle
@unbotheredwaffle 3 жыл бұрын
I did it alone! LET'S GOO! Took me a bit but it's actually pretty intuitive.
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Heck yeah! Way to go!!
@IrfanAli-so5hh
@IrfanAli-so5hh 4 жыл бұрын
Great Series Man ! It will be helpful for if u put a episode number in each episode's thumbnail of the series. Otherwise we always want to check the playlist to get to know which video we wanna see next when we have finished an episode.
@codeFriendlyART
@codeFriendlyART 4 жыл бұрын
Great series! Getting to understand a few things I had doubts about regarding the 2D Blendtrees definitions! Love the pace on this last ones as well. Loving that you're taking the time to work some refactoring at the end while keeping the main development as simple as possible! Just great job! 🎇😎
@iboxgaming9418
@iboxgaming9418 3 жыл бұрын
You are the best man!! the best tutorial I have ever seen
@murrischcat9098
@murrischcat9098 2 жыл бұрын
What a journey!!! Amazing work!!! 👏
@alexjackson3767
@alexjackson3767 4 жыл бұрын
This is awesome :) love the clear explanations, as always
@vaibhavshukla7769
@vaibhavshukla7769 3 жыл бұрын
Best tutorial clean, easy and on point
@AlexCaie-m4g
@AlexCaie-m4g 4 ай бұрын
Hello, your videos about the unity animation system have taught me a lot. I have never coded before and I thought that this could be useful for anyone who is not that smart like me. I don't understand the purpose of a parameter (-0.5,-0.55) Run dec to walk if I have already stated that it will decelerate if > -0.5 is true. I know it locks the variable to the desired number but why doesn't > -0.5 do the same.? // Condition: what will happen: what won't happen: // 1. Left, larger than -0.5 or -2 will -accelerate until -0.5 or -2 Won't go past either number. // 2. Left not pressed, smaller than 0 will + decelerate until 0. Won't go past 0 // 3. R/L ! pressed,not 0 within (-0.05-0.05) reset to 0 if in parameter Won't go past ( -0.05-0.05 ) // 4. run+lef press, smaller than -2.0 reset to -2.0 if it goes past Won't go under -2. // 5. Left, smaller than -0.5 decelerate to -0.5 Won't go unde -0.5 // 6. left,within (-0.5,-0.45) reset to -0.5 Won't go past (-0.45,-0.5) idle to walk // 7. left, within (-0,55,-0.5) reset to -0.5 Won't go past (-0.5,-0.55) run to walk //5.6.7.= Only walk. (else runpress) //Possible outcomes : left pressed pressed || Left pressed and runpressed || Left not pressed || Runpressed // Lets see what happens when: // --left only: // 1.accelerate until -0.5. //--left not pressed: // 2.deaccelerate until 0 but actually until 3. (-0.05-0.05) then reset to 0. //-- left+Runpressed: // 1. accelerate until -2.0 //--!Runpressed, left // 5. (else) Meaning X is smaller ("larger") than walk, it will decelerate until 7. (-0,55,-0.5) and reset to -0.5
@qzlocxx
@qzlocxx Ай бұрын
epic
@viktoriiashkurenko2849
@viktoriiashkurenko2849 4 жыл бұрын
Amasing videos (as always)!! Can't wait for the next ones! Really interested in animation based events
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
you are a great instructor. and your explanations are PERFECT. thank you so much for all of these videos. youre the best!
@sansavatar5929
@sansavatar5929 Жыл бұрын
Thanks Nicky this is truly a good quality content
@iHeartGameDev
@iHeartGameDev Жыл бұрын
thank you for watching!
@LuRybz
@LuRybz 4 жыл бұрын
This is actually really useful content. Found you from reddit. Thanks for sharing
@XpucT
@XpucT 3 жыл бұрын
Short version: void Update() { bool forwardPressed = Input.GetKey(KeyCode.W); bool leftPressed = Input.GetKey(KeyCode.A); bool rightPressed = Input.GetKey(KeyCode.D); bool shiftPressed = Input.GetKey(KeyCode.LeftShift); // FORWARD if (forwardPressed) { if ((!shiftPressed && velocityZ < 0.5) || shiftPressed && velocityZ < 2) velocityZ += Time.deltaTime * acceleration; if (!shiftPressed && velocityZ > 0.5) velocityZ -= Time.deltaTime * acceleration; } if (!forwardPressed && velocityZ > 0) velocityZ -= Time.deltaTime * deceleration; // LEFT if (leftPressed) { if ((!shiftPressed && velocityX > -0.5) || shiftPressed && velocityX > -2) velocityX -= Time.deltaTime * acceleration; if (!shiftPressed && velocityX < -0.5) velocityX += Time.deltaTime * acceleration; } if (!leftPressed && velocityX < 0) velocityX += Time.deltaTime * deceleration; // RIGHT if (rightPressed) { if ((!shiftPressed && velocityX < 0.5) || shiftPressed && velocityX < 2) velocityX += Time.deltaTime * acceleration; if (!shiftPressed && velocityX > 0.5) velocityX -= Time.deltaTime * acceleration; } if (!rightPressed && velocityX > 0) velocityX -= Time.deltaTime * deceleration; animator.SetFloat("Velocity Z", velocityZ); animator.SetFloat("Velocity X", velocityX); }
@harshparihar9857
@harshparihar9857 3 жыл бұрын
I love the way you explained blend tree and I really understand very well thanku so much ❤️❤️
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thank you for watching and the kind words!!
@hyperdz415
@hyperdz415 2 жыл бұрын
i give up while seen all this variables xD your coding completely amazing and pro so i decide to do it with myself it works too
@brunopastor9508
@brunopastor9508 2 жыл бұрын
Really good content man thanks a lot!!
@duelator2813
@duelator2813 3 жыл бұрын
This really helped me out tons! Thanks Nick :)
@zubariaayub5150
@zubariaayub5150 Жыл бұрын
This is a very helpful series, walking us through every step in plenty of detail. Highly appreciated. Liked & Subscribed. :D A small recommendation, please start the video off with what we will achieve at the very end as a point of reference, in case somebody wants to try on their own along the way.
@feragon42
@feragon42 3 жыл бұрын
This was intimidating at first, but you helped me throught this. Great videos!
@AnjaliGupta-ii3kl
@AnjaliGupta-ii3kl 2 жыл бұрын
Heyyy! great tutorial, i have been following the complete playlist and it has really helped me. I just had one question, that how should i make my character actually move in the game world and how does it go backward using "s". It would be a great help if you could answer. Thanks man!
@appleamplifier4448
@appleamplifier4448 3 жыл бұрын
Best tutorial ever!!
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thank you Apple!
@MrKiraBR
@MrKiraBR 3 жыл бұрын
Dude your explanations are outstanding. Thank you so much for sharing such an awesome and important content!!!
@tahaelaradi5539
@tahaelaradi5539 4 жыл бұрын
Great learning resource in the making. Keep it up and best of luck!
@shsstudios5292
@shsstudios5292 Жыл бұрын
Amazing explanation, please keep going!
@JimmyDeLock
@JimmyDeLock 3 жыл бұрын
Such a great video, thanks a bunch man!
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thanks again for watching Nathan!
@wika96
@wika96 3 жыл бұрын
You did a really great job. Superb tutorial series
@hypetrain7134
@hypetrain7134 4 жыл бұрын
Yes!! I’ve been waiting for this!!
@imc0der
@imc0der Жыл бұрын
Thanks for video. Bro your oratory awesome and explanation is simple and descriptive
@iHeartGameDev
@iHeartGameDev Жыл бұрын
So nice of you! Thank you!
@laxya.7693
@laxya.7693 2 жыл бұрын
You rock dude, keep going!! #respect from India
@mostyndarko
@mostyndarko 4 жыл бұрын
Your tutorial vids are awesome btw. Keep up the good work! ;)
@SHINIGAMISTUDIOS-k5y
@SHINIGAMISTUDIOS-k5y 9 ай бұрын
Really Amazing video, helped me a lot♥
@iHeartGameDev
@iHeartGameDev 9 ай бұрын
Glad it helped!
@Optimus-ti8er
@Optimus-ti8er 11 ай бұрын
great tutorial! for my project i am currently trying to expand on this bit of code by adding a backwards movement animation however the technique i am using for it doesn't seem to be working. It would be great to have any piece of advice on how i can make it happen! thank you.
@jdiosilvaf
@jdiosilvaf 3 жыл бұрын
Just AMAZING!!! Ty for that class :D
@iHeartGameDev
@iHeartGameDev 3 жыл бұрын
Thank you for watching!
@ericcastro007
@ericcastro007 3 жыл бұрын
I would like you to improve this tutorials adding JUMP animations and it's scripts. Your Knowledge about blendtrees is deep and the edition of your videos is professional. I dont know how many hours you spend producing and editing your videos, but we appreciate it.
@vobissunt
@vobissunt 4 жыл бұрын
Genuinely excellent tutorials.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 198 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,2 МЛН
How To Animate Characters In Unity 3D | Animation Layers Explained
16:00
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 516 М.
Intro to Animation Rigging & Procedural Animation in Unity
13:33
iHeartGameDev
Рет қаралды 198 М.
How to work with humanoid animations in Unity
12:50
Unity
Рет қаралды 41 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
An Aseprite Crash Course In 30 Minutes
31:47
AdamCYounis
Рет қаралды 1,1 МЛН
Unleash Flawless Unity Animations with Blend Trees
21:06
Inexperienced Developer
Рет қаралды 23 М.
How to Move Characters In Unity 3D | Character Controllers Explained
9:46
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 198 МЛН