• Godot Help
  • Embedding multiple text buttons within a block of text

Trying to create a text based adventure game, displaying a block of descriptive text, with certain elements able to be highlighted and selected using the mouse cursor within the block of text, but still formatting the text as one seamless paragraph. Not exactly sure how what the best way to go about this is, and was wondering if anyone could point me in the right direction.

The only thing I can think of to do is to have code determine the length of text leading up to each button, and generate buttons in those locations, however I feel like this would be a pain in the ass if the font isn't mono-spaced and I'm not sure if it would really be possible to figure out, unless I am measuring the width of each character in a font.

I'm pretty new to Godot having moved from Unity, so forgive me if there is a simple solution.

Thanks for any input!

To have more granular experience i would create word node and then construct paragraph using that node and with node you can pretty theme it the way you want.