Hello!
Today I downloaded Twine 2.0! I watched few tutorials and got the basics...
However, I still need help!
1. How can I add sounds which will play in background of specified story-page?
I have tried with <audio src="blahbla/music.mp3" autoplay> but it doesnt work...
2. Is there any "already made" script to create somenthing like fade-in text?
I want text to smoothly appear automatically after few seconds...
Can anyone help me?
Comments
Rest assured that it HAS been done. And CAN be done again. You can also search the forum for examples or we can help you....
But we need certain info first.
Good luck.
I want to include music which will play ONLY in background of ONE, single passage (different music for every location)
And also music (single, wav sound) which will play while clicking on hook :d
Assuming now, I need only answers answers for questions below:
I see that <audio src="URL" autoplay> works and music stops after passage.
How to make the music continue?
How to make music play after pressing text, created with (click: cl1) ?
(click: cl1)<audio src="URL"> doesn't work urfotunately
Is there any javascript script for text fade-in?
If you're going to do a lot of music work (which it sounds like), you're far better off with SugarCube. Doing complex music playlists with Harlowe is like trying to bash a bowling ball into a golf hole.
Nevertheless, in Harlowe you should still be able to attach css animation to a span element. I cannot give you specific advice for Harlowe but the basics are the following css declarations:
That you attach to your text with a <span class="fade">Faded text</span>. When it appears on screen, the words "Faded text" will fade in over 1 second.
If you want the whole story doing this, or specific passages, then you'll need to alter the code to access Harlowe's passage elements, which I don't know since am not a Harlowe user.
Anything ridiculously complex (like different layers fading in and out at the same time) you're best off employing GreenSock in Twine 1.4, though.
Thanks! I will be using Sugar Cube then propably...
What about sounds then? :d
I want to use . Person, after clicking specified link, will see appearing text and hear audio.
Audio plays but there is no text. I've done somenthing like this:
However, the text in second " " is taken as a passage which should be launched...
Command doesnt work there too...
How to create just appearing text?
(Like:
in Harlowe)
As noted by Claretta, the audio macro documentation (for SugarCube 2.x or for SugarCube 1.x) has the basics of what you need, though I'm sure you'll have questions.
At least for this project - maybe later.
I just wanna know how to set displaying text after clicking on link and that's all what I need for this one... :d
The following is based on your previous example.
Sneaky!
Thanks!
Thats all I need!