Frame 1
stop();
Frame 2
Mouse.show();
function MakeBlocks(amount) {
i = Bon;
while (i < (Bon + amount)) {
$b = "Block" + i;
duplicateMovieClip (_root.Block1, $b, i);
setProperty($b, _x , random(550));
setProperty($b, _y , 15);
setProperty($b, _xscale , random(55) + 50);
setProperty($b, _yscale , random(55) + 50);
trace(Bon);
i++;
}
Bon = Bon + amount;
}
stop();
var Speed = 25.5;
var BlockAmount = 30;
var Bon = 2;
var Level = 5;
var Invinc = 0;
Instance of Symbol 16 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (int(_root.txtStartLevel.text) > 20) {
_root.txtStartLevel.text = "20";
}
if (int(_root.txtStartLevel.text) < 1) {
_root.txtStartLevel.text = "1";
}
}
Frame 3
stop();
function MakeBlocks(amount) {
i = Bon;
while (i < (Bon + amount)) {
$b = "Block" + i;
duplicateMovieClip (_root.Block1, $b, i);
setProperty($b, _x , random(550));
setProperty($b, _y , 15);
setProperty($b, _xscale , random(55) + 50);
setProperty($b, _yscale , random(55) + 50);
score = score + 1;
trace(Bon);
i++;
}
Bon = Bon + amount;
}
var Speed = 25.5;
var BlockAmount = 30;
var Bon = 2;
var Invinc = 0;
var score = 0;
var health = 0;
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
gotoAndStop(_root.health);
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
Mouse.hide();
_root.txtLevel.text = _root.Level;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root.Invinc < 1) {
i = 0;
while (i < (_root.Bon + 2)) {
$test = "_root.Block" + (i + 1);
if (hitTest($test)) {
setProperty($test, _visible , false);
_root.health = _root.health + 10;
if (_root.health >= 100) {
_root.gotoAndStop(4);
}
}
i++;
}
}
}
onClipEvent (keyDown) {
_root.MakeBlocks(10);
}
Frame 4
Mouse.show();
Symbol 3 MovieClip Frame 1
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 2
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 3
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 4
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 5
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 6
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 7
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 8
this._y = this._y + _root.Speed;
Symbol 3 MovieClip Frame 9
this._y = this._y + _root.Speed;
Instance of Symbol 3 MovieClip in Symbol 8 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 8 MovieClip Frame 15
Symbol 8 MovieClip Frame 33
_root.gotoAndStop(2);
Symbol 15 Button
on (press) {
i = 2;
while (i < _root.Bon) {
setProperty("Block" + i, _x , -100);
setProperty("Block" + i, _y , -100);
i++;
}
_root.Level = int(txtStartLevel.text);
gotoAndStop (3);
}
Symbol 16 MovieClip Frame 1
var i = 0;
Symbol 16 MovieClip Frame 2
i++;
Symbol 16 MovieClip Frame 3
if (i > 3) {
_root.MakeBlocks(1);
i = 0;
} else {
gotoAndPlay (2);
}
Symbol 19 MovieClip Frame 1
var i = 0;
Symbol 19 MovieClip Frame 2
i++;
Symbol 19 MovieClip Frame 3
speed = 120 - (_root.Level * 2);
if (speed < 12) {
speed = 24;
}
if (i > speed) {
_root.Level = _root.Level + 1;
_root.txtLevel.text = _root.Level;
trace("Speed" + speed);
i = 0;
} else {
gotoAndPlay (2);
}
Symbol 29 MovieClip Frame 1
var i = 0;
Symbol 29 MovieClip Frame 2
i++;
Symbol 29 MovieClip Frame 3
speed = 12 / _root.Level;
if (speed < 1) {
speed = 1;
}
if (i > speed) {
BAm = Math.round(0.2 * _root.Level);
if (BAm < 1) {
BAm = 1;
}
_root.MakeBlocks(BAm);
i = 0;
} else {
gotoAndPlay (2);
}
Symbol 34 Button
on (press) {
_root.gotoAndStop(2);
}