how to do an inverted loop? do ( i-- ) Not ( i++ )

Get help using Construct 2

Post » Wed Feb 13, 2013 7:07 pm

Hi ppl, well I have a small doubt, I needed to create a "for" loop, but I wish it were reversed, how can I do it?

example:
for "y1"
y1=Array.Height => y1=Array.Height-5 == --y
B
123
S
19
G
16
Posts: 487
Reputation: 21,498

Post » Wed Feb 13, 2013 7:42 pm

Instead of "for" use "repeat 6 times" and instead of loopindex use:
Array.Height-loopindexR0J0hound2013-02-13 19:43:31
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Thu Feb 14, 2013 8:55 am

thx, this will help me a lot :D
B
123
S
19
G
16
Posts: 487
Reputation: 21,498


Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, Colorfish, Waltuo and 4 guests