- Home /
Question by
smithr3339 · Oct 23, 2013 at 10:12 PM ·
animationanimatorfpsarms
How to make animator do run/walk animations
I have some FPS arms and all the animations set up in an ANIMATOR CONTROLLER. How can I check to see if the person in holding down shift, the run animation plays? Also if you know how can I make it so when they push shift their speed goes up? C# if possible
Comment
Answer by darthbator · Oct 23, 2013 at 10:51 PM
You would want to do something like this inside update.
if (Input.GetKeyDown(KeyCode.LeftShift)) {
//do setup for increased player speed
}
if (Input.GetKeyUp(KeyCode.LeftShift)) {
//do setup to return to player baseline speed/animation
}
Thanks! But what is the command to access my animation called "run" in my animator?
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
FPS Bow Animation 0 Answers
Animator slowing down my game 0 Answers
AnimationEvent has no function name specified 2 Answers
Character wont stay aiming 0 Answers