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

#1 2013-03-13 14:29:31

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Need help with buttons.

how do i make it so that when the cursor is on the sprite, it plays a sound ONCE. not all of the time.


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#2 2013-03-13 15:30:24

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Need help with buttons.

Well, here's a script that could do that:

when gf clicked
forever
 if (touching [mouse pointer v]?)
  play sound [Sound v]//You could make this [play sound[ v] until done].
  wait until <not (touching [mouse pointer v]?)>
 end

Remember, this goes in the button.

I hope that this helps!

With regards,

ErnieParke

Last edited by ErnieParke (2013-03-13 16:43:20)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-03-13 16:19:17

Thesims267284
Scratcher
Registered: 2013-03-13
Posts: 4

Re: Need help with buttons.

um


Lol

Offline

 

Board footer