extends LineEdit # Called when the node enters the scene tree for the first time. func _ready(): text = str(Globals.get_save("music", 50)) _text_just_changed("") text_changed.connect(_text_just_changed) # Called every frame. 'delta' is the elapsed time since the previous frame. func _text_just_changed(_new_text): Globals.write_save("music", int(text)) text = str(Globals.get_save("music", 50)) caret_column = text.length() Globals.music_volume = linear_to_db(int(text) / 100.0) print ("music: ", Globals.music_volume)