Professional Web Applications Themes

Artificial Inteligence - Macromedia Director 3D

Hi I've been working on a 3D shockwave game recently and I've got to the point where I can explore a 3d environment relatively well, it?s just a case of giving players something to do. I was wondering if anybody can help me out, or give me a link to a tutorial of how to get ?basic? artificial intelligence? When I say basic I do realize I may be greatly contradicting myself, but what I mean is to get an enemy that fires its gun at you within a certain range. At the moment I could just place different enemies ...

Sponsored Links
  1. #1

    Default Artificial Inteligence

    Hi
    I've been working on a 3D shockwave game recently and I've got to the point
    where I can explore a 3d environment relatively well, it?s just a case of
    giving players something to do. I was wondering if anybody can help me out, or
    give me a link to a tutorial of how to get ?basic? artificial intelligence?
    When I say basic I do realize I may be greatly contradicting myself, but what I
    mean is to get an enemy that fires its gun at you within a certain range. At
    the moment I could just place different enemies at different points in the game
    like around the corner, so there is no complicated moving involved. It would be
    a case of the player seeing an enemy by surprise and having to act immediately?





    Sponsored Links
    r1chard..w3lch Guest

  2. #2

    Default Re: Artificial Inteligence

    You could occasionally cast a ray from the enemy's position, along the vector
    from the enemy to the player (you'll want to only include your basic scenery in
    this test, not player or enemy models). If the first object intersected is
    further away than the distance between the enemy and the player, then the enemy
    can see the player. and should take action.

    You can also easily check the distance between the enemy and the player like
    so:

    dist = (player.transform.position - enemy.transform.position).length

    Of course none of this touches on getting enemies to move intelligently around
    your scene, which is a whole other kettle of fish!

    hope this helps!

    - Ben




    duckets Guest

  3. #3

    Default Re: Artificial Inteligence

    Thanks i will look into that ben
    r1chard..w3lch Guest

Similar Threads

  1. Artificial intelligence (AI) has been solved
    By Arthur T. Murray in forum PERL Miscellaneous
    Replies: 3
    Last Post: September 29th, 10:42 PM
  2. Standards in Artificial Intelligence
    By John J. Trammell in forum PERL Miscellaneous
    Replies: 4
    Last Post: September 17th, 04:24 PM
  3. Favourite topic: primary keys (natural vs surrogate/artificial)
    By Donald Halloran in forum Microsoft SQL / MS SQL Server
    Replies: 4
    Last Post: July 4th, 04:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139