Рет қаралды 1,496
In this video, I will teach you how to animate your character in Unity. It is about animating a 3D character, since the creator has only made the tutorial for animating the 2D character long ago. This will be the first video that features a game character. The character, Magda, is part of this tutorial and it should be added as a game character, since I am also developing a new game.
The first thing you should do is to import the animations. You can download a Mixamo character, choose Idle, Run and Jump animations. These are the animations that your character needs to have. Then you should enter the Animator window and add the states. From Idle to Run, the isWalking should be true, if not running, it should be false. From Idle to Jump, the character is not on ground. Otherwise, the player's isGrounded value comes to true when it is on ground. The same is true for the run animation.
Your script needs to have a reference to the Animator component. It won't work without. By the end, you should make sure that the look rotation is fixed, to make your player run in different directions, with the pivot object.
Support the Creator of Kozmobot on the social networks!
CHECK OUT MY WEBSITE: kozmobot.com
SCRIPTS LINK: github.com/koz...
INSTAGRAM: / kozmobot.channel
TIKTOK: / kozmobot.channel