"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
79
S
24
G
54
Posts: 4,753
Reputation: 40,769


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests