Any tutorials on making AI?

Hi forum,

Are there any tutorials out there that document how to make AI? I know i that it’s to do with control classes and I have read the article on multithreading. Just asking if theres anything that’s like “this is how you make AI in your game”.

The AI that I want is pretty simple, just using rays to check if theres anything directly in front and blindly walking forward, and if the AI has a clear line of sight (another ray) a nice particle effect happens and you get damaged. So I have a general idea of what I want and how to do it, just need some help on “clearing the fog”, as it where.

Not asking you to write it for me, just to point me in the right direction.



Thanks,

Live long, and prosper.

it has nothing to do with multithreading.

I don’t know what you want us to do… If you get an idea of how to do it, just try!, write something. We can help with specific math/geom/engine related issues as you encounter them.



tip: the simpleupdate(float tpf) method might be a good starting point for something that must be computed each frame.

MonkeyZone has a simple way to do AI laid out.

JMonkeyEngine’s AI app called “normen” (which you might see post in the forums occasionally during its downcycles) is a fairly good example of how to do AI. It often passes the Turing test.

It does have some bugs however, dependence on coca cola etc., but on the plus side it never has to sleep!

6 Likes

AI in game programming is an interesting aspect. I remember when I started doing it. I had no idea what to do. I didn’t really find any good resources so I ended up making an AI for 4-in-a-row that ended up pretty well. Today I feel I can do good enough AI programming for a basic game. You can try making a simple 4-in-a-row AI if you don’t know where to start. A very basic AI could just put random pieces down. If the player can win in the next move, block it. If the AI can win, put there.

Well I suggest to read the ressources & blog section at devnet. Since its all logical programming language does not matter.

You should watch the movie. Basically, I learned if all else fails, just through in some motorcycles from Mad Max, and everything should be fine.

@Sploreg said:
JMonkeyEngine's AI app called "normen" (which you might see post in the forums occasionally during its downcycles) is a fairly good example of how to do AI. It often passes the Turing test.
It does have some bugs however, dependence on coca cola etc., but on the plus side it never has to sleep!

There is a slight "Steve Jobs worshiping" issue too, but i'm fairly convinced that he can read minds.... :D
1 Like

thanks for the response :D,

Ill take a look at monkeyzone normen, and btw

I wanna make an mmo!

http://trac.assembla.com/l2jroh/browser/L2JSaver/src/l2jsaver/L2JTransmutator?rev=176



heres some sample code, Issle’s goal based AI he never finished it tho… but inside a l2j server a dummy player will farm and attack and do naughty stuff :stuck_out_tongue: