Enemies of the same type each shoot on random intervals

Get help using Construct 2

Post » Wed Jan 21, 2015 4:59 am

I have an enemy sprite that I spawn them in random places. I would like the enemies to be able to shoot bullets randomly between 2 to 4 seconds. When I use the "System/On Every X Seconds" event with Random(2,4) command, all enemies shoot at the same time. I would like each instance of the enemy shoots randomly. Just wondering how can I achieve this?
B
3
Posts: 1
Reputation: 177

Post » Wed Jan 21, 2015 5:34 am

Give thematimer behaviour - now they are independent.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Wed Jan 21, 2015 6:16 am

System conditions don't distinguish between instances even if you used it with For Each.

Like Somebody said, use random expression as duration of timer and use for each
B
16
S
7
Posts: 301
Reputation: 2,726


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 22 guests