Quantcast
Channel: Questions in topic: "hold"
Viewing all articles
Browse latest Browse all 154

how to run Sprint

$
0
0
Help. I do not know how to do when you hold the left shift is a character starts to run and release it when the form starts normally go. This is my script "Movement" # pragma strict var animator: Animator; var h: float; var v: float; function Start () {       animator = GetComponent (Animator); } function Update () {                  h = Input.GetAxis ('Horizontal');       v = Input.GetAxis ('Vertical');           if (Input.GetButton ('Jump'))           animator.SetBool ('Jump', true);      else          animator.SetBool ('Jump', false);                           } FixedUpdate function () {      animator.SetFloat ('Speed​​', v);      animator.SetFloat ('directrion', h); }

Viewing all articles
Browse latest Browse all 154

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>