Transitions quickly play twice before ingaging properly,
Hi guys, so I have this simple piece of code here that works almost perfectly. It successfully calls each walking animations at the right time but the problem is that the transitions are playing twice before the animation can go on, which results in an annoying glitchy feeling. Also, the problem seems to come from one line (the last one) which is the line needed to go back in idle state if nothing moves. If I remove this line, I suddenly loose all the glitchy transitions but I obviously also loose the idle state which is not wanted. I've been trying for hours many alternatives and couldn't find anything and this is driving me mad man. Please help! thanks
void Update()
{
if (Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") == 0f) anim.SetTrigger("running George");
if (Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") > 0f) anim.SetTrigger("run right");
if (Input.GetAxis("Vertical") == 0f && Input.GetAxis("Horizontal") > 0f) anim.SetTrigger("full right");
if (Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") < 0f) anim.SetTrigger("run left");
if (Input.GetAxis("Vertical") == 0f && Input.GetAxis("Horizontal") < 0f) anim.SetTrigger("full left");
if (Input.GetAxis("Vertical") == 0f && Input.GetAxis("Horizontal") == 0f) anim.SetTrigger("idle George");,
Your answer
Follow this Question
Related Questions
[HELP PLEASE] How can i check if an animator transition from animation to animation has finished? 3 Answers
Animation Running Game 0 Answers
How can i check if a transition from animation to animation has finished? 0 Answers
How to stop already started transition in the animator and run next animation immediatley 0 Answers
Animation changes when marked as legacy 0 Answers