Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change String sounds in FlxSlider to FlxSound's. #438

Open
TheGaloXx opened this issue Jul 7, 2024 · 0 comments
Open

Change String sounds in FlxSlider to FlxSound's. #438

TheGaloXx opened this issue Jul 7, 2024 · 0 comments

Comments

@TheGaloXx
Copy link

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.

FlxG.sound.play(hoverSound); => hoverSound.play();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants