Simple Flocking AI?

Get help using Construct 2

Post » Sun May 19, 2013 1:43 am

I really want to add a flocking behavior to my game similar to this: http://www.lalena.com/AI/Flock/

I'm not bad at programming but I'm not entirely sure the best way to go about implementing this kind of behavior in Construct. Is there an example floating around somewhere?

In English I'm imagining it to be something like this:
Always move forward at current angle.
If near friend, match angle.
If too close to friend, turn away.
If not near friend, wonder around.

I have no idea how I could do the "turn away" bit, but would that basically work? Any tips welcome.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sun May 19, 2013 1:48 am

ImageImageImage
B
71
S
19
G
158
Posts: 3,396
Reputation: 91,938

Post » Sun May 19, 2013 1:50 am

Oh damn. Thanks a ton.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 3 guests