How do I

Get help using Construct 2

Post » Mon Feb 01, 2016 3:46 am

how can I have enemies attacking each other and having them attacking the player when in range
B
10
S
4
Posts: 144
Reputation: 1,246

Post » Mon Feb 01, 2016 5:05 am

jamiek wrote:how can I have enemies attacking each other and having them attacking the player when in range


Try this:
https://www.scirra.com/tutorials/474/pa ... e-of-sight
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036

Post » Wed Feb 03, 2016 2:49 pm

chadorireborn wrote:
jamiek wrote:how can I have enemies attacking each other and having them attacking the player when in range


Try this:
https://www.scirra.com/tutorials/474/pa ... e-of-sight


thanks but I already have path finding and line of sight events it was working till I created other enemy's and then the enemy attacks only the other enmeys
B
10
S
4
Posts: 144
Reputation: 1,246

Post » Wed Feb 03, 2016 3:50 pm

jamiek wrote:
chadorireborn wrote:
jamiek wrote:how can I have enemies attacking each other and having them attacking the player when in range


Try this:
https://www.scirra.com/tutorials/474/pa ... e-of-sight


thanks but I already have path finding and line of sight events it was working till I created other enemy's and then the enemy attacks only the other enmeys


Maybe you forgot to add the condition:

*(Pick nearest/furthest) to (enemy.x, enemy.y)
*For Each

If still not enough, tell me. I'll try making an example but I suggest you to provide a sample/similar event .capx file so it'll be direct to the point.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036

Post » Wed Feb 03, 2016 8:20 pm

Try this:
https://www.scirra.com/tutorials/474/pa ... e-of-sight[/quote]

thanks but I already have path finding and line of sight events it was working till I created other enemy's and then the enemy attacks only the other enmeys[/quote]

Maybe you forgot to add the condition:

*(Pick nearest/furthest) to (enemy.x, enemy.y)
*For Each

If still not enough, tell me. I'll try making an example but I suggest you to provide a sample/similar event .capx file so it'll be direct to the point.[/quote]

I never tried that but go it working sort of the event sheet is a mess
B
10
S
4
Posts: 144
Reputation: 1,246


Return to How do I....?

Who is online

Users browsing this forum: Animate and 6 guests