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

#1 2012-04-28 20:33:36

ilackoriginality
Scratcher
Registered: 2011-10-30
Posts: 500+

sounds

my project involves backgrounds, and whenever the viewer presses space, it advances. there's a specific music choice for the first seven backgrounds.

so my question is, how do you program it so that when you get to the eighth background, it completely stops the first song and replaces it with another?

thank you in advance!

Offline

 

#2 2012-04-28 23:06:12

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: sounds

It is not possible to stop one song in specific, but there is a block to stop all sounds playing

stop all sounds
Here is what you need to do. This script will stop all sounds and play te one you want when it gets to background 8:
When gf clicked
Wait until <(background #) = [8]>
stop all sounds
Play sound [one you want to play v]
This block:
(background #)
Is under "looks".

Last edited by turkey3 (2012-04-28 23:07:38)

Offline

 

#3 2012-04-28 23:08:45

ilackoriginality
Scratcher
Registered: 2011-10-30
Posts: 500+

Re: sounds

Thank you very much! helps a lot

Offline

 

Board footer