First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: David Doull | Website: http://www.artifactinteractive.com.au

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!

Comments

  • 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: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.