In this lesson, we will talk about animation and unity, how to animate your character using animator component, and sprite animation. animation is a big and important part of game development. Animation gives characters live, they become more interesting. And as a result, a user wants to play your game more. So, let's go to the animation folder and find this file. So this is any writer and these elements are not which are connected somehow.
And these elements are animations. So to see this window animation, go to Window animation animation All right. So for example, we have idle animation here. We have our body parts and the timeline. Do you remember that our character consists of parts? This is because the designer who created him was a clever guy and did all right.
So now we can change the position of characters body parts, create an animation that way. This is all my animator component, I go to our sportsmen. And here we have our removed component. So right click on add, remove component revert, and we have this component again. After that, I go back to the scene view, move my character a little bit. Good.
And let's go back to animator. So right now our sports man has there any major country opponent controller sportsmen. This is our source man animator, okay. So, it all starts with idle animation, of course. So if we click here, we see the properties or in the animation panel here and we can click on Play and see this animation. So and we can manage it for example, make it faster like this.
Alright. Okay. After that, we see that we have body had and weapon. We can for example, quickly going to head here and you see that the had a salad today Now, for example, put this line right here and click on the red circle. It means wreck. And now, for example, do like this with our head.
Kind of creepy. All right. Like right now, you see? Yeah, it works like like it has to work. So to create anything with your animation, you need to first select when you want it to happen. For example, here, here, here, here, or even here, until that select body part, or just a part of your object.
For example, let's take our weapon and click on this circle and do something with it. For example, let it like this and rotate like this. All right, click on the red circle again. And let's see, what do we have? Boom. That's kind of funny and creepy, but it works.
And of course, if you don't like something, you can simply select this point. And for example, adjusted here, sample, let's set it like 10. And let's see, boom, boom, boom. All right. All right. I'd like to tell you about another type of 2d animation sprite animation.
I have downloaded this coin. Greg, all these files to the folders, right? And one of these coins on the scene panel. All right. Next, let's create an animator component for it and create anyway later in the folder, rename it to coin and create a new animation. So after that, let's select all the sprites and drop them to the animation.
Let's make it longer. And okay that's tested. Good, our cones rotates. Alright, so this spread it's about 2d animation in unity, what you need to know to start