Space Shooter Game
Description: Learn how to write a space shooter game by dissecting the fla
Author: John Bezanis
Added: May 10th 2007
Version: Flash 8
Total Views: 17948
Views in the Past 7 Days: 129
This is a script for a basic overhead space shooter game. At the moment there is no sound and only 2 levels. There is a boss at the end of each level. The ship moves using the direction keys and fires using the ctrl key. There are powerups which give an extra life and one which gives a trishot. There are enemies that fire lazers, enemies that fire trishot lazers, enemies that fire at the player's ship, and enemies that zigzag. There is a boss that has multiple segments like a centipede which has multiple hit areas. The first segment is a head. If a segment which is not the head is destroyed, the next segment becomes a head and breaks off as its own centipede. Stars move in the background. A score is kept and each enemy gives different points when shot. The source fla is well documented with line by line comments. Download it below:
Download Source File
Questions and Suggestions
whenever I try to open up the fla I get a thing that says,
"Flash 6.0 r25 has encountered a problem and needs to close. We are sorry for the inconvenience."
then I can click DEBUG, SEND ERROR REPORT, or DONT'T SEND.
I've clicked on those buttons and none of them work, so what am I supposed to do???
May 27th 2007 12:05PM - person
It may be that your copy of Flash is too old. If you have an older version of ActionScript, this source file may not be compatible.
May 27th 2007 17:05PM - Egan
Is there a way to upgrade my flash so the source file is compatible, or do I have to try to make a space game on my own?
May 27th 2007 19:05PM - person
i have a similar problem but i have flash mx 2004. it says "unexpected file format". Again it might be because you have used flash 8.
May 28th 2007 05:05AM - guy
The file is saved as flash 8. You will need flash 8 or newer to open it.
May 28th 2007 12:05PM - John
i have many flash games in my made games but not a top down shooter tnxs. X)
May 28th 2007 12:05PM - gart
okay, I started trying to make a game like this in flash 6. I got almost everything done but I can't figure out how to make the badguys move back and forth. can anyone tell me how to do this?
May 28th 2007 20:05PM - person
hello peoples i am ur father
May 29th 2007 01:05AM - hash
This is a total rip-off of a game from Duane's Games
duanesgames.atspace.com
May 31st 2007 23:05PM - Duane
I added a third level and am currently trying to add new enemies, but I can't see the code for the existing enemies. It doesn't exist in the frame code, and they don't move by magic. Could you please help me?
June 1st 2007 22:06PM - Egan
Ahh, great to see someone is improving this game. Egan, the code for each enemy type can be accessed by opening up the symbol for that enemy in the library, and then clicking on frame 1 of the ship layer. You'll know there is code because of the little "a", I assume meaning actionscript.
June 2nd 2007 06:06AM - John
Ah, thanks very much. I will post with the altered game soon, if you'd like.
June 2nd 2007 11:06AM - Egan
Hey thanks to you i can finally make some games once i get the hardware thanks again for putting the tutorial down=D
June 2nd 2007 16:06PM - Dragon Master
I have added a new weapon and am in the process of adding a new level. Click my name to play.
June 2nd 2007 19:06PM - Egan
hey buddy cud u just copy da file into a 'note pad' file much easier for every one :)
June 4th 2007 12:06PM - dan
I have successfully added the powerups and lazers for 3 new weapons: a big blue shot that does 5 damage, a double big blue shot, and a pink shot that passes through enemies and does 3 damage. Haven't made much progress on level 3, though.
June 4th 2007 14:06PM - Egan
I have added loads to this game (click my name to play), but I have found that level 1 keeps repeating once. This means that level 1 is level 1, so is level 2 and level 3 is level 2. Does anyone have any ideas to fix this?
June 4th 2007 14:06PM - Ant59
errr wers da tutorial
June 5th 2007 10:06AM - mattypoo
errr did you even bother to read the 1 paragraph under the flash file? it says
"The source fla is well documented with line by line comments. Download it below: "
so download it and never say anything like that again unless you read the page.
June 5th 2007 13:06PM - mattypooisstupid
Just got the game...love it...now modified with 10 levels and no longer space but army men
June 9th 2007 22:06PM - Chris
So...wheres the tutorial?
June 11th 2007 07:06AM - Davie04
Duane beat me to the punch on his comment but I was thinking the exact same thing.
June 11th 2007 12:06PM - M.C. Bus Stop
Thanks for some great source!
As for the h8tr claiming to have invented games like Galaxian and Galaga, lol. Everybody's made a shooter game.
June 28th 2007 17:06PM - Dude
errr my comp with flash 8 on has broken so i'm stuck with flash mx 2004 so could you possibly send me the code
July 4th 2007 16:07PM - Bob
urmum
July 12th 2007 04:07AM - urmum
Hey, this is one of the best tutorials I have worked with, cheers.
Unfortunatly I can't work out how to add more enemies. What bits of code need to be changed? Example if I just duplicate one of the other ememies and change the number to 5 and then add it into the list for level 1, it doesn't appear. What else needs to be done?
Cheers in advance for any help
July 13th 2007 10:07AM - Roxit
roxit you have to set the linkage of the enemy to enemyship5 or something like it. this is the name you have to use in the enemymap.
August 17th 2007 11:08AM - manarius
First of all, this is a GREAT tutorial!
I've been trying to change things around and make the screen scroll sideways instead of down. How do I make the stars go right-to-left instead of up-to-down?
Any help would be greatly appreciated!
Thanks!
August 23rd 2007 03:08AM - slothman
Thanks, starfield is located at position 0,0 on the main level. Open it up and you'll see the code. Swap _x's with _y's and _width's with _height's.
August 23rd 2007 07:08AM - John
Thanks bro, your tutorial is great and very well documented, this is just what i need to make my game for my multimedia class. your a champ, rock on.
September 7th 2007 05:09AM - harry
i wanted to make my own ship with in this game how would i go abouts of doing so?
October 27th 2007 13:10PM - Fawkes
The graphics for the ship are located within the movieclip ship. Frame 1 is the ship i normal state, Frame 2 begins its hit state, And frame 14 is when it is warming up, not able to be damaged. The hit and warming up states use frame labels, so your animation lengths don't need to be the same as the default, as long as you keep the frame labels.
October 27th 2007 17:10PM - John
sorry, dumb question, I can't find the tutorial when I download the file????
December 21st 2007 11:12AM - jen
Hi the game is amazing!!! but could someon tell me how can be change the speed of the stars? I would like to change it for clauds so it should be slower? thanks a lott!!!
January 8th 2008 12:01PM - kuba
how can i edit how the main ship looks in battle?
January 16th 2008 20:01PM - Spencer
how do i make enemies attach to the game and fly toward me?
January 23rd 2008 16:01PM - tyler
I want to do a game controlled for the key. B ut i have seen to other pages and the action script or some thing is different, and it have errors.
Anyone can aid me?
thanks.
visca catalunya lliure!
June 18th 2008 08:06AM - Ramon
Can someone post a version for Flash MX 2004? I have an old version.
Thanks!
July 6th 2008 03:07AM - Totoro
Add a Question or Suggestion






