Spacebar Interaction

Hi all,

I am trying to create an interaction where the users would be listening to audio and then hit the space bar if when they heard a correct statement and some feedback (layer or textbox) would appear if the response was correct or incorrect.

I thought cue points might work, but I don't see a way to have a trigger work with cue points.  My other thought was either layers or changing the state of a text box on the timeline, but I haven't been able to get much traction on this.


2 Replies
Jerson  Campos

Hey Ryan,

One question. Is the audio file one single file?  Can you cut it up in sections?

If it's in one single file, you could put objects (transparent) in the same area of the timeline as the section of the audio you want them to click on. Then the object would activate a trigger to change a variable to true (or other methods), and when it ends it could change it back to false. If the user clicks on the spacebar just put a conditional statement that this variable must be true.


On Object -

Action: Adjust Variable

Variable: CorrectAudio


Value: Value  True

When:Timeline Starts

Object: TimelineObject

Adjust the length of the Timeline object to the same length as the audio section and copy/paste the trigger and make these changes.

Value: Value Flase

When: Timeline Ends.

Now for the Spacebar.

Action: Show Layer (Or however you want to indicate a correct feecback)

Layer: Correct

When:User presses a key Key: Spacebar

Object: Slide

Let me know if you have any questions about this.