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
64
S
27
G
24
Posts: 959
Reputation: 18,478

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
156
S
64
G
41
Posts: 2,589
Reputation: 34,613

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
41
S
8
G
9
Posts: 1,219
Reputation: 8,064

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
64
S
27
G
24
Posts: 959
Reputation: 18,478

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
386
S
229
G
87
Posts: 24,207
Reputation: 191,592

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
64
S
27
G
24
Posts: 959
Reputation: 18,478


Return to Construct 2 General

Who is online

Users browsing this forum: Tokinsom and 3 guests