0 Favourites

Create all members of a family?

This forum is currently in read-only mode.
  • 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

  • A container perhaps?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
52 3,007
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
0 Favourites
Pick All / Create Bug
56 1,827
Prominent's avatar
Prominent
Unread hot topic
54 9,998
famekrafts's avatar
famekrafts