Hi there!
I’m working with the Dialouge Tree System. It runs fine. I can show the full text of a line or let it be clipped char by char.
I want the text to wrap at the end of my textbox. This is working. But it is not clean. The word, which needs to be wrapped is partially written in the first line and then hopping to the 2nd line.
Is there a way to start this last 1st row word from the beginning in the 2nd row to achieve a clean word wrap animation?
Thx for reading,
have a nice day!
OniGiri ~
Not that I know of, unfortunately. I’ve been using Yarn for a couple of years now and decided to go with whole lines in my project, instead of clipped-line-text, because of the problem you described. You can’t do line breaks in Yarn dialogue either because of how it structures its dialogue, so you can’t manually stop those awkward word wraps.
Unless anyone knows a clever way around it, your options are:
(1) Put up with it. Many players won’t notice. I doubt you’d ever see a comment about it in a review of a game or on a game’s Steam community pages etc.
(2) Have a wider text box and avoid long, long sentences. That way only a few lines will wrap. Most won’t need to.
(3) Use whole lines i.e. each complete line of dialogue appears, one by one. I animate my whole lines using an opacity tween. Looks quite nice.
1 Like
Thank you for sharing your experience, worriedpixels!
The animation of the full line sounds like a nice work around to still have a little effect there. I’ll think about that and try how it suits the game
I’ll let this topic open for a little longer. Maybe we are lucky and somebody can add on it.
1 Like
Edit: I now understand what you mean, and had misunderstood the problem. Ignore this post, apologies for the confusion.
1 Like