Simple dialogue controller and example scene
- Copy
DialogueController.gd
andDialogueController.tscn
into your project - Use the
DialogueController.tscn
in the scene - Edit the
DialogueController.tscn
and change theNinePatchRect
with your texture - Create variable of type
Dialogue
(i.e inside an NPC), and emit the signaldialogue_interact
(with theDialogue
variable as the second parameter) to theDialogueController
node - To create the variable above, pass an array of strings to
var dialogue : Dialogue = Dialogue.new(sentences)
- Read the code - it's super simple