How do I spawn a group of objects in a certain pattern?

0 favourites
  • 9 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • How do I spawn a group of objects in a certain pattern? I want to spawn a lot of objects with set positions and sizes, and link them together to always spawn together in that formation. This is for a vertical endless runner game. I need to be able to spawn the formations after one another to create a randomly generated environment. I also want to be able to do this without having to create an action for every individual object that spawns them, and rather spawn them all at once somehow based on their positions in the layout. Any help would be most appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I figured out that I needed to use tilemaps for the formations since they have collision boxes for each tile, eliminating the need for multiple objects.

  • <div class="post-censorship-notice">kota can only post plain text URLS when they have 300 rep. 1 URLS removed. Why?</div>

    SpacialPumpkin i can not send u pm due to not having 500rep its pretty retarded that i need 500rep to send msges so please add me on facebook

  • kota

    Do you have Skype? You can add me on there and we can talk, my name on it is the same, SpacialPumpkin.

  • added you

  • Hi

    I am wondering the same but using sprites, not for environments but simply collectible items (coins for example). I'm making an endless jumper and want patterns of object the player can collect when they are in a state of accelerating upwards. There may only be 20 objects at a time. I could use an array with a list x,y pos for each items and a for loop to iterate through... or is there an easier method to spawn a single collection (of the same object) predefined in the editor(snapping, with drag and drop ease),group this, and spawn this at a given Y position in the run time?


  • I'm guessing I'll have to create a click and drag editor and save out data to an array.

  • 4ror

    You can do it in the editor. Just setup the patterns off the layout and use a second object as the center. Group them together with a variable, then just read it into an array at the start of the layout and delete the objects. ... terns.capx

  • That's great. Thanks for your help

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