TUTORIAL: Building games in Flash 5
Part 3: Enemies and collisions.
Author:
David Doull
Date: 11/04/01
Download source files: tut3.zip
Aim:
This is the third part of a series of three tutorials that
cover the techniques involved in building games in Flash 5.
The first two tutorials cover player movement, fire and scrolling
backgrounds - if you haven't read them check them out: tutorial
1 and tutorial 2. This tutorial
will cover enemies and collisions.
Assumed Knowledge:
It is assumed that you have a basic understanding of Flash
and Actionscript. You should understand variables, properties,
if statements and the basics of the flash 5 'dot syntax'.
It is assumed that you have read tutorial 1 and tutorial 2.
By the end:
at the end of this tutorial you will have built a basic flash
arcade game. A simple scrolling space shooting game which
could be the basis for a scramble or defender clone. The tutorial
also covers functions, for loops, random numbers, scoring
and hitTest.
Click anywhere on the black to ensure
that the flash file has the 'focus'
Use the arrow keys to move, Ctrl to fire.