This screen is really more of a proof-of-concept... we've designed the demo to be a very unified experience, and there's not much for players to actually change. Still, though, it's nice to have a settings screen.
Design
Users should be able to change the master volume through the settings screen using a slider
Implementation
Feel free to delete the dropdown menu and checkbox that are currently in the settings screen. We only need a slider right now
Create a function in the SettingsScreen node to be called when the volume slider is adjusted
Create an autoload singleton node (in the project settings under Autoload) containing variables for global settings (just the volume right now). The function in the SettingsScreen node should change this variable
The volume doesn't need to be consistent after the application is closed. It can reset every time we open the game, at least for now (as I mentioned, this is just a proof-of-concept)
Connect a signal (under "Node" in the inspector window on the right) on the slider to the function you created
Add a new script to the two AudioStreamPlayer music nodes (right now, there's one in the World scene and in the title screen) that automatically adjusts their volume based on this global setting
This screen is really more of a proof-of-concept... we've designed the demo to be a very unified experience, and there's not much for players to actually change. Still, though, it's nice to have a settings screen.
Design
Implementation
SettingsScreen
node to be called when the volume slider is adjustedLet me know if you need any clarification.