How do I group objects/spawn groups?

0 favourites
  • 2 posts
  • I have a few ideas, specifically UI related, and they seem like they'd be easier to accomplish if I could somehow group the buttons together and spawn them as a group. I thought somehow the families function would be what I wanted but it wasn't. I need to wrap several sprites together and be able to spawn the unit at once..

    Is there an easy way to do this? or will I have to spawn something that spawns other things at image points :/

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i think you can use a function there.

    Click the game layout screen on construct and under the section general select "function"

    Then add an event function > on function, and name it whatever you want. Inside this event put the code to spawn all the buttons that you want to be spawned at once.

    Then whenever you want to spawn all the buttons instead of writing the same code over and over again you just create the action function > call function and set the name of the function you'd like to use.

    Hope it helps

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