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

#1 2013-04-21 16:51:06

andrewguy
New Scratcher
Registered: 2013-04-16
Posts: 4

How to change volume for all sprites with one control?

When I change a volume, it only changes the volume of that certain sprite. How can you change the volume of all sprites at once with a single script?

Offline

 

#2 2013-04-21 18:29:30

PaulRHJT
New Scratcher
Registered: 2013-04-14
Posts: 34

Re: How to change volume for all sprites with one control?

It might not be with a single script, but by broadcasting, you'll be able to sync the volume decrease of all the sprites.

when gf clicked
broadcast [lowervolume v]
Then add to all the sprites:
when I receive [lowervolume v]
change volume by [-10]
- – — – - – — – - – — – - – — – -
ˆ;“*•›¸     ¸‹•*“ˆ“*•›¸
  `›,¸¸;,‹“ Ultimate Evader 2.0
        ˆ›,,¸¸¸,,‹“ Out Now!

Offline

 

#3 2013-04-21 18:33:38

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: How to change volume for all sprites with one control?

or, you can use a forever loop and variables.

forever
 set volume to (volumecontrol) %
end

Last edited by berberberber (2013-04-21 18:34:04)


http://i47.tinypic.com/2iaa73k.png

Offline

 

Board footer