The Daily Click ::. Forums ::. Klik Coding Help ::. Time for a newbish question!
 

Post Reply  Post Oekaki 
 

Posted By Message

Toxic



Registered
  02/11/2004
Points
  61
12th January, 2005 at 21:10:30 -

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.

 
Look me in my brand new eyes.

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
13th January, 2005 at 03:49:13 -

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.

Image

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
13th January, 2005 at 07:21:10 -

"Sad seeing how people just keep doing things that they're not too good at."
Thats stupid, how else are they going to improve.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
13th January, 2005 at 07:48:20 -

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.

Image

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
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.

 
Old member (~2004-2007).

daveC04



Registered
  26/09/2004
Points
  163
16th January, 2005 at 07:07:19 -

THERE IS NO RED VS BLUE! ITS ALL A LIE!

 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
16th January, 2005 at 08:04:00 -

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".

 
- Tigerworks

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
16th January, 2005 at 10:22:51 -

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...

 
www.thenatflap.co.uk

Toxic



Registered
  02/11/2004
Points
  61
19th January, 2005 at 22:47:01 -

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?

Thanks.

 
Look me in my brand new eyes.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
19th January, 2005 at 23:08:56 -

Y'know, I agree with what Muz is saying. I don't know whether or not it applies in this guy's case, but he's not wrong.

 
n/a

Toxic



Registered
  02/11/2004
Points
  61
24th January, 2005 at 22:06:57 -

Someone must know...

 
Look me in my brand new eyes.

vortex2



Registered
  27/05/2002
Points
  1406
24th January, 2005 at 22:17:24 -

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.

 
A bit of insanity with every bite!
   

Post Reply



 



Advertisement

Worth A Click