Warning: Declaration of thesis_comment::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::start_el(&$output, $comment, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_el(&$output, $comment, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /nfs/c03/h08/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
AS3 Avoider Game Tutorial — Michael James Williams

AS3 Avoider Game Tutorial

I’ve written a tutorial that will take you from being a complete beginner at Flash (as in, you just downloaded the trial version ten minutes ago) to learning how to use it to create your first game.

Note that I said ***learn***. This isn’t about taking a finished game and poking at it so that you can pretend you made it yourself. This is about getting to grips with ActionScript 3, the programming language that powers pretty much every Flash game made today.

By the end of this twelve-part tutorial, you’ll understand how to:

– control as many enemies as you like on-screen at once
– save and load data, like high scores
– generate new levels to keep the player’s interest

OK, the game you’ll end up with won’t be gracing the front page of Kongregate any time soon. But the *concepts* you’ll learn will give you a solid foundation. They’ll be your first step towards creating a truly great game.

Click here to start the tutorial, or use the table of contents to skip to a specific part:

1. The Basics
2. Multiple Enemies
3. Game Over
4. Menus and Buttons
5. A Score and a Clock
6. Several Small Improvements
7. Keyboard Control
8. Adding a Preloader
9. Music and Sound Effects
10. Multiple Levels
11. Saving and Loading
12. Garbage Collection

Thanks to Frozen Haddock for allowing me to base this on his original AS2 tutorial.

Once you’ve finished all twelve parts of the tutorial, check out AvoiderGame.com. It’s a joint project between Frozen Haddock and myself that anyone can contribute to, with tutorials that build on these basics.

*This tutorial is also available in Spanish, Polish, Italian, and French.*