A very simple dialogue plugin for my game projects.
This plugin adds the Character and DialogueLine resources.
- A
Charactersimply has a name. - A
DialogueLinehas a speaker (aCharacter), a line, and can trigger an optional callback.
This plugin works with two main nodes:
DialogueHolder: This node holds an array ofDialogueLines and sends them to a specifiedDialogueDisplaynode.DialogueDisplay: A UI element which can display dialogue. It has a mode to display text progressively.
Simply drop a DialogueHolder in your scene and fill it with DialogueLines.
Create Character resources if needed, these define the name of the speaker
when dialogue is displayed.
The DialogueHolder can simply play automatically when the scene is loaded
(tick autoplay), or can be trigger by any node by calling its play
function.
When calling play, the DialogueHolder will play all its dialogue. If you
want to split dialogue in multiple different pieces, use different
DialogueHolders.