How do you make a set fire rate for shooting in a 2D Sidescroller?

I made it so that whenever you click mouse1, the character shoots a projectile. However, I would like to make it so that you cannot spam shoot by spamming the mouse button by setting a fire rate, i.e. only letting you shoot every .5 seconds instead of whenever you click. This is in a 2D Sidescroller project.

This would work for non-automatic style shooting:

Thanks, what should I put after the DoOnce node?

That’s it - from the DoOnce, just connect to whatever firing logic you already had created.

Yep, is it working? It looks like you may have 5 instead of .5 in the delay but I can’t tell. Also this won’t work if you want the player to be able to hold down left mouse and continuously shoot, is that what you wanted?

shoot, I tried to attach text to that reply but it didnt work out. I sent you the blueprint screenshot because it still lets me shoot whenever I click, so I was wondering if there was any solutions you could derive from looking at it. Thanks

And no, I don’t want to hold down the mouse button to shoot.

That should be working. Try setting the delay to something really high just to confirm if it’s not.

If it still doesn’t stop you firing, maybe you have the same spawn nodes connected to another event elsewhere in your Blueprint - have you got a Left Mouse down event or another input action that doesn’t have the delay?