Be a Supporter!

Ai Help

  • 380 Views
  • 9 Replies
New Topic Respond to this Topic
burgerandfries
burgerandfries
  • Member since: Mar. 25, 2012
  • Offline.
Forum Stats
Member
Level 08
Programmer
Ai Help 2012-09-26 16:54:58 Reply

Does anyone have any codes that can make an enemy follow a movie clip and while avoiding other movie clips like walls at the same time?

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Ai Help 2012-09-26 17:12:56 Reply

At 9/26/12 04:54 PM, burgerandfries wrote: Does anyone have any codes that can make an enemy follow a movie clip and while avoiding other movie clips like walls at the same time?

Yes, some of us have the code to do that. No, no one will give it to you. You have to figure that out for yourself; but first get more experienced with programming before you tackle something like AI.

burgerandfries
burgerandfries
  • Member since: Mar. 25, 2012
  • Offline.
Forum Stats
Member
Level 08
Programmer
Response to Ai Help 2012-09-26 17:16:01 Reply

Well actually i know how to program good. If all you are to do is criticize me and not help, its probably better if you dont reply at all MSGhero

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Ai Help 2012-09-26 17:23:54 Reply

At 9/26/12 05:16 PM, burgerandfries wrote: Well actually i know how to program *well*. If all you are to do is criticize me and not help, its probably better if you dont reply at all MSGhero

Programming is also planning and problem-solving, not just typing words and copying what other people have already done. It's not so simple as copying and pasting code anyway; the code is oftentimes specific to your game only.

burgerandfries
burgerandfries
  • Member since: Mar. 25, 2012
  • Offline.
Forum Stats
Member
Level 08
Programmer
Response to Ai Help 2012-09-26 17:26:41 Reply

I know but, im not asking to copy people, I just need some suggestions on how to avoid the walls.
I already got down how to follow the movie clip i just need help on avoiding walls

egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to Ai Help 2012-09-26 19:31:50 Reply

At 9/26/12 05:26 PM, burgerandfries wrote: I know but, im not asking to copy people, I just need some suggestions on how to avoid the walls.
I already got down how to follow the movie clip i just need help on avoiding walls

depends on what you're using to follow another MovieClip. There's several ways I can think of off the top of my head.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Ai Help 2012-09-26 22:15:53 Reply

Yeah, there's no easy solution for this, it depends a lot on what exactly your games is like and what you expect from your enemies, AI is a field of study, it's not something that can just be explained, I'd suggest you do some research.


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
burgerandfries
burgerandfries
  • Member since: Mar. 25, 2012
  • Offline.
Forum Stats
Member
Level 08
Programmer
Response to Ai Help 2012-09-27 09:09:18 Reply

Thanks for the suggestions. :)

zeefoes
zeefoes
  • Member since: Jul. 31, 2009
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Ai Help 2012-09-27 19:21:50 Reply

At 9/27/12 09:09 AM, burgerandfries wrote: Thanks for the suggestions. :)

I've got some C++ code with wall avoidance, if you're able you can convert it to .as3? Shotty a copy of that script tho.


thanks

burgerandfries
burgerandfries
  • Member since: Mar. 25, 2012
  • Offline.
Forum Stats
Member
Level 08
Programmer
Response to Ai Help 2012-09-28 16:49:07 Reply

I can try to convert it. Thanks :)