How do I make a typewriter effect?

Get help using Construct 2

Post » Tue Nov 24, 2015 11:43 pm

Hello friends. I'm coding a system for a platform game that includes a typewriter effect and I'm having problems doing it.

Basically, I've done a function which asks for the text and then sends this text with the effect to a new string.

On Function "typewriter"it sets a variable called Char_count = 0 to reset any previous text.
Then, as a sub-event, a while loop jumps in and keeps repeating while char_count < len(function.Param(0))+1

In the actions:
- it sets the text of the string object to "left(Function.Param(0), String.Char_count)"
- I also put an wait 1.0 second there just for test purposes but it seens the loop ignores it.
Finally it adds +1 to String.Char_count

This makes the loop start and finish nicelly, with just one problem: It is so fast that the string just pops.
How can I correct this behavior?

Link to the capx (r216)

BTW, this will be my first game, what store/site do you recommend? I looked around and Newgrounds and are the best I've seen so far. Newgrounds for the community, and for the tightly integrated analytics system AND the community.
Posts: 26
Reputation: 1,477

Post » Wed Nov 25, 2015 12:09 am

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: OddConfection, urkokan and 12 guests