Shoot Together

Get help using Construct 2

Post » Fri Apr 27, 2012 6:02 pm

Hi~
I'm creating enemies that will shoot player when sighted~
I encountered a problem which is only 1 enemy will shoot~

For example, I have 3 enemies~
But only the 1st enemy who detected me will shoot me~
Other enemies will facing me but won't release bullet~

I wonder why, hmm~

Here is my example scene file~
>> Click here to download <<

Hope somebody would help~
Thanks you~ ^^AkiraWong2012-04-27 18:11:14
B
13
S
5
G
3
Posts: 63
Reputation: 3,989

Post » Fri Apr 27, 2012 7:56 pm

for more control, you need to 'assign' a sightline to each enemy.
This feature will be implemented soon, but in the meantime, you should give an instance variable 'enemytype' to each sightline, and a variable 'linetype' or something to each enemy. Then you can properly pick events for each enemy/line, without applying them to EVERY enemy, as you have done.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Apr 28, 2012 4:40 am

Hmm~ Sorry I'm not quite understand~ @@
Can you make a simple example scene file?
Thanks you, appreciated~ =D

~~~

Ah nvm, I found it out~
I just add a boolean for the condition and it work fine~ =)AkiraWong2012-04-28 07:15:42
B
13
S
5
G
3
Posts: 63
Reputation: 3,989


Return to How do I....?

Who is online

Users browsing this forum: makkancs, Matthew de and 27 guests