How do I pick overlapping items

Get help using Construct 2

Post » Tue Jul 14, 2015 9:51 am

Hi, community.

For quite a long time i have an unsolved problem: picking one of the overlapping objects.

Image

In this project i have 5 cards "in hand". The problem is when i pick any card that has another card "under" it the bottom card pops instead of the top one.
I've tried "pick nearest" and that help with less overlapping items, but in this game it's not the way to go.

Any suggestion or examples? I hope community have simple and nice decision. :)
B
8
S
2
Posts: 56
Reputation: 1,021

Post » Tue Jul 14, 2015 10:35 am

Just to clarify: there is only Touch, no mouse, so i have no "Cursor is over...".
B
8
S
2
Posts: 56
Reputation: 1,021

Post » Tue Jul 14, 2015 10:37 am

try adding the second condition:

card | pick top instance

it is at the bottom of the conditions list, after you pick the card object. Called "pick top/bottom"
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Jul 14, 2015 10:50 am

Live and learn, live and learn... Never noticed this condition.
Thanks a lot!
B
8
S
2
Posts: 56
Reputation: 1,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests