"If Block on collision with Block" - which one is fired?

Get help using Construct 2

Post » Wed Aug 17, 2016 10:09 pm

plinkie, looks like a valid situation: an player collides with one of several types of players, and I want the 1st (or 2nd) player to be destroyed.

Actually, for my game, I've change the gameplay a bit, so I don't need it as of now, but it's interesting how that can be achievable.
B
17
S
7
G
1
Posts: 157
Reputation: 1,878

Post » Wed Aug 17, 2016 10:20 pm

Make sure all the players are in one family and it's good to go :D
B
45
S
15
G
73
Posts: 2,000
Reputation: 43,382

Post » Wed Aug 17, 2016 10:27 pm

They are in the same family, but I wanted to check a single object type in that family to all others.
B
17
S
7
G
1
Posts: 157
Reputation: 1,878

Post » Thu Aug 18, 2016 8:39 am

A bit confused with the example. If the family is gonna contain different sprites (objects), then 'is sprite over overlapping family' is a bit weird (in my eyes). If the family gonna contain instances of the same sprite, then use 'is sprite overlapping sprite'. Pick nth will work flawless, pickedcount will work flawless also.

In the other case, if the family gonna contain different sprites, then make a second family. And use 'is family1 overlapping family2'. This works if both familys contain exactly the same objects. Only under those circumstances IID will make some sense. Pick nth will work flawless, pickedcount will work flawless also.

I never uses 'is family1 overlapping family1'. You might try.

The solution is in the link i suggested you to read, btw.
B
33
S
18
G
27
Posts: 2,430
Reputation: 20,324

Previous

Return to How do I....?

Who is online

Users browsing this forum: Twili, Yahoo [Bot] and 1 guest