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
138
S
26
G
21
Posts: 520
Reputation: 25,267

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
94
S
33
G
113
Posts: 5,353
Reputation: 73,267

Post » Thu Feb 14, 2013 8:55 am

thx, this will help me a lot :D
B
138
S
26
G
21
Posts: 520
Reputation: 25,267


Return to How do I....?

Who is online

Users browsing this forum: sean080, Yahoo [Bot] and 8 guests