Obtaining reference to sprite/object below another

Get help using Construct 2

Post » Fri Apr 26, 2013 5:42 am

Hi,
   How do I obtain reference to sprite/objects below another sprite/object ?

-Thanks
B
10
S
3
Posts: 69
Reputation: 1,590

Post » Fri Apr 26, 2013 6:56 am

Do you mean on click event, or perhaps detecting when two objects overlap? More information or example .capx would be nice to have :)

Most probable approach would be to use 'is overlapping' condition and compare Z orders of the objects. But like I said, more information about your situation would help.

B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Fri Apr 26, 2013 7:47 am

@vee41 Thanks, I need to find this out on Click event and also while the Object is being dragged over other object. So there are two situations in which overlapping needs to be checked. I don't have a capx right now.
B
10
S
3
Posts: 69
Reputation: 1,590

Post » Fri Apr 26, 2013 7:51 am

'is overlapping' condition checks whether Sprite A is overlapping Sprite B but I want to check which all Sprites is Sprite A overlapping.
B
10
S
3
Posts: 69
Reputation: 1,590


Return to How do I....?

Who is online

Users browsing this forum: imnotspecial, tomi71, totoe, Yahoo [Bot] and 10 guests