Object grouping

Discussion and feedback on Construct 2

Post » Mon Jul 04, 2011 4:06 pm

Hi, I'm pretty new to Construct and Construct 2, but I've used MMF and the likes heavily in the past years. Construct 2 got me interested with its HTML 5 exporter, it's simply amazing !

Now, I don't know if this existed in Construct or even if it exists now in Construct 2, but it sure did in MMF / TGF. Object grouping (Or Sprite grouping) would be a godsend for the little project I'm on right now. I have a lot of different sprites that I want to share the same set of events.

I could create a pseudo-grouping by joining an invisible sprite under each of my other ones and have the events only affect those invisible. It adds a bit of overhead in coding, but it's still much less than replicating events 10+ times.
B
54
S
21
G
20
Posts: 870
Reputation: 15,448

Post » Mon Jul 04, 2011 4:11 pm

In Construct Classic they are Families. In example you can put 10 different sprites in one family called "enemy" and then in events set something like "if bulet hit family -> enemy destroy family enemy"
Only objects in enemy family which was hit by bullet will be destroyed - rest will remian the same.
Is that what you after?shinkan2011-07-04 16:20:04
ImageImageImageImage
B
147
S
58
G
38
Posts: 2,557
Reputation: 32,526

Post » Mon Jul 04, 2011 4:11 pm

It's only in classic (at the moment), and the feature is called called families.

edit: ninja'd by shinkanDavioware2011-07-04 16:12:41
B
26
S
3
G
6
Posts: 1,199
Reputation: 5,649

Post » Mon Jul 04, 2011 4:19 pm

Thanks to both of you anyway .

I guess it's on the TO-DO list then... but how high up on that list ?
B
54
S
21
G
20
Posts: 870
Reputation: 15,448

Post » Mon Jul 04, 2011 4:20 pm

If you hang on a month or two, we should have families in C2 by then.
Scirra Founder
B
367
S
217
G
82
Posts: 23,262
Reputation: 183,679

Post » Mon Jul 04, 2011 4:23 pm

Cool, I'll go ahead and implement my little hack of a workaround. Good thing is that with the same method I'll be able to create simple animations !
B
54
S
21
G
20
Posts: 870
Reputation: 15,448


Return to Construct 2 General

Who is online

Users browsing this forum: tomi71 and 1 guest