Spider Behavior

Hi. How to write a simple AI similar to Roach AI ( Half-Life - Roach AI Demonstration - YouTube ) from Half-Life? I’m make a horror game and the spiders improve the climate.

Random movement -?!

Running away from man - Trigger + tag

Running away from the light - Ray of flashlight.

Sorry for my English.

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.

-Vatsal