How do I make a descending FOR?

Get help using Construct 2

Post » Tue Apr 29, 2014 1:11 am

In the manual says that if the variable to iterate is bigger than the limit (ex: for(var i = 10; i > 0; i--)) The FOR wouldn't run. I need to do a descending FOR just like the written on the example. What is the way to do it on Construct 2?
B
6
Posts: 18
Reputation: 592

Post » Tue Apr 29, 2014 1:20 am

like this?
You do not have the required permissions to view the files attached to this post.
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Tue Apr 29, 2014 1:29 am

Mmmh exactly WHERE? I see no FOR there.
B
6
Posts: 18
Reputation: 592

Post » Tue Apr 29, 2014 1:32 am

FOR will figure out that it needs to descend instead of ascend, based on the start/end values.
ImageImageImage
B
71
S
21
G
230
Posts: 3,687
Reputation: 128,845

Post » Tue Apr 29, 2014 1:46 am

DarkSlash wrote:Mmmh exactly WHERE? I see no FOR there.

okok

====worker:100====
for
&
var worker >0

>>>then>>>

worker-1
B
17
S
7
Posts: 360
Reputation: 2,202


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MikaelS, nahima and 22 guests