So this has been something that I’ve made several times for my games, but then I thought “hmmm… someone else might find this helpful.”
So… I made it again.
And here it is, a simple dialouge system. Nothing fancy.
Fun fact: I can’t spell “dialogue”
How do you use this? Well, copy - paste it into your project, then when you want one of your characters to talk just write
project.say([
1, // pick the frame for the picture that goes with the text
"Here is the first thing this character will say", // text to say
"Here is the second thing this character will say" // more text to say
])
And it’s that simple.
Advantages of using this:
- Save time coding
- Text wrap that works with any font
- Easy to add and change character pictures
dialogueSystem_v1.wick (95.7 KB)
^ Here’s the file, it already includes an example, click the characters to listen to them and they’ll also tell you how it works.
This is meant to be a very basic example. Feel free to edit how the dialogue looks and all or change the code. If you want to see a good example of this being used in a game, take a look at Newton’s Apple which uses a similar system.