the-lost-memory/project/addons/dialogic/Documentation/Content/FAQ/Signals.md

19 lines
612 B
Markdown
Raw Normal View History

2022-11-17 17:52:05 +00:00
# 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)
```