Getting UID of unknown colliding object.

Get help using Construct 2

Post » Sat Feb 08, 2014 4:18 am

Is there a way to test for collision with an object bearing a particular UID, but could be any number of different objects? Say in one playthrough, a bullet might collide with your object. Another time a player might. A third time a fireball might, etc, etc, ad nauseum. What if you don't know (at the time of making the game) what might be colliding during run time, but want to get it's UID and check to see if that particular UID is still around several ticks later?
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Sat Feb 08, 2014 4:54 am

You can only test for the collision in the first place if you know what to test against, so the point is moot. If you want to abstract the object, you would use Families.
ImageImageImage
B
71
S
21
G
220
Posts: 3,646
Reputation: 123,721

Post » Sat Feb 08, 2014 6:57 am

@blackhornet So you can test for collision with an object that is a member of a family of objects? I have not looked at that feature yet. If that works, I owe you a thanks!
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Sat Feb 08, 2014 7:05 am

@blackhornet Read up on families, and they are EXACTLY what I need, and will continue to be tremendously usefull to me. So, THANKS!
B
11
S
4
G
1
Posts: 159
Reputation: 1,803


Return to How do I....?

Who is online

Users browsing this forum: RobertMKD and 7 guests