Flash Game Design  
Flash Tutorials Photoshop Tutorials Flash Games
This Flash tutorial will show you how to shoot missiles at objects in flash games.
This tutorial is a continuation of the Basic Space Shooting Game Tutorial, where we'll be making it possible to destroy asteroids with the missiles. If you haven't been following this tutorial, you can download the FLA from here. This next installmentl is divided into the following parts:
1) Creating a Destructable Asteroid (Starts Below)
2) Animating the Asteroid
3) Add Missile / Asteroid Collision Detection
Shooting Objects Flash Tutorial
Part 1) Create a Destructable Asteroid
Step 1.
For this tutorial, you'll need to download the image of a rock below, and then import (File > Import > Import to Stage) it into Flash.
Step 2.
We only need the rock temporarily on stage, so it doesn't matter which layer you import it on. Convert the rock into an MC (movieclip symbol) called 'asteroid'. Later on we'll be using actionscript to attach this MC from the library onto the stage. To make this possible, the MC needs to be given an 'identifier', to make Flash know that we want to do this and to also make it unique. You can give the MC an identifier by checking 'Export for Actionscript'. The identifier should automatically be named the same as the MC.
Step 3.
Go into the asteroid MC and then convert the rock image into another MC called 'rockMC'. You don't need to give it an identifer.
Step 4.
Now that the rock is contained in an MC, we can create some instances of it to form an asteroid. So first of all create a new layer called 'rock 2' and drag another copy of rockMc from the libray onto this layer. To make the asteroid appear more random, rotate the 2nd rockMc counter clockwise (modify > transform > rotate 90 CCW), as shown in image b)
a)   b)
Step 5.
Add another copy onto the layer 'rock 3', but this time rotate it clockwise (modify > transform > rotate 90 CW)
a)   b)
Step 6.
Add an 4th and final rockMc onto layer 'rock 4', this time rotating it counter clockwise again.
a)   b)
Next go to Part 2) Animating the Asteroid
Part: 1 | 2 | 3
Top Flash
Create a Spot the Difference Game
Create a Shooter Game
Flash Gallery Tutorial
Flash Website Tutorial
Game Websites
Hidden Object Games
Tower Defense Games
Hunting Games
Site Copyright © 2006 - 2011 Nick DS. All rights reserved.