Get instances at "condition:is overlapping"

Get help using Construct 2

Post » Sun May 06, 2012 2:57 pm

Capx:
http://dl.dropbox.com/u/5779181/get_overlap_insts.capx

There are two pairs of overlapping instances.
- "Condition: On collision" could pick them correctly.
- "Condition: Is overlapping" only pick the first pair.

How to get all pairs at "Condition: Is overlapping"?

Edit:
C2 version: r88rexrainbow2012-05-06 15:00:18
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Sun May 06, 2012 3:05 pm

Try for each as a sub event, using the overlap as a filter.
http://dl.dropbox.com/u/666516/foreachoverlap.capx
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Post » Sun May 06, 2012 3:31 pm

@newt

Thanks.

It picks all overlapped instances into SOL. -- There are 4 instances.
After "condition: for each", it will pick each "one" instances.
So I could not use "condition: pick nth" to pick these "pair".
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Sun May 06, 2012 3:41 pm

@newt

Uh, never mind. Just a testing to pick the overlapping/collision pairs.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821


Return to How do I....?

Who is online

Users browsing this forum: Aergo, anty21ro, Fenix18, Iftikhar555, oosyrag, radhaw, TeslaPC and 9 guests