request: 3d space ship game

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default request: 3d space ship game

    I'm making a 3d space ship combact game but i've some problem with the control of the enemy ship (i can do an IA for it, but i can't think it).
    Do you know some good SW 3d space ship game?
    tnx

    +Dave- Guest

  2. Similar Questions and Discussions

    1. How to build a cruise ship with Illustrator
      For anyone who wants to see what a real pro can do with Illustrator (and some Photoshop), check out the following link. Apparently this was the...
    2. NAME SPACE REQUEST: Cluster::Run
      Cluster::Run is a module which I've been working on for YAPC::NA::2004. I have the code nearly complete, but I'm still working on documentation. ...
    3. Auction Education -->E B A Y<-- merchant ship
      This is a multi-part message in MIME format. --4__D09A2_8._ Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <META...
    4. Which options on a G5 would push ship date back to SEP 29?
      As recently as 2-3 days ago, I read that orders placed for G5's were showing up with estimated ship date on or before August 29, 2003, having been...
    5. Take owner ship of previous Owners Files
      After a Registry crash I had to reinstall the windows system and all the programs. SP1 will not install properly and gain access to various file...
  3. #2

    Default Re: request: 3d space ship game

    -- i've some problem with the control of the enemy ship (i can do an IA for it,
    but i can't think it). --- WHAT??!! :)

    not sure what you mean mate, but I have a bit of an interest in game ai so if
    you could tell me a bit more I may be able to help.

    Des

    Desmond22 Guest

  4. #3

    Default Re: request: 3d space ship game

    i would like to know how to point the enemy ship to my ship, i've made an
    algorithm, and it's work quite fine, but i would like to made a better
    alghoritm.

    this is my pointing alghoritm
    if bersaglio<>oggetto.name then
    if stato="punta" then
    aux2.transform.interpolateto(oggetto.getworldtrans form(), 100)
    aux2.pointAtOrientation=[vector(-1.0000, 0.0000, 0.0000), vector(0.0000,
    1.0000, 0.0000)]
    aux2.pointat(mondo.model(bersaglio).worldposition)
    p1=oggetto.transform.rotation
    p2=aux2.transform.rotation
    if (p1.x>=k and p2.x>=k) or (p1.x<k and p2.x<k) then
    if p1.x>p2.x-k then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
    else if p1.x<p2.x-k then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
    end if
    else if p1.x>=k and p2.x<k then
    if abs(p1.x)+abs(p2.x)-k>=180 then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
    else if abs(p1.x)+abs(p2.x)+k<180 then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
    end if
    else if p1.x<k and p2.x>=k then
    if abs(p1.x)+abs(p2.x)-k>=180 then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
    else if abs(p1.x)+abs(p2.x)+k<180 then
    oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
    end if
    end if

    if (p1.y>=k and p2.y>=k) or (p1.y<k and p2.y<k) then
    if p1.y>p2.y+k then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
    else if p1.y<p2.y-k then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
    end if
    else if p1.y>=k and p2.y<k then
    if abs(p1.y)+abs(p2.y)-k>=180 then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
    else if abs(p1.y)+abs(p2.y)+k<180 then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
    end if
    else if p1.y<k and p2.y>=k then
    if abs(p1.y)+abs(p2.y)-k>=180 then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
    else if abs(p1.y)+abs(p2.y)+k<180 then
    oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
    end if
    end if

    if (p1.z>=k and p2.z>=k) or (p1.z<k and p2.z<k) then
    if p1.z>p2.z+k then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
    else if p1.z<p2.z-k then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
    end if
    else if p1.z>=k and p2.z<k then
    if abs(p1.z)+abs(p2.z)-k>=180 then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
    else if abs(p1.z)+abs(p2.z)+k<180 then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
    end if
    else if p1.z<k and p2.z>=k then
    if abs(p1.z)+abs(p2.z)-k>=180 then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
    else if abs(p1.z)+abs(p2.z)+k<180 then
    oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
    end if
    end if
    end if
    end if

    byz

    +Dave- Guest

Posting Permissions

  • You may not post new threads
  • You may 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