How do I this (Advanced Families)

Get help using Construct 2

Post » Sat Oct 18, 2014 11:40 pm

Ok I have a specific problem with families. I have a Family test and into it there is a Sprite
Image
So I have also a variable for all objects from family,
Image

basic and easy, no? Then I create 3 instances from that family , in 2 instances I set 0 in its variable and the third I set a 1
Image

So far so good. The problem is complicated here, I need to when collides family test with family test
Image

Only are destroyed the instances, for example:
test.Variable=1 with test.Variable=0, they are destroyed
test.Variable=0 with test.Variable=1, they are destroyed
but other hand if
test.Variable=0 with test.Variable=0, they are not destroyed

I have tried many things, but I don't sure if that is possible

Thanks in advance
B
14
S
4
G
2
Posts: 109
Reputation: 2,679

Post » Sat Oct 18, 2014 11:58 pm

The trick here is always to test against different objects. Either test Family against Sprite, or make a second duplicate family to test against.
ImageImageImage
B
71
S
22
G
248
Posts: 3,761
Reputation: 138,073

Post » Sun Oct 19, 2014 12:17 am

Yea @blackhornet and thanks for reply, that is my second option, but that doubt arose. I think that should be possible, ie, I can getting the IID for instance but I cant compare at same time 2 instances from same sprite when collides.

Anyway thanks
B
14
S
4
G
2
Posts: 109
Reputation: 2,679


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests