2D Animation with Blend Trees Unity Tutorial

preview_player
Показать описание
To finish up some 2D Top Down basics, we'll improve upon our movement by adding idle and running animations. This Unity Tutorial will show how you can leverage the power of Blend Trees to handle multiple directions for a single animation state, and also how to transition between different animation blend trees.

Finally we look at persisting the direction you were heading towards when you stop moving, which takes a bit of extra work.

Animations look really cool!
....Please don't make me do more tutorials on it :)

✨Want to support the channel?

➤Don't forget to SUBSCRIBE for all the upcoming content.
We have channels to help you with your problems!

~~~~Assets~~~~
~~~~~~~~~~~~

Thanks for watching!!

#bmo #unity #tutorial
Рекомендации по теме
Комментарии
Автор

holy cow. I've been looking for idle directions for a roguelike everywhere and everything I've seen was super bloated and dumb. THIS WAS THE MOST USEFUL TUTORIAL FOR UNITY I'VE EVER USED.

mauigamestudio
Автор

FINALLY! Finallt my player walks and has the right animation TwT thks very much!!!!

esthernadjavlog
Автор

You are an amazing teacher! Thank you! Also the humor makes learning way more fun. Please keep doing this tutorials cause im learning a lot!

soysimonsimon
Автор

What an awesome video. I came back to Unity after checking out some other engines and I needed a refresher on these things. Thanks a ton.

Entikai
Автор

You can also use this code in the ProcessInputs( ) function to disregard diagonal input without needing 4 extra motions in your blend tree if you want 4 directional movement only:

float moveX =
float moveY =

// Disregard diagonal input.
if (Mathf.Abs(moveX) == Mathf.Abs(moveY))
{
moveY = 0;
}

archentity
Автор

Gosh I lost so much time today on this, thanks for the video, I was on the right track, but this definitely clarified many doubts I had!

isyreyes
Автор

Bro, this tutorial is perfect. I just wish you had it for the new input system. That's the only area where I've had to experiment to make things work. Still, I got everything running perfectly now except for the idle animations, so thanks!

trueblue
Автор

2 years later your tutorials are perfect, for a new beginner dev like me :) thanks!

AdamJensenReal
Автор

Love the way you presented the whole thing! Subbed and belled <3

messiah
Автор

thank you sir saved me from some headache

troreen
Автор

Thanks so much for this Tutorial! It helped me alot. At first the last movement portion wasn't working for me and I couldn't figure it out. So I just closed and restarted Unity and it worked fine.

shantelwilliams
Автор

omg thank you so much for this. I've been pulling my hair out trying to figure out this stuff. Tried following a different tutorial but it wasn't working out. This saved my sanity... or whats left of it lol

baz
Автор

First off, thanks for this tutorial. Not only it was straight forward, but it help me understand basics of C# scripting. I have studied programming fundamentals in C for several months, so I had some intuitions about what you were doing there. Other tutorials skip this process or take it for granted. I have an issue myself: I added 8 animations for my idle and 8 for my walking state. Thing is, it will not transition from diagonal walking, rather it will transition into a horizontal or vertical idle pose. I assume this is related to how movement is mapped or something about the scripting, and I tried some solutions myself, but didnt solve it. Thanks!

dunkelheit
Автор

Thanks for such a helpful video! I was having trouble assigning my animations to key presses, but a blend tree is much easier 👍

nyasha
Автор

You're a fantastic teacher. Much appreciated!

fancygraystuff
Автор

Wow, great tutorial! how dafuq can it only have 70 upvotes? keep up the good work!

sayalec
Автор

Thanks a lot! This helped me make my game and understand a lot about the animation system in unity :)

justintodd
Автор

Amazing!! I'm subscribed and liked

PixelMusicAI
Автор

Excellent work with this video and the top down. I'm looking forward to the collisions. So far your videos have been the most helpful. I have a question. How would you construct jumping in a top down game.

megamayo
Автор

Great work on the video. When doing that last part about remembering the last position, you could just surround your animator.setfloat x and y in an if statement checking if moveDirection is not 0 right?

manterclaw
join shbcf.ru