Home Simple Moving Target Game
Simple Moving Target Game PDF Print E-mail
Written by Geoff Hill   
Friday, 02 April 2010 09:52

In the previous tutorials, the emphasis has been on variables and learning how to display dynamic (changing) text and numbers in flash games. In this tutorial, you will create a number of movie clips (sprites) for the game and actionscript will be attached to the clips to control game play.

The Game: Pop the Balloon

The player has a preset number of clicks to hit as many balloons as possible. Each time they click the mouse the click count increases. If they hit the balloon the score is incremented and the balloon pops. If the balloon makes it across the screen without being hit, the miss count is incremented. When the player has used all their clicks the game is over.

Learning Outcomes:

  • Use movie clips to create game elements.
  • Create layers to store and display game elements.
  • Use a movie clip as a cursor during game play.
  • Use dynamic text variables to store and display score, clicks and misses.
  • Use actionscript to write game functions and control game play.

 

Pop The Balloon game layout
Pop The Balloon - game layout

NOTE: In this game the target (balloon) and cursor movie clips are placed out of the scene and are moved into game play when the game begins.

 

 
Copyright © 2012 geoffhill.com.au. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.