I am trying tomake a visual novel prototype, the problem i have and the documentation does not help me much with is the imput to pass to the next bit of dialogue, if I use this bit of code:
for dindex in range(scriptpath.final):
if Input.is_action_just_pressed("ui_accept"):
$character.texture = load(scriptpath.dialogues[dindex]["sprite"])
$nametag.text = scriptpath.dialogues[dindex]["name"]
$dialogue.text = scriptpath.dialogues[dindex]["dialogue"]
it does compile however, pressing the space or enter keys has no effect, I have tried removing the input so i know that the loop does work as intended, so i would like to know what is it that i am doing wrong with this input and if that is even a good way to pause the loop to wait for user input.