How to Make a Maze Game With Walls in Flash

Written by joanna swanson
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Make a Maze Game With Walls in Flash
One way to make a maze game is by using Adobe Flash. (water maze image by Paul Moore from Fotolia.com)

The Adobe Flash program utilises programming technology to create movies or applications. It allows website owners and computer programmers to create interactive websites or place videos on their websites. The Flash Builder section allows programmers to enter code to create games such as the maze game. The maze game requires a player to move his mouse through a maze and reach the end without touching any of the walls. If the walls are touched, the game is over.

Skill level:
Moderate

Other People Are Reading

Things you need

  • Adobe Flash program

Show MoreHide

Instructions

  1. 1

    Open Adobe Flash. Create a new Flash File (ActionScript 2.0).

  2. 2

    Select the drawing tool and create the title for your maze.

  3. 3

    Press "F9" and type in "stop();" to keep the page from continuing on to the next frame, as a movie does.

  4. 4

    Select the box tool and create a starting box. Colour the box your preferred colour.

  5. 5

    Select the box and press "F8." Make the box a button. Then type in the following code:

    on(release)

    {

    gotoAndStop(2);

    }

  1. 1

    Press "F7" and select the second frame in the timeline. On this frame, use the drawing tool to draw your maze.

  2. 2

    Select the entire maze and convert it to a button from the "F8" menu.

  3. 3

    Press "F9" to open the actionscript box. Type in the following code:

    on(rollover)

    {

    gotoAndStop(4);

    }

  4. 4

    Draw the destination at the end of the maze. This is the place where players will attempt to take their mouse. It can be any shape you choose.

  5. 5

    Press "F8" and convert the destination to a button. Type in:

    on(release)

    {

    gotoAndStop(3)

    }

  1. 1

    Press "F7" to create the third frame. Go to this frame and use the drawing tool to create the winners page.

  2. 2

    Press "F7" and go to the fourth frame. Draw the losers page.

  3. 3

    Create a box on the fourth frame. Place text inside the box that says "Play Again?" Press "F8" to make this a button.

  4. 4

    Type in this code to make the game return to the maze so the player can try again:

    on(release)

    {

    gotoAndPlay(2)

    }

Tips and warnings

  • To create this game, you must have the Adobe Flash program, not the Adobe Flash Player. The Adobe Flash Player only allows you to view pages created by the Adobe Flash program, not create them.
  • When drawing the maze pattern on your second frame, keep clear the area on the first page where the stop button is located so that players do not automatically lose because their mouse is on a wall.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.