Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
Mouse.hide();
_quality = "MEDIUM";
_root.musicon = true;
dzwieki = new Sound();
dzwieki.setVolume(70);
_root.poziom = 1;
_root.poziomow = 1;
Instance of Symbol 39 MovieClip "crosshair" in Frame 1
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 3);
}
Instance of Symbol 39 MovieClip "crosshair" in Frame 2
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 3);
}
Frame 3
_root.mainmenu._alpha = 100;
stop();
Instance of Symbol 350 MovieClip "menu" in Frame 3
onClipEvent (load) {
swapDepths(7503);
tlo = new Sound(this);
tlo.attachSound("menumus");
if (_root.musicon) {
tlo.start();
}
tlo.onSoundComplete = function () {
if (_root.musicon && (_root._currentframe == 3)) {
tlo.start();
}
};
}
onClipEvent (enterFrame) {
if (_root._currentframe > 3) {
_alpha = (_alpha - 8);
if (_alpha <= 0) {
removeMovieClip(this);
}
}
}
Frame 4
stop();
_root.svolume = 100;
_global.maxspeed = 16;
_global.szybkosc = 7;
_global.celnosc = 1;
_global.zwrotnosc = 0.8;
_global.brateoffire = 2;
_global.rateoffire = 8;
_global.cooldown = 40;
_global.bcooldown = 40;
_global.StpRad = (Math.PI/180);
_global.RadStp = 57.2957795130823;
_global.kierunek = function (x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) * RadStp) + 90);
};
shotCount = 0;
_root.pauza = false;
_global.skrec = function (newrot, oldrot, maxrot) {
kat = newrot - oldrot;
while (kat > 180) {
kat = kat - 360;
}
while (kat <= -180) {
kat = kat + 360;
}
if (kat > maxrot) {
kat = maxrot;
}
if (kat < (-maxrot)) {
kat = -maxrot;
}
return(oldrot + kat);
};
_global.kierunek = function (x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) * RadStp) + 90);
};
_global.uszkodz = function (x1, y1, r) {
_root.damage.beginFill(39423, 100);
_root.damage.moveTo(x1, y2);
_root.damage.lineTo(r + x1, y1);
a = 0.268;
i = 0;
while (i < 12) {
endx = r * Math.cos(((i + 1) * 30) * StpRad);
endy = r * Math.sin(((i + 1) * 30) * StpRad);
ax = endx + ((r * a) * Math.cos((((i + 1) * 30) - 90) * StpRad));
ay = endy + ((r * a) * Math.sin((((i + 1) * 30) - 90) * StpRad));
_root.damage.curveTo(ax + x1, ay + y1, endx + x1, endy + y1);
i++;
}
_root.damage.endFill();
};
_root.tor.createEmptyMovieClip("land", -1);
_root.minimapa.tor.createEmptyMovieClip("land", -1);
_global.genlevel = function () {
_root.tor.land.beginFill(3760942, 100);
_root.minimapa.tor.land.beginFill(1510286, 80);
posx = 600;
wys = random(200);
swys = wys;
if (random(2) == 0) {
rise = true;
} else {
rise = false;
}
if (random(2) == 0) {
upswing = true;
} else {
upswing = false;
}
_root.tor.land.moveTo(600, wys + 400);
_root.minimapa.tor.land.moveTo(60, (wys + 400) / 10);
_root.tor.land.lineTo(600, wys);
_root.minimapa.tor.land.lineTo(60, wys / 10);
i = 1;
while (i <= 80) {
if (upswing) {
swing = (-random(90)) - 10;
upswing = false;
} else {
swing = random(90) + 10;
upswing = true;
}
dlugosc = random(200) + 100;
posx = posx + dlugosc;
if (rise) {
wys = wys - random(200);
_root.tor.land.curveTo(posx - (dlugosc / 2), wys + swing, posx, wys);
_root.minimapa.tor.land.curveTo((posx - (dlugosc / 2)) / 10, (wys + swing) / 10, posx / 10, wys / 10);
if (wys < -200) {
if (random(2) == 0) {
rise = false;
}
} else if (random(6) == 0) {
rise = false;
}
} else {
wys = wys + random(200);
_root.tor.land.curveTo(posx - (dlugosc / 2), wys + swing, posx, wys);
_root.minimapa.tor.land.curveTo((posx - (dlugosc / 2)) / 10, (wys + swing) / 10, posx / 10, wys / 10);
if (wys > 150) {
rise = true;
} else if (random(6) == 0) {
rise = true;
}
}
i++;
}
_root.tor.land.lineTo(posx, swys + 400);
_root.tor.land.lineTo(600, swys + 400);
_root.tor.land.endFill();
_root.minimapa.tor.land.lineTo(posx / 10, (swys + 400) / 10);
_root.minimapa.tor.land.lineTo(60, (swys + 400) / 10);
_root.minimapa.tor.land.endFill();
};
_root.damage.clear();
_root.crateCount = 0;
var enemies = new Array();
var torlev = new Array();
_root.pau.gotoAndStop(1);
_root.pau.visible = false;
var namebase = new Array("DUK", "KIDIOT", "KLOOK", "PULTBUB", "DORGELCH", "FLOPH", "BLUNK", "POOMUNCH", "KUNGULT", "FULP", "GHOB", "LONGWANG", "FUZZUG", "BUB", "GOG", "NULF", "GLUT", "FUKKER", "SUXR", "BOOBZO", "DOLTCH", "CLOTMEAT", "LUNKDORK", "GLUBTWIT", "FELCH", "GROOB");
_root.bossfight = undefined;
_root.serpent = new Array();
Instance of Symbol 353 MovieClip "bg" in Frame 4
onClipEvent (load) {
swapDepths(_root.damage);
this.setMask(_root.damage);
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_y = (_y + (_root.gracz.cely / 3));
}
}
}
Instance of Symbol 353 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_y = (_y + (_root.gracz.cely / 3));
}
}
}
Instance of Symbol 400 MovieClip "gracz" in Frame 4
onClipEvent (load) {
swapDepths(5000);
shotCount = 0;
bombCount = 0;
cool = cooldown;
bcool = bcooldown;
dzialaj = true;
noise = new Sound(this);
noise.attachSound("lot");
noise.setVolume(50);
bounc = new Sound();
bounc.attachSound("bounce");
noise.onSoundComplete = function () {
if (dzialaj) {
noise.start();
}
};
noise.start();
hp = 100;
weapon = "gun";
bomb = 10;
pociski = Infinity;
hitwater = false;
ff = false;
regen = 20;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
celx = 0;
cely = 0;
if ((_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) || (_y >= _root.sealevel._y)) {
if (_currentframe == 1) {
if (_y > _root.sealevel._y) {
hitwater = true;
duplicateMovieClip (_root.splash, "splash" + random(50), 1200 + random(50));
} else {
hitwater = false;
}
while (((_root.tor.hitTest(_x, _y - cely, true) && (_root.bg.hitTest(_x, _y - cely, true) == false)) || ((_y - cely) >= _root.sealevel._y)) && (hp > 0)) {
if (_rotation > 0) {
if (_root.speed.inv._visible == false) {
hp = hp - 15;
}
bounc.attachSound("bounce");
bounc.start();
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 20);
if (hp < 0) {
break;
}
_rotation = (_rotation - 50);
i = 0;
while (i < 20) {
if (((_y - 1) > 125) && ((_y - 1) < 225)) {
_y = (_y-1);
} else {
cely++;
}
i++;
}
} else if (_rotation < 0) {
if (_root.speed.inv._visible == false) {
hp = hp - 15;
}
bounc.attachSound("bounce");
bounc.start();
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 20);
if (hp < 0) {
break;
}
_rotation = (_rotation + 50);
i = 0;
while (i < 20) {
if (((_y - 1) > 125) && ((_y - 1) < 225)) {
_y = (_y-1);
} else {
cely++;
}
i++;
}
}
}
}
}
if (dzialaj) {
if (regen >= 20) {
if (hp < 100) {
regen = 0;
hp++;
}
} else {
regen++;
}
odchyl = Math.abs(_rotation);
zwrot = kierunek(_x, _y, _root._xmouse, _root._ymouse);
zakret = zwrotnosc * szybkosc;
rotacja = skrec(zwrot, _rotation, zakret);
if ((szybkosc > 5) && (_root.sealevel._y < 1000)) {
_rotation = rotacja;
} else {
zwrot = kierunek(_x, _y, _x, _y + 300);
zakret = (zwrotnosc - 0.2) * szybkosc;
_rotation = skrec(zwrot, _rotation, zakret);
}
celx = celx + (Math.sin(_rotation * StpRad) * szybkosc);
cely = cely + (Math.cos(_rotation * StpRad) * szybkosc);
if (((_y - cely) > 175) && ((_y - cely) < 225)) {
_y = (_y - cely);
cely = 0;
}
if (_root.crosshair.shooting) {
if ((weapon == "gun") || (weapon == "minigun")) {
if (cool >= cooldown) {
shotCount++;
duplicateMovieClip (_root.gunshot, "gunshot" + shotCount, shotCount);
if (shotCount == 20) {
shotCount = 0;
}
cool = 0;
}
} else if (weapon == "rocket") {
if (cool >= cooldown) {
shotCount++;
duplicateMovieClip (_root.rocket, "rocket" + shotCount, shotCount);
_root.crosshair.shooting = false;
cool = cooldown;
if (shotCount == 20) {
shotCount = 0;
}
cool = 0;
}
} else if (weapon == "shotgun") {
if (cool >= (cooldown * 3)) {
i = 1;
while (i < 6) {
shotCount++;
duplicateMovieClip (_root.gunshot, "gunshot" + shotCount, shotCount);
if (shotCount == 20) {
shotCount = 0;
}
i++;
}
pociski--;
cool = 0;
}
}
}
cool = cool + rateoffire;
if (weapon == "minigun") {
cool = cool + (rateoffire * 3);
}
odl = Math.sqrt(Math.pow(_root.crosshair._x - _x, 2) + Math.pow(_root.crosshair._y - _y, 2));
if (odl > 260) {
odl = 260;
}
if (odl < 40) {
odl = 40;
}
przysp = (odl * 0.002) - 0.2;
if (_root.speed.spd._visible) {
przysp = przysp * 3.5;
}
if (((przysp > 0) && (szybkosc < maxspeed)) || ((przysp < 0) && (szybkosc > 7))) {
szybkosc = szybkosc + przysp;
}
if (maxspeed < szybkosc) {
szybkosc = szybkosc - 0.4;
}
if (Key.isDown(32)) {
if (bomb > 0) {
if (bcool >= bcooldown) {
bombCount++;
duplicateMovieClip (_root.bomb, "bomb" + bombCount, 1000 + bombCount);
bomb--;
if (bombCount == 50) {
bombCount = 0;
}
bcool = 0;
}
}
}
bcool = bcool + brateoffire;
odchyl = Math.abs(_rotation);
if (odchyl < 90) {
if (szybkosc > 2) {
szybkosc = szybkosc - (0.1 - (odchyl * 0.001));
}
} else if (szybkosc < maxspeed) {
szybkosc = szybkosc + ((odchyl - 90) * 0.0007);
}
szybkosc = szybkosc - 0.01;
speed = Math.round(szybkosc * 100) / 10;
if (((this.pzl._currentframe == 1) || (this.pzl._currentframe == 25)) && (_rotation < -45)) {
this.pzl.gotoAndPlay(2);
} else if ((this.pzl._currentframe == 13) && (_rotation > 45)) {
this.pzl.gotoAndPlay(14);
}
}
}
}
Instance of Symbol 409 MovieClip "tor" in Frame 4
onClipEvent (load) {
_root.torlev[0] = 200;
_root.torlev[1] = 235;
_root.torlev[2] = 265;
_root.torlev[3] = 315;
_root.torlev[4] = 350;
_root.torlev[5] = 315;
_root.torlev[6] = 280;
_root.torlev[7] = 265;
_root.torlev[8] = 255;
_root.torlev[9] = 255;
_root.torlev[10] = 260;
_root.torlev[11] = 290;
_root.torlev[12] = 330;
_root.torlev[13] = 255;
_root.torlev[14] = 335;
_root.torlev[15] = 355;
_root.torlev[16] = 285;
_root.torlev[17] = 370;
_root.torlev[18] = 550;
_root.torlev[19] = 370;
_root.torlev[20] = 365;
_root.torlev[21] = 320;
_root.torlev[22] = 210;
_root.torlev[23] = 255;
_root.torlev[24] = 215;
_root.torlev[25] = 255;
_root.torlev[26] = 245;
_root.torlev[27] = 235;
_root.torlev[28] = 265;
_root.torlev[29] = 220;
_root.torlev[30] = 220;
_root.torlev[31] = 370;
_root.torlev[32] = 385;
_root.torlev[33] = 340;
_root.torlev[34] = 360;
_root.torlev[35] = 245;
_root.torlev[36] = 235;
_root.torlev[37] = 220;
_root.torlev[38] = 275;
_root.torlev[39] = 400;
_root.torlev[40] = 545;
_root.torlev[41] = 625;
_root.torlev[42] = 360;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
Instance of Symbol 39 MovieClip "crosshair" in Frame 4
onClipEvent (load) {
swapDepths(8000);
kolor = new Color(this);
kolort = new Object();
kolort.ra = 35;
kolort.rb = 255;
kolort.ga = 35;
kolort.gb = 0;
kolort.ba = 35;
kolort.bb = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 3);
if (_root.pauza) {
shooting = false;
}
odl = _root.gracz.odl;
if (odl > 200) {
odl = 200;
}
if (odl >= 120) {
kolort.gb = 255;
kolort.rb = (-3.2 * odl) + 640;
} else {
kolort.rb = 255;
kolort.gb = (3.2 * odl) - 128;
}
kolor.setTransform(kolort);
}
onClipEvent (mouseDown) {
shooting = true;
}
onClipEvent (mouseUp) {
shooting = false;
}
Instance of Symbol 420 MovieClip "gunshot" in Frame 4
onClipEvent (load) {
if (String(_name) != "gunshot") {
_x = _root.gracz._x;
_y = _root.gracz._y;
if (_root.gracz.weapon == "shotgun") {
_rotation = ((_root.gracz._rotation + random(21)) - 10);
} else {
_rotation = ((_root.gracz._rotation + random(9)) - 4);
}
chx = Math.sin(_rotation * StpRad) * 30;
chy = Math.cos(_rotation * StpRad) * 30;
_x = (_x + (Math.random() * chx));
_y = (_y - (Math.random() * chy));
bang = new Sound();
bang.attachSound("guns");
bang.start();
if (_root.gracz.weapon != "shotgun") {
_root.gracz.pociski--;
}
if (_root.gracz.pociski <= 0) {
_root.gracz.weapon = "gun";
_root.gracz.pociski = Infinity;
}
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "gunshot") {
if ((_currentframe > 1) && (_currentframe < 18)) {
play();
}
if (_root.tor.hitTest(_x + (chx / 2), _y - (chy / 2), true) && (_root.bg.hitTest(_x + (chx / 2), _y - (chy / 2), true) == false)) {
if (_currentframe == 1) {
gotoAndPlay (2);
chx = 0;
chy = 0;
}
}
i = 0;
while (i <= _root.enemies.length) {
hit = false;
if (_root.enemies[i].weirdshape) {
if (_root.enemies[i].hitTest(_x + (chx / 2), _y - (chy / 2), true)) {
hit = true;
}
} else if (_root.enemies[i].hitTest(_x + (chx / 2), _y - (chy / 2), false)) {
hit = true;
}
if (hit) {
if (_root.enemies[i]._currentframe < _root.enemies[i].deathframe) {
if (_currentframe == 1) {
if (_root.enemies[i].red != undefined) {
_root.shotCount++;
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , ((getProperty(this, _rotation) - 180) + random(61)) - 30);
setProperty("_root.egunshot" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.egunshot" + _root.shotCount, _y , getProperty(this, _y));
Set(("_root.egunshot" + _root.shotCount) + ".dist", 1);
duplicateMovieClip (_root.blysk, "blysk" + _root.shotCount, _root.shotCount + 581);
setProperty("_root.blysk" + _root.shotCount, _rotation , ((getProperty(this, _rotation) - 180) + random(61)) - 30);
setProperty("_root.blysk" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.blysk" + _root.shotCount, _y , getProperty(this, _y));
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
removeMovieClip(this);
_rotation = (((_rotation - 180) + random(31)) - 15);
chx = Math.sin(_rotation * StpRad) * 30;
chy = Math.cos(_rotation * StpRad) * 30;
} else {
gotoAndPlay (2);
chx = 0;
chy = 0;
}
if (_root.enemies[i].boss == false) {
obecny = false;
j = 0;
while (j <= _root.speed.fullenhud.top5.length) {
if (_root.speed.fullenhud.top5[j] == _root.enemies[i]) {
obecny = true;
_root.speed.fullenhud.time5[j] = 100;
break;
}
j++;
}
if (obecny == false) {
if (_root.speed.fullenhud.top5.length < 5) {
_root.speed.fullenhud.top5.push(_root.enemies[i]);
_root.speed.fullenhud.time5.push(100);
} else {
srt = _root.speed.fullenhud.time5;
if ((((srt[4] <= srt[0]) && (srt[4] <= srt[1])) && (srt[4] <= srt[2])) && (srt[4] <= srt[3])) {
_root.speed.fullenhud.top5[4] = _root.enemies[i];
_root.speed.fullenhud.time5[4] = 100;
} else if ((((srt[3] <= srt[0]) && (srt[3] <= srt[1])) && (srt[3] <= srt[2])) && (srt[3] <= srt[4])) {
_root.speed.fullenhud.top5[3] = _root.enemies[i];
_root.speed.fullenhud.time5[3] = 100;
} else if ((((srt[2] <= srt[0]) && (srt[2] <= srt[1])) && (srt[2] <= srt[3])) && (srt[2] <= srt[4])) {
_root.speed.fullenhud.top5[2] = _root.enemies[i];
_root.speed.fullenhud.time5[2] = 100;
} else if ((((srt[1] <= srt[0]) && (srt[1] <= srt[2])) && (srt[1] <= srt[3])) && (srt[1] <= srt[4])) {
_root.speed.fullenhud.top5[1] = _root.enemies[i];
_root.speed.fullenhud.time5[1] = 100;
} else if ((((srt[0] <= srt[1]) && (srt[0] <= srt[2])) && (srt[0] <= srt[3])) && (srt[0] <= srt[4])) {
_root.speed.fullenhud.top5[0] = _root.enemies[i];
_root.speed.fullenhud.time5[0] = 100;
}
}
}
}
if (_root.enemies[i].forcefield._visible) {
_root.enemies[i].forcefield._alpha = _root.enemies[i].forcefield._alpha - 30;
} else {
_root.enemies[i].hp = _root.enemies[i].hp - (random(5) + 4);
}
}
}
}
i++;
}
if (_y > (_root.sealevel._y + 10)) {
if (_currentframe < 18) {
_rotation = 0;
chx = 0;
chy = 0;
gotoAndPlay ("hitwater");
}
}
_x = (_x + chx);
_y = (_y - chy);
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
} else {
stop();
}
}
Instance of Symbol 422 MovieClip "damage" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
Instance of Symbol 431 MovieClip "bomb" in Frame 4
onClipEvent (load) {
if (String(_name) != "bomb") {
maxrot = 0.5;
_x = (_root.gracz._x + 10);
_y = (_root.gracz._y - 5);
_rotation = _root.gracz._rotation;
}
xspeed = _root.gracz.celx;
if ((-_root.gracz.cely) > 3) {
fallspeed = -_root.gracz.cely;
} else {
fallspeed = 3;
}
maxrot = 0.3;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "bomb") {
if ((_currentframe > 1) && (_currentframe < 14)) {
play();
}
if (_root.tor.hitTest(_x + xspeed, _y + fallspeed, true) && (_root.bg.hitTest(_x + xspeed, _y + fallspeed, true) == false)) {
if (_currentframe == 1) {
_rotation = 0;
gotoAndPlay (2);
}
_rotation = 0;
} else if (_currentframe == 1) {
maxrot = maxrot + 0.15;
_rotation = skrec(180, _rotation, maxrot);
i = 0;
while (i <= _root.enemies.length) {
hit = false;
if (_root.enemies[i].weirdshape) {
if (_root.enemies[i].hitTest(_x + (xspeed / 2), _y + (fallspeed / 2), true)) {
hit = true;
}
} else if (_root.enemies[i].hitTest(_x + (xspeed / 2), _y + (fallspeed / 2), false)) {
hit = true;
}
if (hit) {
if (_root.enemies[i]._currentframe < _root.enemies[i].deathframe) {
gotoAndPlay (2);
if (_root.enemies[i].boss == false) {
obecny = false;
j = 0;
while (j <= _root.speed.fullenhud.top5.length) {
if (_root.speed.fullenhud.top5[j] == _root.enemies[i]) {
obecny = true;
_root.speed.fullenhud.time5[j] = 100;
break;
}
j++;
}
if (obecny == false) {
if (_root.speed.fullenhud.top5.length < 5) {
_root.speed.fullenhud.top5.push(_root.enemies[i]);
_root.speed.fullenhud.time5.push(100);
} else {
srt = _root.speed.fullenhud.time5;
if ((((srt[4] <= srt[0]) && (srt[4] <= srt[1])) && (srt[4] <= srt[2])) && (srt[4] <= srt[3])) {
_root.speed.fullenhud.top5[4] = _root.enemies[i];
_root.speed.fullenhud.time5[4] = 100;
} else if ((((srt[3] <= srt[0]) && (srt[3] <= srt[1])) && (srt[3] <= srt[2])) && (srt[3] <= srt[4])) {
_root.speed.fullenhud.top5[3] = _root.enemies[i];
_root.speed.fullenhud.time5[3] = 100;
} else if ((((srt[2] <= srt[0]) && (srt[2] <= srt[1])) && (srt[2] <= srt[3])) && (srt[2] <= srt[4])) {
_root.speed.fullenhud.top5[2] = _root.enemies[i];
_root.speed.fullenhud.time5[2] = 100;
} else if ((((srt[1] <= srt[0]) && (srt[1] <= srt[2])) && (srt[1] <= srt[3])) && (srt[1] <= srt[4])) {
_root.speed.fullenhud.top5[1] = _root.enemies[i];
_root.speed.fullenhud.time5[1] = 100;
} else if ((((srt[0] <= srt[1]) && (srt[0] <= srt[2])) && (srt[0] <= srt[3])) && (srt[0] <= srt[4])) {
_root.speed.fullenhud.top5[0] = _root.enemies[i];
_root.speed.fullenhud.time5[0] = 100;
}
}
}
}
if (_root.enemies[i].forcefield._visible) {
_root.enemies[i].forcefield._alpha = _root.enemies[i].forcefield._alpha - 30;
} else {
_root.enemies[i].hp = _root.enemies[i].hp - (random(11) + 12);
}
_rotation = 0;
xspeed = 0;
fallspeed = 0;
}
}
i++;
}
_x = (_x + xspeed);
_y = (_y + fallspeed);
xspeed = xspeed * 0.96;
if (fallspeed < 17) {
fallspeed = fallspeed * 1.03;
}
}
if (_y > (_root.sealevel._y + 10)) {
if (_currentframe < 14) {
_rotation = 0;
xspeed = 0;
fallspeed = 0;
gotoAndPlay ("hitwater");
}
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
} else {
stop();
}
}
Instance of Symbol 448 MovieClip "minimapa" in Frame 4
onClipEvent (load) {
this.setMask(_parent.minimaska);
swapDepths(7500);
}
Instance of Symbol 632 MovieClip "speed" in Frame 4
onClipEvent (load) {
swapDepths(7501);
}
Instance of Symbol 420 MovieClip "egunshot" in Frame 4
onClipEvent (load) {
if (String(_name) != "egunshot") {
_rotation = ((_rotation + random(3)) - 1);
chx = Math.sin(_rotation * StpRad) * 18;
chy = Math.cos(_rotation * StpRad) * 18;
bang = new Sound();
bang.attachSound("guns");
bang.start();
if (dist != undefined) {
_x = (_x + (dist * chx));
_y = (_y - (dist * chy));
}
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "egunshot") {
if ((_currentframe > 1) && (_currentframe < 18)) {
play();
}
if (_root.tor.hitTest(_x + (chx / 2), _y - (chy / 2), true) && (_root.bg.hitTest(_x + (chx / 2), _y - (chy / 2), true) == false)) {
if (_currentframe == 1) {
gotoAndPlay (2);
chx = 0;
chy = 0;
}
}
if (_currentframe == 1) {
if (_root.gracz.pzl.hitTest(_x + (chx / 2), _y - (chy / 2), false)) {
_root.speed.tarcza.gotoAndPlay(2);
gotoAndPlay (2);
if (_root.gracz.forcefield._visible) {
_root.gracz.forcefield._alpha = _root.gracz.forcefield._alpha - 20;
} else {
if (_root.speed.inv._visible == false) {
_root.gracz.hp = (_root.gracz.hp - random(3)) - 2;
}
_root.gracz.hitwater = false;
}
chx = 0;
chy = 0;
}
}
if (_y > (_root.sealevel._y + 10)) {
if (_currentframe < 18) {
_rotation = 0;
chx = 0;
chy = 0;
gotoAndPlay ("hitwater");
}
}
_x = (_x + chx);
_y = (_y - chy);
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
} else {
stop();
}
}
Instance of Symbol 651 MovieClip "fighter" in Frame 4
onClipEvent (load) {
if (String(_name) != "fighter") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
if (imie == undefined) {
imie = _root.namebase[random(_root.namebase.length)];
}
weirdshape = false;
hitwater = false;
cool = 40;
rateoffire = 3;
maxhp = 12;
hp = maxhp;
deathframe = 29;
if (ff == undefined) {
ff = false;
}
boss = false;
hitground = false;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "fighter") {
if (_currentframe < deathframe) {
if (((_currentframe != 1) && (_currentframe != 15)) && (_currentframe != 28)) {
play();
}
graczzwrot = kierunek(_x, _y, _root.gracz._x, _root.gracz._y);
zwrot = graczzwrot;
if (Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2)) < 70) {
zwrot = zwrot + 180;
}
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i]._x != _x) {
if ((Math.abs(_root.enemies[i]._x - _x) < 50) && (Math.abs(_root.enemies[i]._y - _y) < 50)) {
zwrot = kierunek(_x, _y, _root.enemies[i]._x, _root.enemies[i]._y);
zwrot = zwrot + 180;
}
}
i++;
}
if ((_root.sealevel._y - _y) < 80) {
zwrot = 0;
} else if ((_root.sealevel._y - _y) < _root.torlev[Math.floor((_x - _root.tor._x) / 100)]) {
zwrot = 0;
}
if (cool >= 40) {
if (Math.abs(_x - _root.gracz._x) < 1200) {
if (Math.abs(skrec(graczzwrot, _rotation, 150) - _rotation) < 10) {
_root.shotCount++;
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.egunshot" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.egunshot" + _root.shotCount, _y , getProperty(this, _y));
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cool = 0;
}
}
} else {
cool = cool + rateoffire;
}
_rotation = skrec(zwrot, _rotation, 6);
zmx = Math.sin(_rotation * StpRad) * 11;
zmy = Math.cos(_rotation * StpRad) * 11;
_x = (_x + zmx);
_y = (_y - zmy);
}
}
if ((_currentframe == 1) && (_rotation < -45)) {
gotoAndPlay (2);
} else if ((_currentframe == 15) && (_rotation > 45)) {
gotoAndPlay (16);
}
if ((_currentframe == 16) || (_currentframe > 28)) {
this.play();
}
if ((_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) || (_y > _root.sealevel._y)) {
hp = 0;
hitground = true;
if (_y > _root.sealevel._y) {
zmx = 0;
zmy = 0;
hitwater = true;
}
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndPlay ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
if (_root.pauza) {
stop();
}
}
Instance of Symbol 655 MovieClip "sealevel" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauza == false) {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
if (_x > 550) {
_x = 0;
_root.sea1._x = -550;
_root.sea2._x = 550;
} else if (_x < -550) {
_x = 0;
_root.sea1._x = -550;
_root.sea2._x = 550;
}
} else {
stop();
}
}
Instance of Symbol 671 MovieClip "crate" in Frame 4
onClipEvent (load) {
if (String(_name) != "crate") {
left = true;
duplicateMovieClip (_root.minimapa.cblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "crate") {
if (_currentframe == 1) {
if (left) {
_rotation = (_rotation + 1);
if (_rotation > 20) {
left = false;
}
} else {
_rotation = (_rotation - 1);
if (_rotation < -20) {
left = true;
}
}
_y = (_y + 2);
if (_y > (_root.sealevel._y - 40)) {
_rotation = 0;
removeMovieClip("_root.minimapa." + this._name);
gotoAndStop ("hitwater");
}
if (_root.tor.hitTest(_x, _y + 60, true) && (_root.bg.hitTest(_x, _y + 60, true) == false)) {
_rotation = 0;
removeMovieClip("_root.minimapa." + this._name);
gotoAndStop (3);
_y = (_y + 60);
}
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 674 MovieClip "missile" in Frame 4
onClipEvent (load) {
if (String(_name) != "missile") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
leci = true;
speed = 5;
if (dist != undefined) {
_x = (_x + ((dist * Math.sin(_rotation * StpRad)) * speed));
_y = (_y - ((dist * Math.cos(_rotation * StpRad)) * speed));
}
teamkill = 60;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "missile") {
if (_root.pauza == false) {
if (leci) {
zwrot = kierunek(_x, _y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(zwrot, _rotation, 4);
_x = (_x + (Math.sin(_rotation * StpRad) * speed));
_y = (_y - (Math.cos(_rotation * StpRad) * speed));
if (speed < 18) {
speed = speed * 1.02;
}
if (_root.gracz.pzl.hitTest(_x, _y, false)) {
_rotation = 0;
leci = false;
if (_root.speed.inv._visible == false) {
_root.gracz.hp = (_root.gracz.hp - random(11)) - 10;
}
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (teamkill == 0) {
if (_root.bosstuffy._x != undefined) {
if (_root.bosstuffy.hitTest(_x, _y, false)) {
_rotation = 0;
leci = false;
_root.bosstuffy.hp = _root.bosstuffy.hp - 25;
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
}
} else {
teamkill--;
}
}
if (((_currentframe == 1) && (_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false))) || (_y > _root.sealevel._y)) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
leci = false;
hitground = true;
if (_y > _root.sealevel._y) {
hitwater = true;
}
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
if (_currentframe > 1) {
play();
}
} else {
stop();
}
}
}
Instance of Symbol 680 MovieClip "saucer" in Frame 4
onClipEvent (load) {
if (String(_name) != "saucer") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = _root.namebase[random(_root.namebase.length)];
weirdshape = false;
gib = false;
rising = false;
desc = false;
xmove = false;
run = false;
rot = 0;
ff = false;
boss = false;
maxhp = 21;
hp = maxhp;
deathframe = 2;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "saucer") {
movecount = 0;
while ((_y + 180) < _root.gracz._y) {
if (movecount < 5) {
_y = (_y + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while ((_y + 130) > _root.gracz._y) {
if (movecount < 5) {
_y = (_y - 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x < (_root.gracz._x - 160)) {
if (movecount < 6) {
_x = (_x + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x > (_root.gracz._x + 160)) {
if (movecount < 6) {
_x = (_x - 1);
} else {
break;
}
movecount++;
}
if (gib == false) {
_rotation = (_rotation + 2);
if (_rotation > 6) {
gib = true;
}
} else {
_rotation = (_rotation - 2);
if (_rotation < -6) {
gib = false;
}
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndPlay ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 701 MovieClip "pickup" in Frame 4
onClipEvent (load) {
swapDepths(7502);
this._visible = false;
_xscale = 100;
_yscale = 200;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_currentframe > 8) {
_yscale = (_yscale + 20);
_alpha = (_alpha - 10);
}
}
Instance of Symbol 395 MovieClip "splash" in Frame 4
onClipEvent (load) {
if (String(_name) != "splash") {
_rotation = 0;
_xscale = 100;
_yscale = 60;
_x = _root.gracz._x;
_y = (_root.gracz._y + 30);
} else {
splasz = new Sound(this);
splasz.setVolume(0);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "splash") {
if (_root.pauza) {
stop();
} else {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 774 MovieClip "factory" in Frame 4
onClipEvent (load) {
if (String(_name) != "factory") {
duplicateMovieClip (_root.minimapa.facblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
deathframe = 85;
count = 0;
weirdshape = true;
maxhp = 30;
hp = maxhp;
imie = "FACTORY";
ff = false;
boss = false;
_x = (_x + 44);
active = false;
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
vol = new Sound(this);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "factory") {
if (_root.pauza == false) {
if (active) {
play();
} else {
stop();
}
if (hp <= 0) {
gotoAndStop ("deathframe");
}
distance = Math.abs(_x - _root.gracz._x);
if (distance < 600) {
vol.setVolume(60);
} else {
vol.setVolume(0);
}
if (distance < 2000) {
active = true;
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 777 MovieClip "turret" in Frame 4
onClipEvent (load) {
if (String(_name) != "turret") {
_root.enemies.splice(_root.enemies.length, 0, this);
duplicateMovieClip (_root.minimapa.turblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
deathframe = 2;
weirdshape = true;
maxhp = 22;
hp = maxhp;
imie = "TURRET";
ff = false;
boss = false;
deathboom = 60;
_x = (_x + 25);
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "turret") {
if (_root.pauza == false) {
if (hp <= 0) {
gotoAndStop ("deathframe");
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 379 MovieClip "forcefield" in Frame 4
onClipEvent (load) {
if (String(_name) != "forcefield") {
_root.enemies.splice(_root.enemies.length, 0, this);
deathframe = 9;
weirdshape = true;
swapDepths(4410);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "forcefield") {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 787 MovieClip "pink" in Frame 4
onClipEvent (load) {
if (String(_name) != "pink") {
duplicateMovieClip (_root.minimapa.pinkblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = "Pink Baroness";
weirdshape = true;
hitwater = false;
cool = 40;
rateoffire = 3;
maxhp = 120;
hp = maxhp;
deathframe = 29;
ff = false;
boss = true;
bounc = new Sound();
bounc.attachSound("crash");
sparkCount = 0;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "pink") {
if (_currentframe < deathframe) {
if (((_currentframe != 1) && (_currentframe != 15)) && (_currentframe != 28)) {
play();
}
graczzwrot = kierunek(_x, _y, _root.gracz._x, _root.gracz._y);
zwrot = graczzwrot;
if (Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2)) < 70) {
zwrot = zwrot + 180;
}
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i]._x != _x) {
if ((Math.abs(_root.enemies[i]._x - _x) < 50) && (Math.abs(_root.enemies[i]._y - _y) < 50)) {
zwrot = kierunek(_x, _y, _root.enemies[i]._x, _root.enemies[i]._y);
zwrot = zwrot + 180;
}
}
i++;
}
if ((_root.sealevel._y - _y) < 80) {
zwrot = 0;
}
if (cool >= 10) {
if (Math.abs(_x - _root.gracz._x) < 1200) {
if (Math.abs(skrec(graczzwrot, _rotation, 150) - _rotation) < 25) {
_root.shotCount++;
duplicateMovieClip (_root.pgunshot, "pgunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.pgunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.pgunshot" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.pgunshot" + _root.shotCount, _y , getProperty(this, _y));
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cool = 0;
}
}
} else {
cool = cool + rateoffire;
}
_rotation = skrec(zwrot, _rotation, 7.5);
ped = Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2));
ped = (ped * 0.06) + 7;
if (ped > 27) {
ped = 27;
}
zmx = Math.sin(_rotation * StpRad) * ped;
zmy = Math.cos(_rotation * StpRad) * ped;
_x = (_x + zmx);
_y = (_y - zmy);
i = 0;
while (i < 3) {
duplicateMovieClip (_root.spark, "spark" + sparkCount, 700 + sparkCount);
sparkCount++;
if (sparkCount > 200) {
sparkCount = 0;
}
i++;
}
}
}
if ((_currentframe == 1) && (_rotation < -45)) {
gotoAndPlay (2);
} else if ((_currentframe == 15) && (_rotation > 45)) {
gotoAndPlay (16);
}
if ((_currentframe == 16) || (_currentframe > 28)) {
this.play();
}
if ((_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) || (_y > _root.sealevel._y)) {
bounc.start();
do {
if (!((_root.tor.hitTest(_x, _y, true) && (_root.damage.hitTest(_x, _y, true) == false)) || (_y > _root.sealevel._y))) {
break;
}
if (_rotation > 0) {
hp = hp - 10;
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 40);
_rotation = (_rotation - 50);
_y = (_y - 20);
} else {
hp = hp - 10;
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 40);
_rotation = (_rotation + 50);
_y = (_y - 30);
}
} while (hp > 0);
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndStop ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
if (_root.pauza) {
stop();
}
}
Instance of Symbol 789 MovieClip "pgunshot" in Frame 4
onClipEvent (load) {
if (String(_name) != "pgunshot") {
chx = Math.sin(_rotation * StpRad) * 32;
chy = Math.cos(_rotation * StpRad) * 32;
bzat = new Sound();
bzat.attachSound("pinkz");
bzat.start();
if (dist != undefined) {
_x = (_x + (dist * chx));
_y = (_y - (dist * chy));
}
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "pgunshot") {
if ((_currentframe > 1) && (_currentframe < 8)) {
play();
}
if (_root.tor.hitTest(_x + (chx / 2), _y - (chy / 2), true) && (_root.bg.hitTest(_x + (chx / 2), _y - (chy / 2), true) == false)) {
if (_currentframe == 1) {
gotoAndPlay (2);
chx = 0;
chy = 0;
}
}
if (_currentframe == 1) {
if (_root.gracz.pzl.hitTest(_x + (chx / 2), _y - (chy / 2), false)) {
_root.speed.tarcza.gotoAndPlay(2);
gotoAndPlay (2);
if (_root.gracz.forcefield._visible) {
_root.gracz.forcefield._alpha = _root.gracz.forcefield._alpha - 50;
} else {
if (_root.speed.inv._visible == false) {
_root.gracz.hp = (_root.gracz.hp - random(9)) - 8;
}
_root.gracz.hitwater = false;
}
chx = 0;
chy = 0;
}
}
if (_y > (_root.sealevel._y + 10)) {
if (_currentframe < 8) {
_rotation = 0;
chx = 0;
chy = 0;
gotoAndPlay ("hitwater");
}
}
_x = (_x + chx);
_y = (_y - chy);
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
} else {
stop();
}
}
Instance of Symbol 796 MovieClip "spark" in Frame 4
onClipEvent (load) {
if (String(_name) != "spark") {
gotoAndStop(random(6) + 1);
_x = _root.pinkbaron._x;
_y = _root.pinkbaron._y;
_x = ((_x + random(5)) - 2);
_y = ((_y + random(5)) - 2);
life = 60;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "spark") {
if (_root.pauza == false) {
_x = ((_x + random(11)) - 5);
_y = (_y + 5);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
life--;
if (life <= 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 804 MovieClip "bosstuff" in Frame 4
onClipEvent (load) {
if (String(_name) != "bosstuff") {
duplicateMovieClip (_root.minimapa.bigblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = "George";
weirdshape = true;
hitwater = false;
cool = 0;
rateoffire = 3;
maxhp = 70;
hp = maxhp;
deathframe = 3;
ff = true;
boss = true;
rise = true;
salwa = false;
seria = 3;
_root.bossfight = "moloch";
alf = 100;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "bosstuff") {
if (_root.pauza == false) {
if (_yscale > 103) {
rise = false;
}
if (_yscale < 97) {
rise = true;
}
if (rise) {
_yscale = (_yscale + 1);
} else {
_yscale = (_yscale - 1);
}
if (salwa == false) {
movspd = 7;
if (Math.abs(_x - _root.gracz._x) > 600) {
movspd = 18;
}
gunrot = gun._rotation;
movecount = 0;
while (_x > 425) {
if (movecount < movspd) {
_x = (_x - 1);
} else {
break;
}
movecount++;
if (_currentframe == 2) {
gotoAndStop (1);
gun._rotation = gunrot;
forcefield._alpha = alf;
}
}
movecount = 0;
while (_x < 125) {
if (movecount < movspd) {
_x = (_x + 1);
} else {
break;
}
movecount++;
if (_currentframe == 1) {
gotoAndStop (2);
gun._rotation = gunrot;
forcefield._alpha = alf;
}
}
if (Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2)) < 100) {
if (_x > _root.gracz._x) {
_x = (_x + 5);
} else {
_x = (_x - 5);
}
}
movecount = 0;
while ((_y + 30) < _root.gracz._y) {
if (movecount < 4) {
_y = (_y + 1);
} else {
break;
}
movecount++;
}
if (_root.tor.hitTest(_x, _y + 80, true)) {
podteren = true;
_y = (_y - 5);
} else {
podteren = false;
}
movecount = 0;
if (podteren == false) {
while ((_y + 30) > _root.gracz._y) {
if (movecount < 4) {
_y = (_y - 1);
} else {
break;
}
movecount++;
}
}
} else if (cool >= 20) {
if (Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2)) < 200) {
_root.shotCount++;
duplicateMovieClip (_root.missile, "missile" + _root.shotCount, _root.shotCount + 500);
if (_currentframe == 1) {
setProperty("_root.missile" + _root.shotCount, _rotation , getProperty(this, _rotation) - 90);
} else {
setProperty("_root.missile" + _root.shotCount, _rotation , getProperty(this, _rotation) + 90);
}
setProperty("_root.missile" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.missile" + _root.shotCount, _y , getProperty(this, _y));
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cool = 0;
seria--;
if (seria == 0) {
salwa = false;
}
}
} else {
cool = cool + 4;
}
if (hp <= 0) {
gotoAndStop (3);
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 674 MovieClip "rocket" in Frame 4
onClipEvent (load) {
if (String(_name) != "rocket") {
_x = _root.gracz._x;
_y = _root.gracz._y;
_rotation = _root.gracz._rotation;
leci = true;
speed = 5;
dropspd = Math.random() * 3;
_root.gracz.pociski--;
if (_root.gracz.pociski <= 0) {
_root.gracz.weapon = "gun";
_root.gracz.pociski = Infinity;
}
cel = undefined;
celx = _root._xmouse;
cely = _root._ymouse;
homing = false;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "rocket") {
if (_root.pauza == false) {
if (leci) {
if (speed < 18) {
if (speed < 10) {
_y = (_y + dropspd);
}
speed = speed * 1.05;
} else if (_root.enemies[0] != undefined) {
if (cel == undefined) {
cel = _root.enemies[0];
odlcel = Math.sqrt(Math.pow(_x - _root.enemies[0]._x, 2) + Math.pow(_y - _root.enemies[0]._y, 2));
i = 0;
while (i <= _root.enemies.length) {
odlnew = Math.sqrt(Math.pow(_x - _root.enemies[i]._x, 2) + Math.pow(_y - _root.enemies[i]._y, 2));
if (odlnew < odlcel) {
cel = _root.enemies[i];
odlcel = odlnew;
}
i++;
}
} else if (cel._name != undefined) {
zwrot = kierunek(_x, _y, cel._x, cel._y);
_rotation = skrec(zwrot, _rotation, 10);
} else {
cel = undefined;
}
}
_x = (_x + (Math.sin(_rotation * StpRad) * speed));
_y = (_y - (Math.cos(_rotation * StpRad) * speed));
i = 0;
while (i <= _root.enemies.length) {
hit = false;
if (_root.enemies[i].weirdshape) {
if (_root.enemies[i].hitTest(_x, _y, true)) {
hit = true;
}
} else if (_root.enemies[i].hitTest(_x, _y, false)) {
hit = true;
}
if (hit) {
if (_root.enemies[i]._currentframe < _root.enemies[i].deathframe) {
if (_currentframe == 1) {
gotoAndPlay (2);
if (_root.enemies[i].boss == false) {
obecny = false;
j = 0;
while (j <= _root.speed.fullenhud.top5.length) {
if (_root.speed.fullenhud.top5[j] == _root.enemies[i]) {
obecny = true;
_root.speed.fullenhud.time5[j] = 100;
break;
}
j++;
}
if (obecny == false) {
if (_root.speed.fullenhud.top5.length < 5) {
_root.speed.fullenhud.top5.push(_root.enemies[i]);
_root.speed.fullenhud.time5.push(100);
} else {
srt = _root.speed.fullenhud.time5;
if ((((srt[4] <= srt[0]) && (srt[4] <= srt[1])) && (srt[4] <= srt[2])) && (srt[4] <= srt[3])) {
_root.speed.fullenhud.top5[4] = _root.enemies[i];
_root.speed.fullenhud.time5[4] = 100;
} else if ((((srt[3] <= srt[0]) && (srt[3] <= srt[1])) && (srt[3] <= srt[2])) && (srt[3] <= srt[4])) {
_root.speed.fullenhud.top5[3] = _root.enemies[i];
_root.speed.fullenhud.time5[3] = 100;
} else if ((((srt[2] <= srt[0]) && (srt[2] <= srt[1])) && (srt[2] <= srt[3])) && (srt[2] <= srt[4])) {
_root.speed.fullenhud.top5[2] = _root.enemies[i];
_root.speed.fullenhud.time5[2] = 100;
} else if ((((srt[1] <= srt[0]) && (srt[1] <= srt[2])) && (srt[1] <= srt[3])) && (srt[1] <= srt[4])) {
_root.speed.fullenhud.top5[1] = _root.enemies[i];
_root.speed.fullenhud.time5[1] = 100;
} else if ((((srt[0] <= srt[1]) && (srt[0] <= srt[2])) && (srt[0] <= srt[3])) && (srt[0] <= srt[4])) {
_root.speed.fullenhud.top5[0] = _root.enemies[i];
_root.speed.fullenhud.time5[0] = 100;
}
}
}
}
if (_root.enemies[i].forcefield._visible) {
_root.enemies[i].forcefield._alpha = _root.enemies[i].forcefield._alpha - 40;
} else {
_root.enemies[i].hp = _root.enemies[i].hp - (random(14) + 8);
}
gotoAndPlay (2);
leci = false;
}
}
}
i++;
}
}
if (((_currentframe == 1) && (_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false))) || (_y > _root.sealevel._y)) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
leci = false;
hitground = true;
if (_y > _root.sealevel._y) {
hitwater = true;
}
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
if (homing == false) {
celx = celx - _root.gracz.celx;
cely = cely + _root.gracz.cely;
}
}
if (_currentframe > 1) {
play();
}
} else {
stop();
}
}
}
Instance of Symbol 811 MovieClip "redfield" in Frame 4
onClipEvent (load) {
if (String(_name) != "redfield") {
_root.enemies.splice(_root.enemies.length, 0, this);
deathframe = 10;
weirdshape = true;
red = true;
blast = new Sound();
blast.attachSound("pinkz");
active = 3;
_x = (_x + 70);
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
dies = false;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "redfield") {
if (_root.pauza == false) {
if (active == 3) {
if (this.hitTest(_root.gracz._x + (Math.sin(_root.gracz._rotation * StpRad) * 20), _root.gracz._y - (Math.cos(_root.gracz._rotation * StpRad) * 20), true)) {
_root.gracz._rotation = _root.gracz._rotation - 180;
active = 0;
gotoAndPlay (9);
blast.start();
}
} else if (active < 3) {
active++;
}
if (dies) {
_alpha = (_alpha - 3);
if (_alpha < 20) {
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip(this);
}
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 824 MovieClip "blysk" in Frame 4
onClipEvent (load) {
if (String(_name) == "blysk") {
stop();
}
}
onClipEvent (enterFrame) {
if (String(_name) != "blysk") {
if (_root.pauza == false) {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
}
}
Instance of Symbol 829 MovieClip "lturret" in Frame 4
onClipEvent (load) {
if (String(_name) != "lturret") {
_root.enemies.splice(_root.enemies.length, 0, this);
duplicateMovieClip (_root.minimapa.turblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
deathframe = 2;
weirdshape = true;
maxhp = 22;
hp = maxhp;
imie = "TURRET";
ff = false;
boss = false;
deathboom = 60;
_x = (_x + 18);
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "lturret") {
if (_root.pauza == false) {
if (hp <= 0) {
gotoAndStop ("deathframe");
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 832 MovieClip "rturret" in Frame 4
onClipEvent (load) {
if (String(_name) != "rturret") {
_root.enemies.splice(_root.enemies.length, 0, this);
duplicateMovieClip (_root.minimapa.turblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
deathframe = 2;
weirdshape = true;
maxhp = 22;
hp = maxhp;
imie = "TURRET";
ff = false;
boss = false;
deathboom = 60;
_x = (_x + 25);
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "rturret") {
if (_root.pauza == false) {
if (hp <= 0) {
gotoAndStop ("deathframe");
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 834 MovieClip "rsaucer" in Frame 4
onClipEvent (load) {
if (String(_name) != "rsaucer") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = _root.namebase[random(_root.namebase.length)];
weirdshape = false;
gib = false;
rising = false;
desc = false;
xmove = false;
run = false;
rot = 0;
ff = false;
boss = false;
maxhp = 21;
hp = maxhp;
deathframe = 2;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "rsaucer") {
movecount = 0;
while ((_y + 180) < _root.gracz._y) {
if (movecount < 5) {
_y = (_y + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while ((_y + 130) > _root.gracz._y) {
if (movecount < 5) {
_y = (_y - 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x < (_root.gracz._x - 160)) {
if (movecount < 6) {
_x = (_x + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x > (_root.gracz._x + 160)) {
if (movecount < 6) {
_x = (_x - 1);
} else {
break;
}
movecount++;
}
if (gib == false) {
_rotation = (_rotation + 2);
if (_rotation > 6) {
gib = true;
}
} else {
_rotation = (_rotation - 2);
if (_rotation < -6) {
gib = false;
}
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndPlay ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 836 MovieClip "lsaucer" in Frame 4
onClipEvent (load) {
if (String(_name) != "lsaucer") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = _root.namebase[random(_root.namebase.length)];
weirdshape = false;
gib = false;
rising = false;
desc = false;
xmove = false;
run = false;
rot = 0;
ff = false;
boss = false;
maxhp = 21;
hp = maxhp;
deathframe = 2;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "lsaucer") {
movecount = 0;
while ((_y + 180) < _root.gracz._y) {
if (movecount < 5) {
_y = (_y + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while ((_y + 130) > _root.gracz._y) {
if (movecount < 5) {
_y = (_y - 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x < (_root.gracz._x - 160)) {
if (movecount < 6) {
_x = (_x + 1);
} else {
break;
}
movecount++;
}
movecount = 0;
while (_x > (_root.gracz._x + 160)) {
if (movecount < 6) {
_x = (_x - 1);
} else {
break;
}
movecount++;
}
if (gib == false) {
_rotation = (_rotation + 2);
if (_rotation > 6) {
gib = true;
}
} else {
_rotation = (_rotation - 2);
if (_rotation < -6) {
gib = false;
}
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndPlay ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 838 MovieClip in Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.crosshair._x;
_y = _root.crosshair._y;
odl = Math.sqrt(Math.pow(_root.crosshair._x - _root.gracz._x, 2) + Math.pow(_root.crosshair._y - _root.gracz._y, 2));
odl = Math.round(odl);
}
Instance of Symbol 840 MovieClip "frag" in Frame 4
onClipEvent (load) {
if (String(_name) != "frag") {
xch = Math.random() * 6;
ych = ((-Math.random()) * 6) - 4;
fall = Math.random();
if (random(2) == 0) {
xch = -xch;
}
}
}
onClipEvent (enterFrame) {
if (String(_name) != "frag") {
if (_root.pauza == false) {
if (_currentframe < 21) {
play();
_x = (_x + xch);
_y = (_y + ych);
if (ych < 18) {
ych = (ych + 0.3) + fall;
}
if (_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) {
gotoAndStop (21);
}
if (_y > (_root.sealevel._y + 10)) {
gotoAndStop ("hitwater");
}
i = 0;
while (i <= _root.enemies.length) {
hit = false;
if (_root.enemies[i].weirdshape) {
if (_root.enemies[i].hitTest(_x, _y, true)) {
hit = true;
}
} else if (_root.enemies[i].hitTest(_x, _y, false)) {
hit = true;
}
if (hit) {
if (_root.enemies[i]._currentframe < _root.enemies[i].deathframe) {
gotoAndPlay (21);
if (_root.enemies[i].boss == false) {
obecny = false;
j = 0;
while (j <= _root.speed.fullenhud.top5.length) {
if (_root.speed.fullenhud.top5[j] == _root.enemies[i]) {
obecny = true;
_root.speed.fullenhud.time5[j] = 100;
break;
}
j++;
}
if (obecny == false) {
if (_root.speed.fullenhud.top5.length < 5) {
_root.speed.fullenhud.top5.push(_root.enemies[i]);
_root.speed.fullenhud.time5.push(100);
} else {
srt = _root.speed.fullenhud.time5;
if ((((srt[4] <= srt[0]) && (srt[4] <= srt[1])) && (srt[4] <= srt[2])) && (srt[4] <= srt[3])) {
_root.speed.fullenhud.top5[4] = _root.enemies[i];
_root.speed.fullenhud.time5[4] = 100;
} else if ((((srt[3] <= srt[0]) && (srt[3] <= srt[1])) && (srt[3] <= srt[2])) && (srt[3] <= srt[4])) {
_root.speed.fullenhud.top5[3] = _root.enemies[i];
_root.speed.fullenhud.time5[3] = 100;
} else if ((((srt[2] <= srt[0]) && (srt[2] <= srt[1])) && (srt[2] <= srt[3])) && (srt[2] <= srt[4])) {
_root.speed.fullenhud.top5[2] = _root.enemies[i];
_root.speed.fullenhud.time5[2] = 100;
} else if ((((srt[1] <= srt[0]) && (srt[1] <= srt[2])) && (srt[1] <= srt[3])) && (srt[1] <= srt[4])) {
_root.speed.fullenhud.top5[1] = _root.enemies[i];
_root.speed.fullenhud.time5[1] = 100;
} else if ((((srt[0] <= srt[1]) && (srt[0] <= srt[2])) && (srt[0] <= srt[3])) && (srt[0] <= srt[4])) {
_root.speed.fullenhud.top5[0] = _root.enemies[i];
_root.speed.fullenhud.time5[0] = 100;
}
}
}
}
if (_root.enemies[i].forcefield._visible) {
_root.enemies[i].forcefield._alpha = _root.enemies[i].forcefield._alpha - 15;
} else {
_root.enemies[i].hp = _root.enemies[i].hp - (random(3) + 3);
}
}
}
i++;
}
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
}
}
Instance of Symbol 655 MovieClip "sea2" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauza == false) {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
}
Instance of Symbol 655 MovieClip "sea1" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauza == false) {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
}
Instance of Symbol 847 MovieClip "cloud" in Frame 4
onClipEvent (load) {
if (String(_name) != "cloud") {
gotoAndStop(random(6) + 1);
while (_root.tor.hitTest(_x, _y, true)) {
_y = (_y - (Math.random() * 5));
}
if (clast != undefined) {
while (Math.abs(_y - clast) < 200) {
_y = (_y - (Math.random() * 5));
}
}
}
}
onClipEvent (enterFrame) {
if (String(_name) != "cloud") {
if (_root.pauza == false) {
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 852 MovieClip "generator" in Frame 4
onClipEvent (load) {
if (String(_name) != "generator") {
_root.enemies.splice(_root.enemies.length, 0, this);
duplicateMovieClip (_root.minimapa.turblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
deathframe = 2;
weirdshape = true;
maxhp = 25;
hp = maxhp;
imie = "GENERATOR";
ff = false;
boss = false;
deathboom = 60;
_x = (_x + 35);
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "generator") {
if (_root.pauza == false) {
if (hp <= 0) {
Set(pole + ".dies", true);
gotoAndStop(deathframe);
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 862 MovieClip "elitef" in Frame 4
onClipEvent (load) {
if (String(_name) != "elitef") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
if (imie == undefined) {
imie = _root.namebase[random(_root.namebase.length)];
}
weirdshape = false;
hitwater = false;
cool = 40;
rateoffire = 1;
maxhp = 18;
hp = maxhp;
deathframe = 29;
if (ff == undefined) {
if (_root.poziom > 2) {
ff = true;
}
}
boss = false;
hitground = false;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "elitef") {
if (_currentframe < deathframe) {
if (((_currentframe != 1) && (_currentframe != 15)) && (_currentframe != 28)) {
play();
}
graczzwrot = kierunek(_x, _y, _root.gracz._x, _root.gracz._y);
zwrot = graczzwrot;
if (Math.sqrt(Math.pow(_x - _root.gracz._x, 2) + Math.pow(_y - _root.gracz._y, 2)) < 70) {
zwrot = zwrot + 180;
}
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i]._x != _x) {
if ((Math.abs(_root.enemies[i]._x - _x) < 50) && (Math.abs(_root.enemies[i]._y - _y) < 50)) {
zwrot = kierunek(_x, _y, _root.enemies[i]._x, _root.enemies[i]._y);
zwrot = zwrot + 180;
}
}
i++;
}
if ((_root.sealevel._y - _y) < 80) {
zwrot = 0;
} else if ((_root.sealevel._y - _y) < _root.torlev[Math.floor((_x - _root.tor._x) / 100)]) {
zwrot = 0;
}
if (cool >= 40) {
if (Math.abs(_x - _root.gracz._x) < 1200) {
if (Math.abs(skrec(graczzwrot, _rotation, 150) - _rotation) < 10) {
_root.shotCount++;
duplicateMovieClip (_root.pgunshot, "pgunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.pgunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.pgunshot" + _root.shotCount, _x , getProperty(this, _x));
setProperty("_root.pgunshot" + _root.shotCount, _y , getProperty(this, _y));
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cool = 0;
}
}
} else {
cool = cool + rateoffire;
}
_rotation = skrec(zwrot, _rotation, 7);
zmx = Math.sin(_rotation * StpRad) * 12;
zmy = Math.cos(_rotation * StpRad) * 12;
_x = (_x + zmx);
_y = (_y - zmy);
}
}
if ((_currentframe == 1) && (_rotation < -45)) {
gotoAndPlay (2);
} else if ((_currentframe == 15) && (_rotation > 45)) {
gotoAndPlay (16);
}
if ((_currentframe == 16) || (_currentframe > 28)) {
this.play();
}
if ((_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) || (_y > _root.sealevel._y)) {
hp = 0;
hitground = true;
if (_y > _root.sealevel._y) {
zmx = 0;
zmy = 0;
hitwater = true;
}
}
if ((hp <= 0) && (_currentframe < deathframe)) {
gotoAndPlay ("death");
}
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
if (_root.pauza) {
stop();
}
}
Instance of Symbol 871 MovieClip "sfactory" in Frame 4
onClipEvent (load) {
if (String(_name) != "sfactory") {
duplicateMovieClip (_root.minimapa.facblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
deathframe = 85;
count = 0;
weirdshape = true;
maxhp = 30;
hp = maxhp;
imie = "FACTORY";
ff = false;
boss = false;
_x = (_x + 44);
active = false;
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
vol = new Sound(this);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "sfactory") {
if (_root.pauza == false) {
if (active) {
play();
} else {
stop();
}
if (hp <= 0) {
gotoAndStop ("deathframe");
}
distance = Math.abs(_x - _root.gracz._x);
if (distance < 600) {
vol.setVolume(60);
} else {
vol.setVolume(0);
}
if (distance < 2000) {
active = true;
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 892 MovieClip "efactory" in Frame 4
onClipEvent (load) {
if (String(_name) != "efactory") {
duplicateMovieClip (_root.minimapa.facblip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
deathframe = 85;
count = 0;
weirdshape = true;
maxhp = 30;
hp = maxhp;
imie = "FACTORY";
ff = false;
boss = false;
_x = (_x + 44);
active = false;
xpos = _x - _root.tor._x;
ypos = _y - _root.tor._y;
vol = new Sound(this);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "efactory") {
if (_root.pauza == false) {
if (active) {
play();
} else {
stop();
}
if (hp <= 0) {
gotoAndStop ("deathframe");
}
distance = Math.abs(_x - _root.gracz._x);
if (distance < 600) {
vol.setVolume(60);
} else {
vol.setVolume(0);
}
if (distance < 2000) {
active = true;
}
if (_root.gracz.dzialaj) {
_x = (_root.tor._x + xpos);
_y = (_root.tor._y + ypos);
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 897 MovieClip "segment" in Frame 4
onClipEvent (load) {
if (String(_name) != "segment") {
duplicateMovieClip (_root.minimapa.blip, _name, getDepth(this));
Set(("_root.minimapa." + _name) + ".cel", this);
_root.enemies.splice(_root.enemies.length, 0, this);
imie = "SEGMENT";
pos = _root.serpent.length;
_root.serpent[pos] = this;
weirdshape = false;
deathframe = 3;
maxhp = 5;
hp = maxhp;
boss = false;
bit = 0;
if (_y > _root.sealevel._y) {
underwater = true;
_visible = false;
Set(("_root.minimapa." + _name) + "._visible", false);
} else {
underwater = false;
_visible = true;
Set(("_root.minimapa." + _name) + "._visible", true);
}
growl = new Sound(this);
growl.attachSound("taur2");
}
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (String(_name) != "segment") {
lastx = _x;
lasty = _y;
lastr = _rotation;
if (hp <= 0) {
if (_currentframe < deathframe) {
gotoAndStop(deathframe);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
}
}
if (_root.serpent[pos - 1].serp != serp) {
if (maxhp == 5) {
maxhp = 17;
hp = maxhp;
}
if (bit == 0) {
zwrot = kierunek(_x, _y, _root.gracz._x, _root.gracz._y);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i]._x != _x) {
if (_root.enemies[i].serp != serp) {
if ((Math.abs(_root.enemies[i]._x - _x) < 50) && (Math.abs(_root.enemies[i]._y - _y) < 50)) {
zwrot = kierunek(_x, _y, _root.enemies[i]._x, _root.enemies[i]._y);
zwrot = zwrot + 180;
}
}
}
i++;
}
_rotation = skrec(zwrot, _rotation, 7);
} else {
bit--;
}
chanx = Math.sin(_rotation * StpRad) * 12;
chany = Math.cos(_rotation * StpRad) * 12;
_x = (_x + chanx);
_y = (_y - chany);
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_root.gracz.pzl.hitTest(_x, _y, false) && (bit == 0)) {
_root.speed.tarcza.gotoAndPlay(2);
if (random(2) == 0) {
_rotation = (_rotation + 45);
} else {
_rotation = (_rotation - 45);
}
_root.gracz._rotation = (_root.gracz._rotation + random(361)) - 180;
if (_root.speed.inv._visible == false) {
_root.gracz.hp = (_root.gracz.hp - random(12)) - 8;
}
_root.gracz.hitwater = false;
bit = 10;
_root.speed.pain.gotoAndPlay(2);
growl.start();
}
if (_root.tor.hitTest(_x, _y, true) && (_root.bg.hitTest(_x, _y, true) == false)) {
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 20);
if (Math.abs(_x - _root.gracz._x) < 300) {
growl.start();
}
}
} else {
_x = _root.serpent[pos - 1].lastx;
_y = _root.serpent[pos - 1].lasty;
_rotation = _root.serpent[pos - 1].lastr;
if (_currentframe == 2) {
gotoAndStop (1);
}
}
if (_root.gracz.dzialaj) {
_x = (_x - Math.round(_root.gracz.celx));
_y = (_y + Math.round(_root.gracz.cely));
}
if (_y >= _root.sealevel._y) {
if (underwater == false) {
underwater = true;
_visible = false;
Set(("_root.minimapa." + _name) + "._visible", false);
rand = random(50);
duplicateMovieClip (_root.esplash, "esplash" + rand, 1200 + rand);
setProperty("_root.esplash" + rand, _x , getProperty(this, _x));
setProperty("_root.esplash" + rand, _y , getProperty(this, _y));
}
} else if (underwater) {
if (_currentframe == 2) {
growl.start();
}
underwater = false;
_visible = true;
Set(("_root.minimapa." + _name) + "._visible", true);
rand = random(50);
duplicateMovieClip (_root.esplash, "esplash" + rand, 1200 + rand);
setProperty("_root.esplash" + rand, _x , getProperty(this, _x));
setProperty("_root.esplash" + rand, _y , getProperty(_root.sealevel, _y) + 20);
}
}
}
}
Instance of Symbol 903 MovieClip "esplash" in Frame 4
onClipEvent (load) {
if (String(_name) != "esplash") {
_rotation = 0;
_xscale = 100;
_yscale = 60;
} else {
splasz = new Sound(this);
splasz.setVolume(0);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "esplash") {
if (_root.pauza) {
stop();
} else {
play();
if (_root.gracz.dzialaj) {
_x = (_x - _root.gracz.celx);
_y = (_y + _root.gracz.cely);
}
}
}
}
Instance of Symbol 928 MovieClip "pau" in Frame 4
onClipEvent (load) {
_visible = false;
pressed = false;
swapDepths(7999);
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (Key.isDown(80)) {
if (pressed == false) {
if (_root.pauza) {
_root.pauza = false;
_visible = false;
_root.gracz.noise.start();
} else {
_root.pauza = true;
_visible = true;
_root.gracz.noise.stop();
}
pressed = true;
}
} else if (pressed) {
pressed = false;
}
} else if (_currentframe == 2) {
_visible = true;
}
}
Instance of Symbol 938 MovieClip "mission" in Frame 4
onClipEvent (load) {
gotoAndStop(_root.poziom);
_yscale = 160;
_alpha = 0;
counter = 0;
swapDepths(7998);
}
onClipEvent (enterFrame) {
if (counter < 100) {
counter++;
} else {
_visible = false;
}
if ((counter >= 12) && (counter < 32)) {
_alpha = (_alpha + 5);
_yscale = (_yscale - 3);
} else if ((counter >= 80) && (counter < 100)) {
_alpha = (_alpha - 5);
_xscale = (_xscale+1);
}
}
Frame 5
removeMovieClip(_root.gracz);
removeMovieClip(_root.crosshair);
removeMovieClip(_root.efekty);
removeMovieClip(_root.minimapa);
removeMovieClip(_root.speed);
removeMovieClip(_root.pau);
removeMovieClip(_root.tor);
removeMovieClip(_root.mission);
i = 0;
while (i <= _root.enemies.length) {
removeMovieClip(_root.enemies[i]);
i++;
}
i = 0;
while (i < 31) {
removeMovieClip("_root.crate" + i);
i++;
}
i = 0;
while (i < 51) {
removeMovieClip("_root.bomb" + i);
i++;
}
i = 0;
while (i < 51) {
removeMovieClip("_root.gunshot" + i);
i++;
}
i = 0;
while (i < 81) {
removeMovieClip("_root.egunshot" + i);
i++;
}
i = 0;
while (i < 81) {
removeMovieClip("_root.pgunshot" + i);
i++;
}
i = 0;
while (i < 51) {
removeMovieClip("_root.splash" + i);
i++;
}
i = 0;
while (i < 51) {
removeMovieClip("_root.esplash" + i);
i++;
}
i = 0;
while (i < 81) {
removeMovieClip("_root.rocket" + i);
i++;
}
i = 0;
while (i < 81) {
removeMovieClip("_root.missile" + i);
i++;
}
i = 0;
while (i < 81) {
removeMovieClip("_root.frag" + i);
i++;
}
i = 0;
while (i < 201) {
removeMovieClip("_root.spark" + i);
i++;
}
i = 0;
while (i < 150) {
removeMovieClip("_root.cloud" + i);
i++;
}
if (_root.exit == "menu") {
_root.exit = undefined;
gotoAndStop (3);
} else if (_root.exit == "replay") {
_root.exit = undefined;
gotoAndStop (4);
}
Symbol 20 Button
on (release) {
getURL ("http://cda.pl");
}
Symbol 34 Button
on (release) {
_root.nextFrame();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
_root.stop();
zaladowano = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (zaladowano != 100) {
cda_logo.cda_pasek._xscale = (-1 * zaladowano) + 100;
cda_logo.cda_pasek._yscale = (-1 * zaladowano) + 100;
cda_logo.cda_pasek._rotation = cda_logo.cda_pasek._rotation + 5;
procent = Math.floor(zaladowano) + "%";
} else {
cda_logo.nextFrame();
cda_logo.cda_pasek._xscale = 0;
cda_logo.cda_pasek._yscale = 0;
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting & (_x < 31)) {
_x = (_x + 1);
_y = (_y + 1);
} else if (_x != 1) {
_x = (_x - 1);
_y = (_y - 1);
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting && (_x < 31)) {
_x = (_x + 1);
_y = (_y - 1);
} else if (_x != 1) {
_x = (_x - 1);
_y = (_y + 1);
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting && (_x > -31)) {
_x = (_x - 1);
_y = (_y - 1);
} else if (_x != -1) {
_x = (_x + 1);
_y = (_y + 1);
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting && (_x > -31)) {
_x = (_x - 1);
_y = (_y + 1);
} else if (_x != -1) {
_x = (_x + 1);
_y = (_y - 1);
}
}
Symbol 95 MovieClip Frame 90
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 91
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 92
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 93
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 94
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 95
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 96
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 97
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 98
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 99
_alpha = (_alpha - 10);
Symbol 95 MovieClip Frame 100
_parent.nextFrame();
Symbol 139 MovieClip Frame 50
gotoAndPlay (38);
Symbol 147 MovieClip Frame 30
stop();
Symbol 148 MovieClip Frame 99
stop();
Symbol 149 MovieClip Frame 1
stop();
Instance of Symbol 148 MovieClip in Symbol 149 MovieClip Frame 2
onClipEvent (load) {
_alpha = 220;
}
onClipEvent (enterFrame) {
if (_currentframe == 99) {
_alpha = (_alpha - 6);
if (_alpha <= 0) {
_root.nextFrame();
}
}
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 168 Button
on (release) {
if (_root._currentframe == 3) {
if (missions._visible) {
missions._visible = false;
} else {
missions._visible = true;
}
}
}
Symbol 170 Button
on (release) {
if (_root._currentframe == 3) {
if (help._visible) {
help._visible = false;
} else {
help._visible = true;
}
}
}
Symbol 176 Button
on (release) {
getURL ("mailto:tomkurowski@gmail.com");
}
Symbol 178 Button
on (release) {
if (_root._currentframe == 3) {
if (options._visible) {
options._visible = false;
} else {
options._visible = true;
}
}
}
Symbol 202 Button
on (release) {
qarrow._y = 0;
_quality = "BEST";
}
Symbol 204 Button
on (release) {
qarrow._y = 25;
_quality = "HIGH";
}
Symbol 206 Button
on (release) {
qarrow._y = 50;
_quality = "MEDIUM";
}
Symbol 208 Button
on (release) {
qarrow._y = 75;
_quality = "LOW";
}
Instance of Symbol 199 MovieClip "qarrow" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
follow = false;
_y = 0;
if (_quality == "BEST") {
_y = 0;
} else if (_quality == "HIGH") {
_y = 25;
} else if (_quality == "MEDIUM") {
_y = 50;
} else {
_y = 75;
}
}
onClipEvent (enterFrame) {
if (follow) {
if (_parent._ymouse < 25) {
_y = 0;
_quality = "BEST";
} else if (_parent._ymouse < 50) {
_y = 25;
_quality = "HIGH";
} else if (_parent._ymouse < 75) {
_y = 50;
_quality = "MEDIUM";
} else {
_y = 75;
_quality = "LOW";
}
}
}
on (press) {
follow = true;
}
on (release) {
follow = false;
}
on (releaseOutside) {
follow = false;
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 225 Button
on (release) {
sarrow._y = 0;
_root.dzwieki.setVolume(100);
}
Symbol 228 Button
on (release) {
sarrow._y = 75;
_root.dzwieki.setVolume(0);
}
Instance of Symbol 213 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = _root.dzwieki.getVolume();
}
Instance of Symbol 214 MovieClip "sarrow" in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
follow = false;
_y = Math.round((_root.dzwieki.getVolume() - 100) / -1.3);
}
onClipEvent (enterFrame) {
if (follow) {
if (_parent._ymouse < 10) {
_y = 0;
_root.dzwieki.setVolume(100);
} else if (_parent._ymouse > 85) {
_y = 75;
_root.dzwieki.setVolume(0);
} else {
_y = (_parent._ymouse - 10);
vol = (-1.3 * _y) + 100;
if (vol > 100) {
vol = 100;
} else if (vol < 0) {
vol = 0;
}
_root.dzwieki.setVolume(vol);
}
}
}
on (press) {
follow = true;
}
on (release) {
follow = false;
}
on (releaseOutside) {
follow = false;
}
Instance of Symbol 219 MovieClip "onmusic" in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
unset = true;
}
onClipEvent (enterFrame) {
if (unset) {
if (_root.musicon) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
unset = false;
}
}
on (release) {
if (_currentframe == 2) {
_root.musicon = true;
_root.mission.goals.muza.setVolume(300);
_root.mission.goals.muza.start();
if (_root._currentframe == 3) {
_root.menu.tlo.start();
}
gotoAndStop (1);
_parent.offmusic.gotoAndStop(2);
}
}
Instance of Symbol 222 MovieClip "offmusic" in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
unset = true;
}
onClipEvent (enterFrame) {
if (unset) {
if (_root.musicon) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
unset = false;
}
}
on (release) {
if (_currentframe == 2) {
_root.musicon = false;
_root.mission.goals.muza.setVolume(0);
_root.mission.goals.muza.stop();
if (_root._currentframe == 3) {
_root.menu.tlo.stop();
}
gotoAndStop (1);
_parent.onmusic.gotoAndStop(2);
}
}
Symbol 234 Button
on (release) {
_visible = false;
}
Instance of Symbol 196 MovieClip in Symbol 235 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Instance of Symbol 151 MovieClip in Symbol 235 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Symbol 238 Button
on (release) {
nextFrame();
_parent.nextFrame();
}
Symbol 239 Button
on (release) {
gotoAndStop (4);
_parent.gotoAndStop(4);
}
Symbol 241 Button
on (release) {
prevFrame();
_parent.prevFrame();
}
Symbol 245 Button
on (release) {
gotoAndStop (1);
_parent.gotoAndStop(1);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 255 Button
on (release) {
nextFrame();
}
Symbol 256 Button
on (release) {
gotoAndStop (5);
}
Symbol 259 Button
on (release) {
prevFrame();
}
Symbol 266 Button
on (release) {
gotoAndStop (1);
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 271 Button
on (release) {
gotoAndStop (5);
}
Symbol 278 Button
on (release) {
gotoAndStop (1);
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 282 Button
on (release) {
gotoAndStop (5);
}
Symbol 307 Button
on (release) {
gotoAndStop (1);
}
Symbol 317 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 317 MovieClip Frame 6
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 318 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 318 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Instance of Symbol 151 MovieClip in Symbol 318 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 348 Button
on (release) {
_root.gotoAndStop(4);
options._visible = false;
help._visible = false;
_parent.tlo.stop();
_visible = false;
}
Instance of Symbol 196 MovieClip in Symbol 349 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Instance of Symbol 151 MovieClip in Symbol 349 MovieClip Frame 1
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Instance of Symbol 324 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 1;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 328 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 2;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 332 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 3;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 336 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 4;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 340 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 5;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 344 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
ten = 6;
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.poziomow >= ten) {
gotoAndStop (2);
}
} else if (_root.poziom == ten) {
gotoAndStop (4);
} else if (_currentframe == 4) {
gotoAndStop (2);
}
}
on (rollOver) {
if (_currentframe == 2) {
gotoAndStop (3);
}
}
on (rollOut) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (releaseOutside) {
if (_currentframe == 3) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 3) {
_root.poziom = ten;
}
}
Instance of Symbol 194 MovieClip in Symbol 350 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com");
}
Instance of Symbol 235 MovieClip "options" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 318 MovieClip "help" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 349 MovieClip "missions" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 39 MovieClip "crosshair" in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 3);
}
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 1
_parent.forcefield._xscale = 74;
stop();
Instance of Symbol 356 MovieClip in Symbol 372 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 372 MovieClip Frame 3
_parent.forcefield._xscale = 85;
Symbol 372 MovieClip Frame 5
_parent.forcefield._xscale = 115;
Symbol 372 MovieClip Frame 7
_parent.forcefield._xscale = 140;
Symbol 372 MovieClip Frame 9
_parent.forcefield._xscale = 115;
Symbol 372 MovieClip Frame 11
_parent.forcefield._xscale = 85;
Symbol 372 MovieClip Frame 13
_parent.forcefield._xscale = 74;
stop();
Symbol 372 MovieClip Frame 15
_parent.forcefield._xscale = 85;
Symbol 372 MovieClip Frame 17
_parent.forcefield._xscale = 115;
Symbol 372 MovieClip Frame 19
_parent.forcefield._xscale = 140;
Symbol 372 MovieClip Frame 21
_parent.forcefield._xscale = 115;
Symbol 372 MovieClip Frame 23
_parent.forcefield._xscale = 85;
Symbol 372 MovieClip Frame 25
_parent.forcefield._xscale = 74;
stop();
Symbol 395 MovieClip Frame 16
if (this._parent._name != "gracz") {
_parent.removeMovieClip();
}
Symbol 395 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 400 MovieClip Frame 1
stop();
Instance of Symbol 372 MovieClip "pzl" in Symbol 400 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else if (((_currentframe > 2) && (_currentframe < 13)) || ((_currentframe > 14) && (_currentframe < 25))) {
play();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
} else {
_visible = false;
}
regen = 3;
}
onClipEvent (enterFrame) {
if (_parent.ff) {
if (regen >= 3) {
if (_alpha < 100) {
regen = 0;
_alpha = (_alpha+1);
}
} else {
regen++;
}
if (_alpha < 15) {
_parent.ff = false;
_visible = false;
}
}
}
Symbol 400 MovieClip Frame 2
_rotation = 0;
Instance of Symbol 395 MovieClip "spl" in Symbol 400 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitwater) {
this._visible = true;
}
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 400 MovieClip Frame 6
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 30);
Symbol 400 MovieClip Frame 8
stop();
_root.pauza = true;
Symbol 409 MovieClip Frame 1
stop();
Instance of Symbol 405 MovieClip in Symbol 409 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 14);
Symbol 420 MovieClip Frame 17
removeMovieClip(this);
Instance of Symbol 395 MovieClip in Symbol 420 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 4
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 40);
i = 0;
while (i <= 10) {
nr = random(80);
duplicateMovieClip (_root.frag, "frag" + nr, 600 + nr);
setProperty("_root.frag" + nr, _x , getProperty(this, _x));
setProperty("_root.frag" + nr, _y , getProperty(this, _y));
i++;
}
Symbol 431 MovieClip Frame 13
removeMovieClip(this);
Instance of Symbol 395 MovieClip in Symbol 431 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
if (_currentframe == 17) {
_parent.removeMovieClip();
}
}
}
Symbol 434 MovieClip Frame 20
gotoAndPlay (1);
Symbol 436 MovieClip Frame 20
gotoAndPlay (1);
Symbol 440 MovieClip Frame 20
gotoAndPlay (1);
Symbol 442 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 20
gotoAndPlay (1);
Instance of Symbol 432 MovieClip "tor" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
this.setMask(_parent.a);
}
onClipEvent (enterFrame) {
newx = (_root.tor._x / 10) + 188;
newy = (_root.tor._y / 10) + 5;
_parent.wodator._y = newy;
_x = ((_root.tor._x / 10) + 188);
_y = (_root.tor._y / 10);
}
Instance of Symbol 434 MovieClip "blip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "blip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 436 MovieClip "cblip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "cblip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 409 MovieClip "tor" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
swapDepths(_parent.wodator);
}
onClipEvent (enterFrame) {
if (_currentframe != _root.tor._currentframe) {
gotoAndStop(_root.tor._currentframe);
}
_x = ((_root.tor._x / 10) + 187);
_y = (_root.tor._y / 10);
}
Instance of Symbol 434 MovieClip "facblip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "facblip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 434 MovieClip "turblip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "turblip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 440 MovieClip "pinkblip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "pinkblip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 442 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
swapDepths(_parent.wodator);
}
onClipEvent (enterFrame) {
_rotation = _root.gracz._rotation;
_y = (_parent.graczmm._y + 2.4);
if (_root.gracz.weapon == "shotgun") {
gotoAndStop ("wide");
} else {
gotoAndStop ("narrow");
}
}
Instance of Symbol 444 MovieClip "bigblip" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (String(_name) != "bigblip") {
_x = ((cel._x / 10) + 185);
_y = (cel._y / 10);
}
}
Instance of Symbol 447 MovieClip "graczmm" in Symbol 448 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = ((_root.gracz._y / 10) - 4);
}
Symbol 452 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 1
Instance of Symbol 459 MovieClip "mask" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gracz.hp > 0) {
_xscale = _root.gracz.hp;
} else if (_root.gracz._currentframe == 1) {
_xscale = 0;
_root.gracz.speed = 0;
_root.gracz.gotoAndPlay(2);
_root.gracz.dzialaj = false;
_root.gracz.noise.stop("lot");
_root.pau.gotoAndStop(2);
}
}
Instance of Symbol 461 MovieClip in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gracz.ff) {
_xscale = (((_root.gracz.forcefield._alpha - 15) / 85) * 100);
} else {
_xscale = 0;
}
}
Symbol 485 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 485 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 468 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hp != undefined) {
_xscale = ((_parent.hp / _parent.maxhp) * 100);
if (_xscale < 0) {
_xscale = 0;
}
}
}
Instance of Symbol 470 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.ff != undefined) {
_xscale = ((_parent.ff / 85) * 100);
if (_xscale < 0) {
_xscale = 0;
}
}
}
Instance of Symbol 485 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.maxhp == 12) {
gotoAndStop ("fighter");
} else if (_parent.maxhp == 30) {
gotoAndStop ("factory");
} else if (_parent.maxhp == 22) {
gotoAndStop ("turret");
} else if (_parent.maxhp == 25) {
gotoAndStop ("generator");
} else if (_parent.maxhp == 18) {
gotoAndStop ("elite");
} else if (_parent.maxhp == 21) {
gotoAndStop ("saucer");
}
}
Symbol 499 MovieClip Frame 1
stop();
Instance of Symbol 489 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.pinkbaron.hp / _root.pinkbaron.maxhp) * 100);
if (_xscale < 0) {
_xscale = 0;
}
}
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("baroness");
}
Instance of Symbol 489 MovieClip in Symbol 499 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = ((_root.bosstuffy.hp / _root.bosstuffy.maxhp) * 100);
if (_xscale < 0) {
_xscale = 0;
}
}
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop ("moloch");
}
Instance of Symbol 497 MovieClip in Symbol 499 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (((_root.bosstuffy.forcefield._alpha - 15) * 100) / 85);
if (_xscale < 0) {
_xscale = 0;
}
}
Instance of Symbol 487 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.top5[0] == undefined) {
_visible = false;
} else {
_visible = true;
maxhp = _parent.top5[0].maxhp;
hp = _parent.top5[0].hp;
imie = _parent.top5[0].imie;
if (_parent.top5[0].ff) {
ff = _parent.top5[0].forcefield._alpha - 15;
} else {
ff = 0;
}
if (hp <= 0) {
_parent.top5.splice(0, 1);
_parent.time5.splice(0, 1);
}
}
}
Instance of Symbol 487 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.top5[1] == undefined) {
_visible = false;
} else {
_visible = true;
maxhp = _parent.top5[1].maxhp;
hp = _parent.top5[1].hp;
imie = _parent.top5[1].imie;
if (_parent.top5[1].ff) {
ff = _parent.top5[1].forcefield._alpha - 15;
} else {
ff = 0;
}
if (hp <= 0) {
_parent.top5.splice(1, 1);
_parent.time5.splice(1, 1);
}
}
}
Instance of Symbol 487 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.top5[2] == undefined) {
_visible = false;
} else {
_visible = true;
maxhp = _parent.top5[2].maxhp;
hp = _parent.top5[2].hp;
imie = _parent.top5[2].imie;
if (_parent.top5[2].ff) {
ff = _parent.top5[2].forcefield._alpha - 15;
} else {
ff = 0;
}
if (hp <= 0) {
_parent.top5.splice(2, 1);
_parent.time5.splice(2, 1);
}
}
}
Instance of Symbol 487 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.top5[3] == undefined) {
_visible = false;
} else {
_visible = true;
maxhp = _parent.top5[3].maxhp;
hp = _parent.top5[3].hp;
imie = _parent.top5[3].imie;
if (_parent.top5[3].ff) {
ff = _parent.top5[3].forcefield._alpha - 15;
} else {
ff = 0;
}
if (hp <= 0) {
_parent.top5.splice(3, 1);
_parent.time5.splice(3, 1);
}
}
}
Instance of Symbol 487 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.top5[4] == undefined) {
_visible = false;
} else {
_visible = true;
maxhp = _parent.top5[4].maxhp;
hp = _parent.top5[4].hp;
imie = _parent.top5[4].imie;
if (_parent.top5[4].ff) {
ff = _parent.top5[4].forcefield._alpha - 15;
} else {
ff = 0;
}
if (hp <= 0) {
_parent.top5.splice(4, 1);
_parent.time5.splice(4, 1);
}
}
}
Instance of Symbol 499 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.bossfight != undefined) {
gotoAndStop(_root.bossfight);
_visible = true;
} else {
_visible = false;
}
}
Symbol 520 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 1
stop();
Instance of Symbol 622 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.setne + 1);
}
Instance of Symbol 622 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.sekundy + 1);
}
Instance of Symbol 622 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.minuty + 1);
}
Symbol 627 MovieClip Frame 1
stop();
Instance of Symbol 622 MovieClip in Symbol 627 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.setne + 1);
}
Instance of Symbol 622 MovieClip in Symbol 627 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.sekundy + 1);
}
Symbol 631 MovieClip Frame 1
stop();
Instance of Symbol 452 MovieClip "tarcza" in Symbol 632 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe > 1) {
play();
}
}
Instance of Symbol 456 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.gracz.weapon);
}
Instance of Symbol 500 MovieClip "fullenhud" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
var top5 = new Array();
var time5 = new Array();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
i = 0;
while (i <= time5.length) {
if (time5[i] != undefined) {
time5[i]--;
if (time5[i] < 0) {
top5.splice(i, 1);
time5.splice(i, 1);
break;
}
}
i++;
}
if ((_root.bossfight != undefined) && (_y > 250)) {
_y = (_y-1);
}
}
}
Instance of Symbol 511 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gracz.dzialaj) {
_rotation = ((_root.gracz.szybkosc * 10) + 10);
} else {
_rotation = 0;
}
}
Instance of Symbol 520 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gracz.pociski == Infinity) {
if (_currentframe == 2) {
gotoAndStop (1);
}
} else if (_currentframe == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 623 MovieClip "timer" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
czas = 0;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
czas = czas + 3.33333333333333;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
}
}
Instance of Symbol 627 MovieClip "twist" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
czas = 0;
_visible = false;
gotoAndStop (1);
_x = 60;
_y = 30;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (czas > 0) {
_visible = true;
_global.zwrotnosc = 2;
czas = czas - 3.33333333333333;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
} else {
_visible = false;
_global.zwrotnosc = 0.8;
}
}
}
Instance of Symbol 627 MovieClip "spd" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
czas = 0;
_visible = false;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (czas > 0) {
_visible = true;
_global.maxspeed = 26;
czas = czas - 3.33333333333333;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
} else {
_visible = false;
_global.maxspeed = 16;
}
if (_parent.twist._visible) {
_x = 64;
_y = 51;
} else {
_x = 60;
_y = 30;
}
}
}
Instance of Symbol 627 MovieClip "inv" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
czas = 0;
_visible = false;
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (czas > 0) {
_visible = true;
czas = czas - 3.33333333333333;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
} else {
_visible = false;
}
if (_parent.spd._visible && (_parent.twist._visible)) {
_x = 68;
_y = 72;
} else if (_parent.spd._visible || (_parent.twist._visible)) {
_x = 64;
_y = 51;
} else {
_x = 60;
_y = 30;
}
}
}
Symbol 651 MovieClip Frame 1
stop();
Instance of Symbol 635 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 651 MovieClip Frame 1
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_parent.ff) {
if (_alpha < 100) {
}
if (_alpha < 15) {
_parent.ff = false;
_visible = false;
}
}
}
Instance of Symbol 635 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 651 MovieClip Frame 15
stop();
Instance of Symbol 635 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 651 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 651 MovieClip Frame 28
gotoAndStop (1);
Symbol 651 MovieClip Frame 29
removeMovieClip("_root.minimapa." + _name);
_rotation = 0;
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
Instance of Symbol 395 MovieClip "spl" in Symbol 651 MovieClip Frame 29
onClipEvent (load) {
this._visible = false;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitwater) {
this._visible = true;
}
}
Symbol 651 MovieClip Frame 32
if (hitground) {
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 30);
}
Symbol 651 MovieClip Frame 34
if ((hitwater == false) && (hitground == false)) {
_root.crateCount++;
duplicateMovieClip (_root.crate, "crate" + _root.crateCount, 3000 + _root.crateCount);
setProperty("_root.crate" + _root.crateCount, _x , this._x);
setProperty("_root.crate" + _root.crateCount, _y , this._y);
if (_root.crateCount >= 30) {
_root.crateCount = 0;
}
}
Symbol 651 MovieClip Frame 35
removeMovieClip(this);
Symbol 669 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 1
_rotation = 0;
Symbol 670 MovieClip Frame 5
if (lastboom) {
uszkodz(_parent._x - _root.damage._x, _parent._y - _root.damage._y, deathboom);
}
Symbol 670 MovieClip Frame 7
stop();
Symbol 671 MovieClip Frame 1
stop();
Instance of Symbol 669 MovieClip in Symbol 671 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(9) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gracz._x, _root.gracz._y, true)) {
if (_currentframe == 1) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("minigun");
_root.pickup.play();
if (_root.gracz.weapon == "minigun") {
_root.gracz.pociski = _root.gracz.pociski + 50;
} else {
_root.gracz.weapon = "minigun";
_root.gracz.pociski = 50;
}
} else if (_currentframe == 2) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("shotgun");
_root.pickup.play();
if (_root.gracz.weapon == "shotgun") {
_root.gracz.pociski = _root.gracz.pociski + 20;
} else {
_root.gracz.weapon = "shotgun";
_root.gracz.pociski = 20;
}
} else if (_currentframe == 3) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop("forcefield");
_root.pickup.play();
if (_root.gracz.ff) {
_root.gracz.forcefield._alpha = _root.gracz.forcefield._alpha + 50;
if (_root.gracz.forcefield._alpha > 100) {
_root.gracz.forcefield._alpha = 100;
}
} else {
_root.gracz.ff = true;
_root.gracz.forcefield._visible = true;
_root.gracz.forcefield._alpha = 100;
}
} else if (_currentframe == 4) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("bombs");
_root.pickup.play();
_root.gracz.bomb = _root.gracz.bomb + 5;
} else if (_currentframe == 5) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("fixit");
_root.pickup.play();
if (_root.gracz.hp < 80) {
_root.gracz.hp = _root.gracz.hp + 20;
} else {
_root.gracz.hp = 100;
}
} else if (_currentframe == 6) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("rocket");
_root.pickup.play();
if (_root.gracz.weapon == "rocket") {
_root.gracz.pociski = _root.gracz.pociski + 10;
} else {
_root.gracz.weapon = "rocket";
_root.gracz.pociski = 10;
}
} else if (_currentframe == 7) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("speed");
_root.pickup.play();
_root.speed.spd.czas = 1000;
} else if (_currentframe == 8) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("twist");
_root.pickup.play();
_root.speed.twist.czas = 1000;
} else if (_currentframe == 9) {
_root.pickup.gotoAndPlay(2);
_root.pickup.picktxt.gotoAndStop(1);
_root.pickup.picktxt.gotoAndStop("invul");
_root.pickup.play();
_root.speed.inv.czas = 600;
}
removeMovieClip("_root.minimapa." + _parent._name);
_parent.removeMovieClip();
}
}
Instance of Symbol 670 MovieClip in Symbol 671 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
lastboom = true;
deathboom = 35;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 674 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 2
removeMovieClip("_root.minimapa." + _name);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
if (hitground) {
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 30);
}
Symbol 674 MovieClip Frame 8
removeMovieClip(this);
Symbol 680 MovieClip Frame 1
stop();
Instance of Symbol 677 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
cooldown = 15;
burst = true;
_rotation = 180;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
rotacja = skrec(rot, _rotation, 3);
if (Math.abs(rotacja) > 110) {
_rotation = rotacja;
}
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst) {
if (speed >= 2) {
_root.shotCount++;
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.egunshot" + _root.shotCount, _x , _parent._x);
setProperty("_root.egunshot" + _root.shotCount, _y , _parent._y + 10);
Set(("_root.egunshot" + _root.shotCount) + ".dist", 2.5);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 5;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 15) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Symbol 680 MovieClip Frame 2
removeMovieClip("_root.minimapa." + _name);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
Symbol 680 MovieClip Frame 7
_root.crateCount++;
duplicateMovieClip (_root.crate, "crate" + _root.crateCount, 3000 + _root.crateCount);
setProperty("_root.crate" + _root.crateCount, _x , this._x);
setProperty("_root.crate" + _root.crateCount, _y , this._y);
if (_root.crateCount >= 30) {
_root.crateCount = 0;
}
Symbol 680 MovieClip Frame 8
removeMovieClip(this);
Symbol 700 MovieClip Frame 1
stop();
Symbol 701 MovieClip Frame 1
_visible = false;
stop();
Symbol 701 MovieClip Frame 2
_visible = true;
_xscale = 100;
_yscale = 200;
_alpha = 100;
Symbol 701 MovieClip Frame 18
this._visible = false;
Instance of Symbol 638 MovieClip in Symbol 774 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
_y = (-4 + _parent._currentframe);
}
}
Instance of Symbol 640 MovieClip in Symbol 774 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
_y = (10 + _parent._currentframe);
}
}
Symbol 774 MovieClip Frame 10
if (count < 11) {
count++;
gotoAndPlay (1);
}
Symbol 774 MovieClip Frame 11
count = 0;
Instance of Symbol 638 MovieClip in Symbol 774 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
}
}
Instance of Symbol 640 MovieClip in Symbol 774 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
}
}
Symbol 774 MovieClip Frame 40
duplicateMovieClip (_root.fighter, "fighter" + _root.mission.goals.enemycount, _root.mission.goals.enemycount + 4500);
setProperty("_root.fighter" + _root.mission.goals.enemycount, _x , _x);
setProperty("_root.fighter" + _root.mission.goals.enemycount, _y , _y - 100);
_root.mission.goals.enemycount++;
Symbol 774 MovieClip Frame 84
gotoAndStop (1);
Symbol 774 MovieClip Frame 85
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 774 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 774 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 774 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 774 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 45;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 777 MovieClip Frame 1
stop();
Instance of Symbol 677 MovieClip in Symbol 777 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
cooldown = 9;
burst = true;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(rot, _rotation, 3);
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst) {
if (speed >= 2) {
_root.shotCount++;
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.egunshot" + _root.shotCount, _x , _parent._x);
setProperty("_root.egunshot" + _root.shotCount, _y , _parent._y - 35);
Set(("_root.egunshot" + _root.shotCount) + ".dist", 2.5);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 3;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 9) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Symbol 777 MovieClip Frame 2
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 777 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 777 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 777 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 777 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 40;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 787 MovieClip Frame 1
stop();
Instance of Symbol 635 MovieClip "jet" in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 787 MovieClip Frame 1
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_parent.ff) {
if (_alpha < 100) {
}
if (_alpha < 15) {
_parent.ff = false;
_visible = false;
}
}
}
Instance of Symbol 635 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 787 MovieClip Frame 15
stop();
Instance of Symbol 635 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 787 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 787 MovieClip Frame 28
gotoAndStop (1);
Symbol 787 MovieClip Frame 29
removeMovieClip("_root.minimapa." + _name);
_rotation = 0;
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
stop();
Instance of Symbol 670 MovieClip in Symbol 787 MovieClip Frame 29
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 787 MovieClip Frame 29
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 787 MovieClip Frame 29
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 787 MovieClip Frame 29
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 70;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 395 MovieClip "spl" in Symbol 787 MovieClip Frame 29
onClipEvent (load) {
this._visible = false;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitwater) {
this._visible = true;
}
}
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 30);
Symbol 789 MovieClip Frame 8
removeMovieClip(this);
Instance of Symbol 395 MovieClip in Symbol 789 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 796 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 3
_root.shotCount++;
duplicateMovieClip (_root.missile, "missile" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.missile" + _root.shotCount, _x , _parent._x + xch);
setProperty("_root.missile" + _root.shotCount, _y , _parent._y + ych);
setProperty("_root.missile" + _root.shotCount, _rotation , getProperty(this, _rotation));
Set(("_root.missile" + _root.shotCount) + ".dist", 6);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
Symbol 801 MovieClip Frame 6
gotoAndStop (1);
Symbol 804 MovieClip Frame 1
stop();
Instance of Symbol 801 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
cooldown = 60;
xch = -60;
ych = 0;
_rotation = -90;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Instance of Symbol 677 MovieClip "gun" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
cooldown = 15;
burst = true;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(rot, _rotation, 5);
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst && (_parent.salwa == false)) {
if (speed >= 2) {
_root.shotCount++;
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.egunshot" + _root.shotCount, _x , _parent._x - 30);
setProperty("_root.egunshot" + _root.shotCount, _y , _parent._y + 50);
_rotation = ((_rotation + random(27)) - 13);
Set(("_root.egunshot" + _root.shotCount) + ".dist", 2.5);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 3;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 15) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Instance of Symbol 801 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
cooldown = 60;
xch = -30;
ych = 0;
_rotation = -90;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
_alpha = _parent.alf;
} else {
_visible = false;
}
active = 3;
blast = new Sound();
blast.attachSound("pinkz");
waiting = 0;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_parent.alf = _alpha;
if (_alpha < 100) {
if (waiting == 0) {
_alpha = (_alpha + 1);
} else {
waiting--;
}
}
if (_alpha < 15) {
_parent.ff = false;
if (_visible == true) {
waiting = 60;
}
_visible = false;
} else {
_visible = true;
_parent.ff = true;
}
if (_alpha < 0) {
_alpha = 0;
}
if (active == 3) {
if (this.hitTest(_root.gracz._x + (Math.sin(_root.gracz._rotation * StpRad) * 20), _root.gracz._y - (Math.cos(_root.gracz._rotation * StpRad) * 20), true)) {
_root.gracz._rotation = _root.gracz._rotation - 180;
active = 0;
_root.speed.pain.gotoAndPlay(2);
blast.start();
}
} else if (active < 3) {
active++;
}
}
}
Instance of Symbol 801 MovieClip in Symbol 804 MovieClip Frame 2
onClipEvent (load) {
cooldown = 60;
xch = 60;
ych = 0;
_rotation = 90;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Instance of Symbol 677 MovieClip "gun" in Symbol 804 MovieClip Frame 2
onClipEvent (load) {
speed = 2;
cooldown = 15;
burst = true;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(rot, _rotation, 5);
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst && (_parent.salwa == false)) {
if (speed >= 2) {
_root.shotCount++;
_rotation = ((_rotation + random(11)) - 5);
duplicateMovieClip (_root.egunshot, "egunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.egunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.egunshot" + _root.shotCount, _x , _parent._x + 30);
setProperty("_root.egunshot" + _root.shotCount, _y , _parent._y + 50);
Set(("_root.egunshot" + _root.shotCount) + ".dist", 2.5);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 3;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 15) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Instance of Symbol 801 MovieClip in Symbol 804 MovieClip Frame 2
onClipEvent (load) {
cooldown = 60;
xch = 30;
ych = 0;
_rotation = 90;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 804 MovieClip Frame 2
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
_alpha = _parent.alf;
} else {
_visible = false;
}
active = 3;
blast = new Sound();
blast.attachSound("pinkz");
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_parent.alf = _alpha;
if (_alpha < 100) {
if (waiting == 0) {
_alpha = (_alpha + 1);
} else {
waiting--;
}
}
if (_alpha < 15) {
_parent.ff = false;
if (_visible == true) {
waiting = 60;
}
_visible = false;
} else {
_visible = true;
_parent.ff = true;
}
if (_alpha < 0) {
_alpha = 0;
}
if (active == 3) {
if (this.hitTest(_root.gracz._x + (Math.sin(_root.gracz._rotation * StpRad) * 20), _root.gracz._y - (Math.cos(_root.gracz._rotation * StpRad) * 20), true)) {
_root.gracz._rotation = _root.gracz._rotation - 180;
active = 0;
_root.speed.pain.gotoAndPlay(2);
blast.start();
}
} else if (active < 3) {
active++;
}
}
}
Instance of Symbol 670 MovieClip in Symbol 804 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 804 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 804 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 804 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 70;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 811 MovieClip Frame 8
gotoAndPlay (1);
Symbol 824 MovieClip Frame 11
removeMovieClip(this);
Symbol 829 MovieClip Frame 1
stop();
Instance of Symbol 826 MovieClip in Symbol 829 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
cooldown = 20;
burst = true;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(rot, _rotation, 3);
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst) {
if (speed >= 2) {
_root.shotCount++;
duplicateMovieClip (_root.pgunshot, "pgunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.pgunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.pgunshot" + _root.shotCount, _x , _parent._x);
setProperty("_root.pgunshot" + _root.shotCount, _y , _parent._y - 35);
Set(("_root.pgunshot" + _root.shotCount) + ".dist", 2);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 20;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 20) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Symbol 829 MovieClip Frame 2
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 829 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 829 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 829 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 829 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 40;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 832 MovieClip Frame 1
stop();
Instance of Symbol 801 MovieClip in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
cooldown = 60;
xch = 2;
ych = -40;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
_rotation = skrec(rot, _rotation, 3);
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Symbol 832 MovieClip Frame 2
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 832 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 832 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 832 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 832 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 40;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 834 MovieClip Frame 1
stop();
Instance of Symbol 801 MovieClip in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
cooldown = 60;
_rotation = 180;
xch = 0;
ych = 10;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_currentframe != 1) {
play();
}
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
rotacja = skrec(rot, _rotation, 3);
if (Math.abs(rotacja) > 110) {
_rotation = rotacja;
}
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (cooldown == 60) {
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 20) {
if (_currentframe == 1) {
gotoAndPlay (2);
cooldown = 0;
}
}
} else if (cooldown < 60) {
cooldown++;
}
}
} else {
stop();
}
}
Symbol 834 MovieClip Frame 2
removeMovieClip("_root.minimapa." + _name);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
Symbol 834 MovieClip Frame 7
_root.crateCount++;
duplicateMovieClip (_root.crate, "crate" + _root.crateCount, 3000 + _root.crateCount);
setProperty("_root.crate" + _root.crateCount, _x , this._x);
setProperty("_root.crate" + _root.crateCount, _y , this._y);
if (_root.crateCount >= 30) {
_root.crateCount = 0;
}
Symbol 834 MovieClip Frame 8
removeMovieClip(this);
Symbol 836 MovieClip Frame 1
stop();
Instance of Symbol 826 MovieClip in Symbol 836 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
cooldown = 20;
burst = true;
_rotation = 180;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
rot = kierunek(_x + _parent._x, _y + _parent._y, _root.gracz._x, _root.gracz._y);
rotacja = skrec(rot, _rotation, 3);
if (Math.abs(rotacja) > 110) {
_rotation = rotacja;
}
if (Math.abs(skrec(rot, _rotation, 150) - _rotation) < 15) {
if (Math.abs((_x + _parent._x) - _root.gracz._x) < 400) {
if (burst) {
if (speed >= 2) {
_root.shotCount++;
duplicateMovieClip (_root.pgunshot, "pgunshot" + _root.shotCount, _root.shotCount + 500);
setProperty("_root.pgunshot" + _root.shotCount, _rotation , getProperty(this, _rotation));
setProperty("_root.pgunshot" + _root.shotCount, _x , _parent._x);
setProperty("_root.pgunshot" + _root.shotCount, _y , _parent._y);
Set(("_root.pgunshot" + _root.shotCount) + ".dist", 2);
if (_root.shotCount == 80) {
_root.shotCount = 0;
}
cooldown = cooldown - 20;
if (cooldown <= 0) {
burst = false;
}
speed = 0;
} else {
speed++;
}
} else if (cooldown >= 20) {
burst = true;
} else {
cooldown++;
}
}
}
}
}
Symbol 836 MovieClip Frame 2
removeMovieClip("_root.minimapa." + _name);
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
Symbol 836 MovieClip Frame 7
_root.crateCount++;
duplicateMovieClip (_root.crate, "crate" + _root.crateCount, 3000 + _root.crateCount);
setProperty("_root.crate" + _root.crateCount, _x , this._x);
setProperty("_root.crate" + _root.crateCount, _y , this._y);
if (_root.crateCount >= 30) {
_root.crateCount = 0;
}
Symbol 836 MovieClip Frame 8
removeMovieClip(this);
Symbol 840 MovieClip Frame 20
gotoAndPlay (1);
Symbol 840 MovieClip Frame 21
stop();
Instance of Symbol 670 MovieClip in Symbol 840 MovieClip Frame 21
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
lastboom = true;
deathboom = 20;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 395 MovieClip in Symbol 840 MovieClip Frame 22
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
if (_currentframe == 17) {
_parent.removeMovieClip();
}
}
}
Symbol 847 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 852 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 852 MovieClip Frame 2
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
son._visible = false;
Instance of Symbol 670 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 40;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 862 MovieClip Frame 1
stop();
Instance of Symbol 635 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 379 MovieClip "forcefield" in Symbol 862 MovieClip Frame 1
onClipEvent (load) {
if (_parent.ff) {
_visible = true;
_alpha = 100;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_parent.ff) {
if (_alpha < 100) {
}
if (_alpha < 15) {
_parent.ff = false;
_visible = false;
}
}
}
Instance of Symbol 635 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 862 MovieClip Frame 15
stop();
Instance of Symbol 635 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 484 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Instance of Symbol 638 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 640 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 4);
}
}
Instance of Symbol 299 MovieClip in Symbol 862 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.pauza) {
stop();
} else {
play();
}
}
Symbol 862 MovieClip Frame 28
gotoAndStop (1);
Symbol 862 MovieClip Frame 29
removeMovieClip("_root.minimapa." + _name);
_rotation = 0;
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
Instance of Symbol 395 MovieClip "spl" in Symbol 862 MovieClip Frame 29
onClipEvent (load) {
this._visible = false;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitwater) {
this._visible = true;
}
}
Symbol 862 MovieClip Frame 32
if (hitground) {
uszkodz(_x - _root.damage._x, _y - _root.damage._y, 30);
}
Symbol 862 MovieClip Frame 34
if ((hitwater == false) && (hitground == false)) {
_root.crateCount++;
duplicateMovieClip (_root.crate, "crate" + _root.crateCount, 3000 + _root.crateCount);
setProperty("_root.crate" + _root.crateCount, _x , this._x);
setProperty("_root.crate" + _root.crateCount, _y , this._y);
if (_root.crateCount >= 30) {
_root.crateCount = 0;
}
}
Symbol 862 MovieClip Frame 35
removeMovieClip(this);
Instance of Symbol 638 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
_y = (-4 + _parent._currentframe);
}
}
Instance of Symbol 640 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
_y = (10 + _parent._currentframe);
}
}
Symbol 871 MovieClip Frame 10
if (count < 11) {
count++;
gotoAndPlay (1);
}
Symbol 871 MovieClip Frame 11
count = 0;
Instance of Symbol 638 MovieClip in Symbol 871 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
}
}
Instance of Symbol 640 MovieClip in Symbol 871 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
}
}
Symbol 871 MovieClip Frame 40
los = random(3);
if (los == 0) {
duplicateMovieClip (_root.saucer, "saucer" + _root.mission.goals.enemycount, _root.mission.goals.enemycount + 4500);
setProperty("_root.saucer" + _root.mission.goals.enemycount, _x , _x);
setProperty("_root.saucer" + _root.mission.goals.enemycount, _y , _y - 50);
} else if (los == 1) {
duplicateMovieClip (_root.lsaucer, "lsaucer" + _root.mission.goals.enemycount, _root.mission.goals.enemycount + 4500);
setProperty("_root.lsaucer" + _root.mission.goals.enemycount, _x , _x);
setProperty("_root.lsaucer" + _root.mission.goals.enemycount, _y , _y - 50);
} else {
duplicateMovieClip (_root.rsaucer, "rsaucer" + _root.mission.goals.enemycount, _root.mission.goals.enemycount + 4500);
setProperty("_root.rsaucer" + _root.mission.goals.enemycount, _x , _x);
setProperty("_root.rsaucer" + _root.mission.goals.enemycount, _y , _y - 50);
}
_root.mission.goals.enemycount++;
Symbol 871 MovieClip Frame 84
gotoAndStop (1);
Symbol 871 MovieClip Frame 85
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 871 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 871 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 871 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 871 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 45;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 638 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
_y = (-4 + _parent._currentframe);
}
}
Instance of Symbol 640 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
_y = (10 + _parent._currentframe);
}
}
Symbol 892 MovieClip Frame 10
if (count < 11) {
count++;
gotoAndPlay (1);
}
Symbol 892 MovieClip Frame 11
count = 0;
Instance of Symbol 638 MovieClip in Symbol 892 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation + 4);
}
}
Instance of Symbol 640 MovieClip in Symbol 892 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pauza == false) {
_rotation = (_rotation - 8);
}
}
Instance of Symbol 862 MovieClip in Symbol 892 MovieClip Frame 31
onClipEvent (load) {
ff = false;
}
Symbol 892 MovieClip Frame 40
duplicateMovieClip (_root.elitef, "elitef" + _root.mission.goals.enemycount, _root.mission.goals.enemycount + 4500);
setProperty("_root.elitef" + _root.mission.goals.enemycount, _x , _x);
setProperty("_root.elitef" + _root.mission.goals.enemycount, _y , _y - 100);
_root.mission.goals.enemycount++;
Symbol 892 MovieClip Frame 84
gotoAndStop (1);
Symbol 892 MovieClip Frame 85
stop();
i = 0;
while (i <= _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
break;
}
i++;
}
removeMovieClip("_root.minimapa." + _name);
Instance of Symbol 670 MovieClip in Symbol 892 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 892 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 5;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 892 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 9;
_visible = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
} else {
stop();
}
}
Instance of Symbol 670 MovieClip in Symbol 892 MovieClip Frame 85
onClipEvent (load) {
odl = 0;
delay = 16;
_visible = false;
deathboom = 45;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 896 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Instance of Symbol 896 MovieClip in Symbol 897 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_parent._rotation > 0) {
gotoAndStop (2);
}
} else if (_currentframe == 2) {
if (_parent._rotation < 0) {
gotoAndStop (1);
}
}
}
Instance of Symbol 670 MovieClip in Symbol 897 MovieClip Frame 3
onClipEvent (load) {
odl = 0;
delay = 0;
_visible = false;
deathboom = 30;
lastboom = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (odl >= delay) {
_visible = true;
play();
}
odl++;
if (_currentframe >= 6) {
_parent.removeMovieClip();
}
} else {
stop();
}
}
Symbol 903 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 910 Button
on (release) {
_root.exit = "menu";
_root.gotoAndPlay(4);
_root.mission.goals.muza.stop();
}
Symbol 915 Button
on (press) {
_root.exit = "replay";
_root.gotoAndPlay(4);
}
Symbol 918 Button
on (press) {
_root.exit = "replay";
_root.gotoAndPlay(4);
}
Symbol 923 Button
on (press) {
_root.poziom++;
_root.exit = "replay";
_root.gotoAndPlay(4);
}
Instance of Symbol 623 MovieClip in Symbol 924 MovieClip Frame 1
onClipEvent (enterFrame) {
czas = _root.speed.timer.czas;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
}
Instance of Symbol 623 MovieClip in Symbol 927 MovieClip Frame 1
onClipEvent (enterFrame) {
czas = _root.speed.timer.czas;
minuty = Math.floor(czas / 6000);
sekundy = Math.floor((czas - (minuty * 6000)) / 100);
setne = Math.floor((czas - (minuty * 6000)) - (sekundy * 100));
}
Symbol 928 MovieClip Frame 1
stop();
Instance of Symbol 194 MovieClip in Symbol 928 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com");
}
Instance of Symbol 917 MovieClip in Symbol 928 MovieClip Frame 2
onClipEvent (load) {
_alpha = -50;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 924 MovieClip in Symbol 928 MovieClip Frame 3
onClipEvent (load) {
_alpha = -50;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 927 MovieClip in Symbol 928 MovieClip Frame 4
onClipEvent (load) {
_alpha = -50;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Symbol 934 MovieClip Frame 1
stop();
Symbol 938 MovieClip Frame 1
stop();
Instance of Symbol 934 MovieClip "goals" in Symbol 938 MovieClip Frame 1
onClipEvent (load) {
muza = new Sound(this);
muza.attachSound("happy");
if (_root.musicon) {
muza.setVolume(300);
} else {
muza.setVolume(0);
}
muza.onSoundComplete = function () {
if (_root.musicon) {
muza.start();
}
};
if (_root.musicon) {
muza.start();
}
gotoAndStop(_parent._currentframe);
_root.tor.gotoAndStop(1);
enemycount = 0;
i = 0;
while (i <= 43) {
Set("goal" + i, false);
all++;
i++;
}
wait = 0;
_root.tor._x = 2500;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 16840);
setProperty("_root.lturret" + enemycount, _y , 56);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 17579);
setProperty("_root.turret" + enemycount, _y , 56);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 17073);
setProperty("_root.factory" + enemycount, _y , 213);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 17232);
setProperty("_root.factory" + enemycount, _y , 221);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 9552);
setProperty("_root.factory" + enemycount, _y , 239);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 5919);
setProperty("_root.factory" + enemycount, _y , 221);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 3853);
setProperty("_root.factory" + enemycount, _y , 231);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 15933);
setProperty("_root.lturret" + enemycount, _y , 56);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 14307);
setProperty("_root.lturret" + enemycount, _y , 268);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 13362);
setProperty("_root.lturret" + enemycount, _y , 138);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 11659);
setProperty("_root.turret" + enemycount, _y , 287);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 4907);
setProperty("_root.lturret" + enemycount, _y , 213);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 2872);
setProperty("_root.turret" + enemycount, _y , 312);
enemycount++;
cloudpos = -500;
times = Math.round(_root.tor._width / 250) + 3;
i = 0;
while (i <= times) {
cloudpos = (cloudpos + random(300)) + 100;
if (random(3) != 0) {
duplicateMovieClip (_root.cloud, "cloud" + i, 6000 + i);
setProperty("_root.cloud" + i, _x , cloudpos);
setProperty("_root.cloud" + i, _y , ((-Math.random()) * 250) - 100);
j = i - 1;
Set(("_root.cloud" + i) + ".clast", getProperty("_root.cloud" + j, _y));
}
i++;
}
}
onClipEvent (enterFrame) {
if ((goal0 == false) && (_root.tor._x < 1067)) {
goal0 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-269 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal1 == false) && (_root.tor._x < 1167)) {
goal1 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -120);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-1037 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal2 == false) && (_root.tor._x < 77)) {
goal2 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -120);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-629 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal3 == false) && (_root.tor._x < -333)) {
goal3 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -60);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-2 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal4 == false) && (_root.tor._x < -1893)) {
goal4 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -105);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-507 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal5 == false) && (_root.tor._x < -2993)) {
goal5 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -105);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-307 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal6 == false) && (_root.tor._x < -3403)) {
goal6 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -105);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-548 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal7 == false) && (_root.tor._x < -6373)) {
goal7 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -165);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-960 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal8 == false) && (_root.tor._x < -5343)) {
goal8 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -165);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-1004 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal9 == false) && (_root.tor._x < -8823)) {
goal9 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -150);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-939 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal10 == false) && (_root.tor._x < -9163)) {
goal10 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -150);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-939 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal11 == false) && (_root.tor._x < -5723)) {
goal11 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-209 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal12 == false) && (_root.tor._x < -6803)) {
goal12 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (98 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal13 == false) && (_root.tor._x < -9253)) {
goal13 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-283 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal14 == false) && (_root.tor._x < -10033)) {
goal14 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-374 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal15 == false) && (_root.tor._x < -11863)) {
goal15 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -150);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-848 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal16 == false) && (_root.tor._x < -12053)) {
goal16 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -150);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-542 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal17 == false) && (_root.tor._x < -14273)) {
goal17 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , 180);
setProperty("_root.fighter" + enemycount, _x , 0);
ypos = (-932 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal18 == false) && (_root.tor._x < -14083)) {
goal18 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -105);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-172 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal19 == false) && (goal18 == true)) {
suma = 0;
i = 0;
while (i <= _root.enemies.length) {
if ((_root.enemies[i].maxhp != 22) && (_root.enemies[i].maxhp != undefined)) {
suma++;
}
i++;
}
trace(suma);
if (suma == 0) {
if (wait > 30) {
goal19 = true;
_root.pauza = true;
_root.pau._visible = true;
_root.gracz.dzialaj = false;
_root.gracz.noise.stop("lot");
if (_root.poziom == _root.poziomow) {
_root.poziomow++;
}
_root.pau.gotoAndStop(3);
} else {
wait++;
}
}
}
}
Instance of Symbol 934 MovieClip "goals" in Symbol 938 MovieClip Frame 2
onClipEvent (load) {
muza = new Sound(this);
muza.attachSound("happy");
if (_root.musicon) {
muza.setVolume(300);
} else {
muza.setVolume(0);
}
muza.onSoundComplete = function () {
if (_root.musicon) {
muza.start();
}
};
if (_root.musicon) {
muza.start();
}
gotoAndStop(_parent._currentframe);
_root.tor.gotoAndStop(2);
enemycount = 0;
i = 0;
while (i <= 25) {
Set("goal" + i, false);
all++;
i++;
}
wait = 0;
_root.tor._x = 2500;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 17789);
setProperty("_root.efactory" + enemycount, _y , 111);
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 15661);
setProperty("_root.efactory" + enemycount, _y , -51);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 3008);
setProperty("_root.turret" + enemycount, _y , 212);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 2816);
setProperty("_root.turret" + enemycount, _y , 286);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 2934);
setProperty("_root.lturret" + enemycount, _y , 259);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 3644);
setProperty("_root.factory" + enemycount, _y , 172);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 5490);
setProperty("_root.factory" + enemycount, _y , 41);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 5342);
setProperty("_root.lturret" + enemycount, _y , 128);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 9922);
setProperty("_root.factory" + enemycount, _y , 41);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 11982);
setProperty("_root.factory" + enemycount, _y , 26);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 14366);
setProperty("_root.factory" + enemycount, _y , 10);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 7642);
setProperty("_root.factory" + enemycount, _y , 231);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 7578);
setProperty("_root.turret" + enemycount, _y , 196);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 8786);
setProperty("_root.lturret" + enemycount, _y , 188);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 14098);
setProperty("_root.lturret" + enemycount, _y , 37);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 16774);
setProperty("_root.lturret" + enemycount, _y , -111);
enemycount++;
cloudpos = -500;
times = Math.round(_root.tor._width / 250) + 3;
i = 0;
while (i <= times) {
cloudpos = (cloudpos + random(300)) + 100;
if (random(3) != 0) {
duplicateMovieClip (_root.cloud, "cloud" + i, 6000 + i);
setProperty("_root.cloud" + i, _x , cloudpos);
setProperty("_root.cloud" + i, _y , ((-Math.random()) * 250) - 100);
j = i - 1;
Set(("_root.cloud" + i) + ".clast", getProperty("_root.cloud" + j, _y));
}
i++;
}
}
onClipEvent (enterFrame) {
if ((goal0 == false) && (_root.tor._x < 1357)) {
goal0 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-338 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal1 == false) && (_root.tor._x < 1217)) {
goal1 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-399 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal2 == false) && (_root.tor._x < -183)) {
goal2 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-165 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal3 == false) && (_root.tor._x < -183)) {
goal3 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-399 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal4 == false) && (_root.tor._x < -1533)) {
goal4 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-379 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal5 == false) && (_root.tor._x < -1633)) {
goal5 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-195 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal6 == false) && (_root.tor._x < -1963)) {
goal6 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -150);
setProperty("_root.elitef" + enemycount, _x , 0);
ypos = (-1483 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal7 == false) && (_root.tor._x < -4863)) {
goal7 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -105);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-36 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal8 == false) && (_root.tor._x < -6963)) {
goal8 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -105);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-573 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal9 == false) && (_root.tor._x < -7283)) {
goal9 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -105);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-424 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal10 == false) && (_root.tor._x < -9563)) {
goal10 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -105);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-363 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal11 == false) && (_root.tor._x < -2593)) {
goal11 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-165 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal12 == false) && (_root.tor._x < -2453)) {
goal12 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-435 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal13 == false) && (_root.tor._x < -2693)) {
goal13 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-717 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal14 == false) && (_root.tor._x < -3843)) {
goal14 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-165 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal15 == false) && (_root.tor._x < -5543)) {
goal15 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -135);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-521 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal16 == false) && (_root.tor._x < -6873)) {
goal16 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -135);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-756 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal17 == false) && (_root.tor._x < -8733)) {
goal17 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -135);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-578 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal18 == false) && (_root.tor._x < -10953)) {
goal18 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -135);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-843 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal19 == false) && (_root.tor._x < -10483)) {
goal19 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -135);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-792 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal20 == false) && (_root.tor._x < -4093)) {
goal20 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -105);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-818 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal21 == false) && (_root.tor._x < -11813)) {
goal21 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-695 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal22 == false) && (_root.tor._x < -11753)) {
goal22 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-399 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal23 == false) && (_root.tor._x < -12183)) {
goal23 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-487 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal24 == false) && (_root.tor._x < -15153)) {
goal24 = true;
_root.bossfight = "pinkbaroness";
duplicateMovieClip (_root.pink, "pinkbaron", enemycount + 4500);
setProperty("_root.pinkbaron", _x , 400);
ypos = (-2019 + _root.tor._y) - 301;
setProperty("_root.pinkbaron", _y , ypos + 600);
enemycount++;
}
if (((goal25 == false) && (_root.pinkbaron._x == undefined)) && (goal24 == true)) {
if (wait > 30) {
goal25 = true;
_root.pauza = true;
_root.pau._visible = true;
_root.gracz.dzialaj = false;
if (_root.poziom == _root.poziomow) {
_root.poziomow++;
}
_root.gracz.noise.stop("lot");
_root.pau.gotoAndStop(3);
} else {
wait++;
}
}
}
Instance of Symbol 934 MovieClip "goals" in Symbol 938 MovieClip Frame 3
onClipEvent (load) {
muza = new Sound(this);
muza.attachSound("happy");
if (_root.musicon) {
muza.setVolume(300);
} else {
muza.setVolume(0);
}
muza.onSoundComplete = function () {
if (_root.musicon) {
muza.start();
}
};
if (_root.musicon) {
muza.start();
}
gotoAndStop(_parent._currentframe);
_root.tor.gotoAndStop(3);
enemycount = 0;
i = 0;
while (i <= 8) {
Set("goal" + i, false);
all++;
i++;
}
wait = 0;
_root.tor._x = 2500;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 2780);
setProperty("_root.turret" + enemycount, _y , 303);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 2956);
setProperty("_root.turret" + enemycount, _y , 303);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 2841);
setProperty("_root.factory" + enemycount, _y , 292);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 3467);
setProperty("_root.turret" + enemycount, _y , 236);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 4040);
setProperty("_root.turret" + enemycount, _y , 170);
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 5949);
setProperty("_root.efactory" + enemycount, _y , 175);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 5924);
setProperty("_root.redfield" + enemycount, _y , 164);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 6313);
setProperty("_root.generator" + enemycount, _y , 55);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 6221);
setProperty("_root.lturret" + enemycount, _y , 56);
enemycount++;
duplicateMovieClip (_root.rturret, "rturret" + enemycount, enemycount + 4500);
setProperty("_root.rturret" + enemycount, _x , 6528);
setProperty("_root.rturret" + enemycount, _y , -93);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 6967);
setProperty("_root.factory" + enemycount, _y , 226);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 8568);
setProperty("_root.factory" + enemycount, _y , 219);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 15778);
setProperty("_root.factory" + enemycount, _y , 210);
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 12440);
setProperty("_root.efactory" + enemycount, _y , 212);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 12414);
setProperty("_root.redfield" + enemycount, _y , 206);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 11719);
setProperty("_root.generator" + enemycount, _y , 16);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 15753);
setProperty("_root.redfield" + enemycount, _y , 199);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 15117);
setProperty("_root.generator" + enemycount, _y , 184);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 17303);
setProperty("_root.efactory" + enemycount, _y , -54);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 17277);
setProperty("_root.redfield" + enemycount, _y , -67);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 17095);
setProperty("_root.generator" + enemycount, _y , -169);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 17277);
setProperty("_root.redfield" + enemycount, _y , -67);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 17760);
setProperty("_root.generator" + enemycount, _y , 125);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.rturret, "rturret" + enemycount, enemycount + 4500);
setProperty("_root.rturret" + enemycount, _x , 10559);
setProperty("_root.rturret" + enemycount, _y , -199);
enemycount++;
duplicateMovieClip (_root.rturret, "rturret" + enemycount, enemycount + 4500);
setProperty("_root.rturret" + enemycount, _x , 17028);
setProperty("_root.rturret" + enemycount, _y , -168);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 8343);
setProperty("_root.turret" + enemycount, _y , 264);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 8683);
setProperty("_root.turret" + enemycount, _y , 196);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 9801);
setProperty("_root.turret" + enemycount, _y , 130);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 10073);
setProperty("_root.lturret" + enemycount, _y , 10);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 11629);
setProperty("_root.lturret" + enemycount, _y , -48);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 15448);
setProperty("_root.lturret" + enemycount, _y , 81);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 16045);
setProperty("_root.lturret" + enemycount, _y , 121);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 14527);
setProperty("_root.lturret" + enemycount, _y , 105);
enemycount++;
cloudpos = -500;
times = Math.round(_root.tor._width / 250) + 3;
i = 0;
while (i <= times) {
cloudpos = (cloudpos + random(300)) + 100;
if (random(3) != 0) {
duplicateMovieClip (_root.cloud, "cloud" + i, 6000 + i);
setProperty("_root.cloud" + i, _x , cloudpos);
setProperty("_root.cloud" + i, _y , ((-Math.random()) * 250) - 100);
j = i - 1;
Set(("_root.cloud" + i) + ".clast", getProperty("_root.cloud" + j, _y));
}
i++;
}
}
onClipEvent (enterFrame) {
if ((goal0 == false) && (_root.tor._x < 1747)) {
goal0 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-318 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal1 == false) && (_root.tor._x < 1817)) {
goal1 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-55 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal2 == false) && (_root.tor._x < -6693)) {
goal2 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-426 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal3 == false) && (_root.tor._x < -6633)) {
goal3 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-163 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal4 == false) && (_root.tor._x < -11603)) {
goal4 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-426 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal5 == false) && (_root.tor._x < -11543)) {
goal5 = true;
duplicateMovieClip (_root.elitef, "elitef" + enemycount, enemycount + 4500);
setProperty("_root.elitef" + enemycount, _rotation , -90);
setProperty("_root.elitef" + enemycount, _x , 2000);
ypos = (-163 + _root.tor._y) - 301;
setProperty("_root.elitef" + enemycount, _y , ypos);
enemycount++;
}
if ((goal6 == false) && (_root.tor._x < -11393)) {
goal6 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-309 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal7 == false) && (_root.tor._x < -11453)) {
goal7 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-569 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal8 == false) && (goal7 == true)) {
suma = 0;
i = 0;
while (i <= _root.enemies.length) {
if ((_root.enemies[i].maxhp != 22) && (_root.enemies[i].maxhp != undefined)) {
suma++;
}
i++;
}
if (suma == 0) {
if (wait > 30) {
goal8 = true;
_root.pauza = true;
_root.pau._visible = true;
if (_root.poziom == _root.poziomow) {
_root.poziomow++;
}
_root.gracz.dzialaj = false;
_root.gracz.noise.stop("lot");
_root.pau.gotoAndStop(3);
} else {
wait++;
}
}
}
}
Instance of Symbol 934 MovieClip "goals" in Symbol 938 MovieClip Frame 4
onClipEvent (load) {
muza = new Sound(this);
muza.attachSound("happy");
if (_root.musicon) {
muza.setVolume(300);
} else {
muza.setVolume(0);
}
muza.onSoundComplete = function () {
if (_root.musicon) {
muza.start();
}
};
if (_root.musicon) {
muza.start();
}
gotoAndStop(_parent._currentframe);
_root.tor.gotoAndStop(4);
enemycount = 0;
i = 0;
while (i <= 8) {
Set("goal" + i, false);
all++;
i++;
}
wait = 0;
_root.tor._x = 2500;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 2956);
setProperty("_root.factory" + enemycount, _y , 244);
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 9187);
setProperty("_root.efactory" + enemycount, _y , 61);
enemycount++;
duplicateMovieClip (_root.sfactory, "sfactory" + enemycount, enemycount + 4500);
setProperty("_root.sfactory" + enemycount, _x , 9486);
setProperty("_root.sfactory" + enemycount, _y , 76);
enemycount++;
duplicateMovieClip (_root.rturret, "rturret" + enemycount, enemycount + 4500);
setProperty("_root.rturret" + enemycount, _x , 3115);
setProperty("_root.rturret" + enemycount, _y , 186);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 2928);
setProperty("_root.redfield" + enemycount, _y , 234);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 3273);
setProperty("_root.generator" + enemycount, _y , 238);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 3717);
setProperty("_root.turret" + enemycount, _y , 128);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 4413);
setProperty("_root.turret" + enemycount, _y , 143);
enemycount++;
duplicateMovieClip (_root.efactory, "efactory" + enemycount, enemycount + 4500);
setProperty("_root.efactory" + enemycount, _x , 5348);
setProperty("_root.efactory" + enemycount, _y , 232);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 5670);
setProperty("_root.turret" + enemycount, _y , 107);
enemycount++;
duplicateMovieClip (_root.sfactory, "sfactory" + enemycount, enemycount + 4500);
setProperty("_root.sfactory" + enemycount, _x , 6480);
setProperty("_root.sfactory" + enemycount, _y , 266);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 6449);
setProperty("_root.redfield" + enemycount, _y , 256);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 6671);
setProperty("_root.generator" + enemycount, _y , 187);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 6271);
setProperty("_root.lturret" + enemycount, _y , 149);
enemycount++;
duplicateMovieClip (_root.sfactory, "sfactory" + enemycount, enemycount + 4500);
setProperty("_root.sfactory" + enemycount, _x , 7776);
setProperty("_root.sfactory" + enemycount, _y , 191);
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 7521);
setProperty("_root.lturret" + enemycount, _y , 64);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 9460);
setProperty("_root.redfield" + enemycount, _y , 76);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 9387);
setProperty("_root.generator" + enemycount, _y , 13);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 9851);
setProperty("_root.turret" + enemycount, _y , 26);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 10489);
setProperty("_root.turret" + enemycount, _y , 26);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 11128);
setProperty("_root.factory" + enemycount, _y , 134);
enemycount++;
duplicateMovieClip (_root.factory, "factory" + enemycount, enemycount + 4500);
setProperty("_root.factory" + enemycount, _x , 12009);
setProperty("_root.factory" + enemycount, _y , 275);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 12185);
setProperty("_root.turret" + enemycount, _y , 224);
enemycount++;
duplicateMovieClip (_root.sfactory, "sfactory" + enemycount, enemycount + 4500);
setProperty("_root.sfactory" + enemycount, _x , 14446);
setProperty("_root.sfactory" + enemycount, _y , 237);
enemycount++;
duplicateMovieClip (_root.turret, "turret" + enemycount, enemycount + 4500);
setProperty("_root.turret" + enemycount, _x , 14336);
setProperty("_root.turret" + enemycount, _y , 203);
enemycount++;
duplicateMovieClip (_root.rturret, "rturret" + enemycount, enemycount + 4500);
setProperty("_root.rturret" + enemycount, _x , 13155);
setProperty("_root.rturret" + enemycount, _y , 168);
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 13106);
setProperty("_root.redfield" + enemycount, _y , 132);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 13208);
setProperty("_root.generator" + enemycount, _y , 187);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 14421);
setProperty("_root.redfield" + enemycount, _y , 228);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 14753);
setProperty("_root.generator" + enemycount, _y , 105);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.redfield, "redfield" + enemycount, enemycount + 4500);
setProperty("_root.redfield" + enemycount, _x , 14719);
setProperty("_root.redfield" + enemycount, _y , 111);
enemycount++;
duplicateMovieClip (_root.generator, "generator" + enemycount, enemycount + 4500);
setProperty("_root.generator" + enemycount, _x , 15013);
setProperty("_root.generator" + enemycount, _y , 77);
Set(("_root.generator" + enemycount) + ".pole", "_root.redfield" + (enemycount - 1));
enemycount++;
duplicateMovieClip (_root.lturret, "lturret" + enemycount, enemycount + 4500);
setProperty("_root.lturret" + enemycount, _x , 15226);
setProperty("_root.lturret" + enemycount, _y , 17);
enemycount++;
cloudpos = -500;
times = Math.round(_root.tor._width / 250) + 3;
i = 0;
while (i <= times) {
cloudpos = (cloudpos + random(300)) + 100;
if (random(3) != 0) {
duplicateMovieClip (_root.cloud, "cloud" + i, 6000 + i);
setProperty("_root.cloud" + i, _x , cloudpos);
setProperty("_root.cloud" + i, _y , ((-Math.random()) * 250) - 100);
j = i - 1;
Set(("_root.cloud" + i) + ".clast", getProperty("_root.cloud" + j, _y));
}
i++;
}
}
onClipEvent (enterFrame) {
if ((goal0 == false) && (_root.tor._x < 317)) {
goal0 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-429 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal1 == false) && (_root.tor._x < -3963)) {
goal1 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-403 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal2 == false) && (_root.tor._x < -9573)) {
goal2 = true;
duplicateMovieClip (_root.fighter, "fighter" + enemycount, enemycount + 4500);
setProperty("_root.fighter" + enemycount, _rotation , -90);
setProperty("_root.fighter" + enemycount, _x , 2000);
ypos = (-283 + _root.tor._y) - 301;
setProperty("_root.fighter" + enemycount, _y , ypos);
enemycount++;
}
if ((goal3 == false) && (_root.tor._x < -993)) {
goal3 = true;
duplicateMovieClip (_root.saucer, "saucer" + enemycount, enemycount + 4500);
setProperty("_root.saucer" + enemycount, _x , 2000);
ypos = (-403 + _root.tor._y) - 301;
setProperty("_root.saucer" + enemycount, _y , ypos);
enemycount++;
}
if ((goal4 == false) && (_root.tor._x < -5283)) {
goal4 = true;
duplicateMovieClip (_root.saucer, "saucer" + enemycount, enemycount + 4500);
setProperty("_root.saucer" + enemycount, _x , 2000);
ypos = (-403 + _root.tor._y) - 301;
setProperty("_root.saucer" + enemycount, _y , ypos);
enemycount++;
}
if ((goal5 == false) && (_root.tor._x < -6893)) {
goal5 = true;
duplicateMovieClip (_root.lsaucer, "lsaucer" + enemycount, enemycount + 4500);
setProperty("_root.lsaucer" + enemycount, _x , 2000);
ypos = (-257 + _root.tor._y) - 301;
setProperty("_root.lsaucer" + enemycount, _y , ypos);
enemycount++;
}
if ((goal6 == false) && (_root.tor._x < -11413)) {
goal6 = true;
duplicateMovieClip (_root.lsaucer, "lsaucer" + enemycount, enemycount + 4500);
setProperty("_root.lsaucer" + enemycount, _x , 2000);
ypos = (-257 + _root.tor._y) - 301;
setProperty("_root.lsaucer" + enemycount, _y , ypos);
enemycount++;
}
if ((goal7 == false) && (_root.tor._x < -13063)) {
goal7 = true;
duplicateMovieClip (_root.bosstuff, "bosstuffy", enemycount + 4500);
setProperty("_root.bosstuffy", _x , 2000);
ypos = (-257 + _root.tor._y) - 301;
setProperty("_root.bosstuffy", _y , ypos);
enemycount++;
}
if (((goal8 == false) && (_root.bosstuffy._x == undefined)) && (goal7 == true)) {
if (wait > 30) {
goal8 = true;
_root.pauza = true;
_root.pau._visible = true;
_root.gracz.dzialaj = false;
_root.gracz.noise.stop("lot");
_root.pau.gotoAndStop(4);
} else {
wait++;
}
}
}