Menu
Login
Language
DE EN FR ES IT CZ
Back

Text in bubble or box

  • #10, by afrlme Monday, 25. July 2016, 16:48 10 years ago Quote
    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

    7290 Posts

  • #11, by Simon_ASA Tuesday, 26. July 2016, 12:45 10 years ago Quote
    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 afrlme Tuesday, 26. July 2016, 12:51 10 years ago Quote
    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

    7290 Posts

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

    Thread Captain

    1622 Posts

  • #14, by afrlme Tuesday, 26. July 2016, 13:20 10 years ago Quote
    Ah, nice one Simon mate. wink

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

    Imperator

    7290 Posts

  • #15, by SimonS Tuesday, 26. July 2016, 15:13 10 years ago Quote
    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

    1622 Posts

  • #16, by sebastian Tuesday, 26. July 2016, 15:18 10 years ago Quote
    great information grin

    Thread Captain

    2346 Posts

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

    Imperator

    7290 Posts

  • #18, by Simon_ASA Tuesday, 02. August 2016, 12:43 10 years ago Quote
    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_ASA Tuesday, 27. September 2016, 17:49 10 years ago Quote
    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 sebastian Tuesday, 27. September 2016, 17:55 10 years ago Quote
    should be right.
    if text = "teststring" then TextCount should be 10

    Thread Captain

    2346 Posts