How do I best touch on overlapping?

Get help using Construct 2

Post » Tue Apr 26, 2016 11:50 pm

Hi,
ther is my capx.

http://
s000.tinyupload.com/index.php?file_id=28656479958788036397

i want to when touch on red sprite, it rotate but blue no, my point about overlapping sprite.

how i can fix that?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Wed Apr 27, 2016 6:11 am

any help?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Wed Apr 27, 2016 6:42 am

event 1 >> add one another condition on is touching Sprite 3 (Red) >> right click >> set invert
event 2 >> add one another condition on is touching Sprite (Blue) >> right click >> set invert

by this you have to click in outside overlapping area
only blue or only red
should not be one behind another
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Wed Apr 27, 2016 7:16 am

thanks, but what about this case ?

http://s000.tinyupload.com/index.php?fi ... 6868976634

the Red sprite is small and blue is big ! when touch red, not working. (sorry for my bad eng :)
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Wed Apr 27, 2016 7:28 am

Ok, thanks , your solution works with few change.
thank you
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Wed Apr 27, 2016 11:27 am

@mostafanastary see if this is Capx example is more helpful i used the pick top instance however works only if the object u click is from the same family or is the same object.
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Wed Apr 27, 2016 11:31 am

@gamecorpstudio it's great! thank you so much.
B
10
S
3
Posts: 180
Reputation: 1,212


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 56 guests