Create all members of a family?

For questions about using Classic.

Post » Sat Jan 16, 2010 8:03 am

Based on my forum searches as well as on my own experience, when you use System: Create Object on a family it picks a random member. Is there a way to tell construct to spawn each member of a family in an elegant way?

In case it helps, here's what I'm trying to do:
I have different groups of sprites that each represent various segments of characters. At runtime I want to spawn and attach these groups of sprites to npc characters and even switch between them to create combinations.

So far the cleanest way seems to be with families since I can do the attaching of all members in a single action, but spawning them is a different matter. If anyone has a smarter way I'd appreciate the help :)
B
3
S
1
G
4
Posts: 42
Reputation: 1,609

Post » Sat Jan 16, 2010 1:17 pm

A container perhaps?
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun Jan 17, 2010 3:24 am

Thanks for the reply.

I've found that containers work great when you have one group of objects associated with one character. The problem I have now is that I have multiple characters and multiple groups of objects that I want to mix-and-match in different conbinations, so containers don't work. Unless I'm missing something about how they work.
B
3
S
1
G
4
Posts: 42
Reputation: 1,609


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests