New "stop sound (ba ding)" block doesn't seem to work as expected, or as the previous "stop all sounds" block does.
I'm starting a sound with button a, trying to stop it with button b. New block version:
input.buttonA.onEvent(ButtonEvent.Click, function () {
music.playSound(music.sounds(Sounds.PowerDown))
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
music.powerDown.stop()
})
Older block version, which does allow the b button to stop the sound:
input.buttonA.onEvent(ButtonEvent.Click, function () {
music.playSound(music.sounds(Sounds.PowerDown))
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
music.stopAllSounds()
})
New "stop sound (ba ding)" block doesn't seem to work as expected, or as the previous "stop all sounds" block does. I'm starting a sound with button a, trying to stop it with button b. New block version:
Older block version, which does allow the b button to stop the sound: