Sorry for consecutive posts! I was wondering what the best way to add sounds/music to Twine is? I have a puzzle in my game that will require switching between several different 'songs' on a radio. I tried adding sound using Howler JS for javascript like I saw in one tutorial, but I kept getting a "Howler undefined" error. Any help's appreciated, thanks.
Comments
http://www.glorioustrainwrecks.com/node/5475
Yes, paste Leon's sound script into a passage with "script" as the tag, no quotation marks. Doesn't matter what the passage title is.
Have your sound file in the same directory as your HTML file.
Set your sound file to a variable (e.g., <<set $soundFX = "soundfile.mp3">>).
Use the macro to play the variable (e.g., <<playsound $soundFX>>).
Attached is an example HTML, TWS and MP3. You must have the HTML and MP3 files in the same directory.
Hope that helps!
FINALLY I figured out that having "Use ROT13 to obscure the HTML source code" checked off makes using sound files in this way NOT WORK.
Is there anyway to have both options functional? (i.e. use sound files AND have the ROT13 HTML obscure checked and active?)