How do i make enemy planes?

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?

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.

convienently titled [url=“http://www.kirupaforum.com/forums/forumdisplay.php?s=&daysprune=&f=42”]Game/AI Programming

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

Prophet.

Ok should I do that now?

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

Prophet.

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

Your game sounds like mine (TAC2), 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 tutorials.

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

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.

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