box for characters text

  • #1, z pdsFriday, 19. August 2022, 15:28 hodinky 2 years ago
    hello there,
    i was looking the game "dude, where is my beer?" (made with visionaire)

    and i noticed that characters have a box that change based on length of string, here below some example:




    Now i wondering, how is possible to achieve that kind of result?does each single character have a different image portrait or something like that?

    Bažant

    55 Posts


  • #2, z afrlmeFriday, 19. August 2022, 15:42 hodinky 2 years ago
    I meant the forum section on our discord server. grin

    Sebastian's Speech Bubble Script: English tutorial
    https://www.youtube.com/watch?v=wV6Fh_baPkk

    Sebastian's Speech Bubble Script: German tutorial
    https://www.youtube.com/watch?v=dn_X6OsozZI

    I don't know if there's resource files available on those tutorials. I believe Esmeralda has the fixed version of the script, but you could also ping arik on our discord server & ask if he'd be willing to share the script with you.

    In regards to how it works. It uses something called 9rect, which is an image chopped up into sections & then tiled. The code Sebastian wrote calculates the length & height of all the text & then tiles the image sections to fit around the text.

    Imperátor

    7285 Posts