how to detect if mouse is being held

how would one detect if mouse is held instead of it being pressed

Comments

  • ArmellineArmelline Member, PRO Posts: 5,380

    I assume you mean the button is being held rather than the actual mouse. If so, a rule with "Actor Receives Event mouse button is down" will remain true while the button is being held down. If that condition is met, the button is being pressed and held. If you only want to trigger something after a certain amount of time holding down the mouse button, you can pair it with a timer of some kind.

  • This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    Well what im trying to set up is the ability to hold down the mouse button to shoot a gun and while its shooting the gun the character is also animating. I cant get my character to constantly shoot the bullet and keep animating and then stop animating and shooting when the left mouse button is released.

  • nevermind i figured it out

    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.


  • thank you for the help though

Sign In or Register to comment.