Picking x closest instances

Get help using Construct 2

Post » Sat May 26, 2012 2:42 pm

Hello all,

I understand how to pick the closest instance using events, but is there a way to pick, say, the 6 closest instances?

Thanks for any help!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Sat May 26, 2012 3:43 pm

Last edited by Yann on Sun Sep 14, 2014 8:27 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat May 26, 2012 4:23 pm

Thanks for the response, I will try it out later when I am out of work. Thanks again!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Mon May 28, 2012 2:18 am

I tried it out and it works perfectly. Thank you for the example and help!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Mon May 28, 2012 2:40 am

Oh, I have one more question, if you'd be so kind to indulge. How would I change the expression if I wanted it to pick the 6 closest that were off screen?
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Mon May 28, 2012 3:02 am

That's pretty simple, try understanding what I wrote and you'll just have to add the proper condition at the proper place (:
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon May 28, 2012 3:54 am

Oh, I see. I didn't understand how to invert things, but I suppose if I invert the "is on screen" command, that should do the trick I would suspect!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Mon May 28, 2012 4:03 am

probably (: you spoke in past tense but just in case to invert it's right click on the condition > invert
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, Laurent, makkancs and 26 guests