This guide will walk you through creating a simple linear dialogue sequence, the foundation of any dialogue system.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Rubonnek/dialogue-engine/llms.txt
Use this file to discover all available pages before exploring further.
Overview
A simple dialogue consists of a sequence of text entries that play one after another. The Dialogue Engine handles the flow automatically, and you control when to advance to the next entry.Creating Your First Dialogue
Extend DialogueEngine
Create a new GDScript file that extends The
DialogueEngine:_setup() function is called automatically when the DialogueEngine is instantiated. This is where you define your dialogue structure.Connect to Signals
Create a UI script that listens to the dialogue events:
The
dialogue_continued signal is emitted every time a text entry is visited. This is where you update your UI to display the dialogue text.BBCode Support
Dialogue text supports Godot’s RichTextLabel BBCode formatting:Key Signals
The DialogueEngine provides three essential signals for simple dialogues:| Signal | When Emitted | Use Case |
|---|---|---|
dialogue_started | When the first entry is read | Initialize UI, play sounds |
dialogue_continued(DialogueEntry) | For each text entry visited | Display dialogue text |
dialogue_finished | When dialogue completes | Clean up, transition scenes |
Complete Example
Here’s a full working example:Next Steps
- Learn about branching dialogue to create non-linear conversations
- Add player choices to let players make decisions
- Use dynamic text to insert variables into dialogue
