Discuss Scratch

golden-flash
Scratcher
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!
jokebookservice1
Scratcher
1000+ posts

Background music-how to loop?

Use:
playsounduntildone
instead of
playsound
golden-flash
Scratcher
6 posts

Background music-how to loop?

@jokebookservice1 Thank you!!
golden-flash
Scratcher
6 posts

Background music-how to loop?

@jokebookservice1
Waitt… Don't go! It didn't work… It only played once
jokebookservice1
Scratcher
1000+ posts

Background music-how to loop?

golden-flash wrote:

@jokebookservice1
Waitt… Don't go! It didn't work… It only played once
Did you use your latter option of
whenbackdropswitchestobackdrop1foreverplaysounduntildone
?
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
Scratcher
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
golden-flash
Scratcher
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
Scratcher
100+ posts

Background music-how to loop?

golden-flash wrote:

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!
I'd use a
whenbackdropswitchestoforeverplaysoundbmuntildone
Or, maybe something like this:
ifbackdrop #ofstage=spbg#thenforeverplaysoundbmuntildone
Tagme
Scratcher
100+ posts

Background music-how to loop?

golden-flash wrote:

It doesn't have a pause, but a problem is that I am going to be changing the backdrop, so…
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!
golden-flash
Scratcher
6 posts

Background music-how to loop?

Ok, thanks, they work!
24ethanp
Scratcher
1 post

Background music-how to loop?

deck26
Scratcher
1000+ posts

Background music-how to loop?

24ethanp wrote:

Please don't spam or necropost.

Powered by DjangoBB