This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-09 20:56:04

MekrexProductions
New Scratcher
Registered: 2012-07-07
Posts: 8

Music Loop Collision

Hello, I'm having a problem with my music loops. When you first start the game it brings you to the main menu then the main menu music plays which I put a loop in, but when you start playing the game it's supposed to stop all sounds and then play the gameplay music. Instead the music from the main menu and the gameplay music play simultaneously. Can anybody help?

Offline

 

#2 2012-08-09 21:25:44

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Music Loop Collision

Hmm.... I'm not sure what that could be. What scripts did you use? Could you upload your project so we can try to find the problem?


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2012-08-09 22:46:29

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Music Loop Collision

This advice is basically a guess at which script you're using.

If you're using the script below for your main menu music, use the script beneath the script below:

when gf clicked
forever
play sound [main menu v] until done

when gf clicked
set [playing_game v] to [no]
repeat until<(playing_game) = [yes]>
play sound [main menu v] until done
end
Keep the "stop all sounds" script and have it so that when you set "playing_game" to yes before you "stop all sounds".


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2012-08-17 14:46:48

MekrexProductions
New Scratcher
Registered: 2012-07-07
Posts: 8

Re: Music Loop Collision

Thank you so much this worked! Yay!

Offline

 

#5 2012-08-17 15:40:13

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Music Loop Collision

MekrexProductions wrote:

Thank you so much this worked! Yay!

No problem, I'm glad it worked  smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer