FlxSlider has two variables for sfx, clickSound and hoverSound.
But these are Strings used to give the path of the sound file, not FlxSounds, so the user doesn't have the opportunity to change stuff like the volume, pitch, time, etc.
I think changing these variables to FlxSound would be better to achieve more customization.
FlxSlider
has two variables for sfx,clickSound
andhoverSound
. But these areStrings
used to give the path of the sound file, not FlxSounds, so the user doesn't have the opportunity to change stuff like the volume, pitch, time, etc.I think changing these variables to FlxSound would be better to achieve more customization.
FlxG.sound.play(hoverSound);
=>hoverSound.play();