How to spawn object with a random timer for multiple sprites

Get help using Construct 2

Post » Thu Dec 10, 2015 10:22 am

Hi there gentle fellows.
For start, please pardon my english, I'm french.

I try to make an event with several enemies spawning a projectil with a random timing, for each enemy.

I tried that :
Image

But it doesn't seem to work. If I put a second "Spitter", only the first one spits randomly, and the second doesn't spit at all.
Do you know why ? Do you know how could I do what I want to do ?

I hope I made myself understandable.
Thanks for your futur help.
B
3
Posts: 3
Reputation: 181

Post » Thu Dec 10, 2015 3:21 pm

Add the Timer behaviour to the Spitter object, and set a random interval for each. The "On Timer", do your "Spit" code.
ImageImageImage
B
71
S
19
G
180
Posts: 3,479
Reputation: 103,179

Post » Thu Dec 10, 2015 3:41 pm

I'm not quite sure I understood you, could you be more specific ? I guess my understanding is limited.
B
3
Posts: 3
Reputation: 181

Post » Thu Dec 10, 2015 3:59 pm

ImageImageImage
B
71
S
19
G
180
Posts: 3,479
Reputation: 103,179

Post » Thu Dec 10, 2015 4:06 pm

It worked perfectly, thanks a lot ! I didn't know the Timer behaviour, thanks to you i do know.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: justintime0185, raster and 9 guests