Triggers based on timing of key input

Apr 09, 2021

Is there any way to have a trigger based on the timing of a key being pressed? For example, the user has to press a certain key on the keyboard to the correct beat to pass. If they press the key out of time, they fail.

I'm assuming the timing factor would have to be a condition on the trigger, but not sure how to go about this.

Thanks!

5 Replies
Nejc Žorga Dulmin

Here's one idea: you could place some objects off the screen (so user's don't see them) and in the timeline put them in the "time slots" of when a certian key needs to be pressed. For example, an box would be shown between 1s and 2s.

Then you start adding triggers.

Do WHATEVER ACTION YOU WANT ->  when user presses a key -> if the state of box is NORMAL.

I hope that makes sense. It should work. :)