[Solved] Pin an Object to Another Instance of Itself

Get help using Construct 2

Post » Sat Dec 10, 2016 4:10 pm

I want to build polygons from lines, which are sprites.
I would like the lines to pin to one another, so that the polygons can be moved as units.
Any suggestions? I'm trying using families but having no success.
Last edited by mrtumbles on Sat Dec 10, 2016 9:12 pm, edited 1 time in total.
<iframe frameborder="0" src="https://itch.io/embed/146124?linkback=true&dark=true" width="552" height="167"></iframe>
B
26
S
7
Posts: 254
Reputation: 2,389

Post » Sat Dec 10, 2016 5:02 pm

Families is the way to do it. Pick one object as the Family object and the other as the Sprite.
ImageImageImage
B
72
S
22
G
288
Posts: 3,862
Reputation: 158,460

Post » Sat Dec 10, 2016 5:13 pm

Image

This is what I'm doing. Any suggestions?
<iframe frameborder="0" src="https://itch.io/embed/146124?linkback=true&dark=true" width="552" height="167"></iframe>
B
26
S
7
Posts: 254
Reputation: 2,389

Post » Sat Dec 10, 2016 6:07 pm

Can you post a CAPX?
ImageImageImage
B
72
S
22
G
288
Posts: 3,862
Reputation: 158,460

Post » Sat Dec 10, 2016 9:12 pm

Fixed - those events work - but not in the same event that creates the Line sprite objects! D'oh.
<iframe frameborder="0" src="https://itch.io/embed/146124?linkback=true&dark=true" width="552" height="167"></iframe>
B
26
S
7
Posts: 254
Reputation: 2,389


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests