[SOLVED] Repeat for each instance of object?

I have multiple copies of an enemy and want to create a projectile from each using repeat for each instance of but it only creates a projectile for one of the enemies?

events

the first instance of your object will reset the timer, so the repeat for the next object instance is no longer triggered, since the condition is no longer met.
have the condition timer as a single event, with the repeat for each as a subevent of it and another subevent at the end to reset the timer.

timer >2
→ repeat for each - create object
->reset timer

1 Like

Also, if you want the objects to have their own firing rate, the timer you’re using (A scene timer) will not work. You will need an object timer to let each object have it’s own firing activation rate.

1 Like

solved thanks moving the timer event above repeat for each instance of works

events

1 Like