"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
34
S
14
G
4
Posts: 251
Reputation: 4,074

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
94
S
33
G
118
Posts: 5,395
Reputation: 75,851


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests