AI System (Calling all A.S. Gurus)

Hi,

I’m working with a friend who is a teacher in in game design theory, and we are constructing a basic A.I. system in flash. He’s providing the theory and I am providing the code. I’ve attached the project file to make this easier to understand.

What is suppose to happen is that when the player approaches the enemy, the enemy turns towards the player and tracks the players motion. When the player fires at (and makes contact) with the enemy. The enemy then treats the player as hostile, and begins to fire back. What I can’t get working is the enemy response fire.

Any help with this would be greatly appreciated. Plus anyone who can help fix this has basic AI system working for any games they develop.

Thanks

http://www.sendspace.com/file/jo6bn0