mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-13 08:55:29 +00:00
Merge pull request #391 from FunkinCrew/title-music-vol-fix
title screen volume fix
This commit is contained in:
commit
75bc63e1d0
|
@ -223,6 +223,7 @@ class TitleState extends MusicBeatState
|
||||||
var shouldFadeIn = (FlxG.sound.music == null);
|
var shouldFadeIn = (FlxG.sound.music == null);
|
||||||
// Load music. Includes logic to handle BPM changes.
|
// Load music. Includes logic to handle BPM changes.
|
||||||
FunkinSound.playMusic('freakyMenu', false, true);
|
FunkinSound.playMusic('freakyMenu', false, true);
|
||||||
|
FlxG.sound.music.volume = 0;
|
||||||
// Fade from 0.0 to 0.7 over 4 seconds
|
// Fade from 0.0 to 0.7 over 4 seconds
|
||||||
if (shouldFadeIn) FlxG.sound.music.fadeIn(4, 0, 0.7);
|
if (shouldFadeIn) FlxG.sound.music.fadeIn(4, 0, 0.7);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue