Touch - how to trigger only 1 object

Discussion and feedback on Construct 2

Post » Sun Oct 28, 2012 7:13 pm

if i have a few objects superimposed near each other, how can i only trigger the top object and not also trigger the other objects superimposed behind?bjadams2012-10-28 19:13:52
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Oct 29, 2012 12:08 am

Add a condition, select the object, scroll right to the bottom of the list of conditions til you see "Z Order" then choose "Pick top/bottom"
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Mon Oct 29, 2012 7:12 am

Pick top/bottom will pick the uppermost or lowermost instance of the same object. if you have different objects (not instances of each other) this will have no effect at all
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Oct 29, 2012 7:13 am

what i think i need is some kind of "clear touch" option to apply once the first touch is triggered, so that the other touch conditions are skipped
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Oct 29, 2012 11:19 am

You need to combine the two events !
On Touch "0" ( First Touch )
-- Pick top
=== " Your Action Here "
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans and 12 guests