How do I find the object colliding when in a family?

Get help using Construct 2

Post » Thu Apr 28, 2016 10:33 am

How do I find which object is the one that collided with another object, when there's multiple objects in the family?
B
18
S
6
Posts: 137
Reputation: 1,641

Post » Thu Apr 28, 2016 11:13 am

You can simply check for individual object type instead of check for collision using family.

If my understanding is correct, are you looking for some sort of way to identify the type of object (like using "instanceof" in Java) in family collision when such collision occur?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 6 guests