Enemy Animations



Both zombies have separate animator controllers but have the same animator format shown above. Parameters were needed to activate the conditions such as walk, run and attack. The animator looks complex but enables the correct functions, when the game starts enemies will begin to walk but if they see player then they will chase him before attacking. If the player is far away from the enemies then the enemies would carry on walking, Animations have been added for each animator but the attack is different, the first zombie will attack with his right hand while the second zombie will attack with his left hand. 


After the animations were done I created the zombie animator script to allow functionality of the enemy animations. The functions are called from the animator controllers I created earlier in order to be support these animations. 


Next I added the zombie controller script, this was a very long due to various functions required to animate the enemies. I referenced the zombie animator script including nav mesh controller that will pathfinding for the enemies and avoid each other. Attack point is a empty game object that resides on the enemy's hand and will inflict damage on the player. With these included the enemies can now perform different actions. 

Get Last Survivor