Mouse Clicking Problem

Hi guys

So I have a problem . When ever i set my left or right mouse button to do something like when pressed it fires and when released it stop firing .
the problem is that when i click it . it continues firing even when i’m releasing i tried everything

Would you care to share a screenshot of your blueprint? Thanks

I suspect you have the mouse event set up as a axis mapping in project settings > input. These fire on tick. set it up as an action mapping instead.

A screenshot is helpful with things like this :slight_smile:

Good luck.

So here’s a Screen shot for it it just set a variable isAiming to true so i can play the aim animation.

the problem is when i just click it the animation plays and continues playing as if i’m pressing it

i tried putting it in an action mapping button but still the same problem

Are you using an AnimBP for the animation? Could you share some screenshot of that as well? Could be a problem with your transition logic if your using a state machine. Too me this looks very complicated, does it work when you just set the variable? If it does I would suggest simplifying it. I can help with that if you explain exactly what your trying to accomplish.

Here is the animation

239669-mouseproblem2.png

it simply transition from idle state to aim state .

and here is the transition rule

You need a second transition for it to go back to idle. It has to have a “NOT” node after is aiming in order to work

Edit: a good way to debug is by hitting the simulate button while your playing, that way you can see what nodes are being activated both in your charBP and animBP

wow.
That was that simple .
i had a transition from aim to another state so i didn’t think of the transition to idle.
thanks for your help Atornity

Glad I could help :slight_smile: