How do I slowdown a For Loop

Get help using Construct 2

Post » Thu Jun 05, 2014 3:26 am

Hi

I was wondering if there is a way to slowdown a for loop? I am printing a text to the screen ("append text function") which uses the "i" variable passed down by the for loop, but i would like each line to "wait" a little before appearing. Currently they just all appear instantly. I have tried adding a "System--Wait" function but it has not worked. Can anyone help me with this one?

Best regards,
B
6
S
2
Posts: 30
Reputation: 1,127

Post » Thu Jun 05, 2014 4:37 am

B
6
S
1
Posts: 16
Reputation: 432

Post » Thu Jun 05, 2014 4:40 am

B
21
S
5
G
3
Posts: 53
Reputation: 3,335

Post » Thu Jun 05, 2014 4:50 am

I found the following tutorial, by @Ashley, regarding the system wait action that might help solve this

https://www.scirra.com/tutorials/56/how ... ait-action
B
30
S
4
G
3
Posts: 67
Reputation: 2,329

Post » Sat Jun 07, 2014 4:53 pm

Thanks all for your replies, it still doesnt work how i mean to. I am using the loopindex x time solution and It does slow down each new line, but it always repeats the same text (which in reality dependes of the loopindex). Is a weird result.
B
6
S
2
Posts: 30
Reputation: 1,127

Post » Sat Jun 07, 2014 5:08 pm

That tutorial is really old. You should be using the Timer behaviour these days. It's far more robust.
ImageImageImage
B
71
S
21
G
232
Posts: 3,695
Reputation: 129,866


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dop2000, jorgmaquoi, kiki4construct and 27 guests