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

Post Reply  Post Oekaki 
 

Posted By Message

Animall33t



Registered
  19/12/2003
Points
  2
20th December, 2003 at 04:34:31 -

Im makin a Game that is still untitled. Its a top down shootem up and it has a really neat control scheme. You move with the arrows but shoot with the mouse. To clear a room and move on you have to defeat all the enemies. And thats where I need help
I want my enemies to move smart I just dont want a predictable path movement. I want them to shoot when its a good time and to use objects as cover, (The only cover are trees) Any Ideas?

 
n/a

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
20th December, 2003 at 04:56:03 -

What are you using to make it?

 
gone fishin'

Animall33t



Registered
  19/12/2003
Points
  2
20th December, 2003 at 05:03:20 -

TGF

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
20th December, 2003 at 09:04:04 -

what I usually do is use value c of the bad guy as an AI counter. Then when that counter = 1, look at the player, =2 shoot, =3 and a tree is closer than 50 pixels, look at the tree.

 
Craps, I'm an old man!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
21st December, 2003 at 04:42:59 -

if you want him to predict movement, have an invisible object shot out of your player in his current direction and make the enemy shoot at that when it's X pixels away from the player. as for finding cover, you'll need to use collision mask to find backdrops, so thta means getting MMF i'm afraid. unless you just bounce the guy randomly around until he stops getting hit and assumes it's cover, but that would look a little odd.

 
www.thenatflap.co.uk
   

Post Reply



 



Advertisement

Worth A Click