   Flocking AI
  Hi all i am new to AI and i know a little about it but basically what i want to do is get one image to set to another images statick x and y co ordinates. but this is my problem how do i go about with the movement would i just use a swith statement to be like is current x inline with final x no then got move left 5 and check again (obviously that is not it but just a general idea). if you have any tut's on this it would be helpful regards mark   
  You would do well to look up the flocking paper by Craig Reynolds, available online if you search for it. As with most non-trivial AI, it's not generally a case of "if X then do Y", but about taking measurements and adjusting output accordingly - in this case, measuring distances and adjusting motion vectors.   ;  If you're talking about Flocking algorithms in general you also might want to take a look at:http://www.red3d.com/cwr/steer/While not all strictly flocking, there are some great descriptions and examples there.  Particularly all the little applets illustrating the concepts.-me   ;  I actually had a class where we had to implement boid behavior in 2D and 3D space using OpenGL.  It can get pretty interesting at times!  Here is a link to the same class I took, but a more recent semester:http://www.cs.umd.edu/class/spring2006/cmsc427/Take a look at the sample programs.;Quote:Original post by HanatarouI actually had a class where we had to implement boid behavior in 2D and 3D space using OpenGL.  It can get pretty interesting at times!  Here is a link to the same class I took, but a more recent semester:http://www.cs.umd.edu/class/spring2006/cmsc427/Take a look at the sample programs.The website seems to be down for some reason, but shouldn't be for long.  Check on it in a day or two.   