How do I select each object in a family with a loop?

0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I'm trying to create a menu at the top of the screen with objects that already exist in a family. Is there a way to create one of each object in a family? Here's the event that has me stumped.

    [attachment=0:2tidsruw][/attachment:2tidsruw]

    Any insight or suggestions would be awesome!

  • You cant do that, you have to create each of them individually or use a plugin, Can't remember what its called.

    Otherwise you can create the menu off screen during design time, and just pin them together and move the parent object to correct place. Assuming its a menu that is not suppose to be there all the time?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the heads up. I just found out that Families are just virtual containers, so it was a lost cause! At any rate, just as you suggested, I'm creating the objects individually, its just a big copy-paste party

  • This is closer to what a container would do for you, because you just create one of the object instances and the others get created for you. You can't directly find out the types of object in a Family AFAIK. However there *are* ways of doing it indirectly. If you want to go 3rd party you could use the Nickname plugin.

  • Since the menu was super simple, I just created a sprite with the first animation frame from each object and loopindexed the creation and placement. It worked like a charm! Thank you all for the help!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)