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
Ashley Terwilliger-Pollard

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. 

Crystal Horn

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.

This discussion is closed. You can start a new discussion or contact Articulate Support.