First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: David Doull | Website:

Step 1: Creating something to fire at!

First we are going to create some enemy spaceships to fire at.

Open up the source file from the end of tutorial 2.

On the main Timeline create a new layer and call it enemy.
On this new layer draw an enemy spaceship. Select the enemy spaceship, choose Insert and Convert to Symbol (or F8) and make your enemy a movie clip.

Select this enemy movie clip and in the Instance panel set the movie clips name to enemy1 (as shown below).

If you don't want to draw the enemy spaceship you can download this fla in the downloadable zip file, with this step already done for you.

The enemy spaceships:

Our game is going to follow a typical space shooting game structure. The enemy spaceships are going to move across the stage from right to left. The player will need to either dodge or shoot the enemies. If the player shoots an enemy it will explode. If an enemy collides with the player the game will be over.
We will use duplicateMovieCip to create multiple enemy ships.

Random start locations

Our enemies are going to start just to the right of the screen and move left. However if all the enemies started at the same location the game would be very easy and boring. We need to introduce a random element to the game. So all the enemy spaceships will start at the same x-position (to the right of the stage) but will each have a random y-position.

We will also make the enemy speed random, to add an extra challenge to the game.

» Level Intermediate

Added: 2001-05-04
Rating: 9 Votes: 517
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.