# How do i make enemy planes?

**URL:** https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334
**Category:** Uncategorized
**Created:** [August 13, 2004, 3:51pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334 "2004-08-13T15:51:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Cobra\_Banshee](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@Cobra\_Banshee](https://forum.kirupa.com/u/Cobra_Banshee)
#### Post date: [August 13, 2004, 3:51pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/1 "2004-08-13T15:51:26Z")

</div>

Alright, I’m making a game where you control a plane and shoot down enemy planes. I need the script how to shoot with an aircraft and it is not controlled with a mouse, like I found on this site. I also need the script so the enemies spawn from random places from the right, going to the left and sometimes shooting.

Now you know my story. Can anyone help me like guiding me on the right way or give a link to a tutorial for Flash MX?

---

<div class="post-metadata">

### Author: ![coolname](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@coolname](https://forum.kirupa.com/u/coolname)
#### Post date: [August 13, 2004, 3:54pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/2 "2004-08-13T15:54:12Z")

</div>

Do they just shoot randomly, or do you want them to have some ai?

---

<div class="post-metadata">

### Author: ![Cobra\_Banshee](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@Cobra\_Banshee](https://forum.kirupa.com/u/Cobra_Banshee)
#### Post date: [August 13, 2004, 3:59pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/3 "2004-08-13T15:59:05Z")

</div>

> [@coolname](#):
>
> Do they just shoot randomly, or do you want them to have some ai?

Well, some of them could have enough AI to aim, some just shoot randomly and some just flying straight forward, making kamikaze and hope that they ram the player.

---

<div class="post-metadata">

### Author: ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)
#### Post date: [August 13, 2004, 5:48pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/4 "2004-08-13T17:48:18Z")

</div>

convienently titled [[url=“http://www.kirupaforum.com/forums/forumdisplay.php?s=&daysprune=&f=42”]_Game/AI Programming_](http://www.kirupaforum.com/forums/forumdisplay.php?s=&daysprune=&f=42)…

dont spose you coulda tried posting in there first? (coz thas wer this thread really belongs… ;))

Prophet.

---

<div class="post-metadata">

### Author: ![Cobra\_Banshee](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@Cobra\_Banshee](https://forum.kirupa.com/u/Cobra_Banshee)
#### Post date: [August 13, 2004, 6:50pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/5 "2004-08-13T18:50:20Z")

</div>

> [@Prophet](#):
>
> convienently titled [_Game/AI Programming_](http://www.kirupaforum.com/forums/forumdisplay.php?s=&daysprune=&f=42)…
> 
> dont spose you coulda tried posting in there first? (coz thas wer this thread really belongs… ;))
> 
> Prophet.

Ok should I do that now?

---

<div class="post-metadata">

### Author: ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)
#### Post date: [August 13, 2004, 6:57pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/6 "2004-08-13T18:57:33Z")

</div>

🙂 more likely to get helpful replies in there (given the subject of your question) so yer, i wuld!

Prophet.

---

<div class="post-metadata">

### Author: ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)
#### Post date: [August 13, 2004, 8:10pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/7 "2004-08-13T20:10:09Z")

</div>

Moved this thread to Game/AI, no need to post a new one 🙂

---

<div class="post-metadata">

### Author: ![firestorm9527](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@firestorm9527](https://forum.kirupa.com/u/firestorm9527)
#### Post date: [August 14, 2004, 7:42am UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/8 "2004-08-14T07:42:44Z")

</div>

Your game sounds like mine ([TAC2](http://www.firestorm.wisecomputing.biz/TAC2.htm)), but its a very common idea for games.

Anyway asking for scripts will most likely reward you with the answer of, “Do it yourself.” People encourage others to look up the information and practice it so you learn someting. The tutorials here work great for me. Sounds like you could use the [shooting, [url=“http://www.kirupa.com/developer/actionscript/tricks/random.htm”]random, and [url=“http://www.kirupa.com/developer/actionscript/random\_motion.htm”]random movement ](http://www.kirupa.com/developer/mx/fire.htm)tutorials.

Makeing games is tough, but rewarding. Good luck! :thumb:

---

<div class="post-metadata">

### Author: ![Cobra\_Banshee](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@Cobra\_Banshee](https://forum.kirupa.com/u/Cobra_Banshee)
#### Post date: [August 14, 2004, 9:46am UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/9 "2004-08-14T09:46:15Z")

</div>

Thanks for the help, but i want to shoot with the space button instead of the mouse, but I think that I can figure out that, well, i hope so. Thanks for the help.

You have done a cool game, by the way.

---

<div class="post-metadata">

### Author: ![Plasmic\_Steve](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/plasmic_steve/32/361_2.png) [@Plasmic\_Steve](https://forum.kirupa.com/u/Plasmic_Steve)
#### Post date: [August 16, 2004, 7:47pm UTC](https://forum.kirupa.com/t/how-do-i-make-enemy-planes/119334/10 "2004-08-16T19:47:43Z")

</div>

Cobra, let me know if you haven’t been able to figure this out - if you’re still stuck, I can help you.
