How do I Make enemies act as individuals

Get help using Construct 2

Post » Mon Feb 16, 2015 7:43 pm

Hi!
I would like to know if there is a way to stop two copies of the same enemy to synchronize their behaviour.
SSee, I setted the enemy to react when the player is on line of sight, and spawn their bullets every 2.0 seconds. So far they work ok; either of them only starts shooting when the condition is met.

My question comes when both enemies meet have the player on their line of sight at the same time. They automatically synchronize their actions, shooting at the same time despite not having seen the player at the same time. (I uploaded the .capx)

I would like to know if there is a way to keep them form acting as one, and make them act individually.
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 3
Reputation: 331

Post » Mon Feb 16, 2015 8:15 pm

use the timer behavior I will fix it now for you.
B
10
S
1
G
1
Posts: 63
Reputation: 840

Post » Mon Feb 16, 2015 8:17 pm

My internet keeps turning on and off. I won't beable to do it until I leave London to go back home which will be a day.
B
10
S
1
G
1
Posts: 63
Reputation: 840

Post » Thu Mar 19, 2015 3:57 pm

was this issue ever solved?
B
8
S
1
Posts: 39
Reputation: 685

Post » Fri Mar 20, 2015 10:20 pm

Scottydoes3d wrote:was this issue ever solved?

No, it wasn't...
B
5
S
1
Posts: 3
Reputation: 331

Post » Sat Mar 21, 2015 4:29 pm

use timers, it's all about them... in case you give up trying, take a look at this
https://www.scirra.com/store/bundles/blue-robot-guy-ai-bundle-3580
Image
B
57
S
13
G
6
Posts: 271
Reputation: 12,073

Post » Sat Mar 21, 2015 8:33 pm

So, I used timers as sugested, and it kinda works... but not quite yet. Not for LoS.

For whatever reason, when I use Player is On Line of Sight it doesn't activates the timer. Being in the range of sight does nothing, but when I get out of the range of sight, then it works.
What is strange is that it seems to be some kind of conflict with the On Line Of Sight behaviour, because I also tryed an alternative: using On Collission With Another Object everything works just fine.

So now the enemies act as individuals, every one of them act acording to it's own timer, no longer sinchronized. But it doesn't seem to work with On On line of Sight...

EDIT: I am trying to submit a .capx, but as I try it keeps telling me "general error" and wont let me post the reply...
B
5
S
1
Posts: 3
Reputation: 331


Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS, FabianB, lolish and 11 guests