Frame 1
_root._quality = "Medium";
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
Frame 2
if (_root.percentLoaded == 100) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 23 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 39 MovieClip in Frame 4
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 5
stop();
colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216);
array2 = new Array(211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181);
pos = 0;
num = 6;
xspd = 0;
xinc = 0.8;
maxx = 10;
yspd = 0;
maxy = 15;
grav = 1.6;
jump = false;
jumpy = -19;
charMove = function () {
if (jump) {
if (yspd < 0) {
yspd = yspd + grav;
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) {
_root.char._y--;
} else {
break;
}
}
yspd = 0;
}
} else {
if (yspd > 5) {
_root.char.char.gotoAndPlay(25);
}
if (yspd < maxy) {
yspd = yspd + grav;
} else {
yspd = maxy;
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
_root.char._y++;
} else {
break;
}
}
colorx = new Color(_root.char);
colorx.setRGB(16777215);
yspd = 0;
jump = false;
}
}
} else {
if (_root.char.char._currentframe > 10) {
_root.char.char.gotoAndStop(1);
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
jump = true;
yspd = 0;
}
if (Key.isDown(38)) {
if (!spacekey) {
spacekey = true;
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
}
} else {
spacekey = false;
}
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
while (true) {
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
_root.char._y--;
} else {
break;
}
}
}
}
if (!Key.isDown(38)) {
spacekey = false;
}
if (Math.abs(xspd) <= Math.abs(maxx)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = -100;
xspd = xspd - xinc;
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = 100;
xspd = xspd + xinc;
} else {
if (!jump) {
_root.char.char.gotoAndStop(1);
}
if (xspd != 0) {
if (Math.abs(xspd) > 1) {
xspd = xspd - ((xinc * xspd) / Math.abs(xspd));
} else {
xspd = 0;
}
}
}
} else {
xspd = (maxx * xspd) / Math.abs(xspd);
}
if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) {
while (true) {
if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) {
_root.char._x = _root.char._x + (xspd / Math.abs(xspd));
} else {
break;
}
}
xspd = 0;
}
if (!jump) {
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x - 1;
}
}
_root.char._x = _root.char._x + xspd;
};
onEnterFrame = function () {
if (_root.song._currentframe == 2295) {
_root.song.gotoAndPlay(40);
pos = 0;
}
if (_root.shadowthing._currentframe == 1) {
charMove();
if (_root.song._currentframe == array2[pos]) {
pos++;
colorx = new Color(_root.bees["b" + num]);
colorx.setRGB(16777215);
if (num > 1) {
colorx = new Color(_root.bees["b" + (num - 1)]);
colorx.setRGB(16777215);
} else {
colorx = new Color(_root.bees.b13);
colorx.setRGB(16777215);
}
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
colornum.push(colorT);
num++;
if (num > 13) {
num = 1;
}
}
} else {
_root.song.stop();
}
};
Instance of Symbol 81 MovieClip in Frame 5
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (!hit) {
hit = true;
getURL ("http://armorgames.com/", _blank);
}
} else {
hit = false;
}
}
Instance of Symbol 81 MovieClip in Frame 5
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.shadowthing.play();
}
}
Frame 6
colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216);
xspd = 0;
xinc = 0.8;
maxx = 10;
yspd = 0;
maxy = 15;
grav = 1.6;
jump = false;
jumpy = -19;
i = 0;
bspeed = 4;
spawner = 0;
maxheight = 0;
pos = 0;
nonspawn = 0;
row = 0;
spacekey = false;
songnum = 1;
array1 = new Array(113, 117, 122, 161, 272, 278, 282, 322, 327, 334, 342, 347, 352, 357, 432, 437, 442, 482, 591, 597, 601, 623, 629, 638, 643, 651, 656, 661, 666, 671, 675, 682, 695, 701, 705, 714, 719, 729, 739, 744, 753, 763, 773, 778, 783, 793, 798, 809, 819, 824, 833, 843, 853, 858, 862, 873, 878, 888, 899, 904, 914, 923, 933, 938, 943, 953, 958, 968, 983, 993, 1003, 1013, 1019, 1023, 1034, 1039, 1049, 1060, 1065, 1074, 1084, 1093, 1098, 1103, 1113, 1119, 1128, 1138, 1143, 1153, 1163, 1172, 1178, 1183, 1194, 1199, 1210, 1219, 1224, 1234, 1244, 1254, 1259, 1272, 1278, 1289, 1300, 1306, 1314, 1342, 1354, 1363, 1373, 1384, 1393, 1404, 1414, 1424, 1434, 1444, 1454, 1464, 1473, 1483, 1492, 1503, 1513, 1523, 1533, 1544, 1552, 1563, 1573, 1583, 1594, 1604, 1613, 1623, 1633, 1642, 1661, 1674, 1684, 1724, 1762, 1804, 1820, 1834, 1844, 1882, 1924, 1933, 1968, 1974, 1978, 1990, 1995, 2004, 2015, 2020, 2030, 2035, 2052, 2057, 2062, 2070, 2075, 2084, 2094, 2099, 2109, 2114, 2131, 2136, 2141, 2150, 2155, 2165, 2175, 2180, 2190, 2194, 2211, 2218, 2221, 2230, 2236, 2244, 2254, 2259, 2269, 2274, 2285, 2294, 2305, 2315, 2325, 2336, 2346, 2355, 2365, 2374, 2385, 2394, 2404, 2415, 2426, 2435, 2444, 2454, 2465, 2475, 2485, 2496, 2505, 2515, 2524, 2535, 2545, 2555, 2566, 2575, 2584, 2593, 2602, 2644, 2683, 2724);
changearray1 = new Array(70, 231, 390, 549, 641, 961, 1282, 1442, 1601, 1762, 1925, 2009, 2089, 2167, 2240, 2404, 2564, 2600, 2643, 2684);
array2 = new Array(115, 211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181);
changearray2 = new Array(114, 213, 403, 595, 788, 978, 1029, 1221, 1412, 1605, 1797, 1989, 2183);
array3 = new Array(215, 226, 237, 249, 259, 270, 281, 292, 302, 314, 325, 337, 347, 357, 368, 379, 390, 401, 413, 423, 434, 444, 457, 467, 477, 488, 498, 510, 520, 531, 541, 553, 564, 575, 586, 598, 608, 621, 631, 641, 652, 664, 674, 685, 696, 706, 717, 728, 738, 828, 838, 849, 859, 870, 881, 892, 902, 913, 924, 935, 946, 957, 968, 979, 991, 1001, 1011, 1023, 1034, 1045, 1056, 1068, 1078, 1089, 1100, 1112, 1122, 1132, 1144, 1154, 1166, 1177, 1187, 1198, 1209, 1219, 1230, 1241, 1252, 1263, 1274, 1285, 1296, 1307, 1317, 1328, 1339, 1351, 1362, 1373, 1384, 1395, 1406, 1416, 1427, 1439, 1450, 1461, 1472, 1483, 1494, 1505, 1515, 1573, 1581, 1591, 1602, 1612, 1624, 1635, 1646, 1657, 1668, 1678, 1689, 1700, 1710, 1720, 1731, 1743, 1754, 1764, 1776, 1788, 1798, 1809, 1820, 1831, 1842, 1853, 1864, 1875, 1887, 1896, 1907, 1919, 1929, 1940, 1952, 1963, 1974, 1984, 1995, 2006, 2017, 2028, 2040, 2051, 2061, 2072, 2083, 2093, 2105, 2115, 2126, 2137, 2148, 2158, 2169, 2180, 2191, 2201, 2212, 2223, 2234, 2246, 2257, 2268, 2278, 2301, 2323, 2345, 2366, 2388, 2409, 2431);
_root.song2.stop();
_root.song3.stop();
currentpillar = 0;
lastlocation = 20;
die = false;
deathwait = 5;
colornum = new Array();
_root.cbak._alpha = 50;
changepos = 0;
lastnum = 0;
lives = 3;
deadwait = 0;
_root.song.gotoAndPlay(1);
_root.char._x = Stage.width / 2;
_root.char._y = Stage.height / 2;
_root.song4.stop();
walkin = 0;
_root.boss._xscale = 70;
_root.boss._yscale = _root.boss._xscale;
red = 0;
lastnumber = 0;
bosslives = 3;
array4 = new Array(51, 64, 76, 90, 102, 116, 128, 139, 153, 166, 178, 192, 205, 218, 231, 243, 257, 270, 282, 296, 308, 321, 334, 347, 360, 373, 385, 399, 411, 424, 437, 449, 461, 474, 487, 501, 513, 527, 540, 552, 565, 578, 590, 603, 616, 629, 642, 654, 668, 681, 693, 707, 719, 732, 745, 758, 771, 784, 796, 810, 822, 836, 848, 861);
onEnterFrame = function () {
if ((_root.songnum == 1) or (songnum == 2)) {
if (_root.char._y > 290) {
_root.char._y = 260;
}
}
if (songnum == 1) {
if (_root.char._x > ((_root._x * -1) + Stage.width)) {
_root.char._x = ((_root._x * -1) + Stage.width) - 60;
}
}
_root.topcorner.lives = _root.lives;
if (songnum == 1) {
if ((_root.changearray1[changepos] + 40) == _root.song._currentframe) {
changepos++;
colorx = new Color(_root.cbak);
colorx.setRGB(0);
while (true) {
numthing = Math.round(Math.random() * 12) * 3;
if (numthing != lastnum) {
lastnum = numthing;
break;
}
}
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
}
if (_root.char._x < (_root._x * -1)) {
deadwait++;
if (deadwait > 5) {
_root.lives--;
_root.char._x = ((_root._x * -1) + (Stage.width / 2)) + 60;
_root.char._y = _root.char._y - 70;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
xspd = 0;
yspd = 0;
deadwait = 0;
}
} else {
charMove();
}
if (_root.song._currentframe == 2850) {
_root.livesplus.play();
songnum = 2;
_root.song2.play();
changepos = 0;
pos = 0;
}
bspeed = bspeed + 0.00166666666666667;
scrollScreen();
spawnPixels();
spawnObstacle();
camFollow();
} else if (songnum == 2) {
if (_root.changearray2[changepos] == _root.song2._currentframe) {
changepos++;
colorx = new Color(_root.cbak);
colorx.setRGB(0);
while (true) {
numthing = Math.round(Math.random() * 12) * 3;
if (numthing != lastnum) {
lastnum = numthing;
break;
}
}
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
}
if (_root.song2._currentframe == 2296) {
_root.ground.bounds.invisi.red.gotoAndStop(2);
songnum = 3;
pos = 0;
_root.ground.bounds.base.play();
}
_root.ground.bounds.invisi.gotoAndStop(2);
if (_root.ground.bounds.top.topbar._currentframe == 1) {
_root.ground.bounds.top.topbar.play();
}
if (!die) {
if (_root.deathwait == 5) {
if (_root.char.char._currentframe == 30) {
_root.char.char.gotoAndStop(1);
}
} else {
xspd = 0;
jump = false;
yspd = 0;
_root.deathwait++;
}
charMove();
} else if (_root.char.char._currentframe != 30) {
_root.lives--;
_root.char.char.gotoAndStop(30);
}
spawnPixels();
if (_root.char._x <= ((_root._x * -1) - 10)) {
_root.char._x = (_root._x * -1) + 10;
}
if (_root.char._x >= (((_root._x * -1) + Stage.width) + 10)) {
trace(1);
_root.char._x = ((_root._x * -1) + Stage.width) - 10;
}
camFollow();
spawnBox();
} else if (songnum == 3) {
_root.ground.bounds.invisi.red.gotoAndStop(2);
spawnPixels();
if (_root.char._y > 290) {
_root.cbak._alpha = _root.cbak._alpha - 0.5;
if (_root.song3._currentframe == 1) {
_root.song3.gotoAndPlay(50);
}
_root.char._x = _root.char._x + (((((_root._x * -1) + (Stage.width / 2)) + 20) - _root.char._x) / 20);
_root.char._y = _root.char._y + 15;
camFollow();
} else {
charMove();
camFollow();
}
if (_root.char.hitTest(_root.ground.circle)) {
_root.livesplus.gotoAndPlay(3);
startypos = _root.char.char._y;
_root.char.char._y = _root.char.char._y - (_root.ground.circle._height / 2);
distance = _root.ground.circle._height / 2;
_root.char._x = _root.ground.circle._x + _root.ground._x;
_root.char._y = _root.ground.circle._y + _root.ground._y;
colorx = new Color(_root.cbak);
colorx.setRGB(0);
xspd = 0;
yspd = 0;
jump = false;
yposition = 0;
pos = 0;
songnum = 4;
}
} else if (songnum == 4) {
camFollow3();
if (_root.song3._currentframe >= 2582) {
_root.cbak._alpha = 50;
_root.char.char._y = startypos - distance;
if (_root.char._rotation > 5) {
_root.char._rotation = _root.char._rotation - (maxx / 3);
_root.char.char.play();
_root.char._xscale = -100;
} else if (_root.char._rotation < -5) {
_root.char._rotation = _root.char._rotation + (maxx / 3);
_root.char.char.play();
_root.char._xscale = 100;
} else {
_root.char._rotation = 0;
}
if (_root.char._rotation == 0) {
_root.char.char.gotoAndStop(1);
if (_root.ground.circle._currentframe < 8) {
_root.ground.circle.gotoAndPlay(8);
}
_root.ground.tris.gotoAndStop(2);
if (_root.ground.circle._currentframe >= 12) {
_root.char.char._y = startypos;
_root.char._y = _root.char._y - (_root.ground.circle._height / 2);
songnum = 5;
xspd = 0;
yspd = 0;
jump = false;
yposition = 0;
pos = 0;
}
}
} else {
_root.cbak._alpha = 100;
charMove2();
triMove();
}
} else if (songnum == 5) {
_root.char.char.gotoAndStop(20);
_root.char._y = _root.char._y + 15;
if (_root.char.hitTest(_root.ground.basefull)) {
_root.livesplus.play();
_root.boss._x = ((_root._x * -1) + Stage.width) + 10;
songnum = 6;
_root.song4.play();
pos = 1;
}
spawnPixels();
camFollow();
} else if (songnum == 6) {
if (_root.char.hitTest(_root.boss.area) and (_root.boss.red._alpha == 0)) {
if (deadwait == 0) {
if (_root.char._x < _root.boss._x) {
xspd = -20;
} else {
xspd = 20;
}
deadwait++;
_root.lives--;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
}
}
if (deadwait > 0) {
deadwait++;
if (deadwait > 60) {
deadwait = 0;
colorx = new Color(_root.char);
colorx.setRGB(16777215);
}
}
if (_root.song4._currentframe == 40) {
pos = 0;
}
if (_root.song4._currentframe >= 880) {
_root.boss.red._alpha = 30;
}
if (jump) {
if (_root.boss.hitTest(_root.char._x, _root.char._y, true) and (_root.boss._currentframe < 40)) {
if (yspd > 0) {
if (red == 0) {
if (_root.song4._currentframe >= 880) {
bosslives--;
_root.boss.red.gotoAndStop(1);
if (bosslives > 0) {
_root.song4.gotoAndPlay(20);
pos = 0;
} else {
_root.song4.stop();
_root.shadowthing._x = (_root._x * -1) + Stage.width;
_root.shadowthing._y = _root._y * -1;
_root.shadowthing.gotoAndStop(1);
}
yspd = -16;
red = 1;
}
}
}
}
}
if (red >= 1) {
_root.boss.red._alpha = 100;
red++;
if (red == 15) {
_root.boss.red._alpha = 0;
red = 0;
}
}
walkin++;
if (walkin == 1) {
pos = 0;
_root.boss.gotoAndStop(1);
}
if (_root.song4._currentframe == (_root.array4[pos] - 4)) {
pos++;
if (_root.boss._currentframe == 1) {
while (true) {
attacks = (3 - bosslives) + 2;
if (attacks <= 3) {
option = Math.ceil(Math.random() * attacks);
if ((option >= 2) and (lastnumber == 1)) {
break;
}
if (option == 1) {
break;
}
} else {
option = Math.ceil(Math.random() * 3);
if ((option >= 2) and (lastnumber == 1)) {
break;
}
if (option == 1) {
break;
}
}
}
lastnumber = option;
if (option == 1) {
_root.boss.gotoAndPlay(2);
} else if (option == 2) {
_root.boss.gotoAndPlay(26);
} else if (option == 3) {
_root.boss.gotoAndPlay(32);
}
}
if (_root.char._x < _root.boss._x) {
_root.boss._xscale = 70;
} else {
_root.boss._xscale = -70;
}
}
if (bosslives > 1) {
if (((_root.boss._currentframe > 1) and (_root.boss._currentframe < 10)) or ((_root.boss._currentframe >= 14) and (_root.boss._currentframe < 21))) {
_root.boss._x = _root.boss._x + (((3 * _root.boss._xscale) / Math.abs(_root.boss._xscale)) * -1);
}
} else if (((_root.boss._currentframe > 1) and (_root.boss._currentframe < 10)) or ((_root.boss._currentframe >= 14) and (_root.boss._currentframe < 21))) {
_root.boss._x = _root.boss._x + (((4 * _root.boss._xscale) / Math.abs(_root.boss._xscale)) * -1);
}
charMove();
camFollow4();
spawnPixels();
if (bosslives <= 0) {
if (_root.boss._currentframe < 40) {
_root.boss.gotoAndPlay(40);
}
}
}
_root.topcorner.gotoAndStop(songnum);
_root.topcorner._x = _root._x * -1;
_root.topcorner._y = _root._y * -1;
_root.livesplus._x = (_root._x * -1) + 220;
_root.livesplus._y = (_root._y * -1) + 40;
if (_root.lives <= 0) {
_root.gotoAndStop(8);
}
};
triMove = function () {
if (_root.ground.circle._currentframe == 2) {
colorx = new Color(_root.ground.circle);
colorx.setRGB(0);
colorx.setTransform(_root.colornum[0]);
_root.colornum.splice(0, 1);
}
if (_root.song3._currentframe == (array3[pos] - 32)) {
pos++;
while (true) {
number = Math.random() * 16;
number = Math.ceil(number);
rotationx = 22.5 * (number - 1);
rotationx2 = _root.char._rotation;
if (rotationx2 < 0) {
rotationx2 = rotationx2 + 360;
}
if (Math.abs(rotationx2 - rotationx) < 150) {
if (_root.ground.tris["t" + number]._currentframe == 1) {
break;
}
}
}
colorx = new Color(_root.ground.tris["t" + number]);
colorx.setRGB(0);
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
colornum.push(colorT);
_root.ground.tris["t" + number].play();
}
};
charMove2 = function () {
if (!jump) {
if (_root.char._alpha == 100) {
x = 1;
while (x < 17) {
rotationx = 22.5 * (x - 1);
rotationx2 = _root.char._rotation;
if (rotationx2 < 0) {
rotationx2 = rotationx2 + 360;
}
if (Math.abs(rotationx2 - rotationx) < 15) {
if ((_root.ground.tris["t" + x]._currentframe >= 31) and (_root.ground.tris["t" + x]._currentframe < 34)) {
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
colorx = new Color(_root.cbak);
colorx.setRGB(16777215);
lives--;
yposition = 0;
}
}
x++;
}
}
}
if (!jump) {
colorx = new Color(_root.char);
colorx.setRGB(16777215);
colorx = new Color(_root.cbak);
colorx.setRGB(0);
}
if (Math.abs(xspd) <= Math.abs(maxx)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = -100;
xspd = xspd - xinc;
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = 100;
xspd = xspd + xinc;
} else {
if (!jump) {
_root.char.char.gotoAndStop(1);
}
if (xspd != 0) {
if (Math.abs(xspd) > 1) {
xspd = xspd - ((xinc * xspd) / Math.abs(xspd));
} else {
xspd = 0;
}
}
}
} else {
xspd = (maxx * xspd) / Math.abs(xspd);
}
_root.char._rotation = _root.char._rotation + (xspd / 3);
if (jump) {
if (yspd < 0) {
yspd = yspd + grav;
_root.char.char._y = _root.char.char._y + yspd;
yposition = yposition + yspd;
} else {
if (yspd > 5) {
_root.char.char.gotoAndPlay(25);
}
if (yspd < maxy) {
yspd = yspd + grav;
} else {
yspd = maxy;
}
_root.char.char._y = _root.char.char._y + yspd;
yposition = yposition + yspd;
if (yposition > 0) {
yposition = 0;
_root.char.char._y = startypos - distance;
jump = false;
}
}
} else {
if (_root.char.char._currentframe > 10) {
_root.char.char.gotoAndStop(1);
}
if (Key.isDown(38)) {
if (!spacekey) {
spacekey = true;
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
yposition = 0;
}
} else {
spacekey = false;
}
}
if (!Key.isDown(38)) {
spacekey = false;
}
};
camFollow3 = function () {
_root._x = ((Stage.width / 2) - _root.char._x) - (Math.sin(_root.char._rotation * (Math.PI/180)) * distance);
_root._y = ((Stage.height / 2) - _root.char._y) + (Math.cos(_root.char._rotation * (Math.PI/180)) * distance);
};
spawnBox = function () {
if (_root.song2._currentframe == (array2[pos] - 95)) {
pos++;
i++;
duplicateMovieClip (_root.ground.randbox, "r" + i, _root.ground.getNextHighestDepth());
_root.ground["r" + i]._y = -400;
_root.ground["r" + i]._x = ((_root._x * -1) + (Math.random() * (Stage.width - 70))) + 35;
}
};
playCrusher = function () {
if (_root.song2._currentframe == (array2[pos] - 25)) {
pos++;
do {
currentpillar = Math.ceil(Math.random() * 15);
} while (_root.ground.bounds.top["p" + currentpillar]._currentframe != 1);
colorx = new Color(_root.ground.bounds.top["p" + currentpillar]);
colorx.setRGB(0);
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
_root.ground.bounds.top["p" + currentpillar].play();
}
};
spawnObstacle = function () {
if (_root.song._currentframe == (array1[pos] - 32)) {
i++;
pos++;
duplicateMovieClip (_root.ground.plat, "g" + i, _root.ground.getNextHighestDepth());
_root.ground["g" + i]._x = (_root.ground.bounds._x + _root.ground.bounds._width) + (bspeed * 10);
if ((maxheight + 100) < 800) {
if ((maxheight - 100) > 80) {
if (Math.random() > 0.5) {
_root.ground["g" + i].actions.yscale = (maxheight + (Math.random() * 100)) + 100;
} else {
_root.ground["g" + i].actions.yscale = (maxheight - (Math.random() * 100)) + 100;
}
} else {
_root.ground["g" + i].actions.yscale = (maxheight + (Math.random() * 100)) + 100;
}
} else {
_root.ground["g" + i].actions.yscale = (maxheight - (Math.random() * 100)) + 100;
}
maxheight = _root.ground["g" + i].actions.yscale - 100;
if (maxheight > 800) {
maxheight = 800;
}
if (maxheight < 20) {
maxheight = 20;
}
nonspawn = 0;
} else {
_root._xscale = 100;
_root._yscale = 100;
nonspawn++;
if (nonspawn > 50) {
maxheight = 20;
}
}
};
spawnPixels = function () {
wait = 0;
duplicateMovieClip (_root.pixel, "p" + i, _root.getNextHighestDepth());
_root["p" + i]._x = (_root.char._x + (Math.random() * 10)) - 5;
_root["p" + i]._y = ((_root.char._y - (_root.char._height / 2)) + (Math.random() * 20)) - 10;
_root["p" + i]._alpha = 70;
i++;
};
scrollScreen = function () {
_root._x = _root._x - bspeed;
_root.ground.bounds._x = _root.ground.bounds._x + bspeed;
_root.ground.circle._x = _root.ground.circle._x + bspeed;
_root.ground.tris._x = _root.ground.tris._x + bspeed;
_root.cbak._x = _root.cbak._x + bspeed;
_root.ground.basefull._x = _root.ground.basefull._x + bspeed;
_root.boss._x = _root.boss._x + bspeed;
};
camFollow = function () {
_root._y = ((Stage.height / 6) * 5) - _root.char._y;
};
camFollow4 = function () {
_root._y = ((Stage.height / 3) * 2) - _root.char._y;
};
camFollow2 = function () {
_root._y = ((Stage.height / 8) * 7) - _root.char._y;
};
camFall = function () {
_root._y = _root._y - 5;
_root.ground.bounds.invisi._y = _root.ground.bounds.invisi._y + 5;
};
charMove = function () {
if (jump) {
if (yspd < 0) {
yspd = yspd + grav;
if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) {
_root.char._y--;
} else {
break;
}
}
yspd = 0;
}
} else {
if (yspd > 5) {
_root.char.char.gotoAndPlay(25);
}
if (yspd < maxy) {
yspd = yspd + grav;
} else {
yspd = maxy;
}
if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + yspd, true)))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + 1, true)))) {
_root.char._y++;
} else {
break;
}
}
if (_root.songnum != 6) {
colorx = new Color(_root.char);
colorx.setRGB(16777215);
}
yspd = 0;
jump = false;
}
}
} else {
if (_root.char.char._currentframe > 10) {
_root.char.char.gotoAndStop(1);
}
if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + 1, true)))) {
jump = true;
yspd = 0;
}
if (Key.isDown(38)) {
if (!spacekey) {
spacekey = true;
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
}
} else {
spacekey = false;
}
if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
while (true) {
if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
_root.char._y--;
} else {
break;
}
}
}
}
if (!Key.isDown(38)) {
spacekey = false;
}
if (Math.abs(xspd) <= Math.abs(maxx)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = -100;
xspd = xspd - xinc;
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = 100;
xspd = xspd + xinc;
} else {
if (!jump) {
_root.char.char.gotoAndStop(1);
}
if (xspd != 0) {
if (Math.abs(xspd) > 1) {
xspd = xspd - ((xinc * xspd) / Math.abs(xspd));
} else {
xspd = 0;
}
}
}
} else {
xspd = (maxx * xspd) / Math.abs(xspd);
}
if (_root.ground.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.ground.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) {
while (true) {
if ((!_root.ground.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.ground.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) {
_root.char._x = _root.char._x + (xspd / Math.abs(xspd));
} else {
break;
}
}
xspd = 0;
}
if (!jump) {
while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x - 1;
}
}
_root.char._x = _root.char._x + xspd;
};
Frame 7
stop();
_root._x = 0;
_root._y = 0;
_root.char._x = 51;
_root.char._y = 219;
colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216);
array2 = new Array(41, 55, 65, 72, 81, 89, 94, 106, 116, 123, 131, 139, 146, 152, 158, 165, 170, 177, 182, 188, 193, 223, 237, 250, 262, 273, 279, 289, 296, 302, 314, 324, 329, 335, 343, 350, 357, 365, 372, 377, 383, 392, 398, 459, 470, 481, 485, 491, 499, 505, 511, 524, 532, 538, 543, 549, 556, 563, 568, 575, 582, 587, 595, 603, 609, 641, 654, 667, 680, 690, 695, 701, 708, 713, 720, 733, 742, 747, 752, 759, 766, 772, 777, 784, 791, 797, 803, 807, 813, 819, 851, 861, 867, 873, 877, 883, 888, 894, 907, 916, 921, 927, 933, 939, 945, 951, 957, 964, 968, 976, 985, 991, 1024, 1037, 1050, 1063, 1073, 1078, 1087, 1095, 1102, 1116, 1126, 1131, 1141, 1148, 1156, 1162, 1170, 1176, 1182, 1187, 1195, 1202, 1260, 1272, 1283, 1289, 1294, 1300, 1307, 1313, 1325, 1335, 1341, 1347, 1353, 1359, 1365, 1377, 1388, 1393, 1398, 1405, 1410, 1443, 1455, 1468, 1481, 1492, 1497, 1503, 1509, 1515, 1521, 1533, 1544, 1550, 1555, 1562, 1567, 1574, 1585, 1597, 1602, 1611, 1618, 1652, 1686, 1694, 1702, 1708, 1713, 1719, 1726, 1732, 1743, 1752, 1759, 1766, 1775, 1783, 1789, 1795, 1802, 1807, 1813, 1822, 1828);
pos = 0;
num = 3;
xspd = 0;
xinc = 0.8;
maxx = 10;
yspd = 0;
maxy = 15;
grav = 1.6;
jump = false;
jumpy = -19;
_root.song.gotoAndPlay(40);
charMove = function () {
if (jump) {
if (yspd < 0) {
yspd = yspd + grav;
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) {
_root.char._y--;
} else {
break;
}
}
yspd = 0;
}
} else {
if (yspd > 5) {
_root.char.char.gotoAndPlay(25);
}
if (yspd < maxy) {
yspd = yspd + grav;
} else {
yspd = maxy;
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
_root.char._y++;
} else {
break;
}
}
colorx = new Color(_root.char);
colorx.setRGB(16777215);
yspd = 0;
jump = false;
}
}
} else {
if (_root.char.char._currentframe > 10) {
_root.char.char.gotoAndStop(1);
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
jump = true;
yspd = 0;
}
if (Key.isDown(38)) {
if (!spacekey) {
spacekey = true;
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
}
} else {
spacekey = false;
}
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
while (true) {
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
_root.char._y--;
} else {
break;
}
}
}
}
if (!Key.isDown(38)) {
spacekey = false;
}
if (Math.abs(xspd) <= Math.abs(maxx)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = -100;
xspd = xspd - xinc;
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = 100;
xspd = xspd + xinc;
} else {
if (!jump) {
_root.char.char.gotoAndStop(1);
}
if (xspd != 0) {
if (Math.abs(xspd) > 1) {
xspd = xspd - ((xinc * xspd) / Math.abs(xspd));
} else {
xspd = 0;
}
}
}
} else {
xspd = (maxx * xspd) / Math.abs(xspd);
}
if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) {
while (true) {
if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) {
_root.char._x = _root.char._x + (xspd / Math.abs(xspd));
} else {
break;
}
}
xspd = 0;
}
if (!jump) {
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x - 1;
}
}
_root.char._x = _root.char._x + xspd;
};
onEnterFrame = function () {
if (_root.song._currentframe == 2295) {
_root.song.gotoAndPlay(40);
pos = 0;
}
charMove();
if (_root.song._currentframe == array2[pos]) {
pos++;
colorx = new Color(_root.bees["b" + num]);
colorx.setRGB(16777215);
if (num != 3) {
colorx = new Color(_root.bees["b" + (num - 1)]);
colorx.setRGB(16777215);
} else {
colorx = new Color(_root.bees.b14);
colorx.setRGB(16777215);
}
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
colornum.push(colorT);
num++;
if (num > 14) {
num = 3;
}
}
};
Instance of Symbol 81 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.gotoAndStop(5);
}
}
Instance of Symbol 81 MovieClip in Frame 7
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (!hit) {
hit = true;
getURL ("http://armorgames.com/", _blank);
}
} else {
hit = false;
}
}
Frame 8
stop();
_root._x = 0;
_root._y = 0;
_root.char._x = 51;
_root.char._y = 219;
colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216);
array2 = new Array(211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181);
pos = 0;
num = 6;
xspd = 0;
xinc = 0.8;
maxx = 10;
yspd = 0;
maxy = 15;
grav = 1.6;
jump = false;
jumpy = -19;
charMove = function () {
if (jump) {
if (yspd < 0) {
yspd = yspd + grav;
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) {
_root.char._y--;
} else {
break;
}
}
yspd = 0;
}
} else {
if (yspd > 5) {
_root.char.char.gotoAndPlay(25);
}
if (yspd < maxy) {
yspd = yspd + grav;
} else {
yspd = maxy;
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) {
_root.char._y = _root.char._y + yspd;
} else {
while (true) {
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
_root.char._y++;
} else {
break;
}
}
colorx = new Color(_root.char);
colorx.setRGB(16777215);
yspd = 0;
jump = false;
}
}
} else {
if (_root.char.char._currentframe > 10) {
_root.char.char.gotoAndStop(1);
}
if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) {
jump = true;
yspd = 0;
}
if (Key.isDown(38)) {
if (!spacekey) {
spacekey = true;
_root.char.char.gotoAndPlay(11);
yspd = jumpy;
jump = true;
}
} else {
spacekey = false;
}
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
while (true) {
if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) {
_root.char._y--;
} else {
break;
}
}
}
}
if (!Key.isDown(38)) {
spacekey = false;
}
if (Math.abs(xspd) <= Math.abs(maxx)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = -100;
xspd = xspd - xinc;
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
if (!jump) {
_root.char.char.play();
}
_root.char._xscale = 100;
xspd = xspd + xinc;
} else {
if (!jump) {
_root.char.char.gotoAndStop(1);
}
if (xspd != 0) {
if (Math.abs(xspd) > 1) {
xspd = xspd - ((xinc * xspd) / Math.abs(xspd));
} else {
xspd = 0;
}
}
}
} else {
xspd = (maxx * xspd) / Math.abs(xspd);
}
if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) {
while (true) {
if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) {
_root.char._x = _root.char._x + (xspd / Math.abs(xspd));
} else {
break;
}
}
xspd = 0;
}
if (!jump) {
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) {
_root.char._x = _root.char._x - 1;
}
while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x + 1;
}
while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) {
_root.char._x = _root.char._x - 1;
}
}
_root.char._x = _root.char._x + xspd;
};
onEnterFrame = function () {
if (_root.song._currentframe == 2295) {
_root.song.gotoAndPlay(40);
pos = 0;
}
charMove();
if (_root.song._currentframe == array2[pos]) {
pos++;
colorx = new Color(_root.bees["b" + num]);
colorx.setRGB(16777215);
if (num > 1) {
colorx = new Color(_root.bees["b" + (num - 1)]);
colorx.setRGB(16777215);
} else {
colorx = new Color(_root.bees.b4);
colorx.setRGB(16777215);
}
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
colornum.push(colorT);
num++;
if (num > 4) {
num = 1;
}
}
};
Instance of Symbol 81 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.gotoAndStop(5);
}
}
Instance of Symbol 81 MovieClip in Frame 8
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (!hit) {
hit = true;
getURL ("http://armorgames.com/", _blank);
}
} else {
hit = false;
}
}
Symbol 23 MovieClip Frame 126
_root.nextFrame();
Symbol 39 MovieClip Frame 158
_root.nextFrame();
Symbol 41 MovieClip Frame 2296
stop();
Symbol 59 MovieClip Frame 10
gotoAndPlay (1);
Symbol 59 MovieClip Frame 28
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 40
_root.nextFrame();
Symbol 84 MovieClip Frame 60
stop();
Symbol 88 MovieClip Frame 40
stop();
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "pixel") {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
removeMovieClip(_parent);
}
_parent._y = _parent._y - 0.3;
} else {
_alpha = 0;
}
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 107
stop();
Instance of Symbol 108 MovieClip "actions" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
wait = 0;
if (_parent._name != "plat") {
this.thing.play();
color = new Color(_parent);
color.setRGB(0);
num = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[num], bb:_root.colorArray[num + 1], gb:_root.colorArray[num + 2]};
color.setTransform(colorT);
_parent._yscale = 0;
_parent._xscale = 120;
if (_root.row < 2) {
this.gotoAndStop(Math.ceil(Math.random() * 7));
if (this._currentframe > 4) {
_root.row++;
}
} else {
_root.row = 0;
_root.maxheight = 20;
this.gotoAndStop(1);
}
} else {
_parent._x = -10;
}
}
onClipEvent (enterFrame) {
if (_parent._name != "plat") {
wait++;
if (wait >= 30) {
if (_parent._yscale < yscale) {
_parent._yscale = _parent._yscale + (yscale / 3);
}
}
if (_parent._x < _parent._parent.bounds._x) {
removeMovieClip(_parent);
}
}
}
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
wait = 0;
d = false;
wait = 0;
if (_parent._name != "randbox") {
_parent._xscale = _parent._xscale + ((Math.random() * 130) - 30);
_parent._yscale = _parent._xscale;
color = new Color(_parent);
color.setRGB(0);
num = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[num], bb:_root.colorArray[num + 1], gb:_root.colorArray[num + 2]};
color.setTransform(colorT);
} else {
_parent._x = -1000;
}
grav = 1;
yspd = 0;
wait = 0;
plus = true;
death = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "randbox") {
wait++;
if (wait > 93) {
color = new Color(_parent);
color.setRGB(16777215);
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 30) {
if (death) {
_root.char._x = (_root._x * -1) + (Stage.width / 2);
_root.char._y = _root.char._y - 300;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
_root.deathwait = 1;
_root.die = false;
}
removeMovieClip(_parent);
}
}
yspd = yspd + grav;
if (yspd > 6) {
yspd = 6;
}
fall = true;
x = 0;
while (x < _parent._width) {
if (_root.ground.hitTest(((_parent._x - (_parent._width / 2)) + x) + _root.ground._x, ((_parent._y + (_parent._height / 2)) + yspd) + _root.ground._y, true)) {
fall = false;
yspd = yspd / 3;
break;
}
x = x + 8;
}
if (fall) {
_parent._y = _parent._y + yspd;
} else {
plus = true;
x = 0;
while (x < _parent._width) {
if (_root.ground.hitTest(((_parent._x - (_parent._width / 2)) + x) + _root.ground._x, (_parent._y + (_parent._height / 2)) + _root.ground._y, true)) {
plus = false;
break;
}
x = x + 8;
}
if (plus) {
_parent._y = _parent._y + 1;
}
}
}
if (!_root.jump) {
if (fall) {
if (_parent.insidebox.hitTest(_root.char)) {
_root.die = true;
_root.char._y = (_parent._y + _root.ground._y) + (_parent._height / 2);
death = true;
}
}
}
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 32
_root.ground.circle.play();
Symbol 122 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 7
gotoAndStop (1);
Symbol 127 MovieClip Frame 13
stop();
Symbol 132 MovieClip Frame 2850
stop();
Symbol 133 MovieClip Frame 2582
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 25
gotoAndStop (1);
Symbol 185 MovieClip Frame 29
_root.i++;
duplicateMovieClip (_root.spike, "s" + _root.i, _root.getNextHighestDepth());
_root["s" + _root.i]._x = _x;
_root["s" + _root.i]._y = _y + 50;
_root["s" + _root.i]._xscale = 100;
_root.i++;
duplicateMovieClip (_root.spike, "s" + _root.i, _root.getNextHighestDepth());
_root["s" + _root.i]._x = _x;
_root["s" + _root.i]._y = _y + 50;
_root["s" + _root.i]._xscale = -100;
colorx = new Color(_root.cbak);
colorx.setRGB(0);
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
Symbol 185 MovieClip Frame 31
gotoAndStop (1);
Symbol 185 MovieClip Frame 35
_root.i++;
duplicateMovieClip (_root.bullet, "s" + _root.i, _root.getNextHighestDepth());
_root["s" + _root.i]._x = _x + (((_xscale / Math.abs(_xscale)) * 50) * -1);
_root["s" + _root.i]._y = _y - 5;
if (_xscale > 0) {
_root["s" + _root.i]._xscale = 100;
} else {
_root["s" + _root.i]._xscale = -100;
}
colorx = new Color(_root.cbak);
colorx.setRGB(0);
numthing = Math.round(Math.random() * 12) * 3;
colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]};
colorx.setTransform(colorT);
Symbol 185 MovieClip Frame 38
gotoAndStop (1);
Symbol 185 MovieClip Frame 150
_root.shadowthing.play();
stop();
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "spike") {
_parent._x = _parent._x - ((5 * _parent._xscale) / Math.abs(_parent._xscale));
if (_root.char.hitTest(_parent)) {
if (_root.deadwait == 0) {
if (_parent._xscale < 0) {
_root.xspd = 20;
} else {
_root.xspd = -20;
}
_root.deadwait++;
_root.lives--;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
}
removeMovieClip(_parent);
}
if (_root.ground.hitTest(_parent._x, _parent._y, true)) {
removeMovieClip(_parent);
}
}
}
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "bullet") {
_parent._x = _parent._x - ((5 * _parent._xscale) / Math.abs(_parent._xscale));
if (_root.char.hitTest(_parent)) {
if (_root.deadwait == 0) {
if (_parent._xscale < 0) {
_root.xspd = 20;
} else {
_root.xspd = -20;
}
_root.deadwait++;
_root.lives--;
colorx = new Color(_root.char);
colorx.setRGB(16711680);
}
removeMovieClip(_parent);
}
if (_root.ground.hitTest(_parent._x, _parent._y, true)) {
removeMovieClip(_parent);
}
}
}
Symbol 192 MovieClip Frame 1065
gotoAndPlay (40);
Symbol 204 MovieClip Frame 1
gotoAndStop (2);
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 21
_root.lives = _root.lives + 3;
Symbol 204 MovieClip Frame 40
gotoAndStop (2);