The Daily Click ::. Forums ::. Klik Coding Help ::. Top View AI
 

Post Reply  Post Oekaki 
 

Posted By Message

Ryan▫S



Registered
  25/10/2003
Points
  161
16th February, 2004 at 06:11:04 -

Okay here's the deal. I need someone to either code a bit or tell me how to code Top View enemy AI. its a shooter and i need to make it so that enemies turn appropriatly when the are running in to walls. i dont want to use any pathfinder things i want it to use only about 3-4 active objects per enemie (collider, animation and detector)
i have made one but they go jittery when the look at a wall. REALLY need help

will even put your name in the credits! (Scraping the bottom of the barrel eh?)

PLEASE

EDIT: I use mmf by the way

Image Edited by the Author.

 
Gah!

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
16th February, 2004 at 08:39:41 -

try using a tree-based pathfinding algorithm

 
Beware of life ...so far noone have survived it.......

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
16th February, 2004 at 10:33:54 -

"i dont want to use any pathfinder things"

good luck, then

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Kramy



Registered
  08/06/2002
Points
  1888
16th February, 2004 at 12:48:22 -

If they jitter when touching a wall, make sure they move when the colliders are NOT over anything, instead of moving, then moving back if they ARE over something.

 
Kramy

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
16th February, 2004 at 18:26:41 -

wouldnt they just stop then?

you could try making the levels set out so its impossible for an ai controlled character/enemy, to hit a wall.

 
.

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
18th February, 2004 at 16:35:36 -

with MMF you can use the collision mask condition instead of detectors to create a fairly advanced AI that doesnt even hit walls. do a good old article search: look out in particlar for one by jannis stoppe which you'll need for it to work properly.

 
www.thenatflap.co.uk

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
18th February, 2004 at 18:27:29 -

Pull the pathfinding events out of this example (already prepared for multiple objects):
http://www.clickteam.com/CTforum/showthreaded.php3?Cat=&Board=upload&Number=200815&Search=true&Forum=upload&Words=RTS%20movement&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=200815

 
n/a
   

Post Reply



 



Advertisement

Worth A Click