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

#1 2010-09-27 07:37:51

2l84zwamani
Scratcher
Registered: 2010-09-27
Posts: 100+

Problems with custom sound button

I have created the costumes for my sound button (where you click to switch options, either mute sound or sound on), but I don't know how to make the sound go on and off with the on and off costumes (switching costumes by clicking). This would probably be fixed with a "Sensing" programming line "on costume 2" or something, so I can do "if on mute-costume stop all sounds" and "if on sound-on play blahblahsound until done forever".

I can't make it "when soundbutton clicked stop all sounds" and then "when soundbutton clicked play sound" because... yeah. It will just play the sound  sad

Does anyone know how to make the sound button work?


I will be a Ms. Pickle Dr. Deadpebble Great Person <forever>
http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3 GROB THE SLIME WILL TAKE OVER THE WORLD!

Offline

 

#2 2010-09-27 12:00:01

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Problems with custom sound button

Add this script replacing the number 1 with whatever number the play costume is (assuming you want to start with the sound on.)
http://i56.tinypic.com/znagdf.gif

Last edited by melikecheese (2010-09-27 12:25:00)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#3 2010-09-27 19:32:59

2l84zwamani
Scratcher
Registered: 2010-09-27
Posts: 100+

Re: Problems with custom sound button

Thanks!  smile


I will be a Ms. Pickle Dr. Deadpebble Great Person <forever>
http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3 GROB THE SLIME WILL TAKE OVER THE WORLD!

Offline

 

#4 2010-09-28 11:21:54

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Problems with custom sound button

2l84zwamani wrote:

Thanks!  smile

You're welcome  smile


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

Board footer