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
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
131
S
22
G
21
Posts: 510
Reputation: 24,649

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
89
S
30
G
95
Posts: 5,160
Reputation: 63,456

Post » Thu Feb 14, 2013 8:55 am

thx, this will help me a lot :D
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
131
S
22
G
21
Posts: 510
Reputation: 24,649


Return to How do I....?

Who is online

Users browsing this forum: plinkie, randomly and 4 guests