Discuss Scratch

-EpicBerry-
Scratcher
8 posts

Need help with music loop

I want a song to play forever until something is broadcasted how do I do that though?
MaterArc
Scratcher
500+ posts

Need help with music loop

Forever loop around music. When I receive (whatever) stop music or set volume to 0%
WillMonaAnimations
Scratcher
11 posts

Need help with music loop

-EpicBerry- wrote:

I want a song to play forever until something is broadcasted how do I do that though?
Like this:

whenclickedforeverplaysound(Anything)untildone

whenIreceive( Anything)stopother scripts in spritestopallsounds
AJK_21
Scratcher
49 posts

Need help with music loop

WillMonaAnimations wrote:

-EpicBerry- wrote:

I want a song to play forever until something is broadcasted how do I do that though?
Like this:

whenclickedforeverplaysound(Anything)untildone

whenIreceive( Anything)stopother scripts in spritestopallsounds
This won't work because even if all sounds are stopped, the forever loop continues to run and therefore continues playing the music. I recommend doing what MaterArc said, like this:
whenclickedsetvolumeto100%foreverplaysoundmusicuntildonewhenIreceivestop musicsetvolumeto0%

Powered by DjangoBB