Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Godot Dialogue System 2

An advanced non-linear dialogue system for the free and open-source Godot engine. · By radmatt

Sometimes bubble messages don´t respect width

A topic by Gabriel Fernandes created Dec 12, 2020 Views: 410 Replies: 7
Viewing posts 1 to 4

Sometimes (seems random) a bubble will just appear in one horizontal line and not respect max width or wrapping. Is there way to avoid this?

apparent random wrong bubble size.... 

while most of the time it shows the correct size:


Does anyone ever respond to these threads. I cant figure out how to use a dialogue box and I could really use some help.

I admit it's a bit hard customizing from the examples.

Are you editing the json in a text editor or are you using the Dialog Designer application? Open a new thread with your question, maybe post the file or code your using... I can have look. I'm starting too, but I think I've got everything figured out, although I'm only working with bubble messages for now.

Developer

Please contact me by email (radmattsoftware at gmail.com) or make a separate thread in the forum detailing your problem.

I'm not sure if this helps, but I tried changing a line of code (24) in the TextureBackground.gd file. This makes sure that margin property is always set, instead of testing it against the max_width. After more testing I will post if the change worked.

So:

if self.rect_size.x > max_width:
   $Text.autowrap = true
   self.margin_right = max_width / 2
   self.margin_left = -max_width / 2

Became:

if true: 
   $Text.autowrap = true
   self.margin_right = max_width / 2
   self.margin_left = -max_width / 2

How did you make the text center on your own custom art? I added in pixel art for the bubble and the text is now above my bubble.

Developer

Hi.

I'm having difficulty reproducing this bug. What version of Dialogue System are you using? Could you provide a minimalistic project with the bug? That would help a lot.

Its fine. I no longer need help. Everything is fine.