Skip to content

Dialogic Animation #1600

Answered by Jowan-Spooner
AxzonZero asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, it would be useful to know what version you are using.

Dialogic emits a signal when it's finished. If you are new to godot, try to learn about signals here.

In dialogic 1 the signal is part of the dialogic node returend by Dialogic.start(). This means something like this code should work:

    var dialog = Dialogic.start('my_timeline')
    add_child(dialog)
    dialog.connect('timeline_end', self, '_on_timeline_end')
    
func _on_timeline_end(timeline):
    print("The timeline ended")
    $AnimationPlayer.play('timeline_end_animation')

In dialogic 2 it could look like this:

    Dialogic.start('my_timeline')
    Dialogic.timeline_ended.connect(_on_timeline_end)
    
func _on_timeline_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jowan-Spooner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants