Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

[sugarcube 2] How to: Buttons/Links play a click sound?

$
0
0
I'm using Twine 1.4.2 and sugarcane 2. I'd like any passages that have the [computer] tag to play a short sound (click.wav) when the user makes their selection. For passages marked [telephone], I'd like a different sound (beep.wav) to play when the player selects a choice/link.

What's the easiest way to do this?

One side issue: I've found sound effect sounds to be slightly unpredictable in my experiments where sometimes there's a significant delay (several seconds) between when I call the sound (e.g. <<audio "newmessage" play>> ) and when it actually plays. Is that a common issue? I am doing cache audio in the storyinit (e.g. <<cacheaudio "newmessage" "./assets/audio/NewMessage.wav">> )

Viewing all articles
Browse latest Browse all 3830

Trending Articles