Typewriter text effect?

Get help using Construct 2

Post » Thu Nov 08, 2012 11:48 am

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.

.................................
brianrey2012-11-21 07:00:39
B
2
Posts: 2
Reputation: 354

Post » Fri Dec 14, 2012 6:08 am

This is really amazing. I just loved it. Where did you find this?
______________________
brianrey2012-12-14 06:10:22
B
2
Posts: 2
Reputation: 354

Post » Mon Aug 11, 2014 12:27 pm

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?
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Fri Oct 31, 2014 9:04 pm

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.
B
13
S
3
G
1
Posts: 12
Reputation: 1,705

Post » Wed Jan 07, 2015 6:19 pm

alspal wrote: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.
B
9
S
2
Posts: 15
Reputation: 625

Post » Wed Jan 07, 2015 6:43 pm

I once made an example for that, look it up here : viewtopic.php?f=147&t=112520

You basically have the pre-measure the text, and add a linebreak before words that get wrapped.
B
45
S
16
G
18
Posts: 845
Reputation: 13,673

Post » Thu Jan 08, 2015 2:10 pm

@Magistross

thx, it's exactly what i needed ! Save me a lot of time :)
B
9
S
2
Posts: 15
Reputation: 625

Post » Thu May 14, 2015 3:47 pm

@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:
Code: Select all
left(text1.Text, len(DestText.Text) + 1)

I have text1, text2, text3... text50 and I need the above code to choose one of the 50 randomly. I tried
Code: Select all
left(text(random(50).Text, len(DestText.Text) + 1)
but it errors.
I'd appreciate any help!

Thanks!
Image
B
11
S
2
G
1
Posts: 40
Reputation: 746

Post » Thu May 14, 2015 5:27 pm

Put them in a family and put the expression in a "pick random" event.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Fri May 15, 2015 4:15 am

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,
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!
Image
B
11
S
2
G
1
Posts: 40
Reputation: 746

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests