Hey im wanting to make a top down shooter game but i am not that good with ai. I was wondering if anyone could give me like a soldier ai or tell me how to make a pretty good one. I'm really not good when it comes to ai but i can make decent ai.
Is it really worth it to go onto the battlefield? I GOT A CUSTOM RATING SEE???
AI is just about the biggest can/pile/lump of worms/poo/dirt you can open/step in/eat in MMF, or any other game development suite, for that matter. It's more than a 1-size-fits-all thing and not many people have the time or energy to explain it. Hopefully someone who needs a project will come along and get on board.
Like OldManClayton said, AI is very game-specific. If you can give details of exactly what you are trying to achieve, it's a lot easier for us to help. "Top down shooter AI" is just a bit vague.
Um i think i would like the ai to be like where the soldier patrols and then when it either ears a shot sees the bullet or player gets in range it keeps patroling but just randomly shoots every once and a while. Um i would like it to like randomly change direction within a second or less when in combat.
Is it really worth it to go onto the battlefield? I GOT A CUSTOM RATING SEE???
You have to think about which abilities your enemy should have.
Then you should give it different modes, like idle, attack, pursue, patrol-mode.
Declare the mode by setting a flag or a value.
for example:
idle = val A = 0
attack = val A = 1
patrol = val A = 2
pursue = val A = 3
Then you just have to give these modes different behaviours.
Set Val A = 1 for example, when you come to close to the enemy and set the val = 0, when you are to far away. When the enemy is idle for 10 seconds, then set the val to 2 or 3.
Thats it!
After all you have to find a way to give your enemy a line of sight, so he can detect walls.