19 lines
612 B
Markdown
19 lines
612 B
Markdown
|
# How do I use signals with Dialogic?
|
||
|
|
||
|
## Emit Signal event
|
||
|
You can learn more about how to use this event in its own documentation page in the Events folder.
|
||
|
|
||
|
## Other signals
|
||
|
You can also listen to Dialogic using four preset signals:
|
||
|
|
||
|
- **event_end** and **event_start** are emitted for each event in your timeline
|
||
|
- **timeline_end** and **timeline_start** are emitted when a timeline starts and ends.
|
||
|
|
||
|
You can connect signals using the editor or via code:
|
||
|
```gdscript
|
||
|
func start_dialog():
|
||
|
var dialog = Dialogic.start("my_timeline")
|
||
|
dialog.connect("timeline_end", self, "dialog_ended")
|
||
|
add_node(dialog)
|
||
|
```
|