Adventure Game Studio

AGS Support => Modules, Plugins & Tools => Topic started by: jerakeen on Sat 14/02/2009 19:52:20

Title: MODULE: SteeringBehaviors v1.00
Post by: jerakeen on Sat 14/02/2009 19:52:20
Do you want to put schools of fish, flocks of birds or herds of animals
in your game?

This module will allow you by creating flocks and setting behavior rules to
flocks members (boids).

There are different rules: to move boid towards its neighbours, to follow a
leader, to avoid obstacles, to perching, to form a group and so on.

But by now this is non-interactive and you can only draw them on the background
of your room.

You can define another gorups of things too: a swarm o bees, a group of
ships ... Almost any kind of group where members obbey rules like the previous
ones.

This module is based on Conrad Parker and Craig W. Reynolds documents:

    http://www.vergenet.net/~conrad/boids/pseudocode.html
    http://www.red3d.com/cwr/steer/gdc99/

So i suggest you to read both of them for a better understanding on what this
module does.


Requires AGS V3.0.0 or later

Screenshots

(http://www.2dadventure.com/ags/SteeringBehaviorsBirds.jpg)
(http://www.2dadventure.com/ags/SteeringBehaviorsFish.jpg)


Here is the module:
 
  Module SteeringBehaviors
   (http://www.2dadventure.com/ags/SteeringBehaviors.zip)
And a demo (in AGS v3.1.1)

  SteeringBehaviors Demo Sourcecode (http://www.mediafire.com/?tjwguhzxg12)

  SteeringBehaviors Demo  Exe (http://www.mediafire.com/?doqgmgyzmy0)


Remember that too many boids will slow down the game.


If you found bugs, errors or don't understand something, let me know.

I hope this will be useful.

Enjoy it
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: Dualnames on Sat 14/02/2009 19:59:03
Man, I want to marry you..so you can have the modules of my dreams!
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: Trent R on Sat 14/02/2009 20:03:20
Dude, this is excellent looking. Now all we need is that Displacement plugin to come along so we can make the perfect underwater AGS game... :D


~Trent
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: jerakeen on Mon 16/02/2009 19:05:43
Uooo, thanks. But this module is not perfect. There are some erroes ill try to fix.
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: The creature on Mon 17/02/2020 08:31:35
Does anyone still have this module and example ags file? The download links are missing the files?

That would be great.

TC
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: Mehrdad on Mon 17/02/2020 13:29:54
Hi @The creature

Here you are

https://www.dropbox.com/s/p3un04rbgyu0wpe/SteeringBehaviors.rar?dl=0
Title: Re: MODULE: SteeringBehaviors v1.00
Post by: The creature on Tue 18/02/2020 07:28:23
Does anyone have an experience working with this module?

As I don't have the example demo project I'm not sure how to initialise the function. I essentially want to create shoals of fish and have my test fish spite (350) but thats about it.

In my Room Load I created my initial variable: SteeringBehaviors Fish();  but I'm not sure what I need to do, the documentation is quite scary that comes with the script files.

I know there is this function:
Code (ags) Select
function boid_set_boid (int flock, int boid, enBoidType type, float mass,  int graphic = -1,
                          int view = -1, enViewType view_type = vtNone, bool rotate = false);


But, the predictive text for the code soesnt seem to find the function so I'm not sure what I'm really doing.

Any help is greatly appreciated :(

TC