Text visual effects

0 favourites
  • 4 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • 1. If a sprite text box is set to an exact size can you make the text within that box scroll up or down to reveal more or less.

    2. Is there a way to make words fill up a text box over a period of time. (like if someone were typing or like what you see during cut scene conversation.)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • for 2, yes, I did that in my games. See the following from the manual's System Expressions page:

    [quote:3hykzyoa]

    left(text, count)

    Return the first count characters of text.

    len(text)

    Return the number of characters in text.

    You could create a variable (let's call it "letterCounter") that keeps increasing by 1 every 0.1 seconds, for instance, you will then put in letterCounter into left(yourTextHere, letterCounter) and put the text returned from this function into the text object or spritefont object using their "set text" action every tick. This will show yourTextHere text character by character at the speed of 1 character per 0.1 seconds.

    Tip: for performance reason, text object has very poor performance when it needs its text change every tick. (even on desktop, it kicks your framerate down to the point that makes your computer that can run Crysis 3 on high graphical setting to cry) You may wish to use spritefont instead as there will be no performance impact when you keep on setting the text every tick.

    EDIT: oops, sorry, you want TextBox's Set Text action, not Text object:

    From https://www.scirra.com/manual/117/textbox :

    [quote:3hykzyoa]

    Set text

    Set the text currently entered in to the field.

    The idea and what can you do should be the same though.

    ----------

    for 1, anyone else wanna give currypuff a hand?

  • for 1, from https://www.scirra.com/manual/117/textbox , I see only this action:

    [quote:2kb1mzwn]Scroll to bottom

    Scroll to the bottom of the control. Only has an effect when set to the textarea type, since it is the only multiline mode. This is useful for chat or log style textareas.

    I wonder whether there are other external plugins/methods.

  • Thanks on solving Q. 2 for me, I've realized if no one can come up with a solution for Q. 1 I could just do a 'next page' button, but it would still be great is someone could figure out how to do Q.1.

    Again thanks keroberos.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)