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
67
S
19
G
124
Posts: 3,214
Reputation: 74,415

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: h1k3, LeFuji and 20 guests