How do I Limit touch events to just the first object

Get help using Construct 2

Post » Tue May 23, 2017 1:58 am

Ok, so I have all of my touch events working properly on their own. However, if my objects happen to be on top of each other when I touch them, it fires the touch event for all of the objects. I have utilized layers and z-index to get all of my objects in the order I want them in. Now I'm wondering if there is any way I can make the touch event only fire for the object that is on top, and not fire for any of the objects 'below' it.

Any tips?
B
5
Posts: 4
Reputation: 233

Post » Tue May 23, 2017 3:52 am

Try using this:

Image
B
7
S
1
G
2
Posts: 17
Reputation: 1,401

Post » Fri Jun 02, 2017 12:45 am

Ah! Thanks! I never would have though of that.
B
5
Posts: 4
Reputation: 233


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, jorgmaquoi and 66 guests