Thursday, March 19, 2009

Brick Tutorial - Part 3

Now it's time to set it up. So make a cool preloader (i thaught you that already), adn on the frame after the preloader, Make a new empty keyframe, and draw 3 buttons, one for easy, one for medium, and one for hard. On easy, type :

on (release) {
_root.difficulty = 1;
_root.nextFrame ();

}

The same thing for medium and hard, excepet the variable difficulty should be 2 for medium, and 3 for hard.
On the next frame, make an empty keyframe, and on its actions, paste this:

blocks = 0;
lives = 5;
lvl = 1;
stop();

Than, organize your blocks on a cool way, maybe 2 or 3 lines of blocks ( you can reescale them to change their shape if you want), and put the ball and the bar there.

Anywhere on the stage make 2 dynamic text boxes. One with the var "blocks" and the other one with the var "lives".

Now test your movie and it should be working. If anything happens, please write a comment !!

0 comments:

Post a Comment