I have set repeat 10 times, but loopindex always return 0. How to get it's loop number?
Thanks.
You may be using the loopindex action in the wrong place. Also, If, I remember correctly, if you use several loops on the condition box (for each included), loopindex will always return the last one.
Develop games in your browser. Powerful, performant & highly capable.
if you have a nested loop just use loopindex("loopName")
Didn't know this one, thanks! :)
Thanks guys, it worked.
But when I add Wait in the beginning of loop like this : 0.5 * loopindex (as in https://www.scirra.com/tutorials/723/using-wait-in-loops), loopindex always return -1.
loopindexDon'tWaitIndex.capx