I have no idea where to start with AI, just wondering if any of you have a source or a forum in which will help me, or give me example scripts of AI.
The AI in my game is basically a cube, that follows 3 waypoints set in a triangle and when I set close to the cube, it 'detects me' and begins to follow me whilst activating a 'kill player' function (which doesn't do anything at the moment).
But, for example how would I tell my AI to avoid obstacles whilst following me ... lets just say that my cube has 'zombie' features:
It moves aimlessly (check).
It sees player, and follows (check).
When zombie is close enough, it will harm player (check, well just activated a kill function).
Zombie to avoid obstacles (to do).
Another thing is that my AI gets confused when I am a higher level than my zombie (cube), it doesn't use stairs. It just gets as close to me as possible on its current ground level. This is obversely the case as I need to write some AI code to tell it to go up stairs when player is on higher level.
Any help, suggestions, or whatever
Sure would appreciate it.