Login
Remember
Register
Twine Q&A
Questions
Unanswered
Tags
Users
Ask a Question
Code of Conduct
Ask a Question
How to stop a song and start another in Harlowe audio library when switching passages?
0
votes
asked
Dec 10, 2018
by
Sólomon
(
2k
points)
Right now I'm attempting this: <script>A.track("theme").stop;A.track('theme2').loop(true).play();</script> And similars, but they are not working.
twine2
harlowe2-0-1
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 10, 2018
by
Sólomon
(
2k
points)
Just got it. I had to put .pause instead of .stop
commented
Dec 10, 2018
by
Chapel
(
63.1k
points)
It's stop() with parens. Pause can also work, but it's not a true stop.
Please
log in
or
register
to add a comment.
This site has been placed in read-only mode. Please use the
Interactive Fiction Community Forum
instead.
Related questions
Where I'm supposed to put the A.newtrack( links in Harlowe audio library?
How to install a .js library in Harlowe?
I want an if-history statement to show something in the case that one thing is true and another is false
Trying to figure out how to put in a sparkly background when the cursor hovers over a link with Harlowe 2
Harlowe bg music + audio cues on click (+ fade between tracks & tracks keep playing between passages?)
Most popular tags
twine2
sugarcube2-21
sugarcube2
twine2-2-1
harlowe2-0-1
harlowe2-1-0
harlowe
sugarcube2-18
javascript
css
twine2-1-3
sugarcube
variable
variables
macro
twine
links
twine1
if
sugarcube2-28-2
harlowe2
audio
html
array
image
snowman
passages
passage
savegame
inventory
music
arrays
saves
link
time
sugarcube2-25-0
textbox
harlowe1-2-4
error
text
array-objects
set
images
2
question
sugarcube-2
code
color
sugarcube2-27
tweego
datamaps
history
background
sugarcube-2-28-2
sugarcube-2-21-0
ui-bar
sidebar
sugarcube2-25
choices
autosave
jquery
button
publish-to-file
widgets
typed
random
import
transition
loop
twine2-3-1
harlowe2-2-1
replace-macro
choice
objects
tags
harlowe3-0-2
for-macro
rpg
saving
stats
effects
save
stylesheet
click-macro
twine-2
user-input
animation
header
questions
format
object
0
ui
script
error-message
sugarcube2-21-0
sugarcube2-24-0
loadgame
twine2-2-0
adventures
...