The first step is to draw your maze. Once you have drew it, convert it into a movie clip and give it no AS. Then draw the button you want the player to touch before the maze becomes active. Give it the following AS.
CODE
on(release){
_root.gotoAndStop(2)}
_root.gotoAndStop(2)}
Feel free to change release to press or rollOver. The next step is to copy your maze onto frame 2 and on this frame draw a button that the player will have to press to complete the game. Then give that button the following AS.
CODE
on(release){
_root.gotoAndStop(3)}
_root.gotoAndStop(3)}
Once again weather or not you change the release part is up to you. Now you need to give your maze on frame 2 the following script.
CODE
on(rollOver,rollOut){
_root.gotoAndStop(4)}
_root.gotoAndStop(4)}
This will take player to frame 4 if they touch the walls. The final step is to go to frame 3 and 4 and draw a "you win" page and a "you lose page" with options to restart the game etc.
If this script is not working, feel free to download a sample file Here !
discuss this topic to forum
