I'm making a game in Twine 2 (Harlowe) and I would like there to be background music playing (which then changes depending on choices you make or passages to get to). Is there a macro or something to play original music from a music file? If not, what's the best way to use html to accomplish the same thing (ensuring that I can change between songs depending on where you are in the story)? Thanks.
Comments
Check out the Add an Image, Movie, Sound Effect, or Music link.
Hope that helps!
Here's my example:
<audio src="https://newcollegenottingham-my.sharepoint.com/personal/41233144_academic_ncn_ac_uk/Documents/Year 2/Project 3/Týr Tú Alfagra Land Mítt.mp3" autoplay>
Does anyone have experiences with bugs or do I sth. wrong? I also use Twine 2 (Harlowe) but when I copy/paste the link from the guide just nothing happens. Does anyone know what could be the problem? I just pasted it below the text in one passage.
Thank you
b. If you are using a local sound file (one that is not hosted on-line) then you may need to use the Publish to File option because the Test/Play options don't play sound in some situations.
Thank you but I tried that. I chose an URL from my Dropbox. Maybe I did a spelling mistake in the code. For example: I need to embed
https://www.dropbox.com/s/gl75zl7u1jsiwzb/Jog on rocks.mp3?dl=0
Can you tell me if the link should look like this:
<audio src=https://www.dropbox.com/s/gl75zl7u1jsiwzb/Jog on rocks.mp3?dl=0 autoplay>
?
THANK YOU
I tried cacheing it in the Start passage:
<<cacheaudio "walkloop" "https://www.dropbox.com/s/8oqpbpikj1nel5z/Walk_Loop.mp3?dl=1">>
and then in the passage it's supposed to start:
<<audio "walkloop" loop play>>
It's says no track ID
Also tried <audio src="https://www.dropbox.com/s/8oqpbpikj1nel5z/Walk_Loop.mp3?dl=1" autoplay> and it says the audio macro isn't closed.
Any suggestions?
Which release (web-browser-based or install-able) of Twine 2 are you using?
Which Story Format (name and version) are you using?
Which web-browser (brand, version, 32/64bit) and Operating System (brand, version, edition, 32/64bit) are you using?
Did you use the Publish to File option to create the Story HTML file you are testing, or are you using the Test/Play options?
That's a bug, which is fixed in SugarCube 1 (≥v1.0.35; current: 1.0.35) and SugarCube 2 (≥v2.6.0; current: 2.10.0).
How are you using such an ancient version of SugarCube 1? The current, old, version of Twine 2, v2.0.11, comes with SugarCube 1 v1.0.34 installed—and v1.0.35 is available.
Upgrade to a version that isn't almost ten releases behind. Better yet, look into getting SugarCube 2.
The thing is this. Software packages receive updates for various reasons, one of the most important of which is to fix bugs. If you aren't keeping up with your software updates, then you are likely using buggy software. You're also, likely, missing out on new features.
In this case, you were using a version which was behind by over a year's worth of updates. For the world we live in today, that is, quite frankly, beyond the pale.
I have not been mean, weirdly or otherwise. I'm unsure why you feel the need to keep tilting at that windmill, even after my initial apology—especially after my apology.
Now you've said that I'm "tilting at that windmill", as in being crazy, even though I thanked you, so it seems like you just can't help it with the insults...
Maybe you don't intend to really be acidic with those remarks, but they are sort of demeaning from my perspective.
I took neither instance of your stated gratitude as confrontational, I appreciated them in fact. In neither case, however, did you simply offer gratitude. In the first instance you claimed that I was "shaming" you, in the next that I was being "weirdly mean".
I can live with the first, as I've already noted. The second, however, I refute wholeheartedly.
You're the one who decided to continue this tiff after my apology, what else would you call it?
My point with the "windmill" comment was simply this: you're on a wild goose chase, you're attacking imaginary enemies, you're seeing something which is not there. I am not your enemy. I thought I had made that clear with my apology, however, ever since then you keep ascribing more and more uncomplimentary things to me, backhandedly no less.
Case in point. You could have simply accepted my apology and moved on, but you didn't. You could have simply said, "Hey. Thanks for the apology, but I feel that the rest of the post was a little aggressive/abrasive/whatever."—I would have been fine with that, BTW—but you didn't. You started with the backhanded insults, specifically that I was being "weirdly mean". When I took exception to that and wondered why you felt the need to tilt at the windmill—i.e. attack someone who is not your enemy—that only served to earn me other backhanded insults, as if you're somehow a victim here.
You are not a victim and I am not your enemy. If you still cannot accept that you're seeing something which is not happening, could we at least agree to disagree and move on.