Improved BBcode text object adding more built-in parameters

I would like a way to edit Line Spacing in the BBcode text object of Gdevelop. There is currently already way to do [spacing=12]spaced out[/spacing] for spacing between characters but there is no way to add spacing between lines. This issue results in text that is very close to each other.

I would need this feature because I am using the Yarn Json dialogue editor and currently I display my text correctly and use BBcode to be able to use word wrapping. I have tried many solutions to counter the need to use line spacing like adding a stroke (which can only have a custom stroke size using a normal text object and not a BBcode) which worked but not on bbcode since it didn’t add enough space. I also tried changing my font itself but it didn’t work either. I now realy need this feature to be built in. I just wan’t to be able to display text not so close.

Thanks for reading

1 Like

Hi,
I’m reopening this thread to suggest some more advanced features for BBCode text in GDevelop.

Here’s an example of what I’m referring to in Godot:

It would be great to have similar capabilities in GDevelop, as the current options for animated or styled text are quite limited. At the moment, if you want to add text effects, your only options are:

  • Apply effects to the entire text object — which often doesn’t look good.
  • Build your own custom text engine that generates text character by character using object clones and animates them individually.

While the second method works, it quickly becomes complex:

  • It’s difficult to control the whole text block as a single object.
  • There’s currently no way to dynamically get the width of a BBText object based on its content, like a “hug-content” in HTML/CSS.
  • As a result, your custom system ends up being monospace only, unless you manually define widths for each character (e.g. “I” = 5px, “W” = 15px).

These limitations make custom text animation very time-consuming and hard to maintain. Built-in support for per-character animation, text layout measurements, or advanced BBCode features would really help. I know this is asking for alot but I realy hope the team considerates these features.

If your text instance doesn’t have a custom size, Width() does give the actual content size. Though, it’s not enough to place characters correctly since the space to put between 2 characters is linked to their shape (even if it’s hard to spot when it’s done correctly).