Simple Shooter Game - Part 1
Tuesday, March 18th, 2008
This set of tutorials with take you through the basics of how to create a simple shooter game. Note that this is the way I do it, not the only way, and feel free to change things as you read as every game maker has a different style. The first part of the tutorial will show you how to make the main player and how you can control it. This tutorial is done completely is Actionscript 3.0, so if you only know AS2, see this post and if you don’t know actionscript at all, go here.
The first step is to draw the main character. We’re going to be controlling him using the WASD or UP, LEFT, DOWN, RIGHT keys to move him, the mouse to aim and mouse click will fire bullets. This is what you’ll be able make after you do this part. After you’ve drawn the character, put it on the stage and give it an instance name of ’ship’.
Now add this code to the main timeline: (more…)