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.

Newcomers DBPro Corner / Artificial Intelligence help needed!

Author
Message
Doomwad
20
Years of Service
User Offline
Joined: 29th Dec 2003
Location:
Posted: 2nd Jun 2004 04:28
How do I code artificial intelligence in my game. I'm making a basic maze game/shoot 'em up. I want my enemies to walk around until they see my chracter and then they start shooting at him! Can anyone please help me?
Tim Ballisto
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 2nd Jun 2004 04:58
make waypoints at corners so they don't walk through walls and makke them walk from one waypoint to another. and i think there's a tutorial on things being in and out of sight (in the DBC help) i think it's in the static objects section


Programs for programmers.
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 2nd Jun 2004 09:21
As Tim said, make invisible waypoints at each corner of each obsticle. Then have the enemy move to the nearest waypoint that is also closer to the target.

This meathod is not foolproof however. If the enemy ran into a cresent shaped object, he would not be able to find his way out.


...The seeing the player code would be relativly simple if you don't acount for obsticles in the way... more or less, if the enemy is facing the player, and within a certain distance, then the enemy will start fireing...

well... I hope I helped...

Programming isn’t an addiction, its more of a mental and social dependancy.
Social Disease
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: State of Confusion, beyond Denial...
Posted: 3rd Jun 2004 04:09
Welcome to perhaps the most difficult and rewarding aspect of designing a game. Artifical Intellegence. There are may ways to do this, check out the AI depot: http://ai-depot.com for some good ideas.

For path finding I recommend this essay: http://ai-depot.com/BotNavigation/Design-Introduction.html
and this article: http://ai-depot.com/BotNavigation/Obstacle-Introduction.html

I think we are all still mastering this stuff, good luck!


Think Gad fro Spill Chock!
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 3rd Jun 2004 06:07
http://www-cs-students.stanford.edu/~amitp/

Check out the game programming section there. Very good resource.

Login to post a reply

Server time is: 2024-11-26 19:37:20
Your offset time is: 2024-11-26 19:37:20