Select some objects depending on objects variable value

Discussion and feedback on Construct 2

Post » Tue Jun 17, 2014 12:48 pm

Is it possible to select x from y objects depending on objects variable value.

For example:
There is 1000 objects. All of them have variable takeMe.
I'd like to select 50 of them and only those where takeMe="yes".
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Tue Jun 17, 2014 12:57 pm

System:Pick by comparison
ImageImageImage
B
71
S
22
G
257
Posts: 3,788
Reputation: 142,692

Post » Tue Jun 17, 2014 1:21 pm

But how to limit that "pick by comparision" to 50?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Tue Jun 17, 2014 2:00 pm

Use a system for loop, 1-50

For "whatever" 1 to 50 --->
-Pick object where object.takeMe ="yes" ---->
B
12
S
2
G
1
Posts: 26
Reputation: 835

Post » Tue Jun 17, 2014 4:32 pm

But wouldn't this select sometimes the same objects?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests