Question by 
               m3dsec · Apr 23, 2019 at 08:45 AM · 
                scripting problemscript.scripting beginnerscriptingbasicsscripterror  
              
 
              How do i make an uppercut attack?
im currently working on a 2d game and trying to make my character do an uppercut
i currently have one attck button to make a punch and i wanna tweak that out to make the player press axis up then fire3 for an uppercut like any fighting game
//Attack
         if (Input.GetButtonDown("Fire2")) {
             animator.SetTrigger ("attack");
         }
     } else {
         launch = 0;
     }
               Comment
              
 
               
              Just change your If statement to something like this:
 (Input.GetButtonDown("Fire2") && Input.GetButton("Up"))
Notice that GetButtonDown triggers once on first press, where GetButton stays true whilst a button is pressed. So this example triggers whilst holding "Up" and you click "Fire2".
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                