Display text "one word at a time"?

This forum is currently in read-only mode.
From the Asset Store
Change delay, create new lines, "backspace" the text
  • This is hardly important, but I was wondering if this could be added to the text box object sometime in the future.

    Instead of displaying the entire contents of a text box all at once some games make the sentances appear one word at a time, sort of like a typewriter effect. Usually you can speed up the typing by holding down an action key.

    Adjustable speed settings would be nice, as well as maybe an option to print the text one line at a time rather than one word.

    (sorry if this is already possible... I didn't see any options related to it)

  • See GetToken and NumTokens in System Expressions. Shouldn't be too hard to figure out how to do it from that.

  • Okay, thank you.

  • Just posted something that might be of interest for you Caspis.

    http://www.scirra.com/phpBB3/viewtopic.php?f=16&t=1995

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The code I've been using is:

    1.System: 1Start of layout

    TextManipulatorSet string to TexttoDisplay 0 .Text

    2.displayText: 27 Text is TextManipulator 0 .GetString (case: No)

    displayTextSet text to TextManipulator 0 .GetLeft(displayText 1 .Value('currentdisplay'))

    displayTextAdd 1 to 'currentdisplay'

    //IE: Are the 2 strings not equal?

    3.Button: 18 On Button clicked

    TexttoDisplaySet text to "This is typing!"

    displayTextSet 'currentdisplay' to 0

    TextManipulatorSet string to TexttoDisplay 0 .Text

    --------

    This is the important part here:

    "TextManipulator.GetLeft(displayText.Value('currentdisplay'))"

    it uses 2 strings: 1 to hold the text, and the other to display it.

  • I was hoping that there was a better way to do it then what I found over the weekend...

    http://www.mediafire.com/?sharekey=705bbd0e250d4aa1d2db6fb9a8902bda

    I checked out the System Expressions section like Ashley suggested and the "Left" function sounded like what I wanted. It works... but its really tedious since it seems like you can input a number and only a number for the amount of characters that you want to have displayed.

    I was hoping that there was a way to tell it to do a series of numbers or something like that, but it looks like Pixelrebirth and ansmesnobody already have a better way of doing it. Sooo... never mind.

    -thanks!

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