Question by
s1m1ng7on · Mar 14 at 10:00 PM ·
animationanimatorunity 2danimator controlleranimations
My animations started acting weirdly
Hello everyone. I've always had my animations working as intended. An hour ago, I accidentally changed the position of one of my tilemaps and I reverted it back to its old one but all of my player animations started acting weirdly.
This is a part from my movement script where it updates the animator - I'm using BlendTree for the directions (horizontal and vertical):
if(movement.x != 0 || movement.y != 0)
{
kinterAnimator.SetFloat("Horizontal", movement.x);
kinterAnimator.SetFloat("Vertical", movement.y);
if(!isWalking)
{
isWalking = true;
kinterAnimator.SetBool("isWalking", isWalking);
mirrorAnimator.SetBool("isWalking", isWalking);
}
}
else
{
if(isWalking)
{
isWalking = false;
kinterAnimator.SetBool("isWalking", isWalking);
mirrorAnimator.SetBool("isWalking", isWalking);
}
}
kinterAnimator.SetBool("isSwimming", isSwimming);
mirrorAnimator.SetBool("isSwimming", isSwimming);
This is also my animator window:
Ask me if you need more details. But since I don't know how I really ended up like that, it might be a little more complicated. But thanks anyway.
sdfsdsdfsdfsdfsdf.png
(74.2 kB)
Comment
Your answer
Follow this Question
Related Questions
NEED HELP ANIMATING PLAYER MOVEMENT 0 Answers
How do I rotate specific joints/bones using a script? 0 Answers
Animation changes when marked as legacy 0 Answers