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 / Gah, making simple enemy AI for a FPS

Author
Message
Seraf
20
Years of Service
User Offline
Joined: 22nd Feb 2004
Location:
Posted: 27th Feb 2004 03:14
Just wondering what an easy and simple way to make enemy AI for a FPS game. All I need the enemies to do is attack the player and run around looking for the player.

Also how could I make "Life" points for the Player,

such as

100 Health and then display the current Ammo for the weapon that the player is currently using. And when the player is struck by an enemy attack his/her health will drop say 10 points of life and the Ammo will decrease as they shoot.

The enemies I want them to be able to take around 3 bullets before they die, how would I set up the enemies life to do this as well?
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 27th Feb 2004 03:29
Hello Seraf,

I'm probably not the best one to help you with A.I, yet I can lead you into an excellent tutorial.

http://developer.thegamecreators.com/?f=t01/3d_tutorial_index

I have made a tutorial on Health boxes, that may be of some assistance to you.

http://curvedbasic.dbspot.com/DBTutorial.htm

Basically, you create a box on the screen, and when you get hit by the enemies bullet you'd subtract from your health variable.

For example, let's say the enemies bullet was a sphere with the object number 2 and you're object number 1.



Combined with my above health box tutorial, this will subtract 10 from your health.

Then, you can simply have something like this to decide if you die.


This will end your game.

Please post if further help is needed, and I'll try to assist you.



A book? I hate book. Book is stupid.

Login to post a reply

Server time is: 2024-11-26 05:35:25
Your offset time is: 2024-11-26 05:35:25