Spacebar Interaction
Apr 16, 2014
By
Ryan Frasch
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.
Thanks!
2 Replies
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.
Example:
On Object -
Action: Adjust Variable
Variable: CorrectAudio
Operator:=Assignement
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.
I'd like to keep it as a single file b/c I'd like it to work with HTML 5.
That sounds pretty straightforward - thanks. I'll take a stab at it and let you know if I have any questions.
Thanks for the quick reply too!
This discussion is closed. You can start a new discussion or contact Articulate Support.