Ok, here it goes.
Say I was making a game with 2 teams, red and blue. Each team had three members, Red1, Red2, Red3, and the same for the blue team. Now, if the teams fight, and it ends up that all the reds survive after ganging up on Blue1, how do I get them to go after the other two blues, and do the same for the blue team?
I know there's probably some simple solution, but I'm not too good with figuring these things out. Any help is appreciated, thanks.
Uh...
Blue 1 dead, Blue 2 alive, Blue 3 alive:
Pick (blue qualifier) at random
Attack
Solve your problem?
Hmm... if you're not too good at figuring these things out, maybe you should try your hand at graphics or game design (not programming) instead... or at least specialize in programming something other than AI. No offense, just a thought. Sad seeing how people just keep doing things that they're not too good at. Damn wannabe engineers *ramble, ramble*.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
No, I mean, things that people just can't be good at. Some people just don't have the natural logic to do programming, though they can improve ever so slightly. Some others just don't have the natural artistic skills to do art, though they can improve.
Point is, people can get better, but their best is far worse than some other people's best.
I wonder why I keep using confusing sentences lately :/.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
16th January, 2005 at 06:53:38 -
Maybe he's new. bie.
Besides, two years ago I was no good at all, either, but now I'm ok.
Muz, shut the hell up. When I started TGF years ago I wass the biggest n00b-ass ever. Now I'm doing extensions in C++. Just help people, and stop making posts which smell of "OMG WTF THE COMMUNITY IS DYING".
Inexperience of a program does not relate to how well you understand what you know. It's more obvious when using things like C++ where there is only a small set of commands, rather than object-orientated things like TGF that have several different commands geared towards different things. You have to combine many of the small set to do something, whereas you need to know the select few commands and/or objects to use from Click in order to do what you want. Unless you know the commands, you can't use them, and you can't solve certain problems.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
16th January, 2005 at 11:53:36 -
yeah, just because he doesn't know how to do something doesn't mean he's doomed to failure, muz...
Ok I figured out a different system for the AI, and it works good, but there's one more problem.
Ok say two units were targeted on eachother, but they were on opposite sides of a wall and they just tried to go through it to get to eachother. How would I go about programming them to go around it to get to eachother?
Use the pathfinding extension, if you are using a level editor it would be a simple case of adding the wall as an obstacle and then computing a path and walking along it, but if your not, you should just spread a value in the wall object, run a loop, and on the loop add the wall as an obstacle in the pathfinding object then once again computer the path.