How can I make that if I press one time a Button make an action, but if I keep pressed, It makes another action? (More detail in Description)

Hello everyone.

How do I do that if I press a button once (An input action) it make one action, but if I keep pressing, it make another?
I hope to be clear.

Thank you!

but if I keep pressing, it make
another?

Kind of depends on how it’s supposed to work - it fires after holding for x time or after releasing after x time?

The below will work if you hold (without the need to release) for 1s:

2 Likes

I guess I can add the other one while I’m at it:

This will only fire once you’ve released the button.

2 Likes

And I’ll just add that a similar effect can be achieved with a timer, I’d probably go for a timer if I needed to put something a tad more involved, like a combo →→↓→

1 Like