Dialogue tree Example (Durian)

36
37
1
2

One way of making a dialogue tree so you can let your user have branching conversations with your characters.

Buttons are attached to the question field with Attach, and texts are changed by going to different frames in that sprite's animation depending on which node a user is at in the dialogue tree (tracked by the Node number).

Here's a map of what happens at each node of this particular dialogue tree. The "Node number" defines what node you're at, and also chooses that frame of the respective animations of the Question Field and Button A and B sprites.

So when you're at Node node 3, the Question Field shows frame 3 of its "Questions" animation (Tired?), and Button A shows its frame 3, and so does Button B. When the Node number changes to 7 because the user clicked "No", they all show frame 7 of their animations.

Editor