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
45
S
16
G
18
Posts: 845
Reputation: 13,673

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

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
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

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
45
S
16
G
18
Posts: 845
Reputation: 13,673

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

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
45
S
16
G
18
Posts: 845
Reputation: 13,673


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests