Blog

Maze Avoider Tutorial

By Stephen R. Owens - Published: August 19, 2007


Software Required: Flash MX
Skill Level: Beginner

This tutorial will walk you through building a basic level for a mouse avoider type game, where the mouse cursor cannot touch the walls or enemies. Sections include: setting up the firsrt scene; creating the player character; building the walls (maze) with begin and end buttons; adding a very basic stupid enemy. Play the demo now to see the finished product of this tutorial.

How to play the Mouse Avoider Demo:

  • Move the mouse to move the hero.
  • The player character cannot touch the walls or the moving enemies.
  • Touch the start block to start the level.
  • Touch the end block to be victorious.

 

Maze Avoider Tutorial Download

Download the entire tutorial with source code and working sample. This will help as a reference when working through the tutorial. The source file is well commented so you understand what is happening with all those lines of code.

Tutorial_FlashMX_MazeAvoider.zip

Maze Avoider Tutorial Sections

The Maze Avoider Tutorial is broken down into four parts. Each section is a separate PDF file. All of these files are included in the download above.

  1. Tutorial_FlashMX_MazeAvoider-01Scene.pdf
    Setting up the First Scene. This will take you through setting up a new Flash Movie for the game.

  2. Tutorial_FlashMX_MazeAvoider-02PlrChr.pdf
    Creating the Player Character. I show you how to create your Player Character hero and the code that makes him move.

  3. Tutorial_FlashMX_MazeAvoider-03Walls.pdf
    Building the Walls (Maze) & Begin/End Buttons. All of the code for the Hit Tests, which will allow the player character to start and stop the game, and die while touching the walls.

  4. Tutorial_FlashMX_MazeAvoider-04Enemies.pdf
    Stupid Enemy. This stupid enemy is very basic as it moves back and forth between two points.

If you do decide to build anything off of this tutorial please let me know. I love checking out what others are making and doing within the digital realm.

Enjoy.

--
Stephen R. Owens



View Comments (2)


« Back
Link Directly to this Blog post: http://www.studio-owens.com/tutorials/p2000_articleid/6