The Daily Click ::. Downloads ::. Engine ::. Open Source AI example
 

Open Source AI example
Author: 3kliksphilip Submitted: 15th November, 2009 Favourites:0
Genre: Engine Downloads: 585
Rated:


Edited By 3kliksphilip on 11/15/2009

WHAT THIS AI CAN DO
*Can simulate any size of battle, with as many people and teams as you would like
*Gives every person a 'sight'

WHAT THIS AI CAN'T DO
*Stop it from glitching on walls!

Combine it with the advanced pathfinding object and you'd have some very solid AI. but don't do that, I want to do it first

This open source AI shows 4 different AI examples...
1) Really rubbish AI that first bullets occasionally
2) AI that can see, but doesn't know which guard should be able to shoot
3) AI that knows which guard should be able to shoot (Solid AI for games)
4) A bit like 3, but with more features and more realistic movement.

How this works is up to you, some games will work better with different numbers of sight objects. But this is how I do AI in games. I prefer it to simple 'see if there's nothing between the enemy and your player' because it's easy to set which directions the sight heads in, and some times you want AI with a chance of going wrong. For stealth games, for example.

...Enjoy!

Review This Download



 


http://www.mediafire.com/?n2t5l2wzttt (1 mkb )



Posted by UrbanMonk 16th November, 2009

I think someone was asking for something like this a while back. Imma check this out later. Sounds good from the description, but IS IT?
 
Posted by James Luke 16th November, 2009
Rated :

the graphics was good but there were red and green gliches and there isnt much to do on it add some sounds and music and more levels and it could be quiet good.
 
Posted by UrbanMonk 16th November, 2009

eh? Luke this is just a game engine. It wasn't meant to be a real game. Although if it was you'd be right!
 
Posted by Falcon Eaglehawk 16th November, 2009
Rated :

Genuinely lol'd at James' comment...

Looked very nice at the first sight. Took a quick glance at the event editor and was delighted how few events there were. Looking forward to see this in action with the pathifinding object to see the full potential.
 
Posted by Rhys D 16th November, 2009

why don't you assign the guards ID via spread value? would take out the random chance that two guards will have the same ID with your current method.
 
Posted by 3kliksphilip 16th November, 2009

Hmm, I just find the random method easier to understand. I'm lazy
 
Posted by UrbanMonk 17th November, 2009


I just tried this, and it could use a lot of improvements.

Personally I would not use this. I really unoptimized, and using a hundred objects to simulate sight is a pretty bad idea.

It desperately needs 360 shooting. The shooting is inaccurate over large distances.

Anyways, If you choose to continue using the current method of AI vision I'd suggest you just use one "sight" object per enemy and just make the object shoot directly AT the player and limit the amount of angle the sight object can have. Then chose a random number to decide whether or not they can "see" you.
 
Posted by 3kliksphilip 17th November, 2009

I don't get it... why is everybody treating this as a game? It's an AI example, not a 360 degree shooting game. If it's rough around the edges then that's because I kept it as simple as possible for people to be able to understand.
 
Posted by UrbanMonk 17th November, 2009

Well if you are referring to my comment then you should know that I'm treating it like an engine.

That's what it is right?

It works, it just needs improvements. What else do you want me to say. Do you want me to lie to you? (now I'm starting to sound like nastyman, )
 
Posted by James Luke 18th November, 2009
Rated :

yeh this is what i mean. if you make a game engine then theres no exuse for bad gameplay i mean thats what all games are about. why are there no sounds and why is there only one level? reword people for finishing your game. you have alot to lern before moving onto more complex coding 3klik.
 
Posted by 3kliksphilip 18th November, 2009

You're obviously trying to troll. It's almost as if you're deliberately trying to find a reason to rate this down by pretending that it's something it isn't. Try doing that to my new open source example.
 
Posted by 0ko 18th November, 2009

Maybe people just don't read the titles of downloads anymore?

@ UrbanMonk, The title is : "Open source AI example" not "360 shooting example".

@ James Luke, you're just a complete idiot I doubt explaining it to you would help, but here goes : IT IS NOT A GAME, AND NOT INTENDED TO BE A GAME NOR A DEMO. IT IS AN EXAMPLE FOR EXPERIENCED KLICKERS TO LEARN HOW TO HAVE ARTIFICIAL INTELLIGENCE IN THEIR PRODUCT, NOT SOUND, OR LEVEL DESIGN.
 
Posted by Jess Bowers 19th November, 2009

Great example, Philip. Thanks for sharing!
 
Posted by Fordom 23rd February, 2010
Rated :

Very ungood. I don't like it.

It uses to much actives.
 
Posted by canavaro99 3rd October, 2010
Rated :

thanks
 
Posted by Rowan_Rinia 28th July, 2017
Rated :

this really helped me thank you 8D and james it's an engine that demonstrates how AI works it's NOT a game.
 

 



Author

Favourite



Advertisement

Worth A Click