Quantcast
Channel: Latest Questions by Shiro_Rin
Viewing all articles
Browse latest Browse all 50

GetButton will only play animation when held down

$
0
0
How do I play an animation completely with Input.GetButton ? It'll only play the complete animation if the button is held down. if (Input.GetButton ("Attack1")&& grounded==true && IsMoving==false) { Anim.Play("Attack1"); IsAttacking=true; } That is the snippet of code I am using for attacking. So far it works, but only if I hold down the button. I want it to play completely tho. Any help ?

Viewing all articles
Browse latest Browse all 50

Trending Articles



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