pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

Function/Block for stopping the melody from playing

Open kimprice opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. Using a conditional to switch the background melody results in a lag because the melody will continue until the end before the new melody plays. This function could also be used to stop the melody once the game over sequence begins (issue: https://github.com/microsoft/pxt-arcade/issues/1189).

Describe the solution you'd like In order to make the switch more instantaneous, we should have a function which immediately stops the melody from playing.

See the following PR for context: https://github.com/microsoft/pxt-common-packages/pull/901

kimprice avatar Aug 08 '19 18:08 kimprice