I'm having trouble understanding the for loop logic in Construct. I've looked at the manual, tutorials, other forum posts, other .capx and I'm still confused.
The way I understand it is you make a for loop give it a starting number and a ending number once the loop runs it increments the index and once the number reaches the end point the for loop should stop. But it never stops it just runs forever.
The only way I've been able to get it to stop is to run it as a sub event under a compare two values event where I compare the index is less than a set number. But if I have to do that I don't understand the purpose of the beginning and end numbers in the for loop. If I'm having to run an outside comparison to tell it to step.
The ORIGINAL block of code is setup how I think it should work.
The FIXED block of code is the only way I've been able to get it to work.
Does it have to be nested in a trigger once event like on Start of Layout?