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!
B
1
Posts: 1
Reputation: 127

Post » Tue Jun 20, 2017 8:16 pm

Hi,

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

Say:
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
SHOOT

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.

Cheers,

COSMOS
B
20
S
9
G
1
Posts: 75
Reputation: 2,152


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests