Lets say I want to do this:
> for(var i = 0; i < 10; i++)
{
print(i);
}
[/code:2nj1nczk]
How do I do it on Construct2? I need the I in the ACTION side to set object positions!
The way to do it is I think to do a for loop condition, and using the loopindex expression in the action.
"loopindex
Get the index (number of repeats so far) in any currently running loop.
loopindex(name)
Get the index (number of repeats so far) of the loop with the given name. Useful for getting indices in nested loops."