I got a run animation which I want to play everytime the character walks in any direction. How would I go about doing this?
You basically want to blend the weight of the animation based on how far the character has moved in the last frame. Store the characters position every frame and find the distance moved.
- Put “walk” on a higher layer to idle
- Store the position of the character every frame
- Work out the distance the character has travelled since the last frame
- Use that to set the weight of the “walk” animation (you will need to work out how far moved to what weight looks right for you)
Thanks alot but I don’t really understand
I just set it to ping pong but once I click the attack animation that anim doesn’t play again. I guess thats how its going to be.