+ stop music trigger to song transition

This commit is contained in:
FajsiEx 2021-11-21 17:27:37 +01:00
parent 93d02aef74
commit afb88bd6b4
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,6 @@
local common = require('common.common');
game.LoadSkinSample('song_transition_screen/transition_enter.wav'); game.LoadSkinSample('song_transition_screen/transition_enter.wav');
local refBgImage = gfx.CreateSkinImage("songtransition/bg_old.png", 0) local refBgImage = gfx.CreateSkinImage("songtransition/bg_old.png", 0)
@ -75,6 +77,7 @@ end
function render(deltaTime) function render(deltaTime)
if not wasEnterSfxPlayed then if not wasEnterSfxPlayed then
common.stopMusic();
game.PlaySample('song_transition_screen/transition_enter.wav'); game.PlaySample('song_transition_screen/transition_enter.wav');
wasEnterSfxPlayed = true; wasEnterSfxPlayed = true;
end end