- Home /
How to incorporate custom animations for Ethan
The new third person controller is pretty cool. So I had some custom animations for it, to incorporate a melee attack and a spell cast and also a die. I have no clue how to use the Animator. I was able to add the animations to the avatar. I am using a script to play the animations, but it does not recognize any of them. I am attaching an image of my animator and my script.
Answer by cmonroy · May 30, 2015 at 04:36 AM
Okay...
You have two parameters named Turn and Speed. Using the SetFloat(var, value) you get to play each corresponding animation. Some animations cannot be used -logically- with those two parameters.
For instance when your character dies, there is no Turn or Speed involved. Add a bool parameter called isDead and when the health of your character goes to zero, send a true value to the Animator.
Basically, you need to add more parameters to control what you want to do.