Is it possible to create a script that basically uses 1 button for to functions. So for instance. Can I have a script that says "If space is pressed and held play sound x. If space is released stop all sound?"
Offline
Another way to do it is to have one block constantly play a sound like this:
when gf clicked forever play sound [X v] until done endAnd then have another one to adjust the volume. Then you can instantly turn it on and off.
when gf clicked forever if <key [space v] pressed?> set volume to (100)% else set volume to (0)% end end
Offline
Thanks I think the first solution is exactly what I'm looking for!!!
Offline
The first solution isn't very good if it's a long sound that is being played though, since it will not mute it until the sound is done playing. So if you press space, and release it, the sound will keep playing until it's finished.
The second one allows your sound to keep playing, but you decide when you want to hear it or not.
Offline