You can have steering behaviors on a group of spiders. Have a alook at Craig Reynolds website red3d.com. For example the running away from man or flashlight would be flee behavior, and arrive behavior for gathering near food and other things.
A book that I would recommend would be Programming Game AI By Example by Mat Buckland.