"Repeat" get current index?

For questions about using Classic.

Post » Mon Aug 01, 2011 8:01 pm

Is it possible to get the loopindex from a Repeat action?

I tried

Repeat 3 times
Set Text.Text to Text.Text&Str(LoopIndex) (Text.Text starts at "0")

and I get 0-1-1-1

so,

0
then -1
again -1
again -1

Shouldn't it be 0-1-2-3?

How can I do this?
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Mon Aug 01, 2011 8:33 pm

Use a for loop if you want to get loopindex, repeat does not give you loopindex.
B
83
S
27
G
69
Posts: 4,902
Reputation: 48,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests