How do I PIN according to UID

Get help using Construct 2

Post » Sun May 11, 2014 1:12 pm

Hello,
how can i PIN different instances of the same object by their UID?
Tnanks!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun May 11, 2014 3:55 pm

Can you be more specific? You want to pin the instances onto what? Like having a missile that has a smoke tail pined onto it and when that particular missile gets destroyed the specific tail has to be destroyed also?
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Sun May 11, 2014 5:15 pm

well eg. i have 1 object called X
and i have 4 instances of X
2 on layer0 and
2 on layer1

i want pin 1st from layer0 to 3rd on layer1
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun May 11, 2014 5:30 pm

You need to use Families so you can pick the two objects, one as the base object, the other from the family.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sun May 11, 2014 5:50 pm

ah, so... ill try that.
tnx!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun May 11, 2014 5:59 pm

Following @blackhornet 's instructions I made this example. I think that this is what blackhornet meant and it works in the way you describe.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Mon May 12, 2014 7:22 am

@eli0s
Thank you for this example... i would never thought of that!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon May 12, 2014 12:01 pm

It was a bit of trial and error, but I had confidence that somehow it should work since blackhornet suggested this way.
Anyway, you are welcome! ;)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Tue May 13, 2014 5:23 pm

Can anyone help me with this? I have multiple enemies and they are the same object but when one dies they all die? how do i get them to die one by one?
B
16
S
2
Posts: 34
Reputation: 914

Post » Tue May 13, 2014 8:19 pm

What method you use to kill them? Can you post your capx? (Although that's a different topic)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Euduardo, Kin, mikehive, ratboy3, tinhofiel and 36 guests