Hyper Knights: Battles

Hyper Knights: Battles

Not enough ratings
Create Animation - Advanced
By Endless Loop Studios
Making a custom Attack Animation
   
Award
Favorite
Favorited
Unfavorite
Guide
Now that you have learned how to make a basic Idle Animation lets make something more complicated like a custom Attack Animation

When making Animations for your own unit it helps to first make the 4 Idle Animations and then start all other Animations from there.
So to make the Animation AttackDown we're going to load the animation dDagger_IdleDown


First let's change the name to make sure we don't overwrite the IdleDown Animation
Click the Animation Name button and change it to Dagger_AttackDown


Click the button to Remove all Keyframes except first on all Body Parts


Okay so now we have the starting point for our Attack Animation
The basic phases of an Attack Animation are the Wind up, the Attack and the Reset

Add a new Keyframe to all Body Parts


Set all Body Parts Frame Count to 20


Position all the Body Parts to where they will be at the end of the Wind Up phase
Since we're making the Animation AttackDown we're going to move everything up


Now that the Wind Up is done, let's set up the Attack.
Add a new Keyframe to all Body Parts
Set all Body Parts Frame Count to 5
Set up the positions for the Attack phase, since this is Attack Down let's position the Weapon and all the other Body Parts accordingly


Add a new Keyframe to all Body Parts to have a small delay after the hit
Set all Body Parts Frame Count to 10

Click the button to duplicate the first Keyframes on the end


Set all Body Parts Frame Count to 10

So the full Animation timeline is:
Wind Up: 20 frames
Attack: 5 frames
Pause: 10 frames
Reset: 10 frames


The visual Animation is done!



Now we need to add a Trigger on the Keyframe that will trigger the Action to cause damage to the enemy.
Select the Weapon Body Part
Select the Attack phase Keyframe


Click the 'Trigger' button on the Inspector and write ATTACK_HIT which is the default Trigger used by the default Unit AI

Congratulations! You have made your own Attack Animation!

Now go ahead and make your own AttackUp, AttackLeft, AttackRight in order to build your own custom Unit.