Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Basic A.I
Topic Started: Feb 28 2006, 05:08 AM (404 Views)
smoscar_01
Member Avatar
Mid-Level ActionScripter
Quote:
 
ok cool.... so how do i do that then? sorry if im asking too much but i dont know an awful lot of AS.


Do what men?? :worry: you need to think if the enemy is going to shoot back at you or attack you just by trying to catch you then comes the code :lol:

Quote:
 
this tread is interesting  ...is there a way to script a more real AI??


Remember that AI is just a human intelligence simulation try, so what kind of simulation you have on mind bracks?
Offline Profile Quote Post Goto Top
 
clayt
Member Avatar
I'm not crazy... ask my toaster!
smoscar_01
Mar 3 2006, 09:12 AM
Do what men?? :worry: you need to think if the enemy is going to shoot back at you or attack you just by trying to catch you then comes the code :lol:

Well... we have the patrol working and we have him to chase the player when the player gets close but i need him to attack when hes stop so as im running from him hes chasing me if i stop he stops and attacks...

Do you know what i mean?
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
Oh yeah now I know

then the enemy must not be faster than our character (remember that we add 1 to his speed?) and you should ask inside the chasing conditional that if position at x propertie of enemie - position at x propertie of character < a short distance then the enemy should attack: traducing that...

Code:
 
if ((enemie._x-character._x)<75){
  enemie.gotoAndPlay('attack');
  //heres where I told you that you had to decide how the enemy was going to attack
}


:lol:
Offline Profile Quote Post Goto Top
 
bracks
Member Avatar
Brackenwood Lightweight
Quote:
 
Remember that AI is just a human intelligence simulation try, so what kind of simulation you have on mind bracks?


what I had on mind was some sort of self learning software, like a chess player or smthn It can be done?
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
:o you meant a chess player that can actually improve its strategy? :o

that could be one of the greatest codes that no one would ever write lol, remember that the only thing that differentiate us from computers is the intuitive appreciation and creation of new ideas, things and arts...for now :lol:

or maybe I just badly understood your reply :P
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply