extends LineEdit # Called when the node enters the scene tree for the first time. func _ready(): text = str(Globals.get_save("voice", 200)) _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("voice", int(text)) text = str(Globals.get_save("voice", 100)) caret_column = text.length() Globals.voice_volume = linear_to_db(int(text) / 100.0) print ("voice: ", Globals.voice_volume)