Need help with custom text system

Hey! Im having trouble with a custom text system for my game. The letters aren’t spaced and sized correctly! This makes the dialog hard to read on some occasions. Ive tried looking on the forum, however I couldnt find anything! Currently, in my code it just adds a set offset to the next letter. (A letter is a simple text label with 1 letter and text scaled set to true, it looks weird on smaller devices without it). Also, if a word hits the end of a line, it doesnt move the word to the next line. If someone can help with that also, that’d be great!

Examples

Supposed to say “Hey! I test the formatting of the dialog. Would you like to test them?”, however it is hard to read.

The punctuation is not spaced correctly.

If anyone can help thatd be fantastic! Ive had this issue for months and couldn’t seem to fix it. If you have any questions, feel free to ask.

2 Likes

I think you could use just one TextLabel to display the text to the user. You can create a simple typewriter effect to have it display one letter at a time (I can show you how to do that if you’re not familiar with that idea) and update the single text label. You can also enable RichText on it so you can add in line breaks, if you want it so a new line begins at a certain point.

2 Likes

Check out the “kerning values” heading in particular:

2 Likes

Id like for it to be different, so that i can play an animation for each letter wheb it shows up and so it doesn’t change size during the typewrite effect. Thanks for the idea tho!

1 Like

Thanks for the link! Any idea how to achieve this via roblox?

1 Like

i’ve never made something like this but it seems like the issue is caused by the letter m.
you could go about this the lazy way and make a different offset on the letter m
or you could study what people did for 1 letter textlabels like this (for ex. Rich Text Markup)

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.