Discuss Scratch

IIZaQzaRII
Scratcher
9 posts

Weird bug when combining mouse down with wait block

My browser / operating system: Windows NT 10.0, Firefox 89.0, No Flash version detected


when green flag clicked
forever
if <mouse down?> then
play sound [ v]
wait (0.05) secs
end
end

If im just pressing mouse down it plays the sound at a slower rate but if i move my cursor while mouse down it plays the sound faster

Last edited by IIZaQzaRII (June 3, 2021 08:50:07)

1678819
Scratcher
27 posts

Weird bug when combining mouse down with wait block

What is the goal of this script? If the mouse is down, Play “X” sound? If you take the wait 0.05 seconds out, then it will only effect the future script following after, but if you place the wait block above the play sound, it will effect the sound that you played. So try taking off the wait block is my point.
IIZaQzaRII
Scratcher
9 posts

Weird bug when combining mouse down with wait block

if i remove the wait block it will play the sound way too fast
IIZaQzaRII
Scratcher
9 posts

Weird bug when combining mouse down with wait block

1678819 wrote:

What is the goal of this script? If the mouse is down, Play “X” sound? If you take the wait 0.05 seconds out, then it will only effect the future script following after, but if you place the wait block above the play sound, it will effect the sound that you played. So try taking off the wait block is my point.
if i remove the wait block it will play the sound way too fast

Powered by DjangoBB