Enemy Animations

I decided after the enemies i should start focusing on the animations for each enemy, the basic animations that i wanted to have is shooting, drawing (the arrow) and patrolling. I received my animations from Mixamo.com, as they have very good animations and with state trees the animations would be smooth and have the effect that i wanted to have

I set up a state tree for the idle animation to begin with, however i would not really need it, as i want the enemy to be patrolling or attacking all the time, and not to be idle, however future proofing my project felt needed, as a result i added an idle animation. Then i went on with the walking animations for the patrolling action. For which i had to include an animator variable in the script for the enemy AI, the walking animation would start only when the enemy is patrolling and stop as soon as the player approaches.

When the player approaches, the enemy will start playing an animation of drawing their bow and shooting and arrow, repeating this process until they are dead, or when the player moves outside of the patrol range. To create this animation i set up a state tree to activate only when the player gets in range and to shoot only when the animation for the drawing of the bow has finished, in order for the player to have time to dodge the arrow.

One thought on “Enemy Animations

Leave a comment

Design a site like this with WordPress.com
Get started