How do I pin two objects to each other

Get help using Construct 2

Post » Wed Jul 16, 2014 8:52 pm

I would like to pin two objects together so when I move either one the other also moves.

So far I have tried simply pinning the two objects to each other. This results in me only being able to move one of the objects.

I have also tried detecting the touch event, unpinning both objects and then pinning the object I haven't touched to the touched one. Under debug this seems to have correctly pinned the objects, but when I move one the other stays still.

I'm sure this is very simple, but I just can't spot how to do it.

Any help welcome.
B
3
Posts: 5
Reputation: 710

Post » Wed Jul 16, 2014 8:59 pm

Scratch that worked it out 1 min after this post. I don't know what I was doing wrong before, but this worked :

Detecting the touch event, unpinning both objects and then pinning the object I haven't touched to the touched one.

Still if there is a neater way of doing this then let me know :)
B
3
Posts: 5
Reputation: 710

Post » Wed Jul 16, 2014 9:04 pm

Hi ,

you can also do it with variables. ;)
Hire or Offer a project

Portfolio

Scirra new Shop
B
34
S
5
G
1
Posts: 118
Reputation: 2,663


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima and 8 guests