Enemy Shooting

Get help using Construct 2

Post » Fri Feb 07, 2014 9:12 am

Hi Could anyone help me out,

I made an enemy, that shoots if the player is at x units, the problem that I am facing is that it is continously spawning bullets, could someone tell me how to give a gap before the next bullet is shot?

thank you,

kind regards,

Rafael0125
B
8
S
1
Posts: 37
Reputation: 593

Post » Fri Feb 07, 2014 9:27 am

You could either add a

- system every x seconds condition

or

give the enemy timer behaviour and create a timer for waittime between bullets.

then create an event

on timer
if player is within distance
-spawn bullet
-start timer
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Feb 07, 2014 10:04 am

Thanks ... I did it by adding this condition .. every X seconds condition ... :)
B
8
S
1
Posts: 37
Reputation: 593


Return to How do I....?

Who is online

Users browsing this forum: draiza, Yahoo [Bot] and 5 guests