How do I - Loopindex - What is it good for?

Just started using Construct 2? Post your questions here

Post » Mon Aug 17, 2015 12:30 am

From the manual

"loopindex
Get the index (number of repeats so far) in any currently running loop."

My question is... would someone explain this to me in layman's terms? - I understand that, you can use it to 'fix' wait loops as explained here
- https://www.scirra.com/tutorials/723/us ... t-in-loops - But I can't wrap my mind around other ways to use it, and I'm hoping I'm not making things more difficult for myself if I should use loopindex in some places.

I saw it referenced in this thread about infinite spawn enemies - viewtopic.php?f=147&t=151820&p=960011&hilit=Disable+group#p960011

And I was wondering what other ways could you apply this?
B
6
S
2
Posts: 60
Reputation: 1,242

Post » Mon Aug 17, 2015 10:00 am

ImageImage
B
115
S
51
G
24
Posts: 790
Reputation: 23,505


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest