LD46/bgm_slider.gd

6 lines
126 B
GDScript

extends HSlider
func _ready():
connect("value_changed", $"/root/Main/bgm", "set_volume")
$"/root/Main/bgm".set_volume(0.5)