Touch individual object that overlap

Get help using Construct 2

Post » Sat May 11, 2013 1:52 pm

Hello
I need help

In Editor mode, i can touch individual object that overlap but when running, with one touch all objects that overlap are touched.

How to make only individual object that i touch are touched?

I'm making that the object i touch is destroyed. Currently when i touch one overlaping object, all of them are destroyed :(



what i want is, when i touch the top-most object, the object under it should not get destroyed.

Thanks for any replies :D
B
9
S
1
Posts: 13
Reputation: 532

Post » Sat May 11, 2013 2:33 pm

+touch | on object touched
+object| pick top most instance
> destroy object

the condition is near the bottom.. under Z order
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sat May 11, 2013 7:22 pm

thanks, i have done that and it works but only for multiple copies of one object.

so using the picture on 1st post, it only works if i stack multiple green bars.

I can destroy the green bars one by one. Unfortunately the blue circle under green bars also got destroyed in the same time.
B
9
S
1
Posts: 13
Reputation: 532

Post » Sat May 11, 2013 8:47 pm

ah right,
in that case, you can put all the touch-destroyable objects in a family and then just redo the events for the family so its just..

touch|on family touched
family|pick top most instance
>destroy family
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun May 12, 2013 4:21 am

wow keepee it WORKS :D

thanks a lot

B
9
S
1
Posts: 13
Reputation: 532


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests