Discuss Scratch

camaze
Scratcher
4 posts

Music not repeating in loop

My browser / operating system: Windows NT 10.0, Chrome 71.0.3578.98, No Flash version detected

I put a sound in a loop like this:
when I receive [ v]
forever
play sound [ v] until done
end

And it only played once!

I tried several things to fix this:
when I receive [ v]
play sound [ v] until done
broadcast [ v]

when I receive [ v]
forever
play sound [ v] until done
wait (1) secs
end
even just a row of them:

when I receive [ v]
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done

(of course, it actually had the names of stuff)

No matter what, it only ever played it once!

I only tested this with one thing, but if this happens in every loop like the first one, then every project of mine no longer has looping music.
This is a big problem for longer games that always end up looping the sound.

If you can fix this, i would really appreciate it. Thanks!
gor-dee
Scratcher
1000+ posts

Music not repeating in loop

My browser / operating system: Linux, Chrome 72.0.3626.81, No Flash version detected
I don't get this problem, can you share a link to your project. The only thing I can think of is that there is a long section of silence at the end of your sound.
camaze
Scratcher
4 posts

Music not repeating in loop

gor-dee wrote:

My browser / operating system: Linux, Chrome 72.0.3626.81, No Flash version detected
I don't get this problem, can you share a link to your project. The only thing I can think of is that there is a long section of silence at the end of your sound.

Turns out that was actually it! Thanks!

Powered by DjangoBB