Skip to content

Commit

Permalink
replacing the no-wait yield with a dialogic timer
Browse files Browse the repository at this point in the history
  • Loading branch information
coppolaemilio committed Oct 17, 2021
1 parent 145e1e0 commit c73e285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Nodes/DialogNode.gd
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ func _on_text_completed():
var wait_settings = result.get_string()
waiting_time = float(wait_settings.split('=')[1])

yield(get_tree().create_timer(waiting_time), "timeout")
$DialogicTimer.start(waiting_time); yield($DialogicTimer, "timeout")
if dialog_index == current_index:
_load_next_event()

Expand Down

0 comments on commit c73e285

Please sign in to comment.