home *** CD-ROM | disk | FTP | other *** search
- if(_root.fade == "out")
- {
- _root[_root.currentloop].stop();
- }
- if(_root.startgame == true)
- {
- _root.maindisplay.gotoAndStop("blank");
- _root.clean();
- _root.depth = 2;
- _root.init();
- _root.status._visible = true;
- if(_root.levelnumber == 1)
- {
- _root.ship.shiptype.gotoAndStop("nolaser");
- _root.havelaser = false;
- _root.status.mask.laser._xscale = 0;
- _root.protectorlevel = 0;
- _root.weaponnumber = 1;
- _root.passtext1 = "neeL";
- _root.display.gotoAndPlay("mission");
- }
- else if(_root.levelnumber == 2)
- {
- _root.protectorlevel = 0;
- _root.havelaser = true;
- _root.ship.shiptype.gotoAndStop("yeslaser");
- if(_root.weaponnumber > 2)
- {
- _root.weaponnumber = 1;
- }
- _root.passtext1 = "eGdl";
- _root.display.gotoAndPlay("mission");
- }
- else if(_root.levelnumber == 3)
- {
- if(_root.difficulty == "easy")
- {
- _root.protectorlevel = 2;
- _root.ship.protector.gotoAndStop("protector");
- }
- else if(_root.difficulty == "expert")
- {
- _root.protectorlevel = 1;
- _root.ship.protector.gotoAndStop("protector");
- }
- _root.havelaser = true;
- _root.ship.shiptype.gotoAndStop("yeslaser");
- if(_root.weaponnumber > 3)
- {
- _root.weaponnumber = 1;
- }
- _root.passtext1 = "top8";
- _root.display.gotoAndPlay("mission");
- }
- else if(_root.levelnumber == 4)
- {
- _root.display.gotoAndPlay("fmission");
- _root.havelaser = true;
- _root.ship.shiptype.gotoAndStop("yeslaser");
- _root.passtext1 = "lylS";
- _root.assignx = 900;
- _root.assigny = 100;
- _root.missilepowerupfunction();
- _root.assignx = 900;
- _root.assigny = 200;
- _root.weaponpowerupfunction();
- _root.assignx = 900;
- _root.assigny = 300;
- _root.missilepowerupfunction();
- _root.assignx = 900;
- _root.assigny = 400;
- _root.protectorpowerupfunction();
- }
- if(_root.mode == "survival")
- {
- _root.shipshield = 1;
- _root.assignx = 710;
- _root.assigny = 250;
- _root.weaponpowerupfunction();
- _root.havelaser = false;
- _root.ship.shiptype.gotoAndStop("nolaser");
- _root.status.mask.laser._xscale = 0;
- _root.status.score = int(_root.totalscore2);
- }
- else if(_root.mode == "mission")
- {
- if(_root.difficulty == "easy")
- {
- _root.shipshield = 50;
- }
- else if(_root.difficulty == "expert")
- {
- if(_root.shipshield > 45)
- {
- _root.shipshield = 50;
- }
- else
- {
- _root.shipshield += 5;
- }
- }
- _root.status.score = int(_root.totalscore);
- }
- _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal);
- if(_root.difficulty == "easy")
- {
- _root.enemiesrequired = 10;
- }
- else if(_root.difficulty == "expert")
- {
- _root.enemiesrequired = 13;
- }
- _quality = "low";
- _root.bluedepth = 10010;
- _root.ship._x = 100;
- _root.ship._y = 200;
- _root.whichmissileframe = "level" + _root.mhlevel;
- _root.status.mask.missile.gotoAndStop(_root.whichmissileframe);
- _root.status.bomb.gotoAndStop(_root.numberofbombs + 1);
- _root.enemyticker = -25;
- _root.firetimer = 0;
- _root.sgreenfunction = false;
- _root.sgreentimer = 0;
- _root.bosskilled = false;
- _root.gamestart = true;
- _root.gametimer = true;
- _root.timing = true;
- _root.time = 0;
- _root.boss = false;
- _root.bosscoming = 0;
- _root.bossready = false;
- _root.targetenemy = 0;
- _root.maindisplay.gotoAndStop("blank");
- _root.pausedisplay._visible = false;
- _root.bg.gotoAndStop("level" + _root.levelnumber);
- _root.currentscore = _root.totalscore;
- if(_root.globalmusiccontrol == "play")
- {
- _root.musicplaying = true;
- _root.fade = "in";
- _root.loopvolume = 100;
- if(_root.mode == "mission")
- {
- _root.currentloop = "loop" + _root.levelnumber;
- _root[_root.currentloop].start(0,20);
- _root[_root.currentloop].setVolume(100);
- _root.status.mask.box._x = 212.3;
- }
- else if(_root.mode == "survival")
- {
- _root.currentloop = "survivalloop";
- _root[_root.currentloop].start(0,9999999);
- _root[_root.currentloop].setVolume(300);
- }
- _root.status.mask.box._x = 212.3;
- }
- else
- {
- _root.status.mask.box._x = 245;
- }
- _root.status._visible = true;
- _root.transform = true;
- _root.startgame = false;
- if(_root.numberofbombs == 0)
- {
- _root.passtext2 = "16Eg";
- }
- else if(_root.numberofbombs == 1)
- {
- _root.passtext2 = "Gecl";
- }
- else if(_root.numberofbombs == 2)
- {
- _root.passtext2 = "bvWi";
- }
- else if(_root.numberofbombs == 3)
- {
- _root.passtext2 = "Sidk";
- }
- else if(_root.numberofbombs == 4)
- {
- _root.passtext2 = "57Fd";
- }
- else if(_root.numberofbombs == 5)
- {
- _root.passtext2 = "Wwpa";
- }
- else if(_root.numberofbombs == 6)
- {
- _root.passtext2 = "3dEp";
- }
- else if(_root.numberofbombs == 7)
- {
- _root.passtext2 = "rtms";
- }
- else if(_root.numberofbombs == 8)
- {
- _root.passtext2 = "RFdY";
- }
- else if(_root.numberofbombs == 9)
- {
- _root.passtext2 = "DFSc";
- }
- else if(_root.numberofbombs == 10)
- {
- _root.passtext2 = "qwt7";
- }
- else if(_root.numberofbombs == 11)
- {
- _root.passtext2 = "mzx6";
- }
- else if(_root.numberofbombs == 12)
- {
- _root.passtext2 = "ukdf";
- }
- else if(_root.numberofbombs == 13)
- {
- _root.passtext2 = "Elmb";
- }
- else if(_root.numberofbombs == 14)
- {
- _root.passtext2 = "1l1l";
- }
- else if(_root.numberofbombs == 15)
- {
- _root.passtext2 = "ghtc";
- }
- if(_root.mhlevel == 0)
- {
- _root.passtext3 = "addd";
- }
- else if(_root.mhlevel == 1)
- {
- _root.passtext3 = "ALfj";
- }
- else if(_root.mhlevel == 2)
- {
- _root.passtext3 = "ruGk";
- }
- else if(_root.mhlevel == 3)
- {
- _root.passtext3 = "ryNh";
- }
- else if(_root.mhlevel == 4)
- {
- _root.passtext3 = "6kjs";
- }
- else if(_root.mhlevel == 5)
- {
- _root.passtext3 = "142H";
- }
- if(_root.weaponnumber == 1)
- {
- _root.passtext4 = "h8vb";
- }
- else if(_root.weaponnumber == 2)
- {
- _root.passtext4 = "eaaP";
- }
- else if(_root.weaponnumber == 3)
- {
- _root.passtext4 = "rty4";
- }
- else if(_root.weaponnumber == 4)
- {
- _root.passtext4 = "7gf7";
- }
- if(_root.weapontype == "red")
- {
- _root.passtext5 = "alsk";
- }
- else if(_root.weapontype == "blue")
- {
- _root.passtext5 = "KAKA";
- }
- else if(_root.weapontype == "green")
- {
- _root.passtext5 = "99Kl";
- }
- }
- if(_root.abortmission == true)
- {
- _root[_root.currentloop].stop();
- _root.pausedisplay.gotoAndStop("pause");
- _root.pausedisplay._visible = false;
- _root.paused = false;
- _quality = "high";
- _root.levelnumber = 1;
- _root.reset = true;
- _root.controls._visible = false;
- _root.gamestart = false;
- _root.abortmission = false;
- _root.maindisplay.gotoAndStop("title");
- _root.clean();
- _root.gamestart = false;
- _root.youaredead = false;
- _root.time = 0;
- _root.bombsound = false;
- _root.havelaser = false;
- _root.mhshotting = false;
- _root.sgreenfunction = false;
- _root.sgreentimer = 0;
- _root.autorotate = false;
- _root.protectorlevel = 0;
- _root.hitshipcounter = 0;
- _root.shipshieldtotal = _root.shipshield = 50;
- _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal);
- _root.gametimer = false;
- _root.numberofbombs = 3;
- _root.targetenemy = 0;
- _root.mhlevel = 0;
- _root.whichmissileframe = "level" + _root.mhlevel;
- _root.status.mask.missile.gotoAndStop(_root.whichmissileframe);
- _root.protectorlevel = 0;
- _root.weapontype = "red";
- _root.weaponnumber = 1;
- _root.boss3x = 600;
- _root.boss3y = 100;
- _root.boss3s = 5;
- _root.boss3turndelay = 5;
- _root.boss3totalhealth = _root.boss3health = 299 * _root.health;
- _root.maindisplay.givepass.gotoAndStop("blank");
- }
-