Typewriter text effect?

Get help using Construct 2

Post » Mon Jul 02, 2012 9:38 pm

(Another hijack) Is there any way to have a blinking cursor at the end of this effect?
B
13
S
5
G
1
Posts: 23
Reputation: 3,170

Post » Thu Sep 27, 2012 11:34 pm

Big bump!

Sorry, just had a question about Ashley's one event version.

How exactly can I tell it to stop and do something after all of the text has been displayed? RIght now, since it types a letter every 0.05 seconds, anything I try to do after it will also repeat every 0.05 seconds.
B
3
G
1
Posts: 8
Reputation: 591

Post » Fri Sep 28, 2012 11:52 pm

Basically, what I would like to happen is that once all the lines of text have been displayed, for something else to happen. Anything, a click 2 continue indicator, a new text box...the game exploding. Whatever, just need to be able to tell how the text has finished typing out.
B
3
G
1
Posts: 8
Reputation: 591

Post » Sat Sep 29, 2012 12:04 am

Just use "Compare Two Values".

+len(DestText.text) is greater or equal to len(SourceText.text)
-> Display an arrow for the next message or something
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sat Sep 29, 2012 12:57 am

Argh!

I really need to learn more about expressions. Thanks so much for the help, works beautifully.
B
3
G
1
Posts: 8
Reputation: 591

Post » Mon Oct 01, 2012 12:15 am

One question.
Since there is nothing comparing if the source text has ended, won't it use unnecessary cpu resource?jogosgratispro2012-10-01 00:17:33
B
85
S
31
G
23
Posts: 384
Reputation: 19,092

Post » Mon Oct 01, 2012 12:32 am

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.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Oct 01, 2012 11:37 am

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.
B
13
S
6
G
5
Posts: 74
Reputation: 3,991

Post » Mon Oct 01, 2012 3:32 pm

Set DestText.text to ""
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Oct 01, 2012 4:50 pm



Thanks lol
B
13
S
6
G
5
Posts: 74
Reputation: 3,991

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Lancifer and 28 guests