Animation transition problem
I'm using a free AssetStore asset called "Fantasy Monster Skeleton". In my animation controller - 'Idle', 'Walk', & 'Attack' have bool parameters, while 'Damaged' & 'Knockback' have Trigger Parameters. Everything works fine, except for the "Knockback" animation.
When a certain collider hits the skeleton it triggers the "Knockback" animation, the skeleton stumbles backwards a couple meters. But, after the animation plays, when it transitions back to "Walk", the skeleton slides forward a couple meters, back to his original position.
I've tried using Transform.Translate() to move the skeletons transform backward at the same time he slides forward. (kind of worked, but still awkward) I've tried using different parameters, root motion, and exit time etc. But I cannot get to the bottom of this one!
Basically, I would like for the transition from "Knockback" to "Walk" to be smooth. For the skeletons transform to actually move backwards when he stumbles and the "Walk animation to start from his position at the end of the "Knockback" animation.
Any help would be greatly appreciated! Please and thank you.
Answer by Valnor · Jul 24, 2017 at 04:37 PM
the sprite is moving backwards, not the object or the hitbox from the sound of it. It moving forward is it transitioning to the next animation, i.e back to where the object actually is.