How do I spawn a batch of objects, then wait

Get help using Construct 2

Post » Wed Jul 15, 2015 8:23 pm

Hi all,

First time poster, complete newby Constructor. This is probably a really simple question as well, but I'm struggling to get my head around the events for it.

So, I want to spawn a certain object every 2 seconds, four times. After this happens, I want there to be a gap in spawning for four seconds, then resume the normal spawning every 2 seconds.

So: Object X spawns every 2 seconds.
When this happens four times, wait four seconds.
After four second wait, resume from start.

Thanks for the help in advance :) I'm probably missing this really obvious thing as I'm pretty tired but oh well.
Posts: 1
Reputation: 177

Post » Wed Jul 15, 2015 8:32 pm

I guess using the timer behaviour for this would be the easiest choice:

Create a variable spawns and set it to 4

set timer for two seconds

on timer
--if spawns > 0
> spawn objectX
> subtract 1 from spawns
>set timer for 2 seconds
>set timer for 2 seconds
> set spawns to 4
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: draiza, oosyrag and 6 guests