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.