Merge pull request #1293 from trayfellow/trayfellow-scrollsfx

scroll sound effect now plays when you scroll through the pause menu
This commit is contained in:
Kade M authored and GitHub committed 2021-07-13 18:19:29 -07:00
commit 5fc1a753b7
1 file changed
+2
+2
View File
@@ -265,6 +265,8 @@ class PauseSubState extends MusicBeatSubstate
{
curSelected += change;
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
if (curSelected < 0)
curSelected = menuItems.length - 1;
if (curSelected >= menuItems.length)