Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: request:enemy A.I.  (Read 2637 times)

0 Members and 1 Guest are viewing this topic.
request:enemy A.I.
« on: April 09, 2006, 03:08:34 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 448
Just need some help with enemy AI. Some simple when within distance they attack, ect.
Logged

Piers

Re: request:enemy A.I.
« Reply #1 on: April 09, 2006, 04:03:48 am »
What program and what type of enemy?
Logged
Re: request:enemy A.I.
« Reply #2 on: April 09, 2006, 07:43:23 am »
  • The Broken King
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1259
You need to supply more information, we can't help you unless you help us first. I'm guessing by your code that you need a guard? If so, then I can give you some simple pseudocode:

If link is within a certain radius:
 move towards link

if I'm moving towards link and he gets too far away:
 stop moving towards link

if I'm not moving towards link, but I'm also not moving:
 pick a random direction, move in that direction

it's pretty basic stuff. If you want, you can add a delay in there before it moves, and make it look around, etc. That's all the help I can offer now wiht what info you've given though.
Logged
  • Broken Kings [Temp Site]
Re: request:enemy A.I.
« Reply #3 on: April 09, 2006, 08:23:34 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 448
I always ferget 2 add the details  ;D Its GM 6 and deku baba.
Logged
Re: request:enemy A.I.
« Reply #4 on: April 10, 2006, 03:21:09 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1902
Just use a timeline, set it so at, step 20 or so, he pops out of the ground, then shoots, then goes back in, then restart the timeline, that's probably one of the simplest ways.
Logged


.TakaM was here.
Quote
so my friend stole a giant bag of ketchup out of the ketchup pumping things and brought it to our table and we took it in the bathroom and i smashed it over the sink and kicked it around the bathroom and smeared it everywhere and we all took turns kicking the ketchup out of it and when we were done it looked like an african village was murdered in the bathroom
XFD.
  • Awesome Land
Re: request:enemy A.I.
« Reply #5 on: April 10, 2006, 03:14:15 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 506
Just use a timeline, set it so at, step 20 or so, he pops out of the ground, then shoots, then goes back in, then restart the timeline, that's probably one of the simplest ways.

That's a deku scrub :D
Logged

pxl_moon (dotyue)

Team Dekunutz
Re: request:enemy A.I.
« Reply #6 on: April 19, 2006, 09:33:44 am »
  • .越//
  • *
  • Reputation: +5/-1
  • Offline Offline
  • Gender: Male
  • Posts: 2280
sry for bumping... but i think someone should make a few enemy ais of zelda... because thats a hard part for a gm noob, a few years ago i tried that too.... one enemy wasnt the problem, two of them was a problem... if someone makes a few "default" enemys i would say these ai's would be good:

- Soldier ( sword, lance, bomb, archer )
- Octorock ( goes random and spits a rock )
- Bird ( flys over you )
- bat ( flys when link comes near.... stops flying somewhere else)
- rat ( just goes random )
- geldman ( comes out of the sand and goes random )

i think from that could even a gm noob make his other enemys he needs ^^

but i'm one myself
Logged

~~Resources~~
~Minish Cap Style~

Minish Cap Beta:Firerod Icon, Majoras Mask:ChuChu, Ocarina of Time:Gossip Stone, Oracle Series:Link plays the "Herpes of Ages", Impa, Wand Maker: HUD
~GB-Zelda Style~
Ocarina of Time: Deku Caca
~Other~
Paper Mario Style Zelda&Link, Tetra Trackers HUD-Cleanups

Re: request:enemy A.I.
« Reply #7 on: April 19, 2006, 05:40:49 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6206
If you can't make enemy A.I I don't think you're skilled enough to make an Zelda game or something.
Logged
Re: request:enemy A.I.
« Reply #8 on: April 20, 2006, 01:03:10 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 563
If you can't make enemy A.I I don't think you're skilled enough to make an Zelda game or something.

Agreed but then AI can if you want it good be one of the most complex things, lttp badguys were not exactly advanced though hehe.
Logged

I ♥ Open Girlfriend (What!? I didn't add this.. must have been Solly!)
  • My DevArt Account
Re: request:enemy A.I.
« Reply #9 on: April 20, 2006, 01:28:27 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 121
and a snake the ones that charge at you.
Logged
Re: request:enemy A.I.
« Reply #10 on: April 22, 2006, 01:55:46 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 448
ok heres what ive got for the deku baba so far under step event: if distance_to_object(objlink)=20, what next?
Logged

Fox

Turnbeutelvergesser since 1988.
Re: request:enemy A.I.
« Reply #11 on: April 22, 2006, 09:06:20 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
There's an action missing what to do next if the variable you wrote is true.
Logged
  • Me on deviantART

Brouhaha

Re: request:enemy A.I.
« Reply #12 on: April 24, 2006, 04:45:57 am »
A.i. is a complicated thing and something i've been interested in. There's just so many different variables and things to take into consideration so when i started programming A.I. i started off with the chicken A.I. that in itself was difficult but i pulled it off if anyone wants it.
Logged

Hosma293

Re: request:enemy A.I.
« Reply #13 on: October 18, 2006, 09:36:51 am »
Yes, plz post chicken ai :)
Logged
Re: request:enemy A.I.
« Reply #14 on: October 18, 2006, 12:50:46 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 647
Holy !@#$%, nice bump.
Logged
Re: request:enemy A.I.
« Reply #15 on: October 18, 2006, 05:54:53 pm »
  • Minalien
  • *
  • Reputation: +10/-1
  • Offline Offline
  • Gender: Female
  • Posts: 2119
Soul rivers, please dont Rent-A-Mod. Hosma, please dont bump old topics. This topic was old enough for you to create a new topic if you need chicken AI. While you're at it, you should be a bit more descriptive :/
Logged
Quote
There's such a double standard about religion in the modern world. Catholics can gather, wear white robes, and say "In nomine Patris, et Filii, et Spiritus Sancti" and be considered normal.

But if my friends and I gather, wear black robes, and say  "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn", we're considered cultists.
  • Development Blog
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.044 seconds with 70 queries.

anything