How do I destroy an image behind another image

Get help using Construct 2

Post » Sat Nov 15, 2014 11:08 pm

How do I destroy an image object which is behind another image object and without using
the name of this image object ?

For example, I have an image of a RifleSight object and behind it I have an image of a victim.
When I touch the Fire button I want the image of the victim to be destroyed but without referring the name
of the victim image (since the victim image may change dynamically).
Is there a way to refer somehow to the layer behind the RifleSight object or maybe the Z position ?
Thanks in advance.
B
5
S
1
Posts: 22
Reputation: 417

Post » Sat Nov 15, 2014 11:17 pm

How about putting all of the victims in a family?
B
72
S
27
G
17
Posts: 254
Reputation: 14,971

Post » Sat Nov 15, 2014 11:44 pm

Wowww thank you, it was very quick, works like a charm :)
B
5
S
1
Posts: 22
Reputation: 417


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests