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 / Multiple enemies of one sort.

Author
Message
Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 6th Jun 2007 11:48
I am planning an fps game, because they are the simplest to do, i think, and because there is much emotion they convey and still many technical aspects to explore. A question i have is what is the best way to go about coding multiple enemies of the same sort? Lets say that i want to have 15 zombies strewn about my level, can i use some array database to control each one based on their general info, or how would you go about doing something like that?

Thanks in advance for any help.
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 6th Jun 2007 23:22
You can allways use types,as those can store data in a few lines of codes,with allmost unlimited DIFFERENT pieces.
Code Dragon
18
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 6th Jun 2007 23:31
These tutorials are probably exactly what you're looking for.

http://www.thegamecreators.com/data/newsletter/newsletter_issue_28.html#9
http://www.thegamecreators.com/data/newsletter/newsletter_issue_29.html#9

I just finished the basic entity (not enemy system because it does player and NPCs too) system in my FPS by the way. Each entity can have it's own name, 3d object, health, walking speed, and turning speed. Hundreds of completely different entities can be controlled in just 100 lines of code.

You never really know a person until you look at their google autocomplete entries.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 6th Jun 2007 23:59
Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 7th Jun 2007 00:49
Wow, lots of responses real quick. Thanks, i will go ahead and take a look at those tutorials before i do too much else.

Also, is there an A* path finding algorithm available that uses way points instead of a grid based system? I really dont want to have my level designs restricted to a grid based schematic.
BrokenGlass
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location: In teh lab coding
Posted: 7th Jun 2007 05:52
Use arrays or types

Current Project: Learning DBP

Login to post a reply

Server time is: 2024-11-25 17:52:17
Your offset time is: 2024-11-25 17:52:17