How to make a Maze Game in Flash Part 1/2
Hello, I’m making a video on How to create a Cool Maze Game in a Flash. This is a basic action script tool and simple but I’m going to divide it in 2 parts because this can be long.
Let’s begin, open the Flash document and the size should be 600x. Open the window here, create 4 layers. Layer 4 should be actions, lock this layer. Layer 3 should be just path buttons and layer 1 should be just terrain.
In actions, the 1 string frames just go to the actions with F9 or window actions and type in STOP. Hit text to select this over here, type in START. I’ve create it, I will select ALL or the word symbol or just hi F8 and name that START.
We’re going to give that actions, with that selected type in
On(release){
gotoAndplay(2)}
we’ll create key frames for the other layers, we’ll enable key frames on here and delete this.
Now, we’ll create our terrain. Make a basic square. It doesn’t matter how big it is, paint this green. You can edit this, go to the properties and the size should be Ht=600, W=600, X=0 and Y=0.
Now we’ll have to make our path. Select the brush, it could be the 5th going up or the 4th going down with white color, it always works and create the path. Let’s make an easy path just to teach you how this works. Once you’ve finished your path, select what’s inside and delete. Cut the lines, control X and just leave it like that. The green part, hit F8 to create a symbol terrain level 1. There’s the terrain in level 1 and we’ll going to give it some actions to that. Type in
on(rollover) {
gotoAndstop(3) }
and now in the path patterns we have to create a pond. We’ll select the oval tool and make a blue circle maybe. Hit F8 and name that terrain button level 1. open that and we’ll give it some actions. Type in
on(rollover) {
gotoAndstop(4) }
that’s the only difference. Now in the text 1, in here we will insert some key frames for all. In the 3rd one, we’ll delete what’s in it. In the texts, we should type in YOU LOST with a blue color, it looks perfect. Here, we can create a pond just like this, in the black and type in BACK. There’s your BACK button and it looks okay. select the BACK and hit F8 name it BACK. That’s very simple.
Go to the actions of that and type in
On(release) {
gotoAndstop(1) }
now, we’ll create key frames again for all. Insert key frame and instead of typing YOU LOST, I’ll type in YOU WON level 1. Instead of you going back to type in just duplicate the symbol and name it level 2 advanced. Go to it, select the letter size 20. Type in START level 2. You can make this a little bigger like 25 maybe. Make this bigger too, instead of here gotoAndstop to make it this, try it.
If we try it we’ll noticed that there is an error because in here I’ll have to place copy frame and past it here, and here, and here, and here also.
We’ll try it again it. For example, I touched the green and I lost, it starts again. I’d go to the blue and you won level 1 start level 2.
This is part 1 of this tutor. See you in part 2 of these tutorials. Goodbye.
Transcription by:
Scribe4you Transcription Services