Mouse press animation

i want it so that when i click and hold the left button it will keep playing the animation until i let go of the left mouse button here is what i have so far and doesn’t work, it will move like a inch and i repeatedly click THEN click by click it plays the animation. function Update () { if (Input.GetMouseButtonDown(0)){ animation.CrossFade(“Shoot Animation”); } }

I need It To play a looped animation when the left mouse button is held down but on release of the left mouse button it stops the animation.

hey mate,

if you change GetMouseButtonDown(0) to GetMouseButton(0) it should run the event continuously until the mouse is released :slight_smile: