HOME | DD

MOSREDNA β€” Boids

Published: 2007-07-01 11:41:18 +0000 UTC; Views: 6350; Favourites: 42; Downloads: 128
Redirect to original
Description Info about boids -> [link]

"Boids, developed by Craig Reynolds in 1986, is an artificial life program, simulating the flocking behaviour of birds."

This is an improved actionscript 3.0 version of my 'flashy swarm' deviation !! [link]

it's faster .... more buttons and sliders .... more particles !!!!


you can adjust the following parameters :

  • Center : how much the boids want to go to the center of the surrounding boids ...

  • Avoidance: how much the boids don't want to collide with other boids ...

  • Velocity : how much the boids want to match the velocity of the surrounding boids ...


  • Sight: how far away a boid can see ...

  • radius: how close boids can be to each other ...

  • intelligence: memory of a boid ...


  • Border : on/off

  • Hunter : on/off

  • Boids : Number of particles ...

  • Reset : Resets do default settings ...


  • You can also use your mouse to play with the boids ....

    !Warning ! when you have 1000 boids .... don't adjust the intelligence slider !!

    If it doesn't work ... you might need to download the newest flash-player [link]

    I hope you like it !!
    Related content
    Comments: 23

    axlfree [2013-10-14 09:59:16 +0000 UTC]

    Such a great job! I am new in ac3 and i really want to learn it so i might ask if you can share the script or the .fla of this project. It will mean a lot. Thanks in advance!

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to axlfree [2013-10-15 09:37:35 +0000 UTC]

    I don't have the code anymore I think... And if you are just starting with as3 this might be a bit to much too start with
    anyways ... I used this site to learn about the algorithm and pseudo code . I first wrote it in as3 and then optimized it. hope it helps
    www.kfish.org/boids/pseudocode…

    πŸ‘: 0 ⏩: 0

    Vesrek [2007-07-12 12:51:46 +0000 UTC]

    πŸ‘: 0 ⏩: 0

    DrJest [2007-07-04 00:55:42 +0000 UTC]

    Very cool! The only point where the programming breaks down is when you hold your mouse still and they catch up. The 'flocking' algorithm doesn't handle that well. They circle and run into each other. I'm not sure what the proper response to that should be. Possibly flying off as a group and re-targeting the courser. I'm a horrible programmer, so I don't know how much work that is, and (of course) it's just my opinion.

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to DrJest [2007-07-04 13:23:02 +0000 UTC]

    When the distance between a particle and the mouse is smaller then 100 pixels the got ttowards the mouse ... when the distance is less then 50 pixels they go away ... so they are kinda trapped when close to the mouse ... it's not that hard to change that behavior

    πŸ‘: 0 ⏩: 0

    Lostindamnation [2007-07-02 05:23:00 +0000 UTC]

    Very cool, especially in context to its purpose.

    However, I did chuckle when I noticed that "Intelligence" was spelled "Intelegence."

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to Lostindamnation [2007-07-02 12:42:18 +0000 UTC]

    Lol ... fixed it

    πŸ‘: 0 ⏩: 0

    olofmoleman [2007-07-01 22:16:55 +0000 UTC]

    This is fucking awesome.

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to olofmoleman [2007-07-02 12:42:03 +0000 UTC]

    πŸ‘: 0 ⏩: 0

    RawrReepicheep [2007-07-01 18:18:32 +0000 UTC]

    That's really cool. I like the hunter thing. xD

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to RawrReepicheep [2007-07-01 19:41:38 +0000 UTC]

    Yes ... that hunter is a real bad ass

    πŸ‘: 0 ⏩: 1

    RawrReepicheep In reply to MOSREDNA [2007-07-01 20:10:24 +0000 UTC]

    Hahaha yeah. I watched it for like 10 mins.

    πŸ‘: 0 ⏩: 0

    kayceeus [2007-07-01 14:45:41 +0000 UTC]

    That is very cool, I bet it'd look great put to music.

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to kayceeus [2007-07-01 14:51:54 +0000 UTC]

    Yes ... i thought of that too !

    it might be an option in the next update

    πŸ‘: 0 ⏩: 1

    kayceeus In reply to MOSREDNA [2007-07-01 15:05:40 +0000 UTC]

    Yes please!!

    πŸ‘: 0 ⏩: 0

    Ellygator [2007-07-01 14:42:15 +0000 UTC]

    That's amazing, I love their fluid interactions when they meet and to see what components steer their behavior.

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to Ellygator [2007-07-01 14:49:48 +0000 UTC]

    Glad you like it !!

    those behavior things really interest me

    πŸ‘: 0 ⏩: 0

    archmage-lod [2007-07-01 14:13:04 +0000 UTC]

    That is awesome!

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to archmage-lod [2007-07-01 14:19:49 +0000 UTC]

    πŸ‘: 0 ⏩: 0

    martybell [2007-07-01 12:07:58 +0000 UTC]

    i could play with that all day!!

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to martybell [2007-07-01 12:13:00 +0000 UTC]

    Me too

    πŸ‘: 0 ⏩: 0

    Ladic [2007-07-01 11:58:51 +0000 UTC]

    Wow. Nice concept. It is very soothing.

    πŸ‘: 0 ⏩: 1

    MOSREDNA In reply to Ladic [2007-07-01 12:13:02 +0000 UTC]

    Thanks !

    πŸ‘: 0 ⏩: 0