development: resources
wrok / clients
flash games
flash projects
web sites
client list
 
Development (R&D)
resources
current development
 
about artifact interactive
contact

TUTORIAL: Building games in Flash 5
Part 1: Player movement and fire.

Author: David Doull
Date: 23/02/01
Download source files: tut1.zip

Thanks: to Olorin and MadSci from flashkit for their assistance.

Aim: This is the first part of a series of tutorials that cover the techniques involved in building games in Flash 5. This tutorial covers controlling the movement of the player with the keyboard and firing weapons.

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'.

By the end: at the end of this tutorial you will have built a keyboard controlled spaceship that can fly and shoot around the screen, as shown below. You will also have learnt about 'Clip Events', 'keyboard control', 'array style referencing' and 'duplicating movie clips'.


Click anywhere on the black to ensure that the flash file has the 'focus'
Use the arrow keys to move, Ctrl to fire.

OK, lets get going.

Open up Flash 5, set the background colour of the movie to black and on Layer one draw a spaceship. Select the spaceship, a choose Insert and Convert to Symbol (or F8) and make your spaceship a movie clip.

Select this spaceship movie clip and in the Instance panel set the movie clips name to spaceship.

If you don't want to draw a spaceship you can download this fla; tutorial1_part.fla, with this first step already done for you.

 

Next >>