Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Question about L's Sound Macro

Hello. Me again. Sorry to bother you all, but I have been trying to add sound to my game, and I've been using L's Html5 Sound Macro to do it. I'm using Sugarcube. I read how to get this macro to work with Sugarcube, and it does work, but only if the songs are in the same folder. Unfortunately, I added quite a few songs to it, so now the folder is very cluttered. The actual Twine Story gets lost in there under all the files. I don't want to drop the idea of adding a soundtrack, so I am wondering if there is a way to get the macro to work even if the songs are all in their own folder. Is there, or should I just figure out another way to sort this thing out?

Comments

  • Have you tried something like this: (the directory path should be relative to the compiled HTML file)

    <<playsound "AUDIO_DIRECTORY/AUDIO_FILE">>
    For example: (assuming your audio directory is named audio)

    <<playsound "audio/peter_gunn_theme.mp3">>
  • That worked! Thank you very much!
Sign In or Register to comment.