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
135
S
24
G
21
Posts: 513
Reputation: 24,961

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
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

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
135
S
24
G
21
Posts: 513
Reputation: 24,961


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, tarek2, Yahoo [Bot], yiuyiu6666 and 31 guests