Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Background music-how to loop?
- golden-flash
-
6 posts
Background music-how to loop?
Hello, I've been working on projects and for a lot of them I try to make a background music with a :
(when (green flag) clicked)
Forever {
Play sound (background music)
}
OR I use…
When backdrop switches to backdrop1
Forever {
Play sound (background music)
}
All the variable names are right and all those tedious things.
For the first version, it just plays it once.
For the second version, it seems to not get it and glitches the backdrop and makes really short and cut off noises.
PLEASE HELP??!!
Thanks!
(when (green flag) clicked)
Forever {
Play sound (background music)
}
OR I use…
When backdrop switches to backdrop1
Forever {
Play sound (background music)
}
All the variable names are right and all those tedious things.
For the first version, it just plays it once.
For the second version, it seems to not get it and glitches the backdrop and makes really short and cut off noises.
PLEASE HELP??!!
Thanks!

- jokebookservice1
-
1000+ posts
Background music-how to loop?
Use:
play sound [ v] until doneinstead of
play sound [ v]
- golden-flash
-
6 posts
Background music-how to loop?
@jokebookservice1
Waitt… Don't go! It didn't work…
It only played once
Waitt… Don't go! It didn't work…

- jokebookservice1
-
1000+ posts
Background music-how to loop?
Did you use your latter option of @jokebookservice1
Waitt… Don't go! It didn't work…It only played once
when backdrop switches to [backdrop1 v]?
forever
play sound [ v] until done
end
Also does your audio have a long pause at the end that may be misinterpreted for it not playing?
Last edited by jokebookservice1 (Feb. 21, 2016 01:53:54)
- golden-flash
-
6 posts
Background music-how to loop?
Oh… I don't think so. Ok, I'll try that…
Sorry I couldn't get back to you 'till today
Sorry I couldn't get back to you 'till today
- golden-flash
-
6 posts
Background music-how to loop?
It doesn't have a pause, but a problem is that I am going to be changing the backdrop, so…
- Tagme
-
100+ posts
Background music-how to loop?
I'd use a Hello, I've been working on projects and for a lot of them I try to make a background music with a :
(when (green flag) clicked)
Forever {
Play sound (background music)
}
OR I use…
When backdrop switches to backdrop1
Forever {
Play sound (background music)
}
All the variable names are right and all those tedious things.
For the first version, it just plays it once.
For the second version, it seems to not get it and glitches the backdrop and makes really short and cut off noises.
PLEASE HELP??!!
Thanks!
when backdrop switches to [ v]Or, maybe something like this:
forever
play sound [bm] until done
end
if <[backdrop # v] of [stage v] = [spbg#]> then
forever
play sound [bm v] until done :: gray
end
end
- Tagme
-
100+ posts
Background music-how to loop?
Also, ActionScript is a little buggy when it comes to sounds on scratch 2.0. Try saving, exiting, and reloading the pdoject, or your sound. Hope this helps! It doesn't have a pause, but a problem is that I am going to be changing the backdrop, so…
- Discussion Forums
- » Help with Scripts
-
» Background music-how to loop?