play media under conditions
May 12, 2014
Hello,
I have a piece of media I want to trigger to play only after the learner has completed certain tasks. More specifically, I want them to play an item correctly, and get feedback before this particular piece of media plays.
I have a variable set up for each required action, i.e., Dana = False
When the user drops the object correctly, a particular layer pops up with feedback. When the user clicks OK, the value of Dana is changed to True.
My special "continue" audio should only play after all items have been dropped correctly, and all previously False variables have changed to True. However, my audio doesn't play.
In fact, I've been trying different ideas for hours. For kicks, I tried using variables to change initially hidden items to Normal and that didn't work either. I've worked with variables many times so this is not just perplexing but frustrating. Any ideas?
7 Replies
How about put your audio into a new layer and set to play when timeline start, when all conditions meet(e.g. all variables changed to True), show the audio layer.
Hi Patricia,
Without seeing your file, it's hard to say for certain - but a few things I'd look into are the trigger order and how the conditions are set up for the audio to play based on the change of the variables. You also mentioned you'd like the audio to play after all items have been dropped correctly - are you basing that on visiting the "correct" feedback layer or using a dropped correct state for the object? If the latter, you'll want to look into if you've set up the drag and drop to delay item drop states until the interaction has been submitted - if so, the slide may not be seeing the dropped states and triggering your audio.
If you'd like us to take a look at what you've set up we're happy to do so - you'll want to attach the .story file (even just that one slide) here using the paperclip icon.
Hi Ashley. Can I send the file in private?
Thanks Jimmy and Ashley for your replies. I think I've tried all this and I'm just doing something wrong. It seems so simple and I feel like I've done it a hundred times but it's just not working this time!
Hi Patricia,
Sure thing - I'll send you directions on how to share it with me privately. If you're able to narrow it down to a particular slide or section please let me know so I have an idea where to focus efforts.
Hi Ashley,
Need some help here. I am trying to create trigger such that the voice over would only play one at a time. How should i go about doing that?
Have attached the page for you to take a look.
Thank you in advance!
Hello, Nancy! You can put those audio files each on their own layer, and have a trigger on each layer to Play media (audio file) when the timeline starts.
Then, change your base layer triggers on the text boxes to show the relevant layer for the corresponding audio. Make sure your layer properties are set to "hide other slide layers," and allow the user to click on the base layer. Then, they can toggle between audio clips without a bunch of play and pause triggers.
Have a look at you modified file; I adjusted it for the "continued to work hard" and "did not give up" audio bites.
Hi Crystal,
Thank you! It works :)
Cheers
nancy teo
This discussion is closed. You can start a new discussion or contact Articulate Support.