"Pairing" two instances of an object

Get help using Construct 2

Post » Sun Dec 29, 2013 9:42 pm

I want to be able to "pair" two separate objects, when there are several of each object.

For example: I want a green square to set it's position to a red square every tick, but there are multiple red and green squares. Each red and green square needs a partner.
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Mon Dec 30, 2013 5:18 pm

DualInstancePinning.capx

This was actually a bit harder than I expected (pinning two instances of the same object together), but if you use the Pin behaviour and an invisible helper sprite, it can be done quite easily.

If the two objects are actually different objects, just Pin one to the other.blackhornet2013-12-30 17:20:28
ImageImageImage
B
71
S
22
G
248
Posts: 3,759
Reputation: 138,069

Post » Mon Dec 30, 2013 9:07 pm

might also be worth looking at containers
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892


Return to How do I....?

Who is online

Users browsing this forum: dop2000, TheCrazyPrince, Yahoo [Bot] and 20 guests