Defold Printer or RichText

Hello everyone!

I have been working on dialogue for the game that I’m working on. I have taken a look at Defold Printer as well as RichText. The thing with Defold Printer is that I haven’t figured how to create multiple instances. Once I finish one conversation, I don’t know how to start up another one…

I also took a look a look at RichText and I have been having trouble making text even appear!

Does anyone have any insight into either of these subjects, or have a recommendation into which library I should use?

Much thanks,
V

The rich text project comes with a bunch of examples. Have you looked at those?

1 Like

Yeah I took a look at the examples. I tried a simple line of text. I created a game object, and attached a gui to it. Attached to the gui was the gui script simply having:

local richtext = require "richtext.richtext"
function init(self)
richtext.create("Single line text with a dash of color By default left aligned.", 
"system_font")
end

Still nothing happened, I’m sure I’m doing something wrong…

Make sure you give it a position so that it doesn’t appear off-screen, like this:

richtext.create("Single line text with a dash of color By default left aligned.", "system_font", { position = vmath.vector3(500, 400, 0)})
1 Like

Wonderful, thanks so much for the help!

I’ll mess around with RichText some more and compare it to DefoldPrinter!

1 Like

Hmm, perhaps it should result in an error to not specify a position. Right now it defaults to 0,0