Playing/Stop playing secons audio file on slide

Jan 05, 2022

Hi all,

I'm trying to get this scenario working in SL3 and maybe someone can help me out:

  • I have slide with a narration audio track.
  • When a user cklicks a certain object on the slide, a sound should be played.
  • While this sound is being played, the narration should stop.
  • When the user clicks again on the object that started playing the additional sound, this sound should stop and the narration audio should continue.

I'm sure you can do this with SL3, but how?

Kind regards,

Frank

3 Replies
Richard Watson

Frank,

I don't work with SL3 but there is probably several ways to make this work in SL360 that might also work in SL3.

You could try this in SL3 and see how it works:

1. Create a T/F variable named AudioOn and set its default value to False. This will be used to control when the Sound layer is shown (and the sound plays).

2. Create a new layer and name it Sound. Make sure the option "Pause timeline on base layer" on this layer is selected. This will pause the narration which is playing on the base layer when the sound plays. Add the sound file to this layer and create a trigger to play it when the timeline starts.

3. Create the following triggers on the base layer

https://community.articulate.com/articles/create-an-e-learning-toggle-button

Note: The toggle trigger changes the AudioOn variable from True to False as you click the button that plays the sound. If the variable is True, it will show the Sound layer. If it is false, it will hide the Sound layer.

 

Frank Weber

Hi Richard,

Thank you very much for your support - and sorry for my very delayed reaction (working with storyline is kind of a hobby for me and sometimes it really takes a while until I can get back to my projects).

I managed to get the sound working as desired by implementing steps 2. and 3. from your tipp. As I don't know yet how to create a  T/F variable, I created the layer with the sound first, and I added the trigger as you suggested. On the base layer I placed a picture that opens the audio layer. On the audio layer there is another picture that closes the layer when the user clicks on it.

When I tested that I found out, that things now work exactly as I want, which was a nice surprize :)

Regards,

Frank