I think you could build something easily by using the Countdown from our Time Interface Asset.
You can try:
- WHEN Button is pressed
- start Countdown
- set a Variable “ButtonPressed” to True
- WHEN Countdown = 0
- AND “ButtonPressed” = True -> do something
- WHEN Button is released
- stop and reset Countdown, set variable “ButtonPressed” to False
You may want some visual cue for your user in order to let him know it has to press for some amount of time (a message, a bar filling, displaying the countdown value etc).
PS: as I made it while testing, I’m sharing the small sample with you
Community-TimedButton.zip (2.0 MB)