Enemy AI that even pathfinds around each other (starcraft)

Get help using Construct 2

Post » Thu Jun 04, 2015 4:01 am

I understand how pathfinder works against solid objects. However, how do you create enemy AI that runs towards the player, but never overlaps other enemies, never does a jiggle dance, or bounce like a bullet when bumping up against each other? The desired effect would be similar to how Starcraft enemies chase after you.
B
59
S
19
G
3
Posts: 451
Reputation: 6,339

Post » Thu Jun 04, 2015 11:44 am

in starcraft they enter into each other (sc1) - so you would have to make them without collision detecting between them with pathfinding. oh yeah, and not solids.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Thu Jun 04, 2015 6:39 pm

Oh woops sorry. SC2 - not 1. They don't overlap in 2.
B
59
S
19
G
3
Posts: 451
Reputation: 6,339

Post » Thu Jun 04, 2015 6:56 pm

then just add solid to your enemies and they will evade each other. of course you will have to update pathfinding obstacle map regularly because now even the moving ships are obstacles to each other. use on that family - regenerate obstacle map, on each 0.2 sec. (doing it on each tick would blow up performance needs)
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Tue Dec 22, 2015 3:34 am

This solid behavior makes the enemies move around erratically, They jiggle and bounce all crazy like.
B
59
S
19
G
3
Posts: 451
Reputation: 6,339

Post » Tue Dec 22, 2015 11:15 am

Implemented pathfinding in the example by @R0j0hound
From this topic

Pathfinding No Overlap
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Dec 22, 2015 10:02 pm

@LittleStain This is amazing work. Thank you!
B
59
S
19
G
3
Posts: 451
Reputation: 6,339


Return to How do I....?

Who is online

Users browsing this forum: tannerdler and 6 guests