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.

DarkBASIC Discussion / help with ai

Author
Message
Bish
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Cyberspace
Posted: 18th Dec 2002 22:25
Hi
I need some help on the ai in a 3d space fighter game. Has anyone got any examples of ai which would help me.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Dec 2002 04:01
if u have studied the distance function and have a variable that determines how far away each ship is to the player ship then u can start to set certain AI criteria.

Imagine if the enemy radar could detect your ship within 500 units or something, this would be a distance condition to make the ship turn and move towards the player.

If the enemy ship was smart enough it would try to avoid u if it was low on a hitpoint variable.

A combination of these attributes gives u a good base start to work with.


In this example we are using a distance function and DBS internal collision functions but we dont need to rely on them its just there in case u need it.




Bish
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Cyberspace
Posted: 19th Dec 2002 18:58
thx for that it was a lot of help
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Dec 2002 02:04

Login to post a reply

Server time is: 2024-04-16 20:42:55
Your offset time is: 2024-04-16 20:42:55