Discuss Scratch

Blayer98
Scratcher
100+ posts

Button

How do i make it so that when the cursor is on the button, the button only plays 1 SOUND and doesn't repeat it?

BoltBait
Scratcher
1000+ posts

Button

In the button sprite, like this:

forever
if <touching [mouse pointer v]> then
play [my sound v] until done
wait until <not <touching [mouse pointer v]>
endif
end of forever loop

Last edited by BoltBait (March 13, 2013 19:01:43)


Click to play:
MINECRAFTER200
Scratcher
17 posts

Button

when this sprite clicked
wait until <not mouse down>

end
forever
play sound [ v] until done
end

Powered by DjangoBB