A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] simple A.I

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    8

    [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?

  2. #2
    Junior Member
    Join Date
    Apr 2008
    Posts
    8
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center