Frame 1
function phoneHome(fromWhere) {
var _local6 = false;
var _local3 = String(flash.external.ExternalInterface.call("function (){return window.location.href.toString();}"));
var _local7 = String(flash.external.ExternalInterface.call("function (){return window.location.search.toString();}"));
var _local8 = String(flash.external.ExternalInterface.call("function (){return document.referrer.toString();}"));
var _local4 = String(_root.url);
var _local2 = "http://nutstation.com/phonehome.html?game=alphabounty";
if (((fromWhere != "") && (fromWhere != "null")) && (fromWhere != "undefined")) {
_local2 = _local2 + ("&from=" + escape(fromWhere));
}
if (((_local3 != "") && (_local3 != "null")) && (_local3 != "undefined")) {
_local2 = _local2 + ("&host=" + escape(_local3));
}
if (((_local4 != "") && (_local4 != "null")) && (_local4 != "undefined")) {
_local2 = _local2 + ("&url=" + escape(_local4));
}
if (_local6) {
} else {
getURL (_local2, "nutstation");
}
}
stop();
_root.harloda = 0;
Stage.scaleMode = "noScale";
_root.scrollRect = new flash.geom.Rectangle(0, 0, 550, 400);
stage.quality = "HIGH";
Instance of Symbol 1870 MovieClip in Frame 1
on (rollOver) {
_yscale = 105;
_xscale = 105;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.phoneHome("preloader");
}
Frame 2
stop();
stage.quality = "HIGH";
Frame 4
_root.fra_menu = 1;
if (harvartmenu == 1) {
if ((sound_music == 0) || (general_sound == 0)) {
_root.menumus.gotoAndStop(2);
}
} else {
harvartmenu = 1;
game_slutt = 0;
var savefile = SharedObject.getLocal("spacebounty");
_root.survival = savefile.data.survival;
if (savefile.data.survival == undefined) {
_root.survival = 0;
}
stop();
_root.gfx_smoke = 1;
_root.gfx_shells = 1;
_root.gfx_sparks = 1;
_root.gfx_gibs = 2;
_root.difficulty = 1;
_root.sound_music = 1;
_root.sound_effects = 1;
_root.general_settings = 2;
_root.kvalitet = 1;
_root.general_sound = 1;
generalupdate = function () {
if (general_settings == 1) {
_root.gfx_smoke = 0;
_root.gfx_gibs = 1;
_root.gfx_shells = 0;
_root.gfx_sparks = 0;
_root.kvalitet = 1;
} else if (general_settings == 2) {
_root.gfx_smoke = 1;
_root.gfx_gibs = 2;
_root.gfx_shells = 1;
_root.gfx_sparks = 1;
_root.kvalitet = 1;
} else if (general_settings == 3) {
_root.gfx_smoke = 1;
_root.gfx_gibs = 2;
_root.gfx_shells = 1;
_root.gfx_sparks = 1;
_root.kvalitet = 2;
}
if (general_sound == 1) {
_root.sound_music = 1;
_root.sound_effects = 1;
} else if (general_sound == 0) {
_root.sound_music = 0;
_root.sound_effects = 0;
}
};
}
_root.fan1.angle++;
_root.fan1._rotation++;
_root.fan1.rotation++;
Instance of Symbol 1902 MovieClip in Frame 4
onClipEvent (load) {
origx = _x;
origy = _y;
rister = 1;
momentx = 0;
momenty = 0;
}
onClipEvent (enterFrame) {
if (rister == 1) {
momentx = (momentx * 0.9) + ((Math.random() * Math.random()) * 5);
momenty = (momenty * 0.9) + ((Math.random() * Math.random()) * 5);
momentx = momentx * 0.99;
momenty = momenty * 0.99;
_x = (origx + momentx);
_y = (origy + momenty);
}
}
Frame 5
stop();
_root.ekstrabullets = 0;
_root.powerspawn = 0;
bulletsteller = 0;
menumus.gotoAndStop(1);
if (_root.kvalitet == 1) {
_root._quality = "Low";
} else if (_root.kvalitet == 2) {
_root._quality = "Medium";
} else if (_root.kvalitet == 3) {
_root._quality = "High";
}
if (fra_death == 1) {
fra_death = 0;
_root.musikk.gotoAndStop(9);
}
hull1p = 100;
hull2p = 200;
hull3p = 350;
hull4p = 560;
hull5p = 900;
game_slutt = 0;
_root.shieldteller = 0;
kuleteller = 0;
makskuler = 5;
bolefaen = 0;
flyplanet = 0;
if (fra_menu == 1) {
fra_menu = 2;
hull1maxp = 100;
hull2maxp = 200;
hull3maxp = 350;
hull4maxp = 560;
hull5maxp = 900;
bananaboy = 0;
_root.antallfiender = 0;
_root.weapon1 = 1;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon1bought = 1;
_root.weapon2bought = 0;
_root.weapon3bought = 0;
_root.weapon4bought = 0;
_root.weapon5bought = 0;
_root.weapon6bought = 0;
_root.weapon7bought = 0;
_root.weapon8bought = 0;
_root.hull1 = 1;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull1bought = 1;
_root.hull2bought = 0;
_root.hull3bought = 0;
_root.hull4bought = 0;
_root.hull5bought = 0;
_root.rocket1bought = 0;
_root.rocket2bought = 0;
_root.rocket3bought = 0;
_root.rocket1 = 0;
_root.rocket2 = 0;
_root.rocket3 = 0;
_root.rocket1reload = 3;
_root.rocket2reload = 3;
_root.rocket3reload = 6;
_root.rocket1reloadf = _root.rocket1reload + " s";
_root.rocket2reloadf = _root.rocket2reload + " s";
_root.rocket3reloadf = _root.rocket3reload + " s";
fjellnr = 0;
fjellmax = 30;
fjelldepth = 1000;
fjellnr2 = 0;
fjellmax2 = 40;
fjell2depth = 500;
fjelly = 8;
antallfjell = 14;
fjellfart = 5;
fjellfart2 = 2;
blaafjellfart = 3;
blaafjellfart2 = 1;
rodfjellfart = 3;
rodfjellfart2 = 1;
kuledybde = 900;
shellnr = 0;
_root.ingamemenu.slide.nummer1.lolnummer = _root.vaapen1nr;
shellmax = 100;
vaapenlop = 15;
kfart = 20;
kfart2 = 5;
if (_root.difficulty == 1) {
fkfart = 13;
} else if (_root.difficulty == 2) {
fkfart = 15;
} else if (_root.difficulty == 3) {
fkfart = 17;
}
fiendenr = 0;
bloodteller = 0;
maksblod = 25;
blodfnr = 0;
minaccuracy = 0;
maxaccuracy = 10;
accuracy = minaccuracy;
recoil = 3;
blodflekkdepth = 50;
blodfmax = 80;
fiendedepth = 600;
maksfiender = 20;
shelldepth = 1050;
fiende1propsdepth1 = 1050;
kuledybde = 900;
lingdybde = 3100;
smokedybde = 3600;
bloddepth = 2875;
dropdepth = 6025;
dotdepth = 2000;
fienderlever = 0;
weapon1ammo = 500;
weapon2ammo = 200;
weapon3ammo = 100;
weapon4ammo = 100;
weapon5ammo = 200;
weapon6ammo = 200;
weapon7ammo = 20;
weapon1maxammo = 500;
weapon2maxammo = 500;
weapon3maxammo = 200;
weapon4maxammo = 200;
weapon5maxammo = 500;
weapon6maxammo = 800;
weapon7maxammo = 100;
_root.weapon2 = 0;
_root.weapon2bought = 0;
_root.nextlevel = "Next Level: Stage 1, planet Netpulon";
shellnr = 0;
shellmax = 50;
shelldepth = 800;
kulenr = 0;
maxkuler = 40;
weaponumber = 2;
fienderlever = 0;
weapon1ammo = 500;
weapon2ammo = 200;
weapon3ammo = 100;
weapon4ammo = 100;
weapon5ammo = 200;
weapon6ammo = 200;
weapon7ammo = 20;
weapon1maxammo = 500;
weapon2maxammo = 500;
weapon3maxammo = 200;
weapon4maxammo = 200;
weapon5maxammo = 500;
weapon6maxammo = 800;
weapon7maxammo = 100;
_root.weapon1bought = 1;
_root.weapon2bought = 0;
_root.weapon3bought = 0;
_root.weapon4bought = 0;
_root.weapon5bought = 0;
_root.weapon6bought = 0;
_root.weapon7bought = 0;
_root.armor1bought = 1;
_root.armor2bought = 0;
_root.armor3bought = 0;
_root.armor4bought = 0;
_root.armor5bought = 0;
_root.armor6bought = 0;
_root.weaponumber = 2;
_root.suit = 1;
listnr = -1;
listdepth = 15666;
_root.vaapen1selected = 0;
_root.vaapen2selected = 0;
_root.vaapen3selected = 0;
_root.listloaded = 1;
var itemshave = new Array();
var listplacex = new Array();
var listplacey = new Array();
}
alldie = function (nummer) {
i = 0;
while (i < maksfiender) {
if (i == nummer) {
} else {
_root.verden.fiender["fienden" + i].health = 0;
}
i++;
}
};
makedistress = function () {
mango = Math.round(Math.random() * 4) + 1;
if (mango == 1) {
_root.radio.gotoAndStop(4);
} else if (mango == 2) {
_root.radio.gotoAndStop(8);
} else if (mango == 3) {
_root.radio.gotoAndStop(9);
} else if (mango == 4) {
_root.radio.gotoAndStop(14);
} else if (mango == 5) {
_root.radio.gotoAndStop(15);
}
};
fshoot = function (xpos, ypos, vinkel, shootype, shootskade, accuracy, nummer) {
kulenr = kulenr + 1;
if (kulenr > maxkuler) {
kulenr = 0;
}
if (shootype == 11) {
_root.verden.attachMovie("laser1", "kule" + kulenr, kuledybde + kulenr);
_root.verden["kule" + kulenr]._x = xpos;
_root.verden["kule" + kulenr]._y = ypos;
_root.verden["kule" + kulenr].nummer = nummer;
} else if (shootype == 12) {
_root.verden.attachMovie("laser2", "kule" + kulenr, kuledybde + kulenr);
_root.verden["kule" + kulenr]._x = xpos;
_root.verden["kule" + kulenr]._y = ypos;
_root.verden["kule" + kulenr].nummer = nummer;
} else {
_root.verden.attachMovie("fkule1", "kule" + kulenr, kuledybde + kulenr);
_root.verden["kule" + kulenr]._x = xpos;
_root.verden["kule" + kulenr]._y = ypos;
_root.verden["kule" + kulenr]._rotation = ((vinkel + 180) - (accuracy / 2)) + (Math.random() * accuracy);
_root.verden["kule" + kulenr].damage = 1;
_root.verden["kule" + kulenr].shootskade = shootskade;
_root.verden["kule" + kulenr].shootype = shootype;
}
};
lagblod = function (fnr, lol) {
if (lol == 1) {
_root.makeblod(kulex, kuley, kulerot);
_root.makedrops(kulex, kuley, 1);
_root.makedrops(kulex, kuley, 1);
_root.makedrops(kulex, kuley, 1);
} else if (lol == 2) {
_root.makeblod2(kulex, kuley);
_root.makedrops2(kulex, kuley, 1);
_root.makedrops2(kulex, kuley, 1);
_root.makedrops2(kulex, kuley, 1);
} else if (_root.verden.fiender["fienden" + fnr].blodtype == 1) {
_root.makeblod(kulex, kuley, kulerot);
_root.makedrops(kulex, kuley, 1);
_root.makedrops(kulex, kuley, 1);
_root.makedrops(kulex, kuley, 1);
} else if (_root.verden.fiender["fienden" + fnr].blodtype == 2) {
_root.makeblod2(kulex, kuley);
_root.makedrops2(kulex, kuley, 1);
_root.makedrops2(kulex, kuley, 1);
_root.makedrops2(kulex, kuley, 1);
}
};
damageboss = function (i, skaden, stopper, lol, kulex2, kuley2, kulenr) {
if (lol == 1) {
kulex = kulex2;
kuley = kuley2;
}
if (_root.verden.fiender["fienden" + i].fiende.fiende.torsoarmor.hitTest(kulex, kuley, false)) {
if (overarmorgone == 0) {
_root.verden.fiender["fienden" + i].fiende.fiende.armbesk1.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.armbesk2.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.underarmarmor1.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.underarmarmor2.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.shoulder.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.torsoarmor.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].taSkade(skaden, 1);
if (lol == 1) {
_root.verden["kule" + kulenr].funnetmaal(1, 2, i);
} else {
lagblod(i, 2);
if (stopper == 1) {
dead = 1;
kulelever = 2;
funnetmaal = 1;
}
}
} else if (underarmorgone == 1) {
_root.verden.fiender["fienden" + i].taSkade(skaden, 1);
if (lol == 1) {
_root.verden["kule" + kulenr].funnetmaal(1, 1, i);
} else {
lagblod(i, 1);
if (stopper == 1) {
dead = 1;
kulelever = 2;
funnetmaal = 1;
}
}
}
} else if (_root.verden.fiender["fienden" + i].fiende.benna.hitTest(kulex, kuley, false)) {
if (underarmorgone == 0) {
_root.verden.fiender["fienden" + i].fiende.fiende.larpro1.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.larpro2.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.legge.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].fiende.fiende.legge2.gotoAndPlay(2);
_root.verden.fiender["fienden" + i].taSkade(skaden, 2);
if (lol == 1) {
_root.verden["kule" + kulenr].funnetmaal(1, 2, i);
} else {
lagblod(i, 2);
if (stopper == 1) {
dead = 1;
kulelever = 2;
funnetmaal = 1;
}
}
} else if (overarmorgone == 1) {
_root.verden.fiender["fienden" + i].taSkade(skaden, 2);
if (lol == 1) {
_root.verden["kule" + kulenr].funnetmaal(1, 1, i);
} else {
lagblod(i, 1);
if (stopper == 1) {
dead = 1;
kulelever = 2;
funnetmaal = 1;
}
}
}
}
};
shoot2 = function () {
kuleteller = kuleteller + 1;
if (kuleteller > makskuler) {
kuleteller = 0;
}
kulex = _root.verden.mann._x + 30;
kuley = _root.verden.mann._y + 24;
if (_root.weapon6 == 1) {
accuracy = 2;
} else {
accuracy = 10;
}
kulerot = ((_root.verden.mann._rotation + 90) + (Math.random() * 4)) - 2;
if (kulerot > 180) {
kuley = kuley + (vaapenlop * Math.cos((Math.PI/180) * kulerot));
kulex = kulex - (vaapenlop * Math.sin((Math.PI/180) * kulerot));
} else {
kuley = kuley - (vaapenlop * Math.cos((Math.PI/180) * kulerot));
kulex = kulex + (vaapenlop * Math.sin((Math.PI/180) * kulerot));
}
origx = kulex;
origy = kuley;
kulefart = 30;
kulelever = 1;
kulegnist = 0;
funnetmaal = 0;
j = 0;
while (j < 19) {
if (kulelever == 1) {
if (weapon6 == 1) {
bolefaen = bolefaen + 1;
if (bolefaen == 2) {
_root.spawnoffling(kulex, kuley, 2);
bolefaen = 0;
}
}
if (kulerot > 180) {
kuley = kuley + (kulefart * Math.cos((Math.PI/180) * kulerot));
kulex = kulex - (kulefart * Math.sin((Math.PI/180) * kulerot));
} else {
kuley = kuley - (kulefart * Math.cos((Math.PI/180) * kulerot));
kulex = kulex + (kulefart * Math.sin((Math.PI/180) * kulerot));
}
i = 0;
while (i < (_root.maksfiender + 1)) {
if (_root.verden.fiender["fienden" + i].hitTest(kulex, kuley, false)) {
if (_root.verden.fiender["fienden" + i].dead == 0) {
if (weapon6 == 1) {
if (_root.verden.fiender["fienden" + i].boss == 666) {
damageboss(i, 12, 0);
} else {
_root.verden.fiender["fienden" + i].taSkade(12);
lagblod(i);
}
} else if (weapon8 == 1) {
if (_root.verden.fiender["fienden" + i].boss == 666) {
damageboss(i, 10, 1);
} else {
lagblod(i);
dead = 1;
kulelever = 2;
funnetmaal = 1;
_root.verden.fiender["fienden" + i].taSkade(10);
}
} else if (_root.verden.fiender["fienden" + i].boss == 666) {
damageboss(i, 5, 1);
} else {
lagblod(i);
dead = 1;
kulelever = 2;
funnetmaal = 1;
_root.verden.fiender["fienden" + i].taSkade(5);
}
_x = (_x - (xfart + xvar));
_y = (_y - (yfart + yvar));
}
}
i++;
}
} else if (kulelever == 2) {
kulelever = 4;
} else if (kulelever == 3) {
if (_root.verden.bakke.vegger.hitTest(kulex, kuley, true)) {
if (kulerot > 180) {
kuley = kuley - (1 * Math.cos((Math.PI/180) * kulerot));
kulex = kulex + (1 * Math.sin((Math.PI/180) * kulerot));
} else {
kuley = kuley + (1 * Math.cos((Math.PI/180) * kulerot));
kulex = kulex - (1 * Math.sin((Math.PI/180) * kulerot));
}
} else {
if (kulegnist == 0) {
kulegnist = 1;
}
kulelever = 4;
}
} else if (kulelever == 4) {
}
j++;
}
_root.verden.createEmptyMovieClip("kulen" + kuleteller, 800 + kuleteller);
with (_root.verden["kulen" + kuleteller]) {
if (weapon6 == 1) {
lineStyle(1, 0, 0);
lineTo(origx - _root.verden._x, origy - _root.verden._y);
lineStyle(16, 7917813, 40);
lineTo(_root.kulex - _root.verden._x, _root.kuley - _root.verden._y);
lineStyle(4, 16777215, 20);
lineTo(origx - _root.verden._x, origy - _root.verden._y);
lineStyle(2, 16777215, 100);
lineTo(_root.kulex - _root.verden._x, _root.kuley - _root.verden._y);
} else if (weapon4 == 1) {
lineStyle(1, 0, 0);
lineTo(origx - _root.verden._x, origy - _root.verden._y);
lineStyle(4, 7917813, 50);
lineTo(_root.kulex - _root.verden._x, _root.kuley - _root.verden._y);
lineStyle(2, 16777215, 100);
lineTo(origx - _root.verden._x, origy - _root.verden._y);
} else if (weapon7 == 1) {
lineStyle(1, 0, 0);
lineTo(origx - _root.verden._x, origy - _root.verden._y);
lineStyle(2, 16777215, 50);
lineTo(_root.kulex - _root.verden._x, _root.kuley - _root.verden._y);
}
}
};
spawnFjell = function (skal, xpos, typen) {
fjellnr = fjellnr + 1;
if (fjellnr >= fjellmax) {
fjellnr = 0;
}
if (typen == 2) {
_root.verden.bakken.attachMovie("2fjell", "fjellet" + fjellnr, fjelldepth + fjellnr);
_root.verden.bakken.attachMovie("2fjellmirror", "fjelletmirror" + fjellnr, 773 + fjellnr);
} else if (typen == 1) {
_root.verden.bakken.attachMovie("fjell", "fjellet" + fjellnr, fjelldepth + fjellnr);
} else if (typen == 3) {
_root.verden.bakken.attachMovie("3fjell", "fjellet" + fjellnr, fjelldepth + fjellnr);
}
if (skal == 1) {
_root.verden.bakken["fjellet" + fjellnr]._x = xpos;
} else {
_root.verden.bakken["fjellet" + fjellnr]._x = 550 + (Math.random() * 25);
}
_root.verden.bakken["fjellet" + fjellnr]._y = fjelly + (Math.random() * 50);
_root.verden.bakken["fjellet" + fjellnr].fjelltype = 1 + Math.round(Math.random() * (antallfjell - 1));
if (_root.verden.bakken["fjellet" + fjellnr].fjelltype == _root.verden.bakken[("fjellet" + fjellnr) - 1].fjelltype) {
_root.verden.bakken["fjellet" + fjellnr].fjelltype = _root.verden.bakken["fjellet" + fjellnr].fjelltype + 1;
}
_root.verden.bakken["fjellet" + fjellnr].gotoAndStop(_root.verden.bakken["fjellet" + fjellnr].fjelltype);
_root.verden.bakken["fjellet" + fjellnr]._xscale = 90 + (Math.random() * 50);
_root.verden.bakken["fjellet" + fjellnr]._yscale = 95 + (Math.random() * 20);
if (skal == 1) {
_root.verden.bakken["fjelletmirror" + fjellnr]._x = _root.verden.bakken["fjellet" + fjellnr]._x;
} else {
_root.verden.bakken["fjelletmirror" + fjellnr]._x = _root.verden.bakken["fjellet" + fjellnr]._x;
}
_root.verden.bakken["fjelletmirror" + fjellnr]._y = _root.verden.bakken["fjellet" + fjellnr]._y;
_root.verden.bakken["fjelletmirror" + fjellnr].fjelltype = _root.verden.bakken["fjellet" + fjellnr].fjelltype;
_root.verden.bakken["fjelletmirror" + fjellnr].gotoAndStop(_root.verden.bakken["fjelletmirror" + fjellnr].fjelltype);
_root.verden.bakken["fjelletmirror" + fjellnr]._xscale = _root.verden.bakken["fjellet" + fjellnr]._xscale;
_root.verden.bakken["fjelletmirror" + fjellnr]._yscale = _root.verden.bakken["fjellet" + fjellnr]._yscale;
};
spawnFjell2 = function (skal, xpos, typen) {
fjellnr2 = fjellnr2 + 1;
if (fjellnr2 >= fjellmax2) {
fjellnr2 = 0;
}
if (typen == 2) {
_root.verden.bakken2.attachMovie("2fjell2", "fjellet2" + fjellnr2, fjell2depth + fjellnr2);
} else if (typen == 1) {
_root.verden.bakken2.attachMovie("fjell2", "fjellet2" + fjellnr2, fjell2depth + fjellnr2);
} else if (typen == 3) {
_root.verden.bakken2.attachMovie("3fjell2", "fjellet2" + fjellnr2, fjell2depth + fjellnr2);
}
if (skal == 1) {
_root.verden.bakken2["fjellet2" + fjellnr2]._x = xpos;
} else {
_root.verden.bakken2["fjellet2" + fjellnr2]._x = 550 + (Math.random() * 25);
}
_root.verden.bakken2["fjellet2" + fjellnr2]._y = fjelly + (Math.random() * 50);
_root.verden.bakken2["fjellet2" + fjellnr2].fjelltype = 1 + Math.round(Math.random() * (antallfjell - 1));
if (_root.verden.bakken2["fjellet2" + fjellnr2].fjelltype == _root.verden.bakken2[("fjellet2" + fjellnr2) - 1].fjelltype) {
_root.verden.bakken2["fjellet2" + fjellnr2].fjelltype = _root.verden.bakken2["fjellet2" + fjellnr2].fjelltype + 1;
}
_root.verden.bakken2["fjellet2" + fjellnr2].gotoAndStop(_root.verden.bakken2["fjellet2" + fjellnr2].fjelltype);
_root.verden.bakken2["fjellet2" + fjellnr2]._xscale = 70 + (Math.random() * 25);
_root.verden.bakken2["fjellet2" + fjellnr2]._yscale = 55 + (Math.random() * 10);
};
startTerrain = function () {
i = 0;
while (i < 20) {
spawnFjell(1, Math.random() * 550, _root.planet);
spawnFjell2(1, Math.random() * 550, _root.planet);
i++;
}
};
damagetekst = function (xpos, ypos, tekst) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("damagetekst", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = xpos;
_root.verden["shellen" + shellnr]._y = ypos;
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].tekst.tekst = tekst;
};
createlistitem = function (typen) {
listnr = listnr + 1;
itemshave[listnr] = typen;
_root.equipmenu.liste.liste.liste.attachMovie("listitem", "listitem" + listnr, listdepth + listnr);
yey = 0;
lolx1 = 4;
loly1 = 4;
if (_root.boks1inni == typen) {
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.vaapen = 1;
_root.equipmenu.liste.liste.liste["listitem" + listnr]._x = (((((((_root.equipmenu._x + _root.equipmenu.inventory._x) + _root.equipmenu.inventory.bokser._x) + _root.equipmenu.inventory.bokser.boks1._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._x) - lolx1;
_root.equipmenu.liste.liste.liste["listitem" + listnr]._y = (((((((_root.equipmenu._y + _root.equipmenu.inventory._y) + _root.equipmenu.inventory.bokser._y) + _root.equipmenu.inventory.bokser.boks1._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._y) - loly1;
yey = 1;
} else if (_root.boks2inni == typen) {
_root.equipmenu.liste.liste.liste["listitem" + listnr]._x = (((((((_root.equipmenu._x + _root.equipmenu.inventory._x) + _root.equipmenu.inventory.bokser._x) + _root.equipmenu.inventory.bokser.boks2._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._x) - lolx1;
_root.equipmenu.liste.liste.liste["listitem" + listnr]._y = (((((((_root.equipmenu._y + _root.equipmenu.inventory._y) + _root.equipmenu.inventory.bokser._y) + _root.equipmenu.inventory.bokser.boks2._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._y) - loly1;
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.vaapen = 2;
yey = 1;
} else if (_root.boks3inni == typen) {
_root.equipmenu.liste.liste.liste["listitem" + listnr]._x = (((((((_root.equipmenu._x + _root.equipmenu.inventory._x) + _root.equipmenu.inventory.bokser._x) + _root.equipmenu.inventory.bokser.boks3._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._x) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._x) - lolx1;
_root.equipmenu.liste.liste.liste["listitem" + listnr]._y = (((((((_root.equipmenu._y + _root.equipmenu.inventory._y) + _root.equipmenu.inventory.bokser._y) + _root.equipmenu.inventory.bokser.boks3._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._y) - _root.equipmenu.liste.liste.liste["listitem" + listnr]._parent._parent._parent._parent._parent._y) - loly1;
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.vaapen = 3;
yey = 1;
} else {
_root.equipmenu.liste.liste.liste["listitem" + listnr]._x = 6;
_root.equipmenu.liste.liste.liste["listitem" + listnr]._y = 6 + (listnr * 55);
}
if (yey == 1) {
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.gotoAndStop(2);
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.isequipped = 1;
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.ypos = _parent._y;
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.item.gotoAndStop(typen);
} else {
listplacex[listnr] = _root.equipmenu.liste.liste.liste["listitem" + listnr]._x;
listplacey[listnr] = _root.equipmenu.liste.liste.liste["listitem" + listnr]._y;
_root.equipmenu.liste.liste.liste["listitem" + listnr].origx = _root.equipmenu.liste.liste.liste["listitem" + listnr]._x;
_root.equipmenu.liste.liste.liste["listitem" + listnr].origy = _root.equipmenu.liste.liste.liste["listitem" + listnr]._y;
_root.equipmenu.liste.liste.liste["listitem" + listnr].item.isequipped = 0;
}
_root.equipmenu.liste.liste.liste["listitem" + listnr].listnr = listnr;
_root.equipmenu.liste.liste.liste["listitem" + listnr].typen = typen;
_root.equipmenu.liste.liste.liste["listitem" + listnr].dybde = listdepth + listnr;
_root.equipmenu.liste.liste.liste["listitem" + listnr].maxdybde = listdepth + 150;
};
_root.createlistitem(1);
takedamage = function (mannenxpos, mannenypos, mannenkraft, damagetaken) {
_root.health = _root.health - damagetaken;
_root.verden.man.xfart = -6 + (Math.random() * 12);
_root.verden.man.yfart = -6 + (Math.random() * 12);
_root.tarskade.gotoAndPlay(2);
_root.makeblod(_root.verden.man._x, _root.verden.man._y);
_root.makedrops(_root.verden.man._x, _root.verden.man._y, 1);
};
removepeptalk = function () {
_root.peptalk.gotoAndStop(2);
};
makepeptalk = function () {
_root.peptalk.gotoAndStop(1);
_root.peptalk.man.gotoAndStop(_root.matchnr + 1);
};
removebuymenu = function () {
_root.buymenu.gotoAndStop(4);
};
makebuymenu = function () {
_root.buymenu.gotoAndStop(1);
};
makequip = function () {
_root.equipmenu.gotoAndStop(1);
lol2k = listnr;
listnr = -1;
i = -1;
while (i < lol2k) {
_root.createlistitem(itemshave[i + 1]);
i++;
}
};
removequip = function () {
i = 0;
while (i < listnr) {
_root.equipmenu.liste.liste.liste["listitem" + listnr].removeMovieClip();
i++;
}
_root.equipmenu.gotoAndStop(2);
};
changeweapon = function (whatweapon) {
if (whatweapon == 2) {
weaponumber = _root.vaapen1nr + 1;
_root.ingamemenu.slide.nummer1.gotoAndStop(2);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (whatweapon == 3) {
weaponumber = _root.vaapen2nr + 1;
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(2);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (whatweapon == 4) {
weaponumber = _root.vaapen3nr + 1;
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(2);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (weaponumber == 5) {
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(2);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (weaponumber == 6) {
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(2);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (weaponumber == 7) {
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(2);
_root.ingamemenu.slide.nummer7.gotoAndStop(1);
} else if (weaponumber == 8) {
_root.ingamemenu.slide.nummer1.gotoAndStop(1);
_root.ingamemenu.slide.nummer2.gotoAndStop(1);
_root.ingamemenu.slide.nummer3.gotoAndStop(1);
_root.ingamemenu.slide.nummer4.gotoAndStop(1);
_root.ingamemenu.slide.nummer5.gotoAndStop(1);
_root.ingamemenu.slide.nummer6.gotoAndStop(1);
_root.ingamemenu.slide.nummer7.gotoAndStop(2);
}
_root.ingamemenu.slide.gotoAndPlay(1);
};
if (_root.vaapen1selected == 1) {
changeweapon(2);
} else if (_root.vaapen2selected == 1) {
changeweapon(3);
} else if (_root.vaapen3selected == 1) {
changeweapon(4);
}
roundpause = function () {
_root.ispaused = 1;
_root.makepeptalk();
_root.verden.man.autoshooting = 0;
};
taSkade = function (skade) {
if (_root.shieldteller > 0) {
} else {
_root.tarskadeanim.gotoAndPlay(2);
if (hull1 == 1) {
hull1p = hull1p - skade;
if (hull1p <= 0) {
_root.verden.mann.explode();
}
} else if (hull2 == 1) {
hull2p = hull2p - skade;
hull2p = hull2p - skade;
if (hull2p <= 0) {
_root.verden.mann.explode();
}
} else if (hull3 == 1) {
hull3p = hull3p - skade;
hull3p = hull3p - skade;
if (hull3p <= 0) {
_root.verden.mann.explode();
}
} else if (hull4 == 1) {
hull4p = hull4p - skade;
hull4p = hull4p - skade;
if (hull4p <= 0) {
_root.verden.mann.explode();
}
} else if (hull5 == 1) {
hull5p = hull5p - skade;
hull5p = hull5p - skade;
if (hull5p <= 0) {
_root.verden.mann.explode();
}
}
}
};
makeblodflekk = function (xpos, ypos) {
blodfnr = blodfnr + 1;
if (blodfnr >= blodfmax) {
blodfnr = 0;
}
_root.verden.attachMovie("blodflekker", "blodflekken" + blodfnr, blodflekkdepth + blodfnr);
_root.verden["blodflekken" + blodfnr]._x = xpos;
_root.verden["blodflekken" + blodfnr]._y = ypos;
_root.verden["blodflekken" + blodfnr]._rotation = Math.random() * 360;
};
makeblodflekk2 = function (xpos, ypos) {
blodfnr = blodfnr + 1;
if (blodfnr >= blodfmax) {
blodfnr = 0;
}
_root.verden.attachMovie("blodflekker2", "blodflekken" + blodfnr, blodflekkdepth + blodfnr);
_root.verden["blodflekken" + blodfnr]._x = xpos;
_root.verden["blodflekken" + blodfnr]._y = ypos;
_root.verden["blodflekken" + blodfnr]._rotation = Math.random() * 360;
};
powernr = 0;
powermax = 5;
makepowerup = function (xpos, ypos, type) {
powernr = powernr + 1;
if (powernr >= powermax) {
powernr = 0;
}
_root.verden.attachMovie("poweruppen", "powerup", (fiende1propsdepth1 + 157) + powernr);
_root.verden.powerup._x = xpos;
_root.verden.powerup._y = ypos;
_root.verden.powerup.powernr = powernr;
_root.verden.powerup.powerup.gotoAndStop(type);
_root.verden.powerup.filters = [colorMatrix];
_root.verden.powerup.typen = type;
};
shieldteller = 0;
power = function (type) {
if (type == 2) {
_root.shieldteller = 500;
_root.verden.mann.shield.gotoAndStop(1);
} else {
_root.bulletsteller = 500;
_root.ekstrabullets = 1;
var _local3 = [5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local2 = new flash.filters.ColorMatrixFilter(_local3);
_root.verden.mann.filters = [_local2];
}
};
makefiende1props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende1props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende2props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende2props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende3props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende3props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende4props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende4props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende4props2 = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende4props2", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende5props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende5props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende6props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende6props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende7props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende7props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende8props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende8props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende9props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende9props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende10props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende10props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende11props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende11props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende12props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende12props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende13props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende13props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende14props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende14props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende15props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende15props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende16props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende16props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende17props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende17props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende18props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende18props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende19props = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("fiende19props", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makefiende19props2 = function (xpos, ypos, type) {
shellnr = shellnr + 1;
if (shellnr >= shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("sistebossprops", "shellen" + shellnr, fiende1propsdepth1 + shellnr);
_root.verden["shellen" + shellnr]._x = (xpos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr]._y = (ypos - 25) + (Math.random() * 50);
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].props.gotoAndStop(type);
_root.verden["shellen" + shellnr].filters = [colorMatrix];
};
makeblod = function (xpos, ypos, rot) {
blodteller = blodteller + 1;
if (blodteller >= maksblod) {
blodteller = 0;
}
_root.verden.attachMovie("1337blod", "bloden" + blodteller, bloddepth + blodteller);
_root.verden["bloden" + blodteller]._x = xpos;
_root.verden["bloden" + blodteller]._y = ypos;
_root.verden["bloden" + blodteller].kulerotasjon = rot;
};
makeblod2 = function (xpos, ypos) {
blodteller = blodteller + 1;
if (blodteller >= maksblod) {
blodteller = 0;
}
_root.verden.attachMovie("blod2", "bloden" + blodteller, bloddepth + blodteller);
_root.verden["bloden" + blodteller]._x = xpos;
_root.verden["bloden" + blodteller]._y = ypos;
};
dropsteller = 0;
maxdrops = 200;
makedrops = function (xpos, ypos, typen) {
dropsteller = dropsteller + 1;
if (dropsteller > maxdrops) {
dropsteller = 0;
}
_root.verden.attachMovie("blod", "drops" + dropsteller, dropdepth + dropsteller);
_root.verden["drops" + dropsteller]._x = xpos;
_root.verden["drops" + dropsteller]._y = ypos;
};
makedrops2 = function (xpos, ypos, typen) {
dropsteller = dropsteller + 1;
if (dropsteller > maxdrops) {
dropsteller = 0;
}
_root.verden.attachMovie("blodrop2", "drops" + dropsteller, dropdepth + dropsteller);
_root.verden["drops" + dropsteller]._x = xpos;
_root.verden["drops" + dropsteller]._y = ypos;
};
makedot = function () {
_root.ingamemenu.radar.attachMovie("dot", "dotten" + fiendenr, dotdepth + fiendenr);
_root.ingamemenu.radar["dotten" + fiendenr]._x = 200;
_root.ingamemenu.radar["dotten" + fiendenr]._y = 200;
};
spawnloc = 0;
spawnfiende = function (typen, isfixed, xpos, ypos, eksisterer) {
spawnloc = Math.round(Math.random() * 3) + 1;
gotspawned = 0;
i = 0;
while (i < maksfiender) {
if (gotspawned == 0) {
fiendenr = fiendenr + 1;
if (fiendenr >= maksfiender) {
fiendenr = 0;
}
if (_root.verden.fiender["fienden" + fiendenr].eksistens != 1) {
gotspawned = 1;
_root.fienderlever = _root.fienderlever + 1;
makedot();
if (typen == 1) {
_root.verden.fiender.attachMovie("fiende1", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 2) {
_root.verden.fiender.attachMovie("fiende2", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 3) {
_root.verden.fiender.attachMovie("fiende3", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 4) {
_root.verden.fiender.attachMovie("fiende4", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 5) {
_root.verden.fiender.attachMovie("fiende5", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 6) {
_root.verden.fiender.attachMovie("fiende6", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 7) {
_root.verden.fiender.attachMovie("fiende7", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 8) {
_root.verden.fiender.attachMovie("fiende8", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 9) {
_root.verden.fiender.attachMovie("fiende9", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 10) {
_root.verden.fiender.attachMovie("fiende10", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 11) {
_root.verden.fiender.attachMovie("fiende11", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 12) {
_root.verden.fiender.attachMovie("fiende12", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 13) {
_root.verden.fiender.attachMovie("fiende13", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 14) {
_root.verden.fiender.attachMovie("fiende14", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 15) {
_root.verden.fiender.attachMovie("fiende15", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 16) {
_root.verden.fiender.attachMovie("fiende16", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 17) {
_root.verden.fiender.attachMovie("fiende17", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 18) {
_root.verden.fiender.attachMovie("fiende18", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 19) {
_root.verden.fiender.attachMovie("fiende19", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 20) {
_root.verden.fiender.attachMovie("fiende20", "fienden" + fiendenr, fiendedepth + fiendenr);
} else if (typen == 21) {
_root.verden.fiender.attachMovie("fiende21", "fienden" + fiendenr, fiendedepth + fiendenr);
}
if (_root.difficulty == 1) {
_root.verden.fiender["fienden" + fiendenr].ekstrahealth = 1;
} else if (_root.difficulty == 2) {
_root.verden.fiender["fienden" + fiendenr].ekstrahealth = 1.3;
} else if (_root.difficulty == 3) {
_root.verden.fiender["fienden" + fiendenr].ekstrahealth = 1.6;
}
if (((typen == 9) || (typen == 10)) || (typen == 18)) {
_root.verden.fiender["fienden" + fiendenr]._y = 390;
_root.verden.fiender["fienden" + fiendenr]._x = 650;
_root.canspawnfjell = 50;
} else if ((typen == 17) || (typen == 19)) {
_root.verden.fiender["fienden" + fiendenr]._y = 385;
_root.verden.fiender["fienden" + fiendenr]._x = 650;
_root.canspawnfjell = 50;
} else if (isfixed != 1) {
_root.verden.fiender["fienden" + fiendenr].nummer = fiendenr;
_root.verden.fiender["fienden" + fiendenr]._x = 600 + (Math.random() * 50);
_root.verden.fiender["fienden" + fiendenr]._y = Math.random() * 350;
} else {
_root.verden.fiender["fienden" + fiendenr].nummer = fiendenr;
_root.verden.fiender["fienden" + fiendenr]._x = xpos;
_root.verden.fiender["fienden" + fiendenr]._y = ypos;
}
if (eksisterer == 1) {
_root.verden.fiender["fienden" + fiendenr].oop = 1;
} else {
_root.antallfiender = _root.antallfiender + 1;
}
_root.verden.fiender["fienden" + fiendenr].eksistens = 1;
_root.verden.fiender["fienden" + fiendenr].xfart = 5;
}
}
i++;
}
};
shelldepth = 800;
spawnShell = function (shelltype) {
if (_root.gfx_shells == 1) {
shellnr = shellnr + 1;
if (shellnr > shellmax) {
shellnr = 0;
}
_root.verden.attachMovie("shell", "shellen" + shellnr, shelldepth + shellnr);
if (shelltype == 2) {
_root.verden["shellen" + shellnr]._x = _root.verden.mann._x + 25;
} else {
_root.verden["shellen" + shellnr]._x = _root.verden.mann._x + 35;
}
_root.verden["shellen" + shellnr]._y = _root.verden.mann._y + 25;
_root.verden["shellen" + shellnr].xfart = (Math.random() * 4) - 2;
_root.verden["shellen" + shellnr].yfart = (Math.random() * 4) - 2;
_root.verden["shellen" + shellnr]._rotation = Math.random() * 360;
_root.verden["shellen" + shellnr].rotfart = (Math.random() * 60) - 30;
_root.verden["shellen" + shellnr].shellnr = shellnr;
_root.verden["shellen" + shellnr].shelltype = shelltype;
}
};
kulenr = 0;
maxkuler = 40;
shoot = function (shootype, shootskade, sted, xpos, ypos, rotasjon, treffsikker) {
smoke2(xpos + 30, ypos, 1);
kulenr = kulenr + 1;
if (kulenr > maxkuler) {
kulenr = 0;
}
_root.verden.attachMovie("kule1", "kule" + kulenr, kuledybde + kulenr);
if (sted == 1) {
_root.verden["kule" + kulenr]._x = xpos;
_root.verden["kule" + kulenr]._y = ypos;
_root.verden["kule" + kulenr]._rotation = (rotasjon + (Math.random() * treffsikker)) - (treffsikker / 2);
} else {
_root.verden["kule" + kulenr]._x = _root.verden.mann._x;
_root.verden["kule" + kulenr]._y = _root.verden.mann._y;
_root.verden["kule" + kulenr]._rotation = (_root.verden.mann._rotation + (Math.random() * _root.accuracy)) - (_root.accuracy / 2);
}
_root.verden["kule" + kulenr].damage = 1;
_root.verden["kule" + kulenr].shootskade = shootskade;
_root.verden["kule" + kulenr].shootype = shootype;
_root.verden["kule" + kulenr].kulenr = kulenr;
};
shootr = function (shootype, shootskade, sted, xpos, ypos, rotasjon, treffsikker) {
smoke2(xpos + 30, ypos, 1);
kulenr = kulenr + 1;
if (kulenr > maxkuler) {
kulenr = 0;
}
_root.verden.attachMovie("rakett1", "kule" + kulenr, kuledybde + kulenr);
if (sted == 1) {
_root.verden["kule" + kulenr]._x = xpos;
_root.verden["kule" + kulenr]._y = ypos;
_root.verden["kule" + kulenr]._rotation = (rotasjon + (Math.random() * treffsikker)) - (treffsikker / 2);
} else {
_root.verden["kule" + kulenr]._x = _root.verden.mann._x;
_root.verden["kule" + kulenr]._y = _root.verden.mann._y;
_root.verden["kule" + kulenr]._rotation = (_root.verden.mann._rotation + (Math.random() * _root.accuracy)) - (_root.accuracy / 2);
}
_root.verden["kule" + kulenr].damage = 1;
_root.verden["kule" + kulenr].shootskade = shootskade;
_root.verden["kule" + kulenr].shootype = shootype;
_root.verden["kule" + kulenr].kulenr = kulenr;
};
lingnr = 0;
maxling = 500;
spawnoffling = function (xpos, ypos, offtype, xfart, yfart) {
if (_root.gfx_sparks == 1) {
lingnr = lingnr + 1;
if (lingnr > maxling) {
lingnr = 0;
}
_root.verden.attachMovie("offling1", "offlingen" + lingnr, lingdybde + lingnr);
_root.verden["offlingen" + lingnr]._x = xpos;
_root.verden["offlingen" + lingnr]._y = ypos;
_root.verden["offlingen" + lingnr]._rotation = Math.random() * 360;
_root.verden["offlingen" + lingnr].offling.offling.gotoAndStop(offtype);
_root.verden["offlingen" + lingnr].xfart = xfart;
_root.verden["offlingen" + lingnr].yfart = yfart;
}
};
makexplosjon = function (xpos, ypos) {
lingnr = lingnr + 1;
if (lingnr > maxling) {
lingnr = 0;
}
_root.verden.attachMovie("explosjon", "offlingen" + lingnr, lingdybde + lingnr);
_root.verden["offlingen" + lingnr]._x = xpos;
_root.verden["offlingen" + lingnr]._y = ypos;
_root.verden["offlingen" + lingnr]._xscale = (_root.verden["offlingen" + lingnr]._yscale = 80 + (Math.random() * 10));
_root.verden["offlingen" + lingnr]._rotation = Math.random() * 360;
};
smokenr = 0;
maxsmoke = 50;
smoke2 = function (xpos, ypos, typen) {
if (_root.gfx_smoke == 1) {
smokenr = smokenr + 1;
if (smokenr > maxsmoke) {
smokenr = 0;
}
if (typen == 3) {
_root.verden.attachMovie("bloodsmoke", "smoken" + smokenr, smokedybde + smokenr);
} else if (typen == 2) {
_root.verden.attachMovie("rocksmoke", "smoken" + smokenr, smokedybde + smokenr);
} else {
_root.verden.attachMovie("smokeli", "smoken" + smokenr, smokedybde + smokenr);
}
_root.verden["smoken" + smokenr]._x = xpos;
_root.verden["smoken" + smokenr]._y = ypos;
_root.verden["smoken" + smokenr].typen = 1;
}
};
_root.changeplanet = function (nummer) {
_root.planet = nummer;
_root.verden.bakken.gotoAndStop(nummer);
_root.verden.bakken2.gotoAndStop(nummer);
_root.bakgrunn.gotoAndStop(nummer);
_root.sol.gotoAndStop(nummer);
startTerrain();
};
_root.changeweapon(2);
_root.removegym();
_root.removebuymenu();
if (fra_menu == 2) {
money = 100;
_root.changeplanet(1);
fra_menu = 0;
teller = 0;
tellermax = 0;
lol = 0;
matchnr = 1;
roundtime = 40;
flammediff = 0;
roundtimen = roundtime;
ispaused = 1;
_root.levelkuk = 0;
_root.mellomlevler = 1;
_root.rocket1upris = 500;
_root.rocket2upris = 1000;
_root.rocket3upris = 1500;
raketeller = 0;
rocketid = 0;
_root.rocketbarscale = 0;
_root.rocketbaren._alpha = 0;
haveboss1 = 0;
haveboss2 = 0;
haveboss3 = 0;
boss1 = 0;
boss2 = 0;
boss3 = 0;
timer = 150;
flyoppteller = 0;
canspawn = 1;
mongoteller = 0;
timer2 = 0;
fiende6shoot = 50 + Math.round(Math.random() * 10);
underarmorgone = 0;
overarmorgone = 0;
_root.antallfiende6 = 0;
kuleregnteller = 0;
} else {
if (_root.levelkuk == 0) {
money = 100;
} else {
money = 0;
}
_root.changeplanet(_root.cockplanet);
if (((_root.rocket1 == 1) || (_root.rocket2 == 1)) || (_root.rocket3 == 1)) {
rocketid = rocketid + 0.03;
_root.rocketbaren._alpha = 100;
} else {
_root.rocketbaren._alpha = 0;
}
}
onEnterFrame = function () {
if (_root.ekstrabullets == 1) {
}
fiende6shoot = fiende6shoot - 1;
if (_root.antallfiende6 >= 2) {
if (fiende6shoot == 15) {
_root.antallfiende6 = _root.antallfiende6 - 2;
radarand = Math.round(Math.random() * 3) + 1;
if (radarand == 1) {
_root.radio.gotoAndStop(2);
} else if (radarand == 2) {
_root.radio.gotoAndStop(3);
} else if (radarand == 3) {
_root.radio.gotoAndStop(5);
} else if (radarand == 4) {
_root.radio.gotoAndStop(17);
}
}
}
if (fiende6shoot < 0) {
fiende6shoot = 50 + Math.round(Math.random() * 10);
_root.radio.gotoAndStop(1);
}
canspawnfjell = canspawnfjell - 1;
if (antallfiender <= 0) {
canspawn = 1;
}
if (hull1 == 1) {
_root.hitpointsbalance = (100 / hull1maxp) * hull1p;
_root.pviser = (hull1p + "/") + hull1maxp;
} else if (hull2 == 1) {
_root.hitpointsbalance = (100 / hull2maxp) * hull2p;
_root.pviser = (hull2p + "/") + hull2maxp;
} else if (hull3 == 1) {
_root.hitpointsbalance = (100 / hull3maxp) * hull3p;
_root.pviser = (hull3p + "/") + hull3maxp;
} else if (hull4 == 1) {
_root.hitpointsbalance = (100 / hull4maxp) * hull4p;
_root.pviser = (hull4p + "/") + hull4maxp;
} else if (hull5 == 1) {
_root.hitpointsbalance = (100 / hull5maxp) * hull5p;
_root.pviser = (hull5p + "/") + hull5maxp;
}
_root.moneynice = _root.money + "$";
if (_root.rocket1 == 1) {
if (rocketid >= rocket1reload) {
rocketid == rocket1reload;
rocketklar = 1;
}
_root.rocketbarscale = (100 / rocket1reload) * rocketid;
}
if (_root.rocket2 == 1) {
if (rocketid >= rocket2reload) {
rocketid == rocket2reload;
rocketklar = 1;
}
_root.rocketbarscale = (100 / rocket2reload) * rocketid;
}
if (_root.rocket3 == 1) {
if (rocketid >= rocket3reload) {
rocketid == rocket3reload;
rocketklar = 1;
}
_root.rocketbarscale = (100 / rocket3reload) * rocketid;
}
_root.rocket1reloadf = _root.rocket1reload + " s";
_root.rocket2reloadf = _root.rocket2reload + " s";
_root.rocket3reloadf = _root.rocket3reload + " s";
if ((_root.weapon4 == 1) || (_root.weapon7 == 1)) {
i = 0;
while (i < (makskuler + 1)) {
_root.verden["kulen" + i]._alpha = _root.verden["kulen" + i]._alpha - (_root.verden["kulen" + i]._alpha / 3);
if (_root.verden["kulen" + i]._alpha < 10) {
_root.verden["kulen" + i].removeMovieClip();
}
i++;
}
} else if (_root.weapon6 == 1) {
i = 0;
while (i < (makskuler + 1)) {
_root.verden["kulen" + i]._alpha = _root.verden["kulen" + i]._alpha - (_root.verden["kulen" + i]._alpha / 5);
if (_root.verden["kulen" + i]._alpha < 10) {
_root.verden["kulen" + i].removeMovieClip();
}
i++;
}
}
teller = teller + 1;
if (teller > tellermax) {
teller = 0;
if (planet == 1) {
tellermax = 4 + Math.round(Math.random() * 10);
} else if (planet == 2) {
tellermax = 8 + Math.round(Math.random() * 20);
} else if (planet == 3) {
tellermax = 8 + Math.round(Math.random() * 20);
}
if (canspawnfjell <= 0) {
spawnFjell(0, 0, planet);
}
spawnFjell2(0, 0, planet);
}
if (_root.ispaused == 0) {
if (((levelkuk == 6) || (levelkuk == 7)) || (levelkuk == 8)) {
timer2 = timer2 + 1;
if (timer2 >= 70) {
_root.spawnfiende(8, 0, 0, 0, 1);
timer2 = 0;
}
}
if (((_root.rocket1 == 1) || (_root.rocket2 == 1)) || (_root.rocket3 == 1)) {
rocketid = rocketid + 0.03;
_root.rocketbaren._alpha = 100;
} else {
_root.rocketbaren._alpha = 0;
}
_root.roundteller = _root.roundteller + 1;
if (_root.roundteller >= 30) {
if (((_root.boss1 == 1) || (_root.boss2 == 1)) || (_root.boss3 == 1)) {
} else if (levelkuk >= 6) {
if ((roundtime > (roundtimen - 3)) || (roundtime <= 3)) {
if (canspawn == 1) {
_root.roundtime = _root.roundtime - 1;
}
}
} else {
_root.roundtime = _root.roundtime - 1;
}
_root.roundteller = 0;
if (roundtime <= 0) {
if (antallfiender <= 0) {
_root.ispaused = 1;
_root.mellomlevler = 1;
_root.attachMovie("brief", "briefen", 70000);
_root.briefen._x = 0;
_root.briefen._y = 0;
_root.briefen.gotoAndStop(2);
_root.brief.skiplol.play();
}
} else {
_root.timeremainingthing = ("Time remaining: " + roundtime) + "sec";
}
}
if (canspawn == 1) {
if (roundtime > 3) {
if (roundtime < (roundtimen - 2)) {
if (levelkuk == 1) {
_root.musikk.gotoAndStop(1);
timer = timer + 1;
if (timer == 30) {
_root.spawnfiende(1);
timer = 0;
}
} else if (levelkuk == 2) {
timer = timer + 1;
if (timer >= 25) {
fitte = Math.round(Math.random() * 3);
if (fitte == 2) {
_root.spawnfiende(2);
} else {
_root.spawnfiende(1);
}
timer = 0;
}
} else if (levelkuk == 3) {
timer = timer + 1;
if (timer >= 50) {
timer = 0;
_root.spawnfiende(Math.round(Math.random() * 1) + 1);
manga = Math.round(Math.random() * 4);
if (manga == 3) {
_root.spawnfiende(3);
}
}
} else if (levelkuk == 4) {
timer = timer + 1;
if (timer >= 55) {
timer = 0;
_root.spawnfiende(Math.round(Math.random() * 1) + 1);
manga = Math.round(Math.random() * 5);
if (manga == 3) {
_root.spawnfiende(3);
} else if (manga == 2) {
_root.spawnfiende(5);
}
}
} else if (levelkuk == 5) {
timer = timer + 1;
if (roundtime > 8) {
if (timer >= 50) {
if (powerspawn == 0) {
powerspawn = 1;
_root.makepowerup(650, 100 + (Math.random() * 200), 1);
}
timer = 0;
_root.spawnfiende(1);
_root.spawnfiende(Math.round(Math.random() * 1) + 2);
manga = Math.round(Math.random() * 2);
if (manga == 2) {
_root.spawnfiende(5);
}
}
} else if (roundtime < 5) {
if (timer >= 60) {
if (haveboss1 == 0) {
haveboss1 = 1;
if (boss1 == 0) {
boss1 = 1;
_root.spawnfiende(4);
roundtime = 5;
}
}
timer = 0;
}
}
} else if (levelkuk == 6) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 50) {
_root.musikk.gotoAndStop(8);
}
if (timer == 100) {
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 1) {
if (timer == 50) {
_root.spawnfiende(6);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
if (timer == 100) {
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 3) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(6);
}
} else if (mongoteller == 5) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(6);
}
} else if (mongoteller == 6) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
}
if (timer == 75) {
_root.spawnfiende(6);
}
if (timer >= 100) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(6);
}
} else if (mongoteller == 7) {
if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(6);
}
if (timer == 75) {
_root.spawnfiende(6);
}
if (timer >= 100) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
_root.spawnfiende(6);
}
}
} else if (levelkuk == 7) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 50) {
_root.radio.gotoAndStop(16);
_root.spawnfiende(10);
}
if (timer >= 100) {
_root.spawnfiende(10);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 1) {
if (timer == 50) {
_root.radio.gotoAndStop(7);
_root.spawnfiende(9);
if (powerspawn == 1) {
powerspawn = 2;
_root.makepowerup(650, 100 + (Math.random() * 200), 2);
}
}
if (timer >= 100) {
_root.spawnfiende(8);
_root.spawnfiende(10);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 2) {
if (timer == 50) {
_root.spawnfiende(9);
_root.radio.gotoAndStop(15);
_root.spawnfiende(10);
}
if (timer >= 90) {
_root.spawnfiende(9);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(10);
} else if (timer == 20) {
_root.spawnfiende(9);
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(10);
} else if (timer == 50) {
_root.spawnfiende(10);
} else if (timer == 60) {
_root.spawnfiende(10);
} else if (timer == 70) {
_root.spawnfiende(10);
}
if (timer >= 80) {
_root.spawnfiende(9);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 4) {
if (timer == 50) {
_root.spawnfiende(10);
}
if (timer >= 70) {
_root.spawnfiende(9);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 5) {
if (timer == 10) {
_root.spawnfiende(10);
} else if (timer == 20) {
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(10);
} else if (timer == 50) {
_root.spawnfiende(10);
}
if (timer >= 60) {
_root.spawnfiende(9);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 6) {
if (timer == 10) {
_root.spawnfiende(10);
} else if (timer == 20) {
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
}
if (timer >= 40) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 7) {
if (timer >= 30) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 8) {
if (timer >= 20) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 9) {
if (timer >= 10) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
} else if (mongoteller == 10) {
if (timer >= 20) {
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
_root.spawnfiende(8);
}
}
} else if (levelkuk == 8) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 25) {
_root.radio.gotoAndStop(13);
}
if (timer >= 100) {
if (powerspawn == 2) {
powerspawn = 3;
_root.makepowerup(650, 100 + (Math.random() * 200), 1);
}
_root.radio.gotoAndStop(18);
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 1) {
if (timer >= 100) {
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 10) {
_root.spawnfiende(8);
} else if (timer == 20) {
_root.spawnfiende(8);
} else if (timer == 30) {
_root.spawnfiende(8);
} else if (timer == 40) {
_root.spawnfiende(8);
} else if (timer == 50) {
_root.spawnfiende(8);
} else if (timer == 60) {
_root.spawnfiende(8);
} else if (timer >= 100) {
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(8);
_root.spawnfiende(9);
} else if (timer == 20) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 50) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 60) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 100) {
_root.spawnfiende(6);
_root.spawnfiende(10);
} else if (timer >= 150) {
_root.spawnfiende(6);
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer == 10) {
_root.spawnfiende(8);
} else if (timer == 20) {
_root.spawnfiende(8);
} else if (timer == 30) {
_root.spawnfiende(8);
} else if (timer == 100) {
_root.spawnfiende(7);
} else if (timer == 150) {
_root.spawnfiende(7);
} else if (timer >= 300) {
_root.spawnfiende(6);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 5) {
if (timer == 10) {
_root.spawnfiende(9);
_root.spawnfiende(10);
} else if (timer == 20) {
_root.spawnfiende(6);
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 100) {
_root.spawnfiende(8);
_root.spawnfiende(10);
} else if (timer == 150) {
_root.spawnfiende(9);
_root.spawnfiende(10);
} else if (timer >= 200) {
_root.spawnfiende(10);
_root.spawnfiende(7);
_root.spawnfiende(9);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
}
}
} else if (levelkuk == 9) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer >= 100) {
_root.spawnfiende(11);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 1) {
if (timer == 10) {
_root.spawnfiende(9);
} else if (timer == 20) {
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(10);
} else if (timer == 50) {
_root.spawnfiende(10);
} else if (timer == 60) {
_root.spawnfiende(10);
} else if (timer == 70) {
_root.spawnfiende(10);
}
if (timer >= 100) {
_root.spawnfiende(6);
_root.spawnfiende(6);
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 10) {
_root.spawnfiende(9);
} else if (timer == 20) {
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(9);
} else if (timer == 50) {
_root.spawnfiende(10);
} else if (timer == 60) {
_root.spawnfiende(10);
} else if (timer == 70) {
_root.spawnfiende(10);
}
if (timer >= 100) {
_root.spawnfiende(11);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(9);
} else if (timer == 20) {
_root.spawnfiende(10);
} else if (timer == 30) {
_root.spawnfiende(10);
} else if (timer == 40) {
_root.spawnfiende(9);
} else if (timer == 50) {
_root.spawnfiende(10);
} else if (timer == 60) {
_root.spawnfiende(10);
} else if (timer == 70) {
_root.spawnfiende(10);
}
if (timer >= 100) {
_root.spawnfiende(6);
_root.spawnfiende(6);
_root.spawnfiende(6);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer >= 100) {
_root.spawnfiende(11);
_root.spawnfiende(7);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 5) {
if (timer >= 100) {
_root.spawnfiende(11);
_root.spawnfiende(6);
_root.spawnfiende(6);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 6) {
if (timer == 100) {
_root.spawnfiende(6);
_root.spawnfiende(6);
}
if (timer >= 150) {
_root.spawnfiende(11);
_root.spawnfiende(8);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 7) {
if (timer >= 30) {
if (haveboss2 == 0) {
haveboss2 = 1;
if (boss2 == 0) {
boss2 = 1;
_root.spawnfiende(12);
roundtime = 5;
}
}
timer = 0;
}
}
} else if (levelkuk == 10) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 100) {
_root.musikk.gotoAndStop(4);
_root.spawnfiende(15);
_root.spawnfiende(18);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 1) {
kuleregnteller = kuleregnteller + 1;
if (kuleregnteller >= 10) {
kuleregnteller = 0;
_root.fshoot(50 + (Math.random() * 700), -20 + (Math.random() * 10), _parent._parent._rotation + 90, 10, 5, 10);
}
if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer == 100) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 25) {
if (powerspawn == 3) {
powerspawn = 4;
_root.makepowerup(650, 100 + (Math.random() * 200), 2);
}
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
if (timer == 50) {
_root.spawnfiende(18);
}
if (timer == 75) {
_root.spawnfiende(18);
}
if (timer == 100) {
_root.spawnfiende(18);
_root.spawnfiende(18);
}
if (timer == 150) {
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 3) {
kuleregnteller = kuleregnteller + 1;
if (kuleregnteller >= 10) {
kuleregnteller = 0;
_root.fshoot(50 + (Math.random() * 700), -20 + (Math.random() * 10), _parent._parent._rotation + 90, 10, 5, 10);
}
if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
if (timer == 100) {
_root.spawnfiende(18);
_root.spawnfiende(16);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
} else if (mongoteller == 5) {
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(16);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(16);
}
} else if (mongoteller == 6) {
kuleregnteller = kuleregnteller + 1;
if (kuleregnteller >= 20) {
kuleregnteller = 0;
_root.fshoot(50 + (Math.random() * 700), -20 + (Math.random() * 10), _parent._parent._rotation + 90, 10, 5, 10);
}
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(15);
}
if (timer == 75) {
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer >= 100) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(18);
}
} else if (mongoteller == 7) {
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(15);
}
if (timer == 75) {
_root.spawnfiende(15);
}
if (timer >= 100) {
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(16);
}
} else if (mongoteller == 8) {
if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
if (timer == 100) {
_root.spawnfiende(18);
_root.spawnfiende(16);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
}
} else if (mongoteller == 9) {
if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
} else if (mongoteller == 10) {
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(16);
}
if (timer >= 75) {
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(16);
}
} else if (mongoteller == 11) {
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(15);
}
if (timer == 75) {
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer >= 100) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = roundtime - 1;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(16);
_root.spawnfiende(18);
}
} else if (mongoteller == 12) {
kuleregnteller = kuleregnteller + 1;
if (kuleregnteller >= 30) {
kuleregnteller = 0;
_root.fshoot(50 + (Math.random() * 700), -20 + (Math.random() * 10), _parent._parent._rotation + 90, 10, 5, 10);
}
if (timer == 50) {
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(21);
}
if (timer == 75) {
_root.spawnfiende(15);
}
if (timer >= 100) {
_root.spawnfiende(13);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
_root.spawnfiende(16);
}
}
} else if (levelkuk == 11) {
kuleregnteller = kuleregnteller + 1;
if (kuleregnteller >= 20) {
kuleregnteller = 0;
_root.fshoot(50 + (Math.random() * 700), -20 + (Math.random() * 10), _parent._parent._rotation + 90, 10, 5, 10);
}
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 50) {
_root.spawnfiende(18);
_root.spawnfiende(14);
}
if (timer >= 100) {
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(18);
}
} else if (mongoteller == 1) {
if (timer == 50) {
_root.spawnfiende(18);
}
if (timer >= 100) {
_root.spawnfiende(17);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 50) {
_root.spawnfiende(17);
_root.spawnfiende(18);
}
if (timer >= 90) {
_root.spawnfiende(17);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(18);
_root.spawnfiende(17);
} else if (timer == 30) {
_root.spawnfiende(18);
} else if (timer == 40) {
_root.spawnfiende(18);
} else if (timer == 50) {
_root.spawnfiende(18);
} else if (timer == 60) {
_root.spawnfiende(18);
} else if (timer == 70) {
_root.spawnfiende(17);
}
if (timer >= 120) {
_root.spawnfiende(16);
_root.spawnfiende(16);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(21);
_root.spawnfiende(21);
}
} else if (mongoteller == 4) {
if (timer == 50) {
_root.spawnfiende(17);
_root.spawnfiende(17);
}
if (timer >= 70) {
_root.spawnfiende(17);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(16);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(14);
_root.spawnfiende(14);
}
} else if (mongoteller == 5) {
if (timer == 10) {
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(15);
} else if (timer == 30) {
_root.spawnfiende(15);
} else if (timer == 40) {
_root.spawnfiende(15);
} else if (timer == 50) {
_root.spawnfiende(16);
}
if (timer >= 60) {
_root.spawnfiende(18);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(17);
_root.spawnfiende(17);
}
} else if (mongoteller == 6) {
if (timer >= 20) {
_root.spawnfiende(17);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(17);
_root.spawnfiende(17);
_root.spawnfiende(15);
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(14);
}
} else if (mongoteller == 7) {
if (timer == 10) {
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(18);
_root.spawnfiende(17);
} else if (timer == 30) {
_root.spawnfiende(18);
} else if (timer == 40) {
_root.spawnfiende(18);
} else if (timer == 50) {
_root.spawnfiende(18);
} else if (timer == 60) {
_root.spawnfiende(18);
} else if (timer == 70) {
_root.spawnfiende(17);
}
if (timer >= 120) {
_root.spawnfiende(16);
_root.spawnfiende(16);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
} else if (mongoteller == 8) {
if (timer == 50) {
_root.spawnfiende(17);
_root.spawnfiende(17);
}
if (timer >= 70) {
_root.spawnfiende(17);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(16);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
} else if (mongoteller == 9) {
if (timer == 10) {
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(15);
} else if (timer == 30) {
_root.spawnfiende(15);
} else if (timer == 40) {
_root.spawnfiende(15);
} else if (timer == 50) {
_root.spawnfiende(16);
}
if (timer >= 60) {
_root.spawnfiende(13);
_root.spawnfiende(13);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
_root.spawnfiende(17);
_root.spawnfiende(17);
}
} else if (mongoteller == 10) {
if (timer >= 20) {
_root.spawnfiende(17);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
_root.spawnfiende(18);
_root.spawnfiende(17);
_root.spawnfiende(17);
_root.spawnfiende(15);
_root.spawnfiende(15);
}
}
} else if (levelkuk == 12) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer == 25) {
_root.spawnfiende(18);
_root.spawnfiende(13);
}
if (timer >= 100) {
_root.spawnfiende(18);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 1) {
if (timer >= 100) {
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 10) {
_root.spawnfiende(13);
_root.spawnfiende(14);
_root.spawnfiende(14);
} else if (timer == 20) {
_root.spawnfiende(15);
} else if (timer == 30) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 40) {
_root.spawnfiende(15);
} else if (timer == 50) {
_root.spawnfiende(16);
} else if (timer == 60) {
_root.spawnfiende(16);
} else if (timer >= 100) {
_root.spawnfiende(17);
_root.spawnfiende(18);
_root.spawnfiende(13);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(13);
_root.spawnfiende(13);
} else if (timer == 20) {
_root.spawnfiende(18);
_root.spawnfiende(15);
} else if (timer == 30) {
_root.spawnfiende(18);
_root.spawnfiende(15);
} else if (timer == 40) {
_root.spawnfiende(18);
_root.spawnfiende(15);
} else if (timer == 50) {
_root.spawnfiende(17);
_root.spawnfiende(15);
} else if (timer == 60) {
_root.spawnfiende(18);
_root.spawnfiende(15);
} else if (timer == 100) {
_root.spawnfiende(17);
_root.spawnfiende(15);
} else if (timer >= 150) {
_root.spawnfiende(17);
_root.spawnfiende(13);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer == 10) {
_root.spawnfiende(16);
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(16);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(14);
} else if (timer == 30) {
_root.spawnfiende(16);
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer == 100) {
_root.spawnfiende(16);
_root.spawnfiende(15);
} else if (timer == 150) {
_root.spawnfiende(17);
_root.spawnfiende(15);
} else if (timer >= 300) {
_root.spawnfiende(18);
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(13);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 5) {
if (timer == 10) {
_root.spawnfiende(18);
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer == 20) {
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer == 30) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(16);
} else if (timer == 100) {
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer == 150) {
_root.spawnfiende(15);
_root.spawnfiende(15);
} else if (timer >= 200) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(16);
_root.spawnfiende(17);
_root.spawnfiende(17);
mongoteller = mongoteller + 1;
timer = 0;
roundtime = 3;
canspawn = 0;
}
}
} else if (levelkuk == 13) {
timer = timer + 1;
if (mongoteller == 0) {
if (timer >= 100) {
_root.spawnfiende(21);
_root.spawnfiende(21);
_root.spawnfiende(21);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 1) {
if (timer == 10) {
_root.spawnfiende(13);
_root.spawnfiende(18);
} else if (timer == 20) {
_root.spawnfiende(14);
_root.spawnfiende(18);
} else if (timer == 30) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 40) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 60) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 70) {
_root.spawnfiende(15);
_root.spawnfiende(18);
}
if (timer >= 100) {
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 2) {
if (timer == 10) {
_root.spawnfiende(14);
_root.spawnfiende(18);
} else if (timer == 20) {
_root.spawnfiende(14);
_root.spawnfiende(18);
} else if (timer == 30) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 40) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 50) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 60) {
_root.spawnfiende(15);
_root.spawnfiende(18);
} else if (timer == 70) {
_root.spawnfiende(15);
}
if (timer >= 100) {
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 3) {
if (timer == 10) {
_root.spawnfiende(15);
_root.spawnfiende(14);
} else if (timer == 20) {
_root.spawnfiende(17);
} else if (timer == 30) {
_root.spawnfiende(17);
} else if (timer == 40) {
_root.spawnfiende(18);
} else if (timer == 50) {
_root.spawnfiende(18);
} else if (timer == 60) {
_root.spawnfiende(15);
} else if (timer == 70) {
_root.spawnfiende(15);
_root.spawnfiende(15);
}
if (timer >= 100) {
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(16);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 4) {
if (timer >= 100) {
_root.spawnfiende(14);
_root.spawnfiende(14);
_root.spawnfiende(14);
_root.spawnfiende(18);
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 5) {
if (timer >= 100) {
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(18);
_root.spawnfiende(15);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 6) {
if (timer == 100) {
_root.spawnfiende(14);
_root.spawnfiende(14);
_root.spawnfiende(15);
}
if (timer >= 150) {
_root.spawnfiende(13);
_root.spawnfiende(13);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(18);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
}
} else if (mongoteller == 7) {
_root.spawnfiende(19);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
} else if (mongoteller == 8) {
if (timer >= 150) {
_root.spawnfiende(20);
mongoteller = mongoteller + 1;
timer = 0;
canspawn = 0;
roundtime = 5;
}
}
}
}
}
}
} else {
if (_root.mellomlevler == 1) {
}
teller = teller + 1;
if (teller > tellermax) {
teller = 0;
if (planet == 1) {
tellermax = 4 + Math.round(Math.random() * 10);
} else if (planet == 2) {
tellermax = 8 + Math.round(Math.random() * 20);
} else if (planet == 3) {
tellermax = 8 + Math.round(Math.random() * 20);
}
spawnFjell(0, 0, planet);
spawnFjell2(0, 0, planet);
}
}
};
Instance of Symbol 1852 MovieClip [shell] "shell" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1846 MovieClip [kule1] "kule1" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1815 MovieClip [rakett1] "rakett1" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1798 MovieClip [offling1] "offling1" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1762 MovieClip [smokeli] "smokeli" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1753 MovieClip [rocksmoke] "rocksmoke" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1745 MovieClip [blod1] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1733 MovieClip [blod] "blod" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1724 MovieClip [fiende1props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1722 MovieClip [blodflekker] "blodflekker" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1708 MovieClip [fkule1] "fkule1" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1625 MovieClip [blod2] "blod2" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1592 MovieClip [blodrop2] "blodrop2" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1583 MovieClip [blodflekker2] "blodflekker2" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1569 MovieClip [explosjon] "explosjon" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1555 MovieClip [fiende2props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1553 MovieClip [fiende3props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1550 MovieClip [fiende4props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1544 MovieClip [fiende4props2] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1532 MovieClip [fiende5props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1522 MovieClip [fiende6props] "fiende6props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1517 MovieClip [fiende8props] "fiende8props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1511 MovieClip [fiende9props] "fiende9props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1503 MovieClip [fiende7props] "fiende7props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1499 MovieClip [fiende11props] "fiende11props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1492 MovieClip [fiende15props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1487 MovieClip [fiende18props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1481 MovieClip [fiende17props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1473 MovieClip [fiende10props] "fiende9props" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1465 MovieClip [fiende16props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1458 MovieClip [fiende13props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1453 MovieClip [fiende14props] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1448 MovieClip [sistebossprops] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1442 MovieClip [bloodsmoke] "rocksmoke" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1434 MovieClip [1337blod] in Frame 5
onClipEvent (load) {
swapDepths(13372);
this.removeMovieClip();
}
Instance of Symbol 476 MovieClip [damagetekst] "damagetekst" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 473 MovieClip [laser1] "laser1" in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 472 MovieClip [brief] "brief" in Frame 5
onClipEvent (load) {
swapDepths(70000);
}
Instance of Symbol 2037 MovieClip "musikk" in Frame 5
onClipEvent (load) {
if ((_root.general_sound == 0) || (_root.sound_music == 0)) {
gotoAndStop (9);
swapDepths(1337);
this.removeMovieClip();
}
}
Instance of Symbol 2054 MovieClip "bossbaren" in Frame 5
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 2082 MovieClip "tarskadeanim" in Frame 5
onClipEvent (load) {
swapDepths(68247);
}
Instance of Symbol 275 MovieClip [poweruppen] in Frame 5
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Frame 6
_root._quality = "Medium";
game_slutt = 1;
fra_death = 1;
stop();
fra_menu = 1;
Frame 7
_root._quality = "Medium";
game_slutt = 1;
Instance of Symbol 2373 MovieClip in Frame 7
onClipEvent (load) {
swapDepths(967999);
}
Symbol 13 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 14 MovieClip [kulen5] Frame 1
stop();
Instance of Symbol 2 MovieClip in Symbol 14 MovieClip [kulen5] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 5;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 10);
_parent._y = _parent._y + (yfart * 10);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 5) {
if (_parent.dead == 0) {
if (hitTest(_root.verden.fiender)) {
j = 0;
while (j < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + j].hitbox.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.verden.fiender["fienden" + j].taskade(_parent.skade);
if (_root.verden.fiender["fienden" + j].fiendetype == 1) {
_root.makeBlood(_parent._x, _parent._y);
_root.makeBlood(_parent._x, _parent._y + 5);
_root.makeBlood(_parent._x + 5, _parent._y);
_root.makeBlood(_parent._x - 5, _parent._y);
_root.makeBlood(_parent._x, _parent._y - 5);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart * 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart * 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 4;
u = 0;
while (u < 15) {
_root.makedrops(_parent._x, _parent._y, 0, 1);
u++;
}
} else {
_root.makeBlood(_parent._x, _parent._y, 2);
_root.makeBlood(_parent._x, _parent._y + 5, 2);
_root.makeBlood(_parent._x + 5, _parent._y, 2);
_root.makeBlood(_parent._x - 5, _parent._y, 2);
_root.makeBlood(_parent._x, _parent._y - 5, 2);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + xfart;
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + yfart;
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 1;
u = 0;
while (u < 15) {
_root.makedrops(_parent._x, _parent._y, 0, 2);
u++;
}
}
_parent.removeMovieClip();
}
j++;
}
}
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 14 MovieClip [kulen5] Frame 2
stop();
Instance of Symbol 13 MovieClip in Symbol 14 MovieClip [kulen5] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 26 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 27 MovieClip [kulen4] Frame 1
stop();
Instance of Symbol 16 MovieClip in Symbol 27 MovieClip [kulen4] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 5;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 10);
_parent._y = _parent._y + (yfart * 10);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 3) {
if (_parent.dead == 0) {
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
} else if (_root.verden.fiender.hitTest(realx, realy, true)) {
j = 0;
while (j < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + j].hitbox.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.verden.fiender["fienden" + j].taskade(_parent.skade);
if (_root.verden.fiender["fienden" + j].fiendetype == 1) {
_root.makeBlood(_parent._x, _parent._y);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 1;
u = 0;
while (u < 6) {
_root.makedrops(_parent._x, _parent._y, 0, 1);
u++;
}
} else {
_root.makeBlood(_parent._x, _parent._y, 2);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 0.2;
u = 0;
while (u < 6) {
_root.makedrops(_parent._x, _parent._y, 0, 2);
u++;
}
}
_parent.removeMovieClip();
}
j++;
}
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 27 MovieClip [kulen4] Frame 2
stop();
Instance of Symbol 26 MovieClip in Symbol 27 MovieClip [kulen4] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 39 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 40 MovieClip [kulen3] Frame 1
stop();
Instance of Symbol 29 MovieClip in Symbol 40 MovieClip [kulen3] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 5;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 6);
_parent._y = _parent._y + (yfart * 6);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 3) {
if (_parent.dead == 0) {
if (hitTest(_root.verden.fiender)) {
j = 0;
while (j < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + j].hitbox.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.verden.fiender["fienden" + j].taskade(_parent.skade);
if (_root.verden.fiender["fienden" + j].fiendetype == 1) {
_root.makeBlood(_parent._x, _parent._y);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 1;
u = 0;
while (u < 4) {
_root.makedrops(_parent._x, _parent._y, 0, 1);
u++;
}
} else {
_root.makeBlood(_parent._x, _parent._y, 2);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 0.2;
u = 0;
while (u < 4) {
_root.makedrops(_parent._x, _parent._y, 0, 2);
u++;
}
}
_parent.removeMovieClip();
}
j++;
}
}
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 40 MovieClip [kulen3] Frame 2
stop();
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip [kulen3] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 53 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 54 MovieClip [kulen2] Frame 1
stop();
Instance of Symbol 42 MovieClip in Symbol 54 MovieClip [kulen2] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 4;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 4);
_parent._y = _parent._y + (yfart * 4);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 3) {
if (_parent.dead == 0) {
if (hitTest(_root.verden.fiender)) {
j = 0;
while (j < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + j].hitbox.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.verden.fiender["fienden" + j].taskade(_parent.skade);
if (_root.verden.fiender["fienden" + j].fiendetype == 1) {
_root.makeBlood(_parent._x, _parent._y);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 1;
u = 0;
while (u < 6) {
_root.makedrops(_parent._x, _parent._y, 0, 1);
u++;
}
} else {
_root.makeBlood(_parent._x, _parent._y, 2);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 0.2;
u = 0;
while (u < 6) {
_root.makedrops(_parent._x, _parent._y, 0, 2);
u++;
}
}
_parent.removeMovieClip();
}
j++;
}
}
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 54 MovieClip [kulen2] Frame 2
stop();
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip [kulen2] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 67 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 68 MovieClip [kulen] Frame 1
stop();
Instance of Symbol 56 MovieClip in Symbol 68 MovieClip [kulen] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 5;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 4);
_parent._y = _parent._y + (yfart * 4);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 3) {
if (_parent.dead == 0) {
if (hitTest(_root.verden.fiender)) {
j = 0;
while (j < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + j].hitbox.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.verden.fiender["fienden" + j].taskade(_parent.skade);
if (_root.verden.fiender["fienden" + j].fiendetype == 1) {
_root.makeBlood(_parent._x, _parent._y);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 2);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 1;
u = 0;
while (u < 8) {
_root.makedrops(_parent._x, _parent._y, 0, 1);
u++;
}
} else {
_root.makeBlood(_parent._x, _parent._y, 2);
_root.verden.fiender["fienden" + j].xfart = _root.verden.fiender["fienden" + j].xfart + (xfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart + (yfart / 6);
_root.verden.fiender["fienden" + j].yfart = _root.verden.fiender["fienden" + j].yfart - 0.2;
u = 0;
while (u < 8) {
_root.makedrops(_parent._x, _parent._y, 0, 2);
u++;
}
}
_parent.removeMovieClip();
}
j++;
}
}
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 68 MovieClip [kulen] Frame 2
stop();
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip [kulen] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 78 MovieClip [blood2] Frame 10
removeMovieClip(this);
Symbol 84 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 85 MovieClip [spdefblodrop2] Frame 1
stop();
xfart = -6 + (Math.random() * 12);
yfart = -6 + (Math.random() * 8);
_rotation = (Math.random() * 360);
_yscale = (50 + (Math.random() * 50));
_xscale = (50 + (Math.random() * 50));
if (bonly == 1) {
drop.drop.gotoAndStop(Math.round(Math.random() * 4) + 1);
} else {
drop.drop.gotoAndStop(Math.round(Math.random() * 6) + 1);
}
dead = 0;
onEnterFrame = function () {
if (dead == 0) {
_x = (_x + xfart);
_y = (_y + yfart);
realx = _x + _parent._x;
realy = _y + _parent._y;
xfart = xfart - (xfart / 500);
yfart = yfart + 0.2;
_xscale = (_xscale - (_xscale / 25));
_yscale = (_yscale - (_yscale / 25));
}
};
Symbol 94 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 95 MovieClip [blodrop] Frame 1
stop();
xfart = -4 + (Math.random() * 8);
yfart = -4 + (Math.random() * 6);
_rotation = (Math.random() * 360);
_yscale = (50 + (Math.random() * 50));
_xscale = (50 + (Math.random() * 50));
if (bonly == 1) {
drop.drop.gotoAndStop(Math.round(Math.random() * 4) + 1);
} else {
drop.drop.gotoAndStop(Math.round(Math.random() * 6) + 1);
}
dead = 0;
onEnterFrame = function () {
if (dead == 0) {
_x = (_x + xfart);
_y = (_y + yfart);
realx = _x + _parent._x;
realy = _y + _parent._y;
xfart = xfart - (xfart / 500);
yfart = yfart + 0.2;
_xscale = (_xscale - (_xscale / 25));
_yscale = (_yscale - (_yscale / 25));
}
};
Symbol 105 MovieClip [blood] Frame 10
removeMovieClip(this);
Symbol 106 MovieClip [fkulen4] Frame 1
stop();
Instance of Symbol 16 MovieClip in Symbol 106 MovieClip [fkulen4] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 8;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 2);
_parent._y = _parent._y + (yfart * 2);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 2) {
if (_parent.dead == 0) {
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
if (_root.verden.man.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.makeBlood(_parent._x, _parent._y);
_root.verden.man.xfart = _root.verden.man.xfart + (xfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart + (yfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart - 0.5;
_parent.removeMovieClip();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 106 MovieClip [fkulen4] Frame 2
stop();
Instance of Symbol 26 MovieClip in Symbol 106 MovieClip [fkulen4] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 107 MovieClip [fkulen3] Frame 1
stop();
Instance of Symbol 29 MovieClip in Symbol 107 MovieClip [fkulen3] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 8;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 2);
_parent._y = _parent._y + (yfart * 2);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 2) {
if (_parent.dead == 0) {
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
if (_root.verden.man.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.makeBlood(_parent._x, _parent._y);
_root.verden.man.xfart = _root.verden.man.xfart + (xfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart + (yfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart - 0.5;
_parent.removeMovieClip();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 107 MovieClip [fkulen3] Frame 2
stop();
Instance of Symbol 39 MovieClip in Symbol 107 MovieClip [fkulen3] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 108 MovieClip [fkulen2] Frame 1
stop();
Instance of Symbol 42 MovieClip in Symbol 108 MovieClip [fkulen2] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 8;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 2);
_parent._y = _parent._y + (yfart * 2);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 2) {
if (_parent.dead == 0) {
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
if (_root.verden.man.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.makeBlood(_parent._x, _parent._y);
_root.verden.man.xfart = _root.verden.man.xfart + (xfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart + (yfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart - 0.5;
_parent.removeMovieClip();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 108 MovieClip [fkulen2] Frame 2
stop();
Instance of Symbol 53 MovieClip in Symbol 108 MovieClip [fkulen2] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 109 MovieClip [fkulen] Frame 1
stop();
Instance of Symbol 56 MovieClip in Symbol 109 MovieClip [fkulen] Frame 1
onClipEvent (load) {
_parent.dead = 0;
_parent.fart = 8;
xfart = 0;
yfart = 0;
if (_parent._rotation > 180) {
yfart = yfart + (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart - (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
} else {
yfart = yfart - (_parent.fart * Math.cos((Math.PI/180) * _parent._rotation));
xfart = xfart + (_parent.fart * Math.sin((Math.PI/180) * _parent._rotation));
}
_parent._x = _parent._x + (xfart * 2);
_parent._y = _parent._y + (yfart * 2);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 2) {
if (_parent.dead == 0) {
realx = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
realy = (_parent._y + _parent._parent._y) + _parent._parent._parent._y;
_parent._x = _parent._x + xfart;
_parent._y = _parent._y + yfart;
if (_root.verden.bakke.hitTest(realx, realy, true)) {
_parent.dead = 1;
_parent.play();
}
if (_root.verden.man.hitTest(realx, realy, true)) {
_parent.dead = 1;
_root.makeBlood(_parent._x, _parent._y);
_root.verden.man.xfart = _root.verden.man.xfart + (xfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart + (yfart / 3);
_root.verden.man.yfart = _root.verden.man.yfart - 0.5;
_parent.removeMovieClip();
}
}
i++;
}
if ((((realx < 650) && (realx > -100)) && (realy < 500)) && (realy > -100)) {
} else {
_parent.removeMovieClip();
}
}
Symbol 109 MovieClip [fkulen] Frame 2
stop();
Instance of Symbol 67 MovieClip in Symbol 109 MovieClip [fkulen] Frame 2
onClipEvent (load) {
_rotation = (Math.random() * 360);
_yscale = (60 + (Math.random() * 20));
_xscale = (60 + (Math.random() * 20));
_x = (_x - 2);
_y = (_y - 2);
_x = (_x + (Math.random() * 4));
_y = (_y + (Math.random() * 4));
}
Symbol 114 MovieClip [laser2] Frame 1
onEnterFrame = function () {
_x = _root.verden.fiender["fienden" + nummer]._x;
_y = _root.verden.fiender["fienden" + nummer]._y;
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(2);
}
};
Symbol 114 MovieClip [laser2] Frame 20
this.removeMovieClip();
Symbol 133 MovieClip Frame 1
stop();
Instance of Symbol 150 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
_alpha = (60 + (Math.random() * 20));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Instance of Symbol 153 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
_alpha = (90 + (Math.random() * 10));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 4, 4);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 4, 4);
}
Symbol 155 MovieClip Frame 4
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 4, 4);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 4, 4);
}
Symbol 155 MovieClip Frame 6
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 4, 4);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 4, 4);
}
Symbol 159 MovieClip [spdeffiende2] Frame 1
fiendetype = 2;
stop();
if (sleep == 1) {
harsovet = 1;
ben.gotoAndStop(2);
overkropp.gotoAndStop(9);
if (retning < 2) {
if (retning == 0) {
ben._xscale = -100;
} else {
ben._xscale = 100;
}
} else {
sbenscale = Math.round(Math.random() * 1) + 1;
if (sbenscale == 1) {
ben._xscale = -100;
retning = 0;
} else {
ben._xscale = 100;
retning = 1;
}
}
} else {
harsovet = 0;
overkropp.gotoAndStop(typen);
}
killteller = 0;
xfart = 0;
yfart = 0;
fotpunkt = 25;
maxfart = 8;
accel = 0.4;
friction = 25;
hoppfart = 7;
hopper = 0;
rekkevidde = 80 + (Math.random() * 20);
unmaneuvre = 0;
mani = 0;
maniteller = 0;
dukker = 0;
dukkerand = 0;
dukkerteller = 0;
skyte = 0;
skyte2 = 0;
dead = 0;
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
blirskadet = 0;
health = 30;
klartilogdo = 0;
taskade = function (skade) {
if (sleep == 1) {
sleep = 0;
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
blirskadet = 1;
health = health - skade;
overkropp.gotoAndStop(Math.round(Math.random() * 4) + 4);
oppdater();
overkropp.man.gotoAndPlay(1);
fotpunkt = 25;
if (health <= 0) {
_root.makeBlood(_x + _parent._x, _y + _parent._y, 2);
_root.makeBlood(_x + _parent._x, (_y + _parent._y) + 10, 2);
_root.makeBlood((_x + _parent._x) + 10, _y + _parent._y, 2);
_root.makeBlood((_x + _parent._x) - 10, _y + _parent._y, 2);
_root.makeBlood(_x + _parent._x, (_y + _parent._y) - 10, 2);
u = 0;
while (u < 20) {
_root.makedrops(((_x + _parent._x) + (Math.random() * 10)) - 5, ((_y + _parent._y) + (Math.random() * 10)) - 5, 0, 2);
u++;
}
u = 0;
while (u < 16) {
_root.deldrops(_parent._x + _x, _parent._y + _y, u);
u++;
}
klartilogdo = 1;
this.removeMovieClip();
}
};
oppdater = function () {
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
overkropp.man.weapon.gotoAndStop(typen);
};
oppdater2 = function () {
overkropp.gotoAndStop(typen);
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
};
onEnterFrame = function () {
if (dead == 0) {
if (harsovet == 1) {
if (sleep == 0) {
oppdater2();
harsovet = 0;
}
}
if (sleep == 1) {
if ((_root.verden.man.realx < (realx + (rekkevidde / 2))) && (_root.verden.man.realx > (realx - (rekkevidde / 2)))) {
sleep = 0;
oppdater2();
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
} else {
if (retning == 1) {
ben._xscale = 100;
} else {
ben._xscale = -100;
}
if (blirskadet == 0) {
if (typen == 4) {
skyte = Math.round(Math.random() * 20);
} else {
skyte = Math.round(Math.random() * 40);
}
if (skyte == 1) {
overkropp.man.play();
}
if (dukker == 1) {
if (typen == 4) {
skyte = Math.round(Math.random() * 2);
} else {
skyte = Math.round(Math.random() * 5);
}
if (skyte == 1) {
overkropp.man.play();
}
} else {
if ((_root.verden.man.realx < (realx + rekkevidde)) && (_root.verden.man.realx > (realx - rekkevidde))) {
if (mani == 0) {
unmaneuvre = Math.round(Math.random() * 50);
}
if (unmaneuvre == 1) {
unmaneuvre = 3;
mani = 1;
maniteller = 0;
}
if (mani == 0) {
dukkerand = Math.round(Math.random() * 30);
if (dukkerand == 1) {
dukkerand = 3;
dukker = 1;
dukkerteller = 0;
}
}
if (typen == 4) {
skyte = Math.round(Math.random() * 5);
} else {
skyte = Math.round(Math.random() * 10);
}
} else {
if (typen == 4) {
skyte = Math.round(Math.random() * 25);
} else {
skyte = Math.round(Math.random() * 50);
}
if (skyte == 1) {
overkropp.man.play();
}
}
fotpunkt = 25;
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
gaar = 0;
if (dukker == 0) {
if (mani == 0) {
if (_root.verden.man.realx > (realx + rekkevidde)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
}
if (_root.verden.man.realx < (realx - rekkevidde)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else if (maniteller < 80) {
maniteller = maniteller + 1;
if (maniteller < 20) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 20) && (maniteller < 40)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
} else if ((maniteller >= 40) && (maniteller < 60)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 60) && (maniteller < 80)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else {
maniteller = 0;
mani = 0;
unmaneuvre = 3;
}
} else if (dukkerteller < 40) {
dukkerteller = dukkerteller + 1;
} else {
dukkerteller = 0;
dukker = 0;
}
if (dukker == 0) {
if (hopper == 0) {
if (gaar == 1) {
if (retning == 1) {
ben.gotoAndStop(1);
} else {
ben.gotoAndStop(3);
}
} else if (gaar == 2) {
if (retning == 1) {
ben.gotoAndStop(3);
} else {
ben.gotoAndStop(1);
}
} else {
ben.gotoAndStop(2);
}
} else {
ben.gotoAndStop(4);
}
} else {
ben.gotoAndStop(5);
}
}
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, realy + fotpunkt, true)) {
killteller = 0;
if (klartilogdo == 1) {
klartilogdo = 2;
man.man.play();
}
if (klartilogdo > 0) {
xfart = xfart - (xfart / (friction / 2));
} else {
xfart = xfart - (xfart / friction);
}
if (blirskadet == 1) {
ben.gotoAndStop(6);
}
hopper = 0;
if (yfart > 0) {
yfart = 0;
}
i = 0;
while (i < 5) {
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, (realy + fotpunkt) - 1, true)) {
_y = (_y - 1);
}
i++;
}
} else {
killteller = killteller + 1;
if (killteller > 90) {
this.removeMovieClip();
}
yfart = yfart + 0.5;
}
_y = (_y + yfart);
_x = (_x + xfart);
}
};
Instance of Symbol 156 MovieClip "overkropp" in Symbol 159 MovieClip [spdeffiende2] Frame 1
onClipEvent (enterFrame) {
realx = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
realy = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
Xd = _root.verden.man.realx - realx;
Yd = _root.verden.man.realy - realy;
radAngle = Math.atan2(Yd, Xd);
if (_root.verden.man.realx > realx) {
if (_parent.sleep == 1) {
if (_parent.retning == 1) {
_xscale = -100;
} else {
_xscale = 100;
}
} else {
_xscale = 100;
_parent.retning = 1;
_rotation = int((radAngle * 360) / (Math.PI*2));
}
} else if (_parent.sleep == 1) {
if (_parent.retning == 1) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
_xscale = -100;
_parent.retning = 0;
_rotation = (int((radAngle * 360) / (Math.PI*2)) - 180);
}
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 4
stop();
Symbol 192 MovieClip Frame 4
stop();
Symbol 193 MovieClip Frame 1
stop();
teller = 0;
onEnterFrame = function () {
if (_parent._parent.klartilogdo > 1) {
play();
} else {
teller = teller + 1;
if (teller < 30) {
_root.makedrops(_parent._parent._x, _parent._parent._y, 1);
}
}
};
skulder.gotoAndStop(_parent._parent.typen);
hode.gotoAndStop(_parent._parent.typen);
weapon.gotoAndStop(_parent._parent.typen);
Symbol 193 MovieClip Frame 4
skulder.gotoAndStop(_parent._parent.typen);
hode.gotoAndStop(_parent._parent.typen);
weapon.gotoAndStop(_parent._parent.typen);
Symbol 193 MovieClip Frame 7
skulder.gotoAndStop(_parent._parent.typen);
hode.gotoAndStop(_parent._parent.typen);
weapon.gotoAndStop(_parent._parent.typen);
Symbol 193 MovieClip Frame 11
skulder.gotoAndStop(_parent._parent.typen);
hode.gotoAndStop(_parent._parent.typen);
weapon.gotoAndStop(_parent._parent.typen);
_parent._parent.hitbox.swapDepths(1337);
_parent._parent.hitbox.removeMovieClip();
Symbol 193 MovieClip Frame 66
_parent._parent.dead = 1;
Symbol 193 MovieClip Frame 76
_parent._parent.removeMovieClip();
Symbol 195 MovieClip [spdeffiende3] Frame 1
fiendetype = 1;
stop();
if (sleep == 1) {
harsovet = 1;
ben.gotoAndStop(2);
overkropp.gotoAndStop(9);
if (retning < 2) {
if (retning == 0) {
ben._xscale = -100;
} else {
ben._xscale = 100;
}
} else {
sbenscale = Math.round(Math.random() * 1) + 1;
if (sbenscale == 1) {
ben._xscale = -100;
retning = 0;
} else {
ben._xscale = 100;
retning = 1;
}
}
} else {
harsovet = 0;
overkropp.gotoAndStop(typen);
}
killteller = 0;
xfart = 0;
yfart = 0;
fotpunkt = 25;
maxfart = 4;
accel = 0.5;
friction = 10;
hoppfart = 7;
hopper = 0;
rekkevidde = 130 + (Math.random() * 20);
unmaneuvre = 0;
mani = 0;
maniteller = 0;
dukker = 0;
dukkerand = 0;
dukkerteller = 0;
skyte = 0;
skyte2 = 0;
dead = 0;
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
blirskadet = 0;
health = 10;
klartilogdo = 0;
taskade = function (skade) {
if (sleep == 1) {
sleep = 0;
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
blirskadet = 1;
health = health - skade;
overkropp.gotoAndStop(Math.round(Math.random() * 4) + 4);
oppdater();
overkropp.man.gotoAndPlay(1);
fotpunkt = 25;
if (health <= 0) {
_y = (_y - 3);
klartilogdo = 1;
gotoAndStop (2);
}
};
oppdater = function () {
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
overkropp.man.weapon.gotoAndStop(typen);
};
oppdater2 = function () {
overkropp.gotoAndStop(typen);
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
};
onEnterFrame = function () {
if (dead == 0) {
if (harsovet == 1) {
if (sleep == 0) {
oppdater2();
harsovet = 0;
}
}
if (sleep == 1) {
if ((_root.verden.man.realx < (realx + (rekkevidde / 2))) && (_root.verden.man.realx > (realx - (rekkevidde / 2)))) {
sleep = 0;
oppdater2();
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
} else {
if (retning == 1) {
ben._xscale = 100;
} else {
ben._xscale = -100;
}
if (blirskadet == 0) {
if (_root.verden.man.realx > realx) {
avstandtilmann = _root.verden.man.realx - realx;
} else {
avstandtilmann = realx - _root.verden.man.realx;
}
if (avstandtilmann < 200) {
if (typen == 4) {
skyte = Math.round(Math.random() * 20);
} else {
skyte = Math.round(Math.random() * 40);
}
}
if (skyte == 1) {
overkropp.man.play();
}
if (dukker == 1) {
if (typen == 4) {
skyte = Math.round(Math.random() * 2);
} else {
skyte = Math.round(Math.random() * 5);
}
if (skyte == 1) {
overkropp.man.play();
}
fotpunkt = 15;
} else {
if ((_root.verden.man.realx < (realx + rekkevidde)) && (_root.verden.man.realx > (realx - rekkevidde))) {
if (mani == 0) {
dukkerand = Math.round(Math.random() * 30);
if (dukkerand == 1) {
dukkerand = 3;
dukker = 1;
dukkerteller = 0;
}
}
if (typen == 4) {
skyte = Math.round(Math.random() * 5);
} else {
skyte = Math.round(Math.random() * 10);
}
} else {
if (typen == 4) {
skyte = Math.round(Math.random() * 25);
} else {
skyte = Math.round(Math.random() * 50);
}
if (skyte == 1) {
overkropp.man.play();
}
}
fotpunkt = 25;
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
gaar = 0;
if (dukker == 0) {
if (mani == 0) {
if (_root.verden.man.realx > (realx + rekkevidde)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
}
if (_root.verden.man.realx < (realx - rekkevidde)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else if (maniteller < 80) {
maniteller = maniteller + 1;
if (maniteller < 20) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 20) && (maniteller < 40)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
} else if ((maniteller >= 40) && (maniteller < 60)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 60) && (maniteller < 80)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else {
maniteller = 0;
mani = 0;
unmaneuvre = 3;
}
} else if (dukkerteller < 40) {
dukkerteller = dukkerteller + 1;
} else {
dukkerteller = 0;
dukker = 0;
}
if (dukker == 0) {
if (hopper == 0) {
if (gaar == 1) {
if (retning == 1) {
ben.gotoAndStop(1);
} else {
ben.gotoAndStop(3);
}
} else if (gaar == 2) {
if (retning == 1) {
ben.gotoAndStop(3);
} else {
ben.gotoAndStop(1);
}
} else {
ben.gotoAndStop(2);
}
} else {
ben.gotoAndStop(4);
}
} else {
ben.gotoAndStop(5);
}
}
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, realy + fotpunkt, true)) {
killteller = 0;
if (klartilogdo == 1) {
klartilogdo = 2;
man.man.play();
}
if (klartilogdo > 0) {
xfart = xfart - (xfart / (friction / 2));
} else {
xfart = xfart - (xfart / friction);
}
if (blirskadet == 1) {
ben.gotoAndStop(6);
}
hopper = 0;
if (yfart > 0) {
yfart = 0;
}
i = 0;
while (i < 5) {
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, (realy + fotpunkt) - 1, true)) {
_y = (_y - 1);
}
i++;
}
if (blirskadet == 0) {
if (sleep == 1) {
} else if (dukker == 0) {
if (avstandtilmann < 200) {
binladen = Math.round(Math.random() * 30);
if (binladen == 1) {
ben.gotoAndStop(4);
ben.ben.gotoAndPlay(1);
hopper = 1;
yfart = -hoppfart;
}
if (mani == 0) {
unmaneuvre = Math.round(Math.random() * 50);
}
if (unmaneuvre == 1) {
unmaneuvre = 3;
mani = 1;
maniteller = 0;
}
}
}
}
} else {
killteller = killteller + 1;
if (killteller > 90) {
this.removeMovieClip();
}
yfart = yfart + 0.5;
if (blirskadet == 1) {
ben.gotoAndStop(7);
}
}
_y = (_y + yfart);
_x = (_x + xfart);
}
};
Symbol 195 MovieClip [spdeffiende3] Frame 2
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.man.realx > realx) {
_xscale = 100;
} else {
_xscale = -100;
}
Symbol 199 MovieClip Frame 50
stop();
Symbol 200 MovieClip Frame 5
stop();
Symbol 201 MovieClip Frame 5
stop();
Symbol 202 MovieClip Frame 6
stop();
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 206 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
_alpha = (60 + (Math.random() * 20));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Instance of Symbol 209 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
_alpha = (90 + (Math.random() * 10));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 1, 10);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 1, 10);
}
Instance of Symbol 150 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
_alpha = (60 + (Math.random() * 20));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Instance of Symbol 153 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
_alpha = (90 + (Math.random() * 10));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 2, 10);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 2, 10);
}
Instance of Symbol 217 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
_alpha = (60 + (Math.random() * 20));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Instance of Symbol 153 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
_alpha = (90 + (Math.random() * 10));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 90);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
rotrand = (Math.random() * 4) - 2;
if (_parent._parent.retning == 1) {
lol = 90;
} else {
lol = -90;
}
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) - 2, 3, 1);
Symbol 219 MovieClip Frame 3
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, (_parent._rotation + lol) + rotrand, 3, 1);
Symbol 219 MovieClip Frame 4
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) + 2, 3, 1);
Symbol 219 MovieClip Frame 5
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) + 4, 3, 1);
Symbol 219 MovieClip Frame 6
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) - 4, 3, 1);
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
if (_parent._parent.retning == 1) {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 4, 4);
} else {
_root.fshoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 4, 4);
}
Symbol 231 MovieClip Frame 1
_parent._parent.oppdater();
Symbol 231 MovieClip Frame 25
_parent._parent.blirskadet = 0;
_parent._parent.oppdater2();
Symbol 234 MovieClip Frame 1
_parent._parent.oppdater();
Symbol 234 MovieClip Frame 25
_parent._parent.blirskadet = 0;
_parent._parent.oppdater2();
Symbol 237 MovieClip Frame 1
_parent._parent.oppdater();
Symbol 237 MovieClip Frame 25
_parent._parent.blirskadet = 0;
_parent._parent.oppdater2();
Symbol 240 MovieClip Frame 1
_parent._parent.oppdater();
Symbol 240 MovieClip Frame 25
_parent._parent.blirskadet = 0;
_parent._parent.oppdater2();
Symbol 243 MovieClip Frame 1
_parent._parent.oppdater();
Symbol 245 MovieClip [spdeffiende1] Frame 1
fiendetype = 1;
stop();
if (sleep == 1) {
harsovet = 1;
ben.gotoAndStop(2);
overkropp.gotoAndStop(9);
if (retning < 2) {
if (retning == 0) {
ben._xscale = -100;
} else {
ben._xscale = 100;
}
} else {
sbenscale = Math.round(Math.random() * 1) + 1;
if (sbenscale == 1) {
ben._xscale = -100;
retning = 0;
} else {
ben._xscale = 100;
retning = 1;
}
}
} else {
harsovet = 0;
overkropp.gotoAndStop(typen);
}
killteller = 0;
xfart = 0;
yfart = 0;
fotpunkt = 25;
maxfart = 4;
accel = 0.5;
friction = 10;
hoppfart = 7;
hopper = 0;
rekkevidde = 130 + (Math.random() * 20);
unmaneuvre = 0;
mani = 0;
maniteller = 0;
dukker = 0;
dukkerand = 0;
dukkerteller = 0;
skyte = 0;
skyte2 = 0;
dead = 0;
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
blirskadet = 0;
health = 10;
klartilogdo = 0;
taskade = function (skade) {
if (sleep == 1) {
sleep = 0;
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
blirskadet = 1;
health = health - skade;
overkropp.gotoAndStop(Math.round(Math.random() * 4) + 4);
oppdater();
overkropp.man.gotoAndPlay(1);
fotpunkt = 25;
if (health <= 0) {
_y = (_y - 3);
klartilogdo = 1;
gotoAndStop (2);
}
};
oppdater = function () {
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
overkropp.man.weapon.gotoAndStop(typen);
};
oppdater2 = function () {
overkropp.gotoAndStop(typen);
overkropp.man.hode.gotoAndStop(typen);
overkropp.man.skulder.gotoAndStop(typen);
};
onEnterFrame = function () {
if (dead == 0) {
if (harsovet == 1) {
if (sleep == 0) {
oppdater2();
harsovet = 0;
}
}
if (sleep == 1) {
if ((_root.verden.man.realx < (realx + (rekkevidde / 2))) && (_root.verden.man.realx > (realx - (rekkevidde / 2)))) {
sleep = 0;
oppdater2();
if (squad != 0) {
i = 0;
while (i < (_root.maxfiender + 1)) {
if (_root.verden.fiender["fienden" + i].squad == squad) {
_root.verden.fiender["fienden" + i].sleep = 0;
}
i++;
}
}
}
} else {
if (retning == 1) {
ben._xscale = 100;
} else {
ben._xscale = -100;
}
if (blirskadet == 0) {
if (_root.verden.man.realx > realx) {
avstandtilmann = _root.verden.man.realx - realx;
} else {
avstandtilmann = realx - _root.verden.man.realx;
}
if (avstandtilmann < 200) {
if (typen == 4) {
skyte = Math.round(Math.random() * 20);
} else {
skyte = Math.round(Math.random() * 40);
}
}
if (skyte == 1) {
overkropp.man.play();
}
if (dukker == 1) {
if (typen == 4) {
skyte = Math.round(Math.random() * 2);
} else {
skyte = Math.round(Math.random() * 5);
}
if (skyte == 1) {
overkropp.man.play();
}
fotpunkt = 15;
} else {
if ((_root.verden.man.realx < (realx + rekkevidde)) && (_root.verden.man.realx > (realx - rekkevidde))) {
if (mani == 0) {
dukkerand = Math.round(Math.random() * 30);
if (dukkerand == 1) {
dukkerand = 3;
dukker = 1;
dukkerteller = 0;
}
}
if (typen == 4) {
skyte = Math.round(Math.random() * 5);
} else {
skyte = Math.round(Math.random() * 10);
}
} else {
if (typen == 4) {
skyte = Math.round(Math.random() * 25);
} else {
skyte = Math.round(Math.random() * 50);
}
if (skyte == 1) {
overkropp.man.play();
}
}
fotpunkt = 25;
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
gaar = 0;
if (dukker == 0) {
if (mani == 0) {
if (_root.verden.man.realx > (realx + rekkevidde)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
}
if (_root.verden.man.realx < (realx - rekkevidde)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else if (maniteller < 80) {
maniteller = maniteller + 1;
if (maniteller < 20) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 20) && (maniteller < 40)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
} else if ((maniteller >= 40) && (maniteller < 60)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
} else if ((maniteller >= 60) && (maniteller < 80)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
} else {
maniteller = 0;
mani = 0;
unmaneuvre = 3;
}
} else if (dukkerteller < 40) {
dukkerteller = dukkerteller + 1;
} else {
dukkerteller = 0;
dukker = 0;
}
if (dukker == 0) {
if (hopper == 0) {
if (gaar == 1) {
if (retning == 1) {
ben.gotoAndStop(1);
} else {
ben.gotoAndStop(3);
}
} else if (gaar == 2) {
if (retning == 1) {
ben.gotoAndStop(3);
} else {
ben.gotoAndStop(1);
}
} else {
ben.gotoAndStop(2);
}
} else {
ben.gotoAndStop(4);
}
} else {
ben.gotoAndStop(5);
}
}
}
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, realy + fotpunkt, true)) {
killteller = 0;
if (klartilogdo == 1) {
klartilogdo = 2;
man.man.play();
}
if (klartilogdo > 0) {
xfart = xfart - (xfart / (friction / 2));
} else {
xfart = xfart - (xfart / friction);
}
if (blirskadet == 1) {
ben.gotoAndStop(6);
}
hopper = 0;
if (yfart > 0) {
yfart = 0;
}
i = 0;
while (i < 5) {
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.bakke.hitTest(realx, (realy + fotpunkt) - 1, true)) {
_y = (_y - 1);
}
i++;
}
if (blirskadet == 0) {
if (sleep == 1) {
} else if (dukker == 0) {
if (avstandtilmann < 200) {
binladen = Math.round(Math.random() * 30);
if (binladen == 1) {
ben.gotoAndStop(4);
ben.ben.gotoAndPlay(1);
hopper = 1;
yfart = -hoppfart;
}
if (mani == 0) {
unmaneuvre = Math.round(Math.random() * 50);
}
if (unmaneuvre == 1) {
unmaneuvre = 3;
mani = 1;
maniteller = 0;
}
}
}
}
} else {
killteller = killteller + 1;
if (killteller > 90) {
this.removeMovieClip();
}
yfart = yfart + 0.5;
if (blirskadet == 1) {
ben.gotoAndStop(7);
}
}
_y = (_y + yfart);
_x = (_x + xfart);
}
};
Instance of Symbol 244 MovieClip "overkropp" in Symbol 245 MovieClip [spdeffiende1] Frame 1
onClipEvent (enterFrame) {
realx = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
realy = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
Xd = _root.verden.man.realx - realx;
Yd = _root.verden.man.realy - realy;
radAngle = Math.atan2(Yd, Xd);
if (_root.verden.man.realx > realx) {
if (_parent.sleep == 1) {
if (_parent.retning == 1) {
_xscale = -100;
} else {
_xscale = 100;
}
} else {
_xscale = 100;
_parent.retning = 1;
_rotation = int((radAngle * 360) / (Math.PI*2));
}
} else if (_parent.sleep == 1) {
if (_parent.retning == 1) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
_xscale = -100;
_parent.retning = 0;
_rotation = (int((radAngle * 360) / (Math.PI*2)) - 180);
}
}
Symbol 245 MovieClip [spdeffiende1] Frame 2
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
if (_root.verden.man.realx > realx) {
_xscale = 100;
} else {
_xscale = -100;
}
Symbol 249 MovieClip Frame 2
stop();
onEnterFrame = function () {
realx = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
realy = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
if ((((realx < (_root.verden.man.realx + _root.sight)) && (realx > (_root.verden.man.realx - _root.sight))) && (realy < (_root.verden.man.realy + _root.sight))) && (realy > (_root.verden.man.realy - _root.sight))) {
_root.createEnemy(_x, _y, 1, 1, modus, squad, retning);
swapDepths(1337);
this.removeMovieClip();
}
};
Symbol 251 MovieClip Frame 2
stop();
onEnterFrame = function () {
realx = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
realy = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
if ((((realx < (_root.verden.man.realx + _root.sight)) && (realx > (_root.verden.man.realx - _root.sight))) && (realy < (_root.verden.man.realy + _root.sight))) && (realy > (_root.verden.man.realy - _root.sight))) {
_root.createEnemy(_x, _y, 1, 2, modus, squad, retning);
swapDepths(1337);
this.removeMovieClip();
}
};
Symbol 253 MovieClip Frame 1
_root.createEnemy(_x, _y, 1, 3);
swapDepths(1337);
this.removeMovieClip();
Symbol 255 MovieClip Frame 1
_root.createEnemy(_x, _y, 1, 4);
swapDepths(1337);
this.removeMovieClip();
Symbol 257 MovieClip Frame 2
stop();
onEnterFrame = function () {
realx = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
realy = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
if ((((realx < (_root.verden.man.realx + _root.sight)) && (realx > (_root.verden.man.realx - _root.sight))) && (realy < (_root.verden.man.realy + _root.sight))) && (realy > (_root.verden.man.realy - _root.sight))) {
_root.createEnemy(_x, _y, 2, 1, modus, squad, retning);
swapDepths(1337);
this.removeMovieClip();
}
};
Instance of Symbol 245 MovieClip [spdeffiende1] in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 195 MovieClip [spdeffiende3] in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 159 MovieClip [spdeffiende2] in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 249 MovieClip in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 251 MovieClip in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 253 MovieClip in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 255 MovieClip in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip [fiender] Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Symbol 266 MovieClip Frame 1
play();
Symbol 266 MovieClip Frame 6
stop();
Instance of Symbol 266 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 275 MovieClip [poweruppen] Frame 1
xfart = -2;
stop();
onEnterFrame = function () {
_x = (_x + xfart);
if (hitTest(_root.verden.mann)) {
_root.power(typen);
gotoAndStop (2);
this.removeMovieClip();
}
if (_x < -50) {
this.removeMovieClip();
}
};
Instance of Symbol 300 MovieClip in Symbol 306 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.price = _parent.pris + "$";
}
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 7) + 1);
lol = Math.random() * 1;
if (lol == 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_xscale = (_xscale + (10 - (Math.random() * 20)));
_yscale = (_yscale + (10 - (Math.random() * 20)));
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
_root.spawnShell(1);
_root.shoot(1, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 25, _root.verden.mann._rotation + 90, 5);
Symbol 324 MovieClip Frame 3
if (_root.ekstrabullets == 1) {
_root.shoot(1, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 20, _root.verden.mann._rotation + 90, 5);
}
Symbol 324 MovieClip Frame 4
if (_root.ekstrabullets == 1) {
_root.shoot(1, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 30, _root.verden.mann._rotation + 90, 5);
}
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 2
_root.spawnShell(1);
_root.shoot(2, 3, 1, _root.verden.mann._x, _root.verden.mann._y + 25, _root.verden.mann._rotation + 90, 5);
Symbol 327 MovieClip Frame 3
if (_root.ekstrabullets == 1) {
_root.shoot(2, 3, 1, _root.verden.mann._x, _root.verden.mann._y + 20, _root.verden.mann._rotation + 90, 5);
}
Symbol 327 MovieClip Frame 4
if (_root.ekstrabullets == 1) {
_root.shoot(2, 3, 1, _root.verden.mann._x, _root.verden.mann._y + 30, _root.verden.mann._rotation + 90, 5);
}
Instance of Symbol 338 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 7) + 1);
lol = Math.random() * 1;
if (lol == 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_xscale = (_xscale + (10 - (Math.random() * 20)));
_yscale = (_yscale + (10 - (Math.random() * 20)));
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
_root.shoot(3, 9, 1, _root.verden.mann._x, _root.verden.mann._y + 25, _root.verden.mann._rotation + 90, 5);
Symbol 343 MovieClip Frame 3
if (_root.ekstrabullets == 1) {
_root.shoot(3, 9, 1, _root.verden.mann._x, _root.verden.mann._y + 20, _root.verden.mann._rotation + 90, 5);
}
Symbol 343 MovieClip Frame 4
if (_root.ekstrabullets == 1) {
_root.shoot(3, 9, 1, _root.verden.mann._x, _root.verden.mann._y + 30, _root.verden.mann._rotation + 90, 5);
}
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
_root.shoot2();
if (_root.ekstrabullets == 1) {
gotoAndStop (1);
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
_root.spawnShell(2);
_root.shoot(4, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 25, _root.verden.mann._rotation + 90, 5);
Symbol 362 MovieClip Frame 3
if (_root.ekstrabullets == 1) {
_root.shoot(4, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 20, _root.verden.mann._rotation + 90, 5);
}
Symbol 362 MovieClip Frame 4
if (_root.ekstrabullets == 1) {
_root.shoot(4, 4, 1, _root.verden.mann._x, _root.verden.mann._y + 30, _root.verden.mann._rotation + 90, 5);
}
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
_root.shoot2();
Symbol 365 MovieClip Frame 5
if (_root.ekstrabullets == 1) {
gotoAndStop (1);
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
_root.spawnShell(3);
_root.shoot2();
if (_root.ekstrabullets == 1) {
_root.shoot2();
}
Symbol 369 MovieClip Frame 3
if (_root.ekstrabullets == 1) {
_root.shoot2();
_root.shoot2();
gotoAndStop (1);
}
Symbol 369 MovieClip Frame 4
_root.shoot2();
_root.spawnShell(3);
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
_root.spawnShell();
_root.shoot2();
Symbol 375 MovieClip Frame 8
stop();
Symbol 402 MovieClip Frame 5
stop();
Instance of Symbol 300 MovieClip in Symbol 410 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.price = _parent.pris + "$";
}
Symbol 442 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 1
stop();
Instance of Symbol 300 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.price = _parent.pris + "$";
}
Symbol 471 MovieClip Frame 1
stop();
Instance of Symbol 286 MovieClip in Symbol 471 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(1);
}
Instance of Symbol 288 MovieClip in Symbol 471 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Instance of Symbol 290 MovieClip in Symbol 471 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(3);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon7bought == 1) {
if (_root.weapon7 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon7bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon7 = 1;
}
}
Instance of Symbol 306 MovieClip "buy7" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 3999;
if (_root.weapon7bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon7bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon7bought = 1;
_root.weapon7 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon1bought == 1) {
if (_root.weapon1 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon1bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon1 = 1;
}
}
Instance of Symbol 306 MovieClip "buy1" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 0;
if (_root.weapon1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon1bought = 1;
_root.weapon1 = 1;
_root.money = _root.money - pris;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon2bought == 1) {
if (_root.weapon2 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon2bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon2 = 1;
}
}
Instance of Symbol 306 MovieClip "buy2" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 299;
if (_root.weapon2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon2bought = 1;
_root.weapon2 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon3bought == 1) {
if (_root.weapon3 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon3bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon3 = 1;
}
}
Instance of Symbol 306 MovieClip "buy3" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 549;
if (_root.weapon3bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon3bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon3bought = 1;
_root.weapon3 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon4bought == 1) {
if (_root.weapon4 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon4bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon4 = 1;
}
}
Instance of Symbol 306 MovieClip "buy4" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 699;
if (_root.weapon4bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon4bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon4bought = 1;
_root.weapon4 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon5bought == 1) {
if (_root.weapon5 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon5bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon5 = 1;
}
}
Instance of Symbol 306 MovieClip "buy5" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 1375;
if (_root.weapon5bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon5bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon5bought = 1;
_root.weapon5 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.weapon6bought == 1) {
if (_root.weapon6 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.weapon6bought == 1) {
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon6 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
_root.weapon6 = 1;
}
}
Instance of Symbol 306 MovieClip "buy6" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
pris = 2200;
if (_root.weapon6bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon6bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.weapon6bought = 1;
_root.weapon6 = 1;
_root.money = _root.money - pris;
_root.weapon1 = 0;
_root.weapon2 = 0;
_root.weapon3 = 0;
_root.weapon4 = 0;
_root.weapon5 = 0;
_root.weapon7 = 0;
_root.weapon8 = 0;
}
}
Instance of Symbol 375 MovieClip "vaapen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 385 MovieClip in Symbol 471 MovieClip Frame 1
on (rollOver) {
_parent.helpscreen._alpha = 100;
}
on (rollOut) {
_parent.helpscreen._alpha = 0;
}
Instance of Symbol 395 MovieClip "helpscreen" in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 402 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 402 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 402 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 402 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 402 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.hull2bought == 1) {
if (_root.hull2 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.hull2bought == 1) {
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
_root.hull2 = 1;
}
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.hull3bought == 1) {
if (_root.hull3 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.hull3bought == 1) {
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
_root.hull3 = 1;
}
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.hull4bought == 1) {
if (_root.hull4 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.hull4bought == 1) {
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
_root.hull4 = 1;
}
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.hull5bought == 1) {
if (_root.hull5 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.hull5bought == 1) {
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
_root.hull5 = 1;
}
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.hull1bought == 1) {
if (_root.hull1 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.hull1bought == 1) {
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
_root.hull1 = 1;
}
}
Instance of Symbol 410 MovieClip "buy2" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
pris = 459;
if (_root.hull2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.hull2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.hull2bought = 1;
_root.hull2 = 1;
_root.money = _root.money - pris;
_root.hull1 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
}
}
Instance of Symbol 410 MovieClip "buy3" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
pris = 1666;
if (_root.hull3bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.hull3bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.hull3bought = 1;
_root.hull3 = 1;
_root.money = _root.money - pris;
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
}
}
Instance of Symbol 410 MovieClip "buy4" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
pris = 2999;
if (_root.hull4bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.hull4bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.hull4bought = 1;
_root.hull4 = 1;
_root.money = _root.money - pris;
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
}
}
Instance of Symbol 410 MovieClip "buy1" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
pris = 0;
if (_root.hull1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.hull1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.hull1bought = 1;
_root.hull1 = 1;
_root.money = _root.money - pris;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull5 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
}
}
Instance of Symbol 410 MovieClip "buy5" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
pris = 4000;
if (_root.hull5bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.hull5bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.money >= pris) {
_root.hull5bought = 1;
_root.hull5 = 1;
_root.money = _root.money - pris;
_root.hull1 = 0;
_root.hull2 = 0;
_root.hull3 = 0;
_root.hull4 = 0;
_root.hull6 = 0;
_root.hull7 = 0;
_root.hull8 = 0;
}
}
Instance of Symbol 413 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
lol = ((_root.hull1p + "/") + _root.hull1maxp) + "p";
if (_root.hull1p < _root.hull1maxp) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 413 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
lol = ((_root.hull2p + "/") + _root.hull2maxp) + "p";
if (_root.hull2p < _root.hull2maxp) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 413 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
lol = ((_root.hull3p + "/") + _root.hull3maxp) + "p";
if (_root.hull3p < _root.hull3maxp) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 413 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
lol = ((_root.hull4p + "/") + _root.hull4maxp) + "p";
if (_root.hull4p < _root.hull4maxp) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 413 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
lol = ((_root.hull5p + "/") + _root.hull5maxp) + "p";
if (_root.hull5p < _root.hull5maxp) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 424 MovieClip in Symbol 471 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hull1 == 1) {
if ((_root.money >= 50) && (_root.hull1p < _root.hull1maxp)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else if (_root.hull2 == 1) {
if ((_root.money >= 50) && (_root.hull2p < _root.hull2maxp)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
if (_root.hull3 == 1) {
if ((_root.money >= 50) && (_root.hull3p < _root.hull3maxp)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
if (_root.hull4 == 1) {
if ((_root.money >= 50) && (_root.hull4p < _root.hull4maxp)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
if (_root.hull5 == 1) {
if ((_root.money >= 50) && (_root.hull5p < _root.hull5maxp)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
if (_root.money < 50) {
gotoAndStop (3);
}
}
on (press) {
if (_root.money >= 50) {
if (_root.hull1 == 1) {
if (_root.hull1p < _root.hull1maxp) {
_root.money = _root.money - 50;
_root.hull1p = _root.hull1p + 25;
if (_root.hull1p > _root.hull1maxp) {
_root.hull1p = _root.hull1maxp;
}
}
} else if (_root.hull2 == 1) {
if (_root.hull2p < _root.hull2maxp) {
_root.money = _root.money - 50;
_root.hull2p = _root.hull2p + 25;
if (_root.hull2p > _root.hull2maxp) {
_root.hull2p = _root.hull2maxp;
}
}
} else if (_root.hull3 == 1) {
if (_root.hull3p < _root.hull3maxp) {
_root.money = _root.money - 50;
_root.hull3p = _root.hull3p + 25;
if (_root.hull3p > _root.hull3maxp) {
_root.hull3p = _root.hull3maxp;
}
}
} else if (_root.hull4 == 1) {
if (_root.hull4p < _root.hull4maxp) {
_root.money = _root.money - 50;
_root.hull4p = _root.hull4p + 25;
if (_root.hull4p > _root.hull4maxp) {
_root.hull4p = _root.hull4maxp;
}
}
} else if (_root.hull5 == 1) {
if (_root.hull5p < _root.hull5maxp) {
_root.money = _root.money - 50;
_root.hull5p = _root.hull5p + 25;
if (_root.hull5p > _root.hull5maxp) {
_root.hull5p = _root.hull5maxp;
}
}
}
}
}
Instance of Symbol 437 MovieClip "helpscreen" in Symbol 471 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.rocket2bought == 1) {
if (_root.rocket2 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.rocket2bought == 1) {
_root.rocket1 = 0;
_root.rocket2 = 0;
_root.rocket3 = 0;
_root.rocket4 = 0;
_root.rocket5 = 0;
_root.rocket6 = 0;
_root.rocket7 = 0;
_root.rocket8 = 0;
_root.rocket2 = 1;
}
}
Instance of Symbol 298 MovieClip in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.rocket1bought == 1) {
if (_root.rocket1 == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (3);
}
}
on (release) {
if (_root.rocket1bought == 1) {
_root.rocket1 = 0;
_root.rocket2 = 0;
_root.rocket3 = 0;
_root.rocket4 = 0;
_root.rocket5 = 0;
_root.rocket6 = 0;
_root.rocket7 = 0;
_root.rocket8 = 0;
_root.rocket1 = 1;
}
}
Instance of Symbol 449 MovieClip "buy2" in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
pris = 1000;
if (_root.rocket2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.rocket2bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.rocket2bought == 0) {
if (_root.money >= pris) {
_root.rocket2bought = 1;
_root.rocket2 = 1;
_root.money = _root.money - pris;
_root.rocket1 = 0;
_root.rocket3 = 0;
_root.rocket4 = 0;
_root.rocket5 = 0;
_root.rocket6 = 0;
_root.rocket7 = 0;
_root.rocket8 = 0;
}
}
}
Instance of Symbol 449 MovieClip "buy1" in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
pris = 500;
if (_root.rocket1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.rocket1bought == 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.rocket1bought == 0) {
if (_root.money >= pris) {
_root.rocket1bought = 1;
_root.rocket1 = 1;
_root.money = _root.money - pris;
_root.rocket2 = 0;
_root.rocket3 = 0;
_root.rocket4 = 0;
_root.rocket5 = 0;
_root.rocket6 = 0;
_root.rocket7 = 0;
_root.rocket8 = 0;
}
}
}
Instance of Symbol 457 MovieClip "buy2" in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
pris = _root.rocket2upris;
if (_root.rocket2bought == 1) {
if (_root.rocket2reload <= 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
pris = _root.rocket2upris;
prisen = pris + "$";
if (_root.rocket2bought == 1) {
if (_root.rocket2reload <= 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.rocket2bought == 1) {
if (_root.rocket2reload > 1) {
if (_root.money >= pris) {
_root.rocket2reload = _root.rocket2reload - 1;
_root.money = _root.money - pris;
pris = pris + 1000;
_root.rocket2upris = _root.rocket2upris + 1000;
}
}
}
}
Instance of Symbol 457 MovieClip "buy1" in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
pris = _root.rocket1upris;
if (_root.rocket1bought == 1) {
if (_root.rocket1reload <= 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
pris = _root.rocket1upris;
prisen = pris + "$";
if (_root.rocket1bought == 1) {
if (_root.rocket1reload <= 1) {
gotoAndStop (3);
} else if (_root.money >= pris) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (2);
}
}
on (release) {
if (_root.rocket1bought == 1) {
if (_root.rocket1reload > 1) {
if (_root.money >= pris) {
_root.rocket1reload = _root.rocket1reload - 1;
_root.money = _root.money - pris;
pris = pris + 500;
_root.rocket1upris = _root.rocket1upris + 500;
}
}
}
}
Instance of Symbol 470 MovieClip "helpscreen" in Symbol 471 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
Symbol 472 MovieClip [brief] Frame 1
currentframe = 2;
i = 0;
while (i < (_root.maksfiender + 1)) {
_root.verden.fiender["fienden" + i].removeMovieClip();
i++;
}
_root.antallfiender = 0;
_root.ispaused = 1;
_root.mellomlevler = 1;
stop();
Instance of Symbol 281 MovieClip in Symbol 472 MovieClip [brief] Frame 1
onClipEvent (load) {
nede = 0;
teksten = "Start";
dostuff = function () {
if (_root.ispaused == 1) {
if (_root.mellomlevler == 1) {
if (_parent.currentframe == 1) {
_parent.tekst.swapDepths(1337);
_parent.tekst.removeMovieClip();
_parent.gotoAndStop(2);
} else if (_parent.currentframe == 2) {
_root.mongoteller = 0;
_parent.gotoAndStop(1);
_root.timer = 0;
_root.ispaused = 0;
_root.levelkuk = _root.levelkuk + 1;
if (_root.levelkuk == 6) {
_root.roundtimen = 999;
}
_root.roundtime = _root.roundtimen;
_root.mellomlevler = 0;
_parent.removeMovieClip();
} else if (_parent.currentframe == 3) {
}
}
}
};
}
onClipEvent (enterFrame) {
if (_parent.currentframe == 1) {
teksten = "Start";
} else if (_parent.currentframe == 2) {
teksten = "Start";
} else if (_parent.currentframe == 3) {
teksten = "Start";
}
if (_root.levelkuk == 0) {
_root.nextlevelkuk = "Next Level: Stage 1, planet Netpulon";
_parent.enemies.gotoAndStop(1);
} else if (_root.levelkuk == 1) {
_root.nextlevelkuk = "Next Level: Stage 2, planet Netpulon";
_parent.enemies.gotoAndStop(2);
} else if (_root.levelkuk == 2) {
_root.nextlevelkuk = "Next Level: Stage 3, planet Netpulon";
_parent.enemies.gotoAndStop(3);
} else if (_root.levelkuk == 3) {
_root.nextlevelkuk = "Next Level: Stage 4, planet Netpulon";
_parent.enemies.gotoAndStop(4);
} else if (_root.levelkuk == 4) {
_root.nextlevelkuk = "Next Level: Stage 5, planet Netpulon";
_parent.enemies.gotoAndStop(5);
} else if (_root.levelkuk == 5) {
_root.nextlevelkuk = "Next Level: Stage 6, planet Netpulon";
_parent.enemies.gotoAndStop(6);
} else if (_root.levelkuk == 6) {
_root.nextlevelkuk = "Next Level: Stage 1, planet Hibon";
}
if (nede == 0) {
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
dostuff();
}
Symbol 473 MovieClip [laser1] Frame 1
_x = _root.verden.fiender["fienden" + nummer]._x;
_y = _root.verden.fiender["fienden" + nummer]._y;
if (hitTest(_root.verden.mann.hitbox)) {
_xscale = (((_x - _root.verden.mann._x) / 5) - 8);
_root.taSkade(2);
}
onEnterFrame = function () {
_x = _root.verden.fiender["fienden" + nummer]._x;
_y = _root.verden.fiender["fienden" + nummer]._y;
if (hitTest(_root.verden.mann.hitbox)) {
_xscale = (((_x - _root.verden.mann._x) / 5) - 8);
_root.taSkade(2);
_root.makexplosjon(_root.verden.mann._x + 40, _y);
} else {
_xscale = 100;
}
};
Symbol 473 MovieClip [laser1] Frame 9
this.removeMovieClip();
Symbol 476 MovieClip [damagetekst] Frame 30
this.removeMovieClip();
Symbol 570 MovieClip Frame 110
_parent.gotoAndStop(2);
Symbol 573 MovieClip Frame 1
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 5, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 20, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 6, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 21, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
Symbol 573 MovieClip Frame 8
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 5, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 20, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 6, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 21, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
Symbol 573 MovieClip Frame 15
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 5, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 20, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) - 6, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
_root.fshoot(((_parent._parent._x + _parent._x) + _x) - 30, ((_parent._parent._y + _parent._y) + _y) + 21, (_parent._parent._rotation + 110) - (Math.random() * 40), 8, 1, 10);
Symbol 574 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 14
stop();
Symbol 601 MovieClip Frame 12
stop();
Symbol 612 MovieClip Frame 11
stop();
Symbol 623 MovieClip Frame 11
stop();
Symbol 639 MovieClip Frame 16
stop();
Symbol 651 MovieClip Frame 11
stop();
Symbol 652 MovieClip Frame 1
smokerand = Math.round(Math.random() * 3) + 1;
if (smokerand == 1) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 2) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 3) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 4) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
}
if (_parent._parent.pangtype == 3) {
gotoAndStop (3);
} else {
gotoAndStop(Math.round(Math.random() * 1) + 1);
}
pang._rotation = Math.random() * 360;
pang._xscale = (pang._yscale = 100 + (Math.random() * 20));
pang._xscale = (pang._yscale = 90 + (Math.random() * 10));
havesmoke = Math.round(Math.random() * 1) + 1;
if (havesmoke == 1) {
royk._alpha = 70 + (Math.random() * 30);
royk._rotation = Math.random() * 360;
royk._xscale = (royk._yscale = 90 + (Math.random() * 20));
} else {
royk._alpha = 0;
}
havedeler1 = Math.round(Math.random() * 1) + 1;
if (havedeler1 == 1) {
deler1._alpha = 100;
deler1._xscale = (deler1._yscale = 90 + (Math.random() * 20));
} else {
deler1._alpha = 0;
}
havegnist = Math.round(Math.random() * 2) + 1;
if (havegnist == 1) {
gnist._alpha = 0;
gnist2._alpha = 0;
} else if (havegnist == 2) {
gnist._rotation = Math.random() * 360;
gnist._alpha = 90 + (Math.random() * 10);
gnist2._alpha = 0;
} else if (havegnist == 3) {
gnist._rotation = Math.random() * 360;
gnist._alpha = 90 + (Math.random() * 10);
gnist2._rotation = Math.random() * 360;
gnist2._alpha = 90 + (Math.random() * 10);
}
Symbol 665 MovieClip Frame 25
stop();
Instance of Symbol 665 MovieClip in Symbol 666 MovieClip Frame 5
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Instance of Symbol 665 MovieClip in Symbol 666 MovieClip Frame 20
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Symbol 666 MovieClip Frame 62
_parent.removeMovieClip();
Symbol 667 MovieClip [fiende21] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = 500;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
hussein = 0;
dodqual = Math.round(Math.random() * 4);
dodtype = Math.round(Math.random() * 3);
dodtimer = 20 + (Math.random() * 30);
calculateAngle = function () {
if (health > 0) {
if (_root.verden.mann._x < (_x - 50)) {
realx2 = ((_x + _parent._x) + fiende._x) + fiende.fiende2._x;
realy2 = ((_y + _parent._y) + fiende._y) + fiende.fiende2._y;
Xd = _root.verden.mann._x - realx2;
Yd = _root.verden.mann._y - realy2;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende2._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende2._rotation = fiende.fiende2._rotation + 90;
fiende.fiende2._rotation = fiende.fiende2._rotation - _rotation;
} else {
fiende.fiende2._rotation = 0;
}
}
};
calculateAngle();
roteller = 0;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (health > 0) {
_rotation = (-(yfart * 4));
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
_x = (550 - stoplimit);
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 250) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
if (dodtype == 2) {
fiende.gotoAndStop(2);
dodtimer = dodtimer - 1;
roteller = roteller + 1;
_rotation = (_rotation + roteller);
if (dodtimer <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (dodqual > 0) {
_root.makefiende14props(_x, _y, 1);
if (dodqual > 1) {
_root.makefiende14props(_x, _y, 2);
_root.makefiende14props(_x, _y, 3);
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
} else {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (dodqual > 0) {
_root.makefiende14props(_x, _y, 1);
if (dodqual > 1) {
_root.makefiende14props(_x, _y, 2);
_root.makefiende14props(_x, _y, 3);
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
}
}
calculateAngle();
}
};
Symbol 674 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 3
_root.spawnfiende(15, 1, _parent._parent._x - 5, _parent._parent._y - 5);
Symbol 700 MovieClip Frame 9
_root.spawnfiende(15, 1, _parent._parent._x + 5, _parent._parent._y + 5);
Symbol 704 MovieClip Frame 1
stop();
Instance of Symbol 703 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 707 MovieClip Frame 25
_parent._parent.removeMovieClip();
Instance of Symbol 707 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Instance of Symbol 707 MovieClip in Symbol 708 MovieClip Frame 10
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Instance of Symbol 707 MovieClip in Symbol 708 MovieClip Frame 20
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Instance of Symbol 707 MovieClip in Symbol 708 MovieClip Frame 30
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Symbol 709 MovieClip [fiende20] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = 90;
_xscale = 90;
health = 800;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 1;
harmistetsjold = 0;
harmistetsjold2 = 0;
harmistetsjold3 = 0;
harmistetsekk2 = 0;
harmistettorso = 0;
harmistetsekk = 0;
_root.musikk.gotoAndStop(5);
_root.bossbaren.loaden.gotoAndPlay(1);
_root.bossbaren.gotoAndStop(4);
ydiffer = -50 + (Math.random() * 100);
differteller = 0;
taSkade = function (skade) {
health = health - skade;
if (health < 175) {
if (harmistetsjold == 0) {
harmistetsjold = 1;
_root.makefiende4props(_x + fiende.fiende.sjold._x, _y + fiende.fiende.sjold._y, 1);
}
if (health < 150) {
if (harmistetsjold2 == 0) {
harmistetsjold2 = 1;
_root.makefiende4props(_x + fiende.fiende.sjold2._x, _y + fiende.fiende.sjold2._y, 1);
}
if (health < 125) {
if (harmistetsjold3 == 0) {
harmistetsjold3 = 1;
_root.makefiende4props(_x + fiende.fiende.sjold3._x, _y + fiende.fiende.sjold3._y, 2);
}
if (health < 100) {
if (harmistetsekk2 == 0) {
harmistetsekk2 = 1;
_root.makefiende4props(_x + fiende.fiende.sekk2._x, _y + fiende.fiende.sekk2._y, 3);
}
if (health < 75) {
if (harmistettorso == 0) {
harmistettorso = 1;
_root.makefiende4props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 4);
}
if (health < 50) {
if (harmistetsekk == 0) {
harmistetsekk = 1;
_root.makefiende4props(_x + fiende.fiende.sekk._x, _y + fiende.fiende.sekk._y, 5);
}
}
}
}
}
}
}
};
stoplimit = 100;
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 5);
removeLostItems = function () {
if (health < 175) {
fiende.fiende.sjold.gotoAndStop(2);
if (health < 150) {
fiende.fiende.sjold2.gotoAndStop(2);
if (health < 125) {
fiende.fiende.sjold3.gotoAndStop(2);
if (health < 100) {
fiende.fiende.sekk2.gotoAndStop(2);
if (health < 75) {
fiende.fiende.torso.gotoAndStop(2);
if (health < 50) {
fiende.fiende.sekk.gotoAndStop(2);
}
}
}
}
}
}
};
fodeteller = 0;
fodemaks = 30 + Math.round(Math.random() * 15);
_root.bossbaren._alpha = 100;
onEnterFrame = function () {
differteller = differteller + 1;
if (differteller >= 20) {
differteller = 0;
ydiffer = -200 + (Math.random() * 400);
}
_rotation = (-yfart);
_root.bosshealthbalance = 0.125 * health;
_root.bosshealthviser = (health + "/") + 800;
if (_root.ispaused == 0) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 2 + Math.round(Math.random() * 2);
fiende.gotoAndStop(2);
} else {
fodeteller = fodeteller + 1;
if (fodeteller >= fodemaks) {
fodemaks = 30 + Math.round(Math.random() * 15);
fodeteller = 0;
skyter = 0;
fiende.gotoAndStop(3);
}
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -500) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 900) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (begynnteller == 0) {
if (_x <= (550 - stoplimit)) {
if (xfart > 1) {
xfart = xfart - 1;
} else if ((xfart > 0) && (xfart < 1)) {
xfart = 0;
begynnteller = 1;
skyter = 1;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 9999) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > ((_root.verden.mann._y + 20) + ydiffer)) {
yfart = yfart - 1.5;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < ((_root.verden.mann._y - 20) + ydiffer)) {
yfart = yfart + 1.5;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
_root.healthbaren.kalkun.kalkun.gotoAndStop(1);
_root.musikk.gotoAndStop(9);
_root.gotoAndStop(7);
_root.antallfiender = _root.antallfiender - 1;
savefile.data.survival = 1;
savefile.flush();
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+1000$");
_root.money = _root.money + 1000;
_root.boss1 = 0;
_root.bossbaren._alpha = 0;
_root.ispaused = 1;
_root.mellomlevler = 1;
_root.flyplanet = 1;
_root.alldie(nummer);
}
}
}
removeLostItems();
};
Symbol 709 MovieClip [fiende20] Frame 2
o = 0;
while (o < (_root.maksfiender + 1)) {
_root.verden.fiender["fienden" + o].removeMovieClip();
o++;
}
_root.antallfiender = 0;
_root.gotoAndStop(7);
this.removeMovieClip();
Symbol 714 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 1
_parent._parent.utforangrep = 1;
_parent._parent.cleararmor();
Symbol 752 MovieClip Frame 2
_parent._parent.utforangrep = 0;
Symbol 752 MovieClip Frame 30
_parent._parent.utforangrep = 1;
Symbol 773 MovieClip Frame 1
_parent._parent.klartilangrep = 0;
Symbol 773 MovieClip Frame 6
_root.bakgrunn.back.play();
Symbol 773 MovieClip Frame 24
_root.bakgrunn.back.play();
Symbol 773 MovieClip Frame 30
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_root.spawnfiende(15);
_parent._parent.klartilangrep = 1;
_parent.gotoAndStop(1);
Symbol 809 MovieClip Frame 1
_parent._parent.klartilangrep = 0;
Symbol 809 MovieClip Frame 6
_root.bakgrunn.back.play();
Symbol 809 MovieClip Frame 24
_root.bakgrunn.back.play();
Symbol 809 MovieClip Frame 30
_root.spawnfiende(Math.round(Math.random() * 2) + 13);
_root.spawnfiende(Math.round(Math.random() * 2) + 13);
_parent._parent.klartilangrep = 1;
_parent.gotoAndStop(1);
Symbol 842 MovieClip Frame 1
_root.musikk.gotoAndStop(1);
_root.alldie(_parent._parent.nummer);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 5
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 10
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 15
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 20
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 25
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 30
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 352), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
_root.smoke2((_parent._parent._x - 75) + (Math.random() * 150), _parent._parent._y - (Math.random() * 3520), 3);
Symbol 842 MovieClip Frame 90
_parent._parent.removeMovieClip();
stop();
Symbol 843 MovieClip Frame 1
stop();
Instance of Symbol 707 MovieClip in Symbol 844 MovieClip Frame 1
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Instance of Symbol 707 MovieClip in Symbol 844 MovieClip Frame 10
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Symbol 845 MovieClip [fiende19] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = 80;
_xscale = 80;
health = 2500;
health = health * ekstrahealth;
xfart = _root.rodfjellfart / 2;
maksfart = xfart;
blodtype = 1;
overarmorhealth = 1000;
underarmorhealth = 1000;
taSkade = function (skade, hvilken) {
if (hvilken == 1) {
if (_root.overarmorgone == 0) {
overarmorhealth = overarmorhealth - skade;
if (overarmorhealth <= 0) {
_root.overarmorgone = 1;
cleararmor();
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 275, 1);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 260, 2);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 230, 3);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 200, 4);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 160, 7);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 130, 8);
if (_root.underarmorgone == 1) {
fiende.fiende.hode.gotoAndStop(1);
fiende.fiende.torso.gotoAndStop(1);
fiende.fiende.arm1del1.gotoAndStop(1);
fiende.fiende.arm1del2.gotoAndStop(1);
fiende.fiende.arm2del1.gotoAndStop(1);
fiende.fiende.arm2del2.gotoAndStop(1);
fiende.fiende.fot1del1.gotoAndStop(1);
fiende.fiende.fot1del2.gotoAndStop(1);
fiende.fiende.fot2del1.gotoAndStop(1);
fiende.fiende.fot2del2.gotoAndStop(1);
}
}
} else {
health = health - skade;
}
} else if (hvilken == 2) {
if (_root.underarmorgone == 0) {
underarmorhealth = underarmorhealth - skade;
if (underarmorhealth <= 0) {
_root.underarmorgone = 1;
cleararmor();
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 50, 5);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 120, 6);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 50, 9);
_root.makefiende19props2(_x + fiende._x, (_y + fiende._y) - 120, 10);
if (_root.overarmorgone == 1) {
fiende.fiende.hode.gotoAndStop(1);
fiende.fiende.torso.gotoAndStop(1);
fiende.fiende.arm1del1.gotoAndStop(1);
fiende.fiende.arm1del2.gotoAndStop(1);
fiende.fiende.arm2del1.gotoAndStop(1);
fiende.fiende.arm2del2.gotoAndStop(1);
fiende.fiende.fot1del1.gotoAndStop(1);
fiende.fiende.fot1del2.gotoAndStop(1);
fiende.fiende.fot2del1.gotoAndStop(1);
fiende.fiende.fot2del2.gotoAndStop(1);
}
}
} else {
health = health - skade;
}
}
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 1;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
daaqual = Math.round(Math.random() * 6) + 1;
active = 0;
xfart2 = 0;
preposition = 410;
_root.musikk.gotoAndStop(5);
_root.bossbaren.loaden.gotoAndPlay(1);
_root.bossbaren.gotoAndStop(3);
_root.bossbaren._alpha = 100;
_root.flyoppteller = 0;
boss = 666;
klartilangrep = 1;
haveplayed = 0;
calculateAngle = function () {
if (active == 1) {
realx = _x + _parent._x;
realy = _y + _parent._y;
Xd = _root.verden.mann._x - realx;
Yd = _root.verden.mann._y - realy;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende._rotation = fiende.fiende._rotation + 90;
} else {
fiende.fiende._rotation = 0;
}
};
physteller = 30;
angrepsteller = 0;
maksangrep = 200;
_root.bakgrunn.back.play();
cleararmor = function () {
if (_root.overarmorgone == 1) {
if (_root.underarmorgone == 0) {
fiende.fiende.hode.gotoAndStop(2);
fiende.fiende.torso.gotoAndStop(2);
fiende.fiende.arm1del1.gotoAndStop(2);
fiende.fiende.arm1del2.gotoAndStop(2);
fiende.fiende.arm2del1.gotoAndStop(2);
fiende.fiende.arm2del2.gotoAndStop(2);
}
fiende.fiende.armbesk1._alpha = 0;
fiende.fiende.armbesk2._alpha = 0;
fiende.fiende.torsoarmor._alpha = 0;
fiende.fiende.underarmarmor1._alpha = 0;
fiende.fiende.underarmarmor2._alpha = 0;
fiende.fiende.shoulder._alpha = 0;
}
if (_root.underarmorgone == 1) {
if (_root.overarmorgone == 0) {
fiende.fiende.fot1del1.gotoAndStop(2);
fiende.fiende.fot1del2.gotoAndStop(2);
fiende.fiende.fot2del1.gotoAndStop(2);
fiende.fiende.fot2del2.gotoAndStop(2);
}
fiende.fiende.larpro1._alpha = 0;
fiende.fiende.larpro2._alpha = 0;
fiende.fiende.legge._alpha = 0;
fiende.fiende.legge2._alpha = 0;
}
};
cleararmor();
onEnterFrame = function () {
_root.bosshealthbalance = (100 / (2500 * ekstrahealth)) * health;
_root.bosshealthviser = (health + "/") + (2500 * ekstrahealth);
if (_root.ispaused == 0) {
klartilangrep = 0;
angrepsteller = angrepsteller + 1;
if (health > 0) {
if (angrepsteller > maksangrep) {
if (utforangrep == 1) {
maksangrep = 50 + Math.round(Math.random() * 50);
angrepsteller = 0;
fiende.gotoAndStop(Math.round(Math.random() * 1) + 2);
cleararmor();
}
}
}
if (_root.rodfjellfart < 10) {
_root.rodfjellfart = _root.rodfjellfart + 0.05;
_root.flammediff = _root.flammediff + 1;
}
if (_root.rodfjellfart2 < 5) {
_root.rodfjellfart2 = _root.rodfjellfart2 + 0.05;
}
physteller = physteller - 1;
if (physteller <= 0) {
phystart = 1;
}
if (_x < -150) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (_x == preposition) {
if (haveplayed == 0) {
haveplayed = 1;
_root.bakgrunn.back.play();
active = 1;
}
}
if (active == 0) {
_x = (_x - xfart);
}
if (health <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
fiende.gotoAndStop(4);
cleararmor();
dead = 1;
_root.damagetekst(_x, _y, "+5000$");
_root.money = _root.money + 5000;
_root.boss2 = 0;
_root.bossbaren._alpha = 0;
}
}
}
};
Symbol 845 MovieClip [fiende19] Frame 2
Symbol 852 MovieClip Frame 1
stop();
Instance of Symbol 707 MovieClip in Symbol 853 MovieClip Frame 1
onClipEvent (load) {
_yscale = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 10));
_rotation = (Math.random() * 360);
}
Symbol 854 MovieClip [fiende18] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (80 + (Math.random() * 20));
_xscale = (80 + (Math.random() * 20));
health = _xscale / 6;
health = health * ekstrahealth;
xfart = _root.blaafjellfart;
maksfart = xfart;
blodtype = 1;
taSkade = function (skade) {
health = health - skade;
};
fiende.gotoAndStop(Math.round(Math.random() * 3) + 1);
daaqual = Math.random(Math.round() * 4) + 1;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
propsrand = Math.round(Math.random() * 9);
if (_root.gfx_gibs >= 1) {
if (propsrand > 1) {
_root.makefiende18props(_x, _y - 20, 4);
if (propsrand > 3) {
_root.makefiende18props(_x, _y - 30, 2);
if (propsrand > 6) {
if (_root.gfx_gibs >= 2) {
_root.makefiende18props(_x, _y - 40, 3);
if (propsrand > 8) {
_root.makefiende18props(_x, _y - 50, 1);
}
}
}
}
}
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 50) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+60$");
_root.money = _root.money + 60;
}
}
}
};
Symbol 854 MovieClip [fiende18] Frame 2
Symbol 863 MovieClip Frame 8
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 4, 5, 5);
Symbol 863 MovieClip Frame 16
_parent.gotoAndStop(1);
_parent._parent.calculateAngle();
Symbol 864 MovieClip Frame 1
stop();
Symbol 865 MovieClip [fiende17] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 20));
_xscale = (70 + (Math.random() * 20));
health = _xscale;
health = health * ekstrahealth;
xfart = _root.blaafjellfart;
maksfart = xfart;
blodtype = 1;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 1;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
daaqual = Math.round(Math.random() * 6) + 1;
active = 0;
xfart2 = 0;
preposition = (Math.random() * 50) + 450;
calculateAngle = function () {
if (active == 1) {
realx = _x + _parent._x;
realy = _y + _parent._y;
Xd = _root.verden.mann._x - realx;
Yd = _root.verden.mann._y - realy;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende._rotation = fiende.fiende._rotation + 90;
} else {
fiende.fiende._rotation = 0;
}
};
calculateAngle();
physteller = 30;
onEnterFrame = function () {
if (_root.ispaused == 0) {
physteller = physteller - 1;
if (physteller <= 0) {
phystart = 1;
}
calculateAngle();
if (active == 1) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 10 + Math.round(Math.random() * 10);
fiende.gotoAndStop(2);
calculateAngle();
}
}
}
if (_x < -150) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
if (_x < preposition) {
active = 1;
}
if (active == 0) {
_x = (_x - xfart);
} else {
if (_x < _root.verden.mann._x) {
xfart2 = xfart2 + 0.2;
} else {
xfart2 = xfart2 - 0.1;
}
if (xfart2 > 3) {
xfart2 = 3;
} else if (xfart < -1) {
xfart = -1;
}
fiende.taarn._rotation = fiende.taarn._rotation + (_root.blaafjellfart + xfart2);
_x = (_x + xfart2);
}
if (health <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 0) {
if (daaqual > 1) {
_root.makefiende17props(_x + fiende.fiende._x, _y + fiende.fiende._y, 1);
if (daaqual > 2) {
if (_root.gfx_gibs >= 2) {
_root.makefiende17props(_x + fiende.fiende._x, _y + fiende.fiende._y, 2);
if (daaqual > 3) {
_root.makefiende17props(_x + fiende.taarn._x, _y + fiende.taarn._y, 3);
if (daaqual > 4) {
_root.makefiende17props(_x + fiende.taarn._x, _y + fiende.taarn._y, 4);
if (daaqual > 5) {
_root.makefiende17props(_x + fiende.taarn._x, _y + fiende.taarn._y, 5);
if (daaqual > 6) {
if (_root.gfx_gibs == 3) {
_root.makefiende17props(_x + fiende.taarn._x, _y + fiende.taarn._y, 6);
}
}
}
}
}
}
}
}
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+60$");
_root.money = _root.money + 60;
}
}
}
};
Symbol 865 MovieClip [fiende17] Frame 2
Symbol 899 MovieClip Frame 1
plussen = 25;
vinkel = 90;
acc = 100;
skd = 5;
Symbol 899 MovieClip Frame 7
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 8
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 9
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 10
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 11
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 12
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 13
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 14
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 15
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 16
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 17
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 18
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 19
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 20
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 21
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 22
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 23
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 24
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 25
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 26
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 27
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 28
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 29
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 30
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 50
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 51
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 52
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 53
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 54
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 55
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 56
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 57
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 58
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 59
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 60
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 61
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 62
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 63
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 64
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 65
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 66
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 67
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 68
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 69
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 70
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 71
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 72
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Symbol 899 MovieClip Frame 73
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 9, acc, skd);
Instance of Symbol 883 MovieClip in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 901 MovieClip [fiende16] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (60 + (Math.random() * 10));
_xscale = (60 + (Math.random() * 10));
health = _xscale / 2.5;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
blodtype = 1;
taSkade = function (skade) {
health = health - skade;
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
_rotation = (-(yfart * 4));
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
qual = Math.round(Math.random() * 5) + 1;
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 1) {
if (qual >= 1) {
_root.makefiende16props(_x, _y, 1);
if (qual >= 2) {
_root.makefiende16props(_x - 20, _y, 2);
if (qual >= 3) {
if (_root.gfx_gibs >= 2) {
_root.makefiende16props(_x - 20, _y, 3);
if (qual >= 4) {
_root.makefiende16props(_x + 10, _y, 4);
if (qual >= 5) {
if (_root.gfx_gibs >= 3) {
_root.makefiende16props(_x + 20, _y, 5);
}
}
}
}
}
}
}
}
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
_root.makedrops((_x - 10) + (Math.random() * 20), (_y - 10) + (Math.random() * 20), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+8$");
_root.money = _root.money + 8;
}
}
}
};
Symbol 912 MovieClip [fiende15] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 10;
health = health * ekstrahealth;
xfart = 9 + (Math.random() * 2);
blodtype = 1;
taSkade = function (skade) {
health = health - skade;
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
_rotation = (-(yfart * 4));
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
propsrand = Math.round(Math.random() * 7);
if (_root.gfx_gibs == 1) {
} else if (_root.gfx_gibs == 2) {
if (propsrand > 2) {
_root.makefiende15props(_x, _y, 1);
if (propsrand > 4) {
_root.makefiende15props(_x, _y, 2);
if (propsrand > 6) {
_root.makefiende15props(_x, _y, 3);
}
}
}
} else if (_root.gfx_gibs == 3) {
_root.makefiende15props(_x, _y, 1);
_root.makefiende15props(_x, _y, 2);
if (propsrand > 4) {
_root.makefiende15props(_x, _y, 3);
}
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+8$");
_root.money = _root.money + 8;
}
}
}
};
Symbol 917 MovieClip Frame 66
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 8, 5, 10);
Symbol 917 MovieClip Frame 68
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 8, 5, 10);
Symbol 917 MovieClip Frame 71
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 8, 5, 10);
Instance of Symbol 921 MovieClip in Symbol 939 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Instance of Symbol 921 MovieClip in Symbol 939 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Instance of Symbol 923 MovieClip in Symbol 939 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Instance of Symbol 921 MovieClip in Symbol 958 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Instance of Symbol 921 MovieClip in Symbol 958 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Instance of Symbol 923 MovieClip in Symbol 958 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Symbol 960 MovieClip Frame 1
stop();
Symbol 961 MovieClip [fiende14] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale * 2;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
hussein = 0;
dodqual = Math.round(Math.random() * 4);
dodtype = Math.round(Math.random() * 3);
dodtimer = 20 + (Math.random() * 30);
calculateAngle = function () {
if (health > 0) {
if (_root.verden.mann._x < (_x - 50)) {
realx2 = ((_x + _parent._x) + fiende._x) + fiende.fiende2._x;
realy2 = ((_y + _parent._y) + fiende._y) + fiende.fiende2._y;
Xd = _root.verden.mann._x - realx2;
Yd = _root.verden.mann._y - realy2;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende2._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende2._rotation = fiende.fiende2._rotation + 90;
fiende.fiende2._rotation = fiende.fiende2._rotation - _rotation;
} else {
fiende.fiende2._rotation = 0;
}
}
};
calculateAngle();
roteller = 0;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (health > 0) {
_rotation = (-(yfart * 4));
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 250) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 250) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
if (dodtype == 2) {
fiende.gotoAndStop(2);
dodtimer = dodtimer - 1;
roteller = roteller + 1;
_rotation = (_rotation + roteller);
if (dodtimer <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (dodqual > 0) {
_root.makefiende14props(_x, _y, 1);
if (dodqual > 1) {
_root.makefiende14props(_x, _y, 2);
_root.makefiende14props(_x, _y, 3);
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
} else {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (dodqual > 0) {
_root.makefiende14props(_x, _y, 1);
if (dodqual > 1) {
_root.makefiende14props(_x, _y, 2);
_root.makefiende14props(_x, _y, 3);
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
}
}
calculateAngle();
}
};
Instance of Symbol 965 MovieClip in Symbol 966 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Symbol 973 MovieClip Frame 1
_root.fshoot(_parent._parent._x, _parent._parent._y, _parent._parent._rotation + 90, 7, 5, 10);
Symbol 973 MovieClip Frame 26
if (_parent._parent.havelostop == 0) {
_parent.gotoAndStop(1);
} else {
_parent.gotoAndStop(3);
}
Symbol 978 MovieClip Frame 20
_parent.gotoAndStop(3);
Symbol 979 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 4
_root.makefiende13props((_parent._x + 25) - (Math.random() * 50), (_parent._y + 25) - (Math.random() * 50), 2);
Symbol 980 MovieClip [fiende13] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 1;
havedecided = 0;
taSkade = function (skade) {
health = health - skade;
if (havedecided == 0) {
lol = Math.round(Math.random() * 20);
if (lol == 4) {
havelostop = 1;
havedecided = 1;
fiende.gotoAndStop(4);
}
}
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
havelostop = 0;
onEnterFrame = function () {
if (_root.ispaused == 0) {
_rotation = (-(yfart * 4));
if (havelostop == 0) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 20 + Math.round(Math.random() * 20);
fiende.gotoAndStop(2);
}
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (havelostop == 0) {
if (_x <= (550 - stoplimit)) {
if (moveteller < 150) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 150) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
} else {
xfart = 8;
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
qual = Math.round(Math.random() * 4) + 1;
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 1) {
if (qual >= 1) {
_root.makefiende13props((_x + 25) - (Math.random() * 50), (_y + 25) - (Math.random() * 50), 1);
if (qual >= 2) {
if (havelostop == 0) {
_root.makefiende13props((_x + 25) - (Math.random() * 50), (_y + 25) - (Math.random() * 50), 2);
} else {
_root.makefiende13props((_x + 25) - (Math.random() * 50), (_y + 25) - (Math.random() * 50), 3);
}
if (_root.gfx_gibs >= 2) {
if (qual >= 3) {
if (havelostop == 0) {
_root.makefiende13props((_x + 25) - (Math.random() * 50), (_y + 25) - (Math.random() * 50), 3);
}
if (qual >= 4) {
_root.makefiende13props((_x + 25) - (Math.random() * 50), (_y + 25) - (Math.random() * 50), 4);
}
}
}
}
}
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+30$");
_root.money = _root.money + 30;
}
}
}
};
Symbol 1008 MovieClip Frame 106
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, 110, 5, 5, 5);
Symbol 1008 MovieClip Frame 107
_root.fshoot((_parent._parent._x + _parent._x) + _x, ((_parent._parent._y + _parent._y) + _y) + 4, 100, 5, 5, 5);
Symbol 1008 MovieClip Frame 108
_root.fshoot((_parent._parent._x + _parent._x) + _x, ((_parent._parent._y + _parent._y) + _y) + 8, 90, 5, 5, 5);
Symbol 1008 MovieClip Frame 109
_root.fshoot((_parent._parent._x + _parent._x) + _x, ((_parent._parent._y + _parent._y) + _y) + 12, 80, 5, 5, 5);
Symbol 1008 MovieClip Frame 110
_root.fshoot((_parent._parent._x + _parent._x) + _x, ((_parent._parent._y + _parent._y) + _y) + 16, 70, 5, 5, 5);
Instance of Symbol 1047 MovieClip in Symbol 1048 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 7) + 1);
lol = Math.random() * 1;
if (lol == 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_xscale = (_xscale + (10 - (Math.random() * 20)));
_yscale = (_yscale + (10 - (Math.random() * 20)));
}
Symbol 1049 MovieClip Frame 8
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 3, 5, 5);
Symbol 1049 MovieClip Frame 10
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 3, 5, 5);
Symbol 1049 MovieClip Frame 12
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 3, 5, 5);
Symbol 1067 MovieClip Frame 14
stop();
Symbol 1072 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 2
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 2);
Symbol 1072 MovieClip Frame 11
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 3);
Symbol 1072 MovieClip Frame 15
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 2);
Symbol 1073 MovieClip Frame 1
plussen = 25;
vinkel = 90;
acc = 100;
skd = 5;
Symbol 1073 MovieClip Frame 7
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 8
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 9
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 10
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 11
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 12
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 13
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 14
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 15
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 16
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 17
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 18
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 19
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 20
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 21
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 22
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 23
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 24
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 25
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 26
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 27
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 28
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 29
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 30
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 31
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 32
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 33
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 34
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 35
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 36
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 37
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 38
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 39
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 40
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 41
_root.fshoot(((_parent._parent._x + _parent._x) + _x) + 20, ((_parent._parent._y + _parent._y) + _y) + plussen, vinkel, 6, acc, skd);
Symbol 1073 MovieClip Frame 91
_parent.gotoAndStop(1);
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1075 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 1076 MovieClip [fiende12] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = 90;
_xscale = 90;
health = 1500;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 120;
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
hussein = 0;
dodqual = Math.round(Math.random() * 3) + 1;
_root.musikk.gotoAndStop(3);
_root.bossbaren.loaden.gotoAndPlay(1);
_root.bossbaren.gotoAndStop(2);
_root.bossbaren._alpha = 100;
_root.flyoppteller = 0;
calculateAngle = function () {
if (_root.verden.mann._x < (_x - 50)) {
realx2 = ((_x + _parent._x) + fiende._x) + fiende.fiende2._x;
realy2 = ((_y + _parent._y) + fiende._y) + fiende.fiende2._y;
Xd = _root.verden.mann._x - realx2;
Yd = _root.verden.mann._y - realy2;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende2._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende2._rotation = fiende.fiende2._rotation + 90;
fiende.fiende2._rotation = fiende.fiende2._rotation - _rotation;
} else {
fiende.fiende2._rotation = 0;
}
fiende.fiende3._rotation = fiende.fiende2._rotation;
};
calculateAngle();
onEnterFrame = function () {
_root.bosshealthbalance = (100 / (1500 * ekstrahealth)) * health;
_root.bosshealthviser = (health + "/") + (1500 * ekstrahealth);
if (_root.ispaused == 0) {
_rotation = (-(yfart * 4));
if (health > 0) {
if (skyter == 1) {
if (hussein == 0) {
hussein = 1;
_root.antallfiende6 = _root.antallfiende6 + 1;
}
if (_root.fiende6shoot <= 1) {
fiende.gotoAndStop(2);
}
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 250) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 1) {
xfart = 0;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (health > 0) {
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
yfart = yfart + 0.5;
_rotation = (_rotation - 1);
fiende.skadelag.play();
if (_y > 350) {
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 1);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 2);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 3);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 4);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 5);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+1000$");
_root.money = _root.money + 1000;
_root.boss2 = 0;
_root.bossbaren._alpha = 0;
_root.musikk.gotoAndStop(7);
_root.ispaused = 1;
_root.mellomlevler = 1;
_root.flyplanet = 1;
_root.alldie(nummer);
}
}
}
calculateAngle();
}
};
Symbol 1093 MovieClip Frame 8
_root.fshoot((_parent._parent._x + _parent._x) + _x, (_parent._parent._y + _parent._y) + _y, _rotation + 90, 4, 5, 5);
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 2
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 2);
Symbol 1100 MovieClip Frame 11
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 3);
Symbol 1100 MovieClip Frame 15
_root.makefiende11props(_parent._parent._x + _parent.fiende.torso._x, _parent._parent._y + _parent.fiende.torso._y, 2);
Symbol 1136 MovieClip Frame 40
_root.fshoot(_parent._parent._x + _parent._x, _parent._parent._y + _parent._y, _rotation + 90, 11, 5, 5, _parent._parent.nummer);
Symbol 1136 MovieClip Frame 49
_parent.gotoAndStop(1);
Symbol 1137 MovieClip Frame 1
stop();
Symbol 1137 MovieClip Frame 2
stop();
Symbol 1138 MovieClip [fiende11] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = 80;
_xscale = 80;
health = _xscale * 2;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
hussein = 0;
dodqual = Math.round(Math.random() * 3) + 1;
deathway = Math.round(Math.random() * 1) + 1;
calculateAngle = function () {
if (_root.verden.mann._x < (_x - 50)) {
realx2 = ((_x + _parent._x) + fiende._x) + fiende.fiende2._x;
realy2 = ((_y + _parent._y) + fiende._y) + fiende.fiende2._y;
Xd = _root.verden.mann._x - realx2;
Yd = _root.verden.mann._y - realy2;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende2._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende2._rotation = fiende.fiende2._rotation + 90;
} else {
fiende.fiende2._rotation = 0;
}
};
calculateAngle();
onEnterFrame = function () {
fiende.fiende.torso.flamme._xscale = 80 - (yfart * 10);
fiende.fiende.torso.flamme2._xscale = 80 - (yfart * 10);
_rotation = (-yfart);
if (_root.ispaused == 0) {
if (health > 0) {
if (skyter == 1) {
if (hussein == 0) {
hussein = 1;
_root.antallfiende6 = _root.antallfiende6 + 1;
}
if (_root.fiende6shoot <= 1) {
fiende.gotoAndStop(2);
}
}
} else {
fiende.gotoAndStop(1);
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 250) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.1;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 250) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (health > 0) {
if (_y > (_root.verden.mann._y + 10)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 10)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
if (deathway == 1) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs == 1) {
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
} else if (_root.gfx_gibs == 2) {
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 3);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, Math.round(Math.random() * 1) + 4);
} else if (_root.gfx_gibs == 3) {
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 3);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 4);
_root.makefiende11props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 5);
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
} else {
yfart = yfart + 0.5;
_rotation = (_rotation - 1);
fiende.skadelag.play();
fiende.fiende.torso.flamme._alpha = 0;
fiende.fiende.torso.flamme2._alpha = 0;
if (_y > 350) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 1);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 2);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 3);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 4);
_root.makefiende11props(_x + fiende.fiende.torso._x, (_y + fiende.fiende.torso._y) - 20, 5);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
}
}
calculateAngle();
}
}
};
Symbol 1142 MovieClip Frame 1
stop();
Symbol 1143 MovieClip [fiende9] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 20));
_xscale = (70 + (Math.random() * 20));
health = _xscale / 3;
health = health * ekstrahealth;
xfart = _root.blaafjellfart;
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 1;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
daaqual = Math.round(Math.random() * 6) + 1;
calculateAngle = function () {
if (_root.verden.mann._x < (_x - 50)) {
realx = _x + _parent._x;
realy = _y + _parent._y;
Xd = _root.verden.mann._x - realx;
Yd = _root.verden.mann._y - realy;
radAngle = Math.atan2(Yd, Xd);
fiende.fiende._rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
fiende.fiende._rotation = fiende.fiende._rotation + 90;
} else {
fiende.fiende._rotation = 0;
}
};
calculateAngle();
onEnterFrame = function () {
if (_root.ispaused == 0) {
calculateAngle();
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 10 + Math.round(Math.random() * 10);
fiende.gotoAndStop(2);
calculateAngle();
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
if (health <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 1) {
if (daaqual > 1) {
_root.makefiende9props(_x + fiende.fiende._x, _y + fiende.fiende._y, 1);
if (daaqual > 2) {
_root.makefiende9props(_x + fiende.fiende._x, _y + fiende.fiende._y, 2);
if (daaqual > 3) {
_root.makefiende9props(_x + fiende.taarn._x, _y + fiende.taarn._y, 3);
if (daaqual > 4) {
if (_root.gfx_gibs >= 2) {
_root.makefiende9props(_x + fiende.taarn._x, _y + fiende.taarn._y, 4);
if (daaqual > 5) {
_root.makefiende9props(_x + fiende.taarn._x, _y + fiende.taarn._y, 5);
if (daaqual > 6) {
if (_root.gfx_gibs == 3) {
_root.makefiende9props(_x + fiende.taarn._x, _y + fiende.taarn._y, 6);
}
}
}
}
}
}
}
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+60$");
_root.money = _root.money + 60;
}
}
}
};
Symbol 1143 MovieClip [fiende9] Frame 2
Symbol 1164 MovieClip Frame 1
stop();
Symbol 1176 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 1177 MovieClip [fiende10] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (80 + (Math.random() * 20));
_xscale = (80 + (Math.random() * 20));
health = _xscale / 6;
health = health * ekstrahealth;
xfart = _root.blaafjellfart;
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
fiende.gotoAndStop(Math.round(Math.random() * 3) + 1);
daaqual = Math.round(Math.random() * 6) + 1;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 1) {
if (daaqual > 1) {
_root.makefiende10props(_x, _y - 15, 1);
if (daaqual > 2) {
_root.makefiende10props(_x, _y - 15, 2);
if (_root.gfx_gibs >= 2) {
if (daaqual > 3) {
_root.makefiende10props(_x, _y - 15, 3);
if (daaqual > 4) {
_root.makefiende10props(_x, _y - 15, 4);
if (daaqual > 5) {
if (_root.gfx_gibs == 3) {
_root.makefiende10props(_x, _y - 15, 5);
if (daaqual > 6) {
_root.makefiende10props(_x, _y - 15, 6);
}
}
}
}
}
}
}
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+60$");
_root.money = _root.money + 60;
}
}
}
};
Symbol 1177 MovieClip [fiende10] Frame 2
Symbol 1182 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 1183 MovieClip [fiende8] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 10;
health = health * ekstrahealth;
xfart = 6 + (Math.random() * 2);
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
dodqual = Math.round(Math.random() * 4) + 1;
pangtype = 3;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_x < -50) {
if (oop == 1) {
} else {
_root.antallfiender = _root.antallfiender - 1;
}
this.removeMovieClip();
}
if (_y < -300) {
if (oop == 1) {
} else {
_root.antallfiender = _root.antallfiender - 1;
}
this.removeMovieClip();
}
if (_y > 600) {
if (oop == 1) {
} else {
_root.antallfiender = _root.antallfiender - 1;
}
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
yfart = yfart + (-0.5 + (Math.random() * 1));
if (health <= 0) {
if (oop == 1) {
} else {
_root.antallfiender = _root.antallfiender - 1;
}
if (_root.gfx_gibs == 1) {
} else if (_root.gfx_gibs == 2) {
if (dodqual > 1) {
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._y, Math.round(Math.random() * 1) + 1);
if (dodqual > 3) {
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._x, Math.round(Math.random() * 1) + 3);
}
}
} else if (_root.gfx_gibs == 3) {
if (dodqual > 1) {
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._y, 1);
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._y, 2);
if (dodqual > 3) {
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._x, 3);
_root.makefiende8props(_x + fiende.fiende.main._x, _y + fiende.fiende.main._x, 4);
}
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+5$");
_root.money = _root.money + 5;
}
}
}
};
Symbol 1193 MovieClip Frame 8
_root.fshoot(_parent._parent._x, _parent._parent._y + 20, _parent._parent._rotation + 90, 4, 5, 5);
Symbol 1193 MovieClip Frame 10
_root.fshoot(_parent._parent._x, _parent._parent._y + 20, _parent._parent._rotation + 90, 4, 5, 5);
Symbol 1193 MovieClip Frame 12
_root.fshoot(_parent._parent._x, _parent._parent._y + 20, _parent._parent._rotation + 90, 4, 5, 5);
Symbol 1193 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 1194 MovieClip Frame 1
stop();
Symbol 1195 MovieClip [fiende7] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
health = _xscale / 1.5;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 25 + Math.round(Math.random() * 15);
dodqual = Math.round(Math.random() * 4);
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (moveteller < 250) {
if (_root.verden.mann._x < (_x - 50)) {
realx = _x + _parent._x;
realy = _y + _parent._y;
Xd = _root.verden.mann._x - realx;
Yd = _root.verden.mann._y - realy;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
_rotation = (_rotation + 90);
} else {
_rotation = 0;
}
} else {
_rotation = 0;
if (moveteller < 250) {
xfart = xfart - 2;
}
}
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 30 + Math.round(Math.random() * 10);
fiende.gotoAndStop(2);
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 250) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 250) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
ape = Math.round(Math.random() * 1) + 1;
if (ape == 1) {
_root.makedistress();
} else {
_root.radio.gotoAndStop(6);
}
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs == 1) {
_root.makefiende7props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, Math.round(Math.random() * 3) + 1);
} else if (_root.gfx_gibs == 2) {
if (dodqual > 0) {
_root.makefiende7props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, Math.round(Math.random() * 1) + 1);
if (dodqual > 2) {
_root.makefiende7props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, Math.round(Math.random() * 1) + 3);
}
}
} else if (_root.gfx_gibs == 3) {
if (dodqual > 0) {
_root.makefiende7props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende7props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
if (dodqual > 2) {
_root.makefiende7props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, 3);
_root.makefiende7props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, 4);
}
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+80$");
_root.money = _root.money + 80;
}
}
}
};
Symbol 1205 MovieClip Frame 10
_root.fshoot(_parent._parent._x, _parent._parent._y + 20, _parent._parent._rotation + 90, 2, 5, 5);
Symbol 1205 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1206 MovieClip Frame 1
stop();
Symbol 1207 MovieClip [fiende6] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
health = _xscale / 2;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 2;
taSkade = function (skade) {
health = health - skade;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
hussein = 0;
dodqual = Math.round(Math.random() * 3) + 1;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (skyter == 1) {
if (hussein == 0) {
hussein = 1;
_root.antallfiende6 = _root.antallfiende6 + 1;
}
if (_root.fiende6shoot <= 1) {
fiende.gotoAndStop(2);
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 250) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 250) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
_root.makedistress();
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs == 2) {
if (dodqual > 0) {
_root.makefiende6props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, Math.round(Math.random() * 1) + 1);
if (dodqual > 2) {
_root.makefiende6props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, Math.round(Math.random() * 1) + 3);
}
}
} else if (_root.gfx_gibs == 1) {
_root.makefiende6props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, Math.round(Math.random() * 3) + 1);
} else if (_root.gfx_gibs == 3) {
if (dodqual > 0) {
_root.makefiende6props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende6props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
if (dodqual > 2) {
_root.makefiende6props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, 3);
_root.makefiende6props(_x + fiende.fiende.armer._x, _y + fiende.fiende.armer._y, 4);
}
}
}
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops2((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+40$");
_root.money = _root.money + 40;
}
}
}
};
Instance of Symbol 1224 MovieClip in Symbol 1227 MovieClip Frame 1
onClipEvent (load) {
lol = 1 + Math.round(Math.random() * 1);
if (lol == 2) {
_alpha = 0;
}
_xscale = (50 + (Math.random() * 50));
_yscale = _xscale;
_y = (_y + (-5 + (Math.random() * 10)));
_rotation = (_rotation + (-20 + (Math.random() * 40)));
}
Instance of Symbol 1226 MovieClip in Symbol 1227 MovieClip Frame 1
onClipEvent (load) {
_xscale = (80 + (Math.random() * 50));
_yscale = _xscale;
_y = (_y + (-5 + (Math.random() * 10)));
_rotation = (_rotation + (-20 + (Math.random() * 40)));
}
Instance of Symbol 1224 MovieClip "panneblod" in Symbol 1227 MovieClip Frame 1
onClipEvent (load) {
lol = 1 + Math.round(Math.random() * 1);
if (lol == 2) {
_alpha = 0;
}
_xscale = (50 + (Math.random() * 50));
_yscale = _xscale;
_y = (_y + (-5 + (Math.random() * 10)));
_rotation = (_rotation + (-20 + (Math.random() * 40)));
}
Symbol 1228 MovieClip Frame 16
_root.fshoot(_parent._parent._x, _parent._parent._y, _parent._parent._rotation + 90, 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1228 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1229 MovieClip Frame 1
stop();
Symbol 1230 MovieClip [fiende5] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 4;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 1;
panneblod = Math.round(Math.random() * 2);
taSkade = function (skade) {
health = health - skade;
if (fiende.skada._alpha == 100) {
if (panneblod == 1) {
fiende.skada.panneblod._alpha = 100;
}
}
fiende.skada._alpha = 100;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 15);
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 20 + Math.round(Math.random() * 20);
fiende.gotoAndStop(2);
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 150) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 150) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende5props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende5props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 2);
_root.makefiende5props(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 3);
_root.makefiende5props(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 4);
if (_root.gfx_gibs >= 2) {
_root.makefiende5props(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 5);
_root.makefiende5props(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 6);
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+30$");
_root.money = _root.money + 30;
}
}
}
};
Symbol 1236 MovieClip Frame 1
stop();
Symbol 1239 MovieClip Frame 1
stop();
Symbol 1241 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1250 MovieClip Frame 10
_root.fshoot(_parent._parent._x + 10, _parent._parent._y + 5, (_parent._parent._rotation + 60) + (Math.random() * 60), 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1250 MovieClip Frame 12
_root.fshoot(_parent._parent._x + 10, _parent._parent._y + 5, (_parent._parent._rotation + 60) + (Math.random() * 60), 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1250 MovieClip Frame 14
_root.fshoot(_parent._parent._x + 10, _parent._parent._y + 5, (_parent._parent._rotation + 60) + (Math.random() * 60), 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1250 MovieClip Frame 16
_root.fshoot(_parent._parent._x + 10, _parent._parent._y + 5, (_parent._parent._rotation + 60) + (Math.random() * 60), 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1250 MovieClip Frame 17
_parent.gotoAndStop(1);
_parent._parent.removeLostItems();
Symbol 1251 MovieClip Frame 25
_root.spawnfiende(1, 1, _parent._parent._x, _parent._parent._y + 70);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y + 45) + (Math.random() * 50), 2);
Symbol 1251 MovieClip Frame 35
_parent._parent.removeLostItems();
_parent._parent.skyter = 1;
_parent.gotoAndStop(1);
Symbol 1252 MovieClip Frame 1
stop();
Symbol 1253 MovieClip [fiende4] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = 90;
_xscale = 90;
health = 800;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 1;
harmistetsjold = 0;
harmistetsjold2 = 0;
harmistetsjold3 = 0;
harmistetsekk2 = 0;
harmistettorso = 0;
harmistetsekk = 0;
_root.musikk.gotoAndStop(2);
_root.bossbaren.loaden.gotoAndPlay(1);
_root.bossbaren.gotoAndStop(1);
taSkade = function (skade) {
health = health - skade;
if (health < 175) {
if (harmistetsjold == 0) {
harmistetsjold = 1;
_root.makefiende4props(_x + fiende.fiende.sjold._x, _y + fiende.fiende.sjold._y, 1);
}
if (health < 150) {
if (harmistetsjold2 == 0) {
harmistetsjold2 = 1;
_root.makefiende4props(_x + fiende.fiende.sjold2._x, _y + fiende.fiende.sjold2._y, 1);
}
if (health < 125) {
if (harmistetsjold3 == 0) {
harmistetsjold3 = 1;
_root.makefiende4props(_x + fiende.fiende.sjold3._x, _y + fiende.fiende.sjold3._y, 2);
}
if (health < 100) {
if (harmistetsekk2 == 0) {
harmistetsekk2 = 1;
_root.makefiende4props(_x + fiende.fiende.sekk2._x, _y + fiende.fiende.sekk2._y, 3);
}
if (health < 75) {
if (harmistettorso == 0) {
harmistettorso = 1;
_root.makefiende4props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 4);
}
if (health < 50) {
if (harmistetsekk == 0) {
harmistetsekk = 1;
_root.makefiende4props(_x + fiende.fiende.sekk._x, _y + fiende.fiende.sekk._y, 5);
}
}
}
}
}
}
}
};
stoplimit = 100;
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 5 + Math.round(Math.random() * 5);
removeLostItems = function () {
if (health < 175) {
fiende.fiende.sjold.gotoAndStop(2);
if (health < 150) {
fiende.fiende.sjold2.gotoAndStop(2);
if (health < 125) {
fiende.fiende.sjold3.gotoAndStop(2);
if (health < 100) {
fiende.fiende.sekk2.gotoAndStop(2);
if (health < 75) {
fiende.fiende.torso.gotoAndStop(2);
if (health < 50) {
fiende.fiende.sekk.gotoAndStop(2);
}
}
}
}
}
}
};
fodeteller = 0;
fodemaks = 30 + Math.round(Math.random() * 15);
_root.bossbaren._alpha = 100;
onEnterFrame = function () {
_rotation = (-yfart);
_root.bosshealthbalance = (100 / (800 * ekstrahealth)) * health;
_root.bosshealthviser = (health + "/") + (800 * ekstrahealth);
if (_root.ispaused == 0) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 2 + Math.round(Math.random() * 2);
fiende.gotoAndStop(2);
} else {
fodeteller = fodeteller + 1;
if (fodeteller >= fodemaks) {
fodemaks = 30 + Math.round(Math.random() * 15);
fodeteller = 0;
skyter = 0;
fiende.gotoAndStop(3);
}
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -500) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 900) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (begynnteller == 0) {
if (_x <= (550 - stoplimit)) {
if (xfart > 1) {
xfart = xfart - 1;
} else if ((xfart > 0) && (xfart < 1)) {
xfart = 0;
begynnteller = 1;
skyter = 1;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 9999) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
if (_y > (_root.verden.mann._y + 20)) {
yfart = yfart - 0.2;
if (yfart < -8) {
yfart = -8;
}
} else if (_y < (_root.verden.mann._y - 20)) {
yfart = yfart + 0.2;
if (yfart > 8) {
yfart = 8;
}
}
yfart = yfart - (yfart / 30);
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende4props2(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende4props2(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 2);
_root.makefiende4props2(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 3);
_root.makefiende4props2(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 4);
if (_root.gfx_gibs >= 2) {
_root.makefiende4props2(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 5);
_root.makefiende4props2(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 6);
_root.makefiende4props2(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 7);
_root.makefiende4props2(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 8);
_root.makefiende4props2(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 9);
if (_root.gfx_gibs >= 3) {
_root.makefiende4props2(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 10);
_root.makefiende4props2(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 11);
_root.makefiende4props2(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 12);
_root.makefiende4props2(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 13);
_root.makefiende4props2(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 14);
_root.makefiende4props2(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 15);
}
}
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 40) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops(_x + (Math.random() * 40), _y + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
_root.makedrops((_x + 40) + (Math.random() * 40), (_y + 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+500$");
_root.money = _root.money + 500;
_root.boss1 = 0;
_root.bossbaren._alpha = 0;
_root.musikk.gotoAndStop(7);
_root.ispaused = 1;
_root.mellomlevler = 1;
_root.flyplanet = 1;
_root.alldie(nummer);
o = 0;
while (o < (_root.maksfiender + 1)) {
_root.verden.fiender["fienden" + o].removeMovieClip();
o++;
}
_root.antallfiender = 0;
}
}
}
removeLostItems();
};
Symbol 1253 MovieClip [fiende4] Frame 2
o = 0;
while (o < (_root.maksfiender + 1)) {
_root.verden.fiender["fienden" + o].removeMovieClip();
o++;
}
_root.antallfiender = 0;
Symbol 1263 MovieClip Frame 16
_root.fshoot(_parent._parent._x, _parent._parent._y, _parent._parent._rotation + 90, 1, 5, 10);
_root.smoke2((_parent._parent._x - 25) + (Math.random() * 50), (_parent._parent._y - 20) + (Math.random() * 50), 2);
Symbol 1263 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1264 MovieClip Frame 1
stop();
Symbol 1265 MovieClip [fiende3] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 6;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
maksfart = xfart;
blodtype = 1;
panneblod = Math.round(Math.random() * 2);
taSkade = function (skade) {
health = health - skade;
if (fiende.skada._alpha == 100) {
if (panneblod == 1) {
fiende.skada.panneblod._alpha = 100;
}
}
fiende.skada._alpha = 100;
};
stoplimit = 50 + (Math.random() * 50);
begynnteller = 0;
moveteller = 0;
skyter = 0;
skyterteller = 0;
makskyter = 15 + Math.round(Math.random() * 5);
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (skyter == 1) {
skyterteller = skyterteller + 1;
if (skyterteller >= makskyter) {
skyterteller = 0;
makskyter = 30 + Math.round(Math.random() * 20);
fiende.gotoAndStop(2);
}
}
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_x <= (550 - stoplimit)) {
if (moveteller < 150) {
begynnteller = 1;
skyter = 1;
if (xfart > 1) {
xfart = xfart - 1;
}
if (xfart < 0.5) {
xfart = 0.5;
}
}
}
if (begynnteller == 1) {
moveteller = moveteller + 1;
if (moveteller >= 150) {
skyter = 0;
if (xfart < maksfart) {
xfart = xfart + 1;
}
}
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
yfart = yfart + (-0.3 + (Math.random() * 0.6));
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende3props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende3props(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 2);
_root.makefiende3props(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 3);
if (_root.gfx_gibs >= 2) {
_root.makefiende3props(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 4);
_root.makefiende3props(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 5);
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+18$");
_root.money = _root.money + 18;
}
}
}
};
Symbol 1276 MovieClip [fiende2] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 6;
health = health * ekstrahealth;
xfart = 5 + (Math.random() * 2);
blodtype = 1;
panneblod = Math.round(Math.random() * 2);
taSkade = function (skade) {
health = health - skade;
if (fiende.skada._alpha == 100) {
if (panneblod == 1) {
fiende.skada.panneblod._alpha = 100;
}
}
fiende.skada._alpha = 100;
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
yfart = yfart + (-0.5 + (Math.random() * 1));
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
_root.makefiende2props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende2props(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 2);
_root.makefiende2props(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 3);
if (_root.gfx_gibs >= 2) {
_root.makefiende2props(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 4);
_root.makefiende2props(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 5);
}
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+15$");
_root.money = _root.money + 15;
}
}
}
};
Instance of Symbol 1224 MovieClip in Symbol 1286 MovieClip Frame 1
onClipEvent (load) {
lol = 1 + Math.round(Math.random() * 1);
if (lol == 2) {
_alpha = 0;
}
_xscale = (50 + (Math.random() * 50));
_yscale = _xscale;
_y = (_y + (-5 + (Math.random() * 10)));
_rotation = (_rotation + (-20 + (Math.random() * 40)));
}
Instance of Symbol 1226 MovieClip in Symbol 1286 MovieClip Frame 1
onClipEvent (load) {
_xscale = (80 + (Math.random() * 50));
_yscale = _xscale;
_y = (_y + (-5 + (Math.random() * 10)));
_rotation = (_rotation + (-20 + (Math.random() * 40)));
}
Symbol 1288 MovieClip [fiende1] Frame 1
yfart = 0;
stop();
dead = 0;
_yscale = (70 + (Math.random() * 10));
_xscale = (70 + (Math.random() * 10));
health = _xscale / 10;
health = health * ekstrahealth;
xfart = 6 + (Math.random() * 2);
blodtype = 1;
taSkade = function (skade) {
health = health - skade;
fiende.skada._alpha = 100;
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_x < -50) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y < -300) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (_y > 600) {
_root.antallfiender = _root.antallfiender - 1;
this.removeMovieClip();
}
if (dead == 0) {
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
taSkade(10);
}
_x = (_x - xfart);
_y = (_y + yfart);
yfart = yfart + (-0.5 + (Math.random() * 1));
if (health <= 0) {
_root.antallfiender = _root.antallfiender - 1;
if (_root.gfx_gibs >= 2) {
_root.makefiende1props(_x + fiende.fiende.fot2._x, _y + fiende.fiende.fot2._x, 4);
_root.makefiende1props(_x + fiende.fiende.fot3._x, _y + fiende.fiende.fot3._x, 5);
}
_root.makefiende1props(_x + fiende.fiende.torso._x, _y + fiende.fiende.torso._y, 1);
_root.makefiende1props(_x + fiende.fiende.kjeve._x, _y + fiende.fiende.kjeve._x, 2);
_root.makefiende1props(_x + fiende.fiende.fot1._x, _y + fiende.fiende.fot1._x, 3);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
_root.makedrops((_x - 20) + (Math.random() * 40), (_y - 20) + (Math.random() * 40), 1);
gotoAndStop (2);
dead = 1;
_root.damagetekst(_x, _y, "+8$");
_root.money = _root.money + 8;
}
}
} else {
this.removeMovieClip();
}
};
Instance of Symbol 1291 MovieClip in Symbol 1304 MovieClip [2fjellmirror] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.blaafjellfart;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1291 MovieClip in Symbol 1318 MovieClip [3fjell] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.rodfjellfart;
}
Instance of Symbol 1291 MovieClip in Symbol 1332 MovieClip [2fjell] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.blaafjellfart;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1291 MovieClip in Symbol 1346 MovieClip [fjell] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.fjellfart;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
} else if (_root.planet == 2) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1291 MovieClip in Symbol 1361 MovieClip [3fjell2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.rodfjellfart2;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1291 MovieClip in Symbol 1376 MovieClip [2fjell2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.blaafjellfart2;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1291 MovieClip in Symbol 1391 MovieClip [fjell2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - _root.fjellfart2;
if (_parent._x < (-10 - _parent._width)) {
_parent.removeMovieClip();
} else if (_root.planet == 2) {
_parent.removeMovieClip();
}
}
Symbol 1401 MovieClip Frame 1
stop();
Symbol 1401 MovieClip Frame 2
_root.shootr(3, 4, 1, _root.verden.mann._x, _root.verden.mann._y, _root.verden.mann._rotation + 90, 5);
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1413 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 1422 MovieClip Frame 9
stop();
Symbol 1425 MovieClip Frame 11
stop();
Symbol 1433 MovieClip Frame 8
stop();
Symbol 1434 MovieClip [1337blod] Frame 1
midten._rotation = Math.random() * 360;
midten._xscale = (midten._yscale = 90 + (Math.random() * 20));
sprut._rotation = Math.random() * 360;
sprut._xscale = (sprut._yscale = 100 + (Math.random() * 20));
lol = Math.round(Math.random() * 3);
if (lol == 2) {
sprut2._rotation = Math.random() * 360;
sprut2._xscale = (sprut2._yscale = 120 + (Math.random() * 20));
} else {
sprut2._alpha = 0;
}
utbak._rotation = kulerotasjon;
Instance of Symbol 1441 MovieClip in Symbol 1442 MovieClip [bloodsmoke] Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 5) + 1);
}
Symbol 1442 MovieClip [bloodsmoke] Frame 31
removeMovieClip(this);
Symbol 1448 MovieClip [sistebossprops] Frame 1
_yscale = (60 + (Math.random() * 10));
_xscale = (60 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1453 MovieClip [fiende14props] Frame 1
_yscale = (60 + (Math.random() * 10));
_xscale = (60 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Instance of Symbol 965 MovieClip in Symbol 1457 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._parent._parent._rotation);
}
Symbol 1458 MovieClip [fiende13props] Frame 1
_yscale = (60 + (Math.random() * 10));
_xscale = (60 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1465 MovieClip [fiende16props] Frame 1
_yscale = (60 + (Math.random() * 10));
_xscale = (60 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1473 MovieClip [fiende10props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 5);
lol = 1;
spawnteller = 0;
tulling = Math.round(Math.random() * 1) + 1;
onEnterFrame = function () {
if (tulling == 1) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1481 MovieClip [fiende17props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1487 MovieClip [fiende18props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -8 + (Math.random() * 5);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1492 MovieClip [fiende15props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1499 MovieClip [fiende11props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 15);
lol = 1;
spawnteller = 0;
onEnterFrame = function () {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1503 MovieClip [fiende7props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 15);
lol = 1;
spawnteller = 0;
onEnterFrame = function () {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1511 MovieClip [fiende9props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 15);
lol = 1;
spawnteller = 0;
onEnterFrame = function () {
if (tulling == 1) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1517 MovieClip [fiende8props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 15);
lol = 1;
tulling = Math.round(Math.random() * 10);
spawnteller = 0;
onEnterFrame = function () {
if (tulling == 1) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1522 MovieClip [fiende6props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -8 + (Math.random() * 16);
yfart = -10 + (Math.random() * 15);
lol = 1;
tulling = Math.round(Math.random() * 2);
spawnteller = 0;
onEnterFrame = function () {
if (tulling == 1) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
}
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1532 MovieClip [fiende5props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1544 MovieClip [fiende4props2] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1550 MovieClip [fiende4props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1553 MovieClip [fiende3props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1555 MovieClip [fiende2props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1569 MovieClip [explosjon] Frame 1
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
Symbol 1569 MovieClip [explosjon] Frame 2
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
Symbol 1569 MovieClip [explosjon] Frame 3
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
i = 0;
while (i < (_root.maksfiender + 1)) {
tulling = Math.round(Math.random() * 2) + 1;
if (hitTest(_root.verden.fiender["fienden" + i])) {
if (_root.verden.fiender["fienden" + i].dead == 0) {
_root.verden.fiender["fienden" + i].taSkade(15);
if (_root.verden.fiender["fienden" + i].blodtype == 1) {
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
}
}
}
i++;
}
Symbol 1569 MovieClip [explosjon] Frame 4
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
Symbol 1569 MovieClip [explosjon] Frame 5
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
_root.smoke2((_x - 50) + (Math.random() * 100), (_y - 50) + (Math.random() * 100), 1);
Symbol 1569 MovieClip [explosjon] Frame 11
this.removeMovieClip();
Symbol 1583 MovieClip [blodflekker2] Frame 1
flekken.gotoAndStop(Math.round(Math.random() * 11) + 1);
_xscale = (80 + (Math.random() * 20));
_yscale = (80 + (Math.random() * 20));
teller = 0;
onEnterFrame = function () {
teller = teller + 1;
if (teller > 100) {
_alpha = (_alpha - 2);
if (_alpha < 5) {
this.removeMovieClip();
}
}
};
Symbol 1592 MovieClip [blodrop2] Frame 1
yfart = -4 + (Math.random() * 8);
xfart = -4 + (Math.random() * 8);
rotfart = -10 + (Math.random() * 20);
_alpha = (90 + (Math.random() * 10));
_xscale = (90 + (Math.random() * 20));
_yscale = (90 + (Math.random() * 20));
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
_xscale = (_xscale - (_xscale / 20));
_yscale = (_yscale - (_yscale / 20));
_rotation = (_rotation + rotfart);
if (_xscale < 10) {
this.removeMovieClip();
}
};
Instance of Symbol 1591 MovieClip in Symbol 1592 MovieClip [blodrop2] Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 10));
}
Symbol 1603 MovieClip Frame 11
_parent._parent.removeMovieClip();
Symbol 1610 MovieClip Frame 9
_parent._parent.removeMovieClip();
Symbol 1620 MovieClip Frame 11
_parent._parent.removeMovieClip();
Instance of Symbol 1623 MovieClip in Symbol 1624 MovieClip Frame 1
onClipEvent (load) {
_yscale = ((Math.random() * 10) + 90);
}
Instance of Symbol 1621 MovieClip "gnist" in Symbol 1625 MovieClip [blod2] Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 2) + 1);
gnist._rotation = Math.random() * 360;
lol1 = Math.round(Math.random() * 1);
if (lol1 == 1) {
_yscale = -100;
}
lol2 = Math.round(Math.random() * 1);
if (lol2 == 1) {
_xscale = -100;
}
lolsors = Math.random() * 10;
_xscale = (_xscale - lolsors);
_yscale = (_yscale - lolsors);
}
Instance of Symbol 1624 MovieClip in Symbol 1625 MovieClip [blod2] Frame 1
onClipEvent (load) {
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - (_alpha / 5));
}
Symbol 1637 MovieClip Frame 1
stop();
Symbol 1637 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 1652 MovieClip Frame 1
stop();
Symbol 1652 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 1667 MovieClip Frame 1
stop();
Symbol 1667 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 1667 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 1675 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 1689 MovieClip Frame 1
stop();
Symbol 1689 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 1704 MovieClip Frame 1
stop();
Symbol 1704 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 1706 MovieClip Frame 1
stop();
Symbol 1706 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 1708 MovieClip [fkule1] Frame 1
stop();
if (shootype == 1) {
_rotation = 90;
if (_root.difficulty == 1) {
xfart = -13;
yfart = -2 + (Math.random() * 4);
} else if (_root.difficulty == 2) {
xfart = -15;
yfart = -2 + (Math.random() * 4);
} else if (_root.difficulty == 3) {
xfart = -17;
yfart = -2 + (Math.random() * 4);
}
} else if ((shootype == 2) || (shootype == 7)) {
_rotation = 90;
if (_root.difficulty == 1) {
xfart = -13;
yfart = -1 + (Math.random() * 2);
} else if (_root.difficulty == 2) {
xfart = -15;
yfart = -1 + (Math.random() * 2);
} else if (_root.difficulty == 3) {
xfart = -17;
yfart = -1 + (Math.random() * 2);
}
} else if (((((shootype == 3) || (shootype == 4)) || (shootype == 5)) || (shootype == 6)) || (shootype == 8)) {
lolx = _x;
loly = _y;
fdif = 1;
if (_rotation > 180) {
_y = (_y + (_root.fkfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (_root.fkfart * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (_root.fkfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (_root.fkfart * Math.sin((Math.PI/180) * _rotation)));
}
xfart = _x - lolx;
yfart = _y - loly;
_x = (_x + (((xfart * 1.5) - 2) + (Math.random() * 4)));
_y = (_y + (((yfart * 1.5) - 2) + (Math.random() * 4)));
}
if (shootype == 4) {
_x = (_x + (((xfart * 3.5) - 2) + (Math.random() * 4)));
_y = (_y + (((yfart * 3.5) - 2) + (Math.random() * 4)));
}
if (shootype == 9) {
_rotation = 90;
if (_root.difficulty == 1) {
xfart = -10;
} else if (_root.difficulty == 2) {
xfart = -12;
} else if (_root.difficulty == 3) {
xfart = -14;
}
yfart = -1 + (Math.random() * 2);
}
if (shootype == 10) {
_rotation = 0;
if (_root.difficulty == 1) {
xfart = -8 + (Math.random() * 4);
} else if (_root.difficulty == 2) {
xfart = -10 + (Math.random() * 4);
} else if (_root.difficulty == 3) {
xfart = -12 + (Math.random() * 4);
}
yfart = 7 + (Math.random() * 2);
}
dead = 0;
_yscale = (80 + (Math.random() * 40));
_xscale = (80 + (Math.random() * 40));
kule.gotoAndStop(shootype);
spawnteller = 0;
onEnterFrame = function () {
if (_root.ispaused == 0) {
realx = _x + _parent._x;
realy = _y + _parent._y;
if (shootype == 10) {
if (realy > 400) {
this.removeMovieClip();
}
} else if ((((realx < 550) && (realx > -200)) && (realy < 450)) && (realy > -50)) {
} else {
this.removeMovieClip();
}
if (dead == 0) {
if ((shootype == 1) || (shootype == 10)) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 3);
spawnteller = 0;
}
} else if (shootype == 5) {
spawnteller = spawnteller + 1;
if (spawnteller == 2) {
_root.spawnoffling(_x, _y, 1);
spawnteller = 0;
}
}
_x = (_x + xfart);
_y = (_y + yfart);
if (shootype == 5) {
xfart = xfart - 0.1;
} else if (shootype == 6) {
xfart = xfart + 0.15;
yfart = yfart - 0.1;
}
if (hitTest(_root.verden.mann.hitbox)) {
_root.taSkade(10);
_x = (_x + (xfart + xvar));
_y = (_y + (yfart + yvar));
dead = 1;
kule.kule.gotoAndPlay(2);
kule.kule._rotation = Math.random() * 360;
kule.kule._xscale = (kule.kule._yscale = 120 + (Math.random() * 20));
}
}
} else if (_root.mellomlevler == 1) {
this.removeMovieClip();
}
};
Symbol 1722 MovieClip [blodflekker] Frame 1
flekken.gotoAndStop(Math.round(Math.random() * 11) + 1);
_xscale = (80 + (Math.random() * 20));
_yscale = (80 + (Math.random() * 20));
teller = 0;
onEnterFrame = function () {
teller = teller + 1;
if (teller > 100) {
_alpha = (_alpha - 2);
if (_alpha < 5) {
this.removeMovieClip();
}
}
};
Symbol 1724 MovieClip [fiende1props] Frame 1
_yscale = (80 + (Math.random() * 10));
_xscale = (80 + (Math.random() * 10));
rotfart = -10 + (Math.random() * 20);
teller = 120;
xfart = -5 + (Math.random() * 10);
yfart = -5 + (Math.random() * 10);
lol = 1;
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.3;
rotfart = rotfart - (rotfart / 100);
if (_y > 400) {
this.removeMovieClip();
}
_rotation = (_rotation + rotfart);
};
Symbol 1733 MovieClip [blod] Frame 1
yfart = -4 + (Math.random() * 8);
xfart = -4 + (Math.random() * 8);
rotfart = -10 + (Math.random() * 20);
_xscale = (90 + (Math.random() * 20));
_yscale = (90 + (Math.random() * 20));
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
yfart = yfart + 0.1;
_xscale = (_xscale - (_xscale / 20));
_yscale = (_yscale - (_yscale / 20));
_rotation = (_rotation + rotfart);
if (_xscale < 10) {
this.removeMovieClip();
}
};
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip [blod] Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 10));
}
Symbol 1744 MovieClip Frame 19
_parent.removeMovieClip();
Instance of Symbol 1744 MovieClip "blod1" in Symbol 1745 MovieClip [blod1] Frame 1
onClipEvent (load) {
_yscale = (100 + (Math.random() * 20));
_xscale = (100 + (Math.random() * 20));
_rotation = (Math.random() * 360);
}
Instance of Symbol 1752 MovieClip in Symbol 1753 MovieClip [rocksmoke] Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 5) + 1);
}
Symbol 1753 MovieClip [rocksmoke] Frame 31
removeMovieClip(this);
Instance of Symbol 1760 MovieClip in Symbol 1761 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 5) + 1);
}
Symbol 1761 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1762 MovieClip [smokeli] Frame 1
_yscale = (80 + (Math.random() * 30));
_xscale = (80 + (Math.random() * 30));
_rotation = (Math.random() * 360);
onEnterFrame = function () {
_x = (_x - 3);
};
Instance of Symbol 1773 MovieClip in Symbol 1796 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 9) + 1);
}
Instance of Symbol 1784 MovieClip in Symbol 1796 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 9) + 1);
}
Instance of Symbol 1795 MovieClip in Symbol 1796 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 9) + 1);
}
Symbol 1797 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 1798 MovieClip [offling1] Frame 1
yfart = 0;
xfart = 0;
onEnterFrame = function () {
yfart = yfart + 0.1;
xfart = xfart - 0.1;
_y = (_y + yfart);
_x = (_x + xfart);
};
Instance of Symbol 1797 MovieClip "offling" in Symbol 1798 MovieClip [offling1] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.xfart;
_parent._y = _parent._y + _parent.yfart;
}
Symbol 1813 MovieClip Frame 1
stop();
Symbol 1815 MovieClip [rakett1] Frame 1
stop();
lolx = _x;
loly = _y;
fdif = 1;
if (shootype != 4) {
if (_rotation > 180) {
_y = (_y + (_root.kfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (_root.kfart * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (_root.kfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (_root.kfart * Math.sin((Math.PI/180) * _rotation)));
}
} else if (_rotation > 180) {
_y = (_y + (_root.kfart2 * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (_root.kfart2 * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (_root.kfart2 * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (_root.kfart2 * Math.sin((Math.PI/180) * _rotation)));
}
xfart = _x - lolx;
yfart = _y - loly;
_x = (_x + (((xfart * 1.5) - 2) + (Math.random() * 4)));
_y = (_y + (((yfart * 1.5) - 2) + (Math.random() * 4)));
dead = 0;
xvar = -0.2 + (Math.random() * 0.4);
yvar = -0.2 + (Math.random() * 0.4);
tulling = Math.round(Math.random() * 2);
if (_root.rocket1 == 1) {
shootype = 1;
} else if (_root.rocket2 == 1) {
shootype = 2;
} else if (_root.rocket3 == 1) {
shootype = 3;
}
kule.gotoAndStop(shootype);
xfart = xfart / 2;
yfart = yfart / 2;
rotfart = 0;
realx = _x + _parent._x;
realy = _y + _parent._y;
closestenemy = 3000;
rocket2fart = 0;
findclosest = function () {
if (_root.rocket2 == 1) {
avstand2 = 9999;
i = 0;
while (i < (_root.maksfiender + 1)) {
if (_root.verden.fiender["fienden" + i].dead == 0) {
tullex = _root.verden.fiender["fienden" + i]._x - _x;
tulley = _root.verden.fiender["fienden" + i]._y - _y;
if (tullex < 0) {
tullex = tullex * -1;
}
if (tulley < 0) {
tulley = tulley * -1;
}
avstand = Math.sqrt((tullex * tullex) + (tulley * tulley));
_root.bananaboy2 = avstand;
if (_root.verden.fiender["fienden" + i]._x > (_x + 50)) {
if (avstand < avstand2) {
avstand2 = avstand;
closestenemy = i;
}
}
}
i++;
}
}
};
closesteller = 0;
origrot = _rotation;
funnetmaal = function (lol, type, fienden) {
if (_root.verden.fiender["fienden" + fienden].dead == 0) {
if (shootype == 4) {
} else {
_x = (_x - (xfart + xvar));
_y = (_y - (yfart + yvar));
}
if (lol == 1) {
if (type == 1) {
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
}
} else {
_root.verden.fiender["fienden" + fienden].taSkade(shootskade * 2);
if (_root.verden.fiender["fienden" + fienden].blodtype == 1) {
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
}
}
_root.makexplosjon(_x, _y);
dead = 1;
this.removeMovieClip();
}
};
bevegelse = function () {
_rotation = (_rotation + rotfart);
_root.spawnoffling(_x, _y, 1);
realx = _x + _parent._x;
realy = _y + _parent._y;
if (((realx < 600) && (realy < 450)) && (realy > -50)) {
} else {
this.removeMovieClip();
}
if (dead == 0) {
_x = (_x + (xfart + xvar));
_y = (_y + (yfart + yvar));
if (_root.rocket2 == 1) {
closesteller = closesteller + 1;
if (closesteller >= 3) {
closesteller = 0;
findclosest();
lolx = _x;
loly = _y;
if (_rotation > 180) {
_y = (_y + ((_root.kfart / 1.7) * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - ((_root.kfart / 1.7) * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - ((_root.kfart / 1.7) * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + ((_root.kfart / 1.7) * Math.sin((Math.PI/180) * _rotation)));
}
xfart = _x - lolx;
yfart = _y - loly;
}
if (_root.verden.fiender["fienden" + closestenemy]._x > (_x + 50)) {
realx2 = _x;
realy2 = _y;
Xd = _root.verden.fiender["fienden" + closestenemy]._x - realx2;
Yd = _root.verden.fiender["fienden" + closestenemy]._y - realy2;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
} else {
findclosest();
}
}
xfart = xfart + (xfart / 25);
yfart = yfart + (yfart / 25);
i = 0;
while (i < (_root.maksfiender + 1)) {
if (hitTest(_root.verden.fiender["fienden" + i])) {
if (_root.verden.fiender["fienden" + i].boss == 666) {
_root.damageboss(i, shootskade * 3, 1, 1, _x, _y, kulenr);
} else {
funnetmaal(0, 0, i);
}
}
i++;
}
} else {
_y = (_y + _root.fart);
}
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
bevegelse();
} else if (_root.mellomlevler == 1) {
bevegelse();
}
};
Symbol 1826 MovieClip Frame 1
stop();
Symbol 1826 MovieClip Frame 11
_parent._parent.removeMovieClip();
Symbol 1828 MovieClip Frame 1
stop();
Symbol 1828 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 1832 MovieClip Frame 1
stop();
Symbol 1834 MovieClip Frame 1
stop();
Symbol 1834 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 1842 MovieClip Frame 1
stop();
Symbol 1842 MovieClip Frame 2
stop();
Symbol 1842 MovieClip Frame 3
stop();
Symbol 1842 MovieClip Frame 4
stop();
Symbol 1842 MovieClip Frame 5
stop();
Symbol 1842 MovieClip Frame 6
stop();
Symbol 1842 MovieClip Frame 7
stop();
Symbol 1842 MovieClip Frame 8
stop();
Symbol 1842 MovieClip Frame 9
stop();
Symbol 1842 MovieClip Frame 10
stop();
Symbol 1842 MovieClip Frame 11
stop();
Symbol 1842 MovieClip Frame 12
stop();
Symbol 1842 MovieClip Frame 13
stop();
Symbol 1842 MovieClip Frame 14
stop();
Symbol 1842 MovieClip Frame 15
stop();
Symbol 1842 MovieClip Frame 16
stop();
Symbol 1842 MovieClip Frame 17
stop();
Symbol 1842 MovieClip Frame 18
stop();
Symbol 1842 MovieClip Frame 19
stop();
Symbol 1842 MovieClip Frame 20
stop();
Symbol 1842 MovieClip Frame 21
stop();
Symbol 1842 MovieClip Frame 22
stop();
Symbol 1842 MovieClip Frame 23
stop();
Symbol 1842 MovieClip Frame 24
stop();
Symbol 1842 MovieClip Frame 25
stop();
Symbol 1842 MovieClip Frame 26
stop();
Symbol 1842 MovieClip Frame 27
stop();
Symbol 1842 MovieClip Frame 28
stop();
Symbol 1842 MovieClip Frame 29
stop();
Symbol 1842 MovieClip Frame 30
stop();
Symbol 1842 MovieClip Frame 31
stop();
Symbol 1842 MovieClip Frame 32
stop();
Symbol 1842 MovieClip Frame 33
stop();
Symbol 1842 MovieClip Frame 34
stop();
Symbol 1842 MovieClip Frame 35
stop();
Symbol 1842 MovieClip Frame 36
stop();
Symbol 1842 MovieClip Frame 37
stop();
Symbol 1842 MovieClip Frame 38
stop();
Symbol 1842 MovieClip Frame 39
stop();
Symbol 1842 MovieClip Frame 40
stop();
Symbol 1844 MovieClip Frame 1
stop();
Symbol 1844 MovieClip Frame 2
_parent._parent.removeMovieClip();
Symbol 1846 MovieClip [kule1] Frame 1
stop();
lolx = _x;
loly = _y;
fdif = 1;
if (shootype != 4) {
if (_rotation > 180) {
_y = (_y + (_root.kfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (_root.kfart * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (_root.kfart * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (_root.kfart * Math.sin((Math.PI/180) * _rotation)));
}
} else if (_rotation > 180) {
_y = (_y + (_root.kfart2 * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (_root.kfart2 * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (_root.kfart2 * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (_root.kfart2 * Math.sin((Math.PI/180) * _rotation)));
}
xfart = _x - lolx;
yfart = _y - loly;
_x = (_x + (((xfart * 1.5) - 2) + (Math.random() * 4)));
_y = (_y + (((yfart * 1.5) - 2) + (Math.random() * 4)));
dead = 0;
xvar = -0.2 + (Math.random() * 0.4);
yvar = -0.2 + (Math.random() * 0.4);
tulling = Math.round(Math.random() * 2);
kule.gotoAndStop(shootype);
if (shootype == 3) {
if (_root.planet == 1) {
kule.kule.kule.gotoAndStop(2);
} else {
kule.kule.kule.gotoAndStop(1);
}
}
if (shootype == 4) {
_x = (_x + (xfart * 2.5));
_y = (_y + (yfart * 2.5));
xfart = xfart * 4;
yfart = yfart * 4;
} else if (shootype == 3) {
xfart = xfart * 1.2;
yfart = yfart * 1.2;
} else if (shootype == 2) {
xfart = xfart * 1.1;
yfart = yfart * 1.1;
}
rotfart = 0;
funnetmaal = function (lol, type) {
_root.verden.fiender["fienden" + i].taSkade(shootskade);
if (shootype == 4) {
} else {
_x = (_x - (xfart + xvar));
_y = (_y - (yfart + yvar));
}
if (lol == 1) {
if (type == 1) {
_root.makeblod(_x, _y, _rotation);
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
} else {
_root.makeblod2(_x, _y);
_root.makedrops2(_x, _y, 1);
_root.makedrops2(_x, _y, 1);
}
} else if (_root.verden.fiender["fienden" + i].blodtype == 1) {
_root.makeblod(_x, _y, _rotation);
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
} else if (_root.verden.fiender["fienden" + i].blodtype == 2) {
_root.makeblod2(_x, _y);
_root.makedrops2(_x, _y, 1);
_root.makedrops2(_x, _y, 1);
}
if (shootype == 4) {
}
if (shootype == 4) {
rotfart = -20 + (Math.random() * 40);
xfart = xfart - 0.1;
} else {
dead = 1;
}
if (shootype == 4) {
kule.kule.play();
yfart = yfart + (-3 + (Math.random() * 6));
} else {
kule.kule.gotoAndPlay(2);
kule.kule._rotation = Math.random() * 360;
kule.kule._xscale = (kule.kule._yscale = 120 + (Math.random() * 20));
}
if (shootype == 3) {
} else if (shootype == 4) {
} else {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (_root.ispaused == 0) {
_rotation = (_rotation + rotfart);
if (shootype == 2) {
} else if (shootype == 4) {
}
realx = _x + _parent._x;
realy = _y + _parent._y;
if (((realx < 600) && (realy < 450)) && (realy > -50)) {
if (shootype == 3) {
_root.spawnoffling(_x, _y, 2);
}
} else {
this.removeMovieClip();
}
if (dead == 0) {
_x = (_x + (xfart + xvar));
_y = (_y + (yfart + yvar));
yfart = yfart + 0.05;
xfart = xfart - (xfart / 80);
i = 0;
while (i < (_root.maksfiender + 1)) {
if (hitTest(_root.verden.fiender["fienden" + i])) {
if (_root.verden.fiender["fienden" + i].dead == 0) {
if (_root.verden.fiender["fienden" + i].boss == 666) {
_root.damageboss(i, shootskade, 1, 1, _x, _y, kulenr);
} else {
funnetmaal();
}
}
}
i++;
}
} else {
_y = (_y + _root.fart);
}
} else if (_root.mellomlevler == 1) {
if (shootype == 2) {
} else if (shootype == 4) {
_root.spawnoffling(_x, _y, 1);
xfart = xfart + (xfart / 15);
yfart = yfart + (yfart / 15);
}
realx = _x + _parent._x;
realy = _y + _parent._y;
if ((((realx < 550) && (realx > 0)) && (realy < 400)) && (realy > 0)) {
if (shootype == 4) {
}
} else {
this.removeMovieClip();
}
if (dead == 0) {
_x = (_x + (xfart + xvar));
_y = (_y + (yfart + yvar));
yfart = yfart + 0.05;
xfart = xfart - (xfart / 80);
i = 0;
while (i < (_root.maksfiender + 1)) {
if (hitTest(_root.verden.fiender["fienden" + i])) {
if (_root.verden.fiender["fienden" + i].dead == 0) {
_root.verden.fiender["fienden" + i].taSkade(shootskade);
_x = (_x - (xfart + xvar));
_y = (_y - (yfart + yvar));
if (_root.verden.fiender["fienden" + i].blodtype == 1) {
_root.makeblod(_x, _y, _rotation);
_root.makedrops(_x, _y, 1);
_root.makedrops(_x, _y, 1);
} else if (_root.verden.fiender["fienden" + i].blodtype == 2) {
_root.makeblod2(_x, _y);
_root.makedrops2(_x, _y, 1);
_root.makedrops2(_x, _y, 1);
}
if (shootype == 4) {
_root.makexplosjon(_x, _y);
}
dead = 1;
kule.kule.gotoAndPlay(2);
kule.kule._rotation = Math.random() * 360;
kule.kule._xscale = (kule.kule._yscale = 120 + (Math.random() * 20));
if (shootype == 3) {
} else {
this.removeMovieClip();
}
}
}
i++;
}
} else {
_y = (_y + _root.fart);
}
}
};
Symbol 1851 MovieClip Frame 75
_parent.removeMovieClip();
Symbol 1852 MovieClip [shell] Frame 1
timer = 10;
fric = 20;
shell.shell.gotoAndStop(shelltype);
onEnterFrame = function () {
_x = (_x + xfart);
_y = (_y + yfart);
_rotation = (_rotation + rotfart);
rotfart = rotfart - (rotfart / (fric * 2));
yfart = yfart + 0.5;
if (_y > 400) {
this.removeMovieClip();
}
};
Instance of Symbol 1854 MovieClip [StarFan] "fan1" in Symbol 1856 MovieClip [StarSky] Frame 1
onClipEvent (load) {
var ang = 0;
}
onClipEvent (enterFrame) {
ang = ang + 0.00628318530717959;
if (ang > (Math.PI*2)) {
ang = ang - (Math.PI*2);
}
this._rotation = Math.cos(ang) * 5;
}
Instance of Symbol 1854 MovieClip [StarFan] "fan1" in Symbol 1856 MovieClip [StarSky] Frame 1
onClipEvent (load) {
this.ang = 0;
}
onClipEvent (enterFrame) {
this.ang = this.ang + 0.00628318530717959;
if (this.ang > (Math.PI*2)) {
this.ang = this.ang - (Math.PI*2);
}
this._rotation = Math.sin(this.ang) * 5;
}
Instance of Symbol 1854 MovieClip [StarFan] "fan1" in Symbol 1856 MovieClip [StarSky] Frame 1
onClipEvent (load) {
this.ang = 0;
}
onClipEvent (enterFrame) {
this.ang = this.ang + 0.00942477796076938;
if (this.ang > (Math.PI*2)) {
this.ang = this.ang - (Math.PI*2);
}
this._rotation = Math.sin(this.ang) * 5;
}
Symbol 1862 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1868 Button
on (release) {
_root.play();
}
Symbol 1869 MovieClip Frame 1
_root.stop();
var PercentLoaded = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
this.wholeBar.bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
if (!_root.startedPlaying) {
_root.startedPlaying = true;
}
Symbol 1869 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1869 MovieClip Frame 3
_root.harloda = 1;
Instance of Symbol 278 MovieClip in Symbol 1873 MovieClip Frame 1
on (release) {
_root.phoneHome("intro");
}
Instance of Symbol 1873 MovieClip in Symbol 1877 MovieClip Frame 15
on (release) {
phoneHome("intro");
}
Symbol 1877 MovieClip Frame 225
_root.gotoAndStop(4);
Symbol 1915 Button
on (release) {
_root.phoneHome("menu");
}
Symbol 1920 Button
on (release) {
_root.phoneHome("menuMoreGames");
}
Symbol 1925 Button
on (press) {
_root.cred.play();
_root.help.gotoAndStop(1);
_root.moden.gotoAndStop(1);
_root.options.gotoAndStop(1);
}
Symbol 1929 Button
on (press) {
_root.options.play();
_root.cred.gotoAndStop(1);
_root.help.gotoAndStop(1);
_root.moden.gotoAndStop(1);
}
Symbol 1934 Button
on (press) {
_root.moden.play();
_root.cred.gotoAndStop(1);
_root.help.gotoAndStop(1);
_root.options.gotoAndStop(1);
}
Instance of Symbol 1941 MovieClip in Symbol 1942 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.cred.play();
}
Symbol 1943 MovieClip Frame 1
stop();
Symbol 1943 MovieClip Frame 10
stop();
Symbol 1954 MovieClip Frame 1
stop();
Symbol 1954 MovieClip Frame 2
stop();
Symbol 1965 MovieClip Frame 1
stop();
Instance of Symbol 1948 MovieClip in Symbol 1965 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.general_settings);
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.general_settings++;
if (_root.general_settings > 3) {
_root.general_settings = 1;
}
gotoAndStop(_root.general_settings);
_root.generalupdate();
}
Instance of Symbol 1941 MovieClip in Symbol 1965 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.options.play();
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 1
onClipEvent (load) {
if (_root.general_sound == 1) {
gotoAndStop (1);
} else if (_root.general_sound == 0) {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.general_sound = _root.general_sound + 1;
if (_root.general_sound == 2) {
_root.general_sound = 0;
}
if (_root.general_sound == 1) {
_root.menumus.gotoAndStop(3);
gotoAndStop (1);
} else if (_root.general_sound == 0) {
_root.menumus.gotoAndStop(2);
gotoAndStop (2);
}
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 1
onClipEvent (load) {
payload = function (a) {
_parent.gotoAndStop(2 - a);
};
_root.options_advanced = 1;
gotoAndStop(1 + _root.options_advanced);
payload(_root.options_advanced);
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.options_advanced = !_root.options_advanced;
gotoAndStop(1 + _root.options_advanced);
payload(_root.options_advanced);
}
Symbol 1965 MovieClip Frame 2
stop();
Instance of Symbol 1948 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.kvalitet == 1) {
gotoAndStop (1);
} else if (_root.kvalitet == 2) {
gotoAndStop (2);
} else if (_root.kvalitet == 3) {
gotoAndStop (3);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.kvalitet = _root.kvalitet + 1;
if (_root.kvalitet == 4) {
_root.kvalitet = 1;
}
if (_root.kvalitet == 1) {
gotoAndStop (1);
} else if (_root.kvalitet == 2) {
gotoAndStop (2);
} else if (_root.kvalitet == 3) {
gotoAndStop (3);
}
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.gfx_smoke == 1) {
gotoAndStop (1);
} else if (_root.gfx_smoke == 0) {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.gfx_smoke = _root.gfx_smoke + 1;
if (_root.gfx_smoke == 2) {
_root.gfx_smoke = 0;
}
if (_root.gfx_smoke == 1) {
gotoAndStop (1);
} else if (_root.gfx_smoke == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.gfx_shells == 1) {
gotoAndStop (1);
} else if (_root.gfx_shells == 0) {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.gfx_shells = _root.gfx_shells + 1;
if (_root.gfx_shells == 2) {
_root.gfx_shells = 0;
}
if (_root.gfx_shells == 1) {
gotoAndStop (1);
} else if (_root.gfx_shells == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.sound_music == 1) {
gotoAndStop (1);
} else if (_root.sound_music == 0) {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.sound_music = _root.sound_music + 1;
if (_root.sound_music == 2) {
_root.sound_music = 0;
}
if (_root.sound_music == 1) {
_root.menumus.gotoAndStop(3);
gotoAndStop (1);
} else if (_root.sound_music == 0) {
_root.menumus.gotoAndStop(2);
gotoAndStop (2);
}
}
Instance of Symbol 1954 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.gfx_sparks == 1) {
gotoAndStop (1);
} else if (_root.gfx_sparks == 0) {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.gfx_sparks = _root.gfx_sparks + 1;
if (_root.gfx_sparks == 2) {
_root.gfx_sparks = 0;
}
if (_root.gfx_sparks == 1) {
gotoAndStop (1);
} else if (_root.gfx_sparks == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 1948 MovieClip in Symbol 1965 MovieClip Frame 2
onClipEvent (load) {
if (_root.gfx_gibs == 1) {
gotoAndStop (1);
} else if (_root.gfx_gibs == 2) {
gotoAndStop (2);
} else if (_root.gfx_gibs == 3) {
gotoAndStop (3);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.gfx_gibs = _root.gfx_gibs + 1;
if (_root.gfx_gibs == 4) {
_root.gfx_gibs = 1;
}
if (_root.gfx_gibs == 1) {
gotoAndStop (1);
} else if (_root.gfx_gibs == 2) {
gotoAndStop (2);
} else if (_root.gfx_gibs == 3) {
gotoAndStop (3);
}
}
Symbol 1966 MovieClip Frame 1
stop();
Symbol 1966 MovieClip Frame 10
stop();
Instance of Symbol 1968 MovieClip "diffmed" in Symbol 1977 MovieClip Frame 1
onClipEvent (load) {
if (_root.difficulty == 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_root.menumus.gotoAndStop(2);
_root.menumus.swapDepths(1337);
_root.menumus.removeMovieClip();
_yscale = 100;
_xscale = 100;
_root.difficulty = 2;
_root.play();
}
Instance of Symbol 1970 MovieClip "diffhigh" in Symbol 1977 MovieClip Frame 1
onClipEvent (load) {
if (_root.difficulty == 3) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_root.menumus.gotoAndStop(2);
_root.menumus.swapDepths(1337);
_root.menumus.removeMovieClip();
_yscale = 100;
_xscale = 100;
_root.difficulty = 3;
_root.play();
}
Instance of Symbol 1941 MovieClip in Symbol 1977 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_yscale = 100;
_xscale = 100;
_root.moden.play();
}
Instance of Symbol 1976 MovieClip in Symbol 1977 MovieClip Frame 1
onClipEvent (load) {
if (_root.difficulty == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (rollOver) {
_yscale = 110;
_xscale = 110;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_root.menumus.gotoAndStop(2);
_root.menumus.swapDepths(1337);
_root.menumus.removeMovieClip();
_root.difficulty = 1;
_root.play();
}
Symbol 1978 MovieClip Frame 1
stop();
Symbol 1978 MovieClip Frame 10
stop();
kak.gotoAndStop(2);
Symbol 1981 MovieClip Frame 1
stop();
Symbol 1987 MovieClip Frame 1
stop();
Symbol 1987 MovieClip Frame 7
stop();
_root.jesus = 1;
_parent.gotoAndStop(4);
Symbol 1989 MovieClip Frame 1
stop();
Symbol 1989 MovieClip Frame 7
stop();
Symbol 1992 MovieClip Frame 1
stop();
Instance of Symbol 1989 MovieClip "back" in Symbol 1992 MovieClip Frame 4
onClipEvent (load) {
if (_root.jesus == 1) {
_root.jesus = 0;
gotoAndPlay (8);
}
}
Instance of Symbol 1991 MovieClip in Symbol 1992 MovieClip Frame 4
onClipEvent (enterFrame) {
_alpha = (_root.flammediff / 8);
}
Symbol 2005 MovieClip Frame 1
stop();
Symbol 2005 MovieClip Frame 2
_root.musikk.gotoAndStop(9);
Symbol 2005 MovieClip Frame 61
stop();
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
teller = 0;
tellermaks = Math.round(Math.random() * 200) + 0;
}
onClipEvent (enterFrame) {
teller = teller + 1;
if (teller >= tellermaks) {
teller = 0;
tellermaks = Math.round(Math.random() * 100) + 100;
gotoAndPlay (1);
}
}
Symbol 2012 MovieClip Frame 66
stop();
Symbol 2013 MovieClip Frame 1
fart = 10;
swapDepths(700);
xfart = 0;
yfart = 0;
skyter = 0;
exploded = 0;
explode = function () {
_root.musikk.gotoAndStop(9);
_root.musikk.swapDepths(1337);
_root.musikk.removeMovieClip();
_root.healthbaren.kalkun.kalkun.gotoAndStop(1);
exploded = 1;
explodeanim.play();
};
bulletshar = 0;
varitpa = 0;
kallebesj = 0;
onEnterFrame = function () {
if (_root.ispaused == 0) {
if (_root.shieldteller > 0) {
varitpa = 1;
_root.shieldteller = _root.shieldteller - 1;
if (_root.shieldteller == 66) {
_root.verden.mann.shield.play();
}
}
if (_root.bulletsteller > 0) {
_root.bulletsteller = _root.bulletsteller - 1;
bulletshar = 1;
} else if (bulletshar == 1) {
bulletshar = 0;
_root.ekstrabullets = 0;
var _local4 = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local3 = new ColorMatrixFilter(_local4);
_root.verden.mann.filters = [_local3];
}
if (_x < 0) {
_x = 0;
}
if (_root.hull1 == 1) {
mann.mann.main.gotoAndStop(1);
} else if (_root.hull2 == 1) {
mann.mann.main.gotoAndStop(2);
} else if (_root.hull3 == 1) {
mann.mann.main.gotoAndStop(3);
} else if (_root.hull4 == 1) {
mann.mann.main.gotoAndStop(4);
} else if (_root.hull5 == 1) {
mann.mann.main.gotoAndStop(5);
}
if (_root.weapon1 == 1) {
mann.vaapen.gotoAndStop(1);
} else if (_root.weapon2 == 1) {
mann.vaapen.gotoAndStop(2);
} else if (_root.weapon3 == 1) {
mann.vaapen.gotoAndStop(3);
} else if (_root.weapon4 == 1) {
mann.vaapen.gotoAndStop(4);
} else if (_root.weapon5 == 1) {
mann.vaapen.gotoAndStop(5);
} else if (_root.weapon6 == 1) {
mann.vaapen.gotoAndStop(6);
} else if (_root.weapon7 == 1) {
mann.vaapen.gotoAndStop(7);
} else if (_root.weapon8 == 1) {
mann.vaapen.gotoAndStop(8);
}
if ((xfart + yfart) > 0) {
if (yfart > 0) {
mann.mann.flamme._xscale = (((xfart + yfart) * 6) + 50) + _root.flammediff;
} else {
mann.mann.flamme._xscale = (((xfart - yfart) * 6) + 50) + _root.flammediff;
}
} else if (yfart > 0) {
mann.mann.flamme._xscale = (((xfart + yfart) * 3) + 50) + _root.flammediff;
} else {
mann.mann.flamme._xscale = (((xfart - yfart) * 3) + 50) + _root.flammediff;
}
realx = _x + _parent._x;
realy = _y + _parent._y;
if (exploded == 0) {
avstandx = _root._xmouse - (realx + 70);
avstandy = _root._ymouse - (realy + 5);
xfart = xfart + (avstandx / fart);
yfart = yfart + (avstandy / fart);
yfart = yfart - (yfart / 3);
xfart = xfart - (xfart / 3);
} else {
yfart = yfart + 0.2;
xfart = xfart - 0.1;
mann.mann.flamme._alpha = 0;
if (_y > 250) {
_root.blackout.play();
}
}
_x = (_x + xfart);
_y = (_y + yfart);
_rotation = (0 + (yfart * 1.8));
if (_root.rocketklar == 1) {
if (Key.isDown(82)) {
mann.rockets.vaapen.play();
_root.rocketklar = 0;
_root.rocketid = 0;
_root.startrocketcounter();
}
}
onMouseDown = function () {
skyter = 1;
};
onMouseUp = function () {
skyter = 0;
};
if (skyter == 1) {
mann.vaapen.vaapen.play();
}
} else if (_root.mellomlevler == 1) {
if (_root.flyplanet == 1) {
fittesaft = 1;
if (_root.hull1 == 1) {
mann.mann.main.gotoAndStop(1);
} else if (_root.hull2 == 1) {
mann.mann.main.gotoAndStop(2);
} else if (_root.hull3 == 1) {
mann.mann.main.gotoAndStop(3);
} else if (_root.hull4 == 1) {
mann.mann.main.gotoAndStop(4);
} else if (_root.hull5 == 1) {
mann.mann.main.gotoAndStop(5);
}
if (((_root.rocket1 == 1) || (_root.rocket2 == 1)) || (_root.rocket3 == 1)) {
mann.rockets.gotoAndStop(1);
} else {
mann.rockets.gotoAndStop(2);
}
if (_root.weapon1 == 1) {
mann.vaapen.gotoAndStop(1);
} else if (_root.weapon2 == 1) {
mann.vaapen.gotoAndStop(2);
} else if (_root.weapon3 == 1) {
mann.vaapen.gotoAndStop(3);
} else if (_root.weapon4 == 1) {
mann.vaapen.gotoAndStop(4);
} else if (_root.weapon5 == 1) {
mann.vaapen.gotoAndStop(5);
} else if (_root.weapon6 == 1) {
mann.vaapen.gotoAndStop(6);
} else if (_root.weapon7 == 1) {
mann.vaapen.gotoAndStop(7);
} else if (_root.weapon8 == 1) {
mann.vaapen.gotoAndStop(8);
}
if ((xfart + yfart) > 0) {
if (yfart > 0) {
mann.mann.flamme._xscale = ((xfart + yfart) * 6) + 50;
} else {
mann.mann.flamme._xscale = ((xfart - yfart) * 6) + 50;
}
} else if (yfart > 0) {
mann.mann.flamme._xscale = ((xfart + yfart) * 3) + 50;
} else {
mann.mann.flamme._xscale = ((xfart - yfart) * 3) + 50;
}
realx = _x + _parent._x;
realy = _y + _parent._y;
_root.flyoppteller = _root.flyoppteller + 1;
if (_root.flyoppteller > 120) {
avstandx = 200 - realx;
avstandy = -100 - realy;
_root.fade.play();
} else {
avstandx = 100 - realx;
avstandy = 200 - realy;
}
xfart = xfart + (avstandx / (fart * 5));
yfart = yfart + (avstandy / (fart * 5));
yfart = yfart - (yfart / 3);
xfart = xfart - (xfart / 3);
_x = (_x + xfart);
_y = (_y + yfart);
_rotation = (0 + (yfart * 1.5));
} else {
if (_root.hull1 == 1) {
mann.mann.main.gotoAndStop(1);
} else if (_root.hull2 == 1) {
mann.mann.main.gotoAndStop(2);
} else if (_root.hull3 == 1) {
mann.mann.main.gotoAndStop(3);
} else if (_root.hull4 == 1) {
mann.mann.main.gotoAndStop(4);
} else if (_root.hull5 == 1) {
mann.mann.main.gotoAndStop(5);
}
if (((_root.rocket1 == 1) || (_root.rocket2 == 1)) || (_root.rocket3 == 1)) {
mann.rockets.gotoAndStop(1);
} else {
mann.rockets.gotoAndStop(2);
}
if (_root.weapon1 == 1) {
mann.vaapen.gotoAndStop(1);
} else if (_root.weapon2 == 1) {
mann.vaapen.gotoAndStop(2);
} else if (_root.weapon3 == 1) {
mann.vaapen.gotoAndStop(3);
} else if (_root.weapon4 == 1) {
mann.vaapen.gotoAndStop(4);
} else if (_root.weapon5 == 1) {
mann.vaapen.gotoAndStop(5);
} else if (_root.weapon6 == 1) {
mann.vaapen.gotoAndStop(6);
} else if (_root.weapon7 == 1) {
mann.vaapen.gotoAndStop(7);
} else if (_root.weapon8 == 1) {
mann.vaapen.gotoAndStop(8);
}
if ((xfart + yfart) > 0) {
if (yfart > 0) {
mann.mann.flamme._xscale = ((xfart + yfart) * 6) + 50;
} else {
mann.mann.flamme._xscale = ((xfart - yfart) * 6) + 50;
}
} else if (yfart > 0) {
mann.mann.flamme._xscale = ((xfart + yfart) * 3) + 50;
} else {
mann.mann.flamme._xscale = ((xfart - yfart) * 3) + 50;
}
realx = _x + _parent._x;
realy = _y + _parent._y;
avstandx = 100 - realx;
avstandy = 200 - realy;
xfart = xfart + (avstandx / (fart * 5));
yfart = yfart + (avstandy / (fart * 5));
yfart = yfart - (yfart / 3);
xfart = xfart - (xfart / 3);
_x = (_x + xfart);
_y = (_y + yfart);
_rotation = (0 + (yfart * 1.5));
if (fittesaft == 1) {
_root.ispaused = 1;
_root.mellomlevler = 1;
_root.attachMovie("brief", "briefen", 70000);
_root.briefen._x = 0;
_root.briefen._y = 0;
_root.briefen.currentframe = 1;
_root.brief.skiplol.play();
fittesaft = 0;
}
}
}
};
Instance of Symbol 2012 MovieClip "shield" in Symbol 2013 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (66);
}
Instance of Symbol 1391 MovieClip [fjell2] "fjell" in Symbol 2017 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1376 MovieClip [2fjell2] "fjell2" in Symbol 2017 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1361 MovieClip [3fjell2] "fjell3" in Symbol 2017 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Symbol 2022 MovieClip Frame 1
bakke.removeMovieClip();
Instance of Symbol 1346 MovieClip [fjell] "fjell" in Symbol 2022 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1332 MovieClip [2fjell] "2fjell" in Symbol 2022 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1318 MovieClip [3fjell] "3fjell" in Symbol 2022 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1304 MovieClip [2fjellmirror] "2fjellmirror" in Symbol 2022 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 2020 MovieClip "bakke" in Symbol 2022 MovieClip Frame 2
onClipEvent (load) {
swapDepths(833);
}
Symbol 2022 MovieClip Frame 3
bakke.removeMovieClip();
Instance of Symbol 1288 MovieClip [fiende1] "fiende1" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1276 MovieClip [fiende2] "fiende2" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1265 MovieClip [fiende3] "fiende3" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1253 MovieClip [fiende4] "fiende3" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1230 MovieClip [fiende5] "fiende5" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1207 MovieClip [fiende6] "fiende6" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1195 MovieClip [fiende7] "fiende7" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1183 MovieClip [fiende8] "fiende8" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1177 MovieClip [fiende10] "fiende9" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1143 MovieClip [fiende9] "fiende10" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1138 MovieClip [fiende11] "fiende11" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 1076 MovieClip [fiende12] "fiende12" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 980 MovieClip [fiende13] "fiende13" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 961 MovieClip [fiende14] "fiende14" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 912 MovieClip [fiende15] "fiende15" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 901 MovieClip [fiende16] "fiende16" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 865 MovieClip [fiende17] "fiende17" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 854 MovieClip [fiende18] "fiende9" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 845 MovieClip [fiende19] "fiende19" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 709 MovieClip [fiende20] "fiende20" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 667 MovieClip [fiende21] "fiende14" in Symbol 2025 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1337);
this.removeMovieClip();
}
Instance of Symbol 2022 MovieClip "bakken" in Symbol 2028 MovieClip Frame 1
onClipEvent (load) {
swapDepths(15000);
}
Symbol 2037 MovieClip Frame 1
stop();
Instance of Symbol 2042 MovieClip in Symbol 2045 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.bosshealthbalance;
}
Symbol 2050 MovieClip Frame 31
stop();
Instance of Symbol 2057 MovieClip in Symbol 2060 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.rocketbarscale;
}
Symbol 2065 MovieClip Frame 41
stop();
Instance of Symbol 2066 MovieClip in Symbol 2067 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rocketklar == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 2073 MovieClip Frame 1
stop();
Instance of Symbol 2073 MovieClip "kalkun" in Symbol 2074 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.hitpointsbalance;
if (_root.game_slutt == 0) {
if ((_xscale <= 35) && (_xscale > 20)) {
gotoAndStop (2);
} else if ((_xscale <= 20) && (_xscale > 10)) {
gotoAndStop (3);
} else if ((_xscale <= 10) && (_xscale > 0)) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
}
Symbol 2082 MovieClip Frame 1
stop();
Symbol 2082 MovieClip Frame 2
play();
Symbol 2085 MovieClip Frame 1
stop();
Symbol 2085 MovieClip Frame 77
i = 0;
while (i < (_root.maksfiender + 1)) {
_root.verden.fiender["fienden" + i].removeMovieClip();
i++;
}
_root.antallfiender = 0;
Symbol 2085 MovieClip Frame 78
_root.planet = _root.planet + 1;
Symbol 2085 MovieClip Frame 87
i = -1;
while (i < 150) {
_root.verden.bakken["fjellet" + i].removeMovieClip();
_root.verden.bakken2["fjellet2" + i].removeMovieClip();
_root.verden.bakken["fjelletmirror" + i].removeMovieClip();
i++;
}
_root.changeplanet(_root.planet);
Symbol 2085 MovieClip Frame 118
_root.flyplanet = 0;
Symbol 2086 MovieClip Frame 1
stop();
Symbol 2086 MovieClip Frame 30
_root.gotoAndStop(6);
Symbol 2118 MovieClip Frame 25
this.removeMovieClip();
Symbol 2119 MovieClip Frame 37
_root.pang.play();
Symbol 2119 MovieClip Frame 38
Instance of Symbol 2118 MovieClip "man" in Symbol 2119 MovieClip Frame 38
onClipEvent (load) {
swapDepths(30001);
}
Instance of Symbol 2118 MovieClip "man" in Symbol 2119 MovieClip Frame 50
onClipEvent (load) {
swapDepths(30002);
}
Instance of Symbol 2118 MovieClip "man" in Symbol 2119 MovieClip Frame 59
onClipEvent (load) {
swapDepths(30003);
}
Symbol 2119 MovieClip Frame 110
stop();
_root.fadeout.play();
Symbol 2129 MovieClip Frame 39
gotoAndPlay (15);
Symbol 2138 MovieClip Frame 1
stop();
Symbol 2138 MovieClip Frame 2
if (_root.retning == 1) {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 1, 1);
} else {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 1, 1);
}
Symbol 2139 MovieClip Frame 1
stop();
Symbol 2139 MovieClip Frame 2
if (_root.retning == 1) {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 2, 4);
} else {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 2, 4);
}
Symbol 2140 MovieClip Frame 1
stop();
Symbol 2140 MovieClip Frame 2
rotrand = (Math.random() * 4) - 2;
if (_root.retning == 1) {
lol = 90;
} else {
lol = -90;
}
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) - 2, 3, 1);
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, (_parent._rotation + lol) + rotrand, 3, 1);
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) + 2, 3, 1);
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) + 4, 3, 1);
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, ((_parent._rotation + lol) + rotrand) - 4, 3, 1);
Symbol 2141 MovieClip Frame 1
stop();
Symbol 2141 MovieClip Frame 2
if (_root.retning == 1) {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 4, 4);
} else {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 4, 4);
}
Instance of Symbol 150 MovieClip in Symbol 2145 MovieClip Frame 1
onClipEvent (load) {
_alpha = (80 + (Math.random() * 20));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 120);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Instance of Symbol 153 MovieClip in Symbol 2145 MovieClip Frame 1
onClipEvent (load) {
_alpha = (90 + (Math.random() * 10));
gotoAndStop(Math.round(Math.random() * 4) + 1);
_xscale = ((Math.random() * 10) + 120);
rand = Math.round(Math.random() * 1);
if (rand == 0) {
_yscale = -100;
}
_yscale = (_yscale + ((Math.random() * 50) - 25));
}
Symbol 2146 MovieClip Frame 1
stop();
Symbol 2146 MovieClip Frame 2
if (_root.retning == 1) {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation + 90, 5, 1);
} else {
_root.shoot(_parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._rotation - 90, 5, 1);
}
Instance of Symbol 2147 MovieClip "overkropp" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gogo == 1) {
realx = (_x + _parent._x) + _parent._parent._x;
realy = (_y + _parent._y) + _parent._parent._y;
Xd = _root._xmouse - realx;
Yd = _root._ymouse - realy;
radAngle = Math.atan2(Yd, Xd);
if (_root._xmouse > realx) {
_xscale = 100;
_root.retning = 1;
_rotation = int((radAngle * 360) / (Math.PI*2));
} else {
_xscale = -100;
_root.retning = 0;
_rotation = (int((radAngle * 360) / (Math.PI*2)) - 180);
}
}
}
Symbol 2151 MovieClip Frame 1
stop();
Symbol 2151 MovieClip Frame 70
_parent.man._alpha = 100;
_root.gogo = 1;
swapDepths(1337);
this.removeMovieClip();
Instance of Symbol 2088 MovieClip in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = ((-_parent._x) / 2);
_y = (((-_parent._y) / 2) + 300);
}
Instance of Symbol 2148 MovieClip "man" in Symbol 2156 MovieClip Frame 1
onClipEvent (load) {
swapDepths(3000);
xfart = 0;
yfart = 0;
fotpunkt = 22;
maxfart = 5;
accel = 1;
friction = 10;
hoppfart = 10;
hopper = 0;
_root.gogo = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gogo == 1) {
realx = _x + _parent._x;
realy = _y + _parent._y;
gaar = 0;
if (Key.isDown(68)) {
gaar = 1;
if (xfart < maxfart) {
xfart = xfart + accel;
}
}
if (Key.isDown(65)) {
gaar = 2;
if (xfart > (-maxfart)) {
xfart = xfart - accel;
}
}
if (Key.isDown(32)) {
_root.sjold = 1;
overkropp.gotoAndStop(2);
} else {
overkropp.gotoAndStop(_root.vaapennr);
if (_root.sjold == 1) {
_root.sjold = 0;
}
}
if (_root.retning == 1) {
ben._xscale = 100;
} else {
ben._xscale = -100;
}
if (hopper == 0) {
if (gaar == 1) {
if (_root.retning == 1) {
ben.gotoAndStop(1);
} else {
ben.gotoAndStop(3);
}
} else if (gaar == 2) {
if (_root.retning == 1) {
ben.gotoAndStop(3);
} else {
ben.gotoAndStop(1);
}
} else {
ben.gotoAndStop(2);
}
} else {
ben.gotoAndStop(4);
}
if (_root.verden.bakke.hitTest(realx + 10, realy + 10, true)) {
if (xfart > 0) {
xfart = 0;
}
} else if (_root.verden.bakke.hitTest(realx - 10, realy + 10, true)) {
if (xfart < 0) {
xfart = 0;
}
} else if (_root.verden.bakke.hitTest(realx + 10, realy - 10, true)) {
if (xfart > 0) {
xfart = 0;
}
} else if (_root.verden.bakke.hitTest(realx - 10, realy - 10, true)) {
if (xfart < 0) {
xfart = 0;
}
}
if (_root.verden.bakke.hitTest(realx, realy + fotpunkt, true)) {
hopper = 0;
if (yfart > 0) {
yfart = 0;
}
i = 0;
while (i < 10) {
realy = _y + _parent._y;
if (_root.verden.bakke.hitTest(realx, (realy + fotpunkt) - 1, true)) {
_y = (_y - 1);
}
i++;
}
if (Key.isDown(87)) {
ben.gotoAndStop(4);
ben.ben.gotoAndPlay(1);
hopper = 1;
yfart = -hoppfart;
}
} else {
yfart = yfart + 0.5;
}
_y = (_y + yfart);
_x = (_x + xfart);
xfart = xfart - (xfart / friction);
}
}
Instance of Symbol 2155 MovieClip in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._x;
_y = (_parent._y + 600);
}
Instance of Symbol 258 MovieClip [fiender] "fiender" in Symbol 2156 MovieClip Frame 1
onClipEvent (load) {
swapDepths(1999);
}
Symbol 2158 MovieClip Frame 1
stop();
Symbol 2158 MovieClip Frame 30
stop();
Symbol 2163 Button
on (release) {
_parent.play();
}
Symbol 2169 Button
on (release) {
stoppframe = 5;
play();
}
Symbol 2172 MovieClip Frame 1
stop();
Symbol 2172 MovieClip Frame 10
stop();
Instance of Symbol 2165 MovieClip in Symbol 2172 MovieClip Frame 10
on (rollOver) {
_yscale = 105;
_xscale = 105;
}
on (rollOut) {
_yscale = 100;
_xscale = 100;
}
on (press) {
_yscale = 95;
_xscale = 95;
}
on (release) {
_root.phoneHome("gameOver");
}
Instance of Symbol 2171 MovieClip in Symbol 2172 MovieClip Frame 10
on (release) {
_parent.play();
_parent.stoppframe = 4;
}
Symbol 2172 MovieClip Frame 30
_root.gotoAndStop(stoppframe);
this.swapDepths(1337);
this.removeMovieClip();
Symbol 2173 MovieClip Frame 1
stop();
Symbol 2173 MovieClip Frame 7
stop();
Instance of Symbol 2184 MovieClip in Symbol 2185 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 7) + 1);
lol = Math.random() * 1;
if (lol == 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_xscale = (_xscale + (10 - (Math.random() * 20)));
_yscale = (_yscale + (10 - (Math.random() * 20)));
}
Symbol 2186 MovieClip Frame 1
stop();
Symbol 2186 MovieClip Frame 2
_root.shootr(3, 4, 1, _root.verden.mann._x, _root.verden.mann._y, _root.verden.mann._rotation + 90, 5);
Symbol 2192 MovieClip Frame 14
stop();
Symbol 2196 MovieClip Frame 12
stop();
Symbol 2197 MovieClip Frame 11
stop();
Symbol 2206 MovieClip Frame 11
stop();
Symbol 2209 MovieClip Frame 16
stop();
Symbol 2213 MovieClip Frame 11
stop();
Symbol 2214 MovieClip Frame 1
smokerand = Math.round(Math.random() * 3) + 1;
if (smokerand == 1) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 2) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 3) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
} else if (smokerand == 4) {
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
_root.smoke2((((((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x) + _parent._parent._parent._parent._x) - 50) + (Math.random() * 100), (((((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y) + _parent._parent._parent._parent._y) - 50) + (Math.random() * 100), 1);
}
if (_parent._parent.pangtype == 3) {
gotoAndStop (3);
} else {
gotoAndStop(Math.round(Math.random() * 1) + 1);
}
pang._rotation = Math.random() * 360;
pang._xscale = (pang._yscale = 100 + (Math.random() * 20));
pang._xscale = (pang._yscale = 90 + (Math.random() * 10));
havesmoke = Math.round(Math.random() * 1) + 1;
if (havesmoke == 1) {
royk._alpha = 70 + (Math.random() * 30);
royk._rotation = Math.random() * 360;
royk._xscale = (royk._yscale = 90 + (Math.random() * 20));
} else {
royk._alpha = 0;
}
havedeler1 = Math.round(Math.random() * 1) + 1;
if (havedeler1 == 1) {
deler1._alpha = 100;
deler1._xscale = (deler1._yscale = 90 + (Math.random() * 20));
} else {
deler1._alpha = 0;
}
havegnist = Math.round(Math.random() * 2) + 1;
if (havegnist == 1) {
gnist._alpha = 0;
gnist2._alpha = 0;
} else if (havegnist == 2) {
gnist._rotation = Math.random() * 360;
gnist._alpha = 90 + (Math.random() * 10);
gnist2._alpha = 0;
} else if (havegnist == 3) {
gnist._rotation = Math.random() * 360;
gnist._alpha = 90 + (Math.random() * 10);
gnist2._rotation = Math.random() * 360;
gnist2._alpha = 90 + (Math.random() * 10);
}
Symbol 2217 MovieClip Frame 1
stop();
Symbol 2217 MovieClip Frame 61
stop();
Instance of Symbol 2252 MovieClip in Symbol 2264 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 2184 MovieClip in Symbol 2292 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 7) + 1);
lol = Math.random() * 1;
if (lol == 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_xscale = (_xscale + (10 - (Math.random() * 20)));
_yscale = (_yscale + (10 - (Math.random() * 20)));
}
Instance of Symbol 2252 MovieClip in Symbol 2317 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 2252 MovieClip in Symbol 2327 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 2252 MovieClip in Symbol 2340 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 2173 MovieClip "back" in Symbol 2373 MovieClip Frame 1
onClipEvent (load) {
if (_root.jesus == 1) {
_root.jesus = 0;
gotoAndPlay (8);
}
}
Instance of Symbol 2174 MovieClip in Symbol 2373 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (_root.flammediff / 8);
}
Instance of Symbol 2174 MovieClip in Symbol 2373 MovieClip Frame 204
onClipEvent (enterFrame) {
_alpha = (_root.flammediff / 8);
}
Instance of Symbol 2370 MovieClip in Symbol 2373 MovieClip Frame 1053
onClipEvent (load) {
skale = _xscale;
}
on (rollOver) {
_yscale = (skale + 5);
_xscale = (skale + 5);
}
on (rollOut) {
_yscale = skale;
_xscale = skale;
}
on (press) {
_yscale = (skale - 5);
_xscale = (skale - 5);
}
on (release) {
_yscale = skale;
_xscale = skale;
_root.phoneHome("victory");
}
Symbol 2373 MovieClip Frame 1077
stop();
Instance of Symbol 2171 MovieClip in Symbol 2373 MovieClip Frame 1077
on (release) {
_root.gotoAndStop(4);
_parent.removeMovieClip();
}