Flash Tutorials Photoshop Tutorials Flash Games Flash Game Design
Shooting Objects Flash Tutorial
Part 2) Animating the Asteroid
Step 7.
In the previous part we formed an asteroid, using 4 instances of the rockMc. In this 2nd part we're going to animat the rock destructing, which will be triggered when a missile from the ship hits it.
 
Step 8.
Highlight frame 40, of all 4 layers, and then create a key frame (F6) for each of them.
 
Step 9.
Zoom out to 50% and move each rock, on frame 40, away from its original position. The rockMc's will need to move outside of the screen area, so you may need to come back to this later, if they don't reach that far.
 
Step 10.
Highligh a frame of all 4 layers, right click and choose 'Create Motion Tween'. The rocks should now move, as you move the timeline play head from left to right.
Step 11.
The rocks need to stay together, until the asteroid is hit, so we need to create a stop() action on frame 1. I've done so on a 5th layer called script.
Step 12.
When the asteroid is hit, the animation will play, but we need to create another stop() action at frame 40, so that it doesn't play again. We also need a way of knowing when the animation has reach frame 40, so restart variable is set to 'true'.
Next go to Part 3) Animating the Asteroid
Part: 1 | 2 | 3
 
More Flash Tutorials
 
 
   
     
     
 
Navigation
Flash Tutorials
Photoshop Tutorials
Flash Games
War Games
 
 
 
 
 
 
 
Top Flash
Create a Spot the Difference Game
Create a Shooter Game
Flash Gallery Tutorial
Flash Website Tutorial
Flash Glitter Graphic
 
 
 
 
 
 
Game Websites
Happy Wheels
Tower Defense Games
Hunting Games
Mario
 
 
 
 
 
 
 
 
     
Site Copyright © 2006 - 2011 Nick DS. All rights reserved.