I'd like to have a sprite that plays a short music clip when you click on it, but I'd also like the same sprite to stop playing the clip.
The "when __clicked" block isn't working for me when I use an "if" block, like "if costume # = 1" then stop playing sound.
Any ideas?
Offline
pross67 wrote:
I'd like to have a sprite that plays a short music clip when you click on it, but I'd also like the same sprite to stop playing the clip.
The "when __clicked" block isn't working for me when I use an "if" block, like "if costume # = 1" then stop playing sound.
Any ideas?
It's complicated. I can't really explain.
Try creating a varible called button function.
Then
if _ clicked
If <button function = function 1>
Play sound
wait 1 second
set function to function 2
else
stop all sounds
wait 1 second
set function to function 1
_
The wait one second is to make sure it doesn't stop, play, stop, play really quickly.
Oh wait, I've just explained it
Hope that helps.
Last edited by Stickman704 (2010-04-27 12:59:42)
Offline
pross67 wrote:
thank you! That worked.
Any time! You can request for this to be closed since it's resolved.
Offline