How do i make sure i click the top-most sprite

Get help using Construct 2

Post » Wed Nov 07, 2012 9:29 pm

Hello,

Im trying to make a jigsaw puzzle game.
My problem, when 2 pieces are overlapping i want to click only the piece on top.

I dont get what's happening, if you take a look at the capx.
I setup the events so only the top piece should be clicked, but sometimes it just selects the middle one, sometimes the bottom one.

Please try a few clicks for yourself, just keep overlapping the pieces and try to find the logic behind it :)

I'm clearly doing something wrong, but i need some help finding what



https://dl.dropbox.com/u/62893304/clickandpick.capx
B
2
Posts: 2
Reputation: 304

Post » Wed Nov 07, 2012 10:01 pm

really blue/green/red should all be the same object (piece) and then you can do

+on left button clicked on piece
+pick top instance



but if you do need them to be different objects you can put them all in a family and do the same.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Wed Nov 07, 2012 11:21 pm

Thanks alot keepee,

That worked :)


https://dl.dropbox.com/u/62893304/clickandpicksolution.capx
B
2
Posts: 2
Reputation: 304


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, signupdemo and 0 guests