One slide - Two different audio files based on condition?

Jan 24, 2013

Is this possible? I have my introductory slide that has the branching to the various topics for the learning. I will have it narrated. I am wondering if it is possible to play a different audio if when someone returns to this slide after viewing one of the sections.

4 Replies
Patrick Gliem

You could create a True/False variable that would adjust when the first media completes. It would require pretty minimal triggers.

Create a True/False variable with the value of True. Add these triggers to the slide:

1. Play Audio > Audio 1 > When timeline starts on > Slide 1 + (On Condition) If True/False Variable is != not equal to False

2. Adjust Variable > True/False Variable > Value - False > When Media Completes > Audio 1

3. Play Audio > Audio 2 > When timeline starts on > Slide 1 + (On condition) If True/Flase Variable is !=not equal to True

That should work out pretty well as long as you aren't revisiting the slide a third time. 

Patrick Gliem

Instead of a true/false variable, you could use a number variable. Would they need to hear the audio several times or just once? Either way, you could set it up as followed:

Create a number variable with the value of 0. Add these triggers to the slide:

1. Action: Adjust Variable

Variable: Number

Operator: + Add

Value: Value 1

When: Time starts

Object: Slide 1

2. Action: Play media

Media: Audio 1

When: Timeline starts

Object: Slide 1

ON CONDITION

If: Number

Operator: == Equal to

Type: Value

Value: 1

3. Action: Play media

Media: Audio 2

When: Timeline starts

Object: Slide 1

ON CONDITION

If: Number

Operator: == Equal to

Type: Value

Value: 2

This way, each time the slide is visited, 1 will be added to the value of the slide. Audio 1 will play when the value of the variable is equal to 1, audio 2 will play when the value is 2. If you need to hear audio 2 again you can adjust the operator of the third trigger above to >== Greater than or equal to. Hopefully that helps!

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