How Can I make multiple instances of an enemy all attack?

Get help using Construct 2

Post » Tue Jun 20, 2017 7:58 pm

I'm currently working on a top down bullet hell game where enemies chase the player and shoot at him. However, when I add the events that make enemies shoot at a certain interval, it only applies to one of them at a time even though several can be on-screen at once. How can I make them all do the same action?

Thanks in advance!
Posts: 2
Reputation: 129

Post » Tue Jun 20, 2017 8:16 pm


Normally I did not have this problem, so maybe it's some issue with your configuration, but OK, I can offer you a solution for your situation.

Create a GLOBAL variable SHOOT = 0

SYSTEM Every X seconds (e.g. every second)
AND when SHOOT = 1
ACTION = Enemy shoots

So regulate their shooting by turning ON and OFF the SHOOT variable.

Another TIP:
A cool tip is to say every X seconds (e.g. 0.5)
SYSTEM pick a random enemy instance

This creates a more realistic game rather than all shooting at same time.

Good Luck!
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Posts: 97
Reputation: 2,479

Return to How do I....?

Who is online

Users browsing this forum: fbarraza28 and 7 guests