Text in bubble or box

  • #10, by afrlmeMonday, 25. July 2016, 16:48 4 years ago
    I guess the best way to prevent this in the first place would be to be careful where you trigger dialogs in general. Don't allow instant examine observation texts from wherever the character is currently standing - set a specific interaction position for each scene object or a general point at least for multiple scene objects.

    But, aye, you could simply check if character is x pixels away from the left or right of the screen edge to determine if text has probably been pushed to scene edge.

    Personally I think the best approach for texts is to force them into a bounding box at the bottom or top of the screen. At least that way, you know they are always going to be in the same position & displayed correctly.

    Imperator

    6816 Posts


  • #11, by Simon_ASATuesday, 26. July 2016, 12:45 4 years ago
    Personally I think the best approach for texts is to force them into a bounding box at the bottom or top of the screen. At least that way, you know they are always going to be in the same position & displayed correctly.


    Ahah yes, that's the easy way smile
    Probably what I'll end up to do if I don't succeed to create bubbles.

    That would be an excellent idea to add a box/bubble option to all text action parts in future versions of VS (I mean... someday). Even a very simple box with no shade, no texture would be nice, if we can change the color and transparency. As long as the box is always placed behind the text, and resizes depending on the quantity of text inside, it's good.

    Great Poster

    321 Posts

  • #12, by afrlmeTuesday, 26. July 2016, 12:51 4 years ago
    I'm sure Simon could probably code that into the engine fairly easily, but whether he'd be willing to or not, is another matter entirely.

    Imperator

    6816 Posts

  • #13, by SimonSTuesday, 26. July 2016, 12:57 4 years ago
    I'm already working on that, it will be part of the TextFX script.

    Thread Captain

    1352 Posts

  • #14, by afrlmeTuesday, 26. July 2016, 13:20 4 years ago
    Ah, nice one Simon mate. wink

    P.S: what other text effect / features will there be?

    Imperator

    6816 Posts

  • #15, by SimonSTuesday, 26. July 2016, 15:13 4 years ago
    Basicly some transitions, changing the color, making the text wiggle and such. Will collect more over time. Had also some features prepared for textured distance fonts.

    Thread Captain

    1352 Posts

  • #16, by sebastianTuesday, 26. July 2016, 15:18 4 years ago
    great information grin

    Thread Captain

    2336 Posts

  • #17, by afrlmeTuesday, 26. July 2016, 16:07 4 years ago
    I'm sure those will all be much appreciated by a lot of people, myself included no doubt! wink

    Imperator

    6816 Posts

  • #18, by Simon_ASATuesday, 02. August 2016, 12:43 4 years ago
    Yes, that will be a great improvement, and a lot of VS users will be excited to discover it!

    Great Poster

    321 Posts

  • #19, by Simon_ASATuesday, 27. September 2016, 17:49 4 years ago
    I'm sorry to bother you again Lee wink but could you help me with the syntax here?

    Yes it should be possible to count the length of a text via the string.len() Lua function.


    I have tried
    local TextCount = string.len(text)

    .... roll

    Great Poster

    321 Posts

  • #20, by sebastianTuesday, 27. September 2016, 17:55 4 years ago
    should be right.
    if text = "teststring" then TextCount should be 10

    Thread Captain

    2336 Posts

Write post