Spine 2D animation for games. How to create 2D animation in Spine? How to make character animation?
2D Character Animation tutorial:
Today we will go through the whole animation process with you, such an Elf. Let's start by building a skeleton and converting all pictures into meshes that are deformed under the effects of our bones.
We make a skeleton, and we attach our textures to the skeleton.
When we make meshes, we take into account geometry of the object.
Let's turn on imagination, and imagine that this object has 3D dimensions not a flat drawing. Let's leave the face, we'll add to the face additional bone, which creates a pseudo-3D effect. You can see it in the preview window down in the middle. Adjusting the scales it's not an easy thing to do. We create a test animation of inactivity and we watch everything work as we want is everything swaying normally, is everything right deforms. If something is deformed not correctly we're fixing it. Repaint weights. When we roughly realized everything was fine, we did the basic animation. The main animation is to raise our sword. He says: “Hey stop! This is my sword! Look how cool it is. The enemy won't pass!”
We frown at his eyebrows. When the sword is raised, it blinks. We are doing preparation. He leans back a little bit and can come forward later raising his sword as if helping with the whole body. When we make animations, we must consider the weight of items in his hands. This weight will greatly influence the position of his body. Also on the sword. I make a glare so that when the sword rises it runs over it a ray of light. When in the process I realize that I'm missing something, I can complete the bones, and adjust the weights. We make animations for hair. Hair is always not easy. Especially in complicated animations. It is necessary to take into account every movement of his head, every movement of the head will change the hair's trajectory. Well, here is a glare, the glare doesn't go beyond the sword. We're going to make a mask. We fix the body on the hike we make animations for hanging objects to add a little bit of light to this character. It won't be particularly visible here, but it will give some such cute effect. Adding glow for these big blue stones. Let's straighten his fist, because when he raises his hand, then the fist should be different with look at the viewer. In the process, I decided that he would not just raise his sword, but also scroll through it. In such things, you must always take into account inertia because he picks up his sword, and scrolls, and then the sword adds a little bit more inertia to his hand.
I'm adding blur because if the sword moves fast, then the viewer will notice it's clear, he won't believe that it really happened fast. That's why it is necessary to manually make the blur texture. We have now exported our Elf to Unity. For his beauty let's add a simple effect adding the background, we'll smooth the background a little bit in the light so it will be not so gloomy.
Let's see what it looks like. I also added an asterisk to the tip of the sword.
The end! )