Hello anyone that sees this! I recently started working on a settings menu with audio sliders for master, music, and SFX volume, but whenever I click the value I set the sliders to start at, which is halfway, the audio gets very loud.
Here are the settings I'm using on all of the sliders:
And here is the code:
func _on_master_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("Master"), value)
func _on_music_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("Music"), value)
func _on_sfx_value_changed(value: float) -> void:
AudioServer.set_bus_volume_linear(AudioServer.get_bus_index("SFX"), value)