STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

RedShift - level up your ship and take on the enemy.swf

This is the info page for
Flash #89424

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { function deadClick() {} function gotoMySite() { getURL('http://www.diseasedproductions.net', _blank); } function gotoMySite2() { getURL(siteURL1, _blank); } function gotoMySite3() { getURL(siteURL3, _blank); } function gotoMySite4() { getURL(siteURL2, _blank); } protocol = _url.substr(0, _url.indexOf(':')); if (protocol == 'file') { trace('local game'); siteURL1 = 'http://www.crazymonkeygames.com?gameref=redshift'; siteURL2 = 'http://www.crazymonkeygames.com/guide/Redshift?gameref=redshift'; siteURL3 = 'http://www.crazymonkeygames.com/Blueshift.html?gameref=redshift'; } else { if (protocol == 'http') { doubleSlash = _url.indexOf('//'); server = _url.substr(doubleSlash + 2, _url.indexOf('/', doubleSlash + 2) - doubleSlash - 2); server = server.toUpperCase(); if (server.indexOf('WWW.') != -1) { server = server.substr(server.indexOf('WWW.') + 4, server.length); } if (server.indexOf('CRAZYMONKEYGAMES.COM') != -1) { siteURL1 = 'http://www.crazymonkeygames.com'; siteURL2 = 'http://www.crazymonkeygames.com/guide/Redshift'; siteURL3 = 'http://www.crazymonkeygames.com/Blueshift.html'; } else { siteURL1 = 'http://www.crazymonkeygames.com?gameref=redshift'; siteURL2 = 'http://www.crazymonkeygames.com/guide/Redshift?gameref=redshift'; siteURL3 = 'http://www.crazymonkeygames.com/Blueshift.html?gameref=redshift'; } } } stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); myMenu.builtInItems.quality = true; var copyrightNotice = new ContextMenuItem('© 2010 Diseased Productions', deadClick); var mySiteLink = new ContextMenuItem('Diseased Productions', gotoMySite); var mySiteLink2 = new ContextMenuItem('Crazy Monkey Games', gotoMySite2); var mySiteLink3 = new ContextMenuItem('Play More Games', gotoMySite2); var mySiteLink4 = new ContextMenuItem('Play Blueshift', gotoMySite3); var mySiteLink5 = new ContextMenuItem('Game Guide, Help, Tips', gotoMySite4); copyrightNotice.separatorBefore = true; mySiteLink.separatorBefore = true; myMenu.customItems.push(mySiteLink5, mySiteLink, mySiteLink2, mySiteLink3, mySiteLink4, copyrightNotice); _root.menu = myMenu; Stage.scaleMode = 'noScale'; } movieClip 3 { } movieClip 5 { } movieClip 9 { } movieClip 11 { } movieClip 14 { } movieClip 17 { } movieClip 19 { } movieClip 23 { } movieClip 26 { } movieClip 28 { } movieClip 30 { } movieClip 32 { } movieClip 33 { } movieClip 35 { } movieClip 37 { } movieClip 39 { } movieClip 41 { } movieClip 43 { } movieClip 45 { } movieClip 47 { } movieClip 49 { } movieClip 51 { } movieClip 52 { } movieClip 55 { } movieClip 57 { } movieClip 62 { } movieClip 63 { } movieClip 65 { } button 68 { on (release) { _root.nextFrame(); } } movieClip 69 { frame 1 { stop(); } } instance of movieClip 69 { onClipEvent (enterFrame) { barMC.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (barMC.bar._xscale >= 100 && _currentframe == 1) { gotoAndStop(2); } } } movieClip 71 { } movieClip 73 { } movieClip 86 { frame 1 { stop(); } } movieClip 87 { instance of movieClip 55 { onClipEvent (release) { getURL(_root.siteURL1, '_blank'); } } instance of movieClip 86 { onClipEvent (enterFrame) { chance = random(90); if (chance == 1) { play(); } } } frame 151 { if (_root.ad.meaty == true) { _root.nextFrame(); } else { stop(); } } } movieClip 88 { } button 100 { on (release) { getURL(siteURL2, _blank); } } button 104 { on (release) { getURL(siteURL2, _blank); } } button 108 { on (release) { getURL(siteURL3, _blank); } } button 112 { on (release) { getURL(siteURL1, _blank); } } button 117 { on (release) { getURL('http://www.diseasedproductions.net', _blank); } } button 121 { on (release) { getURL('http://www.lee-miller.co.uk', _blank); } } movieClip 124 { } frame 2 { updateStats = function () { inventory = _root.game.character.inventory; equipped = _root.game.character.equipped; empEquipped = _root.game.character.empEquipped; recycledItems = _root.game.character.recycledItems; exp = _root.game.character.exp; lvl = _root.game.character.lvl; saveGame(); }; planetOn = 0; charUsed = 0; soundConfig = 0; saveGame = function () { mySharedObject = SharedObject.getLocal('grasp_the_steaks_tight_with_your_gravey_stained_fingers'); mySharedObject.data.levelScores = levelScores; mySharedObject.data.userName = userName; mySharedObject.data.inventory = inventory; mySharedObject.data.equipped = equipped; mySharedObject.data.empEquipped = empEquipped; mySharedObject.data.recycledItems = recycledItems; mySharedObject.data.exp = exp; mySharedObject.data.lvl = this.lvl; mySharedObject.flush(); mySharedObject = new Object(); }; loadGame = function () { mySharedObject = SharedObject.getLocal('grasp_the_steaks_tight_with_your_gravey_stained_fingers'); if (mySharedObject.data.levelScores == undefined) { equipped = 'wep1'; empEquipped = 'emp1'; inventory = new Array(); levelScores = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); recycledItems = 0; exp = 0; lvl = 1; userName = 'Enter Name Here'; } else { equipped = mySharedObject.data.equipped; empEquipped = mySharedObject.data.empEquipped; inventory = mySharedObject.data.inventory; levelScores = mySharedObject.data.levelScores; recycledItems = mySharedObject.data.recycledItems; exp = mySharedObject.data.exp; lvl = mySharedObject.data.lvl; userName = mySharedObject.data.userName; } saveGame(); }; eraseGame = function () { equipped = 'wep1'; empEquipped = 'emp1'; inventory = new Array(); levelScores = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); recycledItems = 0; exp = 0; lvl = 1; userName = 'Enter Name Here'; saveGame(); }; loadGame(); muteFun = function () { if (_root.soundConfig == 0) { soundConfig = 1; soundText = 'Music: OFF / SFX: ON'; music.mute = true; sfx.mute = false; sfx2.mute = false; soundMan.t = 120; } else { if (_root.soundConfig == 1) { soundConfig = 2; soundText = 'Music: ON / SFX: OFF'; music.mute = false; sfx.mute = true; sfx2.mute = false; soundMan.t = 120; } else { if (_root.soundConfig == 2) { soundConfig = 3; soundText = 'Music: OFF / SFX: OFF'; music.mute = true; sfx.mute = true; sfx2.mute = true; soundMan.t = 120; } else { if (_root.soundConfig == 3) { soundConfig = 0; soundText = 'Music: ON / SFX: ON'; music.mute = false; sfx.mute = false; sfx2.mute = false; soundMan.t = 120; } } } } }; } movieClip 129 { } movieClip 131 { } movieClip 133 { } movieClip 134 { instance of movieClip 131 { onClipEvent (load) { _rotation = random(360); } } instance of movieClip 133 { onClipEvent (load) { _rotation = random(360); } } } movieClip 137 { } movieClip 138 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 141 { } movieClip 143 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 145 { } movieClip 146 { instance of movieClip 143 { onClipEvent (enterFrame) { chance = random(20) + 1; if (chance == 1) { play(); } } } instance of movieClip 138 { onClipEvent (enterFrame) { chance = random(20) + 1; if (chance == 1) { play(); } } } } movieClip 147 { instance of movieClip 143 { onClipEvent (enterFrame) { chance = random(20) + 1; if (chance == 1) { play(); } } } instance of movieClip 138 { onClipEvent (enterFrame) { chance = random(20) + 1; if (chance == 1) { play(); } } } instance of movieClip 146 { onClipEvent (load) { stX = _x; stY = _y; } onClipEvent (enterFrame) { _alpha = random(50); _x = stX + random(20) - 10; _y = stY + random(20) - 10; } } } instance of movieClip 147 { onClipEvent (release) { getURL('http://www.diseasedproductions.net', _blank); } onClipEvent (load) { stX = _x; stY = _y; _alpha = 0; timer = 180; } onClipEvent (enterFrame) { timer -= 1; if (timer < 21) { if (_alpha > 0) { _alpha = _alpha - 5; } } else { if (_alpha < 100) { _alpha = _alpha + 5; } } if (timer < 1) { _root.gotoAndStop(6); } _x = stX + random(10) - 5; _y = stY + random(10) - 5; } } frame 6 { stop(); writeStats = function () { stat = ''; if (textBox.tOn == 0) { stat += 'Clarke: \r'; } else { if (textBox.tOn == 1) { stat += 'Mayday: \r'; } else { if (textBox.tOn == 2) { stat += 'Hammett: \r'; } } } stat += 'Level: ' + _root.lvl + '\n'; if (textBox.tOn == 0) { stat += 'ATP: ' + (10 + lvl * 3) + '(+' + lvl + ')' + '\n'; } else { stat += 'ATP: ' + (10 + lvl * 2) + '\n'; } if (textBox.tOn == 1) { stat += 'HP: ' + (10 + lvl * 9) + '(+' + lvl + ')' + '\n'; } else { stat += 'HP: ' + (10 + lvl * 8) + '\n'; } if (textBox.tOn == 2) { stat += 'Evasion: +1\r'; } misCom = 0; a = 0; while (a < levelScores.length) { if (levelScores[a] == 1) { misCom += 1; } ++a; } if (misCom > 23) { stat += '\rMissions Completed: ' + misCom + '/' + levelScores.length + '\n'; } else { stat += '\rMissions Completed: ' + misCom + '/' + 24 + '\n'; } }; } movieClip 153 { } movieClip 154 { instance of movieClip 153 { onClipEvent (load) { _y = -500; } onClipEvent (enterFrame) { _y = _y + 8; if (_y > 1000) { _y = -500; } } } } movieClip 158 { } movieClip 165 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 168 { } instance ch2 of movieClip 168 { onClipEvent (enterFrame) { _x = _x - (_x - xp) / 4; } } movieClip 171 { } instance ch1 of movieClip 171 { onClipEvent (enterFrame) { _x = _x - (_x - xp) / 4; } } movieClip 174 { } instance ch0 of movieClip 174 { onClipEvent (enterFrame) { _x = _x - (_x - xp) / 4; } } movieClip 178 { frame 1 { stop(); } } movieClip 184 { frame 1 { stop(); } } movieClip 186 { instance of movieClip 184 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 10; } else { this.cacheAsBitmap = true; } } } } instance textBox of movieClip 186 { onClipEvent (load) { tOn = 0; t = 0; txt0 = 'Pilot Clarke: Capable of average speed and maneuvering. Gains 1 additional ATP per level.'; txt1 = 'Pilot Mayday: Capable of taking extra hits at the cost of overall speed. Gains 1 additional HP per level.'; txt2 = 'Pilot Hammett: Capable of quick speed and maneuvering. Has 15% chance to dodge enemy bullets.'; speech = ''; pos = new Array(200, -80, -180); pos2 = new Array(800, 800, 800); a = 0; while (a < 3) { _root['ch' + a].xp = pos[a]; _root['sh' + a].xp = pos2[a]; ++a; } _root.writeStats(); } onClipEvent (enterFrame) { if (_root.warning._currentframe == 2) { a = 0; while (a < 4) { if (t < this['txt' + tOn].length) { speech += this['txt' + tOn].charAt(t); _root.sfx.gotoAndPlay(60); ++t; } else { ++delay; } ++a; } } } } button 191 { on (rollOver) { if (warning._currentframe == 2) { cur.s = 2; } _root.sfx.gotoAndPlay(60); } on (release) { if (warning._currentframe == 2) { if (_root.levelScores[0] == 0) { _root.levelOn = 1; _root.bossCheckpoint = false; _root.planetOn = 0; _root.maxRare = 1; _root.gotoAndStop('game'); } else { _root.charUsed = textBox.tOn; gotoAndStop('levelSelect'); } } } } button 195 { on (rollOver) { if (warning._currentframe == 2) { cur.s = 3; } _root.sfx.gotoAndPlay(60); } on (release) { if (warning._currentframe == 2) { warning.gotoAndStop(1); } } } button 199 { on (rollOver) { if (warning._currentframe == 2) { cur.s = 1; } _root.sfx.gotoAndPlay(60); } on (release) { ++textBox.tOn; if (textBox.tOn > 2) { textBox.tOn = 0; } textBox.b = textBox.tOn; a = 0; while (a < 3) { _root['ch' + a].xp = textBox.pos[textBox.b]; _root['sh' + a].xp = textBox.pos2[textBox.b]; ++textBox.b; if (textBox.b > 2) { textBox.b = 0; } ++a; } textBox.speech = ''; textBox.t = 0; writeStats(); } } button 203 { on (rollOver) { if (warning._currentframe == 2) { cur.s = 0; } _root.sfx.gotoAndPlay(60); } on (release) { --textBox.tOn; if (textBox.tOn < 0) { textBox.tOn = 2; } textBox.b = textBox.tOn; a = 0; while (a < 3) { _root['ch' + a].xp = textBox.pos[textBox.b]; _root['sh' + a].xp = textBox.pos2[textBox.b]; ++textBox.b; if (textBox.b > 2) { textBox.b = 0; } ++a; } textBox.speech = ''; textBox.t = 0; writeStats(); } } movieClip 208 { frame 1 { stop(); } } movieClip 209 { } instance cur of movieClip 209 { onClipEvent (load) { xp = new Array(281, 535, 487, 672); yp = new Array(308, 308, 148, 148); s = 0; } onClipEvent (enterFrame) { if (_root.warning._currentframe == 2) { if (Key.isDown(39) && kReady == true) { kReady = false; ++s; if (s > 3) { s = 0; } _root.sfx.gotoAndPlay(60); } if (Key.isDown(37) && kReady == true) { kReady = false; --s; if (s < 0) { s = 3; } _root.sfx.gotoAndPlay(60); } if (Key.isDown(38) && kReady == true) { kReady = false; if (s == 0) { s = 2; } else { if (s == 1) { s = 3; } else { if (s == 2) { s = 0; } else { if (s == 3) { s = 1; } } } } _root.sfx.gotoAndPlay(60); } if (Key.isDown(40) && kReady == true) { kReady = false; if (s == 0) { s = 2; } else { if (s == 1) { s = 3; } else { if (s == 2) { s = 0; } else { if (s == 3) { s = 1; } } } } _root.sfx.gotoAndPlay(60); } if (Key.isDown(65) && kReady == true) { kReady = false; if (s < 2) { if (s == 1) { ++_parent.textBox.tOn; if (_parent.textBox.tOn > 2) { _parent.textBox.tOn = 0; } } else { if (s == 0) { --_parent.textBox.tOn; if (_parent.textBox.tOn < 0) { _parent.textBox.tOn = 2; } } } _parent.textBox.b = _parent.textBox.tOn; a = 0; while (a < 3) { _root['ch' + a].xp = _parent.textBox.pos[_parent.textBox.b]; _root['sh' + a].xp = _parent.textBox.pos2[_parent.textBox.b]; ++_parent.textBox.b; if (_parent.textBox.b > 2) { _parent.textBox.b = 0; } ++a; } _parent.textBox.speech = ''; _parent.textBox.t = 0; _root.writeStats(); } else { if (s == 2) { _root.charUsed = _parent.textBox.tOn; if (_root.levelScores[0] == 0) { _root.levelOn = 1; _root.bossCheckpoint = false; _root.planetOn = 0; _root.maxRare = 1; _root.gotoAndStop('game'); } else { _root.gotoAndStop('levelSelect'); } } else { if (s == 3) { _root.warning.gotoAndStop(1); } } } } if (!Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40) && !Key.isDown(65)) { kReady = true; } } _x = _x - (_x - xp[s]) / 4; _y = _y - (_y - yp[s]) / 4; this.ff.gotoAndStop(s + 1); } } button 218 { on (release) { muteFun(); } } movieClip 220 { } instance soundMan of movieClip 220 { onClipEvent (load) { t = 0; } onClipEvent (enterFrame) { if (Key.isDown(77) && kReady == true) { kReady = false; _root.muteFun(); } if (!Key.isDown(77)) { kReady = true; } if (t > 0) { --t; } else { _parent.soundText = ''; } } } button 226 { on (rollOver) { cur.s = 0; } on (release) { _root.eraseGame(); _root.gotoAndPlay(5); } } button 230 { on (rollOver) { cur.s = 1; } on (release) { gotoAndStop(2); } } movieClip 241 { } movieClip 243 { } movieClip 244 { instance of movieClip 241 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(6); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(7); } } instance of movieClip 241 { onClipEvent (load) { gotoAndStop(8); } } } movieClip 252 { frame 1 { stop(); } instance f1 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 0; } } frame 2 { stop(); } instance f1 of movieClip 158 { onClipEvent (load) { _x = -15; _y = -9.5; } } instance f2 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 0; } } instance f3 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 9.5; } } instance f1 of movieClip 158 { onClipEvent (load) { _x = -15; _y = -6.5; } } instance f3 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 6.5; } } instance f2 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 6.5; } } frame 5 { stop(); } instance f1 of movieClip 158 { onClipEvent (load) { _x = -15; _y = 0; } } } movieClip 257 { } movieClip 261 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 1; } } } } } movieClip 268 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 1; } } } } } movieClip 271 { } movieClip 276 { } movieClip 277 { frame 1 { stop(); } instance barrelGlow of movieClip 271 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 0.5; } } } } instance of movieClip 276 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } frame 7 { if (_parent._parent.shoot == true) { gotoAndPlay(2); } } } movieClip 284 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 0.5; } } } } } movieClip 291 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 0.5; } } } } } movieClip 293 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1 || _parent._currentframe > 15) { if (_alpha > 0) { _alpha = _alpha - 0.5; } } else { if (_alpha < 100) { _alpha = _alpha + 2; } } } } } movieClip 300 { } movieClip 302 { frame 1 { stop(); } } movieClip 306 { } movieClip 312 { frame 1 { stop(); } } movieClip 314 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 0.5; } } } } } movieClip 320 { frame 1 { stop(); } frame 10 { if (_root.game.ship.powah < 200) { gotoAndPlay(2); } else { gotoAndStop(1); } } } movieClip 327 { } movieClip 329 { frame 1 { stop(); } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } instance of movieClip 327 { onClipEvent (load) { gotoAndStop(_root.game.ship.pLv11 + 1); } } } movieClip 334 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_alpha > 0) { _alpha = _alpha - 1; } } else { if (_alpha < 100) { _alpha = _alpha + 1; } } } } } movieClip 336 { } movieClip 338 { } movieClip 340 { } movieClip 342 { } movieClip 348 { frame 1 { stop(); } frame 10 { if (_root.game.ship.powah < 600) { gotoAndPlay(2); } else { gotoAndStop(1); } } } movieClip 353 { } movieClip 354 { } movieClip 355 { frame 1 { stop(); } frame 10 { if (_root.game.ship.shoot == true) { gotoAndPlay(2); } else { gotoAndStop(1); } } } movieClip 358 { } movieClip 360 { frame 1 { stop(); } } movieClip 366 { frame 1 { stop(); } } movieClip 368 { } movieClip 374 { frame 1 { stop(); } frame 22 { stop(); } } movieClip 376 { } movieClip 382 { } movieClip 383 { frame 1 { stop(); } frame 2 { _root.sfx.gotoAndPlay(70); } instance of movieClip 382 { onClipEvent (enterFrame) { c = random(20); if (c == 1) { gotoAndPlay(random(_totalframes) + 1); } } } frame 14 { if (t < _parent.shieldDuration) { ++t; ++t; gotoAndPlay(12); } } frame 15 { _root.sfx.gotoAndPlay(68); } } movieClip 391 { frame 1 { stop(); } frame 2 { _root.sfx.gotoAndPlay(70); } frame 11 { if (t < _parent.shieldDuration) { ++t; ++t; gotoAndPlay(8); } } frame 12 { _root.sfx.gotoAndPlay(68); } } movieClip 398 { frame 1 { stop(); } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(4); } } instance shield1 of movieClip 383 { onClipEvent (enterFrame) { if (_currentframe != 1) { if (_root.pause == false) { play(); } else { stop(); } } } } instance shield2 of movieClip 391 { onClipEvent (enterFrame) { if (_currentframe != 1) { if (_root.pause == false) { play(); } else { stop(); } } } } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(5); } } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(3); } } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(5); } } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(2); } } instance thrust of movieClip 252 { onClipEvent (load) { gotoAndStop(5); } } } movieClip 403 { } movieClip 406 { } movieClip 409 { } movieClip 413 { instance hpGlow of movieClip 403 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } } } instance empGlow of movieClip 406 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } } } } button 421 { on (release) { gotoAndStop(2); } } movieClip 424 { } movieClip 425 { instance cur of movieClip 209 { onClipEvent (load) { xp = new Array(-66.5, 66.5); yp = new Array(5, 5); s = 1; ff.gotoAndStop(5); } onClipEvent (enterFrame) { if (Key.isDown(39) && kReady == true) { kReady = false; ++s; if (s > 1) { s = 0; } } if (Key.isDown(37) && kReady == true) { kReady = false; --s; if (s < 0) { s = 1; } } if (Key.isDown(65) && kReady == true) { kReady = false; if (s == 1) { _parent.gotoAndStop(2); } else { if (s == 0) { _root.eraseGame(); _root.gotoAndPlay(5); } } } if (!Key.isDown(37) && !Key.isDown(39) && !Key.isDown(65)) { kReady = true; } _x = _x - (_x - xp[s]) / 4; _y = _y - (_y - yp[s]) / 4; } } frame 2 { stop(); } instance cur of movieClip 209 { onClipEvent (load) { ff.gotoAndStop(5); } onClipEvent (enterFrame) { if (Key.isDown(65) && kReady == true) { kReady = false; _parent.gotoAndStop(2); } if (!Key.isDown(65)) { kReady = true; } } } instance of movieClip 413 { onClipEvent (load) { lvTxt = 'Level: 1'; hpTxt = 'HP\r10'; } } } instance warning of movieClip 425 { onClipEvent (load) { if (_root.levelScores[0] == 0) { gotoAndStop(3); } else { gotoAndStop(2); } } } movieClip 454 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } frame 9 { gotoAndStop(1); } frame 11 { gotoAndStop(1); } frame 13 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } frame 17 { gotoAndStop(1); } frame 19 { gotoAndStop(1); } frame 21 { gotoAndStop(1); } frame 23 { gotoAndStop(1); } frame 25 { gotoAndStop(1); } frame 27 { gotoAndStop(1); } frame 29 { gotoAndStop(1); } frame 31 { gotoAndStop(1); } frame 33 { gotoAndStop(1); } frame 35 { gotoAndStop(1); } frame 37 { gotoAndStop(1); } frame 39 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } frame 43 { gotoAndStop(1); } frame 45 { gotoAndStop(1); } frame 47 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 51 { gotoAndStop(1); } frame 53 { gotoAndStop(1); } frame 55 { gotoAndStop(1); } frame 57 { gotoAndStop(1); } frame 59 { gotoAndStop(1); } frame 61 { gotoAndStop(1); } frame 63 { gotoAndStop(1); } frame 65 { gotoAndStop(1); } frame 67 { gotoAndStop(1); } frame 69 { gotoAndStop(1); } frame 71 { gotoAndStop(1); } frame 73 { gotoAndStop(1); } frame 75 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } frame 79 { gotoAndStop(1); } frame 81 { gotoAndStop(1); } frame 83 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } frame 87 { gotoAndStop(1); } frame 89 { gotoAndStop(1); } frame 91 { gotoAndStop(1); } frame 93 { gotoAndStop(1); } frame 95 { gotoAndStop(1); } frame 97 { gotoAndStop(1); } } instance sfx of movieClip 454 { onClipEvent (load) { mySound = new Sound(_root.sfx); vol = 0; setVol = 0; vol = 60; setVol = 60; maxVol = 100; mySound.setVolume(vol); mute = false; } onClipEvent (enterFrame) { if (mute == false) { if (vol < setVol) { vol += 1; } } else { vol = 0; } mySound.setVolume(vol); } } instance sfx2 of movieClip 454 { onClipEvent (load) { mySound = new Sound(_root.sfx2); vol = 0; setVol = 0; vol = 60; setVol = 60; maxVol = 100; mySound.setVolume(vol); mute = false; } onClipEvent (enterFrame) { if (mute == false) { if (vol < setVol) { vol += 1; } } else { vol = 0; } mySound.setVolume(vol); } } movieClip 466 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } frame 9 { gotoAndStop(1); } frame 11 { gotoAndStop(1); } frame 13 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } frame 17 { gotoAndStop(1); } frame 19 { gotoAndStop(1); } frame 21 { gotoAndStop(1); } frame 23 { gotoAndStop(1); } frame 25 { gotoAndStop(1); } frame 27 { gotoAndStop(1); } frame 29 { gotoAndStop(1); } frame 31 { gotoAndStop(1); } } instance music of movieClip 466 { onClipEvent (load) { mySound = new Sound(_root.music); vol = 0; setVol = 0; vol = 95; setVol = 95; maxVol = 100; mySound.setVolume(vol); fadeOut = false; gotoAndPlay(2); mute = false; } onClipEvent (enterFrame) { if (mute == false) { if (fadeOut == false) { if (vol < setVol) { vol += 1; } } else { if (vol > 0) { vol -= 5; } else { stopAllSounds(); } } if (_root.empMode == true) { vol = 0; } } else { vol = 0; } mySound.setVolume(vol); } } frame 7 { stop(); music.gotoAndPlay(2); } movieClip 470 { } movieClip 471 { } movieClip 473 { } movieClip 476 { } movieClip 477 { } movieClip 480 { } movieClip 483 { } movieClip 485 { } movieClip 488 { } movieClip 493 { frame 1 { stop(); } } movieClip 494 { } movieClip 498 { } movieClip 500 { } movieClip 505 { frame 1 { stop(); } } movieClip 507 { } movieClip 508 { } button 512 { on (release, keyPress '<Left>') { _root.sfx.gotoAndPlay(60); planetOn -= 1; if (planetOn < 0) { planetOn = maxPlanet; } txt.writeStuff(); ss = 0; } } button 516 { on (release, keyPress '<Right>') { _root.sfx.gotoAndPlay(60); planetOn += 1; if (planetOn > maxPlanet) { planetOn = 0; } txt.writeStuff(); ss = 0; } } movieClip 517 { frame 1 { planetOn = _root.planetOn; ss = 0; } instance map of movieClip 494 { onClipEvent (load) { xPoint = 0; yPoint = -100; } onClipEvent (enterFrame) { path.gotoAndStop(_parent.maxPlanet); xVel = (this['p' + _parent.planetOn]._x + _x - xPoint) / 8; if (Math.abs(xVel) < 0.01) { xVel = 0; } _x = _x - xVel; yVel = (this['p' + _parent.planetOn]._y + _y - yPoint) / 8; if (Math.abs(yVel) < 0.01) { yVel = 0; } _y = _y - yVel; } } instance txt of movieClip 498 { onClipEvent (load) { lockedFun = function () { locked = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); b = 0; maxPlanet = 0; _root.maxRare = 0; a = 0; while (a < _root.levelScores.length) { if (_root.levelScores[a] == 1) { switch (a) { case 0: locked[1] = 1; locked[3] = 1; locked[5] = 1; maxPlanet = 2; _root.maxRare = 1; break; case 1: locked[2] = 1; break; case 3: locked[4] = 1; locked[7] = 1; _root.maxRare = 1; maxPlanet = 3; break; case 5: locked[6] = 1; locked[7] = 1; _root.maxRare = 1; maxPlanet = 3; break; case 7: locked[8] = 1; locked[9] = 1; _root.maxRare = 2; maxPlanet = 4; break; case 9: locked[10] = 1; locked[12] = 1; locked[13] = 1; _root.maxRare = 3; maxPlanet = 6; break; case 10: locked[11] = 1; break; case 13: locked[14] = 1; locked[16] = 1; _root.maxRare = 3; maxPlanet = 7; break; case 14: locked[15] = 1; break; case 16: locked[17] = 1; locked[18] = 1; _root.maxRare = 4; maxPlanet = 8; break; case 18: locked[19] = 1; locked[21] = 1; _root.maxRare = 4; maxPlanet = 9; break; case 19: locked[20] = 1; break; case 21: _root.maxRare = 5; locked[22] = 1; break; case 22: locked[23] = 1; break; case 23: locked[24] = 1; } ++b; } if (b >= 24) { locked[25] = 1; maxPlanet = 10; } ++a; } _parent.maxPlanet = maxPlanet; locked[0] = 1; a = 0; while (a < 11) { _parent.map['m' + a].gotoAndStop(3); _parent.map['m' + a]._visible = false; ++a; } if (_root.levelScores[0] != 1) { _parent.map.m0.gotoAndStop(1); _parent.map.m0._visible = true; } else { if (_root.levelScores[1] != 1) { _parent.map.m0.gotoAndStop(2); _parent.map.m0._visible = true; } else { if (_root.levelScores[2] != 1) { _parent.map.m0.gotoAndStop(2); _parent.map.m0._visible = true; } } } if (maxPlanet > 0) { if (_root.levelScores[3] != 1) { _parent.map.m1.gotoAndStop(1); _parent.map.m1._visible = true; } else { if (_root.levelScores[4] != 1) { _parent.map.m1.gotoAndStop(2); _parent.map.m1._visible = true; } } if (_root.levelScores[5] != 1) { _parent.map.m2.gotoAndStop(1); _parent.map.m2._visible = true; } else { if (_root.levelScores[6] != 1) { _parent.map.m2.gotoAndStop(2); _parent.map.m2._visible = true; } } } if (maxPlanet > 2) { if (_root.levelScores[7] != 1) { _parent.map.m3.gotoAndStop(1); _parent.map.m3._visible = true; } else { if (_root.levelScores[8] != 1) { _parent.map.m3.gotoAndStop(2); _parent.map.m3._visible = true; } } } if (maxPlanet > 3) { if (_root.levelScores[9] != 1) { _parent.map.m4.gotoAndStop(1); _parent.map.m4._visible = true; } else { if (_root.levelScores[11] != 1) { _parent.map.m4.gotoAndStop(2); _parent.map.m4._visible = true; } } } if (maxPlanet > 4) { if (_root.levelScores[12] != 1) { _parent.map.m5.gotoAndStop(1); _parent.map.m5._visible = true; } } if (maxPlanet > 5) { if (_root.levelScores[13] != 1) { _parent.map.m6.gotoAndStop(1); _parent.map.m6._visible = true; } else { if (_root.levelScores[15] != 1) { _parent.map.m6.gotoAndStop(2); _parent.map.m6._visible = true; } } } if (maxPlanet > 6) { if (_root.levelScores[16] != 1) { _parent.map.m7.gotoAndStop(1); _parent.map.m7._visible = true; } else { if (_root.levelScores[17] != 1) { _parent.map.m7.gotoAndStop(2); _parent.map.m7._visible = true; } } } if (maxPlanet > 7) { if (_root.levelScores[18] != 1) { _parent.map.m8.gotoAndStop(1); _parent.map.m8._visible = true; } else { if (_root.levelScores[20] != 1) { _parent.map.m8.gotoAndStop(2); _parent.map.m8._visible = true; } } } if (maxPlanet > 8) { if (_root.levelScores[21] != 1) { _parent.map.m9.gotoAndStop(1); _parent.map.m9._visible = true; } else { if (_root.levelScores[23] != 1) { _parent.map.m9.gotoAndStop(2); _parent.map.m9._visible = true; } } } if (maxPlanet > 9) { if (_root.levelScores[24] != 1) { _parent.map.m10.gotoAndStop(1); _parent.map.m10._visible = true; } } }; writeStuff = function () { nam = 'Select a level.'; des = ''; names = new Array(); dis = new Array('140,000,000', '140,200,000', '140,350,000', '52,000,000', '163,000,000', '163,210,000', '213,000,000,000', '213,000,330,000', '372,000,000,000', '581,000,000,000', '999,000,000,000'); pop = new Array('30,000,000', '1,500', '2,700', '12', '500,000,000', '5,000', '145', '51', '0', '0', '0'); des += 'Distance from Seren: ' + dis[_parent.planetOn] + ' Miles' + '\n'; des += 'Population: ' + pop[_parent.planetOn] + '\n'; a = 0; while (a < 3) { _parent['m' + a]._alpha = 0; _parent['m' + a]._visible = false; _parent['m' + a].m = ''; _parent['m' + a].t = ''; _parent['m' + a].b = ''; ++a; } lockedFun(); pl0 = new Array(0, 1, 2); pl1 = new Array(3, 4); pl2 = new Array(5, 6); pl3 = new Array(7, 8); pl4 = new Array(9, 10, 11); pl5 = new Array(12); pl6 = new Array(13, 14, 15); pl7 = new Array(16, 17); pl8 = new Array(18, 19, 20); pl9 = new Array(21, 22, 23); pl10 = new Array(24); pNames = new Array('Dimora', 'Clavius', 'Plinius', 'Lavicus', 'Palmyra', 'Luna', 'Kuura', 'Boreas', 'Pallas Asteroid Belt', 'Deep Space', '???'); threatLevel = new Array(1, 4, 6, 3, 6, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25); if (_parent.planetOn != 5 && _parent.planetOn != 10) { a = 0; while (a < this['pl' + _parent.planetOn].length) { if (locked[this['pl' + _parent.planetOn][a]] == 1) { _parent['m' + a].m = pNames[_parent.planetOn] + ' Mission 0' + (a + 1); if (_root.levelScores[this['pl' + _parent.planetOn][a]] == 0) { _parent['m' + a].b = 'Mission Status: Incomplete'; } else { if (_root.levelScores[this['pl' + _parent.planetOn][a]] == -1) { _parent['m' + a].b = 'Mission Status: Gunship Checkpoint'; } else { _parent['m' + a].b = 'Mission Status: Complete'; } } _parent['m' + a].l = this['pl' + _parent.planetOn][a]; _parent['m' + a]._visible = true; } else { _parent['m' + a].m = 'Mission Not Available'; _parent['m' + a].l = 'noLevel'; _parent['m' + a]._visible = true; } ++a; } } else { if (_parent.planetOn == 5) { if (locked[12] == 1) { _parent.m0.m = pNames[5] + ' Mission 01'; if (_root.levelScores[12] == 0) { _parent.m0.b = 'Mission Status: Incomplete'; } else { if (_root.levelScores[12] == -1) { _parent.m0.b = 'Mission Status: Gunship Checkpoint'; } else { _parent.m0.b = 'Mission Status: Complete'; } } _parent.m0.l = 12; _parent.m0._visible = true; } else { _parent.m0.m = 'Mission Not Available'; _parent.m0.l = 'noLevel'; _parent.m0._visible = true; } } else { if (locked[24] == 1) { _parent.m0.m = pNames[10] + ' Mission 01'; if (_root.levelScores[24] == 0) { _parent.m0.b = 'Mission Status: Incomplete'; } else { if (_root.levelScores[24] == -1) { _parent.m0.b = 'Mission Status: Gunship Checkpoint'; } else { _parent.m0.b = 'Mission Status: Complete'; } } _parent.m0.l = 24; _parent.m0._visible = true; } else { _parent.m0.m = 'Mission Not Available'; _parent.m0.l = 'noLevel'; _parent.m0._visible = true; } } } }; writeStuff(); } } instance of movieClip 500 { onClipEvent (load) { sizes = new Array(170, 90, 70, 120, 180, 70, 160, 80, 160, 100); } onClipEvent (enterFrame) { _rotation = _rotation + 3; _xscale = _xscale - (_xscale - sizes[_parent.planetOn]) / 8; _yscale = _yscale - (_yscale - sizes[_parent.planetOn]) / 8; } } instance m0 of movieClip 505 { onClipEvent (enterFrame) { if (m != '') { if (_alpha < 100) { _alpha = _alpha + 10; } } if (_parent.ss == 0) { gotoAndStop(2); } else { gotoAndStop(1); } } onClipEvent (release) { if (l != 'noLevel') { _root.levelOn = l + 1; if (_root.levelScores[_root.levelOn - 1] == -1) { _root.bossCheckpoint = true; } else { _root.bossCheckpoint = false; } _root.planetOn = _parent.planetOn; _root.gotoAndStop('game'); } } onClipEvent (rollOver) { _parent.ss = 0; } onClipEvent (rollOut, dragOut) { } } instance m1 of movieClip 505 { onClipEvent (enterFrame) { if (m != '') { if (_alpha < 100) { _alpha = _alpha + 10; } } if (_parent.ss == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } onClipEvent (release) { if (l != 'noLevel') { _root.levelOn = l + 1; if (_root.levelScores[_root.levelOn - 1] == -1) { _root.bossCheckpoint = true; } else { _root.bossCheckpoint = false; } _root.planetOn = _parent.planetOn; _root.gotoAndStop('game'); } } onClipEvent (rollOver) { if (_alpha != 0) { _parent.ss = 1; } } } instance m2 of movieClip 505 { onClipEvent (enterFrame) { if (m != '') { if (_alpha < 100) { _alpha = _alpha + 10; } } if (_parent.ss == 2) { gotoAndStop(2); } else { gotoAndStop(1); } } onClipEvent (release) { if (l != 'noLevel') { _root.levelOn = l + 1; if (_root.levelScores[_root.levelOn - 1] == -1) { _root.bossCheckpoint = true; } else { _root.bossCheckpoint = false; } _root.planetOn = _parent.planetOn; _root.gotoAndStop('game'); } } onClipEvent (rollOver) { if (_alpha != 0) { _parent.ss = 2; } } } instance of movieClip 508 { onClipEvent (load) { yy = new Array(45, 105, 166); } onClipEvent (enterFrame) { _y = _y - (_y - yy[_parent.ss]) / 2; if (Key.isDown(65)) { if (_parent['m' + _parent.ss].l != 'noLevel') { _root.levelOn = _parent['m' + _parent.ss].l + 1; if (_root.levelScores[_root.levelOn - 1] == -1) { _root.bossCheckpoint = true; } else { _root.bossCheckpoint = false; } _root.planetOn = _parent.planetOn; _root.gotoAndStop('game'); } } } onClipEvent (keyPress '<Down>') { if (_parent.planetOn != 5 && _parent.planetOn != 10) { _root.sfx.gotoAndPlay(60); ++_parent.ss; if (_parent.ss > _parent.txt['pl' + _parent.planetOn].length - 1) { _parent.ss = 0; } } } onClipEvent (keyPress '<Up>') { if (_parent.planetOn != 5 && _parent.planetOn != 10) { _root.sfx.gotoAndPlay(60); --_parent.ss; if (_parent.ss < 0) { _parent.ss = _parent.txt['pl' + _parent.planetOn].length - 1; } } } } } instance soundMan of movieClip 220 { onClipEvent (load) { t = 0; } onClipEvent (enterFrame) { if (Key.isDown(77) && kReady == true) { kReady = false; _root.muteFun(); } if (!Key.isDown(77)) { kReady = true; } if (t > 0) { --t; } else { _parent.soundText = ''; } } } frame 8 { stop(); empMax = 62; emp1 = new Object(); emp1.name = 'Standard Absorb EMP Unit'; emp1.stats = new Array(1, 20, 150, 5, 0, 1); emp1.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp2 = new Object(); emp2.name = 'Standard Absorb EMP Unit+'; emp2.stats = new Array(1, 20, 200, 5, 0, 1); emp2.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp3 = new Object(); emp3.name = 'Defender Absorb EMP Unit'; emp3.stats = new Array(1, 20, 50, 20, 0, 1); emp3.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp4 = new Object(); emp4.name = 'Defender Absorb EMP Unit+'; emp4.stats = new Array(1, 20, 50, 25, 0, 1); emp4.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp5 = new Object(); emp5.name = 'Offender Absorb EMP Unit'; emp5.stats = new Array(1, 20, 300, 1, 0, 1); emp5.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp6 = new Object(); emp6.name = 'Offender Absorb EMP Unit+'; emp6.stats = new Array(1, 20, 300, 1, 0, 1); emp6.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp7 = new Object(); emp7.name = 'Combat Absorb EMP Unit'; emp7.stats = new Array(1, 25, 350, 15, 1, 1); emp7.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp8 = new Object(); emp8.name = 'Combat Absorb EMP Unit+'; emp8.stats = new Array(1, 25, 350, 15, 1, 1); emp8.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp9 = new Object(); emp9.name = 'Detonator Absorb EMP Unit'; emp9.stats = new Array(1, 5, 75, 5, 1, 1); emp9.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp10 = new Object(); emp10.name = 'Detonator Absorb EMP Unit+'; emp10.stats = new Array(1, 5, 75, 10, 1, 1); emp10.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp11 = new Object(); emp11.name = 'Focused Absorb EMP Unit'; emp11.stats = new Array(1, 25, 500, 5, 2, 1); emp11.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp12 = new Object(); emp12.name = 'Focused Absorb EMP Unit+'; emp12.stats = new Array(1, 25, 550, 20, 2, 1); emp12.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp13 = new Object(); emp13.name = 'Charged Absorb EMP Unit'; emp13.stats = new Array(1, 30, 750, 30, 2, 1); emp13.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp14 = new Object(); emp14.name = 'Charged Absorb EMP Unit+'; emp14.stats = new Array(1, 20, 800, 30, 2, 1); emp14.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp15 = new Object(); emp15.name = 'SPEC Absorb EMP Unit'; emp15.stats = new Array(1, 10, 500, 5, 3, 1); emp15.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp16 = new Object(); emp16.name = 'SPEC Absorb EMP Unit+'; emp16.stats = new Array(1, 10, 600, 5, 3, 1); emp16.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp17 = new Object(); emp17.name = 'Carbon Edge Absorb EMP Unit'; emp17.stats = new Array(1, 35, 1000, 1, 3, 1); emp17.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp18 = new Object(); emp18.name = 'Carbon Edge Absorb EMP Unit+'; emp18.stats = new Array(1, 30, 1000, 1, 3, 1); emp18.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp19 = new Object(); emp19.name = 'Steel Edge Absorb EMP Unit'; emp19.stats = new Array(1, 25, 750, 30, 3, 1); emp19.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp20 = new Object(); emp20.name = 'Steel Edge Absorb EMP Unit+'; emp20.stats = new Array(1, 25, 800, 35, 3, 1); emp20.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp21 = new Object(); emp21.name = 'Titanium Edge Absorb EMP Unit'; emp21.stats = new Array(1, 40, 1500, 1, 3, 1); emp21.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp22 = new Object(); emp22.name = 'Titanium Edge Absorb EMP Unit+'; emp22.stats = new Array(1, 40, 1800, 1, 3, 1); emp22.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp23 = new Object(); emp23.name = 'Diamond Edge Absorb EMP Unit'; emp23.stats = new Array(1, 25, 1500, 35, 4, 1); emp23.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp24 = new Object(); emp24.name = 'Diamond Edge Absorb EMP Unit+'; emp24.stats = new Array(1, 25, 1500, 35, 4, 1); emp24.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp25 = new Object(); emp25.name = 'Spec-Op Absorb EMP Unit'; emp25.stats = new Array(1, 30, 2000, 10, 4, 1); emp25.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp26 = new Object(); emp26.name = 'Spec-Op Absorb EMP Unit+'; emp26.stats = new Array(1, 30, 2000, 20, 4, 1); emp26.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp27 = new Object(); emp27.name = 'XM-1003 Absorb EMP Unit'; emp27.stats = new Array(1, 5, 500, 5, 5, 1); emp27.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp28 = new Object(); emp28.name = 'XM-1004 Absorb EMP Unit'; emp28.stats = new Array(1, 25, 2000, 35, 5, 1); emp28.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp29 = new Object(); emp29.name = 'XM-1005 Absorb EMP Unit'; emp29.stats = new Array(1, 30, 2500, 40, 5, 1); emp29.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp30 = new Object(); emp30.name = 'XM-1006 Absorb EMP Unit'; emp30.stats = new Array(1, 20, 2000, 40, 5, 1); emp30.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp31 = new Object(); emp31.name = 'XM-0001 Absorb EMP Unit'; emp31.stats = new Array(1, 20, 2500, 50, 6, 1); emp31.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp32 = new Object(); emp32.name = 'Standard Reflect Shield Unit'; emp32.stats = new Array(2, 0, 10, 10, 0, 1); emp32.description = 'An energy absorbing shield that collects enemy bullets to discharge as an EMP.'; emp33 = new Object(); emp33.name = 'Standard Reflect Shield Unit+'; emp33.stats = new Array(2, 0, 15, 10, 0, 1); emp33.description = 'An energy absorbing shield that collects enemy bullets to discharge as an Shield.'; emp34 = new Object(); emp34.name = 'Defender Reflect Shield Unit'; emp34.stats = new Array(2, 0, 10, 40, 0, 1); emp34.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp35 = new Object(); emp35.name = 'Defender Reflect Shield Unit+'; emp35.stats = new Array(2, 0, 10, 50, 0, 1); emp35.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp36 = new Object(); emp36.name = 'Offender Reflect Shield Unit'; emp36.stats = new Array(2, 0, 25, 5, 0, 1); emp36.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp37 = new Object(); emp37.name = 'Offender Reflect Shield Unit+'; emp37.stats = new Array(2, 0, 30, 5, 0, 1); emp37.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp38 = new Object(); emp38.name = 'Combat Reflect Shield Unit'; emp38.stats = new Array(2, 0, 20, 30, 1, 1); emp38.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp39 = new Object(); emp39.name = 'Combat Reflect Shield Unit+'; emp39.stats = new Array(2, 0, 25, 30, 1, 1); emp39.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp40 = new Object(); emp40.name = 'Deflector Reflect Shield Unit'; emp40.stats = new Array(2, 0, 30, 20, 1, 1); emp40.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp41 = new Object(); emp41.name = 'Deflector Reflect Shield Unit+'; emp41.stats = new Array(2, 0, 35, 20, 1, 1); emp41.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp42 = new Object(); emp42.name = 'Focused Reflect Shield Unit'; emp42.stats = new Array(2, 0, 40, 5, 2, 1); emp42.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp43 = new Object(); emp43.name = 'Focused Reflect Shield Unit+'; emp43.stats = new Array(2, 0, 45, 5, 2, 1); emp43.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp44 = new Object(); emp44.name = 'Charged Reflect Shield Unit'; emp44.stats = new Array(2, 0, 30, 60, 2, 1); emp44.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp45 = new Object(); emp45.name = 'Charged Reflect Shield Unit+'; emp45.stats = new Array(2, 0, 35, 60, 2, 1); emp45.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp46 = new Object(); emp46.name = 'SPEC Reflect Shield Unit'; emp46.stats = new Array(2, 0, 40, 20, 3, 1); emp46.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp47 = new Object(); emp47.name = 'SPEC Reflect Shield Unit+'; emp47.stats = new Array(2, 0, 45, 20, 3, 1); emp47.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp48 = new Object(); emp48.name = 'Carbon Edge Reflect Shield Unit'; emp48.stats = new Array(2, 0, 40, 60, 3, 1); emp48.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp49 = new Object(); emp49.name = 'Carbon Edge Reflect Shield Unit+'; emp49.stats = new Array(2, 0, 45, 70, 3, 1); emp49.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp50 = new Object(); emp50.name = 'Steel Edge Reflect Shield Unit'; emp50.stats = new Array(2, 0, 50, 20, 3, 1); emp50.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp51 = new Object(); emp51.name = 'Steel Edge Reflect Shield Unit+'; emp51.stats = new Array(2, 0, 55, 20, 3, 1); emp51.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp52 = new Object(); emp52.name = 'Titanium Edge Reflect Shield Unit'; emp52.stats = new Array(2, 0, 50, 70, 4, 1); emp52.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp53 = new Object(); emp53.name = 'Titanium Edge Reflect Shield Unit+'; emp53.stats = new Array(2, 0, 50, 80, 4, 1); emp53.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp54 = new Object(); emp54.name = 'Diamond Edge Reflect Shield Unit'; emp54.stats = new Array(2, 0, 60, 10, 4, 1); emp54.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp55 = new Object(); emp55.name = 'Diamond Edge Reflect Shield Unit+'; emp55.stats = new Array(2, 0, 65, 10, 4, 1); emp55.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp56 = new Object(); emp56.name = 'Spec-Op Reflect Shield Unit'; emp56.stats = new Array(2, 0, 60, 60, 4, 1); emp56.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp57 = new Object(); emp57.name = 'Spec-Op Reflect Shield Unit+'; emp57.stats = new Array(2, 0, 60, 70, 4, 1); emp57.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp58 = new Object(); emp58.name = 'XM-1003 Reflect Shield Unit'; emp58.stats = new Array(2, 0, 65, 10, 5, 1); emp58.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp59 = new Object(); emp59.name = 'XM-1004 Reflect Shield Unit'; emp59.stats = new Array(2, 0, 70, 10, 5, 1); emp59.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp60 = new Object(); emp60.name = 'XM-1005 Reflect Shield Unit'; emp60.stats = new Array(2, 0, 70, 80, 5, 1); emp60.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp61 = new Object(); emp61.name = 'XM-1006 Reflect Shield Unit'; emp61.stats = new Array(2, 0, 100, 40, 5, 1); emp61.description = 'An energy reflecting shield that rebounds enemy bullets.'; emp62 = new Object(); emp62.name = 'XM-0001 Reflect Shield Unit'; emp62.stats = new Array(2, 0, 100, 100, 5, 1); emp62.description = 'An energy reflecting shield that rebounds enemy bullets.'; a = 0; while (a < 145) { this['wep' + a] = new Object(); ++a; } wepMax = 145; wep1.name = 'Standard Machinegun'; wep1.stats = new Array(1, 1, 0, 0, 0); wep1.stats2 = new Array(0, 10, 7, 100); wep1.description = 'A weapon that fires normal bullets in succession.'; wep2.name = 'Broken Machinegun'; wep2.stats = new Array(1, 1, 0, 0, 0); wep2.stats2 = new Array(-5, 2, 15, 150); wep2.description = 'A damaged weapon that fires normal bullets in succession.'; wep3.name = 'Standard Machinegun+'; wep3.stats = new Array(1, 1, 0, 0, 1); wep3.stats2 = new Array(5, 10, 7, 90); wep3.description = 'A weapon that fires normal bullets in succession.'; wep4.name = 'Assault Machinegun'; wep4.stats = new Array(1, 1, 0, 0, 1); wep4.stats2 = new Array(20, 5, 6, 50); wep4.description = 'A weapon that fires normal bullets in succession.'; wep5.name = 'Kit Machinegun'; wep5.stats = new Array(1, 1, 0, 0, 0); wep5.stats2 = new Array(10, 2, 5, 150); wep5.description = 'A home made machinegun of marginal build quality.'; wep6.name = 'Assault Machinegun+'; wep6.stats = new Array(1, 1, 0, 0, 1); wep6.stats2 = new Array(20, 5, 5, 50); wep6.description = 'A weapon that fires normal bullets in succession.'; wep7.name = 'Tuned Assault Machinegun'; wep7.stats = new Array(1, 1, 0, 0, 2); wep7.stats2 = new Array(30, 6, 5, 45); wep7.description = 'A tuned weapon that fires normal bullets in succession.'; wep8.name = 'Tuned Assault Machinegun+'; wep8.stats = new Array(1, 1, 0, 0, 2); wep8.stats2 = new Array(35, 6, 5, 40); wep8.description = 'A tuned weapon that fires normal bullets in succession.'; wep9.name = 'Light Gatling Gun'; wep9.stats = new Array(1, 1, 0, 0, 2); wep9.stats2 = new Array(-10, 3, 2, 75); wep9.description = 'A weapon that rapidly fires normal bullets in succession.'; wep10.name = 'Light Gatling Gun+'; wep10.stats = new Array(1, 1, 0, 0, 2); wep10.stats2 = new Array(-10, 3, 1, 75); wep10.description = 'A weapon that rapidly fires normal bullets in succession.'; wep11.name = 'Gatling Gun'; wep11.stats = new Array(1, 1, 0, 0, 3); wep11.stats2 = new Array(0, 5, 2, 50); wep11.description = 'A weapon that rapidly fires normal bullets in succession.'; wep12.name = 'Gatling Gun+'; wep12.stats = new Array(1, 1, 0, 0, 3); wep12.stats2 = new Array(10, 3, 1, 50); wep12.description = 'A weapon that rapidly fires normal bullets in succession.'; wep13.name = 'Battle Gun'; wep13.stats = new Array(1, 1, 0, 0, 3); wep13.stats2 = new Array(40, 7, 5, 50); wep13.description = 'A weapon that fires normal bullets in succession.'; wep14.name = 'Battle Gun+'; wep14.stats = new Array(1, 1, 0, 0, 3); wep14.stats2 = new Array(40, 9, 5, 50); wep14.description = 'A weapon that fires normal bullets in succession.'; wep15.name = 'Flak Cannon'; wep15.stats = new Array(1, 1, 0, 0, 4); wep15.stats2 = new Array(120, 10, 25, 25); wep15.description = 'A weapon that fires powerful bullets in succession.'; wep15.name = 'Flak Cannon+'; wep15.stats = new Array(1, 1, 0, 0, 4); wep15.stats2 = new Array(150, 10, 25, 10); wep15.description = 'A weapon that fires powerful bullets in succession.'; wep16.name = 'Precision Machinegun'; wep16.stats = new Array(1, 1, 0, 0, 4); wep16.stats2 = new Array(20, 10, 4, 50); wep16.description = 'A weapon that fires normal bullets in succession.'; wep17.name = 'Precision Machinegun+'; wep17.stats = new Array(1, 1, 0, 0, 4); wep17.stats2 = new Array(25, 10, 4, 30); wep17.description = 'A weapon that fires normal bullets in succession.'; wep18.name = 'Diamond Edge Machinegun'; wep18.stats = new Array(1, 1, 0, 0, 5); wep18.stats2 = new Array(20, 7, 2, 25); wep18.description = 'A high performance weapon that fires normal bullets in succession.'; wep19.name = 'Diamond Edge Machinegun+'; wep19.stats = new Array(1, 1, 0, 0, 5); wep19.stats2 = new Array(25, 9, 2, 15); wep19.description = 'A high performance weapon that fires normal bullets in succession.'; wep20.name = '---#@&$--:error*#$---'; wep20.stats = new Array(1, 1, 0, 0, 6); wep20.stats2 = new Array(100, 25, 2, 10); wep20.description = 'A machinegun of unknown origin and ability.'; wep21.name = 'Standard Shotgun x2'; wep21.stats = new Array(1, 2, 1, 0, 0); wep21.stats2 = new Array(-5, 5, 5, 75); wep21.description = 'A weapon that fires two bullets in a V pattern.'; wep22.name = 'Rusted Shotgun x2'; wep22.stats = new Array(1, 2, 1, 0, 0); wep22.stats2 = new Array(-20, 2, 8, 150); wep22.description = 'A damaged weapon that fires two bullets in a V pattern.'; wep23.name = 'Assault Shotgun x2'; wep23.stats = new Array(1, 2, 1, 0, 1); wep23.stats2 = new Array(0, 5, 4, 50); wep23.description = 'A weapon that fires two bullets in a V pattern.'; wep24.name = 'Flak Shotgun x2'; wep24.stats = new Array(1, 2, 1, 0, 2); wep24.stats2 = new Array(30, 20, 25, 50); wep24.description = 'A heavy weapon that fires two bullets in a V pattern.'; wep25.name = 'V-COMBAT Shotgun x2'; wep25.stats = new Array(1, 2, 1, 0, 5); wep25.stats2 = new Array(40, 8, 3, 50); wep25.description = 'A specialized weapon that fires two bullets in a V pattern.'; wep26.name = 'Standard Shotgun x3'; wep26.stats = new Array(1, 3, 1, 0, 0); wep26.stats2 = new Array(-5, 5, 5, 100); wep26.description = 'A weapon that fires three bullets in a spread pattern.'; wep27.name = 'Combat Shotgun x3'; wep27.stats = new Array(1, 3, 1, 0, 1); wep27.stats2 = new Array(10, 5, 4, 75); wep27.description = 'A weapon that fires three bullets in a spread pattern.'; wep28.name = 'Tuned Shotgun x3'; wep28.stats = new Array(1, 3, 1, 0, 3); wep28.stats2 = new Array(20, 5, 4, 50); wep28.description = 'A tuned weapon that fires three bullets in a spread pattern.'; wep29.name = 'Carbon Edge Shotgun x3'; wep29.stats = new Array(1, 3, 1, 0, 4); wep29.stats2 = new Array(35, 5, 4, 40); wep29.description = 'A weapon that fires three bullets in a spread pattern.'; wep30.name = 'Trident Shotgun x3'; wep30.stats = new Array(1, 3, 1, 0, 5); wep30.stats2 = new Array(50, 8, 4, 40); wep30.description = 'A precision built weapon that fires three bullets in a spread pattern.'; wep31.name = 'Standard Shotgun x4'; wep31.stats = new Array(1, 4, 1, 0, 1); wep31.stats2 = new Array(-20, 5, 6, 150); wep31.description = 'A weapon that fires four bullets in a spread pattern.'; wep32.name = 'Combat Shotgun x4'; wep32.stats = new Array(1, 4, 1, 0, 2); wep32.stats2 = new Array(0, 5, 5, 100); wep32.description = 'A weapon that fires four bullets in a spread pattern.'; wep33.name = 'Flak Shotgun x4'; wep33.stats = new Array(1, 4, 1, 0, 3); wep33.stats2 = new Array(50, 20, 25, 50); wep33.description = 'A heavy weapon that fires four bullets in a spread pattern.'; wep34.name = 'Assault Shotgun x4'; wep34.stats = new Array(1, 4, 1, 0, 4); wep34.stats2 = new Array(20, 5, 5, 75); wep34.description = 'A combad developed weapon that fires four bullets in a spread pattern.'; wep35.name = 'Steel Edge Shotgun x4'; wep35.stats = new Array(1, 4, 1, 0, 5); wep35.stats2 = new Array(40, 6, 4, 50); wep35.description = 'A premium weapon that fires four bullets in a spread pattern.'; wep36.name = 'Standard Shotgun x5'; wep36.stats = new Array(1, 5, 1, 0, 1); wep36.stats2 = new Array(-20, 5, 6, 150); wep36.description = 'A weapon that fires five bullets in a spread pattern.'; wep37.name = 'Tactical Shotgun x5'; wep37.stats = new Array(1, 5, 1, 0, 2); wep37.stats2 = new Array(0, 5, 6, 150); wep37.description = 'A weapon that fires five bullets in a spread pattern.'; wep38.name = 'Pounder Shotgun x5'; wep38.stats = new Array(1, 5, 1, 0, 3); wep38.stats2 = new Array(-10, 5, 3, 50); wep38.description = 'A rapid-fire weapon that fires five bullets in a spread pattern.'; wep39.name = 'Titanium Edge Shotgun x5'; wep39.stats = new Array(1, 5, 1, 0, 4); wep39.stats2 = new Array(20, 5, 4, 75); wep39.description = 'A tuned weapon that fires five bullets in a spread pattern.'; wep40.name = 'Collateral Damage Shotgun x5'; wep40.stats = new Array(1, 5, 1, 0, 5); wep40.stats2 = new Array(35, 5, 4, 50); wep40.description = 'A weapon that fires five bullets in a spread pattern with blatant disregard for surroundings.'; wep41.name = 'Standard Shotgun x6'; wep41.stats = new Array(1, 6, 1, 0, 2); wep41.stats2 = new Array(-25, 5, 6, 150); wep41.description = 'A weapon that fires six bullets in a spread pattern.'; wep42.name = 'Doom Shotgun x6'; wep42.stats = new Array(1, 6, 1, 0, 3); wep42.stats2 = new Array(0, 10, 5, 100); wep42.description = 'A weapon that fires six bullets in a spread pattern. There will be no survivors.'; wep43.name = 'Flak Shotgun x6'; wep43.stats = new Array(1, 6, 1, 0, 4); wep43.stats2 = new Array(100, 20, 25, 50); wep43.description = 'A heavy weapon that fires six bullets in a spread pattern.'; wep44.name = 'Diamond Edge Shotgun x6'; wep44.stats = new Array(1, 6, 1, 0, 5); wep44.stats2 = new Array(30, 5, 5, 75); wep44.description = 'A precision weapon that fires six bullets in a spread pattern.'; wep45.name = 'Kreig Shotgun x6'; wep45.stats = new Array(1, 6, 1, 0, 6); wep45.stats2 = new Array(50, 8, 4, 50); wep45.description = 'A weapon designed for WAR that fires six bullets in a spread pattern.'; wep46 = new Object(); wep46.name = 'Standard Laser'; wep46.stats = new Array(2, 1, 0, 0, 0); wep46.stats2 = new Array(0, 10, 6, 100); wep46.description = 'A weapon that fires a concentrated laser beam.'; wep47 = new Object(); wep47.name = 'Focused Laser'; wep47.stats = new Array(2, 1, 0, 0, 1); wep47.stats2 = new Array(10, 10, 6, 100); wep47.description = 'A weapon that fires a focused laser beam.'; wep48 = new Object(); wep48.name = 'Charged Laser'; wep48.stats = new Array(2, 1, 0, 0, 1); wep48.stats2 = new Array(50, 10, 25, 75); wep48.description = 'A heavy weapon that fires a concentrated laser beam.'; wep49 = new Object(); wep49.name = 'Refracted Laser'; wep49.stats = new Array(2, 1, 0, 0, 2); wep49.stats2 = new Array(5, 10, 3, 100); wep49.description = 'A weapon that fires a refracted laser beam.'; wep50 = new Object(); wep50.name = 'Amplified Laser'; wep50.stats = new Array(2, 1, 0, 0, 3); wep50.stats2 = new Array(30, 10, 5, 75); wep50.description = 'A weapon that fires an amplified laser beam.'; wep51 = new Object(); wep51.name = 'Rapid Discharge Laser'; wep51.stats = new Array(2, 1, 0, 0, 3); wep51.stats2 = new Array(10, 10, 2, 50); wep51.description = 'A weapon that rapidly fires a concentrated laser beam.'; wep52 = new Object(); wep52.name = 'Ruby Edge Laser'; wep52.stats = new Array(2, 1, 0, 0, 4); wep52.stats2 = new Array(40, 10, 5, 75); wep52.description = 'A precision built weapon that fires a concentrated laser beam.'; wep53 = new Object(); wep53.name = 'Diamond Edge Laser'; wep53.stats = new Array(2, 1, 0, 0, 4); wep53.stats2 = new Array(50, 10, 5, 50); wep53.description = 'A precision built weapon that fires a concentrated laser beam.'; wep54 = new Object(); wep54.name = 'Laser Cannon'; wep54.stats = new Array(2, 1, 0, 0, 5); wep54.stats2 = new Array(75, 10, 6, 50); wep54.description = 'A heavy weapon that fires a concentrated laser beam.'; wep55 = new Object(); wep55.name = 'Omega Laser Cannon'; wep55.stats = new Array(2, 1, 0, 0, 6); wep55.stats2 = new Array(150, 10, 4, 50); wep55.description = 'A weapon that fires a concentrated laser-death-beam.'; wep56 = new Object(); wep56.name = 'Standard Grenade Launcher'; wep56.stats = new Array(3, 1, 0, 0, 2); wep56.stats2 = new Array(5, 10, 8, 50); wep56.description = 'A weapon that fires arcing fragmentation grenades.'; wep57 = new Object(); wep57.name = 'Frag-Plus Grenade Launcher'; wep57.stats = new Array(3, 1, 0, 0, 3); wep57.stats2 = new Array(10, 10, 5, 50); wep57.description = 'A weapon that fires arcing fragmentation grenades.'; wep58 = new Object(); wep58.name = 'Impact Grenade Launcher'; wep58.stats = new Array(3, 1, 0, 0, 3); wep58.stats2 = new Array(20, 10, 8, 75); wep58.description = 'A weapon that fires arcing fragmentation grenades.'; wep59 = new Object(); wep59.name = 'Double Grenade Launcher'; wep59.stats = new Array(3, 2, 0, 0, 2); wep59.stats2 = new Array(10, 10, 8, 50); wep59.description = 'A weapon that fires double arcing fragmentation grenades.'; wep60 = new Object(); wep60.name = 'Impact Double Grenade Launcher'; wep60.stats = new Array(3, 2, 0, 0, 4); wep60.stats2 = new Array(20, 10, 8, 50); wep60.description = 'A weapon that fires double arcing fragmentation grenades.'; wep61 = new Object(); wep61.name = 'High Yield Double Grenade Launcher'; wep61.stats = new Array(3, 2, 0, 0, 5); wep61.stats2 = new Array(50, 10, 5, 50); wep61.description = 'A weapon that fires double arcing fragmentation grenades.'; wep62 = new Object(); wep62.name = 'High Yield Grenade Launcher'; wep62.stats = new Array(3, 1, 0, 0, 5); wep62.stats2 = new Array(50, 10, 5, 50); wep62.description = 'A weapon that fires powerful arcing fragmentation grenades.'; wep63 = new Object(); wep63.name = 'Triple Grenade Launcher'; wep63.stats = new Array(3, 3, 0, 0, 3); wep63.stats2 = new Array(10, 10, 8, 50); wep63.description = 'A weapon that fires triple arcing fragmentation grenades.'; wep64 = new Object(); wep64.name = 'Impact Triple Grenade Launcher'; wep64.stats = new Array(3, 3, 0, 0, 4); wep64.stats2 = new Array(25, 10, 6, 50); wep64.description = 'A weapon that fires triple arcing fragmentation grenades.'; wep65 = new Object(); wep65.name = 'Tri-Power Grenade Launcher'; wep65.stats = new Array(3, 3, 0, 0, 5); wep65.stats2 = new Array(50, 10, 5, 50); wep65.description = 'A weapon that fires triple arcing fragmentation grenades.'; wep66 = new Object(); wep66.name = 'Quad Grenade Launcher'; wep66.stats = new Array(3, 4, 0, 0, 3); wep66.stats2 = new Array(5, 10, 8, 50); wep66.description = 'A weapon that fires four arcing fragmentation grenades.'; wep67 = new Object(); wep67.name = 'Quad Impact Grenade Launcher'; wep67.stats = new Array(3, 4, 0, 0, 4); wep67.stats2 = new Array(20, 10, 6, 50); wep67.description = 'A weapon that fires four arcing fragmentation grenades.'; wep68 = new Object(); wep68.name = 'Foul-Four Grenade Launcher'; wep68.stats = new Array(3, 2, 0, 0, 5); wep68.stats2 = new Array(45, 10, 5, 50); wep68.description = 'A weapon that fires four arcing fragmentation grenades.'; wep69 = new Object(); wep69.name = 'Carbon Edge Grenade Launcher'; wep69.stats = new Array(3, 1, 0, 0, 5); wep69.stats2 = new Array(75, 10, 4, 50); wep69.description = 'A weapon that fires arcing fragmentation grenades.'; wep70 = new Object(); wep70.name = 'Steel Edge Grenade Launcher'; wep70.stats = new Array(3, 1, 0, 0, 5); wep70.stats2 = new Array(50, 10, 3, 50); wep70.description = 'A weapon that fires arcing fragmentation grenades.'; wep71 = new Object(); wep71.name = 'Double Edge Grenade Launcher'; wep71.stats = new Array(3, 2, 0, 0, 5); wep71.stats2 = new Array(50, 10, 4, 50); wep71.description = 'A weapon that fires double arcing fragmentation grenades.'; wep72 = new Object(); wep72.name = 'Triple Edge Grenade Launcher'; wep72.stats = new Array(3, 3, 0, 0, 5); wep72.stats2 = new Array(60, 10, 5, 50); wep72.description = 'A weapon that fires double arcing fragmentation grenades.'; wep73 = new Object(); wep73.name = 'Quad Edge Grenade Launcher'; wep73.stats = new Array(3, 4, 0, 0, 5); wep73.stats2 = new Array(60, 10, 5, 50); wep73.description = 'A weapon that fires quad arcing fragmentation grenades.'; wep74 = new Object(); wep74.name = 'Machine Grenade Launcher'; wep74.stats = new Array(3, 1, 0, 0, 6); wep74.stats2 = new Array(50, 10, 1, 50); wep74.description = 'A weapon that rapid fires arcing fragmentation grenades.'; wep75 = new Object(); wep75.name = 'Carpet Bomber Grenade Launcher'; wep75.stats = new Array(3, 6, 0, 0, 6); wep75.stats2 = new Array(50, 10, 8, 50); wep75.description = 'A weapon that fires six arcing fragmentation grenades.'; wep76 = new Object(); wep76.name = 'Standard Rocket Launcher'; wep76.stats = new Array(4, 1, 0, 0, 1); wep76.stats2 = new Array(0, 10, 12, 50); wep76.description = 'A weapon that fires a self propelled explosive.'; wep77 = new Object(); wep77.name = 'Crushing Rocket Launcher'; wep77.stats = new Array(4, 1, 0, 0, 2); wep77.stats2 = new Array(25, 10, 25, 50); wep77.description = 'A heavy weapon that fires a self propelled explosive.'; wep78 = new Object(); wep78.name = 'Tactical Rocket Launcher'; wep78.stats = new Array(4, 1, 0, 0, 2); wep78.stats2 = new Array(10, 10, 8, 50); wep78.description = 'A weapon that fires a self propelled explosive.'; wep79 = new Object(); wep79.name = 'Chain-Fed Rocket Launcher'; wep79.stats = new Array(4, 1, 0, 0, 3); wep79.stats2 = new Array(15, 10, 4, 50); wep79.description = 'A weapon that rapidly fires a self propelled explosive.'; wep80 = new Object(); wep80.name = 'Assault Rocket Launcher'; wep80.stats = new Array(4, 1, 0, 0, 3); wep80.stats2 = new Array(25, 10, 12, 50); wep80.description = 'A weapon that fires a self propelled explosive.'; wep81 = new Object(); wep81.name = 'Destructive Rocket Launcher'; wep81.stats = new Array(4, 1, 0, 0, 4); wep81.stats2 = new Array(35, 10, 10, 50); wep81.description = 'A weapon that fires a self propelled explosive.'; wep82 = new Object(); wep82.name = 'Precision Rocket Launcher'; wep82.stats = new Array(4, 1, 0, 0, 4); wep82.stats2 = new Array(50, 10, 20, 50); wep82.description = 'A weapon that fires a self propelled explosive.'; wep83 = new Object(); wep83.name = 'SPEC Rocket Launcher'; wep83.stats = new Array(4, 1, 0, 0, 4); wep83.stats2 = new Array(40, 10, 10, 50); wep83.description = 'A weapon that fires a self propelled explosive.'; wep84 = new Object(); wep84.name = 'Destroyer Rocket Launcher'; wep84.stats = new Array(4, 1, 0, 0, 5); wep84.stats2 = new Array(50, 10, 8, 50); wep84.description = 'A weapon that fires a self propelled explosive.'; wep85 = new Object(); wep85.name = 'Panzerfaust Rocket Launcher'; wep85.stats = new Array(4, 1, 0, 0, 5); wep85.stats2 = new Array(75, 10, 5, 50); wep85.description = 'A weapon that fires a self propelled explosive.'; wep86 = new Object(); wep86.name = 'Double Rocket Launcher'; wep86.stats = new Array(4, 2, 0, 0, 1); wep86.stats2 = new Array(-5, 10, 12, 50); wep86.description = 'A weapon that fires two self propelled explosives.'; wep87 = new Object(); wep87.name = 'Twin Rocket Launcher'; wep87.stats = new Array(4, 2, 0, 0, 2); wep87.stats2 = new Array(10, 10, 10, 50); wep87.description = 'A weapon that fires two self propelled explosives.'; wep88 = new Object(); wep88.name = 'Detonator Double Rocket Launcher'; wep88.stats = new Array(4, 2, 0, 0, 3); wep88.stats2 = new Array(20, 10, 10, 50); wep88.description = 'A weapon that fires two self propelled explosives.'; wep89 = new Object(); wep89.name = 'Cascade Double Rocket Launcher'; wep89.stats = new Array(4, 2, 0, 0, 4); wep89.stats2 = new Array(20, 10, 3, 50); wep89.description = 'A weapon that fires two self propelled explosives.'; wep90 = new Object(); wep90.name = 'SPEC-V Rocket Launcher'; wep90.stats = new Array(4, 2, 0, 0, 5); wep90.stats2 = new Array(50, 10, 10, 50); wep90.description = 'A weapon that fires two self propelled explosives.'; wep91 = new Object(); wep91.name = 'Triple Rocket Launcher'; wep91.stats = new Array(4, 3, 0, 0, 2); wep91.stats2 = new Array(0, 10, 12, 50); wep91.description = 'A weapon that fires three self propelled explosives.'; wep92 = new Object(); wep92.name = 'Tri-Power Rocket Launcher'; wep92.stats = new Array(4, 3, 0, 0, 3); wep92.stats2 = new Array(15, 10, 10, 50); wep92.description = 'A weapon that fires three self propelled explosives.'; wep93 = new Object(); wep93.name = 'Heavy Triple Rocket Launcher'; wep93.stats = new Array(4, 3, 0, 0, 4); wep93.stats2 = new Array(75, 10, 25, 50); wep93.description = 'A weapon that fires three self propelled explosives.'; wep94 = new Object(); wep94.name = 'Cascade Triple Rocket Launcher'; wep94.stats = new Array(4, 3, 0, 0, 4); wep94.stats2 = new Array(20, 10, 3, 50); wep94.description = 'A weapon that fires three self propelled explosives.'; wep95 = new Object(); wep95.name = 'Trident Rocket Launcher'; wep95.stats = new Array(4, 3, 0, 0, 5); wep95.stats2 = new Array(60, 10, 10, 50); wep95.description = 'A weapon that fires three self propelled explosives.'; wep96 = new Object(); wep96.name = 'Quad Rocket Launcher'; wep96.stats = new Array(4, 4, 0, 0, 2); wep96.stats2 = new Array(-5, 10, 12, 50); wep96.description = 'A weapon that fires four self propelled explosives.'; wep97 = new Object(); wep97.name = '2x2 Rocket Launcher'; wep97.stats = new Array(4, 4, 0, 0, 3); wep97.stats2 = new Array(10, 10, 10, 50); wep97.description = 'A weapon that fires four self propelled explosives.'; wep98 = new Object(); wep98.name = 'Heavy Quad Rocket Launcher'; wep98.stats = new Array(4, 4, 0, 0, 4); wep98.stats2 = new Array(75, 10, 25, 50); wep98.description = 'A weapon that fires four self propelled explosives.'; wep99 = new Object(); wep99.name = 'Cascade Rocket Launcher'; wep99.stats = new Array(4, 4, 0, 0, 4); wep99.stats2 = new Array(20, 10, 4, 50); wep99.description = 'A weapon that fires four self propelled explosives.'; wep100 = new Object(); wep100.name = 'QX-4 Rocket Launcher'; wep100.stats = new Array(4, 4, 0, 0, 5); wep100.stats2 = new Array(50, 10, 8, 50); wep100.description = 'A weapon that fires four self propelled explosives.'; wep101 = new Object(); wep101.name = 'QX-5 Rocket Launcher'; wep101.stats = new Array(4, 5, 0, 0, 5); wep101.stats2 = new Array(50, 10, 10, 50); wep101.description = 'A weapon that fires five self propelled explosives.'; wep102 = new Object(); wep102.name = 'QX-6 Rocket Launcher'; wep102.stats = new Array(4, 6, 0, 0, 5); wep102.stats2 = new Array(50, 10, 8, 50); wep102.description = 'A weapon that fires six self propelled explosives.'; wep103 = new Object(); wep103.name = 'QX-4.1 Rocket Launcher'; wep103.stats = new Array(4, 4, 0, 0, 6); wep103.stats2 = new Array(75, 10, 10, 50); wep103.description = 'A weapon that fires four self propelled explosives.'; wep104 = new Object(); wep104.name = 'QX-5.1 Rocket Launcher'; wep104.stats = new Array(4, 5, 0, 0, 6); wep104.stats2 = new Array(75, 10, 10, 50); wep104.description = 'A weapon that fires five self propelled explosives.'; wep105 = new Object(); wep105.name = 'QX-6.1 Rocket Launcher'; wep105.stats = new Array(4, 6, 0, 0, 6); wep105.stats2 = new Array(75, 10, 10, 50); wep105.description = 'A weapon that fires six self propelled explosives.'; wep106 = new Object(); wep106.name = 'Standard Lightning Gun'; wep106.stats = new Array(6, 1, 0, 0, 2); wep106.stats2 = new Array(-30, 8, 5, 75); wep106.description = 'A weapon that discharges a static bolt.'; wep107 = new Object(); wep107.name = 'Standard Lightning Gun+'; wep107.stats = new Array(6, 1, 0, 0, 2); wep107.stats2 = new Array(-25, 10, 5, 75); wep107.description = 'A weapon that discharges a static bolt.'; wep108 = new Object(); wep108.name = 'Charged Lightning Gun'; wep108.stats = new Array(6, 1, 0, 0, 3); wep108.stats2 = new Array(-20, 8, 5, 75); wep108.description = 'A weapon that discharges a static bolt.'; wep109 = new Object(); wep109.name = 'Charged Lightning Gun+'; wep109.stats = new Array(6, 1, 0, 0, 3); wep109.stats2 = new Array(-20, 10, 5, 50); wep109.description = 'A weapon that discharges a static bolt.'; wep110 = new Object(); wep110.name = 'Electrified Lightning Gun'; wep110.stats = new Array(6, 1, 0, 0, 4); wep110.stats2 = new Array(-15, 10, 5, 75); wep110.description = 'A weapon that discharges a static bolt.'; wep111 = new Object(); wep111.name = 'Electrified Lightning Gun+'; wep111.stats = new Array(6, 1, 0, 0, 4); wep111.stats2 = new Array(-10, 10, 5, 60); wep111.description = 'A weapon that discharges a static bolt.'; wep112 = new Object(); wep112.name = 'Ampere Lightning Gun'; wep112.stats = new Array(6, 1, 0, 0, 4); wep112.stats2 = new Array(-10, 8, 5, 75); wep112.description = 'A weapon that discharges a static bolt.'; wep113 = new Object(); wep113.name = 'Ampere Lightning Gun+'; wep113.stats = new Array(6, 1, 0, 0, 4); wep113.stats2 = new Array(-10, 10, 5, 50); wep113.description = 'A weapon that discharges a static bolt.'; wep114 = new Object(); wep114.name = 'Volta Lightning Gun'; wep114.stats = new Array(6, 1, 0, 0, 4); wep114.stats2 = new Array(-5, 8, 5, 75); wep114.description = 'A weapon that discharges a static bolt.'; wep115 = new Object(); wep115.name = 'Volta Lightning Gun+'; wep115.stats = new Array(6, 1, 0, 0, 4); wep115.stats2 = new Array(0, 10, 5, 60); wep115.description = 'A weapon that discharges a static bolt.'; wep116 = new Object(); wep116.name = 'Solar Lightning Gun'; wep116.stats = new Array(6, 1, 0, 0, 3); wep116.stats2 = new Array(100, 10, 35, 50); wep116.description = 'A weapon that discharges a powerful static bolt after a long charging period.'; wep117 = new Object(); wep117.name = 'Solar Lightning Gun+'; wep117.stats = new Array(6, 1, 0, 0, 3); wep117.stats2 = new Array(110, 10, 35, 40); wep117.description = 'A weapon that discharges a powerful static bolt after a long charging period.'; wep118 = new Object(); wep118.name = 'Thor Lightning Gun'; wep118.stats = new Array(6, 1, 0, 0, 5); wep118.stats2 = new Array(5, 8, 5, 75); wep118.description = 'A weapon that discharges a static bolt.'; wep119 = new Object(); wep119.name = 'Thor Lightning Gun+'; wep119.stats = new Array(6, 1, 0, 0, 5); wep119.stats2 = new Array(10, 10, 5, 50); wep119.description = 'A weapon that discharges a static bolt.'; wep120 = new Object(); wep120.name = 'Tesla Lightning Gun'; wep120.stats = new Array(6, 1, 0, 0, 6); wep120.stats2 = new Array(20, 15, 5, 25); wep120.description = 'A weapon that discharges a powerful static bolt.'; wep121 = new Object(); wep121.name = 'Standard Chain Lightning Gun'; wep121.stats = new Array(7, 1, 0, 0, 3); wep121.stats2 = new Array(-30, 15, 10, 75); wep121.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep122 = new Object(); wep122.name = 'Standard Chain Lightning Gun+'; wep122.stats = new Array(7, 1, 0, 0, 3); wep122.stats2 = new Array(-25, 15, 10, 75); wep122.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep123 = new Object(); wep123.name = 'Ampere Chain Lightning Gun'; wep123.stats = new Array(7, 1, 0, 0, 3); wep123.stats2 = new Array(-25, 15, 10, 75); wep123.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep124 = new Object(); wep124.name = 'Ampere Chain Lightning Gun+'; wep124.stats = new Array(7, 1, 0, 0, 3); wep124.stats2 = new Array(-20, 15, 10, 75); wep124.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep125 = new Object(); wep125.name = 'Volta Chain Lightning Gun'; wep125.stats = new Array(7, 1, 0, 0, 4); wep125.stats2 = new Array(-15, 15, 10, 60); wep125.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep126 = new Object(); wep126.name = 'Volta Chain Lightning Gun+'; wep126.stats = new Array(7, 1, 0, 0, 4); wep126.stats2 = new Array(-15, 15, 10, 40); wep126.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep127 = new Object(); wep127.name = 'Charged Chain Lightning Gun'; wep127.stats = new Array(7, 1, 0, 0, 4); wep127.stats2 = new Array(-10, 15, 10, 50); wep127.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep128 = new Object(); wep128.name = 'Electrified Chain Lightning Gun'; wep128.stats = new Array(7, 1, 0, 0, 4); wep128.stats2 = new Array(-5, 15, 10, 75); wep128.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep129 = new Object(); wep129.name = 'Tesla Chain Lightning Gun'; wep129.stats = new Array(7, 1, 0, 0, 5); wep129.stats2 = new Array(0, 15, 10, 50); wep129.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep130 = new Object(); wep130.name = 'Tesla Chain Lightning Gun+'; wep130.stats = new Array(7, 1, 0, 0, 6); wep130.stats2 = new Array(10, 15, 10, 40); wep130.description = 'A weapon that discharges a powerful static bolt that arcs to multiple enemies.'; wep131 = new Object(); wep131.name = 'Standard Saw Blade Launcher'; wep131.stats = new Array(8, 1, 0, 0, 1); wep131.stats2 = new Array(-20, 15, 10, 75); wep131.description = 'A weapon that fires circular saw blades.'; wep132 = new Object(); wep132.name = 'Spun Saw Blade Launcher'; wep132.stats = new Array(8, 1, 0, 0, 2); wep132.stats2 = new Array(-10, 15, 10, 75); wep132.description = 'A weapon that fires circular saw blades.'; wep133 = new Object(); wep133.name = 'Razor Saw Blade Launcher'; wep133.stats = new Array(8, 1, 0, 0, 3); wep133.stats2 = new Array(-5, 15, 10, 60); wep133.description = 'A weapon that fires circular saw blades.'; wep134 = new Object(); wep134.name = 'Forged Saw Blade Launcher'; wep134.stats = new Array(8, 1, 0, 0, 4); wep134.stats2 = new Array(0, 15, 10, 60); wep134.description = 'A weapon that fires circular saw blades.'; wep135 = new Object(); wep135.name = 'Grinder Saw Blade Launcher'; wep135.stats = new Array(8, 1, 0, 0, 5); wep135.stats2 = new Array(10, 15, 10, 50); wep135.description = 'A weapon that fires circular saw blades.'; wep136 = new Object(); wep136.name = 'Double Saw Blade Launcher'; wep136.stats = new Array(8, 2, 0, 0, 1); wep136.stats2 = new Array(-25, 15, 10, 75); wep136.description = 'A weapon that fires two circular saw blades.'; wep137 = new Object(); wep137.name = 'Double Razor Saw Blade Launcher'; wep137.stats = new Array(8, 2, 0, 0, 2); wep137.stats2 = new Array(-15, 15, 10, 75); wep137.description = 'A weapon that fires two circular saw blades.'; wep138 = new Object(); wep138.name = 'Double Forged Saw Blade Launcher'; wep138.stats = new Array(8, 2, 0, 0, 3); wep138.stats2 = new Array(0, 15, 10, 75); wep138.description = 'A weapon that fires two circular saw blades.'; wep139 = new Object(); wep139.name = 'Double Cutter Saw Blade Launcher'; wep139.stats = new Array(8, 2, 0, 0, 4); wep139.stats2 = new Array(5, 15, 10, 60); wep139.description = 'A weapon that fires two circular saw blades.'; wep140 = new Object(); wep140.name = 'Double Grinder Saw Blade Launcher'; wep140.stats = new Array(8, 2, 0, 0, 5); wep140.stats2 = new Array(10, 15, 10, 50); wep140.description = 'A weapon that fires two circular saw blades.'; wep141 = new Object(); wep141.name = 'Triple Saw Blade Launcher'; wep141.stats = new Array(8, 3, 0, 0, 1); wep141.stats2 = new Array(-30, 15, 10, 75); wep141.description = 'A weapon that fires three circular saw blades.'; wep142 = new Object(); wep142.name = 'Triple Razor Saw Blade Launcher'; wep142.stats = new Array(8, 3, 0, 0, 2); wep142.stats2 = new Array(-20, 15, 10, 75); wep142.description = 'A weapon that fires three circular saw blades.'; wep143 = new Object(); wep143.name = 'Triple Slicer Saw Blade Launcher'; wep143.stats = new Array(8, 3, 0, 0, 3); wep143.stats2 = new Array(-10, 15, 10, 60); wep143.description = 'A weapon that fires three circular saw blades.'; wep144 = new Object(); wep144.name = 'Triple Grinder Saw Blade Launcher'; wep144.stats = new Array(8, 3, 0, 0, 4); wep144.stats2 = new Array(10, 15, 10, 50); wep144.description = 'A weapon that fires three circular saw blades.'; wep145 = new Object(); wep145.name = 'Triple Mutilator Saw Blade Launcher'; wep145.stats = new Array(8, 3, 0, 0, 5); wep145.stats2 = new Array(25, 15, 10, 25); wep145.description = 'A weapon that fires three circular saw blades.'; } movieClip 524 { } movieClip 530 { } movieClip 533 { } movieClip 534 { } movieClip 538 { } movieClip 541 { } movieClip 542 { } movieClip 545 { } movieClip 546 { } movieClip 550 { } movieClip 552 { frame 1 { stop(); } } movieClip 560 { frame 1 { stop(); } } movieClip 562 { frame 1 { stop(); } } movieClip 567 { frame 1 { stop(); } } movieClip 571 { } movieClip 573 { } movieClip 578 { } movieClip 580 { } movieClip 582 { } movieClip 584 { } movieClip 587 { } movieClip 604 { frame 9 { stop(); } frame 18 { stop(); } frame 27 { stop(); } frame 36 { stop(); } } movieClip 606 { } movieClip 610 { } movieClip 612 { } movieClip 613 { } movieClip 616 { } movieClip 617 { } movieClip 620 { } movieClip 621 { } movieClip 622 { } movieClip 623 { } movieClip 624 { instance fbg2 of movieClip 562 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg1 of movieClip 562 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = _parent[to]._x + _width - 2; } }; } } instance ffbg1 of movieClip 567 { onClipEvent (load) { to = 'ffbg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = _parent[to]._x + _width - 2; } }; } } instance ffbg2 of movieClip 567 { onClipEvent (load) { to = 'ffbg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg4 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg3 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg1 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg2 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg5 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg6 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance m2bg7 of movieClip 560 { onClipEvent (load) { fun1 = function () { _x = _x - _parent.spd4; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance mbg4 of movieClip 560 { onClipEvent (load) { gotoAndStop(2); fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance mbg3 of movieClip 560 { onClipEvent (load) { gotoAndStop(2); fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance mbg1 of movieClip 560 { onClipEvent (load) { gotoAndStop(2); fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance mbg2 of movieClip 560 { onClipEvent (load) { gotoAndStop(2); fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance mbg5 of movieClip 560 { onClipEvent (load) { gotoAndStop(2); fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance frbg4 of movieClip 560 { onClipEvent (load) { gotoAndStop(3); fun1 = function () { _x = _x - _parent.spd3; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance frbg3 of movieClip 560 { onClipEvent (load) { gotoAndStop(3); fun1 = function () { _x = _x - _parent.spd3; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance frbg1 of movieClip 560 { onClipEvent (load) { gotoAndStop(3); fun1 = function () { _x = _x - _parent.spd3; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance frbg2 of movieClip 560 { onClipEvent (load) { gotoAndStop(3); fun1 = function () { _x = _x - _parent.spd3; }; fun2 = function () { if (_x < -362 - _width / 2) { _x = 720 + _width / 2 + random(100); } }; } } instance fbg3 of movieClip 573 { onClipEvent (load) { to = ''; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -500) { _x = 750 + random(100); } }; } } instance fbg1 of movieClip 587 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 587 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg1 of movieClip 587 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg2 of movieClip 587 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg3 of movieClip 587 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 587 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance of movieClip 604 { onClipEvent (load) { gotoAndStop(9); } onClipEvent (enterFrame) { c = random(50); if (c == 1) { play(); } } } instance fbg3 of movieClip 606 { onClipEvent (load) { to = ''; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -500) { _x = 750 + random(100); } }; } } instance fbg1 of movieClip 610 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 610 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg1 of movieClip 610 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg2 of movieClip 610 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg3 of movieClip 610 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 610 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg3 of movieClip 613 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 613 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg1 of movieClip 613 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg2 of movieClip 613 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance fbg1 of movieClip 613 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 613 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg3 of movieClip 573 { onClipEvent (load) { to = ''; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -500) { _x = 750 + random(100); } }; } } instance fbg1 of movieClip 587 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 587 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg1 of movieClip 587 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg2 of movieClip 587 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg3 of movieClip 587 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 587 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance fbg1 of movieClip 546 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 546 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg1 of movieClip 617 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg2 of movieClip 617 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg3 of movieClip 617 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 617 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width) { _x = _parent[to]._x + _width - 12; } }; } } instance fbg3 of movieClip 573 { onClipEvent (load) { to = ''; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -500) { _x = 750 + random(100); } }; } } instance fbg1 of movieClip 622 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 7; } }; } } instance fbg2 of movieClip 622 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 7; } }; } } instance m2bg1 of movieClip 622 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 7; } }; } } instance m2bg2 of movieClip 622 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 7; } }; } } instance m2bg3 of movieClip 622 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 17; } }; } } instance m2bg4 of movieClip 622 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 17; } }; } } instance fbg3 of movieClip 623 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 623 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg1 of movieClip 623 { onClipEvent (load) { to = 'fbg3'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg2 of movieClip 623 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg1 of movieClip 623 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance fbg1 of movieClip 488 { onClipEvent (load) { to = 'fbg2'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance fbg2 of movieClip 488 { onClipEvent (load) { to = 'fbg1'; fun1 = function () { _x = _x - _parent.spd1; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg1 of movieClip 488 { onClipEvent (load) { to = 'm2bg2'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg2 of movieClip 488 { onClipEvent (load) { to = 'm2bg1'; fun1 = function () { _x = _x - _parent.spd5; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 2; } }; } } instance m2bg3 of movieClip 488 { onClipEvent (load) { to = 'm2bg4'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } instance m2bg4 of movieClip 488 { onClipEvent (load) { to = 'm2bg3'; fun1 = function () { _x = _x - _parent.spd2; }; fun2 = function () { if (_x < -_width - 30) { _x = _parent[to]._x + _width - 12; } }; } } } movieClip 639 { } movieClip 651 { } movieClip 663 { } movieClip 667 { frame 4 { stop(); } } movieClip 720 { frame 27 { this.removeMovieClip(''); stop(); } frame 54 { this.removeMovieClip(''); stop(); } } movieClip 725 { frame 1 { stop(); } } movieClip 729 { frame 7 { stop(); } } movieClip 730 { instance explosion of movieClip 720 { onClipEvent (load) { if (_name != 'explosion') { c = random(2) + 1; if (c == 1) { gotoAndPlay(28); } _alpha = 100; myRadians = Math.atan2(_y, _x); r = Math.round(myRadians * 180 / Math.PI); speed = -5; x = Math.sin((r + 90) * 0.0174532925199433) * speed; y = Math.cos((r + 90) * 0.0174532925199433) * speed * -1; } else { gotoAndStop(27); } } onClipEvent (enterFrame) { if (_name != 'explosion') { if (_root.pause == false) { play(); _y = _y - y; _x = _x - y; } else { stop(); } } } } frame 27 { removeMovieClip(''); stop(); } } movieClip 739 { frame 1 { stop(); } } movieClip 747 { frame 1 { stop(); } } movieClip 749 { } movieClip 755 { frame 1 { stop(); } } movieClip 757 { instance point of movieClip 220 { onClipEvent (load) { fun = function () { point = new Object(); point.x = _x; point.y = _y; _parent.localToGlobal(point); x = point.x; y = point.y; }; } } } movieClip 761 { } movieClip 763 { } movieClip 764 { } movieClip 767 { frame 1 { stop(); } } movieClip 772 { } movieClip 776 { frame 1 { stop(); } } movieClip 788 { frame 1 { stop(); } } movieClip 793 { } movieClip 800 { frame 1 { stop(); } } movieClip 806 { } movieClip 810 { frame 1 { stop(); } } movieClip 812 { } movieClip 815 { } movieClip 819 { } movieClip 822 { } movieClip 825 { } movieClip 828 { } movieClip 830 { } movieClip 831 { frame 9 { stop(); } frame 18 { stop(); } frame 27 { stop(); } frame 36 { stop(); } frame 45 { stop(); } frame 54 { stop(); } frame 63 { stop(); } } movieClip 832 { frame 1 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 1; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 350; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'laser'); laserTar = new Array('laser'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; laser.health = 1400; maxHealth = laser.health; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } if (laser.health > maxHealth / 2) { rof = 15; } else { rof = 5; } coolDown = rof; ++barrelOn; if (barrelOn > 6) { barrelOn = 0; } }; }; } frame 1 { stop(); } frame 2 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; coolDown = rof; atp = 2; sweep = 2; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 700; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'laser'); laserTar = new Array('laser'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; laser.health = 2800; maxHealth = laser.health; trace(laser.health); shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } if (laser.health > maxHealth / 2) { rof = 5; } else { rof = 2; } coolDown = rof; ++barrelOn; if (barrelOn > 6) { barrelOn = 0; } }; }; } frame 3 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 2; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 1000; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0'); laserTar = new Array('orb0'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 4000; maxHealth = orb0.health; shootFun = function () { if (barrelOn < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; } ++barrelOn; if (barrelOn < 6) { coolDown = rof; } else { coolDown = 20; if (barrelOn > 7) { barrelOn = 0; } } }; }; } frame 4 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 3; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 1125; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0'); laserTar = new Array('orb0'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 4500; maxHealth = orb0.health; shootFun = function () { if (barrelOn < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; } ++barrelOn; if (barrelOn < 6) { coolDown = rof; } else { coolDown = 15; if (barrelOn > 7) { barrelOn = 0; } } }; }; } frame 5 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 20; coolDown = rof; atp = 1; shotsFired = 0; yFollow = 41; stopPoint = 550; spd = 5; yVel = 0; accel = 0.1; ySpd = 3; exp = 1000; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'orb1', 'armor0'); laserTar = new Array('orb1', 'armor0', 'orb0'); tx = new Array(0, 15, 15, 40); ty = new Array(0, 15, 15, 50); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 3000; maxHealth = orb0.health; this[tar[2]].health = 3500; this[tar[3]].health = 2500; shootFun = function () { if (barrelOn < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = rof; } else { if (orb1.health > 0) { if (shotsFired < 30) { myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; coolDown = 3; ++shotsFired; } else { ++barrelOn; coolDown = rof; shotsFired = 0; this['gun' + barrelOn]._rotation = 0; } } else { coolDown = 0; barrelOn = 0; } } if (barrelOn > 4) { barrelOn = 0; } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; tar[1] = 'orb0'; } } if (orb1.health < 0) { if (gotRidOfOrb != true) { gotRidOfOrb = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } gun3._rotation = -80; gun4._rotation = -80; orb1._visible = false; } } }; }; } frame 6 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 20; coolDown = rof; atp = 1; shotsFired = 0; yFollow = 0; stopPoint = 700; spd = 5; yVel = 0; accel = 0.1; ySpd = 3; exp = 2000; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'armor0', 'armor1'); laserTar = new Array('armor1', 'armor0', 'orb0', 'orb1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 2000; maxHealth = orb0.health; orb1.health = 2000; armor0.health = 2000; armor1.health = 2000; shootFun = function () { if (barrelOn < 2) { if (shotsFired < 30) { myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; coolDown = 3; ++shotsFired; } else { ++barrelOn; coolDown = rof; shotsFired = 0; this['gun' + barrelOn]._rotation = 0; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; _parent['e' + i].ySpd = 0; coolDown = 2; if (bb == 0 || bb == 2) { ++barrelOn; if (barrelOn > 9) { if (bb == 0) { bb = 1; barrelOn = 8; } else { bb = 0; barrelOn = 0; } } } else { --barrelOn; if (barrelOn < 2) { bb = 2; barrelOn = 3; } } } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb0') { laserTar.splice(a, 1); } ++a; } } orb0._visible = false; } } if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } } orb1._visible = false; } } }; }; } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } frame 7 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 3; coolDown = rof; atp = 2; sweep = 3; forth = 0; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 1250; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'armor0'); laserTar = new Array('armor0', 'orb0'); tx = new Array(0, 15, 18); ty = new Array(0, 15, 18); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 5000; maxHealth = orb0.health; armor0.health = 2000; shootFun = function () { if (barrelOn < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = rof; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 15; } if (forth < 1) { ++barrelOn; if (barrelOn > 9) { if (forth == 0) { forth = 1; barrelOn = 9; } } if (barrelOn > 13) { barrelOn = 0; forth = 0; } } else { --barrelOn; if (barrelOn < 0) { barrelOn = 1; forth = -1; } } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } tar.splice(2, 1); tx.splice(2, 1); ty.splice(2, 1); laserTar.splice(0, 1); armor0._visible = false; tar[1] = 'orb0'; } } }; }; } frame 8 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 3; coolDown = rof; atp = 2; sweep = 3; forth = 0; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 1500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'armor0'); laserTar = new Array('armor0', 'orb0'); tx = new Array(0, 15, 18); ty = new Array(0, 15, 18); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 5000; maxHealth = orb0.health; armor0.health = 4000; shootFun = function () { if (barrelOn < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = rof; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 15; } if (forth < 1) { ++barrelOn; if (barrelOn > 9) { if (forth == 0) { forth = 1; barrelOn = 9; } } if (barrelOn > 13) { barrelOn = 0; forth = 0; } } else { --barrelOn; if (barrelOn < 0) { barrelOn = 1; forth = -1; } } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } tar.splice(2, 1); tx.splice(2, 1); ty.splice(2, 1); laserTar.splice(0, 1); armor0._visible = false; tar[1] = 'orb0'; } } }; }; } frame 9 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 3; sweep = 5; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'laser'); laserTar = new Array('laser'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; laser.health = 10000; maxHealth = laser.health; forth = 0; shootFun = function () { if (barrelOn < 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = rof; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.enemyLaser, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].master = 'p7'; _parent['e' + i].master2 = _name; coolDown = 30; } if (forth < 1) { ++barrelOn; if (barrelOn > 6) { if (forth == 0) { forth = 1; barrelOn = 5; } } if (barrelOn > 7) { barrelOn = 0; forth = 0; } } else { --barrelOn; if (barrelOn < 0) { barrelOn = 1; forth = -1; } } }; }; } frame 10 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 5; sweep = 5; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 3000; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'laser'); laserTar = new Array('laser'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; laser.health = 12000; maxHealth = laser.health; forth = 0; shootFun = function () { if (barrelOn < 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = rof; } else { if (barrelOn > 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 15; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.enemyLaser, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].master = 'p7'; _parent['e' + i].master2 = _name; coolDown = 30; } } if (forth < 1) { ++barrelOn; if (barrelOn > 6) { if (forth == 0) { forth = 1; barrelOn = 5; } } if (barrelOn > 9) { barrelOn = 0; forth = 0; } } else { --barrelOn; if (barrelOn < 0) { barrelOn = 1; forth = -1; } } }; }; } frame 11 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 3; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 1250; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2', 'orb3'); laserTar = new Array('orb1', 'orb2', 'orb3', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 5000; maxHealth = orb0.health; orb1.health = 3000; orb2.health = 3000; orb3.health = 3000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } if (orb0.health > maxHealth / 2) { rof = 7; } else { rof = 2; } coolDown = rof; }; shootFun = function () { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } else { if (barrelOn == 6 || barrelOn == 7 || barrelOn == 8) { if (orb3.health > 0) { sh(); } } } } ++barrelOn; if (barrelOn > 8) { barrelOn = 0; } ++a; } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb3') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb3') { laserTar.splice(a, 1); } ++a; } orb3._visible = false; } } }; }; } frame 12 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 5; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 2500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'not here', 'orb1', 'orb2', 'orb3', 'armor0'); laserTar = new Array('orb1', 'orb2', 'orb3', 'armor0', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 8000; maxHealth = orb0.health; orb1.health = 4000; orb2.health = 4000; orb3.health = 4000; armor0.health = 3000; maxHealth2 = armor0.health; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } if (armor0.health > maxHealth2 / 2) { rof = 7; } else { rof = 2; } coolDown = rof; }; shootFun = function () { if (barrelOn < 9) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } else { if (barrelOn == 6 || barrelOn == 7 || barrelOn == 8) { if (orb3.health > 0) { sh(); } } } } ++barrelOn; ++a; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 8; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 15; ++barrelOn; if (barrelOn > 12) { barrelOn = 0; } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb3') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb3') { laserTar.splice(a, 1); } ++a; } orb3._visible = false; } } if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'not here') { tar[a] = 'orb0'; } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } }; }; } frame 13 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 3; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 2500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 9000; maxHealth = orb0.health; orb1.health = 5000; orb2.health = 5000; shootFun = function () {}; shoot1 = function () { a = 0; while (a < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 0) { sw = -2; } else { if (a == 1) { sw = 0; } else { if (a == 2) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot2 = function () { a = 3; while (a < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 3) { sw = -2; } else { if (a == 4) { sw = 0; } else { if (a == 5) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot3 = function () { barrelOn = 6; myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } }; }; } instance orb1 of movieClip 788 { onClipEvent (enterFrame) { if (_root.pause == false) { if (health < lastHealth) { if (health > 0) { _parent.shoot1(); } } } } } instance orb2 of movieClip 788 { onClipEvent (enterFrame) { if (_root.pause == false) { if (health < lastHealth) { if (health > 0) { _parent.shoot2(); } } } } } instance orb0 of movieClip 747 { onClipEvent (enterFrame) { if (_root.pause == false) { if (health < lastHealth) { if (health > 0) { _parent.shoot3(); } } } } } frame 14 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 7; atp = 1; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 2800; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 10000; maxHealth = orb0.health; orb1.health = 7000; orb2.health = 7000; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + bb]._x + _x; _parent['b' + i]._y = this['p' + bb]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + bb]._y + _y), _parent.character._x - (this['p' + bb]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + bb]._x + _x; _parent['s' + i]._y = this['p' + bb]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 30; if (bb == 7) { bb = 8; } else { bb = 7; } }; shoot1 = function () { a = 0; while (a < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 0) { sw = -2; } else { if (a == 1) { sw = 0; } else { if (a == 2) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot2 = function () { a = 3; while (a < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 3) { sw = -2; } else { if (a == 4) { sw = 0; } else { if (a == 5) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot3 = function () { barrelOn = 6; myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } }; }; } frame 15 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 7; atp = 1; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 3200; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 15000; maxHealth = orb0.health; orb1.health = 8000; orb2.health = 8000; shootFun = function () { if (bb < 9) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + bb]._x + _x; _parent['b' + i]._y = this['p' + bb]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + bb]._y + _y), _parent.character._x - (this['p' + bb]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + bb]._x + _x; _parent['s' + i]._y = this['p' + bb]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.enemyLaser, 'e' + i, i); _parent['e' + i]._x = this['p' + bb]._x + _x; _parent['e' + i]._y = this['p' + bb]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].master = 'p9'; _parent['e' + i].master2 = _name; } coolDown = 20; ++bb; if (bb > 9) { bb = 7; } }; shoot1 = function () { a = 0; while (a < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 0) { sw = -2; } else { if (a == 1) { sw = 0; } else { if (a == 2) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot2 = function () { a = 3; while (a < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + a]._x + _x; _parent['e' + i]._y = this['p' + a]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (a == 3) { sw = -2; } else { if (a == 4) { sw = 0; } else { if (a == 5) { sw = 2; } } } _parent['e' + i].ySpd = sw; } ++a; } }; shoot3 = function () { barrelOn = 6; myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } }; }; } frame 16 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 0; atp = 1; sweep = 5; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 4000; _x = -500; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15); ty = new Array(0, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 8000; maxHealth = orb0.health; orb1.health = 8000; orb2.health = 8000; orb3.health = 8000; orb4.health = 8000; orb5.health = 8000; armor0.health = 8000; armor1.health = 8000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } }; shootFun = function () { if (orb0.health > 0) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } } ++barrelOn; ++a; } coolDown = 2; if (barrelOn > 5) { barrelOn = 0; } } else { if (orb3.health > 0) { if (barrelOn > 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (barrelOn < 16) { _parent['e' + i].ySpd = 14 - barrelOn; } else { _parent['e' + i].ySpd = 15 - barrelOn; } coolDown = 1; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 20; } ++barrelOn; if (barrelOn > 21) { if (bb < 2) { ++bb; barrelOn = 8; } else { bb = 0; barrelOn = 6; } } } else { if (orb4.health > 0 || orb5.health > 0) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 29) { barrelOn = 22; } } } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb0._visible = false; didStopPoint = false; barrelOn = 6; coolDown = 20; stopPoint = 1350; tar = new Array(0, 'orb3'); laserTar = new Array('orb3'); } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb3._visible = false; didStopPoint = false; stopPoint = 2050; barrelOn = 22; tar = new Array(0, 'orb4', 'orb5', 'armor0', 'armor1'); laserTar = new Array('orb4', 'orb5', 'armor0', 'armor1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); } } if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb4.health < 0) { if (gotRidOfOrb4 != true) { gotRidOfOrb4 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb4._x + _x + random(50); _parent['s' + i]._y = orb4._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb4') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb4') { laserTar.splice(a, 1); } ++a; } } orb4._visible = false; } } if (orb5.health < 0) { if (gotRidOfOrb5 != true) { gotRidOfOrb5 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb5._x + _x + random(50); _parent['s' + i]._y = orb5._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb5') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb5') { laserTar.splice(a, 1); } ++a; } } orb5._visible = false; } } }; }; } instance orb0 of movieClip 747 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot3(); } } } } instance orb1 of movieClip 788 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot1(); } } } } instance orb2 of movieClip 788 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot2(); } } } } instance orb3 of movieClip 747 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot3(); } } } } frame 17 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 5; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 2500; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0'); laserTar = new Array('orb0'); tx = new Array(0, 15); ty = new Array(0, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 8000; maxHealth = orb0.health; shootFun = function () { if (barrelOn < 4) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.enemyLaser, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].master = 'p' + barrelOn; _parent['e' + i].master2 = _name; coolDown = 15; ++barrelOn; } else { if (barrelOn < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 2; ++barrelOn; if (barrelOn > 5) { ++bb; if (bb > 20) { bb = 0; } else { barrelOn = 4; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 20; ++barrelOn; } } if (barrelOn > 7) { barrelOn = 0; } }; }; } frame 18 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 20; coolDown = rof; atp = 5; shotsFired = 0; yFollow = 0; stopPoint = 700; spd = 5; yVel = 0; accel = 0.1; ySpd = 3; exp = 2000; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'armor0', 'armor1'); laserTar = new Array('armor1', 'armor0', 'orb0', 'orb1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 4000; maxHealth = orb0.health; orb1.health = 4000; armor0.health = 4000; armor1.health = 4000; shootFun = function () { if (barrelOn < 2) { if (shotsFired < 30) { myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 12; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; coolDown = 2; ++shotsFired; } else { ++barrelOn; coolDown = rof; shotsFired = 0; this['gun' + barrelOn]._rotation = 0; } } else { if (barrelOn < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; _parent['e' + i].ySpd = barrelOn - 6; coolDown = 2; if (bb == 0 || bb == 2) { ++barrelOn; if (barrelOn > 9) { if (bb == 0) { bb = 1; barrelOn = 8; } else { bb = 0; barrelOn = 10; } } } else { --barrelOn; if (barrelOn < 2) { bb = 2; barrelOn = 3; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 20; ++barrelOn; if (barrelOn > 11) { barrelOn = 0; } } } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb0') { laserTar.splice(a, 1); } ++a; } } orb0._visible = false; } } if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } } orb1._visible = false; } } }; }; } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } frame 19 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 20; coolDown = rof; atp = 1; shotsFired = 0; yFollow = 41; stopPoint = 550; spd = 5; yVel = 0; accel = 0.1; ySpd = 3; exp = 1800; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'orb1', 'armor0'); laserTar = new Array('orb1', 'armor0', 'orb0'); tx = new Array(0, 15, 15, 40); ty = new Array(0, 15, 15, 50); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 3000; maxHealth = orb0.health; this[tar[2]].health = 3500; this[tar[3]].health = 2500; shootFun = function () { if (barrelOn < 5) { if (barrelOn < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = rof; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.enemyLaser, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].master = 'p' + barrelOn; _parent['e' + i].master2 = _name; ++barrelOn; coolDown = 20; } } else { if (orb1.health > 0) { if (shotsFired < 30) { myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; coolDown = 3; ++shotsFired; } else { ++barrelOn; coolDown = rof; shotsFired = 0; this['gun' + barrelOn]._rotation = 0; } } else { coolDown = 0; barrelOn = 0; } } if (barrelOn > 6) { barrelOn = 0; } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; tar[1] = 'orb0'; } } if (orb1.health < 0) { if (gotRidOfOrb != true) { gotRidOfOrb = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } gun3._rotation = -80; gun4._rotation = -80; orb1._visible = false; } } }; }; } frame 20 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 1; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2', 'orb3'); laserTar = new Array('orb1', 'orb2', 'orb3', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 5000; maxHealth = orb0.health; orb1.health = 3000; orb2.health = 3000; orb3.health = 3000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } if (orb0.health > maxHealth / 2) { rof = 7; } else { rof = 2; } coolDown = rof; }; shootFun = function () { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } else { if (barrelOn == 6 || barrelOn == 7 || barrelOn == 8) { if (orb3.health > 0) { sh(); } } } } ++barrelOn; if (barrelOn > 8) { barrelOn = 0; } ++a; } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb3') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb3') { laserTar.splice(a, 1); } ++a; } orb3._visible = false; } } }; }; } frame 21 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; atp = 1; sweep = 1; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 500; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'not here', 'orb1', 'orb2', 'orb3', 'armor0'); laserTar = new Array('orb1', 'orb2', 'orb3', 'armor0', 'orb0'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 500; maxHealth = orb0.health; orb1.health = 500; orb2.health = 500; orb3.health = 500; armor0.health = 1000; maxHealth2 = armor0.health; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } if (armor0.health > maxHealth2 / 2) { rof = 7; } else { rof = 2; } coolDown = rof; }; shootFun = function () { if (barrelOn < 9) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } else { if (barrelOn == 6 || barrelOn == 7 || barrelOn == 8) { if (orb3.health > 0) { sh(); } } } } ++barrelOn; ++a; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 15; ++barrelOn; if (barrelOn > 10) { barrelOn = 0; } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb3') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb3') { laserTar.splice(a, 1); } ++a; } orb3._visible = false; } } if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'not here') { tar[a] = 'orb0'; } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } }; }; } frame 22 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 20; coolDown = rof; atp = 1; shotsFired = 0; yFollow = 0; stopPoint = 700; spd = 5; yVel = 0; accel = 0.1; ySpd = 3; exp = 2000; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'armor0', 'armor1'); laserTar = new Array('armor1', 'armor0', 'orb0', 'orb1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 2000; maxHealth = orb0.health; orb1.health = 2000; armor0.health = 2000; armor1.health = 2000; shootFun = function () { if (barrelOn < 2) { if (shotsFired < 30) { myRadians = Math.atan2(_parent.character._y - (this['gun' + barrelOn]._y + _y), _parent.character._x - (this['gun' + barrelOn]._x + _x)); this['gun' + barrelOn]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; if (this['gun' + barrelOn]._rotation > 60) { this['gun' + barrelOn]._rotation = 60; } if (this['gun' + barrelOn]._rotation < -60) { this['gun' + barrelOn]._rotation = -60; } proSpeed = 10; this['gun' + barrelOn].point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['gun' + barrelOn].point.x - _root.game._x; _parent['e' + i]._y = this['gun' + barrelOn].point.y - _root.game._y; _parent['e' + i].xSpd = Math.sin((this['gun' + barrelOn]._rotation + 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((this['gun' + barrelOn]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; _parent['e' + i].pow = atp; coolDown = 3; ++shotsFired; } else { ++barrelOn; coolDown = rof; shotsFired = 0; this['gun' + barrelOn]._rotation = 0; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; _parent['e' + i].ySpd = 0; coolDown = 2; if (bb == 0 || bb == 2) { ++barrelOn; if (barrelOn > 9) { if (bb == 0) { bb = 1; barrelOn = 8; } else { bb = 0; barrelOn = 0; } } } else { --barrelOn; if (barrelOn < 2) { bb = 2; barrelOn = 3; } } } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb0') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb0') { laserTar.splice(a, 1); } ++a; } } orb0._visible = false; } } if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); tx.splice(a, 1); ty.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } } orb1._visible = false; } } }; }; } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } instance of movieClip 772 { onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } frame 23 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 5; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 2400; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'armor0'); laserTar = new Array('armor0', 'orb0'); tx = new Array(0, 15, 25); ty = new Array(0, 15, 60); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 8000; maxHealth = orb0.health; armor0.health = 8000; shootFun = function () { if (barrelOn < 9) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; proSpeed = 1; _parent['b' + i].xSpd = -5; _parent['b' + i].ySpd = this['p' + barrelOn]._y / 30; _parent['b' + i]._rotation = _parent['b' + i].ySpd * -7; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; if (tar[1] != 'notHereYet') { coolDown = 5; } else { coolDown = 15; } ++barrelOn; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 12) { ++bb; if (bb > 20) { bb = 0; } else { barrelOn = 9; } } } if (barrelOn > 12) { barrelOn = 0; } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(60); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } tar.splice(2, 1); tx.splice(2, 1); ty.splice(2, 1); laserTar.splice(0, 1); armor0._visible = false; tar[1] = 'orb0'; } } }; }; } frame 24 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 5; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 3000; bb = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'armor0'); laserTar = new Array('armor0', 'orb0'); tx = new Array(0, 15, 25); ty = new Array(0, 15, 60); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 10000; maxHealth = orb0.health; armor0.health = 10000; shootFun = function () { if (barrelOn < 9) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; proSpeed = 1; _parent['b' + i].xSpd = -5; _parent['b' + i].ySpd = this['p' + barrelOn]._y / 30; _parent['b' + i]._rotation = _parent['b' + i].ySpd * -7; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; if (tar[1] != 'notHereYet') { coolDown = 5; } else { coolDown = 15; } ++barrelOn; } else { if (barrelOn < 13) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 12) { ++bb; if (bb > 20) { bb = 0; } else { barrelOn = 9; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = 20; } } if (barrelOn > 16) { barrelOn = 0; } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(60); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } tar.splice(2, 1); tx.splice(2, 1); ty.splice(2, 1); laserTar.splice(0, 1); armor0._visible = false; tar[1] = 'orb0'; } } }; }; } frame 25 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 2; coolDown = rof; atp = 5; sweep = 3; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 4000; bb = 0; barrelOn = 0; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'notHereYet', 'armor0'); laserTar = new Array('armor0', 'orb0'); tx = new Array(0, 15, 25); ty = new Array(0, 15, 60); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; orb0.health = 15000; maxHealth = orb0.health; armor0.health = 15000; shootFun = function () { if (barrelOn < 13) { if (barrelOn < 4 || barrelOn > 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; proSpeed = 1; _parent['b' + i].xSpd = -5; _parent['b' + i].ySpd = this['p' + barrelOn]._y / 30; _parent['b' + i]._rotation = _parent['b' + i].ySpd * -7; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; if (tar[1] != 'notHereYet') { coolDown = 5; } else { coolDown = 15; } ++barrelOn; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 7) { ++bb; if (bb > 20) { bb = 0; } else { barrelOn = 4; } } } } else { if (barrelOn < 17) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 16) { ++bb; if (bb > 20) { bb = 0; } else { barrelOn = 13; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 5; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = 20; } } if (barrelOn > 20) { barrelOn = 0; } }; moar = function () { if (armor0.health < 0) { if (gotRidOfArmor != true) { gotRidOfArmor = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(60); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } tar.splice(2, 1); tx.splice(2, 1); ty.splice(2, 1); laserTar.splice(0, 1); armor0._visible = false; tar[1] = 'orb0'; } } }; }; } frame 26 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 0; atp = 8; sweep = 5; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 3500; _x = -500; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15); ty = new Array(0, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 10000; maxHealth = orb0.health; orb1.health = 5000; orb2.health = 5000; orb3.health = 12000; orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3 || barrelOn == 6) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4 || barrelOn == 7) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5 || barrelOn == 8) { sw = 2; } } } _parent['e' + i].ySpd = sw; } }; shootFun = function () { if (orb0.health > 0) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } } ++barrelOn; ++a; } coolDown = 2; if (barrelOn > 5) { barrelOn = 0; } } else { if (orb3.health > 0) { if (barrelOn > 7) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (barrelOn < 16) { _parent['e' + i].ySpd = 14 - barrelOn; } else { _parent['e' + i].ySpd = 15 - barrelOn; } coolDown = 1; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 20; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 20; } ++barrelOn; if (barrelOn > 21) { if (bb < 2) { ++bb; barrelOn = 8; } else { bb = 0; barrelOn = 6; } } } else { if (orb4.health > 0 || orb5.health > 0) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; if (barrelOn > 29) { barrelOn = 22; } } } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb0._visible = false; didStopPoint = false; barrelOn = 6; coolDown = 20; stopPoint = 1350; tar = new Array(0, 'orb3'); laserTar = new Array('orb3'); orb3.health = 12000; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb3._visible = false; didStopPoint = false; stopPoint = 2050; barrelOn = 22; tar = new Array(0, 'orb4', 'orb5', 'armor0', 'armor1'); laserTar = new Array('orb4', 'orb5', 'armor0', 'armor1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; } } if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb4.health < 0) { if (gotRidOfOrb4 != true) { gotRidOfOrb4 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb4._x + _x + random(50); _parent['s' + i]._y = orb4._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb4') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb4') { laserTar.splice(a, 1); } ++a; } } orb4._visible = false; } } if (orb5.health < 0) { if (gotRidOfOrb5 != true) { gotRidOfOrb5 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb5._x + _x + random(50); _parent['s' + i]._y = orb5._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb5') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb5') { laserTar.splice(a, 1); } ++a; } } orb5._visible = false; } } }; }; } instance orb0 of movieClip 747 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot3(); } } } } instance orb1 of movieClip 788 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot1(); } } } } instance orb2 of movieClip 788 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot2(); } } } } instance orb3 of movieClip 747 { onClipEvent (enterFrame) { if (health < lastHealth) { if (health > 0) { _parent.shoot3(); } } } } frame 27 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 0; bb2 = 0; bb3 = 0; atp = 10; sweep = 5; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 3500; _x = -500; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15); ty = new Array(0, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 10000; maxHealth = orb0.health; orb1.health = 5000; orb2.health = 5000; orb3.health = 12000; orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5) { sw = 2; } } } _parent['e' + i].ySpd = sw; } }; shootFun = function () { if (orb0.health > 0) { if (barrelOn < 6) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } } ++barrelOn; ++a; } ++bb2; if (bb2 < 20) { if (barrelOn > 5) { barrelOn = 0; } } else { bb2 = 0; } coolDown = 2; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 25; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = 10; } if (barrelOn > 9) { barrelOn = 0; } } else { if (orb3.health > 0) { if (barrelOn > 9) { if (barrelOn > 11) { a = 0; while (a < 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (barrelOn < 16) { _parent['e' + i].ySpd = 14 - barrelOn; } else { _parent['e' + i].ySpd = 15 - barrelOn; } coolDown = 1; ++a; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 25; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 5; } } ++barrelOn; if (barrelOn > 25) { if (bb < 4) { ++bb; barrelOn = 12; } else { bb = 0; barrelOn = 10; } } } else { if (orb4.health > 0 || orb5.health > 0) { if (barrelOn < 28) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 25; _parent['b' + i].xSpd = -2; _parent['b' + i].ySpd = 0; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 5; ++barrelOn; } else { if (barrelOn < 36) { a = 0; while (a < 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; ++a; } if (barrelOn > 35) { ++bb3; if (bb3 < 5) { barrelOn = 28; } else { bb3 = 0; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 25; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 5; ++barrelOn; } } if (barrelOn > 39) { barrelOn = 26; } } } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb0._visible = false; didStopPoint = false; barrelOn = 10; coolDown = 20; stopPoint = 1350; tar = new Array(0, 'orb3'); laserTar = new Array('orb3'); orb3.health = 12000; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb3._visible = false; didStopPoint = false; stopPoint = 2050; barrelOn = 26; tar = new Array(0, 'orb4', 'orb5', 'armor0', 'armor1'); laserTar = new Array('orb4', 'orb5', 'armor0', 'armor1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; } } if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb4.health < 0) { if (gotRidOfOrb4 != true) { gotRidOfOrb4 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb4._x + _x + random(50); _parent['s' + i]._y = orb4._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb4') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb4') { laserTar.splice(a, 1); } ++a; } } orb4._visible = false; } } if (orb5.health < 0) { if (gotRidOfOrb5 != true) { gotRidOfOrb5 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb5._x + _x + random(50); _parent['s' + i]._y = orb5._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb5') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb5') { laserTar.splice(a, 1); } ++a; } } orb5._visible = false; } } }; }; } frame 28 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 5; coolDown = rof; bb = 0; bb2 = 0; bb3 = 0; atp = 12; sweep = 5; sw = -1; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 4; exp = 5000; _x = -500; _y = -_parent._y + 200; tar = new Array(0, 'orb0', 'orb1', 'orb2'); laserTar = new Array('orb1', 'orb2', 'orb0'); tx = new Array(0, 15, 15, 15); ty = new Array(0, 15, 15, 15); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = 0; eTimer = 0; orb0.health = 15000; maxHealth = orb0.health; orb1.health = 5000; orb2.health = 5000; orb3.health = 18000; orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; sh = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (barrelOn == 0 || barrelOn == 3) { sw = -2; } else { if (barrelOn == 1 || barrelOn == 4) { sw = 0; } else { if (barrelOn == 2 || barrelOn == 5) { sw = 2; } } } _parent['e' + i].ySpd = sw; } }; shootFun = function () { if (orb0.health > 0) { if (barrelOn < 6) { a = 0; while (a < 3) { if (barrelOn == 0 || barrelOn == 1 || barrelOn == 2) { if (orb1.health > 0) { sh(); } } else { if (barrelOn == 3 || barrelOn == 4 || barrelOn == 5) { if (orb2.health > 0) { sh(); } } } ++barrelOn; ++a; } ++bb2; if (bb2 < 20) { if (barrelOn > 5) { barrelOn = 0; } } else { bb2 = 0; } coolDown = 2; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 30; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++barrelOn; coolDown = 5; } if (barrelOn > 9) { barrelOn = 0; } } else { if (orb3.health > 0) { if (barrelOn > 9) { if (barrelOn > 11) { a = 0; while (a < 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (barrelOn < 16) { _parent['e' + i].ySpd = 14 - barrelOn; } else { _parent['e' + i].ySpd = 15 - barrelOn; } coolDown = 1; ++a; } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 30; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 2; } } ++barrelOn; if (barrelOn > 25) { if (bb < 4) { ++bb; barrelOn = 12; } else { bb = 0; barrelOn = 10; } } } else { if (orb4.health > 0 || orb5.health > 0) { if (barrelOn < 28) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 30; _parent['b' + i].xSpd = -2; _parent['b' + i].ySpd = 0; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 2; ++barrelOn; } else { if (barrelOn < 36) { a = 0; while (a < 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = 1; ++barrelOn; ++a; } if (barrelOn > 35) { ++bb3; if (bb3 < 5) { barrelOn = 28; } else { bb3 = 0; } } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 30; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; coolDown = 5; ++barrelOn; } } if (barrelOn > 39) { barrelOn = 26; } } } } }; moar = function () { if (orb1.health < 0) { if (gotRidOfOrb1 != true) { gotRidOfOrb1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb1._x + _x + random(50); _parent['s' + i]._y = orb1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb1') { laserTar.splice(a, 1); } ++a; } orb1._visible = false; } } if (orb2.health < 0) { if (gotRidOfOrb2 != true) { gotRidOfOrb2 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb2._x + _x + random(50); _parent['s' + i]._y = orb2._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'orb2') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb2') { laserTar.splice(a, 1); } ++a; } orb2._visible = false; } } if (orb0.health < 0) { if (gotRidOfOrb0 != true) { gotRidOfOrb0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb0._x + _x + random(50); _parent['s' + i]._y = orb0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb0._visible = false; didStopPoint = false; barrelOn = 10; coolDown = 20; stopPoint = 1350; tar = new Array(0, 'orb3'); laserTar = new Array('orb3'); orb3.health = 12000; } } if (orb3.health < 0) { if (gotRidOfOrb3 != true) { gotRidOfOrb3 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb3._x + _x + random(50); _parent['s' + i]._y = orb3._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } orb3._visible = false; didStopPoint = false; stopPoint = 2050; barrelOn = 26; tar = new Array(0, 'orb4', 'orb5', 'armor0', 'armor1'); laserTar = new Array('orb4', 'orb5', 'armor0', 'armor1'); tx = new Array(0, 15, 15, 15, 15); ty = new Array(0, 15, 15, 40, 40); orb4.health = 10000; orb5.health = 10000; armor0.health = 8000; armor1.health = 8000; } } if (armor0.health < 0) { if (gotRidOfArmor0 != true) { gotRidOfArmor0 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor0._x + _x + random(50); _parent['s' + i]._y = armor0._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor0') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor0') { laserTar.splice(a, 1); } ++a; } armor0._visible = false; } } if (armor1.health < 0) { if (gotRidOfArmor1 != true) { gotRidOfArmor1 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = armor1._x + _x + random(50); _parent['s' + i]._y = armor1._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } a = 0; while (a < tar.length) { if (tar[a] == 'armor1') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'armor1') { laserTar.splice(a, 1); } ++a; } armor1._visible = false; } } if (orb4.health < 0) { if (gotRidOfOrb4 != true) { gotRidOfOrb4 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb4._x + _x + random(50); _parent['s' + i]._y = orb4._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb4') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb4') { laserTar.splice(a, 1); } ++a; } } orb4._visible = false; } } if (orb5.health < 0) { if (gotRidOfOrb5 != true) { gotRidOfOrb5 = true; a = 0; while (a < 10) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = orb5._x + _x + random(50); _parent['s' + i]._y = orb5._y + _y + random(50); _parent['s' + i]._xscale = random(100) + 50; _parent['s' + i]._yscale = random(100) + 50; ++a; } if (tar.length > 2) { a = 0; while (a < tar.length) { if (tar[a] == 'orb5') { tar.splice(a, 1); } ++a; } a = 0; while (a < laserTar.length) { if (laserTar[a] == 'orb5') { laserTar.splice(a, 1); } ++a; } } orb5._visible = false; } } }; }; } frame 29 { go = function () { _root.levelUp.gotoAndPlay(122); active = true; rof = 1; coolDown = rof; cd2 = 0; atp = 10; sweep = 6; t = 0; yFollow = 0; stopPoint = 550; spd = 5; yVel = 0; accel = 0.5; ySpd = 6; exp = 12000; _x = -_width - 200; _y = -_parent._y + 200; tar = new Array(0, 'laser'); laserTar = new Array('laser'); tx = new Array(0, 50); ty = new Array(0, 50); didFind = false; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { didFind = true; } ++a; } if (didFind == false) { _parent.tar.push(_name); } y = -8; eTimer = 0; laser.health = 150000; maxHealth = laser.health; shootFun = function () { barrelOn = 0; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } ++t; if (t > 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; t = 0; } barrelOn = 1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } ++t; if (t > 2) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 'e' + i, i); _parent['e' + i]._x = this['p' + barrelOn]._x + _x; _parent['e' + i]._y = this['p' + barrelOn]._y + _y; t = 0; } --cd2; if (cd2 < 1) { barrelOn = 2; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['p' + barrelOn]._x + _x; _parent['b' + i]._y = this['p' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = 20; myRadians = Math.atan2(_parent.character._y - (this['p' + barrelOn]._y + _y), _parent.character._x - (this['p' + barrelOn]._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = this['p' + barrelOn]._x + _x; _parent['s' + i]._y = this['p' + barrelOn]._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; cd2 = 15; } coolDown = rof; }; }; } instance of movieClip 831 { onClipEvent (enterFrame) { c = random(60); if (c == 1) { play(); } } } instance p0 of movieClip 220 { onClipEvent (load) { getSpd = function () { if (_x == 119) { xVel = -(random(5) + 1); } else { if (_x == -119) { xVel = random(5) + 1; } else { xVel = random(5) + 1; c = random(2); if (c == 1) { xVel *= -1; } } } if (_y == 119) { yVel = -(random(5) + 1); } else { if (_y == -119) { yVel = random(5) + 1; } else { yVel = random(5) + 1; c = random(2); if (c == 1) { yVel *= -1; } } } }; getSpd(); } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; if (_x > 120) { _x = 119; getSpd(); } if (_x < -120) { _x = -119; getSpd(); } if (_y > 120) { _y = 119; getSpd(); } if (_y < -120) { _y = -119; getSpd(); } } } instance p1 of movieClip 220 { onClipEvent (load) { getSpd = function () { if (_x == 119) { xVel = -(random(5) + 1); } else { if (_x == -119) { xVel = random(5) + 1; } else { xVel = random(5) + 1; c = random(2); if (c == 1) { xVel *= -1; } } } if (_y == 119) { yVel = -(random(5) + 1); } else { if (_y == -119) { yVel = random(5) + 1; } else { yVel = random(5) + 1; c = random(2); if (c == 1) { yVel *= -1; } } } }; getSpd(); } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; if (_x > 120) { _x = 119; getSpd(); } if (_x < -120) { _x = -119; getSpd(); } if (_y > 120) { _y = 119; getSpd(); } if (_y < -120) { _y = -119; getSpd(); } } } instance p2 of movieClip 220 { onClipEvent (load) { getSpd = function () { if (_x == 119) { xVel = -(random(5) + 1); } else { if (_x == -119) { xVel = random(5) + 1; } else { xVel = random(5) + 1; c = random(2); if (c == 1) { xVel *= -1; } } } if (_y == 119) { yVel = -(random(5) + 1); } else { if (_y == -119) { yVel = random(5) + 1; } else { yVel = random(5) + 1; c = random(2); if (c == 1) { yVel *= -1; } } } }; getSpd(); } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; if (_x > 120) { _x = 119; getSpd(); } if (_x < -120) { _x = -119; getSpd(); } if (_y > 120) { _y = 119; getSpd(); } if (_y < -120) { _y = -119; getSpd(); } } } } movieClip 839 { } movieClip 870 { frame 16 { this.removeMovieClip(''); stop(); } } movieClip 936 { } movieClip 970 { } movieClip 994 { instance point of movieClip 220 { onClipEvent (load) { fun = function () { point = new Object(); point.x = _x; point.y = _y; _parent.localToGlobal(point); x = point.x; y = point.y; }; } } } movieClip 1062 { } movieClip 1064 { frame 177 { this.cacheAsBitmap = true; stopPoint = -_width; didStop = false; size = 2; incTimes = -20; dx = 2; dieTime = 0; cantDrop = true; health = 50; weakness = 0; weakAmt = 0; exp = 5; xDist = 40; yDist = 20; enemyActions = function () { if (health > 0) { if (_x > stopPoint) { ++dieTime; if (dieTime > 150) { a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } removeMovieClip(''); } if (incTimes < 0) { _x = _x + dx; dx -= 0.1; ++incTimes; } else { _x = _x + xSpd; _y = _y + ySpd; if (incTimes < 20) { xSpd *= 1.15; ySpd *= 1.15; ++incTimes; } } if (Math.abs(_x - _parent.character._x) < xDist) { if (Math.abs(_y - _parent.character._y) < yDist) { health = 0; _parent.character.health -= atp; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent.character._x; _parent['s' + i]._y = _parent.character._y; _parent['s' + i].dmg = '' + atp; _parent['s' + i].gotoAndStop(1); wasKilledByCharacter = false; } } } else { a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } removeMovieClip(''); } } else { afterDeath(); } }; } frame 178 { removeMovieClip(''); } frame 179 { this.cacheAsBitmap = true; stopPoint = -_width; didStop = false; size = 1; incTimes = -20; dx = 2; dieTime = 0; cantDrop = true; ySpd = random(20) - 10; ySpd /= 10; xSpd = -2; health = 100; weakness = 0; weakAmt = 0; exp = 5; xDist = 40; yDist = 20; enemyActions = function () { if (health > 0) { if (_x > stopPoint) { _x = _x + xSpd; _y = _y + ySpd; if (Math.abs(_x - _parent.character._x) < xDist) { if (Math.abs(_y - _parent.character._y) < yDist) { health = 0; _parent.character.health -= atp; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent.character._x; _parent['s' + i]._y = _parent.character._y; _parent['s' + i].dmg = '' + atp; _parent['s' + i].gotoAndStop(1); wasKilledByCharacter = false; } } } else { a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } removeMovieClip(''); } } else { afterDeath(); } }; } frame 180 { removeMovieClip(''); } frame 181 { this.cacheAsBitmap = true; stopPoint = -_width; didStop = false; size = 1; incTimes = -20; dx = 2; dieTime = 0; cantDrop = true; if (ySpd > 0) { ySpd = 0; } health = 100; weakness = 0; weakAmt = 0; exp = 5; xDist = 40; yDist = 20; t = 0; enemyActions = function () { if (health > 0) { if (_x > stopPoint || _y < 800) { _x = _x + xSpd; _y = _y + ySpd; ySpd += 0.5; if (Math.abs(_x - _parent.character._x) < xDist) { if (Math.abs(_y - _parent.character._y) < yDist) { health = 0; _parent.character.health -= atp; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent.character._x; _parent['s' + i]._y = _parent.character._y; _parent['s' + i].dmg = '' + atp; _parent['s' + i].gotoAndStop(1); wasKilledByCharacter = false; } } } else { a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } removeMovieClip(''); } ++t; if (t > 120) { a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } removeMovieClip(''); } } else { afterDeath(); } }; } frame 182 { removeMovieClip(''); } } movieClip 1083 { frame 6 { removeMovieClip(''); } frame 11 { removeMovieClip(''); } } movieClip 1085 { } movieClip 1104 { frame 9 { _parent.removeMovieClip(''); stop(); } } movieClip 1105 { frame 9 { _parent.removeMovieClip(''); stop(); } } movieClip 1107 { } movieClip 1109 { } movieClip 1111 { } movieClip 1121 { frame 1 { stop(); } } movieClip 1122 { } movieClip 1124 { } movieClip 1134 { frame 29 { _parent.collision(); } frame 37 { _parent.removeMovieClip(''); stop(); } } movieClip 1135 { } movieClip 1146 { } movieClip 1147 { instance fl of movieClip 1146 { onClipEvent (load) { gotoAndStop(random(_totalframes) + 1); } } } movieClip 1149 { } movieClip 1151 { } movieClip 1170 { frame 1 { stop(); _x = -60; _y = -160; _root.pause = false; _root.empMode = false; } } movieClip 1171 { frame 1 { beDied = 0; dieFun = function (xp, yp, exp, sz, wkbc, cd) { _root.sfx.gotoAndPlay(18 + (random(6) + 1) * 2); a = 0; while (a < 4) { ++character.i; i = character.i; duplicateMovieClip(explosion, 's' + i, i); this['s' + i]._x = xp + (random(ex[sz] * 2) - ex[sz]); this['s' + i]._y = yp + (random(ey[sz] * 2) - ey[sz]); this['s' + i]._xscale = 20 + random(80); this['s' + i]._yscale = this['s' + i]._xscale; ++a; } if (wkbc != false) { ++character.i; i = character.i; duplicateMovieClip(dmg, 's' + i, i); this['s' + i]._x = xp; this['s' + i]._y = yp; this['s' + i].dmg = '+' + exp; this['s' + i].gotoAndStop(3); character.exp += exp; } chance = random(10); if (cd == true) { chance = 2; } else { ++beDied; } if (beDied > 8) { chance = 1; } if (chance == 1) { beDied = 0; ++character.i; i = character.i; duplicateMovieClip(item, 'i' + i, i); this['i' + i]._x = xp; this['i' + i]._y = yp; } }; tar = new Array(); ex = new Array(0, 30, 15, 50, 30); ey = new Array(0, 12, 10, 25, 30); col1 = function (xp, yp, pow, na) { a = 0; while (a < tar.length) { if (this[tar[a]].isBoss == false) { if (Math.abs(xp - this[tar[a]]._x) < ex[this[tar[a]].size]) { if (Math.abs(yp - this[tar[a]]._y) < ey[this[tar[a]].size]) { if (pow != 'MISS') { this[tar[a]].health -= pow; this[na].spark(); } else { this[na].miss(); } } } } else { b = 0; while (b < this[tar[a]].tar.length) { if (Math.abs(xp - (this[tar[a]][this[tar[a]].tar[b]]._x + this[tar[a]]._x)) < this[tar[a]].tx[b]) { if (Math.abs(yp - (this[tar[a]][this[tar[a]].tar[b]]._y + this[tar[a]]._y)) < this[tar[a]].ty[b]) { if (pow != 'MISS') { this[tar[a]][this[tar[a]].tar[b]].health -= pow; this[na].spark(); } else { this[na].miss(); } } } ++b; } } ++a; } }; col2 = function (xp, yp, pow, na) { a = 0; while (a < tar.length) { if (this[tar[a]].isBoss == false) { if (xp < this[tar[a]]._x) { if (Math.abs(yp - this[tar[a]]._y) < ey[this[tar[a]].size] + this[na].h) { this[na].x = this[tar[a]]._x; this[na].y = this[tar[a]]._y; if (pow != 'MISS') { this[tar[a]].health -= pow; this[na].spark(); } else { this[na].miss(); } } } } else { b = 0; while (b < this[tar[a]].tar.length) { if (xp < this[tar[a]][this[tar[a]].tar[b]]._x + this[tar[a]]._x) { if (Math.abs(yp - (this[tar[a]][this[tar[a]].tar[b]]._y + this[tar[a]]._y)) < this[tar[a]].ty[b] + this[na].h) { this[na].x = this[tar[a]][this[tar[a]].tar[b]]._x + this[tar[a]]._x; this[na].y = this[tar[a]][this[tar[a]].tar[b]]._y + this[tar[a]]._y; if (pow != 'MISS') { this[tar[a]][this[tar[a]].tar[b]].health -= pow; this[na].spark(); } else { this[na].miss(); } } } ++b; } } ++a; } }; eCol = function (xp, yp, pow, na) { if (Math.abs(xp - character._x) < character.sizex) { if (Math.abs(yp - character._y) < character.sizey) { if (character['shield' + _root[character.empEquipped].stats[0]]._currentframe > 1 && character['shield' + _root[character.empEquipped].stats[0]]._currentframe < 20) { this[na].shield(_root[character.empEquipped].stats[0]); } else { character.health -= pow; this[na].spark(); } } } }; } instance bg2 of movieClip 624 { onClipEvent (load) { gotoAndStop(_root.levelOn); _parent.bg.gotoAndStop(_currentframe); spd1 = 1; spd2 = 20; spd3 = 60; spd4 = 10; spd5 = 3; } onClipEvent (enterFrame) { if (_root.pause == false) { a = 1; while (a < 10) { if (this['fbg' + a].to != undefined) { this['fbg' + a].fun1(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['fbg' + a].to != undefined) { this['fbg' + a].fun2(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['mbg' + a]._name != undefined) { this['mbg' + a].fun1(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['mbg' + a]._name != undefined) { this['mbg' + a].fun2(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['m2bg' + a]._name != undefined) { this['m2bg' + a].fun1(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['m2bg' + a]._name != undefined) { this['m2bg' + a].fun2(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['frbg' + a]._name != undefined) { this['frbg' + a].fun1(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['frbg' + a]._name != undefined) { this['frbg' + a].fun2(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['ffbg' + a]._name != undefined) { this['ffbg' + a].fun1(); } else { a = 100; } ++a; } a = 1; while (a < 10) { if (this['ffbg' + a]._name != undefined) { this['ffbg' + a].fun2(); } else { a = 100; } ++a; } } } } instance dmg of movieClip 667 { onClipEvent (load) { if (_name != 'dmg') { switch (dmg.length) { case 1: a.gotoAndStop('a' + dmg.charAt(0)); b.gotoAndStop(12); c.gotoAndStop(12); d.gotoAndStop(12); e.gotoAndStop(12); break; case 2: a.gotoAndStop('a' + dmg.charAt(1)); b.gotoAndStop('a' + dmg.charAt(0)); c.gotoAndStop(12); d.gotoAndStop(12); e.gotoAndStop(12); break; case 3: a.gotoAndStop('a' + dmg.charAt(2)); b.gotoAndStop('a' + dmg.charAt(1)); c.gotoAndStop('a' + dmg.charAt(0)); d.gotoAndStop(12); e.gotoAndStop(12); break; case 4: a.gotoAndStop('a' + dmg.charAt(3)); b.gotoAndStop('a' + dmg.charAt(2)); c.gotoAndStop('a' + dmg.charAt(1)); d.gotoAndStop('a' + dmg.charAt(0)); e.gotoAndStop(12); break; case 5: a.gotoAndStop('a' + dmg.charAt(4)); b.gotoAndStop('a' + dmg.charAt(3)); c.gotoAndStop('a' + dmg.charAt(2)); d.gotoAndStop('a' + dmg.charAt(1)); e.gotoAndStop('a' + dmg.charAt(0)); } x = random(10) - 5; y = random(6) + 6; switch (_currentframe) { case 1: t = 0; fun = function () { _x = _x + x; _y = _y - y; y -= 1; }; break; case 2: t = 0; fun = function () { _x = _x + x; _y = _y - y; y -= 1; }; break; case 3: t = -20; fun = function () { _y = _y - 4; }; } this.cacheAsBitmap = true; } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'dmg') { fun(); ++t; if (t > 15) { _alpha = _alpha - 34; if (_alpha < 1) { removeMovieClip(''); } } } } } } instance explosion of movieClip 720 { onClipEvent (load) { if (_name != 'explosion') { c = random(2) + 1; if (c == 1) { gotoAndPlay(28); } if (_xscale == 100) { _xscale = 20 + random(30); _yscale = _xscale; } _x = _x + 15; _alpha = 100; s = random(Math.ceil(_xscale / 15)) + 1; s += random(10) / 10; } else { gotoAndStop(27); } } onClipEvent (enterFrame) { if (_name != 'explosion') { if (_root.pause == false) { play(); _y = _y - 2; _x = _x - s; } else { stop(); } } } } instance item of movieClip 725 { onClipEvent (load) { if (_name != 'item') { s = random(3) + 1 + random(10) / 10; dx = 40; dy = 25; rareFun = function () { if (rNum > _root.maxRare) { itemFun(); } else { if (rNum > 0) { r0 = 0; a = 0; while (a < rNum) { r0 += random(2); ++a; } if (r0 < rNum) { itemFun(); } } } }; c = random(3) + 1; itemFun = function () { if (_parent.character.health < _parent.character.maxHealth / 4) { c = 3; } else { if (_parent.character.health >= (_parent.character.maxHealth / 4) * 3) { c = random(2) + 1; cantBeHeal = true; } else { if (c == 3) { cc = random(2); if (cc == 1) { c = random(2) + 1; cantBeHeal = true; } if (c == 3) { if (cantBeHeal == true) { c = random(2) + 1; } } } } } if (c == 1) { itemID = 'wep' + (random(_root.wepMax) + 1); rNum = _root[itemID].stats[4]; gotoAndStop(1); rareFun(); } else { if (c == 2) { itemID = 'emp' + (random(_root.empMax) + 1); rNum = _root[itemID].stats[4]; gotoAndStop(2); rareFun(); } else { if (c == 3) { isHealth = true; gotoAndStop(3); } } } }; itemFun(); itemFun2 = function () { if (isHealth == true) { _parent.character.health = _parent.character.maxHealth; } else { _parent.character.inventory.push(itemID); } if (c == 1) { _root.newItem.gotoAndPlay(2); _root.newItem.txt.n.n = 'New Weapon: ' + _root[itemID].name; } else { if (c == 2) { _root.newItem.gotoAndPlay(134); _root.newItem.txt.n.n = 'New Shield: ' + _root[itemID].name; } else { if (c == 3) { _root.newItem.gotoAndPlay(68); } } } }; } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'item') { _x = _x - s; _rotation = _rotation - s * 2; if (Math.abs(_x - _parent.character._x) < dx) { if (Math.abs(_y - _parent.character._y) < dy) { itemFun2(); removeMovieClip(''); } } if (_x < -30) { removeMovieClip(''); } } } } } instance megaSplode of movieClip 730 { onClipEvent (load) { if (_name != 'megaSplode') { _root.sfx.gotoAndPlay(78); _parent.character.xShake = random(20) + 10; _parent.character.yShake = random(20) + 10; a = 0; while (a < 15) { duplicateMovieClip(explosion, 'e' + a, a); this['e' + a]._x = random(100) - 50; this['e' + a]._y = random(100) - 50; ++a; } ++a; e.swapDepths(a); } else { gotoAndStop(27); } } } instance boss of movieClip 832 { onClipEvent (load) { isBoss = true; eTimer2 = 0; eTimer3 = 6; gotoAndStop(40); flx = 0; fly = 0; fld = random(2); fld2 = random(2); flMax = 0.8; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; active = false; splode = function () { if (eTimer3 < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x + (random(200) - 100); _parent['s' + i]._y = _y + (random(100) - 50); _parent['s' + i]._xscale = random(50) + 50; _parent['s' + i]._yscale = _parent['s' + i]._xscale; } else { eTimer3 = 0; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.megaSplode, 's' + i, i); _parent['s' + i]._x = _x + (random(200) - 100); _parent['s' + i]._y = _y + (random(100) - 50); } }; barrelOn = 0; sweepDir = 0; sw = 0; } onClipEvent (enterFrame) { if (_root.pause == false) { if (active == true) { if (didStopPoint != true) { if (_x < stopPoint) { _x = _x + spd; } else { didStopPoint = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } if (_y + yFollow > _parent.character._y + 60) { yVel -= accel; if (yVel < -ySpd) { yVel = -ySpd; } } else { if (_y + yFollow < _parent.character._y - 60) { yVel += accel; if (yVel > ySpd) { yVel = ySpd; } } else { if (yVel > 0) { yVel -= accel; } if (yVel < 0) { yVel += accel; } } } _y = _y + yVel; } float(); moar(); a = 1; while (a < tar.length) { if (this[tar[a]].health < this[tar[a]].lastHealth) { this[tar[a]].play(); } this[tar[a]].lastHealth = this[tar[a]].health; ++a; } if (this[tar[1]].health < 1) { _parent.character.health = _parent.character.maxHealth; coolDown = 10000; if (doOnce != true) { doOnce = true; size = 1; _parent.dieFun(_x, _y, exp, size, true); a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } a = 0; while (a < 10) { splode(); ++a; } } _y = _y + y; _x = _x - 10; y += 0.3; if (_y > 1200) { active = false; _root.textBox.gotoAndStop(1); _root.textBox.doEnd(); _parent.character.empVolts = 0; } ++eTimer; ++eTimer2; if (eTimer > 3) { splode(); ++eTimer3; eTimer = 0; } if (eTimer2 > 6) { _root.sfx.gotoAndPlay(18 + (random(6) + 1) * 2); eTimer2 = 0; } } } } } } instance character of movieClip 398 { onClipEvent (load) { _root.pause = false; _root.empMode = false; equipped = _root.equipped; empEquipped = _root.empEquipped; inventory = _root.inventory; recycledItems = _root.recycledItems; lvl = _root.lvl; exp = _root.exp; empVolts = 0; didPlayEmp = false; empFun = function () { if (_root.textBox._currentframe == 2) { if (empVolts >= empCharge) { if (shield_type != 2) { _root.sfx2.gotoAndPlay(58); _root.sfx.vol = -70; _root.music.vol = 0; _root.pause = true; _root.empMode = true; _parent.empAnim._x = _x; _parent.empAnim._y = _y; _parent.empAnim.play(); didPlayEmp = false; empVolts = 0; a = 0; while (a < _parent.tar.length) { if (_parent[_parent.tar[a]].isBoss == false) { _parent[_parent.tar[a]].health -= empDamage; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent[_parent.tar[a]]._x; _parent['s' + i]._y = _parent[_parent.tar[a]]._y; _parent['s' + i].dmg = '' + empDamage; _parent['s' + i].gotoAndStop(1); } else { b = 0; while (b < _parent[_parent.tar[a]].tar.length) { if (_parent[_parent.tar[a]].tar[b] != 0) { _parent[_parent.tar[a]][_parent[_parent.tar[a]].tar[b]].health -= empDamage; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent[_parent.tar[a]][_parent[_parent.tar[a]].tar[b]]._x + _parent[_parent.tar[a]]._x; _parent['s' + i]._y = _parent[_parent.tar[a]][_parent[_parent.tar[a]].tar[b]]._y + _parent[_parent.tar[a]]._y; _parent['s' + i].dmg = '' + empDamage; _parent['s' + i].gotoAndStop(1); } ++b; } } ++a; } } } } }; sizex = 40; sizey = 15; gotoAndStop(_root.charUsed + 1); calculate_stats = function () { if (_root.charUsed == 0) { dmg = 10 + lvl * 3 + _root[equipped].stats2[0]; } else { dmg = 10 + lvl * 2 + _root[equipped].stats2[0]; } if (dmg < 1) { dmg = 1; } acc = _root[equipped].stats2[1]; rof = _root[equipped].stats2[2]; crit = _root[equipped].stats2[3]; spread = 0; numOfBullets = _root[equipped].stats[1]; if (_root.charUsed == 1) { topSpeed = 13; accel = 1; } else { if (_root.charUsed == 2) { topSpeed = 17; accel = 1.5; } else { topSpeed = 15; accel = 1; } } decel = 0.95; shield_type = _root[empEquipped].stats[0]; empCharge = _root[empEquipped].stats[1]; empDamage = _root[empEquipped].stats[2]; shieldATP = _root[empEquipped].stats[2]; shieldDuration = _root[empEquipped].stats[3]; if (_root.charUsed == 1) { maxHealth = 10 + _root.game.character.lvl * 9; } else { maxHealth = 10 + _root.game.character.lvl * 8; } switch (_root[equipped].stats[0]) { case 1: if (_root[equipped].stats[2] == 0) { if (rof < 4) { gg.gotoAndStop(3); } else { gg.gotoAndStop(1); } } else { if (numOfBullets < 5) { gg.gotoAndStop(4); } else { gg.gotoAndStop(5); } } break; case 2: gg.gotoAndStop(7); break; case 3: gg.gotoAndStop(2); break; case 4: gg.gotoAndStop(20); break; case 6: gg.gotoAndStop(15); break; case 7: gg.gotoAndStop(21); break; case 8: gg.gotoAndStop(6); } }; calculate_stats(); health = maxHealth; coolDown = 0; i = 0; aTime = 0; fire = function () { if (coolDown < 1) { gg.gun.gotoAndPlay(2); switch (_root[equipped].stats[0]) { case 1: if (_root[equipped].stats[2] == 0) { if (rof < 4) { _root.sfx.gotoAndPlay(38 + (random(3) + 1) * 2); } else { _root.sfx.gotoAndPlay(38); } } else { _root.sfx.gotoAndPlay(46); } a = 0; while (a < numOfBullets) { ++i; duplicateMovieClip(_parent.bullet, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); if (_root[empEquipped].stats[2] == 0) { _parent['b' + i].ySpd = 0; } else { switch (numOfBullets) { case 6: _parent['b' + i].ySpd = -3 + 1 * a; break; case 5: _parent['b' + i].ySpd = -2 + 1 * a; break; case 4: _parent['b' + i].ySpd = -3 + 2 * a; break; case 3: _parent['b' + i].ySpd = -2 + 2 * a; break; case 2: _parent['b' + i].ySpd = -2 + 4 * a; } } missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } ++a; } break; case 2: _root.sfx.gotoAndPlay(48); ++i; duplicateMovieClip(_parent.laser, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x; _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } break; case 3: _root.sfx.gotoAndPlay(50); a = 0; while (a < numOfBullets) { ++i; duplicateMovieClip(_parent.grenade, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); _parent['b' + i].arcSpeed = 0.3 + a / 5; missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } ++a; } break; case 4: _root.sfx.gotoAndPlay(52); a = 0; while (a < numOfBullets) { ++i; duplicateMovieClip(_parent.rocket, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } if (_root[empEquipped].stats[2] == 0) { _parent['b' + i].ySpd = 0; } else { switch (numOfBullets) { case 6: _parent['b' + i].ySpd = -5 + 2 * a; break; case 5: _parent['b' + i].ySpd = -4 + 2 * a; break; case 4: _parent['b' + i].ySpd = -3 + 2 * a; break; case 3: _parent['b' + i].ySpd = -2 + 2 * a; break; case 2: _parent['b' + i].ySpd = -1 + 2 * a; } } ++a; } break; break; case 5: case 6: if (_parent.tar.length > 0) { _root.sfx.gotoAndPlay(54); ++i; duplicateMovieClip(_parent.lightning, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } } break; case 7: if (_parent.tar.length > 0) { _root.sfx.gotoAndPlay(54); ++i; duplicateMovieClip(_parent.lightning, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); _parent['b' + i].isChain = true; missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } } break; case 8: _root.sfx.gotoAndPlay(56); a = 0; while (a < numOfBullets) { ++i; duplicateMovieClip(_parent.saw, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); _parent['b' + i].gotoAndStop(1); _parent['b' + i].arcSpeed = 0.3 + a / 5; missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)) * 2; } else { _parent['b' + i].pow = Math.round(dmg + (random(dmg / 4) - dmg / 8)); } } ++a; } } coolDown = rof; if (_root[equipped].stats[0] != 6 && _root[equipped].stats[0] != 7) { ++i; duplicateMovieClip(_parent.flash, 'b' + i, i); _parent['b' + i]._x = _x + gg._x + gg.barrel._x + (random(10) - 5); _parent['b' + i]._y = _y + gg._y + gg.barrel._y + (random(10) - 5); } } }; yShake = 0; centerScreen = function () { _parent._y -= _y + (_parent._y - 200) + yShake; if (_parent._y < -240 - yShake) { _parent._y = -240 - yShake; } if (_parent._y > 75 - yShake) { _parent._y = 75 - yShake; } _parent._x = xShake; if (Math.abs(xShake) > 0.5) { xShake *= -0.7; } else { xShake = 0; } if (Math.abs(yShake) > 0.5) { yShake *= -0.7; } else { yShake = 0; } }; k = new Array(38, 40, 37, 39, 65, 83, 68); ySpd = 0; xSpd = 0; shoot = false; getExp = function () { expRate = 1.4; expRate2 = 1.05; expNeeded = 250; a = 0; while (a < lvl - 1) { if (a < 11) { expNeeded *= expRate; } else { expNeeded *= expRate2; } ++a; } }; getExp(); flx = 0; fly = 0; fld = random(2); fld2 = random(2); flMax = 1.1; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; _root.hud.exp._rotation = (exp / expNeeded) * 180 - 180; if (empCharge != 0) { mt = empVolts / empCharge; if (mt > 1) { mt = 1; } _root.hud.emp._rotation = mt * -180 - 180; } else { _root.hud.emp._rotation = -180; } mt = health / maxHealth; if (mt < 0) { mt = 0; } _root.hud.hp._rotation = mt * 180 - 180; _root.hud.hpTxt = 'HP \r' + health; _root.hud.lvTxt = 'Level: ' + lvl; thrusterFun = function () { rt = random(20); thr = Math.abs(50 + xSpd * 5 + Math.abs(ySpd * 4)); if (thr > 110) { thr = 110; } thr += rt; thrust.f1._xscale = thr; thrust.f2._xscale = thr; thrust.f3._xscale = thr; throt = ySpd * 2; thrust.f1._rotation = throt; thrust.f2._rotation = throt; thrust.f3._rotation = throt; }; } onClipEvent (enterFrame) { if (_root.pause == false) { if (_root.textBox._currentframe == 2) { if (health > 1) { thrusterFun(); if (exp > expNeeded) { lvl += 1; exp -= expNeeded; if (_root.levelUp._currentframe < 122) { _root.levelUp.gotoAndPlay(2); } getExp(); calculate_stats(); health = maxHealth; } _root.hud.exp._rotation = (exp / expNeeded) * 180 - 180; if (empVolts > lastVolt) { _root.hud.empGlow._alpha = 100; } lastVolt = empVolts; if (empCharge != 0) { mt = empVolts / empCharge; if (mt > 1) { mt = 1; } _root.hud.emp._rotation = mt * -180 - 180; } else { _root.hud.emp._rotation = -180; } if (shield_type == 1) { if (empVolts >= empCharge) { if (didPlayEmp == false) { didPlayEmp = true; _root.empMc.play(); } } } mt = health / maxHealth; if (mt < 0) { mt = 0; } if (mt < 0.25) { ++aTime; if (aTime > 20) { _root.sfx.gotoAndPlay(66); _root.hud.hpGlow._alpha = 100; aTime = 0; } } _root.hud.hp._rotation = mt * 180 - 180; _root.hud.hpTxt = 'HP \r' + health; _root.hud.lvTxt = 'Level: ' + lvl; if (health < lastHealth) { xShake = random(10) + 5; yShake = random(10) + 5; _root.hud.hpGlow._alpha = 100; } lastHealth = health; if (Key.isDown(k[6])) { empFun(); } if (Key.isDown(k[0])) { ySpd -= accel; if (ySpd > 0) { ySpd -= decel; } if (ySpd < -topSpeed) { ySpd = -topSpeed; } } else { if (Key.isDown(k[1])) { ySpd += accel; if (ySpd < 0) { ySpd += decel; } if (ySpd > topSpeed) { ySpd = topSpeed; } } else { if (ySpd > 0) { ySpd -= decel; } if (ySpd < 0) { ySpd += decel; } if (Math.abs(ySpd) < decel) { ySpd = 0; } } } if (Key.isDown(k[2])) { xSpd -= accel; if (xSpd > 0) { xSpd -= decel; } if (xSpd < -topSpeed) { xSpd = -topSpeed; } } else { if (Key.isDown(k[3])) { xSpd += accel; if (xSpd < 0) { xSpd += decel; } if (xSpd > topSpeed) { xSpd = topSpeed; } } else { if (xSpd > 0) { xSpd -= decel; } if (xSpd < 0) { xSpd += decel; } if (Math.abs(xSpd) < decel) { xSpd = 0; } } } _y = _y + ySpd; _x = _x + xSpd; if (_x < 20) { _x = 20; xSpd = 0; } if (_x > 700) { _x = 700; xSpd = 0; } if (_y < -60) { _y = -60; ySpd = 0; } if (_y > 625) { _y = 625; ySpd = 0; } if (coolDown > 0) { --coolDown; } if (Key.isDown(k[4])) { shoot = true; } else { shoot = false; } if (shoot == true) { fire(); } if (Key.isDown(k[5])) { if (this['shield' + shield_type]._currentframe == 1) { this['shield' + shield_type].play(); this['shield' + shield_type].t = 0; } } centerScreen(); } else { if (_root.complete._currentframe < 108) { _root.complete.gotoAndPlay(108); } if (dieOnce != true) { bt2 = 0; health = 0; mt = health / maxHealth; if (mt < 0) { mt = 0; } _root.hud.hp._rotation = mt * 180 - 180; dieOnce = true; a = 0; while (a < 5) { ++i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x + (random(_width) - _width / 2); _parent['s' + i]._y = _y + (random(_width) - _width / 2); _parent['s' + i]._xscale = 20 + random(80); _parent['s' + i]._yscale = _parent['s' + i]._xscale; ++a; } dieSpd = -15; dieRot = random(20) + 10; bt = 0; } ++bt; if (bt > 3) { bt = 0; ++i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x + (random(_width) - _width / 2); _parent['s' + i]._y = _y + (random(_width) - _width / 2); ++bt2; if (bt2 > 3) { _root.sfx.gotoAndPlay(18 + (random(6) + 1) * 2); bt2 = 0; } } _root.empMode = true; if (_x > _parent._x + 360) { _x = _x - 2; } else { _x = _x + 2; } _y = _y + dieSpd; dieSpd += 0.4; _rotation = _rotation + dieRot; } } else { if (_root.complete._currentframe == 1) { _x = _x - (_x - 300) / 5; _y = _y - (_y - (200 - _parent._y)) / 5; float(); xSpd = 0; ySpd = 0; thrusterFun(); } else { _x = _x + xSpd; xSpd += 1; } } } } } instance bullet of movieClip 839 { onClipEvent (load) { if (_name != 'bullet') { if (spd == undefined) { spd = 15; } _x = _x + spd; spark = function () { _root.sfx.gotoAndPlay((random(9) + 1) * 2); if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } removeMovieClip(''); }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'bullet') { _x = _x + spd; _y = _y + ySpd; _parent.col1(_x, _y, pow, _name); if (_x > 720) { removeMovieClip(''); } } } } } instance spark of movieClip 870 { onClipEvent (load) { if (_name != 'spark') { if (_xscale == 100) { _rotation = random(180) - 90; _xscale = 40 + random(30); _yscale = 40 + random(30); } else { _rotation = _rotation - (random(180) - 90); _xscale = -(40 + random(30)); _yscale = -(40 + random(30)); } } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { play(); } else { stop(); } } } instance ene1 of movieClip 1064 { onClipEvent (load) { if (_name != 'ene1') { _parent.tar.push(_name); wasKilledByCharacter = true; type = Math.floor(_currentframe / 22); type0Start = function () { stopPoint = 575; didStop = false; size = 1; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; hp = new Array(50, 0, 0, 1000, 100, 2000, 400, 0, 700, 0, 1500); atpArr = new Array(1, 0, 0, 5, 3, 10, 2, 0, 10, 0, 15); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; rof = new Array(45, 35, 30, 8, 20, 15, 5, 10, 15, 10, 5); sweep = new Array(0, 0, 0, 2, 0, 0.5, 3, 0, 1, 0, 1); sweepDir = 0; sw = 0; coolDown = 10; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = p0._x + _x; _parent['e' + i]._y = p0._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep[enemyOn] == 0) { _parent['e' + i].ySpd = 0; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep[enemyOn]) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep[enemyOn]) { sweepDir = 0; } } _parent['e' + i].ySpd = sw; } coolDown = rof[enemyOn]; }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; type1Start = function () { stopPoint = 550; didStop = false; size = 1; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; hp = new Array(50, 800, 200, 0, 0, 0, 500, 0, 0, 2000, 0); atpArr = new Array(1, 1, 3, 1, 1, 1, 5, 1, 1, 10, 1); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; rof = new Array(40, 5, 30, 25, 20, 15, 20, 10, 10, 9, 10); sweep = new Array(3, 0, 0, 0, 0, 0, 1, 0, 0, 0.5, 0); sweepDir = 0; sw = 0; coolDown = 10; shootFun = function () { a = 0; while (a < 3) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = p0._x + _x; _parent['e' + i]._y = p0._y + _y; _parent['e' + i].pow = atp; _parent['e' + i].xSpd = 7; if (sweep[enemyOn] == 0) { _parent['e' + i].ySpd = -2 + a * 2; } else { if (sweepDir == 0) { sw += 0.5; if (sw > sweep[enemyOn]) { sweepDir = 1; } } else { sw -= 0.5; if (sw < -sweep[enemyOn]) { sweepDir = 0; } } _parent['e' + i].ySpd = -2 + a * 2 + sw; } ++a; } coolDown = rof[enemyOn]; }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; type2Start = function () { stopPoint = -_width; didStop = false; enemyOn = (_currentframe - type * 22 - 1) / 2; sizeArr = new Array(1, 1, 1, 1, 2, 4, 2, 1, 1, 1, 1); size = sizeArr[enemyOn]; speedArr = new Array(2, 2, 2, 2, 4, 2, 5, 2.5, 2, 2, 2, 2); spd = speedArr[enemyOn]; hp = new Array(50, 100, 200, 800, 500, 1200, 1400, 1500, 45, 50, 55); atpArr = new Array(1, 5, 20, 30, 30, 50, 50, 60, 1, 1, 1); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; xDist = 40; yDist = 20; enemyActions = function () { if (health > 0) { if (_x > stopPoint) { _x = _x - spd; if (Math.abs(_x - _parent.character._x) < xDist) { if (Math.abs(_y - _parent.character._y) < yDist) { health = 0; _parent.character.health -= atp; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _parent.character._x; _parent['s' + i]._y = _parent.character._y; _parent['s' + i].dmg = '' + atp; _parent['s' + i].gotoAndStop(1); wasKilledByCharacter = false; } } } else { _x = 800; } float(); } else { afterDeath(); } }; }; type3Start = function () { stopPoint = 600; didStop = false; size = 3; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; hp = new Array(1200, 0, 0, 500, 3000, 1800, 0, 0, 2500, 0, 0); atpArr = new Array(20, 0, 0, 10, 40, 25, 0, 0, 30, 0, 0); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; rof = new Array(45, 0, 0, 50, 20, 30, 10, 10, 20, 10, 10); sweep = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); sweepDir = 0; sw = 0; coolDown = 30; barrelOn = 1; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = this['pt' + barrelOn]._x + _x; _parent['b' + i]._y = this['pt' + barrelOn]._y + _y; _parent['b' + i].gotoAndStop(179); _parent['b' + i].atp = atp; if (barrelOn == 1) { barrelOn = 2; } else { barrelOn = 1; } coolDown = rof[enemyOn]; }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; type4Start = function () { stopPoint = 625; didStop = false; size = 1; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; launcher.gotoAndStop(enemyOn + 1); hp = new Array(2500, 0, 0, 3000, 0, 0, 0, 0, 0, 1000, 0); burstArr = new Array(4, 0, 0, 5, 0, 0, 0, 0, 0, 1, 0); burst = burstArr[enemyOn]; burstCount = 0; atpArr = new Array(25, 1, 1, 25, 1, 1, 1, 1, 1, 5, 1); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; rof = new Array(80, 0, 0, 90, 0, 0, 0, 0, 0, 60, 0); sweep = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); sweepDir = 0; sw = 0; coolDown = 10; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = p0._x + _x; _parent['b' + i]._y = p0._y + _y; _parent['b' + i].gotoAndStop(177); _parent['b' + i].atp = atp; myRadians = Math.atan2(_parent.character._y - (p0._y + _y), _parent.character._x - (p0._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; proSpeed = 1; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = p0._x + _x; _parent['s' + i]._y = p0._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++burstCount; if (burstCount >= burst) { coolDown = rof[enemyOn]; burstCount = 0; } else { coolDown = 10; } }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; type5Start = function () { stopPoint = 625; didStop = false; size = 1; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; launcher.gotoAndStop(enemyOn + 1); hp = new Array(3500, 0, 0, 1800, 0, 1500, 0, 2000, 0, 0, 0); atpArr = new Array(10, 1, 1, 10, 1, 10, 1, 15, 1, 1, 1); burstArr = new Array(30, 0, 0, 25, 0, 20, 0, 25, 0, 0, 0); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; burst = burstArr[enemyOn]; burstCount = 0; rof = new Array(85, 0, 0, 60, 0, 60, 0, 55, 0, 0, 0); sweep = new Array(0.1, 0, 0, 1, 0, 3, 0, 0.5, 0, 0, 0); sweepDir = 0; sw = 0; coolDown = 20; shootFun = function () { myRadians = Math.atan2(_parent.character._y - (gun._y + _y), _parent.character._x - (gun._x + _x)); if (sweepDir == 1) { gun._rotation = Math.round(myRadians * 180 / Math.PI) + 180 + (burstCount - burst / 2) * sweep[enemyOn]; } else { gun._rotation = Math.round(myRadians * 180 / Math.PI) + 180 - (burstCount - burst / 2) * sweep[enemyOn]; } gun.point.fun(); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.eBul, 'e' + i, i); _parent['e' + i]._x = gun.point.x - _root.game._x; _parent['e' + i]._y = gun.point.y - _root.game._y; _parent['e' + i].pow = atp; proSpeed = -7; _parent['e' + i].xSpd = Math.sin((-gun._rotation - 90) * 0.0174532925199433) * proSpeed; _parent['e' + i].ySpd = Math.cos((-gun._rotation - 90) * 0.0174532925199433) * proSpeed * -1; ++burstCount; if (burstCount > burst) { coolDown = rof[enemyOn]; burstCount = 0; if (sweepDir == 0) { sweepDir = 1; } else { sweepDir = 0; } } else { coolDown = 3; } }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; type6Start = function () { stopPoint = 600; didStop = false; size = 1; spd = 2; enemyOn = (_currentframe - type * 22 - 1) / 2; launcher.gotoAndStop(enemyOn + 1); hp = new Array(0, 0, 0, 0, 0, 0, 2100, 0, 4000, 0, 0); burstArr = new Array(0, 0, 0, 0, 0, 0, 3, 0, 5, 0, 0); burst = burstArr[enemyOn]; burstCount = 0; atpArr = new Array(1, 1, 1, 1, 1, 1, 20, 1, 25, 1, 1); health = hp[enemyOn]; weakness = weakArr[enemyOn]; weakAmt = weakVal[enemyOn]; atp = atpArr[enemyOn]; rof = new Array(0, 0, 0, 0, 0, 0, 80, 0, 60, 0, 0); sweep = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); sweepDir = 0; sw = 0; coolDown = 10; shootFun = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = p0._x + _x; _parent['b' + i]._y = p0._y + _y; _parent['b' + i].gotoAndStop(181); _parent['b' + i].atp = atp; myRadians = Math.atan2(_parent.character._y - (p0._y + _y), _parent.character._x - (p0._x + _x)); _parent['b' + i]._rotation = Math.round(myRadians * 180 / Math.PI) + 180; _parent['b' + i].xSpd = Math.sin((_parent['b' + i]._rotation - 90) * 0.0174532925199433) * 12; _parent['b' + i].ySpd = Math.cos((_parent['b' + i]._rotation - 45) * 0.0174532925199433) * 10 * -1; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = p0._x + _x; _parent['s' + i]._y = p0._y + _y; _parent['s' + i]._xscale = 40; _parent['s' + i]._yscale = 40; ++burstCount; if (burstCount >= burst) { coolDown = rof[enemyOn]; burstCount = 0; } else { coolDown = 10; } }; enemyActions = function () { if (health > 0) { if (didStop == false) { _x = _x - spd; if (_x < stopPoint) { didStop = true; } } else { --coolDown; if (coolDown < 1) { shootFun(); } } float(); } else { afterDeath(); } }; }; this['type' + type + 'Start'](); exp = Math.floor(health / 12); if (exp < 5) { exp = 5; } isBoss = false; nextFrameDid = false; afterDeath = function () { if (doOnce != true) { doOnce = true; a = 0; while (a < _parent.tar.length) { if (_name == _parent.tar[a]) { _parent.tar.splice(a, 1); a = 1000000; } ++a; } _parent.dieFun(_x, _y, exp, size, wasKilledByCharacter, cantDrop); ySpd = -(random(10) + 5); xSpd = random(5) + 5; r = random(20) + 10; nextFrame(); } _x = _x - xSpd; _y = _y + ySpd; ySpd += 1; _rotation = _rotation - r; if (_y > 666) { removeMovieClip(''); } }; flx = 0; fly = 0; fld = random(2); fld2 = random(2); flMax = 0.8; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; } else { go = false; if (_root.bossCheckpoint == true) { waveOn = 500; } else { waveOn = 0; } countDown = 20; spawnFun = function () { if (_parent.seq.mission['wave' + waveOn] == undefined) { _parent.boss.gotoAndStop(_parent.boss.bossOn); nextFrameDid = true; _parent.boss.gotoAndStop(_parent.boss.bossOn); _parent.boss.go(); _root.music.mySound.stop(); _root.music.gotoAndPlay(20); waveOn = 0; countDown = 1.0e+018; } else { switch (_parent.seq.mission['wave' + waveOn].length) { case 1: yPt = new Array(200); break; case 2: yPt = new Array(100, 300); break; case 3: yPt = new Array(100, 200, 300); break; case 4: yPt = new Array(50, 150, 250, 350); break; case 5: yPt = new Array(50, 125, 200, 275, 350); break; case 6: yPt = new Array(25, 95, 165, 235, 305, 375); break; case 7: yPt = new Array(25, 83, 141, 200, 257, 315, 375); break; case 8: yPt = new Array(25, 75, 125, 175, 225, 275, 325, 375); break; case 9: yPt = new Array(25, 68.75, 112.5, 156.25, 200, 243.75, 287.5, 331.25, 375); break; case 10: yPt = new Array(25, 64, 103, 142, 181, 220, 259, 298, 337, 375); } enemy_y_start = -_parent._y; if (enemy_y_start < -50) { enemy_y_start = -50; } else { if (enemy_y_start > 215) { enemy_y_start = 215; } } a = 0; while (a < _parent.seq.mission['wave' + waveOn].length) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.ene1, 'b' + i, i); _parent['b' + i]._x = 800; _parent['b' + i]._y = enemy_y_start + yPt[a]; _parent['b' + i].gotoAndStop(_parent.seq.mission['wave' + waveOn][a]); ++a; } ++waveOn; countDown = 20; } }; gotoAndStop(196); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'ene1') { enemyActions(); } else { if (go == true) { if (nextFrameDid == true) { _parent.boss.go(); nextFrameDid = false; } if (_parent.tar.length < 1) { --countDown; if (countDown < 1) { spawnFun(); } } } } } } } instance eBul of movieClip 1083 { onClipEvent (load) { stop(); time = 0; spark = function () { _root.sfx.gotoAndPlay((random(9) + 1) * 2); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i]._xscale = -100; if (_root.charUsed == 2) { c = random(7); if (c == 1) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); _parent.character.health += pow; } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } removeMovieClip(''); }; shield = function (num) { _root.sfx.gotoAndPlay(30 + (random(3) + 1) * 2); if (num == 1) { play(); if (doOnce != true) { _parent.character.empVolts += 1; doOnce = true; } } else { gotoAndPlay(7); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.reflectBullet, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].pow = _parent.character.shieldATP; _parent['s' + i].xVel = xSpd * 1.5; _parent['s' + i].yVel = -ySpd * 1.5; } }; } onClipEvent (enterFrame) { if (_name != 'eBul') { if (_root.pause == false) { _x = _x - xSpd; _y = _y + ySpd; if (_x < -10) { removeMovieClip(''); } if (_currentframe == 1) { _parent.eCol(_x, _y, pow, _name); } } else { if (_root.empMode == true) { _alpha = _alpha - 10; if (_alpha < 1) { removeMovieClip(''); } } } } } } instance seq of movieClip 1085 { onClipEvent (load) { missionOn = _root.levelOn; mission = new Object(); switch (missionOn) { case 1: _parent.boss.bossOn = 1; mission.wave0 = new Array(1, 1, 1, 1); mission.wave1 = new Array(45, 45); mission.wave2 = new Array(45, 45, 45, 45, 45); mission.wave3 = new Array(1, 1, 1, 1, 1); mission.wave4 = new Array(45, 45, 45, 45); mission.wave5 = new Array(23, 23); mission.wave6 = new Array(1, 1, 1, 1, 1, 1); mission.wave7 = new Array(45, 45, 45, 45); mission.wave8 = new Array(23, 23); mission.wave9 = new Array(23, 23, 23); mission.wave10 = new Array(45, 45, 45, 45, 45); mission.wave11 = new Array(1, 1, 1, 1, 1, 1); mission.wave12 = new Array(23, 23, 23, 23); mission.wave13 = new Array(45, 45, 45, 45, 45, 45, 45); break; case 2: _parent.boss.bossOn = 2; mission.wave0 = new Array(1, 23, 23, 1); mission.wave1 = new Array(23, 1, 1, 23, 23, 1, 1, 23); mission.wave2 = new Array(45, 45, 1, 1, 45, 45); mission.wave3 = new Array(45, 45, 23, 45, 23, 45, 45); mission.wave4 = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1); mission.wave5 = new Array(45, 45, 23, 45, 45); mission.wave6 = new Array(23, 45, 1, 45, 23); mission.wave7 = new Array(1, 23, 23, 1, 1, 1, 23, 23, 1); mission.wave8 = new Array(45, 45, 45, 45, 45, 45, 45, 45); mission.wave9 = new Array(23, 45, 23, 45, 23, 45, 23); mission.wave10 = new Array(23, 1, 1, 23, 1, 1, 23); mission.wave11 = new Array(45, 45, 23, 45, 23, 45, 45); mission.wave12 = new Array(1, 1, 45, 1, 45, 1, 45, 1, 1); mission.wave13 = new Array(23, 23, 47, 23, 23); mission.wave14 = new Array(45, 45, 45, 47, 45, 47, 45, 45, 45); mission.wave15 = new Array(47, 23, 47, 23, 47); break; case 3: _parent.boss.bossOn = 5; mission.wave0 = new Array(1, 23, 1, 1, 1, 1, 23, 1); mission.wave1 = new Array(45, 45, 45, 45, 45, 45, 45); mission.wave2 = new Array(9, 9, 9); mission.wave3 = new Array(1, 1, 9, 1, 9, 1, 1); mission.wave4 = new Array(45, 45, 47, 45, 45); mission.wave5 = new Array(1, 23, 23, 1); mission.wave6 = new Array(9, 1, 9, 1, 9, 1, 9); mission.wave7 = new Array(45, 45, 47, 47, 45, 45); mission.wave8 = new Array(47, 23, 47, 23, 47); mission.wave9 = new Array(23, 9, 9, 23, 9, 9, 23); mission.wave10 = new Array(47, 47, 45, 47, 47); mission.wave11 = new Array(9, 9, 9, 23, 9, 9, 9); mission.wave12 = new Array(23, 47, 23, 47, 23, 47, 23); mission.wave13 = new Array(47, 47, 47, 47, 47, 47, 47); mission.wave14 = new Array(47, 47, 47, 23, 47, 47, 47); mission.wave15 = new Array(27, 27); break; case 4: _parent.boss.bossOn = 3; mission.wave0 = new Array(1, 23, 1, 23, 1); mission.wave1 = new Array(45, 23, 45); mission.wave2 = new Array(9, 9, 9); mission.wave3 = new Array(1, 9, 1, 9, 1); mission.wave4 = new Array(45, 47, 45); mission.wave5 = new Array(1, 23, 23, 1); mission.wave6 = new Array(23, 9, 9, 23); mission.wave7 = new Array(45, 45, 47, 47, 45, 45); mission.wave8 = new Array(1, 1, 1, 9, 9, 1, 1, 1); mission.wave9 = new Array(23, 9, 23, 9, 23); mission.wave10 = new Array(47, 47, 45, 47, 47); mission.wave11 = new Array(9, 9, 23, 9, 9); mission.wave12 = new Array(23, 47, 23, 47, 23, 47, 23); mission.wave13 = new Array(47, 47, 47, 47, 47); mission.wave14 = new Array(47, 23, 23, 47); mission.wave15 = new Array(23, 23, 9, 9, 23, 23); break; case 5: _parent.boss.bossOn = 7; mission.wave0 = new Array(23, 9, 9, 23); mission.wave1 = new Array(23, 23, 23, 23, 23); mission.wave2 = new Array(1, 1, 73, 1, 1); mission.wave3 = new Array(73, 9, 9, 73); mission.wave4 = new Array(23, 9, 47, 47, 9, 23); mission.wave5 = new Array(47, 47, 45, 45, 47, 47); mission.wave6 = new Array(23, 73, 73, 23); mission.wave7 = new Array(47, 9, 9, 9, 9, 47); mission.wave8 = new Array(23, 47, 23, 47, 23, 47, 23); mission.wave9 = new Array(73, 73, 73); mission.wave10 = new Array(73, 23, 73, 23, 73); mission.wave11 = new Array(23, 9, 23, 9, 23, 9, 23, 9, 23); mission.wave12 = new Array(47, 47, 47, 47, 47, 47); mission.wave13 = new Array(47, 73, 47, 73, 47, 73, 47); mission.wave14 = new Array(23, 9, 73, 23, 23, 73, 9, 23); mission.wave15 = new Array(45, 47, 45); break; case 6: _parent.boss.bossOn = 4; mission.wave0 = new Array(23, 23, 23, 23, 23); mission.wave1 = new Array(47, 9, 23, 9, 47); mission.wave2 = new Array(9, 9, 9, 9, 9, 9, 9, 9); mission.wave3 = new Array(9, 47, 9, 45, 9, 47, 9); mission.wave4 = new Array(47, 47, 47, 47, 47, 47); mission.wave5 = new Array(9, 23, 9, 9, 23, 9); mission.wave6 = new Array(23, 9, 23, 23, 9, 23); mission.wave7 = new Array(23, 23, 47, 9, 47, 23, 23); mission.wave8 = new Array(23, 23, 23, 23, 23, 23, 23, 23); mission.wave9 = new Array(23, 9, 23, 9, 23); mission.wave10 = new Array(47, 47, 23, 9, 23, 47, 47); mission.wave11 = new Array(23, 9, 9, 23, 9, 9, 23); mission.wave12 = new Array(23, 47, 23, 47, 23, 47, 23); mission.wave13 = new Array(47, 47, 47, 47, 47); break; case 7: _parent.boss.bossOn = 8; mission.wave0 = new Array(23, 9, 23, 9, 23); mission.wave1 = new Array(23, 23, 27, 23, 23); mission.wave2 = new Array(9, 9, 73, 9, 9); mission.wave3 = new Array(9, 73, 9, 9, 73, 9); mission.wave4 = new Array(23, 9, 47, 23, 47, 9, 23); mission.wave5 = new Array(27, 9, 27, 9, 27); mission.wave6 = new Array(23, 73, 73, 23); mission.wave7 = new Array(27, 27, 27, 27, 27); mission.wave8 = new Array(27, 73, 27, 73, 27); mission.wave9 = new Array(73, 73, 73); mission.wave10 = new Array(27, 73, 9, 73, 9, 73, 27); mission.wave11 = new Array(27, 9, 27, 9, 27, 9, 27, 9, 27); mission.wave12 = new Array(47, 47, 47, 27, 27, 47, 47, 47); mission.wave13 = new Array(47, 73, 47, 73, 73, 47, 73, 47); break; case 8: _parent.boss.bossOn = 6; mission.wave0 = new Array(9, 9, 73, 27, 73, 9, 9); mission.wave1 = new Array(47, 27, 47, 47, 47, 27, 47); mission.wave2 = new Array(13, 13, 13); mission.wave3 = new Array(73, 27, 73, 27, 73); mission.wave4 = new Array(47, 47, 47, 73, 47, 47, 47); mission.wave5 = new Array(13, 27, 13, 27, 13); mission.wave6 = new Array(27, 73, 13, 73, 27); mission.wave7 = new Array(13, 73, 13, 13, 73, 13); mission.wave8 = new Array(47, 47, 13, 47, 13, 47, 13, 47, 47); mission.wave9 = new Array(1, 1, 9, 9, 13, 9, 9, 1, 1); mission.wave10 = new Array(13, 13, 73, 23, 73, 13, 13); mission.wave11 = new Array(47, 47, 49, 49, 47, 47); mission.wave12 = new Array(73, 49, 73, 49, 73, 49, 73); mission.wave13 = new Array(13, 27, 27, 13, 27, 13, 27, 27, 13); mission.wave14 = new Array(13, 13, 13, 13, 13, 13, 13, 13); break; case 9: _parent.boss.bossOn = 19; mission.wave0 = new Array(13, 17, 13); mission.wave1 = new Array(49, 49, 49, 51, 51, 49, 49, 49); mission.wave2 = new Array(17, 13, 67, 13, 17); mission.wave3 = new Array(67, 17, 17, 67, 17, 17, 67); mission.wave4 = new Array(51, 67, 51, 51, 67, 51, 51, 67, 51); mission.wave5 = new Array(17, 25, 17, 25, 17); mission.wave6 = new Array(25, 25, 25, 25); mission.wave7 = new Array(25, 13, 35, 13, 25); mission.wave8 = new Array(17, 25, 13, 25, 13, 25, 17); mission.wave9 = new Array(49, 49, 51, 51, 51, 49, 49); mission.wave10 = new Array(51, 51, 51, 51, 51, 51, 51, 51); mission.wave11 = new Array(25, 25, 25, 17, 17, 35, 35, 35); mission.wave12 = new Array(17, 67, 13, 67, 17); mission.wave13 = new Array(25, 67, 25, 67, 25, 67, 25); mission.wave14 = new Array(17, 17, 17, 17, 17, 17, 17); mission.wave15 = new Array(25, 25, 25, 25, 25, 25, 25); mission.wave16 = new Array(67, 67, 67, 67, 67, 67, 67); mission.wave17 = new Array(51, 51, 51, 51, 51, 51, 51); break; case 10: _parent.boss.bossOn = 11; mission.wave0 = new Array(13, 13, 13); mission.wave1 = new Array(49, 49, 49, 13, 13, 49, 49, 49); mission.wave2 = new Array(13, 67, 13); mission.wave3 = new Array(67, 67, 67); mission.wave4 = new Array(47, 67, 47, 47, 67, 47, 47, 67, 47); mission.wave5 = new Array(13, 27, 13, 27, 13); mission.wave6 = new Array(27, 67, 13, 27, 13, 67, 27); mission.wave7 = new Array(13, 35, 13); mission.wave8 = new Array(13, 35, 35, 35, 13); mission.wave9 = new Array(47, 49, 49, 47); mission.wave10 = new Array(49, 49, 49); mission.wave11 = new Array(35, 35, 49, 49, 35, 35); mission.wave12 = new Array(35, 35, 13, 13, 35, 35); mission.wave13 = new Array(35, 67, 67, 35); mission.wave14 = new Array(35, 67, 35, 67, 35); mission.wave15 = new Array(49, 49, 35, 49, 49); mission.wave16 = new Array(49, 67, 49, 49, 67, 49); mission.wave17 = new Array(67, 35, 67, 67, 35, 67); break; case 11: _parent.boss.bossOn = 12; mission.wave0 = new Array(107, 107); mission.wave1 = new Array(17, 17, 107, 17, 17); mission.wave2 = new Array(17, 67, 17); mission.wave3 = new Array(107, 67, 107); mission.wave4 = new Array(67, 67, 67); mission.wave5 = new Array(67, 17, 107, 17, 67); mission.wave6 = new Array(49, 49, 49, 49, 49, 49, 49, 49, 49); mission.wave7 = new Array(49, 49, 67, 49, 67, 49, 49); mission.wave8 = new Array(67, 67, 107, 107); mission.wave9 = new Array(17, 17, 17, 17, 17, 17); mission.wave10 = new Array(51, 51); mission.wave11 = new Array(51, 107, 51); mission.wave12 = new Array(67, 107, 51, 51, 107, 67); break; case 12: _parent.boss.bossOn = 18; mission.wave0 = new Array(107, 67, 107, 67, 107); mission.wave1 = new Array(17, 17, 7, 7, 17, 17); mission.wave2 = new Array(17, 7, 67, 7, 17); mission.wave3 = new Array(17, 17, 77, 17, 17); mission.wave4 = new Array(7, 7, 7); mission.wave5 = new Array(77, 77, 77); mission.wave6 = new Array(49, 51, 49, 49, 51, 49); mission.wave7 = new Array(51, 51, 77, 51, 77, 51, 51); mission.wave8 = new Array(107, 77, 107, 7, 7, 107, 77, 107); mission.wave9 = new Array(7, 7, 7, 107, 107, 7, 7, 7); mission.wave10 = new Array(107, 51, 77, 77, 51, 107); mission.wave11 = new Array(7, 7, 51, 107, 51, 7, 7); mission.wave12 = new Array(67, 67, 77, 77, 77, 67, 67); mission.wave13 = new Array(7, 7, 7, 77, 77, 7, 7, 7); mission.wave14 = new Array(107, 107, 107, 7, 107, 107, 107); mission.wave15 = new Array(77, 77, 77, 77, 77, 77); mission.wave16 = new Array(51, 51, 51, 51, 51, 51, 51, 51); break; case 13: _parent.boss.bossOn = 17; mission.wave0 = new Array(17, 17, 17, 67, 17, 17, 17); mission.wave1 = new Array(25, 25); mission.wave2 = new Array(67, 25, 67, 25, 67); mission.wave3 = new Array(51, 51, 51); mission.wave4 = new Array(51, 25, 51, 25, 51); mission.wave5 = new Array(67, 67, 25, 67, 67); mission.wave6 = new Array(107, 25, 107, 25, 107); mission.wave7 = new Array(51, 51, 49, 51, 49, 51, 49, 51, 51); mission.wave8 = new Array(107, 17, 107, 107, 17, 107, 107, 17, 107); mission.wave9 = new Array(25, 25, 49, 25, 25); mission.wave10 = new Array(51, 51, 49, 107, 49, 51, 51); mission.wave11 = new Array(51, 25, 17, 25, 51); mission.wave12 = new Array(17, 17); mission.wave13 = new Array(17, 25, 67, 107, 67, 25, 17); mission.wave14 = new Array(51, 51, 51); break; case 14: _parent.boss.bossOn = 13; mission.wave0 = new Array(7, 7, 25, 25, 7, 7); mission.wave1 = new Array(7, 7, 77, 7, 7); mission.wave2 = new Array(51, 51, 51, 51); mission.wave3 = new Array(107, 7, 7, 107); mission.wave4 = new Array(7, 107, 7, 25, 25, 7, 107, 7); mission.wave5 = new Array(51, 53, 51, 53, 53, 51, 53, 51); mission.wave6 = new Array(53, 53, 53, 51, 51, 53, 53, 53); mission.wave7 = new Array(25, 25, 25, 25, 25); mission.wave8 = new Array(7, 25, 7, 25, 7, 25, 7); mission.wave9 = new Array(7, 7, 7, 107, 107, 7, 7, 7); mission.wave10 = new Array(107, 107, 107, 107); mission.wave11 = new Array(107, 25, 107, 25, 107, 25, 107); mission.wave12 = new Array(7, 25, 25, 7, 25, 25, 7); mission.wave13 = new Array(53, 53, 53, 53, 53, 53); mission.wave14 = new Array(51, 53, 51, 53, 51); mission.wave15 = new Array(7, 107, 25, 77, 25, 107, 7); break; case 15: _parent.boss.bossOn = 14; mission.wave0 = new Array(121, 121, 121); mission.wave1 = new Array(7, 121, 7, 121, 7); mission.wave2 = new Array(107, 121, 121, 107); mission.wave3 = new Array(107, 107, 107, 121, 107, 107, 107); mission.wave4 = new Array(25, 25, 7, 25, 7, 25, 25); mission.wave5 = new Array(7, 7, 7, 25, 7, 7, 7); mission.wave6 = new Array(25, 121, 7, 7, 121, 25); mission.wave7 = new Array(107, 7, 7, 121, 7, 7, 107); mission.wave8 = new Array(53, 53, 53, 53, 53, 53); mission.wave9 = new Array(121, 25, 25, 121); mission.wave10 = new Array(121, 121, 107, 107, 121, 121); mission.wave11 = new Array(53, 7, 53, 7, 53, 7, 53, 7, 53); mission.wave12 = new Array(121, 121, 53, 53, 121, 121); mission.wave13 = new Array(121, 77, 121, 77, 121); mission.wave14 = new Array(121, 77, 25, 77, 25, 77, 121); break; case 16: _parent.boss.bossOn = 15; mission.wave0 = new Array(121, 21, 21, 21, 121); mission.wave1 = new Array(53, 53, 21, 53, 21, 53, 53); mission.wave2 = new Array(53, 53, 53, 53, 53, 53, 53, 53); mission.wave3 = new Array(21, 21, 53, 53, 21, 21); mission.wave4 = new Array(21, 25, 21, 25, 21, 25, 21); mission.wave5 = new Array(25, 25, 25, 121, 25, 25, 25); mission.wave6 = new Array(121, 121, 77, 77, 77, 121, 121); mission.wave7 = new Array(53, 77, 53, 77, 53, 77, 53); mission.wave8 = new Array(107, 107, 121, 107, 121, 107, 107); mission.wave9 = new Array(53, 107, 77, 107, 77, 107, 53); mission.wave10 = new Array(121, 121, 21, 121, 21, 121, 121); mission.wave11 = new Array(53, 53, 53, 53, 53, 53, 53, 53); mission.wave12 = new Array(21, 21, 21, 21, 21, 21, 21, 21); mission.wave13 = new Array(121, 121, 121, 121, 121, 121); mission.wave14 = new Array(77, 77, 121, 77, 121, 77, 77); mission.wave15 = new Array(107, 121, 21, 25, 21, 121, 107); break; case 17: _parent.boss.bossOn = 9; mission.wave0 = new Array(21, 21, 21); mission.wave1 = new Array(55, 55, 55, 55, 55); mission.wave2 = new Array(55, 21, 55, 55, 55, 21, 55); mission.wave3 = new Array(55, 25, 55, 25, 55, 25, 55); mission.wave4 = new Array(55, 83, 55); mission.wave5 = new Array(55, 83, 55, 83, 55); mission.wave6 = new Array(83, 83, 55, 55, 55, 83, 83); mission.wave7 = new Array(21, 83, 21, 83, 21); mission.wave8 = new Array(83, 83, 25, 25, 83, 83); mission.wave9 = new Array(25, 21, 21, 21, 25); mission.wave10 = new Array(21, 121, 21, 121, 21); mission.wave11 = new Array(83, 121, 83, 121, 83); mission.wave12 = new Array(121, 83, 83, 121, 83, 83, 121); mission.wave13 = new Array(55, 55, 83, 83, 55, 55); mission.wave14 = new Array(121, 55, 121, 55, 121, 55, 121); mission.wave15 = new Array(121, 83, 21, 25, 21, 83, 121); break; case 18: _parent.boss.bossOn = 10; mission.wave0 = new Array(89, 89); mission.wave1 = new Array(107, 89, 107, 89, 107); mission.wave2 = new Array(107, 89, 89, 89, 107); mission.wave3 = new Array(21, 21, 89, 21, 21); mission.wave4 = new Array(21, 21, 25, 21, 25, 21, 21); mission.wave5 = new Array(125, 125); mission.wave6 = new Array(53, 125, 53, 125, 53); mission.wave7 = new Array(125, 89, 89, 125); mission.wave8 = new Array(55, 53, 53, 55, 55, 53, 53, 55); mission.wave9 = new Array(125, 125, 89, 89, 125, 125); mission.wave10 = new Array(125, 125, 89, 107, 89, 125, 125); mission.wave11 = new Array(21, 25, 125, 89, 125, 25, 21); mission.wave12 = new Array(125, 125, 107, 125, 107, 125, 125); mission.wave13 = new Array(21, 21, 21, 21, 21); mission.wave14 = new Array(89, 89, 89, 89, 89, 89); mission.wave15 = new Array(125, 125, 125, 125, 125); mission.wave16 = new Array(55, 53, 55, 53, 55, 53, 55); mission.wave17 = new Array(25, 21, 25, 21, 21, 25, 21, 25); mission.wave18 = new Array(125, 107, 89, 125, 89, 107, 125); mission.wave19 = new Array(125, 89, 21, 25, 21, 89, 125); mission.wave20 = new Array(53, 53, 53, 53, 53, 53, 53, 53); break; case 19: _parent.boss.bossOn = 23; mission.wave0 = new Array(21, 117, 117, 21); mission.wave1 = new Array(25, 117, 21, 117, 25); mission.wave2 = new Array(89, 21, 21, 89); mission.wave3 = new Array(89, 89, 107, 107, 89, 89); mission.wave4 = new Array(55, 55, 55, 55, 55, 55); mission.wave5 = new Array(55, 53, 55, 53, 55, 53, 55); mission.wave6 = new Array(117, 117, 25, 55, 25, 117, 117); mission.wave7 = new Array(145, 145, 145); mission.wave8 = new Array(89, 145, 145, 145, 89); mission.wave9 = new Array(89, 145, 21, 21, 145, 89); mission.wave10 = new Array(55, 53, 55, 53, 55, 53, 55); mission.wave11 = new Array(145, 55, 145, 55, 145, 55, 145); mission.wave12 = new Array(89, 107, 21, 107, 89); break; case 20: _parent.boss.bossOn = 24; mission.wave0 = new Array(145, 145, 145, 145, 145); mission.wave1 = new Array(83, 55, 83, 83, 83, 55, 83); mission.wave2 = new Array(89, 83, 89, 83, 89, 83, 89); mission.wave3 = new Array(57, 57, 57, 57); mission.wave4 = new Array(53, 57, 53, 57, 53); mission.wave5 = new Array(57, 53, 57, 53, 57, 53, 57, 53, 57); mission.wave6 = new Array(107, 107, 107, 107); mission.wave7 = new Array(145, 83, 145, 83, 145); mission.wave8 = new Array(145, 145, 83, 83, 83, 145, 145); mission.wave9 = new Array(107, 145, 107, 107, 145, 107); mission.wave10 = new Array(145, 89, 145, 89, 89, 145, 89, 145); mission.wave11 = new Array(89, 107, 89, 145, 145, 89, 107, 89); mission.wave12 = new Array(53, 55, 57, 55, 57, 55, 53); mission.wave13 = new Array(21, 57, 21, 57, 57, 21, 57, 21); mission.wave14 = new Array(145, 83, 107, 89, 107, 83, 145); mission.wave15 = new Array(57, 57, 57, 57, 57); mission.wave16 = new Array(57, 53, 57, 53, 57, 53, 57, 53, 57); mission.wave17 = new Array(145, 145, 145, 145, 145); break; case 21: _parent.boss.bossOn = 25; mission.wave0 = new Array(57, 57, 57, 57); mission.wave1 = new Array(11, 11, 11); mission.wave2 = new Array(21, 21, 11, 21, 21); mission.wave3 = new Array(21, 25, 21, 21, 25, 21); mission.wave4 = new Array(25, 11, 11, 25, 11, 11, 25); mission.wave5 = new Array(57, 55, 57, 55, 57, 55, 57); mission.wave6 = new Array(57, 57, 57, 57, 57, 57, 57, 57, 57); mission.wave7 = new Array(145, 11, 145, 145, 11, 145); mission.wave8 = new Array(41, 41); mission.wave9 = new Array(41, 11, 11, 41); mission.wave10 = new Array(59, 59, 59, 59, 59); mission.wave11 = new Array(59, 57, 59, 57, 59, 57, 59); mission.wave12 = new Array(107, 41, 107, 11, 107, 41, 107); mission.wave13 = new Array(83, 83, 41, 41, 83, 83); mission.wave14 = new Array(11, 11, 75, 75, 11, 11); mission.wave15 = new Array(41, 75, 41, 75, 41, 75, 41); break; case 22: _parent.boss.bossOn = 26; mission.wave0 = new Array(11, 11, 11, 11, 11); mission.wave1 = new Array(41, 41, 41); mission.wave2 = new Array(11, 41, 41, 11); mission.wave3 = new Array(59, 59, 59, 59, 59, 59, 59); mission.wave4 = new Array(59, 59, 57, 59, 57, 59, 59); mission.wave5 = new Array(11, 41, 11, 11, 41, 11); mission.wave6 = new Array(75, 75, 75, 75); mission.wave7 = new Array(75, 41, 75, 41, 75); mission.wave8 = new Array(11, 75, 75, 11, 75, 75, 11); mission.wave9 = new Array(59, 59, 59, 59, 59, 59); mission.wave10 = new Array(75, 59, 75, 59, 75); mission.wave11 = new Array(95, 95, 95); mission.wave12 = new Array(95, 75, 95, 75, 95); mission.wave13 = new Array(59, 95, 59, 95, 59, 95, 59); mission.wave14 = new Array(111, 111, 111, 111); mission.wave15 = new Array(111, 111, 95, 111, 111); mission.wave16 = new Array(111, 75, 111, 75, 111); mission.wave17 = new Array(59, 55, 59, 55, 59, 55, 59); mission.wave18 = new Array(149, 149, 149, 149); mission.wave19 = new Array(149, 111, 149, 111, 149); mission.wave20 = new Array(149, 59, 149, 59, 149); mission.wave21 = new Array(11, 11, 111, 111, 11, 11); mission.wave22 = new Array(111, 41, 111, 41, 111); mission.wave23 = new Array(75, 149, 75, 149, 75); mission.wave24 = new Array(111, 75, 111, 75, 111, 75, 111); break; case 23: _parent.boss.bossOn = 27; mission.wave0 = new Array(11, 11, 41, 11, 41, 11, 11); mission.wave1 = new Array(59, 59, 57, 59, 57, 59, 59); mission.wave2 = new Array(41, 41, 11, 41, 41); mission.wave3 = new Array(95, 95, 41, 41, 95, 95); mission.wave4 = new Array(75, 75, 41, 41, 75, 75); mission.wave5 = new Array(111, 41, 111, 41, 111); mission.wave6 = new Array(59, 59, 59, 59, 59, 59, 59, 59); mission.wave7 = new Array(111, 11, 111, 11, 111, 11, 111); mission.wave8 = new Array(75, 149, 75, 149, 75); mission.wave9 = new Array(95, 95, 11, 95, 11, 95, 95); mission.wave10 = new Array(95, 75, 11, 41, 11, 75, 95); mission.wave11 = new Array(11, 59, 11, 59, 11, 59, 11, 59, 11); mission.wave12 = new Array(41, 11, 75, 75, 75, 11, 41); mission.wave13 = new Array(111, 111, 75, 75, 111, 111); mission.wave14 = new Array(149, 149, 111, 111, 149, 149); mission.wave15 = new Array(59, 57, 59, 57, 59, 57, 59, 57, 59); mission.wave16 = new Array(149, 95, 149, 95, 149); mission.wave17 = new Array(149, 95, 111, 95, 111, 95, 149); mission.wave18 = new Array(149, 41, 75, 75, 41, 149); mission.wave19 = new Array(59, 57, 59, 57, 59, 57, 59, 57, 59); break; case 24: _parent.boss.bossOn = 28; mission.wave0 = new Array(149, 149, 149, 149, 149, 149); mission.wave1 = new Array(111, 149, 149, 111, 149, 149, 111); mission.wave2 = new Array(95, 111, 95, 111, 111, 95, 111, 95); mission.wave3 = new Array(41, 111, 41, 111, 41, 111, 41, 111, 41); mission.wave4 = new Array(59, 57, 55, 57, 59, 57, 55, 57, 59); mission.wave5 = new Array(11, 59, 11, 59, 11, 59, 11, 59, 11); mission.wave6 = new Array(11, 41, 11, 11, 41, 11, 11, 41, 11); mission.wave7 = new Array(111, 11, 41, 11, 111, 11, 41, 11, 111); mission.wave8 = new Array(59, 59, 57, 57, 59, 59, 57, 57, 59, 59); mission.wave9 = new Array(41, 95, 41, 95, 95, 41, 95, 41); mission.wave10 = new Array(95, 95, 75, 75, 75, 75, 95, 95); mission.wave11 = new Array(149, 75, 75, 149, 75, 75, 149); mission.wave12 = new Array(75, 95, 95, 111, 111, 95, 95, 75); mission.wave13 = new Array(41, 59, 41, 59, 41, 59, 41, 59, 41); mission.wave14 = new Array(95, 75, 41, 11, 41, 75, 95); mission.wave15 = new Array(111, 95, 75, 41, 111, 41, 75, 95, 111); mission.wave16 = new Array(11, 11, 41, 41, 41, 11, 11); mission.wave17 = new Array(41, 41, 41, 149, 149, 41, 41, 41); mission.wave18 = new Array(11, 41, 149, 95, 95, 149, 41, 11); mission.wave19 = new Array(59, 149, 59, 149, 59, 149, 59, 149, 59); mission.wave20 = new Array(95, 95, 95, 95, 95, 95, 95, 95, 95); break; case 25: _parent.boss.bossOn = 29; mission.wave0 = new Array(1, 1, 1, 1, 1); mission.wave1 = new Array(23, 23, 23, 23, 23); mission.wave2 = new Array(45, 45, 45, 45, 45); mission.wave3 = new Array(23, 1, 23, 1, 23, 1, 23); mission.wave4 = new Array(23, 1, 45, 23, 45, 1, 23); mission.wave5 = new Array(9, 9, 9, 9, 9); mission.wave6 = new Array(27, 27, 27, 27, 27); mission.wave7 = new Array(47, 47, 47, 47, 47); mission.wave8 = new Array(73, 73, 73, 73, 73); mission.wave9 = new Array(1, 9, 1, 9, 1, 9, 1); mission.wave10 = new Array(9, 27, 9, 27, 9); mission.wave11 = new Array(73, 27, 73, 27, 73, 27, 73); mission.wave12 = new Array(73, 27, 9, 73, 9, 27, 73); mission.wave13 = new Array(13, 13, 13, 13, 13); mission.wave14 = new Array(35, 35, 35, 35, 35); mission.wave15 = new Array(49, 49, 49, 49, 49); mission.wave16 = new Array(67, 67, 67, 67, 67); mission.wave17 = new Array(35, 35, 13, 13, 35, 35); mission.wave18 = new Array(49, 47, 45, 47, 49); mission.wave19 = new Array(67, 35, 67, 35, 67); mission.wave20 = new Array(35, 13, 67, 13, 67, 13, 35); mission.wave21 = new Array(17, 17, 17, 17, 17); mission.wave22 = new Array(25, 25, 25, 25, 25); mission.wave23 = new Array(51, 51, 51, 51, 51); mission.wave24 = new Array(77, 77, 77, 77, 77); mission.wave25 = new Array(107, 107, 107, 107, 107); mission.wave26 = new Array(25, 17, 25, 17, 25); mission.wave27 = new Array(25, 51, 51, 17, 51, 51, 25); mission.wave28 = new Array(107, 51, 107, 51, 107); mission.wave29 = new Array(25, 107, 107, 25); mission.wave30 = new Array(17, 17, 107, 25, 107, 17, 17); mission.wave31 = new Array(51, 25, 51, 107, 51, 25, 51); mission.wave32 = new Array(7, 7, 7, 7, 7); mission.wave33 = new Array(41, 41, 41, 41, 41); mission.wave34 = new Array(53, 53, 53, 53, 53); mission.wave35 = new Array(83, 83, 83, 83, 83); mission.wave36 = new Array(89, 89, 89, 89, 89); mission.wave37 = new Array(83, 83, 89, 89, 83, 83); mission.wave38 = new Array(83, 41, 83, 41, 41, 83, 41, 83); mission.wave39 = new Array(7, 89, 89, 7, 89, 89, 7); mission.wave40 = new Array(53, 51, 53, 51, 53, 51, 53, 51, 53); mission.wave41 = new Array(7, 41, 83, 89, 89, 83, 41, 7); mission.wave42 = new Array(21, 21, 21, 21, 21); mission.wave43 = new Array(55, 55, 55, 55, 55); mission.wave44 = new Array(75, 75, 75, 75, 75); mission.wave45 = new Array(95, 95, 95, 95, 95); mission.wave46 = new Array(121, 121, 121, 121, 121); mission.wave47 = new Array(75, 21, 75, 21, 75); mission.wave48 = new Array(121, 41, 121, 41, 121); mission.wave49 = new Array(121, 95, 95, 121, 95, 95, 121); mission.wave50 = new Array(55, 53, 55, 53, 55, 53, 55, 53, 55); mission.wave51 = new Array(21, 55, 21, 55, 21, 55); mission.wave52 = new Array(21, 21, 121, 121, 21, 21); mission.wave53 = new Array(95, 21, 21, 95, 21, 21, 95); mission.wave54 = new Array(11, 11, 11, 11, 11); mission.wave55 = new Array(57, 57, 57, 57, 57); mission.wave56 = new Array(117, 117, 117, 117, 117); mission.wave57 = new Array(145, 145, 145, 145, 145); mission.wave58 = new Array(11, 21, 7, 17, 13, 9, 1); mission.wave59 = new Array(1, 9, 13, 17, 7, 21, 11); mission.wave60 = new Array(57, 55, 57, 55, 57, 55, 57); mission.wave61 = new Array(57, 55, 53, 51, 53, 55, 57); mission.wave62 = new Array(11, 145, 117, 145, 117, 145, 11); mission.wave63 = new Array(41, 145, 41, 145, 41, 145, 41); mission.wave64 = new Array(41, 11, 117, 117, 11, 41); mission.wave65 = new Array(11, 41, 75, 117, 75, 41, 11); mission.wave66 = new Array(11, 11, 117, 117, 117, 11, 11); mission.wave67 = new Array(59, 59, 59, 59, 59); mission.wave68 = new Array(111, 111, 111, 111, 111); mission.wave69 = new Array(149, 149, 149, 149, 149); mission.wave70 = new Array(59, 57, 55, 53, 51, 49, 47, 45); mission.wave71 = new Array(45, 47, 49, 51, 53, 55, 57, 59); mission.wave72 = new Array(111, 149, 111, 111, 149, 111); mission.wave73 = new Array(149, 41, 41, 149, 41, 41, 149); mission.wave74 = new Array(11, 149, 11, 11, 149, 11); mission.wave75 = new Array(95, 149, 95, 95, 149, 95); mission.wave76 = new Array(111, 95, 95, 111, 95, 95, 111); mission.wave77 = new Array(111, 41, 95, 95, 11, 95, 95, 41, 111); mission.wave78 = new Array(59, 57, 55, 57, 55, 57, 59); mission.wave79 = new Array(11, 111, 95, 149, 149, 95, 111, 11); mission.wave80 = new Array(95, 95, 111, 95, 95, 111, 95, 95); } } } instance laser of movieClip 1105 { onClipEvent (load) { if (_name != 'laser') { h = 8; spark = function () { if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = x; _parent['s' + i]._y = y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = x; _parent['s' + i]._y = y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = x; _parent['s' + i]._y = y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = x; _parent['s' + i]._y = y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = x; _parent['s' + i]._y = y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); }; } else { laser.gotoAndStop(11); } _parent.col2(_x, _y, pow, _name); } } instance grenade of movieClip 1107 { onClipEvent (load) { if (_name != 'grenade') { spd = 15; _x = _x + spd; ySpd = -4; spark = function () { _root.sfx.gotoAndPlay(18 + (random(6) + 1) * 2); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; a = 0; while (a < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.shrapnel, 'b' + i, i); r = random(10) - 5; _parent['b' + i]._x = _x + r; _parent['b' + i].spd = r * 2; r = random(10) - 5; _parent['b' + i]._y = _y + r; _parent['b' + i].ySpd = r * 2; _parent['b' + i].gotoAndStop(1); missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = pow; } else { _parent['b' + i].pow = pow; } } ++a; } if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } removeMovieClip(''); }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'grenade') { _x = _x + spd; _y = _y + ySpd; ySpd += arcSpeed; _parent.col1(_x, _y, pow, _name); if (_y > 660) { removeMovieClip(''); } if (_x > 725) { removeMovieClip(''); } } } } } instance shrapnel of movieClip 1109 { onClipEvent (load) { if (_name != 'shrapnel') { if (spd == undefined) { spd = 15; } _x = _x + spd; _y = _y + ySpd; t = 0; spark = function () { _root.sfx.gotoAndPlay((random(9) + 1) * 2); if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } removeMovieClip(''); }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'shrapnel') { a = 0; while (a < 2) { _x = _x + spd; _y = _y + ySpd; _parent.col1(_x, _y, pow, _name); ++a; } ++t; if (t > 5) { _alpha = _alpha - 30; if (_alpha < 1) { removeMovieClip(''); } } } } } } instance rocket of movieClip 1111 { onClipEvent (load) { if (_name != 'rocket') { if (spd == undefined) { spd = 15; } _x = _x + spd; spark = function () { _root.sfx.gotoAndPlay(18 + (random(6) + 1) * 2); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; a = 0; while (a < 6) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.shrapnel, 'b' + i, i); r = random(10) - 5; _parent['b' + i]._x = _x + r; _parent['b' + i].spd = r * 2; r = random(10) - 5; _parent['b' + i]._y = _y + r; _parent['b' + i].ySpd = r * 2; _parent['b' + i].gotoAndStop(1); missChance = random(acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = pow; } else { _parent['b' + i].pow = pow; } } ++a; } if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } removeMovieClip(''); }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'rocket') { _x = _x + spd; _y = _y + ySpd; _parent.col1(_x, _y, pow, _name); if (_x > 750) { removeMovieClip(''); } } } } } instance lightning of movieClip 1122 { onClipEvent (load) { if (_name != 'lightning') { if (isntFirst == true) { ++timesDone; if (timesDone > 5) { removeMovieClip(''); } if (_parent[_parent.tar[tt]].isBoss == false) { if (_parent[_parent.tar[tt]]._x == undefined) { removeMovieClip(''); } tx = _parent[_parent.tar[tt]]._x; ty = _parent[_parent.tar[tt]]._y; } else { if (_parent[_parent.tar[tt]][_parent[_parent.tar[tt]].laserTar[tt2]]._x == undefined) { removeMovieClip(''); } tx = _parent[_parent.tar[tt]][_parent[_parent.tar[tt]].laserTar[tt2]]._x + _parent[_parent.tar[tt]]._x; ty = _parent[_parent.tar[tt]][_parent[_parent.tar[tt]].laserTar[tt2]]._y + _parent[_parent.tar[tt]]._y; } } else { if (isChain == true) { tt = random(_parent.tar.length); if (_parent[_parent.tar[tt]].isBoss == false) { tx = _parent[_parent.tar[tt]]._x; ty = _parent[_parent.tar[tt]]._y; } else { tt2 = random(_parent[_parent.tar[tt]].laserTar.length); tx = _parent[_parent.tar[tt]][_parent[_parent.tar[tt]].laserTar[0]]._x + _parent[_parent.tar[tt]]._x; ty = _parent[_parent.tar[tt]][_parent[_parent.tar[tt]].laserTar[0]]._y + _parent[_parent.tar[tt]]._y; } targetNum = tt; targetNum2 = tt2; } else { timesDone = 0; if (_parent[_parent.tar[0]].isBoss == false) { tx = _parent[_parent.tar[0]]._x; ty = _parent[_parent.tar[0]]._y; } else { tx = _parent[_parent.tar[0]][_parent[_parent.tar[0]].laserTar[0]]._x + _parent[_parent.tar[0]]._x; ty = _parent[_parent.tar[0]][_parent[_parent.tar[0]].laserTar[0]]._y + _parent[_parent.tar[0]]._y; } } } dx = tx - _x; dy = ty - _y; spark = function () { if (isCrit == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = tx; _parent['s' + i]._y = ty; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = tx; _parent['s' + i]._y = ty; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(2); } else { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = tx; _parent['s' + i]._y = ty; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = tx; _parent['s' + i]._y = ty; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); } }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = tx; _parent['s' + i]._y = ty; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); }; if (pow != 'MISS') { if (_parent[_parent.tar[0]].isBoss == false) { _parent[_parent.tar[0]].health -= pow; } else { _parent[_parent.tar[0]][_parent[_parent.tar[0]].laserTar[0]].health -= pow; } spark(); } else { miss(); } myRadians = Math.atan2(dy, dx); _rotation = Math.round(myRadians * 180 / Math.PI); line.gotoAndStop(random(line._totalframes) + 1); line._width = Math.sqrt(dx * dx + dy * dy); t = 0; makeNext = function () { if (isChain == true) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.lightning, 'b' + i, i); _parent['b' + i]._x = tx + (random(10) - 5); _parent['b' + i]._y = ty + (random(10) - 5); _parent['b' + i].isntFirst = true; _parent['b' + i].gotoAndStop(1); _parent['b' + i].timesDone = timesDone; if (_parent[_parent.tar[tt]].isBoss == true) { _parent['b' + i].tt2 = tt2 + 1; _parent['b' + i].tt = tt; } else { _parent['b' + i].tt = tt + 1; } missChance = random(_parent.character.acc); if (missChance == 1) { _parent['b' + i].pow = 'MISS'; } else { c = random(crit); if (c == 1) { _parent['b' + i].isCrit = true; _parent['b' + i].pow = pow; } else { _parent['b' + i].pow = pow; } } } }; } } onClipEvent (enterFrame) { if (_name != 'lightning') { ++t; if (_visible == true) { _visible = false; } else { _visible = true; } if (t == 3) { makeNext(); } if (t > 1) { _alpha = _alpha - 30; if (_alpha < 5) { removeMovieClip(''); } } } } } instance saw of movieClip 1124 { onClipEvent (load) { if (_name != 'saw') { spd = 15; t = 0; t2 = 0; d = 0; _x = _x + spd; ySpd = -4; spark = function () { if (t2 == 0) { _root.sfx.gotoAndPlay((random(9) + 1) * 2); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; } ++t2; if (t2 > 1) { t2 = 0; } ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; if (isCrit == true) { _parent['s' + i].gotoAndStop(2); } else { _parent['s' + i].gotoAndStop(1); } _x = _x + (random(6) - 3); _y = _y + (random(6) - 3); spd = 0; ySpd = 0; ++d; if (d > 10) { removeMovieClip(''); } }; miss = function () { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = 'MISS'; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'saw') { _rotation = _rotation + 25; _x = _x + spd; _y = _y + ySpd; ySpd += arcSpeed; if (t == 1) { _parent.col1(_x, _y, pow, _name); t = 0; } else { t = 1; } if (_y > 660) { removeMovieClip(''); } if (_x > 725) { removeMovieClip(''); } } } } } instance enemyLaser of movieClip 1135 { onClipEvent (load) { if (_name != 'enemyLaser') { _root.sfx.gotoAndPlay(72); collision = function () { _root.sfx.gotoAndPlay(48); if (Math.abs(_y - _parent.character._y) < 20) { _root.sfx.gotoAndPlay((random(9) + 1) * 2); _parent.character.health -= pow; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _parent.character._x; _parent['s' + i]._y = _parent.character._y; } }; } else { stop(); laser.stop(); } } onClipEvent (enterFrame) { if (_name != 'enemyLaser') { if (_root.pause == false) { _x = _parent[master2][master]._x + _parent[master2]._x; _y = _parent[master2][master]._y + _parent[master2]._y; play(); laser.play(); } else { stop(); laser.stop(); if (_root.empMode == true) { _alpha = _alpha - 10; if (_alpha < 1) { removeMovieClip(''); } } } } } } instance flash of movieClip 1147 { onClipEvent (load) { stop(); i = 0; } onClipEvent (enterFrame) { if (_root.pause == false) { if (i == 1) { removeMovieClip(''); } i += 1; } } } instance reflectBullet of movieClip 1149 { onClipEvent (load) { if (_name != 'shrapnel') { t = 0; spark = function () { _root.sfx.gotoAndPlay((random(9) + 1) * 2); ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.spark, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.dmg, 's' + i, i); _parent['s' + i]._x = _x; _parent['s' + i]._y = _y; _parent['s' + i].dmg = '' + pow; _parent['s' + i].gotoAndStop(1); removeMovieClip(''); }; } else { stop(); } } onClipEvent (enterFrame) { if (_root.pause == false) { if (_name != 'reflectBullet') { _x = _x + xVel; _y = _y + yVel; _parent.col1(_x, _y, pow, _name); ++t; if (t > 40) { _alpha = _alpha - 30; if (_alpha < 1) { removeMovieClip(''); } } } } } } instance of movieClip 398 { onClipEvent (load) { if (_root.charUsed == 1) { gotoAndStop(1); } else { gotoAndStop(2); } xSpd = 0; flx = 1; fly = 0; fld = random(2); fld2 = random(2); flMax = 0.8; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; } onClipEvent (enterFrame) { if (_root.textBox._currentframe == 2) { if (active != false) { x = (_x - -200) / 10; if (Math.abs(x) > 0.5) { _x = _x - x; } else { active = false; } } } else { if (_root.complete._currentframe == 1) { _x = _x - (_x - 200) / 5; _y = _y - (_y - (140 - _parent._y)) / 10; float(); } else { _x = _x + xSpd; xSpd += 0.9; } } } } instance of movieClip 398 { onClipEvent (load) { if (_root.charUsed == 2) { gotoAndStop(1); } else { gotoAndStop(3); } xSpd = 0; flx = 0; fly = 0; fld = random(2); fld2 = random(2); flMax = 1; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; } onClipEvent (enterFrame) { if (_root.textBox._currentframe == 2) { if (active != false) { x = (_x - -200) / 10; if (Math.abs(x) > 0.5) { _x = _x - x; } else { active = false; } } } else { if (_root.complete._currentframe == 1) { _x = _x - (_x - 180) / 5; _y = _y - (_y - (260 - _parent._y)) / 10; float(); } else { _x = _x + xSpd; xSpd += 0.9; } } } } instance of movieClip 398 { onClipEvent (load) { if (_root.levelOn == 2) { gotoAndStop(4); isUsed = true; t = 0; } else { if (_root.levelOn == 4) { gotoAndStop(5); isUsed = true; t = 0; } else { if (_root.levelOn == 9) { gotoAndStop(6); isUsed = true; t = 0; } else { if (_root.levelOn == 16) { gotoAndStop(6); isUsed = true; t = 0; } } } } xSpd = 0; flx = 0; fly = 0; fld = random(2); fld2 = random(2); flMax = 1; float = function () { if (fld == 0) { flx += 0.1; if (flx > flMax) { fld = 1; } } else { flx -= 0.1; if (flx < -flMax) { fld = 0; } } if (fld2 == 0) { fly += 0.05; if (fly > flMax) { fld2 = 1; } } else { fly -= 0.05; if (fly < -flMax) { fld2 = 0; } } _x = _x + flx; _y = _y + fly; }; } onClipEvent (enterFrame) { if (isUsed == true) { if (_root.textBox._currentframe == 2) { if (active != false) { x = (_x - 900) / 10; if (Math.abs(x) > 0.5) { _x = _x - x; } else { active = false; } } } else { if (_root.textBox.end == true) { if (_root.complete._currentframe == 1) { _x = _x - (_x - 390) / 5; _y = _y - (_y - (230 - _parent._y)) / 10; float(); } else { _x = _x + xSpd; xSpd += 0.9; } ++t; if (t > 20) { ++_parent.character.i; i = _parent.character.i; duplicateMovieClip(_parent.explosion, 's' + i, i); _parent['s' + i]._x = _x + (random(70) - 35); _parent['s' + i]._y = _y + (random(30) - 15); _parent['s' + i]._xscale = 20 + random(30); _parent['s' + i]._yscale = _parent['s' + i]._xscale; t = 0; } } } } } } } movieClip 1173 { } movieClip 1175 { } movieClip 1176 { } movieClip 1178 { } movieClip 1180 { } movieClip 1181 { } movieClip 1182 { frame 1 { stop(); } frame 2 { _root.sfx.gotoAndPlay(64); } frame 11 { } frame 20 { t = 30; } frame 22 { stop(); } frame 67 { gotoAndStop(1); } frame 68 { _root.sfx.gotoAndPlay(62); } frame 133 { gotoAndStop(1); } frame 134 { _root.sfx.gotoAndPlay(62); } frame 152 { t = 30; } frame 154 { stop(); } frame 199 { gotoAndStop(1); } } instance newItem of movieClip 1182 { onClipEvent (load) { t = 0; } onClipEvent (enterFrame) { if (t > 0) { --t; if (t == 0) { play(); } } } } movieClip 1184 { } movieClip 1185 { } movieClip 1186 { } movieClip 1189 { } movieClip 1192 { } movieClip 1195 { } movieClip 1198 { } movieClip 1201 { } movieClip 1204 { } movieClip 1207 { } movieClip 1210 { } movieClip 1213 { } movieClip 1216 { } movieClip 1219 { } movieClip 1220 { frame 1 { stop(); } } movieClip 1223 { frame 1 { stop(); } instance char of movieClip 1220 { onClipEvent (enterFrame) { if (_x > 220) { x = (_x - 220) / 3; if (x > 0.5) { _x = _x - x; } else { _x = 220; } } } } instance of movieClip 184 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 10; } else { this.cacheAsBitmap = true; } } } } instance textBox of movieClip 1223 { onClipEvent (load) { charNameFun = function () { switch (this['m' + _root.levelOn + '_chars'][tOn]) { case 'Command': speech += 'Dimora Command: '; break; case 'Command2': speech += 'Clavius Tactical Command: '; break; case 'Command3': speech += 'Admiral Hall: '; break; case 'Command4': speech += 'Palmyra Tactical Command: '; break; case 'Command5': speech += 'El Dorado: '; break; case 'Command6': speech += 'Admiral Vukovich: '; break; default: speech += this['m' + _root.levelOn + '_chars'][tOn] + ': '; } }; charFun = function () { charNameFun(); lastFrame = char._currentframe; char.gotoAndStop(this['m' + _root.levelOn + '_chars'][tOn]); if (char._currentframe != lastFrame) { char._x = 380; } }; if (_root.levelScores[_root.levelOn - 1] == 0) { a = 0; while (a < 26) { this['m' + a] = new Object(); ++a; } stopLine = new Array(0, 12, 9, 8, 11, 10, 4, 3, 8, 5, 8, 7, 6, 2, 13, 6, 5, 4, 6, 9, 6, 5, 5, 5, 6, 1); stopLine2 = new Array(0, 16, 14, 13, 20, 17, 9, 6, 13, 9, 12, 11, 12, 5, 17, 10, 17, 13, 10, 11, 8, 8, 11, 9, 10, 1); m1_chars = new Array('Command', 'Clarke', 'Command', 'Clarke', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Mayday', 'Clarke', 'Command', 'Clarke', 'Command', 'Command'); m1.txt0 = 'Wing Five-Zero-One this is Tac-Com, acknowlege, over.'; m1.txt1 = 'Tac-Com this is Clarke of the Five-O-One, go ahead, over.'; m1.txt2 = 'Five-O-One we\'re getting reports of an unidentified vessel in sector two-seven-five. It\'s not answering our hails and there\'s no reply on the IFF. We need you to intercept and engage if intentions are hostile.'; m1.txt3 = 'Five-O-One acknowleged.'; m1.txt4 = 'Five-O-One train over to Index three-seven-niner.'; m1.txt5 = 'Affirmative.'; m1.txt6 = 'Roger.'; m1.txt7 = 'So, looks like we just may see some action.'; m1.txt8 = 'You\'re kidding yourself. It\'s probably just another shuttle with a blown Autonav.'; m1.txt9 = 'I wouldn\'t be so sure. That couldn\'t happen twice in the same week.'; m1.txt10 = 'Alright, put a sock in it, we\'re approaching target IP. Keep your eyes peeled.'; m1.txt11 = 'So much for that shuttle.'; m1.txt12 = 'Those tracers looked hostile to me. Lock and load, ladies!'; m1.txt13 = 'Tac-Com to Five-O-One. Request status, over.'; m1.txt14 = 'Five-O-One responding. We ran into some hostiles, but it was nothing we couldn\'t handle.'; m1.txt15 = 'Good work dusting the hostiles, we\'ve dispatched an Intel crew to the wreckage. We\'ll figure out who sent them.'; m1.txt16 = 'We\'re currently picking up another group of hostiles 300 clicks to your Sierra, also recieving distress signals from both moons, Clavius and Plinius. Leaving course of action to your discretion, five-o-one.'; m2_chars = new Array('Command', 'Clarke', 'Command', 'Clarke', 'Command', 'Clarke', 'Mayday', 'Hammett', 'Mayday', 'Clarke', 'Cruiser', 'Clarke', 'Cruiser', 'Clarke', 'Cruiser'); m2.txt0 = 'Tac-Com to Five-O-One, acknowlege.'; m2.txt1 = 'Still alive, Tac-Com. What\'s the story?'; m2.txt2 = 'We need you to proceed 700 clicks to your sierra-echo and rendezvous with a distress beacon from Wing Two-Seven-Four.'; m2.txt3 = 'An accident?'; m2.txt4 = 'Unknown. Satellite surveillance picked up heat plumes and smoke. We need you to see if anyone\'s still alive down there and get the story from them or their flight recorders.'; m2.txt5 = 'Five-O-One acknowledged, over.'; m2.txt6 = 'Sounds like they ran into more of our baddies.'; m2.txt7 = 'You think it\'s the Honba Fleet making a move?'; m2.txt8 = 'That thing looked way too advanced for Honba.'; m2.txt9 = 'We\'ll find out soon enough. Approaching waypoint. Standby.'; m2.txt10 = 'Five-O-One, this is Cruiser of Wing Two-Seven-Four, Boozer and Bruiser are down. I\'m lucky this crate floats.'; m2.txt11 = 'This is Clarke of Wing Five-Zero-One. Standby for pickup, over.'; m2.txt12 = 'We picked up a number of small, unidentified craft. We couldn\'t get a reply out of them, so we buzzed them to give them a little incentive, and they just opened fire on us.'; m2.txt13 = 'Were you able to determine an origin?'; m2.txt14 = 'Negative.'; m3_chars = new Array('Command', 'Clarke', 'Command', 'Clarke', 'Command', 'Mayday', 'Hammett', 'Command', 'Clarke', 'Command', 'Clarke', 'Command', 'Hammett', 'Mayday'); m3.txt0 = 'Tac-Com to Five-Zero-One, acknowledge, over.'; m3.txt1 = 'This is Five-O-One, I read you, Tac-Com.'; m3.txt2 = 'Five-O-One we\'re reading a bogey 100 clicks to your whiskey closing on your position.'; m3.txt3 = 'Another one?'; m3.txt4 = 'Negative, Five-O-One, your bogey is reading approximately two, check, three hundred meters wide.'; m3.txt5 = 'Negative visual contact, request confirmation on bearing.'; m3.txt6 = 'Contact, bearing two-five-zero, range three-zero clicks and closing.'; m3.txt7 = 'Five-Zero-One you are cleared hot, over.'; m3.txt8 = 'As fragged, Tac-com.'; m3.txt9 = 'Tac-Com to Five-O-One, satellite confirms bogey is splashed. Nice shooting. What\'s your status? Over.'; m3.txt10 = 'Fuel status is tiger. Ordnance is low, over.'; m3.txt11 = 'Roger, Five-O-One, proceed to Low-Orbit tanker Kilo Charlie One-Three for refuel and rearm. Will advise. Tac-Com out.'; m3.txt12 = 'We\'re in for a long night.'; m3.txt13 = 'Just think of the medals we\'ll be getting for this.'; m4_chars = new Array('Command', 'Clarke', 'Command', 'Clarke', 'Command2', 'Clarke', 'Command2', 'Command2', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Clarke', 'Halston', 'Mayday', 'Halston', 'Clarke', 'Mayday', 'Command2', 'Command2', 'Command2'); m4.txt0 = 'Five-O-One this is Tac-Com.'; m4.txt1 = 'Tac-Com, go ahead.'; m4.txt2 = 'We are transferring command of the wing to CTC. Good luck out there, Five-O-One.'; m4.txt3 = 'Five-O-One confirms.'; m4.txt4 = 'Fighter wing Five-Zero-One this is Clavius Tactical Command, acknowledge, over.'; m4.txt5 = 'Charlie-Tango-Charlie this is Five-O-One. Receiving transmission, over.'; m4.txt6 = 'Five-O-One we lost communication with Lansfield Command Center one hour ago.'; m4.txt7 = 'Satellites showed what appeared to be an enemy attack before the link was broken. We need you to ascertain the condition of Lansfield and, if possible, contact any remaining personnel.'; m4.txt8 = 'Five-O-One aye. En route to Lansfield, over.'; m4.txt9 = 'I didn\'t know babysitting hoppers was in our job description.'; m4.txt10 = 'I guess one sixth gravity really will make you soft.'; m4.txt11 = 'Cut the chatter, Five-O-One, approaching Lansfield.'; m4.txt12 = 'Check your fire, Lansfield! Check your fire! Wing Five-O-One is buddy spiked!'; m4.txt13 = 'This is Commander Halston to Five-O-One, holding fire.'; m4.txt14 = 'Good think you\'re a lousy shot, Halston.'; m4.txt15 = 'Mayday? I haven\'t seen you since the academy!'; m4.txt16 = 'Halston, activate your beacon and standby for pickup.'; m4.txt17 = 'I\'ll catch up with you later, Halston. We\'ve got work to do.'; m4.txt18 = 'Five-O-One this is CTC. We\'ve got new orders for you.'; m4.txt19 = 'Five-O-One we\'re reading a large enemy vessel between Clavius and Plinius, Intel also reports hostiles massing in low orbit over Lavicus, Admiral Hall has requested assistance for a pre-emptive strike.'; m4.txt20 = 'It\'s your call.'; m5_chars = new Array('Command2', 'Clarke', 'Command2', 'Clarke', 'Hammett', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Command2', 'Clarke', 'Command2', 'Clarke', 'Command2', 'Mayday', 'Hammett', 'Clarke', 'Command2'); m5.txt0 = 'Five---ne Ack-- CT- Ove-.'; m5.txt1 = 'CTC this is Five-O-One, boost your gain, over.'; m5.txt2 = 'Five-O-On-- Come i- intel reports hostil-- are intending to la--- a nu----- --apon, repeat, --stiles are ---end--- to -aunch a n--lear weapon!'; m5.txt3 = 'Five-O-One requesting alpha check.'; m5.txt4 = 'Clarke! I\'ve got a reading at intermoon Lagrange point!'; m5.txt5 = 'One of ours?'; m5.txt6 = 'Negative.'; m5.txt7 = 'What are your orders?'; m5.txt8 = 'CTC said something about a nuclear weapon. I\'ll bet that contact is it.'; m5.txt9 = 'Lau-- i- ----encing in -ive m--utes!'; m5.txt10 = 'Intercept bogey at intermoon Lagrange point under my authority. Throttle up to buster. Let\'s just hope I\'m right.'; m5.txt11 = 'Clavius Tactical Command to Five-O-One, come in, over.'; m5.txt12 = 'Five-O-One here. You enjoy the fireworks, CTC?'; m5.txt13 = 'Affirmative, Five-O-One. We owe you one.'; m5.txt14 = 'All in a day\'s work.'; m5.txt15 = 'Clarke, I\'m getting a distress signal from a science outpost near Plinius\' south pole.'; m5.txt16 = 'CTC, did you read that?'; m5.txt17 = 'Roger, Five-O-One, looks like you\'re the closest wing. Proceed and investigate, CTC out.'; m6_chars = new Array('Plinius', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Plinius', 'Clarke', 'Mayday', 'Hammett', 'Command2'); m6.txt0 = 'This is research station Galileo! We\'re under attack! Request assistance, over!'; m6.txt1 = 'This is fighter Wing Five-O-One. We\'re on approach, hang on down there, over.'; m6.txt2 = 'Isn\'t Galileo a civilian installation?'; m6.txt3 = 'Yeah, so whoever these baddies are, they\'re either not military, or they\'re ignoring the rules of engagement.'; m6.txt4 = 'Either way they\'re cannon fodder. Fingers on the triggers, gentlemen. Here they come.'; m6.txt5 = 'Thanks Five-O-One.'; m6.txt6 = 'Just doing our job, over.'; m6.txt7 = 'Serves them right for attacking civilians.'; m6.txt8 = 'Got that right.'; m6.txt9 = 'Five-O-One, Intel is reporting hostiles massing in low orbit over Lavicus, Admiral Hall has requested assistance for a pre-emptive strike.'; m7_chars = new Array('Command2', 'Clarke', 'Command2', 'Clarke', 'Clarke', 'Hammett', 'Mayday'); m7.txt0 = 'Five-O-One this is CTC, come in, over.'; m7.txt1 = 'Five-O-One, go ahead Clavius.'; m7.txt2 = 'The enemy presence is diminishing on Plinius. Clear out what\'s left of them and proceed on with your other assignments.'; m7.txt3 = 'Roger. Five-O-One out.'; m7.txt4 = 'Everyone still got all their fingers and toes?'; m7.txt5 = 'I\'m reading a severe lack of drink in my hand.'; m7.txt6 = 'I\'m missing a sofa, over.'; m8_chars = new Array('Command2', 'Command3', 'Clarke', 'Command3', 'Clarke', 'Hammett', 'Clarke', 'Mayday', 'Clarke', 'Command3', 'Mayday', 'Command3', 'Clarke', 'Hammett'); m8.txt0 = 'Five-O-One this is CTC. You\'re now in Lavicus airspace and Fleet Admiral Hall will take over from here. Good luck, Clavius Tactical Command, out.'; m8.txt1 = 'Wing Five-Zero-One this is Rear Admiral Hall. Respond, over.'; m8.txt2 = 'Hall, this is Five-O-One, coming through loud and clear, over.'; m8.txt3 = 'Five-O-One we\'ve got eyes on a group of hostile vessels massing in Seren\'s EMP storm. We need you to take them out before they make their move. Transmitting mission data now, over.'; m8.txt4 = 'Five-O-One aye.'; m8.txt5 = 'Is he serious?'; m8.txt6 = 'Admirals aren\'t known for their humor.'; m8.txt7 = 'Three fighters against all of that?'; m8.txt8 = 'Throttle up, ladies. Get ready for one serious fight.'; m8.txt9 = 'Five-O-One, come in. We just got the word from that bogey you splashed back home. Intelligence reports the craft is of non-human origin. Repeat, non-human origin.'; m8.txt10 = 'And here I thought our first alien contact would be a jolly affair.'; m8.txt11 = 'Continue to mop up remaining hostiles in your area, or proceed on to Palmyra air space.'; m8.txt12 = 'Roger. Five-O-One out.'; m8.txt13 = 'Let\'s go E.T. hunting.'; m9_chars = new Array('Command3', 'Clarke', 'Command3', 'Clarke', 'Mayday', 'Hammett', 'Dagger', 'Clarke', 'Hammett', 'Clarke'); m9.txt0 = 'Five-Zero-One this is Hall, come in, over.'; m9.txt1 = 'Hall, this is Five-O-One. We\'re returning to base, over.'; m9.txt2 = 'That\'s a negative, Five-Zero-One. We need you to locate an Intel officer and get him off-planet before his heat shield fails. Transmitting his last known coordinates now.'; m9.txt3 = 'Looks like we\'re rescuing a government spook.'; m9.txt4 = 'So that\'s a no on the couch, then.'; m9.txt5 = 'There\'s enough sweat in my G-Suit to float a schooner.'; m9.txt6 = 'Five-Zero-One this is Dagger, I appreciate the pickup. Would have been one crispy critter if it weren\'t for you guys.'; m9.txt7 = 'Dagger, Five-O-One here. Not a problem. Standby for transport to Intel outpost Cloak.'; m9.txt8 = 'So where is that, anyway?'; m9.txt9 = 'Looks like it\'s on Palmyra.'; m10_chars = new Array('Command4', 'Clarke', 'Command4', 'Clarke', 'Hammett', 'Mayday', 'Command4', 'Hammett', 'Clarke', 'Clarke', 'Hammett', 'Mayday', 'Clarke'); m10.txt0 = 'Five-Zero-One this is Palmyra Tactical Command, report.'; m10.txt1 = 'Five-O-One, combat-ready, over.'; m10.txt2 = 'Five-Zero-One depart from Cloak immediately. Set course for grid reference five-four niner-zero, Priority One.'; m10.txt3 = 'Roger.'; m10.txt4 = 'No relief yet?'; m10.txt5 = 'I suppose not.'; m10.txt6 = 'Hostile nuclear device located at five-four niner-zero, detonation eminent. Intercept and prevent detonation, Five-Zero-One, PTC out.'; m10.txt7 = 'They\'re targeting civilians, this is sick.'; m10.txt8 = 'Full-throttle. Let\'s make them eat that bomb.'; m10.txt9 = 'Well, they ate it.'; m10.txt10 = 'And then some.'; m10.txt11 = 'When will they learn, they can\'t get away with trying to use one of those.'; m10.txt12 = 'They really should pay more attention to who\'s shooting at them.'; m11_chars = new Array('Command4', 'Clarke', 'Command4', 'Clarke', 'Command4', 'Hammett', 'Mayday', 'Clarke', 'Mayday', 'Hammett', 'Mayday', 'Clarke'); m11.txt0 = 'Five-Zero-One this is PTC, what is the wing\'s condition?'; m11.txt1 = 'Five-O-One, still here, PTC.'; m11.txt2 = 'Five-Zero-One, are your fighters damaged, over.'; m11.txt3 = 'Just a few dings, fully operational.'; m11.txt4 = 'Acknowledged, Five-Zero-One, proceed to grid reference five-three two-eight. Large hostile sighted. Appears to be a control ship, intercept and engage, over.'; m11.txt5 = 'Nothing about us, huh?'; m11.txt6 = 'You know the Palmyrans. Deep down they\'re all robots.'; m11.txt7 = 'You know that\'s never been proven, Mayday.'; m11.txt8 = 'Chalk another one up for robot-kind.'; m11.txt9 = 'You mean chalk another one up for us.'; m11.txt10 = 'I mean we\'re at the mercy of machines.'; m11.txt11 = 'Now, now. These machines owe us. We\'ll get our dues soon enough.'; m12_chars = new Array('Command4', 'Clarke', 'Command4', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Clarke', 'Hammett', 'Mayday', 'Hammett', 'Clarke', 'Command4'); m12.txt0 = 'Five-Zero-One this is PTC, come in, over.'; m12.txt1 = 'Five-O-One here.'; m12.txt2 = 'Five-Zero-One we need you to mop up remaining enemy forces. When area is secured report to airbase two-seven for relief, over.'; m12.txt3 = 'That\'s a big affirmative, PTC. Five-O-One out.'; m12.txt4 = 'I hear these Palmyran air bases are real plush, too.'; m12.txt5 = 'I bet they even have real coffee.'; m12.txt6 = 'Don\'t get your hopes up.'; m12.txt7 = 'They\'re running.'; m12.txt8 = 'Let them go, we\'ve done enough.'; m12.txt9 = 'It shouldn\'t be too much trouble to just get rid of them.'; m12.txt10 = 'Clarke, what do you think?'; m12.txt11 = 'What difference will it make if we stay out here a few more minutes. They\'re heading for Luna, let\'s bag \'em there. PTC, this is Five-O-One, permission to pursue enemy forces to Luna, over.'; m12.txt12 = 'Five-Zero-One, this is PTC, permission granted, over.'; m13_chars = new Array('Clarke', 'Hammett', 'Mayday', 'Mayday', 'Hammett', 'Clarke'); m13.txt0 = 'There they are. Lock on.'; m13.txt1 = 'Look alive fellas!'; m13.txt2 = 'Lets roast \'em.'; m13.txt3 = 'Looks like Luna\'s got it\'s self some new craters.'; m13.txt4 = 'The bits of twisted metal add distinction, I think.'; m13.txt5 = 'We should blow things up more often.'; m14_chars = new Array('Command3', 'Clarke', 'Command3', 'Clarke', 'Command3', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Hammett', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Clarke', 'Mayday', 'Hammett', 'Clarke'); m14.txt0 = 'Five-Zero-One, you are now in Kuura airspace. This is Admiral Hall, acknowledge, over.'; m14.txt1 = 'Five-O-One here. Awaiting instruction.'; m14.txt2 = 'We\'re showing an enemy presence north of your position, they\'re in the atmosphere at present. We need you to intercept and engage if they turn out to be more of these hostiles.'; m14.txt3 = 'Uhh, Five-O-One here, we\'re far from fresh here. Request alternate wing carries out mission, over.'; m14.txt4 = 'Negative, Five-Zero-One, proceed with mission or you will be court-martialed. Have I made myself clear?'; m14.txt5 = 'Affirmative, Admiral. Wilco.'; m14.txt6 = 'Are we at war?'; m14.txt7 = 'Seems obvious.'; m14.txt8 = 'If we knew who to declare war against.'; m14.txt9 = 'And somehow we\'re tasked with defending the whole system.'; m14.txt10 = 'Look on the bright side, Hammett, at least you can cool off here.'; m14.txt11 = 'Oh, I\'m cool alright. My boots are frozen to the pedals!'; m14.txt12 = 'Lucky you, my air con is jammed on full cold.'; m14.txt13 = 'Can it, you two. I\'ve got several contacts emerging from re-entry. Lock and load!'; m14.txt14 = 'What\'s everyone\'s status?'; m14.txt15 = 'My air con got knocked loose again, but it\'s not doing much.'; m14.txt16 = 'And my feet are still frozen.'; m14.txt17 = 'At least we\'re better off than the hostiles.'; m15_chars = new Array('Command3', 'Clarke', 'Command3', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Mayday'); m15.txt0 = 'Five-Zero-One this is Hall.'; m15.txt1 = 'Five-O-One to Hall, acknowleged.'; m15.txt2 = 'We\'ve got another large contact in your vicinity. According to intel it\'s a command ship, take it out and sever local enemy communications, over.'; m15.txt3 = 'Five-O-One acknowledged.'; m15.txt4 = 'Where\'s the moon guy? I wouldn\'t mind so much if the guy giving orders didn\'t have a stick up his...'; m15.txt5 = 'Contact at bearing zero-niner-zero, range, fifteen clicks.'; m15.txt6 = 'Good eye, Mayday. Let\'s go to work.'; m15.txt7 = 'I wonder if that debris will cause an avalanche.'; m15.txt8 = 'I wouldn\'t worry about it.'; m15.txt9 = 'There\'s nothing down there for it to destroy anyway.'; m15.txt10 = 'Probably true.'; m16_chars = new Array('Sidewinder', 'Clarke', 'Sidewinder', 'Clarke', 'Mayday', 'Clarke', 'Sidewinder', 'Clarke', 'Command3', 'Hammett', 'Clarke', 'Command3', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Hammett', 'Mayday'); m16.txt0 = 'This is Sidewinder of Wing Five-Zero-Two calling Kurra Air Command, over.'; m16.txt1 = 'Sidewinder this is Clarke of Wing Five-O-One. Report status, over.'; m16.txt2 = 'Clarke, I\'ll take back everything I ever said about your wing if you give me a hand. This place is crawling with hostiles, and apparently it takes more than a pistol to knock them down.'; m16.txt3 = 'Affirmative, Sidewinder. Sit tight, we\'re on our way.'; m16.txt4 = 'Sidewinder, didn\'t she get that name from a crash?'; m16.txt5 = 'Sure did. In my T-32. Used to be Needles before then.'; m16.txt6 = 'Never thought I\'d catch myself saying this, but thanks, Clarke. You saved my skin.'; m16.txt7 = 'Remember that next time I send you a repair bill, Needles.'; m16.txt8 = 'Five-Zero-One this is Hall, acknowledge, over.'; m16.txt9 = 'Not this again.'; m16.txt10 = 'Five-O-One here, go ahead, Admiral.'; m16.txt11 = 'We\'re detecting a large amount of enemy activity on Kuura\'s moon, Boreas. Satellite scans show an enemy base has been erected. We need you to destroy it.'; m16.txt12 = 'Roger, transmit coordinates.'; m16.txt13 = 'All this zero-G nonsense is going to make me lose my lunch.'; m16.txt14 = 'That reminds me, I\'m getting hungry.'; m16.txt15 = 'Pop open your calorie-packs, assuming they\'re not frozen.'; m16.txt16 = 'No such luck, Clarke.'; m16.txt17 = 'I don\'t think the engineers had dinner in mind when the built these fighters.'; m17_chars = new Array('Command3', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Command6', 'Clarke', 'Command6', 'Clarke', 'Hammett', 'Mayday', 'Command6', 'Mayday', 'Clarke', 'Command5', 'Clarke', 'Command5', 'Clarke'); m17.txt0 = 'Five-Zero-One this is Admiral Hall. Eliminate enemy forces on Boreas.'; m17.txt1 = 'Five-O-One acknowleged. We\'re on it.'; m17.txt2 = 'Let\'s eat the hostiles.'; m17.txt3 = 'Well, they would have plenty of iron.'; m17.txt4 = 'Think about food later, we\'ve got incoming.'; m17.txt5 = 'Wing Five-Zero-One, this is Vice Admiral Vukovich of the Carrier Acheron, over.'; m17.txt6 = 'Five-O-One acknowledged.'; m17.txt7 = 'Admiral Hall has been relieved of command. Report to Kuura low orbit station Alpha-Seven for refueling.'; m17.txt8 = 'Five-O-One, affirmative, we\'re on our way.'; m17.txt9 = 'Relieved?'; m17.txt10 = 'He\'s not a wartime Admiral, I suppose.'; m17.txt11 = 'Civilian mining operation in the Pallas Asteroid Belt is requesting support. Five-O-One, you\'re closest wing. Transferring command to civilian operation. Vukovich, out.'; m17.txt12 = 'Civilian operation?'; m17.txt13 = 'I\'m as confused as you are.'; m18_chars = new Array('Command6', 'Clarke', 'Command6', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Clarke', 'Hammett', 'Mayday', 'Clarke'); m18.txt0 = 'Five-O-One, this is Vukovich, acknowlege.'; m18.txt1 = 'Five-O-One here, go ahead, Admiral.'; m18.txt2 = 'We still have a number of hostiles on our scopes, Five-O-One, your directive is to mop up remaining hostiles on Boreas.'; m18.txt3 = 'Five-O-One acknowleged.'; m18.txt4 = 'Pesky little buggers, aren\'t they?'; m18.txt5 = 'Don\'t they know they can run, but they can\'t hide?'; m18.txt6 = 'Doesn\'t look like they\'re hiding to me. Safeties off, gentlemen.'; m18.txt7 = 'Anyone see anything else?'; m18.txt8 = 'Just wreckage, boss.'; m18.txt9 = 'My scope\'s clear.'; m18.txt10 = 'Right, then. Let\'s move on.'; m19_chars = new Array('Command5', 'Clarke', 'Command5', 'Clarke', 'Command5', 'Clarke', 'Command5', 'Hammett', 'Mayday', 'Clarke', 'Command5', 'Clarke'); m19.txt0 = 'Five-O-One this is Ishi Minerals Corporation outpost El Dorado, come in, over.'; m19.txt1 = 'Five-O-One acknowledged. Go ahead, El Dorado.'; m19.txt2 = 'Five-O-One we\'ve got a number of ships hiding in the asteroids. They\'re shooting at anything that gets close. We need you to root them out so we can get back to work, over.'; m19.txt3 = 'Five-O-One affirmative. Transmit coordinates.'; m19.txt4 = 'What?'; m19.txt5 = 'Where are they, El Dorado?'; m19.txt6 = 'Standby. We\'ll send up a flare, over.'; m19.txt7 = 'Wow, that\'s high-tech.'; m19.txt8 = 'They\'re just using what\'s available. They\'re miners, after all, not soldiers.'; m19.txt9 = 'There it is, lock onto the flare and watch out. Things can get pretty tight in here.'; m19.txt10 = 'Five-O-One thanks for the help. Thought we were in deep trouble this time.'; m19.txt11 = 'Not a problem, El Dorado'; m20_chars = new Array('Command5', 'Clarke', 'Command5', 'Clarke', 'Mayday', 'Clarke', 'Hammett', 'Command5', 'Clarke'); m20.txt0 = 'Five-O-One we\'re picking up another group of unidentified vessels on our monitors.'; m20.txt1 = 'Acknowleged, El Dorado, request alpha check, over.'; m20.txt2 = 'Alpha what?'; m20.txt3 = 'I mean, send up another flare. We\'ll clear them out.'; m20.txt4 = 'Bit of a switch for you, Clarke?'; m20.txt5 = 'I\'m used to Admirals.'; m20.txt6 = 'I see the flare, let\'s get \'em!'; m20.txt7 = 'That was some fancy shooting, Five-O-One.'; m20.txt8 = 'That\'s why they sent us.'; m21_chars = new Array('Command5', 'Clarke', 'Mayday', 'Clarke', 'Hammett', 'Mayday', 'Hammett', 'Mayday', 'Clarke'); m21.txt0 = 'Five-O-One, we\'ve got em on the run. Now we just need to make sure they never come back.'; m21.txt1 = 'Roger that.'; m21.txt2 = 'There they are, up ahead.'; m21.txt3 = 'You heard the man, make them scatter.'; m21.txt4 = 'You got it, boss.'; m21.txt5 = 'Roger.'; m21.txt6 = 'You think they\'re scattered enough?'; m21.txt7 = 'I don\'t know, there are still some pretty big pieces of them.'; m21.txt8 = 'We\'ll use those for target practice on the way back. Or just let El Dorado sell them for scrap.'; m22_chars = new Array('Command6', 'Clarke', 'Command6', 'Clarke', 'Command6', 'Clarke', 'Command6', 'Clarke', 'Command6', 'Clarke', 'Hammett', 'Mayday'); m22.txt0 = 'Wing Five-Zero-One acknowlege, over.'; m22.txt1 = 'Five-O-One reporting in.'; m22.txt2 = 'Five-Zero-One this is Vukovich. We\'ve routed the enemy outside of the asteroid belt. We\'re making one final push. Transmitting their coordinates to your wing now.'; m22.txt3 = 'Five-O-One confirms. Downloading data now.'; m22.txt4 = 'I know you must be tired, but we need you to keep at it for a while longer. We need to let them know they\'re not welcome in our solar system!'; m22.txt5 = 'Roger, Admiral. We\'ll make the message clear.'; m22.txt6 = 'Five-O-One, this is Vukovich, acknowlege, over.'; m22.txt7 = 'Five-O-One, go ahead, Admiral.'; m22.txt8 = 'Our scopes are reading all hostiles in your vicinity have been eliminated. Good work.'; m22.txt9 = 'That\'s what we\'re here for.'; m22.txt10 = 'What could be next?'; m22.txt11 = 'Don\'t ask.'; m23_chars = new Array('Command6', 'Clarke', 'Mayday', 'Hammett', 'Clarke', 'Mayday', 'Command6', 'Clarke', 'Command6', 'Clarke'); m23.txt0 = 'Five-O-One, looks like you\'ve got all the luck. We\'ve located the hostile\'s primary command ship, and it\'s in your vicinity. I don\'t think I have to tell you what you need to do.'; m23.txt1 = 'Affirmative, Admiral, Five-O-One out.'; m23.txt2 = 'One more, just one more.'; m23.txt3 = 'You think we\'ll get promotions for this?'; m23.txt4 = 'With all we\'ve been through, I\'m counting on Admiral.'; m23.txt5 = 'I\'ll be happy if they give me a cup of tea.'; m23.txt6 = 'Five-O-One, this is Vukovich, come in.'; m23.txt7 = 'Five-O-One, still in one piece, Admiral.'; m23.txt8 = 'Outstanding job, Five-O-One. Couldn\'t have done a better job myself.'; m23.txt9 = 'Glad to hear it, Admiral.'; m24_chars = new Array('Command6', 'Clarke', 'Command6', 'Clarke', 'Hammett', 'Mayday', 'Clarke', 'Command6', 'Clarke', 'Command6', 'Clarke'); m24.txt0 = 'Five-O-One this is Vukovich.'; m24.txt1 = 'Reading you Vukovich.'; m24.txt2 = 'Five-O-One we\'re reading something else out there. Our sensor scans are unable to determine nature of object. Investigate, and if it\'s another hostile, destroy it, over.'; m24.txt3 = 'Five-O-One acknowledged.'; m24.txt4 = 'It looks big, but I can\'t get any other data.'; m24.txt5 = 'It\'s interference from the Oort Cloud. We\'re lucky we can even see it.'; m24.txt6 = 'Well, whatever it is, it\'s getting in the way of shore leave.'; m24.txt7 = 'Five-O-One this is Vukovich. Fine job on the hostiles.'; m24.txt8 = 'Five-O-One, much obliged, Admiral.'; m24.txt9 = 'Report to carrier Acheron for debriefing. You\'ve got some celebrating to do.'; m24.txt10 = 'Affirmative, setting course to rendezvous with Acheron. Wing Five-Zero-One, signing off.'; m25_chars = new Array('Command6', 'COM'); m25.txt0 = 'There\'s something else out there...'; m25.txt1 = '---TRANSMISSION ENDED---'; tOn = 0; t = 0; speech = ''; charFun(); kReady = true; delay = 0; end = false; } else { gotoAndStop(2); _parent.game.ene1.go = true; } doEnd = function () { if (_root.levelScores[_root.levelOn - 1] == 0) { _root.music.mySound.stop(); _root.music.gotoAndPlay(18); end = true; tOn = stopLine[_root.levelOn] + 1; if (tOn <= stopLine2[_root.levelOn]) { t = 0; speech = ''; charFun(); } else { gotoAndStop(2); _root.complete.play(); } } else { gotoAndStop(2); _root.complete.play(); _root.music.mySound.stop(); getLevelMusic(); } }; stopAllSounds(); _root.music.fadeOut = false; getLevelMusic = function () { switch (_root.levelOn) { case 1: _root.music.gotoAndPlay(4); break; case 2: _root.music.gotoAndPlay(4); break; case 3: _root.music.gotoAndPlay(4); break; case 4: _root.music.gotoAndPlay(6); break; case 5: _root.music.gotoAndPlay(6); break; case 6: _root.music.gotoAndPlay(6); break; case 7: _root.music.gotoAndPlay(6); break; case 8: _root.music.gotoAndPlay(8); break; case 9: _root.music.gotoAndPlay(8); break; case 10: _root.music.gotoAndPlay(10); break; case 11: _root.music.gotoAndPlay(10); break; case 12: _root.music.gotoAndPlay(10); break; case 13: _root.music.gotoAndPlay(6); break; case 14: _root.music.gotoAndPlay(12); break; case 15: _root.music.gotoAndPlay(12); break; case 16: _root.music.gotoAndPlay(12); break; case 17: _root.music.gotoAndPlay(6); break; case 18: _root.music.gotoAndPlay(6); break; case 19: _root.music.gotoAndPlay(14); break; case 20: _root.music.gotoAndPlay(14); break; case 21: _root.music.gotoAndPlay(14); break; case 22: _root.music.gotoAndPlay(16); break; case 23: _root.music.gotoAndPlay(16); break; case 24: _root.music.gotoAndPlay(16); break; case 25: _root.music.gotoAndPlay(16); } }; if (_currentframe == 1) { _root.music.gotoAndPlay(18); } else { getLevelMusic(); } } onClipEvent (enterFrame) { if (_currentframe == 1 && _visible == true) { a = 0; while (a < 2) { if (t < this['m' + _root.levelOn]['txt' + tOn].length) { speech += this['m' + _root.levelOn]['txt' + tOn].charAt(t); _root.sfx.gotoAndPlay(60); ++t; } else { ++delay; } ++a; } if (Key.isDown(65) && kReady == true) { kReady = false; if (delay < 10) { speech = ''; charNameFun(); speech += this['m' + _root.levelOn]['txt' + tOn]; t = 10000000000.0; delay = 100; } else { delay = 0; speech = ''; ++tOn; t = 0; if (end == false) { if (tOn <= stopLine[_root.levelOn]) { charFun(); } else { gotoAndStop(2); _parent.game.ene1.go = true; _root.music.mySound.stop(); getLevelMusic(); } } else { if (tOn <= stopLine2[_root.levelOn]) { charFun(); } else { _visible = false; _root.music.mySound.stop(); getLevelMusic(); _root.complete.play(); } } } } if (!Key.isDown(65)) { kReady = true; } if (Key.isDown(68)) { if (end == false) { tOn = stopLine[_root.levelOn]; gotoAndStop(2); _parent.game.ene1.go = true; } else { tOn = stopLine2[_root.levelOn]; _visible = false; _root.complete.play(); } _root.music.mySound.stop(); getLevelMusic(); } } } } instance soundMan of movieClip 220 { onClipEvent (load) { t = 0; } onClipEvent (enterFrame) { if (Key.isDown(77) && kReady == true) { kReady = false; _root.muteFun(); } if (!Key.isDown(77)) { kReady = true; } if (t > 0) { --t; } else { _parent.soundText = ''; } } } movieClip 1228 { } button 1233 { on (release) { recycle(); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } movieClip 1234 { frame 1 { recycle = function () { if (_root.game.character.recycledItems >= 5) { rareFun = function () { if (rNum > _root.maxRare) { itemFun(); } else { if (rNum > 0) { r0 = 0; a = 0; while (a < rNum) { r0 += random(2); ++a; } if (r0 < rNum) { itemFun(); } } } }; itemFun = function () { c = random(2) + 1; if (c == 1) { itemID = 'wep' + (random(_root.wepMax) + 1); rNum = _root[itemID].stats[4]; gotoAndStop(1); rareFun(); } else { itemID = 'emp' + (random(_root.empMax) + 1); rNum = _root[itemID].stats[4]; gotoAndStop(2); rareFun(); } }; itemFun(); _root.game.character.inventory.push(itemID); _root.game.character.recycledItems -= 5; _parent.writeStats(); _parent.writeItems_all(); } }; } } movieClip 1241 { } movieClip 1242 { } movieClip 1249 { frame 1 { stop(); } } button 1253 { on (release) { equip(); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1257 { on (release) { recycleItems(); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } movieClip 1259 { } button 1265 { on (release) { writeItemStats(+stLine); } on (rollOver) { yP = 0; _root.sfx.gotoAndPlay(60); } } button 1266 { on (release) { writeItemStats(1 + stLine); } on (rollOver) { yP = 1; _root.sfx.gotoAndPlay(60); } } button 1267 { on (release) { writeItemStats(2 + stLine); } on (rollOver) { yP = 2; _root.sfx.gotoAndPlay(60); } } button 1268 { on (release) { writeItemStats(3 + stLine); } on (rollOver) { yP = 3; _root.sfx.gotoAndPlay(60); } } button 1269 { on (release) { writeItemStats(4 + stLine); } on (rollOver) { yP = 4; _root.sfx.gotoAndPlay(60); } } button 1270 { on (release) { writeItemStats(5 + stLine); } on (rollOver) { yP = 5; _root.sfx.gotoAndPlay(60); } } button 1271 { on (release) { writeItemStats(6 + stLine); } on (rollOver) { yP = 6; _root.sfx.gotoAndPlay(60); } } button 1272 { on (release) { writeItemStats(7 + stLine); } on (rollOver) { yP = 7; _root.sfx.gotoAndPlay(60); } } button 1274 { on (press) { stLine += 1; if (stLine > maxLines) { stLine = maxLines; } this['writeItems_' + itemGroup](); } } button 1275 { on (press) { stLine -= 1; if (stLine < 0) { stLine = 0; } this['writeItems_' + itemGroup](); } } movieClip 1283 { frame 1 { stop(); } } movieClip 1284 { } button 1288 { on (release) { recycleDuplicates(); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1292 { on (release) { gotoAndStop(5); } on (rollOver) { yP = 14; _root.sfx.gotoAndPlay(60); } } button 1296 { on (release) { _root.pause = false; gotoAndStop(1); } on (rollOver) { yP = 15; _root.sfx.gotoAndPlay(60); } } button 1300 { on (release) { getURL(_root.siteURL2, _blank); } on (rollOver) { yP = 13; _root.sfx.gotoAndPlay(60); } } button 1301 { on (release) { writeItemStats(8 + stLine); } on (rollOver) { yP = 8; _root.sfx.gotoAndPlay(60); } } button 1305 { on (release) { getURL(_root.siteURL1, '_blank'); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } movieClip 1311 { } movieClip 1312 { instance of movieClip 1311 { onClipEvent (press) { startDrag(this, true, 0, 0, 300, 0); go = true; } onClipEvent (release, releaseOutside) { stopDrag(); go = false; } onClipEvent (load) { go = false; _x = _root.music.setVol * 3; } onClipEvent (enterFrame) { if (go == true) { _root.music.setVol = _x / 3; _root.music.vol = _x / 3; } } } } movieClip 1313 { instance of movieClip 1311 { onClipEvent (press) { startDrag(this, true, 0, 0, 300, 0); go = true; } onClipEvent (release, releaseOutside) { stopDrag(); go = false; } onClipEvent (load) { go = false; _x = _root.sfx.setVol * 3; t = 0; } onClipEvent (enterFrame) { if (go == true) { _root.sfx.setVol = _x / 3; _root.sfx.vol = _x / 3; _root.sfx2.setVol = _x / 3; _root.sfx2.vol = _x / 3; ++t; if (t > 8) { t = 0; _root.sfx.gotoAndPlay(2); } } } } } button 1318 { on (release) { if (_root._quality == 'HIGH') { _root._quality = 'MEDIUM'; qual = 'Medium'; trace('did'); } else { if (_root._quality == 'MEDIUM') { _root._quality = 'LOW'; qual = 'Low'; trace('did'); } else { if (_root._quality == 'LOW') { _root._quality = 'HIGH'; qual = 'High'; trace('did'); } } } } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1322 { on (release) { _root.pause = false; gotoAndStop(2); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1326 { on (release) { getURL(_root.siteURL3, '_blank'); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1330 { on (release) { _root.music.mySound.stop(); _root.stopAllSounds(); _root.gotoAndStop('levelSelect'); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } button 1334 { on (release) { _root.music.mySound.stop(); _root.stopAllSounds(); _root.gotoAndStop('charSelect'); } on (rollOver) { _root.sfx.gotoAndPlay(60); } } movieClip 1335 { frame 1 { stop(); } frame 4 { yP = 0; stLine = 0; itemGroup = 'all'; itemStatsListDefault = '<b>Select an item from the inventory to view more information about it.</b>'; orderItems = function () { a = 0; while (a < 6) { this['stars' + a] = new Array(); ++a; } a = 0; while (a < _root.game.character.inventory.length) { n = _root[_root.game.character.inventory[a]].stats[4]; this['stars' + n].push(_root.game.character.inventory[a]); ++a; } _root.game.character.inventory = new Array(); a = 5; while (a > -1) { b = 0; while (b < this['stars' + a].length) { _root.game.character.inventory.push(this['stars' + a][b]); ++b; } --a; } }; writeItems_all = function () { _root.game.character.makeLists(); trace(_root.game.character.inventory.length); orderItems(); trace(_root.game.character.inventory.length); maxLines = _root.game.character.inventory.length - 9; if (maxLines < 0) { maxLines = 0; scroller1._visible = false; scroller2._visible = false; sb._visible = false; } else { if (maxLines > 0) { scroller1._visible = true; scroller2._visible = true; sb._visible = true; } else { scroller1._visible = false; scroller2._visible = false; sb._visible = false; } } itemList = ''; lines = 0; endLine = stLine + 9; a = stLine; while (a < endLine) { if (_root[_root.game.character.inventory[a]].name != undefined) { itemList += _root[_root.game.character.inventory[a]].name + '\n'; } ++a; } line.gotoAndStop(1); itemListTitle = 'Inventory: All'; itemStatsList = itemStatsListDefault; sb._y = -80 + (stLine / maxLines) * 84; if (sb._y > 4) { sb._y = 4; } }; writeItems_all(); writeStats = function () { _root.game.character.calculate_stats(); stat = ''; stat += 'Level: ' + _root.game.character.lvl + '\n'; stat += 'HP: ' + _root.game.character.maxHealth + '\n'; stat += 'ATP: ' + _root.game.character.dmg + '\n'; tempRof = Math.round((30 / _root.game.character.rof) * 10) / 10; stat += 'RoF: ' + tempRof + ' /Sec.' + '\n'; stat += 'ACC: ' + _root.game.character.acc + ':1' + '\n'; stat += 'LCK: ' + _root.game.character.crit + ':1' + '\n'; if (_root.game.character.shield_type == 1) { stat += 'EMP ATP: ' + _root.game.character.empDamage + '\n'; } else { stat += 'Shield ATP: ' + _root.game.character.shieldATP + '\n'; } stat += 'Shield DUR: ' + _root.game.character.shieldDuration + '\n'; equippedWpn = 'Weapon: ' + _root[_root.game.character.equipped].name + '\n'; equippedWpn += 'Shield: ' + _root[_root.game.character.empEquipped].name; }; writeStats(); } frame 4 { writeItemStats = function (ln) { itemStatsList = '<b>'; itemID = _root.game.character.inventory[ln]; goodColor = '617BB8'; badColor = 'FF0000'; if (_root[itemID].name != undefined) { if (itemID.charAt(0) == 'w') { itemStatsList += _root[itemID].name + '\n' + '\n'; additionalStat = new Array(0, 0, 0, 0); a = 0; while (a < 4) { additionalStat[a] = _root[itemID].stats2[a] - _root[_root.game.character.equipped].stats2[a]; ++a; } itemStatsList += _root[itemID].description + '\n' + '\n'; itemStatsList += 'Bullets Per Shot: ' + _root[itemID].stats[1] + '\n'; if (additionalStat[0] > 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'ATP: ' + _root[itemID].stats2[0] + ' (+' + additionalStat[0] + ')' + '</font>' + '\n'; } else { if (additionalStat[0] < 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'ATP: ' + _root[itemID].stats2[0] + ' (' + additionalStat[0] + ')' + '</font>' + '\n'; } else { itemStatsList += 'ATP: ' + _root[itemID].stats2[0] + ' (' + additionalStat[0] + ')' + '\n'; } } if (additionalStat[1] > 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'ACC: ' + _root[itemID].stats2[1] + ' (+' + additionalStat[1] + ')' + '</font>' + '\n'; } else { if (additionalStat[1] < 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'ACC: ' + _root[itemID].stats2[1] + ' (' + additionalStat[1] + ')' + '</font>' + '\n'; } else { itemStatsList += 'ACC: ' + _root[itemID].stats2[1] + ' (' + additionalStat[1] + ')' + '\n'; } } if (additionalStat[2] > 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'ROF: ' + _root[itemID].stats2[2] + ' (+' + additionalStat[2] + ')' + '</font>' + '\n'; } else { if (additionalStat[2] < 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'ROF: ' + _root[itemID].stats2[2] + ' (' + additionalStat[2] + ')' + '</font>' + '\n'; } else { itemStatsList += 'ROF: ' + _root[itemID].stats2[2] + ' (' + additionalStat[2] + ')' + '\n'; } } if (additionalStat[3] > 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'LCK: ' + _root[itemID].stats2[3] + ':1 (+' + additionalStat[3] + ':1)' + '</font>' + '\n'; } else { if (additionalStat[3] < 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'LCK: ' + _root[itemID].stats2[3] + ':1 (' + additionalStat[3] + ':1)' + '</font>' + '\n'; } else { itemStatsList += 'LCK: ' + _root[itemID].stats2[3] + ':1 (' + additionalStat[3] + ':1)' + '\n'; } } } else { itemStatsList += _root[itemID].name + '\n' + '\n'; itemStatsList += _root[itemID].description + '\n' + '\n'; additionalStat = new Array(0, 0, 0); additionalStat[0] = _root[itemID].stats[1] - _root[_root.game.character.empEquipped].stats[1]; additionalStat[1] = _root[itemID].stats[2] - _root[_root.game.character.empEquipped].stats[2]; additionalStat[2] = _root[itemID].stats[3] - _root[_root.game.character.empEquipped].stats[3]; if (_root[itemID].stats[0] == 1) { itemStatsList += 'Shield Type: Absorb\r'; if (_root[_root.game.character.empEquipped].stats[0] == 1) { if (additionalStat[0] > 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'EMP Cost: ' + _root[itemID].stats[1] + ' (+' + additionalStat[0] + ')' + '</font>' + '\n'; } else { if (additionalStat[0] < 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'EMP Cost: ' + _root[itemID].stats[1] + ' (' + additionalStat[0] + ')' + '</font>' + '\n'; } else { itemStatsList += 'EMP Cost: ' + _root[itemID].stats[1] + ' (' + additionalStat[0] + ')' + '\n'; } } } else { itemStatsList += 'EMP Cost: ' + _root[itemID].stats[1] + '\n'; } if (_root[_root.game.character.empEquipped].stats[0] == 1) { if (additionalStat[1] > 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'EMP ATP: ' + _root[itemID].stats[2] + ' (+' + additionalStat[1] + ')' + '</font>' + '\n'; } else { if (additionalStat[1] < 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'EMP ATP: ' + _root[itemID].stats[2] + ' (' + additionalStat[1] + ')' + '</font>' + '\n'; } else { itemStatsList += 'EMP ATP: ' + _root[itemID].stats[2] + ' (' + additionalStat[1] + ')' + '\n'; } } } else { itemStatsList += 'EMP ATP: ' + _root[itemID].stats[2] + '\n'; } } else { itemStatsList += 'Shield Type: Reflect\r'; if (_root[_root.game.character.empEquipped].stats[0] == 2) { if (additionalStat[1] > 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'Shield ATP: ' + _root[itemID].stats[2] + ' (+' + additionalStat[1] + ')' + '</font>' + '\n'; } else { if (additionalStat[1] < 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'Shield ATP: ' + _root[itemID].stats[2] + ' (' + additionalStat[1] + ')' + '</font>' + '\n'; } else { itemStatsList += 'Shield ATP: ' + _root[itemID].stats[2] + ' (' + additionalStat[1] + ')' + '\n'; } } } else { itemStatsList += 'Shield ATP: ' + _root[itemID].stats[2] + '\n'; } } if (additionalStat[2] > 0) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'Shield Duration: ' + _root[itemID].stats[3] + ' (+' + additionalStat[2] + ')' + '</font>' + '\n'; } else { if (additionalStat[2] < 0) { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'Shield Duration: ' + _root[itemID].stats[3] + ' (' + additionalStat[2] + ')' + '</font>' + '\n'; } else { itemStatsList += 'Shield Duration: ' + _root[itemID].stats[3] + ' (' + additionalStat[2] + ')' + '\n'; } } } itemStatsList += 'Rarity: *'; a = 0; while (a < _root[itemID].stats[4]) { itemStatsList += '*'; ++a; } while (a < 5) { ++a; itemStatsList += '-'; } itemStatsList += '\n'; if (itemID.charAt(0) == 'w') { if (_root.game.character.lvl > _root[itemID].stats[3]) { itemStatsList += 'Level Requirement: ' + _root[itemID].stats[3]; } else { if (_root.game.character.lvl == _root[itemID].stats[3]) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'Level Requirement: ' + _root[itemID].stats[3] + '</font>' + '\n'; } else { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'Level Requirement: ' + _root[itemID].stats[3] + '</font>' + '\n'; } } } else { if (_root.game.character.lvl > _root[itemID].stats[5]) { itemStatsList += 'Level Requirement: ' + _root[itemID].stats[5]; } else { if (_root.game.character.lvl == _root[itemID].stats[5]) { itemStatsList += '<font color=\'#' + goodColor + '\'>' + 'Level Requirement: ' + _root[itemID].stats[5] + '</font>' + '\n'; } else { itemStatsList += '<font color=\'#' + badColor + '\'>' + 'Level Requirement: ' + _root[itemID].stats[5] + '</font>' + '\n'; } } } itemStatsList += '</b>'; } }; equip = function () { if (itemStatsList != itemStatsListDefault) { if (itemID.charAt(0) == 'w') { tempItem = _root.game.character.equipped; _root.game.character.equipped = itemID; a = 0; while (a < _root.game.character.inventory.length) { if (_root.game.character.inventory[a] == itemID) { _root.game.character.inventory.splice(a, 1); a = 10000; } ++a; } _root.game.character.inventory.push(tempItem); } else { tempItem = _root.game.character.empEquipped; _root.game.character.empEquipped = itemID; a = 0; while (a < _root.game.character.inventory.length) { if (_root.game.character.inventory[a] == itemID) { _root.game.character.inventory.splice(a, 1); a = 10000; } ++a; } _root.game.character.inventory.push(tempItem); } stLine = 0; this['writeItems_' + itemGroup](); writeStats(); } }; recycleItems = function () { a = 0; while (a < _root.game.character.inventory.length) { if (itemID == _root.game.character.inventory[a]) { _root.game.character.inventory.splice(a, 1); ++_root.game.character.recycledItems; a = 1000000; } ++a; } this['writeItems_' + itemGroup](); itemID = ''; writeStats(); }; recycleDuplicates = function () { b = _root.game.character.inventory.length; while (b > -1) { curItem = _root.game.character.inventory[b]; if (_root.game.character.inventory.length >= b) { a = _root.game.character.inventory.length; while (a > -1) { if (curItem == _root.game.character.inventory[a] && a != b) { _root.game.character.inventory.splice(a, 1); ++_root.game.character.recycledItems; } --a; } } --b; } this['writeItems_' + itemGroup](); itemID = ''; writeStats(); }; } instance redeem of movieClip 1234 { onClipEvent (load) { _y = 77; } } instance recycleBar of movieClip 1249 { onClipEvent (enterFrame) { f = _root.game.character.recycledItems + 1; if (f > 6) { f = 6; } gotoAndStop(f); if (f >= 6) { if (_parent.redeem._y < 133) { _parent.redeem._y += 4; } } else { if (_parent.redeem._y > 77) { _parent.redeem._y -= 4; } } if (Math.floor(_root.game.character.recycledItems / 5) < 99) { _parent.redeemableItems = 'x' + Math.floor(_root.game.character.recycledItems / 5); } else { _parent.redeemableItems = 'x99'; } } } instance sb of movieClip 1259 { onClipEvent (press) { startDrag(this, true, 126, -80, 126, 4); isDrag = true; } onClipEvent (release, releaseOutside) { stopDrag(); isDrag = false; } onClipEvent (enterFrame) { if (isDrag == true) { if (_y > 4) { _y = 4; } trace(_y); _parent.stLine = Math.abs(Math.round(_parent.maxLines * ((-80 - _y) / 84))); trace(_parent.stLine); _parent.writeItems_all(); } } } instance of movieClip 1284 { onClipEvent (load) { yy = new Array(-95, -80, -66, -52, -38, -24, -10, 4, 18, 113, 113, 140, 142, 193, 214, 237); xx = new Array(-40, -40, -40, -40, -40, -40, -40, -40, -40, 209, 304, 262, 414, 350, 440, 412); f.gotoAndStop(1); kReady = true; lastY = 0; } onClipEvent (enterFrame) { _x = _x - (_x - xx[_parent.yP]) / 2; _y = _y - (_y - yy[_parent.yP]) / 2; f.gotoAndStop(_parent.yP + 1); if (Key.isDown(65) && kReady == true) { kReady = false; if (_parent.yP < 9) { n = _parent.yP + _parent.stLine; _parent.writeItemStats(n); lastY = _parent.yP; _parent.yP = 9; } else { if (_parent.yP == 9) { _parent.equip(); } else { if (_parent.yP == 10) { _parent.recycleItems(); } else { if (_parent.yP == 11) { _parent.recycleDuplicates(); } else { if (_parent.yP == 12) { _parent.redeem.recycle(); if (_root.game.character.recycledItems < 5) { _parent.yP = lastY; } } else { if (_parent.yP == 13) { getURL('http://www.crazymonkeygames.com/guide/Redshift', _blank); } else { if (_parent.yP == 14) { _parent.gotoAndStop(5); } else { if (_parent.yP == 15) { _root.pause = false; _parent.gotoAndStop(1); } } } } } } } } } if (!Key.isDown(65)) { kReady = true; } } onClipEvent (keyPress '<Down>') { _root.sfx.gotoAndPlay(60); if (_parent.yP > 8) { _parent.yP = lastY; } _parent.yP += 1; if (_parent.yP > 8) { _parent.stLine += 1; if (_parent.stLine > _parent.maxLines) { _parent.stLine = _parent.maxLines; } _parent.yP = 8; } _parent.writeItems_all(); lastY = _parent.yP; } onClipEvent (keyPress '<Up>') { _root.sfx.gotoAndPlay(60); if (_parent.yP > 8) { _parent.yP = lastY; } _parent.yP -= 1; if (_parent.yP < 0) { _parent.stLine -= 1; if (_parent.stLine < 0) { _parent.stLine = 0; } _parent.yP = 0; } _parent.writeItems_all(); lastY = _parent.yP; } onClipEvent (keyPress '<Right>') { _root.sfx.gotoAndPlay(60); if (_parent.yP < 8) { _parent.yP = 8; } _parent.yP += 1; if (_parent.recycleBar.f > 5) { if (_parent.yP > 14) { _parent.yP = lastY; } } else { if (_parent.yP == 12) { _parent.yP = 13; } if (_parent.yP > 15) { _parent.yP = lastY; } } } onClipEvent (keyPress '<Left>') { _root.sfx.gotoAndPlay(60); if (_parent.yP < 9) { _parent.yP = 16; } _parent.yP -= 1; if (_parent.yP < 9) { _parent.yP = lastY; } if (_parent.recycleBar.f < 6) { if (_parent.yP == 12) { _parent.yP = 11; } } } } frame 5 { if (_root._quality == 'HIGH') { qual = 'High'; } else { if (_root._quality == 'MEDIUM') { qual = 'Medium'; } else { if (_root._quality == 'LOW') { qual = 'Low'; } } } } } instance pauseScreen of movieClip 1335 { onClipEvent (load) { _root.pause = false; } onClipEvent (enterFrame) { if (_parent.game.ene1.go == true) { if (_root.complete._currentframe == 1) { if (_root.empMode == false) { if (Key.isDown(80) && kReady == true) { kReady = false; if (_root.pause == false) { _root.pause = true; gotoAndStop(4); } else { _root.pause = false; gotoAndStop(1); } } if (!Key.isDown(80)) { kReady = true; } } } } } } movieClip 1337 { } movieClip 1338 { } movieClip 1340 { } movieClip 1342 { } movieClip 1344 { } movieClip 1346 { } movieClip 1348 { } movieClip 1350 { } movieClip 1352 { } movieClip 1354 { } movieClip 1356 { } movieClip 1358 { } movieClip 1360 { } movieClip 1361 { frame 1 { stop(); } frame 107 { _root.blackout.go = false; _root.levelScores[_root.levelOn - 1] = 1; stop(); } frame 225 { _root.blackout.go = false; if (_root.levelScores[_root.levelOn - 1] != 1) { if (_root.game.boss.active == true) { _root.levelScores[_root.levelOn - 1] = -1; } } stop(); } } movieClip 1363 { } movieClip 1366 { } movieClip 1367 { frame 1 { stop(); } frame 2 { _root.sfx.gotoAndPlay(76); } frame 121 { gotoAndStop(1); } frame 251 { gotoAndStop(1); } } instance levelUp of movieClip 1367 { onClipEvent (load) { t = 0; } onClipEvent (enterFrame) { if (_root.pause == false) { if (_visible == false) { _visible = true; } if (_currentframe != 1) { play(); } if (_currentframe > 14) { if (_root.charUsed == 1) { h0.gotoAndStop('a9'); h1.gotoAndStop('a+'); } else { h0.gotoAndStop('a8'); h1.gotoAndStop('a+'); } if (_root.charUsed == 0) { a0.gotoAndStop('a3'); a1.gotoAndStop('a+'); } else { a0.gotoAndStop('a2'); a1.gotoAndStop('a+'); } } if (_currentframe > 110 && _currentframe < 122) { _alpha = _alpha - 10; } else { _alpha = 100; } } else { stop(); _visible = false; } if (_currentframe > 121) { if (t > 12) { _root.sfx.gotoAndPlay(74); t = 0; } ++t; } } } movieClip 1369 { } movieClip 1370 { frame 1 { stop(); } } movieClip 1371 { } instance blackout of movieClip 1371 { onClipEvent (load) { _alpha = 100; go = true; stop(); } onClipEvent (enterFrame) { if (go == true) { if (_alpha > 0) { _alpha = _alpha - 5; } else { gotoAndStop(2); } } else { gotoAndStop(1); if (_alpha < 110) { _alpha = _alpha + 5; } else { _root.updateStats(); _root.music.mySound.stop(); stopAllSounds(); _root.gotoAndStop('levelSelect'); } } } }




http://swfchan.com/18/89424/info.shtml
Created: 28/3 -2019 23:40:00 Last modified: 28/3 -2019 23:40:00 Server time: 22/12 -2024 19:53:16