Skip to content

Commit

Permalink
배경음 재생시 기존 배경음 종료
Browse files Browse the repository at this point in the history
  • Loading branch information
usbsync committed Oct 30, 2023
1 parent 62aec6c commit 09f05f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playground/blocks/block_sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ module.exports = {
const sound = sprite.parent.getSound(soundId);

if (sound) {
Entry.Utils.forceStopBGM();
const instance = Entry.Utils.playBGM(sound.id);
Entry.Utils.addBGMInstances(instance);
}
Expand Down

0 comments on commit 09f05f9

Please sign in to comment.