#I need help with Undertale-style dialogs using .csv files and Scribble :(

24 messages · Page 1 of 1 (latest)

neat bramble
#

I've been trying to implement the dialogs and I kind of have the theory, but I don't know how to code it...
Could anyone help me with this?

patent axle
#

What is the theory you know?

#

I think a good way to make the dialogue is keep track of how many chars are visible and then check the string from 0 to the shown length to see what special actions you need to do

#

So if you have a colour change to red action in the middle of the text it only happens when the middle chars are shown

#

You can passively increase the shown chars

#

To get the typewriter effect

patent axle
#

You do have to insert linebreaks yourself tho since they'll happen whilst the word is writing when using draw text ext

#

You can check the last shown character and find the beginning and end of that word by checking if you've hit a space or not

#

And then if the string width of the string from the start of the line to the end of the word is greater than your limit (and the word isn't linebreaked already) you add a linebreak and record the starting char of the next line

#

If you hit a regular linebreak too (\n) you'll still want to record the char of the next line

slim topaz
neat bramble
slim topaz
#

This guy's one is good

neat bramble
#

Some special characters (like ñ, á é í ó ú...) do not show in the dialog

#

Why?? They just disapear from the dialog

neat bramble
patent axle
#

Not your dialogue

neat bramble
#

I've checked and the font has that characters

patent axle
#

Unless you have some special characters that use those symbols for some reason? I wouldn't know

patent axle
neat bramble
#

huh...

#

I'll try something

karmic hedge