Pick objects from collision

Get help using Construct 2

Post » Wed Apr 08, 2015 9:30 pm

Is there a reliable way to pick the object (instance) that collided with another object (instance) of the same or different type?

It seems sub events will pick the object which was hit by the first object. I would like a reliable way to pick the object that initiated the collision, which in this case would be a member of Staff_Sec
Image

Obviously the second sub event doesn't work.

So here I'd like a way to pick the Staff_Sec instance that collided. Might be worth mentioning that this family also shares sprites with the family NPCS
B
10
S
2
Posts: 80
Reputation: 995

Post » Thu Apr 23, 2015 1:19 am

Give the object an Instance variable of Boolean called "Has_Collsion". Create a condition that sais to change the variable to true on collision.
Add another condition that Staff_Secuity is "Has_Collision" is True
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 23 guests