Object spawner / For each

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I'm trying to create an object spawner that spawns objects every X seconds (based on instance variable) and sets the angle, speed etc for spawned objects (with bullet behavior).

    It works great for one object but as soon as I duplicate the spawner / hitboxes each spawner uses/triggers at the same X seconds value (when the intention is for each to trigger based on spawner object's individual instance variable). I tried adding the usual "For each", "Trigger once" etc. but can't get it to work right.

    Thanks for any help!

  • Instead of the "Every X seconds" event, use Timer behavior.

    You probably don't need "For each .." condition in the "On timer" event, but I prefer to add it for clarity.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks dop2000 ! I thought about using the timer behavior but figured this would've worked without it. Anyway, your solution worked perfectly and it's spawning exactly as should Thanks again for your help!

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