I followed a tutorial for trying to implement a textbox with Ink, but for some reason the labels text doesn't update. The json file through Inkly looks fine.
Now in the tutorial the guy used an older version of Godot so maybe that's the problem, but I don't have the faintest idea of what to change.
extends CanvasLayer var InkPlayer = load("res://addons/inkgd/ink_player.gd") @onready var inkplayer = InkPlayer.new() func _ready(): add_child(inkplayer) inkplayer.ink_file=load("res://Assets/SpeechTexts/AltSecond.ink") inkplayer.loads_in_background = true inkplayer.loaded.connect(self.story_loaded) inkplayer.create_story() func story_loaded(successfully:bool): if !successfully: return continue_story() func continue_story(): while inkplayer.can_continue: var text = inkplayer.continue_story() var dialogtext = get_node("TextboxContainer/MarginContainer/VBoxContainer/Text") dialogtext.text = text if inkplayer.has_choices: for choice in inkplayer.current_choices: print(choice) else: print("End of text")
Can somebody help me?