Discuss Scratch

Onomatopoeia_31
Scratcher
2 posts

How do you make a sound stop when the character stops moving, then start when they are moving?

when green flag clicked
forever
if <key [ v] pressed?> then


play sound [ v] until done

else
if <not <key [ v] pressed?>> then
stop all sounds
end
end
end

This is what I tried to use and it only works sometimes.
An0therRand0mC0der
Scratcher
1000+ posts

How do you make a sound stop when the character stops moving, then start when they are moving?

Last edited by An0therRand0mC0der (Nov. 13, 2022 22:45:54)

Onomatopoeia_31
Scratcher
2 posts

How do you make a sound stop when the character stops moving, then start when they are moving?

Thank you, this works much better.

Powered by DjangoBB