Well, I'm making an RPG for a Scratch Day 2013 competition, and I'm using some free short music-loops.
They loop, I have a whole system for them set up, everything is fine, but there's one problem; when I try to switch from the title screen to the intro, it keeps playing the first song until the loop is done, then plays the next. I understand that this is because of the scripts saying so, but I'm not sure how I'm supposed to change them so they'll stop.
SCRIPTS I USED:
when gf clicked forever if <(Scene) = [1]> stop all sounds play sound [Title Screen] until done end if <(Scene) = [2]> stop all sounds play sound [Intro] until done endAND
when gf clicked forever if <(Scene) = [1]> stop all sounds reset timer play sound [Title Screen] wait until <(timer) = [14]> end if <(Scene) = [2]> stop all sounds reset timer play sound [Intro] wait until <(timer) = [126]> end
Offline
when i receive [title screen v] set [scene v] to [1] stop all sounds repeat until <(scene) = (2)> play sound [title screen v] until done end when i receive [intro v] set [scene v] to [2] stop all sounds repeat until <(scene) = (1)> play sound [intro v] until done end
Last edited by joefarebrother (2013-01-06 16:17:47)
Offline
What you need to do is put your "stop all sounds" blocks into a new script, because they can't activate while a sound block is playing.
So include a script like this and it should work:
Offline
Kileymeister wrote:
What you need to do is put your "stop all sounds" blocks into a new script, because they can't activate while a sound block is playing.
So include a script like this and it should work:
http://i49.tinypic.com/mc3yfr.gif
You may want to add a wait block. Also, just use scratchblocks next time using the [scratch!blocks] (no ! sign) tags.
Offline
Kileymeister wrote:
What you need to do is put your "stop all sounds" blocks into a new script, because they can't activate while a sound block is playing.
So include a script like this and it should work:
http://i49.tinypic.com/mc3yfr.gif
Thanks, that works!
Offline