Discuss Scratch

nechung
New Scratcher
4 posts

Can't stop music loop

Hi all,

I am new to scratch and just looking for a basic way to end sound music at the end of my scratch. I have seen previous forums on this but they seem quite difficult and I am unsure as to how to use the ‘repeat until blocks.’ If anyone has a quick fix that can help me, I would be grateful. I have the music in a ‘forever’ loop, is there any other easy alternatives? Thank you
Vibrato
Scratcher
1000+ posts

Can't stop music loop

How to use repeat until:

set [x v] to [0]
repeat until <(x) = [1]> // the stuff inside will happen until x = 1

end

And you can set x to 1 elsewhere or inside the loop.

Now you can put a play sound until done inside the loop.
nechung
New Scratcher
4 posts

Can't stop music loop

That worked perfectly! Thank you so much

Powered by DjangoBB