How do I assign an action to a copied object ?

Get help using Construct 2

Post » Thu Jul 14, 2016 1:32 pm

Hi there,
Is it possible to control a cloned object ( Ctrl + C / Ctrl + V ) with the event sheet ?
Both the original and the clone share the same name but not the same UID, unfortunatly , Construct 2 doesn't have the option to choose an object by its UID. So is there a workaround for this ?


Explanation : If you make a copy of an object, lets say ObjectA, and assign an action to it, ObjectB receives it as well.
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,994

Post » Thu Jul 14, 2016 1:43 pm

That's not a Clone , that is another Instance of the same object. If you right-click the object, you can pick Clone. It will still have the same behaviours, but is independent of the first. You could remove any behaviours you don't want.

You can pick by UID, the event is on the Sprite itself.
ImageImageImage
B
71
S
21
G
233
Posts: 3,696
Reputation: 130,368

Post » Thu Jul 14, 2016 2:02 pm

Yes I mean't another instance of the same object, I'm dealing with a multitude of objects attached with joints, a vehicle that I need to make copies of, and control each vehicle separately.

Image


Image



It would be a lot easier if I could pick them using their UID.


Another question: Is it allowed to modify a 3rd party behaviour file ?
Last edited by X3M on Thu Jul 14, 2016 2:09 pm, edited 1 time in total.
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,994

Post » Thu Jul 14, 2016 2:04 pm

You can: Sprite.Pick by unique ID

Edit: you can use a Container to link objects together (pick together).
ImageImageImage
B
71
S
21
G
233
Posts: 3,696
Reputation: 130,368

Post » Thu Jul 14, 2016 2:12 pm

Oh now I understand, THANKS SO MUCH MAN I APPRECIATE THE HELP !!!

Image
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,994


Return to How do I....?

Who is online

Users browsing this forum: Bootfit and 17 guests