Question by 
               reviveearly · Apr 29, 2021 at 10:13 AM · 
                c#animation2d gameanimatorprogramming-basics  
              
 
              ,Non-working animation - simple fix
Hello there this is my code:
   if ((Input.GetKeyDown(KeyCode.Q)))
   {
             bool fire = Input.GetButtonDown("Q");
             animator.SetFloat("Walk 0", 1);
             animator.SetTrigger("walking");
    }
Animator window:

The animation playing walk plays without Q being pressed, and then a few seconds later it goes straight to jump. Please help, thank you!,
 
                 
                capture.png 
                (90.8 kB) 
               
 
                
                 
                capture.png 
                (90.8 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                