Typewriter text effect?

0 favourites
From the Asset Store
Keyboard, Mouse & Typewriter SFX / 27 Unique Sound Clips
  • One question.

    Since there is nothing comparing if the source text has ended, won't it use unnecessary cpu resource?

  • I don't think it'll be a problem..If it is, just add "trigger once", or maybe have it set an object variable so you can use that instead.

  • Hmm, this is getting there. One more issue has cropped up though.

    If you try using the same destination text box (DestText) more than once, the text gets displayed immediately instead of being typed out. Most likely because you haven't told the count to reset, so it stays at whatever value it ended at.

    How do you reset the value of "len(DestText.text)" though.

  • Set DestText.text to ""

  • <img src="smileys/smiley26.gif" border="0" align="middle" />

    Thanks lol

  • I have never tried this ever. is it really possible?I will try it myself and then only i will able to tell you about it.

    .................................

  • This is really amazing. I just loved it. Where did you find this?

    ______________________

  • What is the most efficient way to make it so that when it's typing a long word near the end of line it doesn't shift down to a new line if it gets too long?

  • Is there an updated version of the typewriter effect? When I download it from the link and try to open it, it doesn't work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is the most efficient way to make it so that when it's typing a long word near the end of line it doesn't shift down to a new line if it gets too long?

    If you found the answer I'll be very happy to ear it !

    I still to figure this out but otherwise the Ashley method is great.

  • I once made an example for that, look it up here :

    You basically have the pre-measure the text, and add a linebreak before words that get wrapped.

  • Magistross

    thx, it's exactly what i needed ! Save me a lot of time

  • Ashley

    Love the simple code for typewriter effect. I have one request that I can't figure out with my limited code knowledge.

    How can I add the random function to this code:

    left(text1.Text, len(DestText.Text) + 1)[/code:1ui5m44i]
    I have text1, text2, text3... text50 and I need the above code to choose one of the 50 randomly. I tried [code:1ui5m44i]left(text(random(50).Text, len(DestText.Text) + 1)[/code:1ui5m44i] but it errors.
    I'd appreciate any help!
    
    Thanks!
  • Put them in a family and put the expression in a "pick random" event.

  • I'm still missing something ASHLEY. I put the (4) text choices in a family and added the family to your expression. I hoped it would choose a random family member like it does when you use family in create. Unfortunately, nope - it just kept using the first text in the family.

    I guess I don't understand your suggestion, [quote:1iigc0rf]put the expression in a "pick random" event

    The endgame is a random answer generator that uses the typewriter effect

    I've included the C2 file if my description isn't clear.http://www.danielwheeler.net/SB/random_text.zip

    Thanks!

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