Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / AI Engine (Very simple AI)

Author
Message
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jan 2005 06:07 Edited at: 13th Jan 2005 23:03
Hi (New update is released! see it in the bottom of this post)


After i made my very first AI code in the 20 line challenge(someone dont call i AI but i prefer to say it is VERY simple AI).

So i made this engine for ETC Newcomers to help them making a simple AI.

Before you take the Engine please read this. Maybe it would answer some of you questions

INFO :
Quote: "What DB versions can this engine compile in?"


It can compile in both DBPRO and DBC

Quote: "Can i use this code in my own game/program ?"

Yes you certanly can! This code is Royalty free and can be used in you Commercial product or freeware product

Quote: "Am i allowed to send this code to my friend over msn ETC?"


Yes Of course you are!

Quote: "Am i allowed to make some changed in the code and post it on this forum ETC?"

Yes but then please say that the original code came from : The Nerd

Quote: "Am i allowed to say i made this?"

Well............ No


INFO ABOUT THE ENGINE :

i also wanna tell you the features of this engine:

Sliding collision(But the wall is invisible)

Really smooth control using the upkey,downkey,leftkey and the rightkey

An enemy object that will follow you.

NEW UPDATE! :

Here is the new features:

A new cube is positioned so when the enemi cube gets too close to the new cube the enemy cube will run away!

Here is the updated Engine: (works in DBPRO and DBC)






THE ENGINE (Works for DBPRO and DBC) :




looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Essence
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 8th Jan 2005 06:50
Really simple, but that collision is'nt really something that i can call collision though.


First DifNiX -> now EvaX.
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 8th Jan 2005 08:07 Edited at: 8th Jan 2005 08:07
It was nice. Could be easly modified and turned into much greater code! Good job! Still waiting to see my banner.

Edit: Woot! You put it up!

Have a heart and join my message board.And now my messageboards work again!Woot!
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jan 2005 17:39
Yes you banner is up and it look great!

Thanks for the comments!



The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Dom
19
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 9th Jan 2005 04:48
Mmmm yes it could be updated. Next you gotta try doing patrol paths and Field of Vision code like me

Come and see my new website at

Thanks to Animeblood for the Logo!
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 9th Jan 2005 06:52
Very cool! I like it . But you should make the enemy stop so he does crash into the player .

Great worK!

AMD Athlon XP 3000+, S3 Deltachrome s8, 512 PC3200 RAM, 160 GB HD
DaedalusX
20
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 9th Jan 2005 07:22
very cool nerd, i tried tinkering with it to stop the 2 boxes crashing into each other but i failed miserably

Daedalus
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 10th Jan 2005 03:17
New update is released!


The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
TEH_CODERER
20
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Jan 2005 03:31
Sort of alright.
The only problems are:
-no matter where you stand as long as you are positioned further back on the z axis than the block you can't be seen
-no matter how far away the enemy goes he can still see you

Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 10th Jan 2005 05:06 Edited at: 10th Jan 2005 05:11
I´ve just made a few simple updates:



Still a few things missing though...
I´ll be working on it

EDIT:
Whoops!
Sorry, the code I´ve been modifying is your OLD AI code....
But please check it out anyways


Check out PanzerGames at http://www.freewebs.com/panzergames
TEH_CODERER
20
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 13th Jan 2005 02:42
Just correcting the grammar:


The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 13th Jan 2005 02:43 Edited at: 13th Jan 2005 02:44
Well what are you guys think of the new update?


The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Untester
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location:
Posted: 4th Feb 2005 16:02
Your code is very simple, but it's very prity.
raven
19
Years of Service
User Offline
Joined: 17th Feb 2005
Location:
Posted: 17th Feb 2005 09:57
this is off topic but anime blood how did you make your site

Login to post a reply

Server time is: 2024-04-25 08:49:50
Your offset time is: 2024-04-25 08:49:50