Frame 2
if (_framesloaded == _totalframes) {
gotoAndPlay (5);
}
Loading = int((_framesloaded * "100") / _totalframes);
Frame 3
Loading = int((_framesloaded * "100") / _totalframes);
gotoAndPlay (2);
Frame 6
stop();
Frame 10
stop();
Frame 11
Score = "0";
ScrR = "520";
ScrL = "30";
ScrT = "20";
ScrB = "300";
ScrLt = "310";
life = "3";
startDrag ("/trackmouse", true);
Frame 12
LVL1 = "52";
LVL2 = "39";
LVL3 = "77";
LVL4 = "40";
LVL5 = "40";
LVL6 = "54";
LVL7 = "40";
LVL8 = "52";
LVL9 = "44";
LVL10 = "50";
stop();
Frame 13
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "1";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
BrickH = "10";
BrickW = "15";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
Row1 = "190";
BRow1 = "7";
Row2 = "170";
BRow2 = "6";
Row3 = "150";
BRow3 = "7";
Row4 = "130";
BRow4 = "6";
Row5 = "110";
BRow5 = "6";
Row6 = "90";
BRow6 = "7";
Row7 = "70";
BRow7 = "6";
Row8 = "50";
BRow8 = "7";
Frame 14
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL1 = LVL1 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
gotoAndPlay (13);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL1) {
gotoAndPlay (19);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
Score = Score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
Score = Score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 15
gotoAndPlay (14);
Frame 19
stop();
Frame 20
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "2";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "11";
Row2 = "170";
BRow2 = "4";
Row3 = "150";
BRow3 = "2";
Row4 = "130";
BRow4 = "2";
Row5 = "110";
BRow5 = "5";
Row6 = "90";
BRow6 = "3";
Row7 = "70";
BRow7 = "5";
Row8 = "50";
BRow8 = "7";
Frame 21
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL2 = LVL2 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (20);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL2) {
gotoAndPlay (24);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
Score = "0";
}
Score = Score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 22
gotoAndPlay (21);
Frame 24
stop();
Frame 25
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "3";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "12";
Row2 = "170";
BRow2 = "9";
Row3 = "150";
BRow3 = "10";
Row4 = "130";
BRow4 = "9";
Row5 = "110";
BRow5 = "10";
Row6 = "90";
BRow6 = "9";
Row7 = "70";
BRow7 = "10";
Row8 = "50";
BRow8 = "8";
Frame 26
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL3 = LVL3 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (25);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL3) {
gotoAndPlay (30);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 27
gotoAndPlay (26);
Frame 30
stop();
Frame 31
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "4";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "7";
Row2 = "170";
BRow2 = "6";
Row3 = "150";
BRow3 = "5";
Row4 = "130";
BRow4 = "2";
Row5 = "110";
BRow5 = "2";
Row6 = "90";
BRow6 = "5";
Row7 = "70";
BRow7 = "6";
Row8 = "50";
BRow8 = "7";
Frame 32
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL4 = LVL4 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (31);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL4) {
gotoAndPlay (35);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 33
gotoAndPlay (32);
Frame 35
stop();
Frame 36
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "5";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "8";
Row2 = "170";
BRow2 = "8";
Row3 = "150";
BRow3 = "0";
Row4 = "130";
BRow4 = "4";
Row5 = "110";
BRow5 = "4";
Row6 = "90";
BRow6 = "0";
Row7 = "70";
BRow7 = "8";
Row8 = "50";
BRow8 = "8";
Frame 37
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL5 = LVL5 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (36);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL5) {
gotoAndPlay (40);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 38
gotoAndPlay (37);
Frame 40
stop();
Frame 41
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "6";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "13";
Row2 = "170";
BRow2 = "2";
Row3 = "150";
BRow3 = "7";
Row4 = "130";
BRow4 = "5";
Row5 = "110";
BRow5 = "5";
Row6 = "90";
BRow6 = "7";
Row7 = "70";
BRow7 = "2";
Row8 = "50";
BRow8 = "13";
Frame 42
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL6 = LVL6 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (41);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL6) {
gotoAndPlay (45);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 43
gotoAndPlay (42);
Frame 45
stop();
Frame 46
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "7";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "1";
Row2 = "170";
BRow2 = "3";
Row3 = "150";
BRow3 = "5";
Row4 = "130";
BRow4 = "11";
Row5 = "110";
BRow5 = "5";
Row6 = "90";
BRow6 = "3";
Row7 = "70";
BRow7 = "1";
Row8 = "50";
BRow8 = "0";
Frame 47
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL7 = LVL7 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (46);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL7) {
gotoAndPlay (50);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 48
gotoAndPlay (47);
Frame 50
stop();
Frame 51
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "8";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "8";
Row2 = "170";
BRow2 = "6";
Row3 = "150";
BRow3 = "6";
Row4 = "130";
BRow4 = "6";
Row5 = "110";
BRow5 = "6";
Row6 = "90";
BRow6 = "6";
Row7 = "70";
BRow7 = "6";
Row8 = "50";
BRow8 = "8";
Frame 52
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL8 = LVL8 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (51);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL8) {
gotoAndPlay (55);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 53
gotoAndPlay (52);
Frame 55
stop();
Frame 56
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "9";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "6";
Row2 = "170";
BRow2 = "6";
Row3 = "150";
BRow3 = "4";
Row4 = "130";
BRow4 = "6";
Row5 = "110";
BRow5 = "6";
Row6 = "90";
BRow6 = "4";
Row7 = "70";
BRow7 = "6";
Row8 = "50";
BRow8 = "6";
Frame 57
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL9 = LVL9 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (56);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL9) {
gotoAndPlay (60);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 58
gotoAndPlay (57);
Frame 60
stop();
Frame 61
if ("0" >= life) {
gotoAndPlay (66);
}
Level = "10";
PCount = "1";
while ("9" >= PCount) {
setProperty("Power" add PCount, _y , -"100");
PCount = PCount + "1";
}
Ballxstep = "0";
Ballystep = "0";
while (Ballystep == "0") {
Ballystep = random("3") - "1";
}
Ballxstep = random("3") - "1";
Ballx = (ScrL + ((ScrR - ScrL) / "4")) + random((ScrR - ScrL) / "2");
Bally = "250";
setProperty("/ball", _x , Ballx);
setProperty("/ball", _y , Bally);
Speed = "3";
BallS = "5";
LCount = "1";
while (life >= LCount) {
duplicateMovieClip ("/lifes", "lifesL" add LCount, LCount);
setProperty("lifesL" add LCount, _x , ("40" + (Lcount * "40")) + (LCount * "20"));
setProperty("lifesL" add LCount, _y , "360");
LCount = LCount + "1";
}
Batw = "50";
Bath = "13";
GetPower = "0";
Power = "0";
setProperty("/bat", _xscale , "100");
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
setProperty("/ball", _alpha , "100");
Alpha = "1";
StretchStart = "0";
ShrinkStart = "0";
AlphaStart = "0";
BlowStart = "0";
BrickH = "10";
BrickW = "15";
Row1 = "190";
BRow1 = "6";
Row2 = "170";
BRow2 = "5";
Row3 = "150";
BRow3 = "4";
Row4 = "130";
BRow4 = "3";
Row5 = "110";
BRow5 = "5";
Row6 = "90";
BRow6 = "7";
Row7 = "70";
BRow7 = "9";
Row8 = "50";
BRow8 = "11";
Frame 62
Count = "1";
while (Count < int(Speed)) {
Batx = getProperty("/trackmouse", _x);
if ((ScrR - Batw) < Batx) {
Batx = ScrR - Batw;
}
if (Batx < (ScrL + Batw)) {
Batx = ScrL + Batw;
}
setProperty("/bat", _x , Batx);
Ballx = getProperty("/ball", _x);
Bally = getProperty("/ball", _y);
Batleft = Batx - Batw;
Batright = Batx + Batw;
Collision = "0";
if ((((Row1 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row1 - BrickH) - BallS))) {
Loop = "1";
while ((BRow1 >= Loop) and (Collision == "0")) {
Brickloop = Loop;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row2 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row2 - BrickH) - BallS))) {
Loop = "1";
while ((BRow2 >= Loop) and (Collision == "0")) {
Brickloop = Loop + BRow1;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row3 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row3 - BrickH) - BallS))) {
Loop = "1";
while ((BRow3 >= Loop) and (Collision == "0")) {
Brickloop = (Loop + BRow1) + BRow2;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row4 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row4 - BrickH) - BallS))) {
Loop = "1";
while ((BRow4 >= Loop) and (Collision == "0")) {
Brickloop = ((Loop + BRow1) + BRow2) + BRow3;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row5 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row5 - BrickH) - BallS))) {
Loop = "1";
while ((BRow5 >= Loop) and (Collision == "0")) {
Brickloop = (((Loop + BRow1) + BRow2) + BRow3) + BRow4;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row6 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row6 - BrickH) - BallS))) {
Loop = "1";
while ((BRow6 >= Loop) and (Collision == "0")) {
Brickloop = ((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row7 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row7 - BrickH) - BallS))) {
Loop = "1";
while ((BRow7 >= Loop) and (Collision == "0")) {
Brickloop = (((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if ((((Row8 + BrickH) + BallS) >= getProperty("/ball", _y)) and (getProperty("/ball", _y) >= ((Row8 - BrickH) - BallS))) {
Loop = "1";
while ((BRow8 >= Loop) and (Collision == "0")) {
Brickloop = ((((((Loop + BRow1) + BRow2) + BRow3) + BRow4) + BRow5) + BRow6) + BRow7;
if (((getProperty("Brick" add Brickloop, _x) - getProperty("/ball", _x)) < (BrickW + BallS)) and ((getProperty("/ball", _x) - getProperty("Brick" add Brickloop, _x)) < (BrickW + BallS))) {
if (getProperty("Brick" add Brickloop, _y) <> (-"100")) {
if (((getProperty("Brick" add Brickloop, _y) - BrickH) < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("Brick" add Brickloop, _y) + BrickH))) {
Ballxstep = -Ballxstep;
} else {
Ballystep = -Ballystep;
}
setProperty("Brick" add Brickloop, _y , -"100");
Collision = "1";
tellTarget ("/Sounds") {
gotoAndPlay ("BeepBrick");
};
}
}
Loop = Loop + "1";
}
}
if (Collision == "1") {
Speed = Speed + "0.1";
LVL10 = LVL10 - "1";
Score = Score + "100";
if (GetPower == "0") {
GetPower = random("10") + "1";
if (GetPower <> "10") {
GetPower = "0";
} else {
Power = random("8") + "1";
setProperty("Power" add Power, _x , getProperty("/ball", _x));
setProperty("Power" add Power, _y , getProperty("/ball", _y));
}
}
}
if (Bally >= (ScrB - BallS)) {
if (((Batleft < Ballx) and (Ballx < Batright)) and (Bally < (ScrLt - BallS))) {
Ballxstep = int((Ballx - Batx) / "15");
Ballystep = -Ballystep;
if (Speed < "10") {
Speed = Speed + "0.5";
} else {
Speed = "10";
}
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
} else {
Bally = Bally + "1";
setProperty("/ball", _y , int(Bally));
setProperty("/ball", _x , int(Ballx));
Crashloop = Crashloop + "1";
setProperty("/ball", _alpha , "100" - (Crashloop * "3"));
setProperty("lifesL" add life, _alpha , "100" - (Crashloop * "3"));
if (Soundout <> "1") {
tellTarget ("/Sounds") {
gotoAndPlay ("Out");
};
Soundout = "1";
}
if (Crashloop >= "30") {
Crashloop = "1";
Soundout = "0";
setProperty("/ball", _alpha , "100");
removeMovieClip("lifesL" add life);
setProperty("lifesL" add life, _alpha , "100");
life = life - "1";
Speed = "3";
gotoAndPlay (61);
}
}
}
if (Ballx >= (ScrR - BallS)) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrL + BallS) >= Ballx) {
Ballxstep = -Ballxstep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
if ((ScrT + BallS) >= Bally) {
Ballystep = -Ballystep;
tellTarget ("/Sounds") {
gotoAndPlay ("Beep");
};
}
setProperty("/ball", _x , Ballx + Ballxstep);
setProperty("/ball", _y , Bally + Ballystep);
Count = Count + "1";
if ("0" >= LVL10) {
gotoAndPlay (12);
}
}
if (GetPower == "10") {
setProperty("Power" add Power, _y , getProperty("Power" add Power, _y) + "2");
if (getProperty("Power" add Power, _y) >= (ScrB + (BrickH / "2"))) {
if ((ScrLT + BrickH) < getProperty("Power" add Power, _y)) {
setProperty("Power" add Power, _y , -"100");
GetPower = "0";
} else if (((getProperty("Power" add Power, _x) + BrickW) >= Batleft) and (Batright >= (getProperty("Power" add Power, _x) - BrickW))) {
tellTarget ("/Sounds") {
gotoAndPlay ("PowerUp");
};
setProperty("Power" add Power, _y , -"100");
PowerUp = Power;
GetPower = "0";
}
}
}
if (PowerUP <> "0") {
if (PowerUp == "1") {
score = score + "1000";
PowerUp = "0";
}
if (PowerUp == "2") {
ShrinkStart = getTimer();
BatW = "25";
setProperty("/bat", _xscale , "50");
PowerUp = "0";
}
if (PowerUp == "3") {
StretchStart = getTimer();
BatW = "75";
setProperty("/bat", _xscale , "150");
PowerUp = "0";
}
if (PowerUp == "4") {
speed = speed + "1";
PowerUp = "0";
}
}
if (PowerUp == "5") {
AlphaStart = getTimer();
Alpha = "1";
PowerUp = "0";
}
if (PowerUp == "6") {
BlowStart = getTimer();
BallS = "8";
setProperty("/ball", _xscale , "160");
setProperty("/ball", _yscale , "160");
PowerUp = "0";
}
if (PowerUp == "7") {
speed = speed - "1";
if (speed < "3") {
speed = "3";
}
PowerUp = "0";
}
if (PowerUp == "8") {
if (score < "1000") {
score = "0";
}
score = score - "1000";
PowerUp = "0";
}
if (ShrinkStart <> "0") {
if ((getTimer() - ShrinkStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
ShrinkStart = "0";
}
}
if (StretchStart <> "0") {
if ((getTimer() - StretchStart) >= "30000") {
BatW = "50";
setProperty("/bat", _xscale , "100");
StretchStart = "0";
}
}
if (AlphaStart <> "0") {
if (Alpha == "1") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) - "5");
if ("15" >= getProperty("/ball", _alpha)) {
Alpha = "2";
}
}
if (Alpha == "2") {
setProperty("/ball", _alpha , getProperty("/ball", _alpha) + "5");
if (getProperty("/ball", _alpha) >= "95") {
Alpha = "1";
}
}
if ((getTimer() - AlphaStart) >= "30000") {
Alpha = "1";
setProperty("/ball", _alpha , "100");
AlphaStart = "0";
}
}
if (BlowStart <> "0") {
if ((getTimer() - BlowStart) >= "30000") {
BallS = "5";
setProperty("/ball", _xscale , "100");
setProperty("/ball", _yscale , "100");
BlowStart = "0";
}
}
Frame 63
gotoAndPlay (62);
Frame 66
PlayAgain = getTimer();
Frame 69
GONr = GONr + "1";
GONr2 = "64" - GONr;
setProperty("/bat", _alpha , "100" - (GONr * "3"));
setProperty("/ball", _alpha , "100" - (GONr * "3"));
setProperty("/bat", _rotation , GONr * "10");
setProperty("/bat", _xscale , "100" - (GONr * "3"));
setProperty("/bat", _yscale , "100" - (GONr * "3"));
if (GONr >= "34") {
GONr = "0";
gotoAndPlay (71);
}
Frame 70
gotoAndPlay (69);
Frame 71
GONr = GONr + "1";
GONr2 = "64" - GONr;
setProperty("Brick" add GONr, _alpha , "0");
setProperty("Brick" add GONr2, _alpha , "0");
if ("120000" < (getTimer() - PlayAgain)) {
GONr = "0";
gotoAndPlay (1);
}
if (GONr >= "34") {
gotoAndPlay (73);
}
Frame 72
gotoAndPlay (71);
Frame 73
GONr = GONr - "1";
GONr2 = "64" - GONr;
setProperty("Brick" add GONr, _alpha , "100");
setProperty("Brick" add GONr2, _alpha , "100");
if ("120000" < (getTimer() - PlayAgain)) {
GONr = "0";
gotoAndPlay (1);
}
if ((-"20") >= GONr) {
gotoAndPlay (71);
}
Frame 74
gotoAndPlay (73);
Symbol 8 MovieClip Frame 41
gotoAndPlay (1);
Symbol 37 Button
on (release) {
gotoAndPlay (11);
}
Symbol 41 Button
on (release) {
gotoAndPlay (9);
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 111 Button
on (release) {
getURL ("mailto:webmaster@cre8ive-grafx.de");
}
Symbol 116 Button
on (release) {
gotoAndPlay (13);
}
Symbol 127 Button
on (release) {
gotoAndPlay (20);
}
Symbol 128 Button
on (release) {
gotoAndPlay (25);
}
Symbol 129 Button
on (release) {
gotoAndPlay (31);
}
Symbol 130 Button
on (release) {
gotoAndPlay (36);
}
Symbol 131 Button
on (release) {
gotoAndPlay (41);
}
Symbol 132 Button
on (release) {
gotoAndPlay (46);
}
Symbol 133 Button
on (release) {
gotoAndPlay (51);
}
Symbol 134 Button
on (release) {
gotoAndPlay (56);
}
Symbol 135 Button
on (release) {
gotoAndPlay (61);
}
Symbol 147 Button
on (release) {
gotoAndPlay (11);
}