Click Sound Doesn't Display

Feb 28, 2022

I added a trigger to a button.  The trigger plays media (a .wav file of a click sound) when the user clicks the mouse on the object (button).  I can't seem to get the timing right.  When I play the sample of the sound it sounds right.  When I preview the file it works correctly.  But when I preview the entire project and click on the button the presentation jumps to the next slide (another trigger on the button) but the sound doesn't play.  It seems like I hear the sound after the next slide starts but I'm not positive about that because there's audio on that slide as well.

4 Replies
Judy Nollet

You say it works in Preview. Is that when previewing only that slide?

I ask, because it sounds like the trigger to play the click sound might be listed after the trigger to jump to the next slide. And, if that's the case, the media won't play, because Storyline can't execute triggers after it leaves the slide where the triggers are. 

So the easy fix might be to just move the trigger up so it appears before the "jump to" trigger.

If that's not the case, then you should upload the file (or, better still, a copy with only the bad slide and the next slide) for troubleshooting.

Walt Hamilton

If you have a trigger to play a sound when an object is clicked, followed by a trigger to jump to the next slide when the same object is clicked, the jump will occur before the sound ends (or possibly before it starts), even if the sound trigger comes first.

Judy's right (as usual), the problem doesn't surface in preview if you are previewing only one slide, because there is nowhere to jump. There used to be an error message if you tried to jump to a slide that isn't being previewed, but there isn't any more.

The solution is to play the sound on the click, then perform the jump when the sound completes. There's a trigger for that.

Rosyidah Aryani

Thank you Judy and Walt for replying

No matter what order I put them in, only the hover sound effect works and the click sound doesn't work.

I'm trying to play the sound on the click, then perform the jump when the sound completes. But I have over 5 objects in one slide that have a trigger to play the same sound when an object is clicked (different jump to).

Here is the sample. Can you please let me know what I am doing wrong?

Walt Hamilton

I put in this trigger:

and it works just fine.

The question of jumping to the correct slide is a different matter.

You could use a variable. Each object that is clicked, sets the variable to a unique value. Then the triggers look like this:

Jump to slide 2 when sound 2 completes if Variable =2

Jump to slide 3 when sound 2 completes if Variable =3, etc.

Another easier (if not as elegant) method might be to just copy the sound and paste it 5 times, giving each a different name. Then you can have each object play its own sound, and when that sound completes, it can jump to the next slide. See the sample for a way to use this method.

FWIW, I'm not sure about this trigger:

The sound is so short, I think it is impossible to hover out before the sound completes.