- Home /
Playing Animation When Two Keys Are Held Down To Play Run Animations
I want to know if i can make an animation play but only if two specific keys are pressed at once. Here is what i think would work:
if(Input.GetKeyDown("w")), (Input.GetKeyDown("q"))
{
anim.Play("RunForward);
}
`` }else if(Input.GetKeyUp("w")), Input.GetKeyUp("q"))
anim.Play("Idle");
}
I Just Want Some Advice on How Exactly I could achieve my goal or if the way i have specified is correct. Any Help Would Be Greatly Appreciated.
Comment
Your answer
Follow this Question
Related Questions
How to play animation on keypress 2 Answers
animation on multiple objects 1 Answer
Play a video on clicking on an object 1 Answer
Walking Animation 1 Answer
How to make player attack animation play through without holding down a key. 0 Answers