Have audio play on trigger only?

Aug 20, 2020

I wanted to make sure I'm not missing something very obvious...

I've imported 3 audio clips to my storyline project, so they're all showing on the timeline, let's call them clips 1, 2 and 3

I want to have audio clip 1 play when the timeline starts is a variable is TRUE, or alternatively , if the variable is FALSE at the start of the timeline, I want audio clip 2 to play. The value of TRUE/FALSE is dependent on an interaction in the previous slide.

I then want audio clip 3 to play at the end of whichever audio clip played at the start, be it clip 1 or clip 2.

Is there anyway to get it behave thusly without having layers at the start of the timeline?

If it were different shapes that I wanted to be different depending on the value of a variable, I would use states to have them show as visible or invisible....but I can't think of an equivalent for audio clips.

Thanks in advance,

Michelle 

3 Replies
Euan Hill

To decide between audio clip 1/2 could you use a condition on the variable:

On timeline start
Play Audio clip 1
If Variable = True

On timeline start
Play Audio clip 2
if Variable = False

Then two triggers for Audio clip 3

When Audio 1/2 completes
Play Audio Clip 3

I've just tested with two audio files and it seemed to pick 1 or the other based on the variable.

Michelle M

See, I knew I was overthinking something. :) I tried your solution and it works perfectly. 

For some reason I had it in my head that if audio clips were all showing at the same place on the timeline, they would all play at once regardless of triggers, but I see now their playing behavior can be controlled by triggers just as for shapes.

Thank you very much Euan!

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