diff --git a/scripts/challengeresult.lua b/scripts/challengeresult.lua index 278a63c..3d69ce1 100644 --- a/scripts/challengeresult.lua +++ b/scripts/challengeresult.lua @@ -1,5 +1,6 @@ local Easing = require("common.easings"); local Footer = require("components.footer"); +local common = require('common.common'); local VolforceWindow = require("components.volforceWindow") @@ -38,6 +39,7 @@ end local function handleSfx() if not bgSfxPlayed then + common.stopMusic(); game.PlaySample("challenge_result.wav", true) bgSfxPlayed = true end diff --git a/scripts/transition.lua b/scripts/transition.lua index 11e5c7e..a9de747 100644 --- a/scripts/transition.lua +++ b/scripts/transition.lua @@ -1,4 +1,6 @@ +local common = require('common.common'); + local transitionEnterAnimation; local transitionLeaveAnimation; @@ -19,6 +21,8 @@ function loadAnimations() end function render(deltaTime) + common.stopMusic(); + if not transitionEnterAnimation then loadAnimations() end