-
[F8] simple A.I
I need a simple A.I in my game but i have no idea how to make one.
Can anyone explain a simple A.I?
-
this is what i got for now.
if (_root.char.hitTest(_root.enemy.sight)) {
_root.enemy._x += 4;
}
if (_root.char.hitTest(_root.enemy.sight)) {
_root.enemy._x -= 4;
}
if (_root.char.hitTest(_root.enemy.sight)) {
_root.enemy._y += 4;
}
if (_root.char.hitTest(_root.enemy.sight)) {
_root.enemy._y -= 4;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|