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.

3 Dimensional Chat / Enemy AI

Author
Message
RCON
22
Years of Service
User Offline
Joined: 20th Apr 2003
Location:
Posted: 9th Dec 2003 19:37
I am working on a game where you are in a maze with robots that hunt you down in the maze. Everything was working fine, but the last two patches have broken the way my AI worked.

My AI worked like this, the enemy had 3 objects that where used as sensors (front, right, left), if a object was not colliding with another object, then the enemy could turn. Then it calculated the angle to you and turned towards you. It did this until it found you and you either shot it or it killed you.

Now it used to work fine, and you may be wondering why I don't go back to an older patch. That is because of the other things the new patches fix.

So does anyone have any ideas on how to either help me fix my collision detection or know a better way to give the robots enough brains so they don't walk through the walls and bump into things?
Loque
21
Years of Service
User Offline
Joined: 9th Dec 2003
Location: somwhere, out there
Posted: 9th Dec 2003 21:14
Create a pathFinder() function that will find out the coordinates of a clear path through the maze. Then have the AI check which part of the path the player is on, then set that as their course; make them go to each of the relay data points to follow the course.

Login to post a reply

Server time is: 2025-05-13 21:02:24
Your offset time is: 2025-05-13 21:02:24