How do I pick one specific object on a collision

For questions about using Classic.

Post » Wed Jul 20, 2011 1:22 am

I am testing if two objects of the same container collide, but I wish to pick one of them specifically. For instance:

Block: overlaps Block : offset (16, 0)

In this event, I wish to set a private variable of Block in terms of the ID of Block.

Any suggestions?

solid2011-07-20 01:24:29
B
2
G
1
Posts: 7
Reputation: 464

Post » Wed Jul 20, 2011 2:07 am

put them in a family
let's say green

block overlaps green
---block - do this
---green - do that
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Jul 20, 2011 2:32 am

thanks a lot.
B
2
G
1
Posts: 7
Reputation: 464


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests