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

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

Jarbot - Jarbot - Side scroller shooter Defense.swf

This is the info page for
Flash #130114

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('15385f88', this, 10301, true); } frame 1 { Stage.showMenu = false; _root.mouseover = new Sound(this); _root.mouseover.attachSound('mouseover'); _root.mouseclick = new Sound(this); _root.mouseclick.attachSound('mouseclick'); stop(); } movieClip 43 { } movieClip 44 { instance stars of movieClip 43 { onClipEvent (enterFrame) { if (this._x <= -1052.45) { this._x = -350; } if (this._x >= 350.6) { this._x = -350; } } } } movieClip 47 { } movieClip 48 { } movieClip 51 { } movieClip 54 { } movieClip 55 { frame 10 { stop(); } } button 56 { on (rollOver) { _root.mouseover.start(0, 1); } on (press) { _root.mouseclick.start(0, 1); _root.changer.play(); _root.room = 'sponsor'; } } movieClip 57 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { eval(bar)._xscale = PercentLoaded; } else { gotoAndPlay('loaded'); } } frame 2 { gotoAndPlay(1); } frame 3 { stop(); } } movieClip 60 { } // unknown tag 88 length 63 movieClip 70 { } movieClip 75 { } movieClip 76 { } movieClip 81 { } movieClip 89 { } button 91 { on (release) { getURL('http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Jarbot&utm_source=host&utm_content=ingame', '_blank'); } } movieClip 92 { } movieClip 95 { } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.musicon && !this.musicstart) { _root.menus.start(0, 10000); this.musicstart = true; } if (!_root.musicon && this.musicstart) { _root.menus.stop(); this.musicstart = false; } } } movieClip 97 { } movieClip 98 { frame 1 { stop(); } frame 16 { _root.gotoAndStop(_root.room); } instance of movieClip 97 { onClipEvent (enterFrame) { if (_root.room !== 'game') { _root.changer._x = 342.9; _root.changer._y = 275; } } } } frame 2 { stop(); } movieClip 102 { } movieClip 104 { frame 287 { stop(); _root.changer.play(); _root.room = 'logo'; } } button 108 { on (press) { _root.SponsorLogo.play(); } } frame 3 { stop(); } movieClip 112 { } button 113 { on (release) { getURL('http://www.iconic-games.com', '_blank'); } } movieClip 115 { } movieClip 124 { } movieClip 126 { } movieClip 128 { } movieClip 130 { } movieClip 133 { } movieClip 134 { } movieClip 135 { frame 144 { stop(); _root.room = 'menu'; _root.changer.play(); } } frame 4 { _root.menus = new Sound(this); _root.menus.attachSound('menus'); stop(); _root.sfx = true; _root.musicon = true; } movieClip 137 { } movieClip 139 { } movieClip 140 { } movieClip 141 { frame 10 { stop(); } } movieClip 142 { frame 10 { stop(); } } button 143 { on (release) { getURL('http://www.iconic-games.com', '_blank'); } } movieClip 145 { } movieClip 146 { frame 10 { stop(); } } movieClip 147 { frame 10 { stop(); } } button 148 { on (release) { getURL('http://www.facebook.com/IconicGames', '_blank'); } } movieClip 150 { } movieClip 151 { frame 10 { stop(); } } movieClip 152 { frame 10 { stop(); } } button 153 { on (release) { getURL('https://www.facebook.com/4V4Games', '_blank'); } } movieClip 156 { } button 157 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (rollOut) { _root.mousestate = 0; } on (press) { _root.mousestate = 0; if (_root.musicon) { _root.musicon = false; } else { if (!_root.musicon) { _root.musicon = true; } } if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 159 { } instance of movieClip 159 { onClipEvent (enterFrame) { if (_root.musicon && this._currentframe !== 1) { this.gotoAndStop(1); } if (!_root.musicon && this._currentframe !== 2) { this.gotoAndStop(2); } } } movieClip 162 { } button 163 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (rollOut) { _root.mousestate = 0; } on (press) { _root.mousestate = 0; if (_root.sfx) { _root.sfx = false; } else { if (!_root.sfx) { _root.sfx = true; } } if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 164 { } instance of movieClip 164 { onClipEvent (enterFrame) { if (_root.sfx && this._currentframe !== 1) { this.gotoAndStop(1); } if (!_root.sfx && this._currentframe !== 2) { this.gotoAndStop(2); } } } button 165 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { _root.changer.play(); _root.room = 'cut1'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.musicon && !this.musicstart) { _root.menus.start(0, 10000); this.musicstart = true; } if (!_root.musicon && this.musicstart) { _root.menus.stop(); this.musicstart = false; } } } movieClip 168 { } // unknown tag 88 length 79 button 172 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.CreditsBox._x !== 70) { _root.CreditsBox._x = 70; _root.CreditsBox._y = 275; } if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 175 { } button 176 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.control_box._x !== 70) { _root.control_box._x = 70; _root.control_box._y = 275; } if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 179 { } button 180 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.sfx) { _root.mouseclick.start(0, 1); } getURL('http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Jarbot&utm_source=host&utm_content=ingame', '_blank'); } } movieClip 185 { } movieClip 188 { } movieClip 191 { } movieClip 194 { } movieClip 195 { } movieClip 196 { } movieClip 197 { frame 5 { stop(); } } movieClip 198 { } movieClip 203 { } movieClip 206 { } movieClip 209 { } movieClip 212 { } movieClip 215 { } movieClip 216 { } movieClip 217 { instance ani of movieClip 198 { onClipEvent (enterFrame) { if (this._currentframe !== 1) { this.gotoAndStop(1); } } } instance char of movieClip 216 { onClipEvent (enterFrame) { if (this._currentframe !== 1) { this.gotoAndStop(1); } } } } instance control_box of movieClip 217 { onClipEvent (enterFrame) { if (this._x == 70) { onMouseDown = function () { this._x = 719.9500000000001; if (_root.sfx) { _root.mouseclick.start(0, 1); } }; } } } movieClip 220 { } movieClip 221 { } instance CreditsBox of movieClip 221 { onClipEvent (enterFrame) { if (this._x == 70) { onMouseDown = function () { this._x = 719.9500000000001; if (_root.sfx) { _root.mouseclick.start(0, 1); } }; } } } // unknown tag 88 length 63 movieClip 230 { } instance of movieClip 230 { onClipEvent (enterFrame) { if (!this.keypush) { this._y -= 1; } if (this._y < -561.55) { _root.menus.stop(); _root.changer.play(); _root.room = 'game'; } if (Key.isDown(69) && !this.keypush) { this.keypush = true; } if (!Key.isDown(69) && this.keypush) { this.keypush = false; } onMouseDown = function () { this._y = -561.55; }; } } frame 6 { _root.soundtrack = 2; _root.gameplaytrack = new Sound(this); _root.gameplaytrack.attachSound('gameplaytrack'); _root.gameplaytrack2 = new Sound(this); _root.gameplaytrack2.attachSound('gameplaytrack2'); _root.jumpsound = new Sound(this); _root.jumpsound.attachSound('jumpsound'); _root.rescourcepick1 = new Sound(this); _root.rescourcepick1.attachSound('rescourcepick1'); _root.rescourcepick2 = new Sound(this); _root.rescourcepick2.attachSound('rescourcepick2'); _root.ricochet1 = new Sound(this); _root.ricochet1.attachSound('ricochet1'); _root.ricochet2 = new Sound(this); _root.ricochet2.attachSound('ricochet2'); _root.ricochet3 = new Sound(this); _root.ricochet3.attachSound('ricochet3'); _root.mgunfire1 = new Sound(this); _root.mgunfire1.attachSound('mgunfire1'); _root.mgunfire2 = new Sound(this); _root.mgunfire2.attachSound('mgunfire2'); _root.mgunfire3 = new Sound(this); _root.mgunfire3.attachSound('mgunfire3'); _root.eqmachine = new Sound(this); _root.eqmachine.attachSound('eqmachine'); _root.lightning1 = new Sound(this); _root.lightning1.attachSound('lightning1'); _root.eqlight = new Sound(this); _root.eqlight.attachSound('eqlight'); _root.landstick1 = new Sound(this); _root.landstick1.attachSound('landstick1'); _root.landstick2 = new Sound(this); _root.landstick2.attachSound('landstick2'); _root.landstick3 = new Sound(this); _root.landstick3.attachSound('landstick3'); _root.landfire1 = new Sound(this); _root.landfire1.attachSound('landfire1'); _root.landexplode1 = new Sound(this); _root.landexplode1.attachSound('landexplode1'); _root.landexplode2 = new Sound(this); _root.landexplode2.attachSound('landexplode2'); _root.landexplode3 = new Sound(this); _root.landexplode3.attachSound('landexplode3'); _root.eqland = new Sound(this); _root.eqland.attachSound('eqland'); _root.goop1 = new Sound(this); _root.goop1.attachSound('goop1'); _root.goop2 = new Sound(this); _root.goop2.attachSound('goop2'); _root.goop3 = new Sound(this); _root.goop3.attachSound('goop3'); _root.eqgoop = new Sound(this); _root.eqgoop.attachSound('eqgoop'); _root.eqvac = new Sound(this); _root.eqvac.attachSound('eqvac'); _root.vacuumsuck1 = new Sound(this); _root.vacuumsuck1.attachSound('vacuumsuck1'); _root.empty = new Sound(this); _root.empty.attachSound('empty'); _root.equipweapon1 = new Sound(this); _root.equipweapon1.attachSound('equipweapon1'); _root.spawnenemy1 = new Sound(this); _root.spawnenemy1.attachSound('spawnenemy1'); _root.enemy_explode1 = new Sound(this); _root.enemy_explode1.attachSound('enemy_explode1'); _root.enemy_explode2 = new Sound(this); _root.enemy_explode2.attachSound('enemy_explode2'); _root.enemy_explode3 = new Sound(this); _root.enemy_explode3.attachSound('enemy_explode3'); _root.shieldhit1 = new Sound(this); _root.shieldhit1.attachSound('shieldhit1'); _root.shieldhit2 = new Sound(this); _root.shieldhit2.attachSound('shieldhit2'); _root.shieldbreak1 = new Sound(this); _root.shieldbreak1.attachSound('shieldbreak1'); _root.shieldbreak2 = new Sound(this); _root.shieldbreak2.attachSound('shieldbreak2'); } frame 6 { stop(); vol = 0; _root.turret1placed = false; _root.turret2placed = false; _root.turret3placed = false; _root.turret4placed = false; _root.tc = 0; _root.t1state = 0; _root.t2state = 0; _root.t3state = 0; _root.t4state = 0; _root.targeted1 = false; _root.targeted2 = false; _root.targeted3 = false; _root.targeted4 = false; _root.healthpack = 0; _root.mgammo = 100; _root.mineammo = 0; _root.plasmabattery = 0; _root.goopammo = 0; _root.ionbattery = 0; _root.rescourceamount = 0; _root.mousestate = 0; _root.largehealth = 75; _root.mediumhealth = 50; _root.smallhealth = 25; _root.playsound = false; _root.music = true; _root.pause = false; _root.eselected = false; if (!gameplayed) { _root.enemycount = 0; _root.boxcount = 0; _root.enemies = 0; _root.enemiesused = 0; gameplayed = true; } _root.spawntimer = 200; _root.enemyspawn = 1; _root.levellimit = 5; _root.days = 0; _root.attackperiod = false; _root.waittime = 4000; onEnterFrame = function () { if (!_root.pause && Key.isDown(80) && !this.keypush) { _root.pause = true; this.keypush = true; } else { if (_root.pause && Key.isDown(80) && !this.keypush) { _root.pause = false; this.keypush = true; } } if (_root.pause && !Key.isDown(80) && this.keypush) { this.keypush = false; } else { if (!_root.pause && !Key.isDown(80) && this.keypush) { this.keypush = false; } } if (!_root.pause && !_root.shop1 && !_root.shop2 && _root._currentframe == 6) { if (!_root.attackperiod && _root.waittime > 0) { --_root.waittime; } if (!_root.attackperiod && _root.waittime <= 0) { _root.attackperiod = true; ++_root.days; _root.soundtrack = 1; _root.enemies = 0; _root.enemiesused = 0; if (_root.days == 1) { _root.levellimit = 15; } if (_root.days == 2) { _root.levellimit = 20; } if (_root.days == 3) { _root.levellimit = 22; } if (_root.days == 4) { _root.levellimit = 24; } if (_root.days == 5) { _root.levellimit = 26; } if (_root.days == 6) { _root.levellimit = 28; } if (_root.days == 7) { _root.levellimit = 30; } if (_root.days == 8) { _root.levellimit = 32; } if (_root.days == 9) { _root.levellimit = 34; } if (_root.days == 10) { _root.levellimit = 35; } if (_root.days == 11) { _root.levellimit = 37; } if (_root.days == 12) { _root.levellimit = 38; } if (_root.days == 13) { _root.levellimit = 40; } if (_root.days == 14) { _root.levellimit = 41; } if (_root.days == 15) { _root.levellimit = 42; } if (_root.days == 16) { _root.levellimit = 44; } if (_root.days == 17) { _root.levellimit = 45; } if (_root.days == 18) { _root.levellimit = 46; } if (_root.days == 19) { _root.levellimit = 47; } if (_root.days == 20) { _root.levellimit = 48; } if (_root.days == 21) { _root.levellimit = 50; } if (_root.days == 22) { _root.levellimit = 52; } if (_root.days == 23) { _root.levellimit = 54; } if (_root.days == 24) { _root.levellimit = 55; } if (_root.days == 25) { _root.levellimit = 60; } } if (_root.attackperiod) { if (_root.enemiesused == _root.levellimit && _root.enemies == 0) { _root.attackperiod = false; _root.waittime = 2000; _root.soundtrack = 2; } if (_root.spawntimer > 0 && _root.enemiesused <= _root.levellimit && _root.attackperiod) { --_root.spawntimer; } if (_root.spawntimer <= 0) { _root.spawnspot = random(2) + 1; if (_root.days >= 1 && _root.days <= 4) { _root.spawntimer = random(150) + 20; } if (_root.days >= 5 && _root.days <= 7) { _root.spawntimer = random(120) + 20; } if (_root.days >= 8 && _root.days <= 12) { _root.spawntimer = random(100) + 20; } if (_root.days >= 13 && _root.days <= 20) { _root.spawntimer = random(80) + 20; } if (_root.days >= 20 && _root.days <= 25) { _root.spawntimer = random(60) + 20; } if (_root.enemiesused < _root.levellimit) { if (_root.enemyspawn == 1) { newenemy = _root.enemy1.duplicateMovieClip('centibot_' + _root.enemycount, _root.getNextHighestDepth()); ++_root.enemycount; ++_root.enemiesused; } if (_root.enemyspawn == 2) { newenemy = _root.enemy2.duplicateMovieClip('jaws_' + _root.enemycount, _root.getNextHighestDepth()); ++_root.enemycount; ++_root.enemiesused; } if (_root.enemyspawn == 3) { newenemy = _root.enemy3.duplicateMovieClip('boomer_' + _root.enemycount, _root.getNextHighestDepth()); ++_root.enemycount; ++_root.enemiesused; } newenemy.addedtostage = true; if (_root.days < 3) { _root.enemyspawn = 1; } if (_root.days >= 3 && _root.days < 6) { _root.enemyspawn = random(2) + 1; } if (_root.days >= 6 && _root.days <= 25) { _root.enemyspawn = random(3) + 1; } if (_root.sfx) { _root.spawnguy = true; _root.playsound = true; } if (_root.spawnspot == 1) { _root.cam.s1.play(); newenemy._x = _root.spawn._x; newenemy._y = _root.spawn._y; } if (_root.spawnspot == 2) { _root.cam.s2.play(); newenemy._x = _root.spawn2._x; newenemy._y = _root.spawn2._y; } } } } } if (_root.musicon && _root._currentframe == 6) { if (_root.soundtrack == 1 && !this.musicplaying && !this.musicplaying2) { _root.gameplaytrack.start(0, 1000000); this.musicplaying = true; } if (_root.soundtrack == 1 && vol < 40 && !this.musicplaying2) { ++vol; _root.gameplaytrack.setVolume(vol); } if (_root.soundtrack == 2 && !this.musicplaying2 && !this.musicplaying) { _root.gameplaytrack2.start(0, 1000000); this.musicplaying2 = true; } if (_root.soundtrack == 2 && vol < 40 && !this.musicplaying) { ++vol; _root.gameplaytrack2.setVolume(vol); } if (_root.soundtrack !== 1 && _root.vol > 0 && this.musicplaying) { --vol; _root.gameplaytrack.setVolume(vol); } if (_root.soundtrack !== 2 && _root.vol > 0 && this.musicplaying2) { --vol; _root.gameplaytrack2.setVolume(vol); } if (vol <= 0 && this.musicplaying) { _root.gameplaytrack.stop(); vol = 0; this.musicplaying = false; } if (vol <= 0 && this.musicplaying2) { _root.gameplaytrack2.stop(); vol = 0; this.musicplaying2 = false; } } if (!_root.musicon && vol > 0) { this.musicplaying = false; this.musicplaying2 = false; _root.gameplaytrack.stop(); _root.gameplaytrack2.stop(); vol = 0; } if (_root.sfx && _root.playsound) { if (_root.spawnguy) { spawning(); _root.spawnguy = false; } if (_root.jumpingsound) { jumpplay(); _root.jumpingsound = false; } if (_root.machinefire) { machinegunshoot(); _root.machinefire = false; } if (_root.lightfire) { lightningshoot(); _root.lightfire = false; } if (_root.landmine) { landminefire(); _root.landmine = false; } if (_root.landstick) { landminestick(); _root.landstick = false; } if (_root.explodeland) { landmineexplode(); _root.explodeland = false; } if (_root.goopshoot) { goopfire(); _root.goopshoot = false; } if (_root.equipped1) { equipwep1(); _root.equipped1 = false; } if (_root.emptyplay) { emptyclick(); _root.emptyplay = false; } if (_root.machequip) { equipmachine(); _root.machequip = false; } if (_root.landequip) { equipland(); _root.landequip = false; } if (_root.lightequip) { equiplight(); _root.lightequip = false; } if (_root.goopplay) { equipgoopsound(); _root.goopplay = false; } if (_root.vacplay) { equipvacsound(); _root.vacplay = false; } if (_root.vacplay2) { vacuumsound(); _root.vacplay2 = false; } if (_root.rescourcepickup) { rescourcesound(); _root.rescourcepickup = false; } if (_root.ricochetsound) { ricosound(); _root.ricochetsound = false; } if (_root.ricochetsound) { shieldhurtsound(); _root.shieldhurt = false; } if (_root.shieldhurt) { shieldhurtsound(); _root.shieldhurt = false; } if (_root.shieldbreak) { shieldbreaksound(); _root.shieldbreak = false; } if (_root.exploding) { enemydie(); _root.exploding = false; } _root.playsound = false; } jumpplay = function () { _root.jumpsound.start(0, 1); }; machinegunshoot = function () { mgun = random(2) + 1; if (mgun == 1) { _root.mgunfire1.start(0, 1); } if (mgun == 2) { _root.mgunfire3.start(0, 1); } }; ricosound = function () { _root.ricochet1.start(0, 1); }; lightningshoot = function () { _root.lightning1.start(0, 1); }; landminefire = function () { _root.landfire1.start(0, 1); }; landminestick = function () { lstick = random(3) + 1; if (lstick == 1) { _root.landstick1.start(0, 1); } if (lstick == 2) { _root.landstick2.start(0, 1); } if (lstick == 3) { _root.landstick3.start(0, 1); } }; landmineexplode = function () { landexplode = random(3) + 1; if (landexplode == 1) { _root.landexplode1.start(0, 1); } if (landexplode == 2) { _root.landexplode2.start(0, 1); } if (landexplode == 3) { _root.landexplode3.start(0, 1); } }; goopfire = function () { goopsound = random(3) + 1; if (goopsound == 1) { _root.goop1.start(0, 1); } if (goopsound == 2) { _root.goop2.start(0, 1); } if (goopsound == 3) { _root.goop3.start(0, 1); } }; enemydie = function () { endie = random(3) + 1; if (endie == 1) { _root.enemy_explode1.start(0, 1); } if (endie == 2) { _root.enemy_explode2.start(0, 1); } if (endie == 3) { _root.enemy_explode3.start(0, 1); } }; spawning = function () { _root.spawnenemy1.start(0, 1); }; equipwep1 = function () { _root.equipweapon1.start(0, 1); }; equipmachine = function () { _root.eqmachine.start(0, 1); }; equipland = function () { _root.eqland.start(0, 1); }; equiplight = function () { _root.eqlight.start(0, 1); }; equipgoopsound = function () { _root.eqgoop.start(0, 1); }; equipvacsound = function () { _root.eqvac.start(0, 1); }; vacuumsound = function () { _root.vacuumsuck1.start(0, 1); }; emptyclick = function () { _root.empty.start(0, 1); }; rescourcesound = function () { resc = random(2) + 1; if (resc == 1) { _root.rescourcepick1.start(0, 1); } if (resc == 2) { _root.rescourcepick2.start(0, 1); } }; shieldbreaksound = function () { sh = random(2) + 1; if (sh == 1) { _root.shieldbreak1.start(0, 1); } if (sh == 2) { _root.shieldbreak2.start(0, 1); } }; shieldhurtsound = function () { sh2 = random(2) + 1; if (sh2 == 1) { _root.shieldhit1.start(0, 1); } if (sh2 == 2) { _root.shieldhit2.start(0, 1); } }; }; } movieClip 238 { } movieClip 239 { } movieClip 247 { frame 1 { d; } } instance BG of movieClip 247 { onClipEvent (load) { this._visible = false; } } movieClip 248 { } movieClip 249 { } instance of movieClip 249 { onClipEvent (load) { this.climb = false; this._visible = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.box) && _root.charmodes == 1 && !this.climb) { _root.charmodes = 2; this.climb = true; } if (!this.hitTest(_root.box) && _root.charmodes == 2 && this.climb) { _root.charmodes = 1; this.climb = false; } } } movieClip 252 { } movieClip 253 { } movieClip 258 { } movieClip 260 { } movieClip 262 { } movieClip 263 { frame 1 { stop(); } } movieClip 267 { } movieClip 271 { } movieClip 272 { frame 1 { stop(); } } movieClip 273 { } movieClip 274 { frame 12 { stop(); } } movieClip 275 { frame 1 { stop(); } instance e_show of movieClip 273 { onClipEvent (load) { this._visible = false; } } frame 2 { stop(); } } instance gate2 of movieClip 275 { onClipEvent (load) { this.health = 1; this.hurt = false; this.eselect = false; } onClipEvent (enterFrame) { if (!_root.upgrade1 && !_root.upgrade2 && this.bar._currentframe !== 1) { this.bar.gotoAndStop(1); } if (_root.upgrade1 && !_root.upgrade2 && this.bar._currentframe !== 2) { this.bar.gotoAndStop(2); } if (_root.upgrade1 && _root.upgrade2 && this.bar._currentframe !== 3) { this.bar.gotoAndStop(3); } if (this.bar.bar._currentframe !== this.health) { this.bar.bar.gotoAndStop(this.health); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); this.health = 1; if (_root.sfx) { _root.shieldbreak = true; _root.playsound = true; } } if (!_root.upgrade1) { if (this.health < 100 && _root.base2.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.upgrade1 && !_root.upgrade2) { if (this.health < 200 && _root.base2.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.upgrade1 && _root.upgrade2) { if (this.health < 300 && _root.base2.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.base2.hitTest(_root.box) && this.eselect && !Key.isDown(69)) { this.e_show.repairbar.gotoAndStop(1); } if (!_root.base2.hitTest(_root.box) && this.eselect) { this.eselect = false; this.e_show._visible = false; _root.eselected = false; this.e_show.repairbar.gotoAndStop(1); } if (!_root.upgrade1) { if (this.health == 100 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 100 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.upgrade1 && !_root.upgrade2) { if (this.health == 200 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 200 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.upgrade1 && _root.upgrade2) { if (this.health == 300 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 300 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.rescourceamount >= 25 && !_root.pause) { if (this.eselect && Key.isDown(69)) { this.e_show.repairbar.play(); } if (this.e_show.repairbar._currentframe >= 100) { _root.rescourceamount -= 25; this.health = 100; if (_root.upgrade1) { this.health = 200; } if (_root.upgrade2) { this.health = 300; } if (_root.sfx) { _root.rescourcepickup = true; _root.playsound = true; } } } } } instance gate of movieClip 275 { onClipEvent (load) { this.health = 1; this.hurt = false; this.eselect = false; } onClipEvent (enterFrame) { if (!_root.upgrade1_ && !_root.upgrade2_ && this.bar._currentframe !== 1) { this.bar.gotoAndStop(1); } if (_root.upgrade1_ && !_root.upgrade2_ && this.bar._currentframe !== 2) { this.bar.gotoAndStop(2); } if (_root.upgrade1_ && _root.upgrade2_ && this.bar._currentframe !== 3) { this.bar.gotoAndStop(3); } if (this.bar.bar._currentframe !== this.health) { this.bar.bar.gotoAndStop(this.health); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); this.health = 1; if (_root.sfx) { _root.shieldbreak = true; _root.playsound = true; } } if (!_root.upgrade1_) { if (this.health < 100 && _root.base.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.upgrade1_ && !_root.upgrade2_) { if (this.health < 200 && _root.base.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.upgrade1_ && _root.upgrade2_) { if (this.health < 300 && _root.base.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; this.e_show._visible = true; } } if (_root.base.hitTest(_root.box) && this.eselect && !Key.isDown(69)) { this.e_show.repairbar.gotoAndStop(1); } if (!_root.base.hitTest(_root.box) && this.eselect) { this.eselect = false; this.e_show._visible = false; _root.eselected = false; this.e_show.repairbar.gotoAndStop(1); } if (!_root.upgrade1_) { if (this.health == 100 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 100 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.upgrade1_ && !_root.upgrade2_) { if (this.health == 200 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 200 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.upgrade1_ && _root.upgrade2_) { if (this.health == 300 && this.eselect) { this.e_show._visible = false; this.e_show.repairbar.gotoAndStop(1); } if (this.health == 300 && this.eselect && _root.eselected && !Key.isDown(69)) { this.eselect = false; _root.eselected = false; } } if (_root.rescourceamount >= 25 && !_root.pause) { if (this.eselect && Key.isDown(69)) { this.e_show.repairbar.play(); } if (this.e_show.repairbar._currentframe >= 100) { _root.rescourceamount -= 25; this.health = 100; if (_root.upgrade1_) { this.health = 200; } if (_root.upgrade2_) { this.health = 300; } if (_root.sfx) { _root.rescourcepickup = true; _root.playsound = true; } } } } } movieClip 276 { frame 1 { stop(); } } instance base of movieClip 276 { onClipEvent (load) { this.health = 100; this.hurt = false; } onClipEvent (enterFrame) { if (this.bar._currentframe !== this.health) { this.bar.gotoAndStop(this.health); } if (this.health > 30 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); this.health = 1; } } } movieClip 282 { } movieClip 285 { } movieClip 287 { } movieClip 292 { } movieClip 294 { } movieClip 297 { } movieClip 300 { } movieClip 301 { frame 14 { stop(); } } movieClip 302 { frame 23 { stop(); } } movieClip 303 { frame 1 { stop(); } instance explode of movieClip 302 { onClipEvent (load) { if (_root.sfx) { _root.exploding = true; _root.playsound = true; } } } } instance sources of movieClip 303 { onClipEvent (load) { this.health = 500; } onClipEvent (enterFrame) { if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.bar._currentframe !== this.health) { this.bar.gotoAndStop(this.health); } } } movieClip 309 { } movieClip 312 { } movieClip 313 { } movieClip 314 { frame 1 { stop(); } } instance of movieClip 314 { onClipEvent (load) { this.epress = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.box) && !this.epress) { this.epress = true; _root.eselected = true; this.gotoAndStop(2); } if (!this.hitTest(_root.box) && this.epress) { this.epress = false; _root.eselected = false; this.gotoAndStop(1); } if (this.epress) { if (!Key.isDown(69) && this.keypush) { this.keypush = false; } if (this.epress && !this.keypush && !_root.shop1 && Key.isDown(69)) { _root.shop1 = true; this.keypush = true; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (this.epress && !this.keypush && _root.shop1 && Key.isDown(69)) { _root.shop1 = false; this.keypush = true; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } } } instance of movieClip 314 { onClipEvent (load) { this.epress = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.box) && !this.epress) { this.epress = true; _root.eselected = true; this.gotoAndStop(2); } if (!this.hitTest(_root.box) && this.epress) { this.epress = false; _root.eselected = false; this.gotoAndStop(1); } if (this.epress) { if (!Key.isDown(69) && this.keypush) { this.keypush = false; } if (this.epress && !this.keypush && !_root.shop2 && Key.isDown(69)) { _root.shop2 = true; this.keypush = true; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (this.epress && !this.keypush && _root.shop2 && Key.isDown(69)) { _root.shop2 = false; this.keypush = true; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } } } movieClip 319 { } instance turret4 of movieClip 319 { onClipEvent (load) { this.firing = random(40) + 1; this.ammo = 10; } onClipEvent (enterFrame) { if (_root.turret4placed && !this._visible) { this._visible = true; } if (!_root.turret4placed && this._visible) { this._visible = false; } if (_root.targeted4 && !_root.pause && !_root.shop1 && !_root.shop2 && this.ammo > 0) { --this.firing; if (this.firing <= 0) { this.fires = true; this.firing = random(40) + 1; } } if (this.fires && !this.shotfired) { this.shotfired = true; if (_root.tc == 0) { energy = _root.tbullet0; } else { if (_root.tc == 1) { energy = _root.tbullet1; } else { if (_root.tc == 2) { energy = _root.tbullet2; } else { if (_root.tc == 3) { energy = _root.tbullet3; } else { if (_root.tc == 4) { energy = _root.tbullet4; } else { if (_root.tc == 5) { energy = _root.tbullet5; } else { if (_root.tc == 6) { energy = _root.tbullet6; } else { if (_root.tc == 7) { energy = _root.tbullet7; } else { if (_root.tc == 8) { energy = _root.tbullet8; } else { if (_root.tc == 9) { energy = _root.tbullet9; } else { if (_root.tc == 10) { energy = _root.tbullet10; } } } } } } } } } } } ++_root.tc; if (_root.tc > 10) { _root.tc = 0; } --this.ammo; energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = this._rotation; energy._rotation = angle - 90; energy.dirx = Math.cos(angle * Math.PI / 180) * -30; energy.diry = Math.sin(angle * Math.PI / 180) * -30; energy._x = this._x - Math.cos(angle * Math.PI / 180) * -10; energy._y = this._y - Math.sin(angle * Math.PI / 180) * -10; this.firerate = 20; this.shotfired = true; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (this.shotfired) { if (this.firerate > 0) { --this.firerate; } if (this.firerate <= 0) { this.fires = false; this.shotfired = false; } } } } instance turret3 of movieClip 319 { onClipEvent (load) { this.firing = random(40) + 1; this.ammo = 10; } onClipEvent (enterFrame) { if (_root.turret3placed && !this._visible) { this._visible = true; } if (!_root.turret3placed && this._visible) { this._visible = false; } if (_root.targeted3 && !_root.pause && !_root.shop1 && !_root.shop2 && this.ammo > 0) { --this.firing; if (this.firing <= 0) { this.fires = true; this.firing = random(40) + 1; } } if (this.fires && !this.shotfired) { this.shotfired = true; if (_root.tc == 0) { energy = _root.tbullet0; } else { if (_root.tc == 1) { energy = _root.tbullet1; } else { if (_root.tc == 2) { energy = _root.tbullet2; } else { if (_root.tc == 3) { energy = _root.tbullet3; } else { if (_root.tc == 4) { energy = _root.tbullet4; } else { if (_root.tc == 5) { energy = _root.tbullet5; } else { if (_root.tc == 6) { energy = _root.tbullet6; } else { if (_root.tc == 7) { energy = _root.tbullet7; } else { if (_root.tc == 8) { energy = _root.tbullet8; } else { if (_root.tc == 9) { energy = _root.tbullet9; } else { if (_root.tc == 10) { energy = _root.tbullet10; } } } } } } } } } } } ++_root.tc; if (_root.tc > 10) { _root.tc = 0; } --this.ammo; energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = this._rotation; energy._rotation = angle - 90; energy.dirx = Math.cos(angle * Math.PI / 180) * -30; energy.diry = Math.sin(angle * Math.PI / 180) * -30; energy._x = this._x - Math.cos(angle * Math.PI / 180) * -10; energy._y = this._y - Math.sin(angle * Math.PI / 180) * -10; this.firerate = 20; this.shotfired = true; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (this.shotfired) { if (this.firerate > 0) { --this.firerate; } if (this.firerate <= 0) { this.fires = false; this.shotfired = false; } } } } instance turret2 of movieClip 319 { onClipEvent (load) { this.firing = random(40) + 1; this.ammo = 10; } onClipEvent (enterFrame) { if (_root.turret2placed && !this._visible) { this._visible = true; } if (!_root.turret2placed && this._visible) { this._visible = false; } if (_root.targeted2 && !_root.pause && !_root.shop1 && !_root.shop2 && this.ammo > 0) { --this.firing; if (this.firing <= 0) { this.fires = true; this.firing = random(40) + 1; } } if (this.fires && !this.shotfired) { this.shotfired = true; if (_root.tc == 0) { energy = _root.tbullet0; } else { if (_root.tc == 1) { energy = _root.tbullet1; } else { if (_root.tc == 2) { energy = _root.tbullet2; } else { if (_root.tc == 3) { energy = _root.tbullet3; } else { if (_root.tc == 4) { energy = _root.tbullet4; } else { if (_root.tc == 5) { energy = _root.tbullet5; } else { if (_root.tc == 6) { energy = _root.tbullet6; } else { if (_root.tc == 7) { energy = _root.tbullet7; } else { if (_root.tc == 8) { energy = _root.tbullet8; } else { if (_root.tc == 9) { energy = _root.tbullet9; } else { if (_root.tc == 10) { energy = _root.tbullet10; } } } } } } } } } } } ++_root.tc; if (_root.tc > 10) { _root.tc = 0; } --this.ammo; energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = this._rotation; energy._rotation = angle - 90; energy.dirx = Math.cos(angle * Math.PI / 180) * -30; energy.diry = Math.sin(angle * Math.PI / 180) * -30; energy._x = this._x - Math.cos(angle * Math.PI / 180) * -10; energy._y = this._y - Math.sin(angle * Math.PI / 180) * -10; this.firerate = 20; this.shotfired = true; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (this.shotfired) { if (this.firerate > 0) { --this.firerate; } if (this.firerate <= 0) { this.fires = false; this.shotfired = false; } } } } instance turret1 of movieClip 319 { onClipEvent (load) { this.firing = random(40) + 1; this.ammo = 10; } onClipEvent (enterFrame) { if (_root.turret1placed && !this._visible) { this._visible = true; } if (!_root.turret1placed && this._visible) { this._visible = false; } if (_root.targeted1 && !_root.pause && !_root.shop1 && !_root.shop2 && this.ammo > 0) { --this.firing; if (this.firing <= 0) { this.fires = true; this.firing = random(40) + 1; } } if (this.fires && !this.shotfired) { this.shotfired = true; if (_root.tc == 0) { energy = _root.tbullet0; } else { if (_root.tc == 1) { energy = _root.tbullet1; } else { if (_root.tc == 2) { energy = _root.tbullet2; } else { if (_root.tc == 3) { energy = _root.tbullet3; } else { if (_root.tc == 4) { energy = _root.tbullet4; } else { if (_root.tc == 5) { energy = _root.tbullet5; } else { if (_root.tc == 6) { energy = _root.tbullet6; } else { if (_root.tc == 7) { energy = _root.tbullet7; } else { if (_root.tc == 8) { energy = _root.tbullet8; } else { if (_root.tc == 9) { energy = _root.tbullet9; } else { if (_root.tc == 10) { energy = _root.tbullet10; } } } } } } } } } } } ++_root.tc; if (_root.tc > 10) { _root.tc = 0; } --this.ammo; energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = this._rotation; energy._rotation = angle - 90; energy.dirx = Math.cos(angle * Math.PI / 180) * -30; energy.diry = Math.sin(angle * Math.PI / 180) * -30; energy._x = this._x - Math.cos(angle * Math.PI / 180) * -10; energy._y = this._y - Math.sin(angle * Math.PI / 180) * -10; this.firerate = 20; this.shotfired = true; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (this.shotfired) { if (this.firerate > 0) { --this.firerate; } if (this.firerate <= 0) { this.fires = false; this.shotfired = false; } } } } movieClip 321 { } instance of movieClip 321 { onClipEvent (load) { this._visible = false; keypush = false; } onClipEvent (enterFrame) { if (_root.turret1placed) { if (this.hitTest(_root.box)) { this._visible = true; if (Key.isDown(69) && !keypush && _root.rescourceamount >= 50) { keypush = true; _root.rescourceamount -= 20; _root.turret1.ammo += 30; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (!Key.isDown(69) && keypush) { keypush = false; } if (this.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; } if (!this.hitTest(_root.box) && this.eselect) { this.eselect = false; _root.eselected = false; } } if (!this.hitTest(_root.box)) { this._visible = false; keypush = false; } } } } movieClip 323 { } instance of movieClip 323 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.turret1._visible && !this._visible) { this._visible = true; } if (!_root.turret1._visible && this._visible) { this._visible = false; } if (this.amcount !== _root.turret1.ammo) { this.amcount = _root.turret1.ammo; } } } instance of movieClip 323 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.turret2._visible && !this._visible) { this._visible = true; } if (!_root.turret2._visible && this._visible) { this._visible = false; } if (this.amcount !== _root.turret2.ammo) { this.amcount = _root.turret2.ammo; } } } instance of movieClip 323 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.turret3._visible && !this._visible) { this._visible = true; } if (!_root.turret3._visible && this._visible) { this._visible = false; } if (this.amcount !== _root.turret3.ammo) { this.amcount = _root.turret3.ammo; } } } instance of movieClip 323 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.turret4._visible && !this._visible) { this._visible = true; } if (!_root.turret4._visible && this._visible) { this._visible = false; } if (this.amcount !== _root.turret4.ammo) { this.amcount = _root.turret4.ammo; } } } movieClip 324 { } instance of movieClip 324 { onClipEvent (load) { this._visible = false; keypush = false; } onClipEvent (enterFrame) { if (_root.turret2placed) { if (this.hitTest(_root.box)) { this._visible = true; if (Key.isDown(69) && !keypush && _root.rescourceamount >= 50) { keypush = true; _root.rescourceamount -= 20; _root.turret2.ammo += 30; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (!Key.isDown(69) && keypush) { keypush = false; } if (this.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; } if (!this.hitTest(_root.box) && this.eselect) { this.eselect = false; _root.eselected = false; } } if (!this.hitTest(_root.box)) { this._visible = false; keypush = false; } } } } instance of movieClip 324 { onClipEvent (load) { this._visible = false; keypush = false; } onClipEvent (enterFrame) { if (_root.turret3placed) { if (this.hitTest(_root.box)) { this._visible = true; if (Key.isDown(69) && !keypush && _root.rescourceamount >= 50) { keypush = true; _root.rescourceamount -= 20; _root.turret3.ammo += 30; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (!Key.isDown(69) && keypush) { keypush = false; } if (this.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; } if (!this.hitTest(_root.box) && this.eselect) { this.eselect = false; _root.eselected = false; } } if (!this.hitTest(_root.box)) { this._visible = false; keypush = false; } } } } instance of movieClip 321 { onClipEvent (load) { this._visible = false; keypush = false; } onClipEvent (enterFrame) { if (_root.turret4placed) { if (this.hitTest(_root.box)) { this._visible = true; if (Key.isDown(69) && !keypush && _root.rescourceamount >= 50) { keypush = true; _root.rescourceamount -= 20; _root.turret4.ammo += 30; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (!Key.isDown(69) && keypush) { keypush = false; } if (this.hitTest(_root.box) && !this.eselect) { this.eselect = true; _root.eselected = true; } if (!this.hitTest(_root.box) && this.eselect) { this.eselect = false; _root.eselected = false; } } if (!this.hitTest(_root.box)) { this._visible = false; keypush = false; } } } } instance box1 of movieClip 248 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { this.gate = 0; this.spd = 3; this.modes = 1; this.alive = true; this.fallspeed = 0; this.health = 20; this.bouncing = 8; this.hurt = false; } } onClipEvent (enterFrame) { if (!_root.pause && this.alive && !this.sucked && !_root.shop1 && !_root.shop2) { attackplayer = function () { if (this.hitTest(_root.char)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.char) && !this.attack) { this.modes = 1; if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; attacksource = function () { if (this.hitTest(_root.sources)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.sources) && !this.attack) { this.modes = 3; if (_root.sources._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.sources._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; checkproximity(); checkproximity = function () { dist_player = 100; dx = _x - _root.char._x; dy = _y - _root.char._y; this.dist = Math.sqrt(dx * dx + dy * dy); if (this.dist < dist_player) { this.in_range = true; } else { this.in_range = false; } }; if (this.hurt) { if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { if (!_root.gate.hitTest(this._x + 20, _y, true)) { if (!_root.gate2.hitTest(this._x + 20, _y, true)) { this._x += this.bouncing; } } } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { if (!_root.gate.hitTest(this._x - 20, _y, true)) { if (!_root.gate2.hitTest(this._x - 20, _y, true)) { this._x -= this.bouncing; } } } } this.bouncing -= 2; if (this.bouncing <= 0) { this.bouncing = 8; this.hurt = false; if (this.attack) { this.attack = false; } } } if (!this.collide) { if (this.hitTest(_root.gate) && _root.gate.health > 1) { this.gate = 1; } if (this.hitTest(_root.gate2) && _root.gate2.health > 1) { this.gate = 2; } if (this.gate !== 0) { this.collide = true; } } if (!this.hitTest(_root.gate) && this.gate == 1 && this.collide or _root.gate.health <= 1 && this.gate == 1 && this.collide) { this.collide = false; this.gate = 0; } if (!this.hitTest(_root.gate2) && this.gate == 2 && this.collide or _root.gate2.health <= 1 && this.gate == 2 && this.collide) { this.collide = false; this.gate = 0; } if (!this.collide) { if (!this.hurt && this.in_range && !this.hitTest(_root.sources)) { attackplayer(); } if (!this.hurt && !this.in_range or this.hitTest(_root.sources) && !this.hurt) { attacksource(); } } if (this.hitTest(_root.gate) && !this.hurt && _root.gate.health > 1 or this.hitTest(_root.gate2) && !this.hurt && _root.gate2.health > 1) { this.modes = 2; this.attack = true; } if (!_root.BG.hitTest(this._x, _y + 10, true) && !this.inair) { this.inair = true; } while (_root.BG.hitTest(this._x, _y + 1, true)) { this.inair = false; this._y -= 0.1; this.fallspeed = 0; } if (this.inair) { this._y += this.fallspeed; this.fallspeed += 1; } if (this.fallspeed > 20 && this.inair) { this.fallspeed = 20; } } } } movieClip 327 { } movieClip 330 { } movieClip 333 { } movieClip 336 { } movieClip 339 { } movieClip 340 { } movieClip 341 { } movieClip 342 { frame 6 { stop(); } } movieClip 343 { frame 23 { stop(); } } movieClip 344 { frame 1 { stop(); } instance explode of movieClip 343 { onClipEvent (load) { if (_root.sfx) { _root.exploding = true; _root.playsound = true; } } } } movieClip 346 { frame 1 { stop(); } } movieClip 347 { frame 1 { stop(); } } instance enemy1 of movieClip 347 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { accuracy = 0.25; this._visible = true; centibox = _root.box1.duplicateMovieClip('centi_' + _root.boxcount, _root.getNextHighestDepth()); ++_root.boxcount; ++_root.enemies; centibox._x = this._x; centibox._y = this._y; centibox.addedtostage = true; } } onClipEvent (enterFrame) { if (centibox.alive && this.addedtostage) { if (!_root.pause && !_root.shop1 && !_root.shop2 && !this._visible && _root.changer._currentframe <= 15) { this._visible = true; } if (this._visible) { if (_root.pause or _root.shop1 or _root.shop2 or _root.changer._currentframe > 15) { this._visible = false; } } } if (!_root.pause && centibox.alive && this.addedtostage && !_root.shop1 && !_root.shop2) { this._x = centibox._x; this._y = centibox._y - 20; if (!centibox.attack && !centibox.hurt) { if (centibox.modes == 1 && this._x < _root.char._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (centibox.modes == 1 && this._x > _root.char._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (centibox.modes == 1 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } if (centibox.modes == 3 && this._x < _root.sources._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (centibox.modes == 3 && this._x > _root.sources._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (centibox.modes == 3 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } } if (_root.turret1placed) { if (this.hitTest(_root.zone1) && !_root.targeted1 && !this.targeted) { _root.targeted1 = true; this.targeted = true; } if (!this.hitTest(_root.zone1) && _root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted1 && this.targeted) { rotatie = 180 + (Math.atan2(_root.turret1._y - this._y, _root.turret1._x - this._x) / Math.PI) * 180; _root.turret1._rotation = rotatie; } } if (_root.turret2placed) { if (this.hitTest(_root.zone1) && !_root.targeted2 && !this.targeted2) { _root.targeted2 = true; this.targeted2 = true; } if (!this.hitTest(_root.zone1) && _root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted2 && this.targeted2) { rotatie = 180 + (Math.atan2(_root.turret2._y - this._y, _root.turret2._x - this._x) / Math.PI) * 180; _root.turret2._rotation = rotatie; } } if (_root.turret3placed) { if (this.hitTest(_root.zone2) && !_root.targeted3 && !this.targeted3) { _root.targeted3 = true; this.targeted3 = true; } if (!this.hitTest(_root.zone2) && _root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted3 && this.targeted3) { rotatie = 180 + (Math.atan2(_root.turret3._y - this._y, _root.turret3._x - this._x) / Math.PI) * 180; _root.turret3._rotation = rotatie; } } if (_root.turret4placed) { if (this.hitTest(_root.zone2) && !_root.targeted4 && !this.targeted4) { _root.targeted4 = true; this.targeted4 = true; } if (!this.hitTest(_root.zone2) && _root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } if (_root.targeted4 && this.targeted4) { rotatie = 180 + (Math.atan2(_root.turret4._y - this._y, _root.turret4._x - this._x) / Math.PI) * 180; _root.turret4._rotation = rotatie; } } if (!centibox.hurt) { if (centibox.modes == 2 && this.enemy._currentframe !== 'attack') { this.enemy.gotoAndStop('attack'); } if (centibox.attack && this.enemy.attackanim._currentframe >= 31) { centibox.attack = false; } if (!_root.charhurt && this.hitTest(_root.char) && centibox.attack && this.enemy.attackanim._currentframe >= 24 && this.enemy.attackanim._currentframe <= 30) { _root.charhurt = true; _root.char.health -= 5; _root.damlocx = this._x; } if (this.hitTest(_root.sources) && centibox.attack && this.enemy.attackanim._currentframe >= 24 && this.enemy.attackanim._currentframe <= 30) { _root.sources.health -= 1; } if (_root.gate._currentframe == 1 && this.hitTest(_root.gate) && centibox.attack && this.enemy.attackanim._currentframe >= 24 && this.enemy.attackanim._currentframe <= 30) { _root.gate.health -= 1; if (_root.sfx && this.enemy.attackanim._currentframe == 25) { _root.shieldhurt = true; _root.playsound = true; } } if (_root.gate2._currentframe == 1 && this.hitTest(_root.gate2) && centibox.attack && this.enemy.attackanim._currentframe >= 24 && this.enemy.attackanim._currentframe <= 30) { _root.gate2.health -= 1; if (_root.sfx && this.enemy.attackanim._currentframe == 25) { _root.shieldhurt = true; _root.playsound = true; } } } if (this.hitTest(_root.tbullet0)) { turr = _root.tbullet0; } if (this.hitTest(_root.tbullet1)) { turr = _root.tbullet1; } if (this.hitTest(_root.tbullet2)) { turr = _root.tbullet2; } if (this.hitTest(_root.tbullet3)) { turr = _root.tbullet3; } if (this.hitTest(_root.tbullet4)) { turr = _root.tbullet4; } if (this.hitTest(_root.tbullet5)) { turr = _root.tbullet5; } if (this.hitTest(_root.tbullet6)) { turr = _root.tbullet6; } if (this.hitTest(_root.tbullet7)) { turr = _root.tbullet7; } if (this.hitTest(_root.tbullet8)) { turr = _root.tbullet8; } if (this.hitTest(_root.tbullet9)) { turr = _root.tbullet9; } if (this.hitTest(_root.tbullet10)) { turr = _root.tbullet10; } if (this.hitTest(turr)) { if (centibox.alive) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = turr._x; boltaction._y = turr._y; turr.fired = false; turr.timer = 0; turr._y = 10000; centibox.hurt = true; if (this.targeted) { if (_root.t1state == 0) { centibox.health -= 1; } if (_root.t1state == 1) { centibox.health -= 2; } if (_root.t1state == 2) { centibox.health -= 3; } if (_root.t1state == 3) { centibox.health -= 4; } if (_root.t1state == 4) { centibox.health -= 5; } } if (this.targeted2) { if (_root.t2state == 0) { centibox.health -= 2; } if (_root.t2state == 1) { centibox.health -= 3; } if (_root.t2state == 2) { centibox.health -= 4; } if (_root.t2state == 3) { centibox.health -= 5; } if (_root.t2state == 4) { centibox.health -= 8; } } if (this.targeted3) { if (_root.t3state == 0) { centibox.health -= 1; } if (_root.t3state == 1) { centibox.health -= 2; } if (_root.t3state == 2) { centibox.health -= 3; } if (_root.t3state == 3) { centibox.health -= 4; } if (_root.t3state == 4) { centibox.health -= 5; } } if (this.targeted4) { if (_root.t4state == 0) { centibox.health -= 1; } if (_root.t4state == 1) { centibox.health -= 2; } if (_root.t4state == 2) { centibox.health -= 3; } if (_root.t4state == 3) { centibox.health -= 4; } if (_root.t4state == 4) { centibox.health -= 5; } } } } if (this.hitTest(_root.bullet0)) { bull = _root.bullet0; } if (this.hitTest(_root.bullet1)) { bull = _root.bullet1; } if (this.hitTest(_root.bullet2)) { bull = _root.bullet2; } if (this.hitTest(_root.bullet3)) { bull = _root.bullet3; } if (this.hitTest(_root.bullet4)) { bull = _root.bullet4; } if (this.hitTest(_root.bullet5)) { bull = _root.bullet5; } if (this.hitTest(_root.bullet6)) { bull = _root.bullet6; } if (this.hitTest(_root.bullet7)) { bull = _root.bullet7; } if (this.hitTest(_root.bullet8)) { bull = _root.bullet8; } if (this.hitTest(_root.bullet9)) { bull = _root.bullet9; } if (this.hitTest(_root.bullet10)) { bull = _root.bullet10; } if (this.hitTest(bull)) { if (centibox.alive && _root.weapon == 0) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; centibox.hurt = true; centibox.health -= 1; } } if (this.hitTest(bull)) { if (centibox.alive && _root.weapon == 1) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; centibox.hurt = true; centibox.health -= 3; } } if (this.hitTest(_root.bullet_mine0)) { mine = _root.bullet_mine0; } if (this.hitTest(_root.bullet_mine1)) { mine = _root.bullet_mine1; } if (this.hitTest(_root.bullet_mine2)) { mine = _root.bullet_mine2; } if (this.hitTest(_root.bullet_mine3)) { mine = _root.bullet_mine3; } if (this.hitTest(_root.bullet_mine4)) { mine = _root.bullet_mine4; } if (this.hitTest(_root.bullet_mine5)) { mine = _root.bullet_mine5; } if (this.hitTest(_root.bullet_mine6)) { mine = _root.bullet_mine6; } if (this.hitTest(_root.bullet_mine7)) { mine = _root.bullet_mine7; } if (this.hitTest(_root.bullet_mine8)) { mine = _root.bullet_mine8; } if (this.hitTest(_root.bullet_mine9)) { mine = _root.bullet_mine9; } if (this.hitTest(_root.bullet_mine10)) { mine = _root.bullet_mine10; } if (this.hitTest(mine) && mine._currentframe == 2 && centibox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = mine._x; boltaction._y = mine._y; mine.gotoAndStop(3); centibox.hurt = true; centibox.health -= 20; } if (this.hitTest(_root.electricity) && centibox.alive && !centibox.hurt) { this.enemy.gotoAndStop('hurt'); centibox.hurt = true; centibox.health -= 2; } if (this.hitTest(_root.bullet_goop0)) { goop = _root.bullet_goop0; } if (this.hitTest(_root.bullet_goop1)) { goop = _root.bullet_goop1; } if (this.hitTest(_root.bullet_goop2)) { goop = _root.bullet_goop2; } if (this.hitTest(_root.bullet_goop3)) { goop = _root.bullet_goop3; } if (this.hitTest(_root.bullet_goop4)) { goop = _root.bullet_goop4; } if (this.hitTest(_root.bullet_goop5)) { goop = _root.bullet_goop5; } if (this.hitTest(_root.bullet_goop6)) { goop = _root.bullet_goop6; } if (this.hitTest(_root.bullet_goop7)) { goop = _root.bullet_goop7; } if (this.hitTest(_root.bullet_goop8)) { goop = _root.bullet_goop8; } if (this.hitTest(_root.bullet_goop9)) { goop = _root.bullet_goop9; } if (this.hitTest(_root.bullet_goop10)) { goop = _root.bullet_goop10; } if (this.hitTest(goop) && centibox.alive && !centibox.hurt && !this.goopstuck && goop._currentframe == 1) { goop.fired = false; this.goopstuck = true; centibox.spd = 0.5; centibox.hurt = true; centibox.health -= 1; } if (this.hitTest(_root.suction) && centibox.alive && !centibox.hurt && !_root.suction.suck) { sucker = _root.suction; sucker.suck = true; centibox.sucked = true; } if (this.hitTest(_root.headbullet) && _root.headbullet._currentframe !== 1 && _root.headbullet._currentframe !== 5 && centibox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = __root.headbullet._x; boltaction._y = _root.headbullet._y; _root.headbullet.gotoAndStop(5); centibox.hurt = true; centibox.health -= 20; } if (this.goopstuck) { this.goopani.gotoAndStop(2); this.goopani._xscale += 0.5; this.goopani._yscale += 0.5; this.goopani._rotation += 0.5; if (this.goopani._yscale >= 200) { centibox.health -= 10; } } if (centibox.sucked) { this._xscale -= 5; this._yscale -= 5; this._alpha -= 5; centibox.attack = false; drag = accuracy; centibox._x += (_root.char._x - _x) * drag; centibox._y += (_root.char._y - _y) * drag; if (this._alpha <= 1) { _root.loadedammo = 1; centibox.alive = false; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } --_root.enemies; centibox.removeMovieClip(); this.removeMovieClip(); } } if (this._y > 780) { this.alive = false; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } --_root.enemies; centibox.removeMovieClip(); this.removeMovieClip(); } if (centibox.health <= 0 && !_root.pause) { centibox.hurt = false; centibox.alive = false; this.enemy.gotoAndStop('death'); this.goopani.gotoAndStop(1); centibox.removeMovieClip(); rescource = _root.res.duplicateMovieClip('res_' + _root.rc, _root.getNextHighestDepth()); ++_root.rc; rescource.dropx = this._x; rescource.dropy = this._y; rescource.addtoscreen = true; rescource.amount = random(20) + 5; --_root.enemies; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } } if (!centibox.alive && this.enemy.explode._currentframe == 23 or !_root.alive or _root.sources.health <= 1 or _root.restart) { centibox.removeMovieClip(); this.removeMovieClip(); trace('removing'); } } } } instance spawn of movieClip 248 { onClipEvent (load) { this._visible = false; } } instance spawn2 of movieClip 248 { onClipEvent (load) { this._visible = false; } } instance box2 of movieClip 248 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { this.gate = 0; this.spd = 2; this.modes = 1; this.alive = true; this.fallspeed = 0; this.health = 10; this.bouncing = 8; this.hurt = false; } } onClipEvent (enterFrame) { if (!_root.pause && this.alive && !this.sucked && !_root.shop1 && !_root.shop2) { attackplayer = function () { if (this.hitTest(_root.char)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.char) && this.attack) { this.attack = false; } if (!this.hitTest(_root.char) && !this.attack) { this.modes = 1; if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; attacksource = function () { if (this.hitTest(_root.sources)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.sources) && !this.attack) { this.modes = 3; if (_root.sources._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.sources._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; checkproximity(); checkproximity = function () { dist_player = 100; dx = _x - _root.char._x; dy = _y - _root.char._y; this.dist = Math.sqrt(dx * dx + dy * dy); if (this.dist < dist_player) { this.in_range = true; } else { this.in_range = false; } }; if (this.hurt) { if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { if (!_root.gate.hitTest(this._x + 20, _y, true)) { if (!_root.gate2.hitTest(this._x + 20, _y, true)) { this._x += this.bouncing; } } } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { if (!_root.gate.hitTest(this._x - 20, _y, true)) { if (!_root.gate2.hitTest(this._x - 20, _y, true)) { this._x -= this.bouncing; } } } } this.bouncing -= 2; if (this.bouncing <= 0) { this.bouncing = 8; this.hurt = false; if (this.attack) { this.attack = false; } } } if (!this.collide) { if (this.hitTest(_root.gate) && _root.gate.health > 1) { this.gate = 1; } if (this.hitTest(_root.gate2) && _root.gate2.health > 1) { this.gate = 2; } if (this.gate !== 0) { this.collide = true; } } if (!this.hitTest(_root.gate) && this.gate == 1 && this.collide or _root.gate.health <= 1 && this.gate == 1 && this.collide) { this.collide = false; this.gate = 0; } if (!this.hitTest(_root.gate2) && this.gate == 2 && this.collide or _root.gate2.health <= 1 && this.gate == 2 && this.collide) { this.collide = false; this.gate = 0; } if (!this.collide) { if (!this.hurt && this.in_range && !this.hitTest(_root.sources)) { attackplayer(); } if (!this.hurt && !this.in_range or this.hitTest(_root.sources) && !this.hurt) { attacksource(); } } if (this.hitTest(_root.gate) && !this.hurt && _root.gate.health > 1 or this.hitTest(_root.gate2) && !this.hurt && _root.gate2.health > 1) { this.modes = 2; this.attack = true; } if (!_root.BG.hitTest(this._x, _y + 10, true) && !this.inair) { this.inair = true; } while (_root.BG.hitTest(this._x, _y + 1, true)) { this.inair = false; this._y -= 0.1; this.fallspeed = 0; } if (this.inair) { this._y += this.fallspeed; this.fallspeed += 1; } if (this.fallspeed > 20 && this.inair) { this.fallspeed = 20; } } } } movieClip 350 { } movieClip 353 { } movieClip 356 { } movieClip 357 { } movieClip 358 { frame 53 { stop(); } } movieClip 359 { frame 6 { stop(); } } movieClip 360 { frame 23 { stop(); } } movieClip 361 { frame 1 { stop(); } instance explode of movieClip 360 { onClipEvent (load) { if (_root.sfx) { _root.exploding = true; _root.playsound = true; } } } } movieClip 362 { frame 1 { stop(); } } instance enemy2 of movieClip 362 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { accuracy = 0.25; this._visible = true; jawsbox = _root.box2.duplicateMovieClip('jaws_' + _root.boxcount, _root.getNextHighestDepth()); ++_root.boxcount; ++_root.enemies; jawsbox._x = this._x; jawsbox._y = this._y; jawsbox.addedtostage = true; } } onClipEvent (enterFrame) { if (jawsbox.alive && this.addedtostage) { if (!_root.pause && !_root.shop1 && !_root.shop2 && !this._visible && _root.changer._currentframe <= 15) { this._visible = true; } if (this._visible) { if (_root.pause or _root.shop1 or _root.shop2 or _root.changer._currentframe > 15) { this._visible = false; } } } if (!_root.pause && jawsbox.alive && this.addedtostage && !_root.shop1 && !_root.shop2) { this._x = jawsbox._x; this._y = jawsbox._y - 15; if (!jawsbox.attack && !jawsbox.hurt) { if (jawsbox.modes == 1 && this._x < _root.char._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (jawsbox.modes == 1 && this._x > _root.char._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (jawsbox.modes == 1 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } if (jawsbox.modes == 3 && this._x < _root.sources._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (jawsbox.modes == 3 && this._x > _root.sources._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (jawsbox.modes == 3 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } } if (_root.turret1placed) { if (this.hitTest(_root.zone1) && !_root.targeted1 && !this.targeted) { _root.targeted1 = true; this.targeted = true; } if (!this.hitTest(_root.zone1) && _root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted1 && this.targeted) { rotatie = 180 + (Math.atan2(_root.turret1._y - this._y, _root.turret1._x - this._x) / Math.PI) * 180; _root.turret1._rotation = rotatie; } } if (_root.turret2placed) { if (this.hitTest(_root.zone1) && !_root.targeted2 && !this.targeted2) { _root.targeted2 = true; this.targeted2 = true; } if (!this.hitTest(_root.zone1) && _root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted2 && this.targeted2) { rotatie = 180 + (Math.atan2(_root.turret2._y - this._y, _root.turret2._x - this._x) / Math.PI) * 180; _root.turret2._rotation = rotatie; } } if (_root.turret3placed) { if (this.hitTest(_root.zone2) && !_root.targeted3 && !this.targeted3) { _root.targeted3 = true; this.targeted3 = true; } if (!this.hitTest(_root.zone2) && _root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted3 && this.targeted3) { rotatie = 180 + (Math.atan2(_root.turret3._y - this._y, _root.turret3._x - this._x) / Math.PI) * 180; _root.turret3._rotation = rotatie; } } if (_root.turret4placed) { if (this.hitTest(_root.zone2) && !_root.targeted4 && !this.targeted4) { _root.targeted4 = true; this.targeted4 = true; } if (!this.hitTest(_root.zone2) && _root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } if (_root.targeted4 && this.targeted4) { rotatie = 180 + (Math.atan2(_root.turret4._y - this._y, _root.turret4._x - this._x) / Math.PI) * 180; _root.turret4._rotation = rotatie; } } if (!jawsbox.hurt) { if (jawsbox.modes == 2 && this.enemy._currentframe !== 'attack' && !this.attackphase) { this.enemy.gotoAndStop('attack'); } if (jawsbox.modes == 2 && this.enemy.attacker._currentframe == 53) { this.attackphase = true; jawsbox.health -= 10; _root.damlocx = this._x; } if (_root.gate._currentframe == 1 && this.hitTest(_root.gate) && this.attackphase) { _root.gate.health -= 20; this.attackphase = false; if (_root.sfx) { _root.shieldhurt = true; _root.playsound = true; } } if (_root.gate2._currentframe == 1 && this.hitTest(_root.gate2) && this.attackphase) { _root.gate2.health -= 20; this.attackphase = false; if (_root.sfx) { _root.shieldhurt = true; _root.playsound = true; } } } if (this.hitTest(_root.tbullet0)) { turr = _root.tbullet0; } if (this.hitTest(_root.tbullet1)) { turr = _root.tbullet1; } if (this.hitTest(_root.tbullet2)) { turr = _root.tbullet2; } if (this.hitTest(_root.tbullet3)) { turr = _root.tbullet3; } if (this.hitTest(_root.tbullet4)) { turr = _root.tbullet4; } if (this.hitTest(_root.tbullet5)) { turr = _root.tbullet5; } if (this.hitTest(_root.tbullet6)) { turr = _root.tbullet6; } if (this.hitTest(_root.tbullet7)) { turr = _root.tbullet7; } if (this.hitTest(_root.tbullet8)) { turr = _root.tbullet8; } if (this.hitTest(_root.tbullet9)) { turr = _root.tbullet9; } if (this.hitTest(_root.tbullet10)) { turr = _root.tbullet10; } if (this.hitTest(turr)) { if (jawsbox.alive) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = turr._x; boltaction._y = turr._y; turr.fired = false; turr.timer = 0; turr._y = 10000; jawsbox.hurt = true; if (this.targeted) { if (_root.t1state == 0) { jawsbox.health -= 1; } if (_root.t1state == 1) { jawsbox.health -= 2; } if (_root.t1state == 2) { jawsbox.health -= 3; } if (_root.t1state == 3) { jawsbox.health -= 4; } if (_root.t1state == 4) { jawsbox.health -= 5; } } if (this.targeted2) { if (_root.t2state == 0) { jawsbox.health -= 1; } if (_root.t2state == 1) { jawsbox.health -= 2; } if (_root.t2state == 2) { jawsbox.health -= 3; } if (_root.t2state == 3) { jawsbox.health -= 4; } if (_root.t2state == 4) { jawsbox.health -= 5; } } if (this.targeted3) { if (_root.t3state == 0) { jawsbox.health -= 1; } if (_root.t3state == 1) { jawsbox.health -= 2; } if (_root.t3state == 2) { jawsbox.health -= 3; } if (_root.t3state == 3) { jawsbox.health -= 4; } if (_root.t3state == 4) { jawsbox.health -= 5; } } if (this.targeted4) { if (_root.t4state == 0) { jawsbox.health -= 1; } if (_root.t4state == 1) { jawsbox.health -= 2; } if (_root.t4state == 2) { jawsbox.health -= 3; } if (_root.t4state == 3) { jawsbox.health -= 4; } if (_root.t4state == 4) { jawsbox.health -= 5; } } } } if (this.hitTest(_root.bullet0)) { bull = _root.bullet0; } if (this.hitTest(_root.bullet1)) { bull = _root.bullet1; } if (this.hitTest(_root.bullet2)) { bull = _root.bullet2; } if (this.hitTest(_root.bullet3)) { bull = _root.bullet3; } if (this.hitTest(_root.bullet4)) { bull = _root.bullet4; } if (this.hitTest(_root.bullet5)) { bull = _root.bullet5; } if (this.hitTest(_root.bullet6)) { bull = _root.bullet6; } if (this.hitTest(_root.bullet7)) { bull = _root.bullet7; } if (this.hitTest(_root.bullet8)) { bull = _root.bullet8; } if (this.hitTest(_root.bullet9)) { bull = _root.bullet9; } if (this.hitTest(_root.bullet10)) { bull = _root.bullet10; } if (this.hitTest(bull)) { if (jawsbox.alive && _root.weapon == 0) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; jawsbox.hurt = true; jawsbox.health -= 1; } } if (this.hitTest(bull)) { if (jawsbox.alive && _root.weapon == 1) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; jawsbox.hurt = true; jawsbox.health -= 3; } } if (this.hitTest(_root.bullet_mine0)) { mine = _root.bullet_mine0; } if (this.hitTest(_root.bullet_mine1)) { mine = _root.bullet_mine1; } if (this.hitTest(_root.bullet_mine2)) { mine = _root.bullet_mine2; } if (this.hitTest(_root.bullet_mine3)) { mine = _root.bullet_mine3; } if (this.hitTest(_root.bullet_mine4)) { mine = _root.bullet_mine4; } if (this.hitTest(_root.bullet_mine5)) { mine = _root.bullet_mine5; } if (this.hitTest(_root.bullet_mine6)) { mine = _root.bullet_mine6; } if (this.hitTest(_root.bullet_mine7)) { mine = _root.bullet_mine7; } if (this.hitTest(_root.bullet_mine8)) { mine = _root.bullet_mine8; } if (this.hitTest(_root.bullet_mine9)) { mine = _root.bullet_mine9; } if (this.hitTest(_root.bullet_mine10)) { mine = _root.bullet_mine10; } if (this.hitTest(mine) && mine._currentframe == 2 && jawsbox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = mine._x; boltaction._y = mine._y; mine.gotoAndStop(3); jawsbox.hurt = true; jawsbox.health -= 20; } if (this.hitTest(_root.electricity) && jawsbox.alive && !jawsbox.hurt) { this.enemy.gotoAndStop('hurt'); jawsbox.hurt = true; jawsbox.health -= 2; } if (this.hitTest(_root.bullet_goop0)) { goop = _root.bullet_goop0; } if (this.hitTest(_root.bullet_goop1)) { goop = _root.bullet_goop1; } if (this.hitTest(_root.bullet_goop2)) { goop = _root.bullet_goop2; } if (this.hitTest(_root.bullet_goop3)) { goop = _root.bullet_goop3; } if (this.hitTest(_root.bullet_goop4)) { goop = _root.bullet_goop4; } if (this.hitTest(_root.bullet_goop5)) { goop = _root.bullet_goop5; } if (this.hitTest(_root.bullet_goop6)) { goop = _root.bullet_goop6; } if (this.hitTest(_root.bullet_goop7)) { goop = _root.bullet_goop7; } if (this.hitTest(_root.bullet_goop8)) { goop = _root.bullet_goop8; } if (this.hitTest(_root.bullet_goop9)) { goop = _root.bullet_goop9; } if (this.hitTest(_root.bullet_goop10)) { goop = _root.bullet_goop10; } if (this.hitTest(goop) && jawsbox.alive && !jawsbox.hurt && !this.goopstuck && goop._currentframe == 1) { goop.fired = false; this.goopstuck = true; jawsbox.spd = 0.5; jawsbox.hurt = true; jawsbox.health -= 1; } if (this.hitTest(_root.suction) && jawsbox.alive && !jawsbox.hurt && !_root.suction.suck) { sucker = _root.suction; sucker.suck = true; jawsbox.sucked = true; } if (this.hitTest(_root.headbullet) && _root.headbullet._currentframe !== 1 && _root.headbullet._currentframe !== 5 && jawsbox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = __root.headbullet._x; boltaction._y = _root.headbullet._y; _root.headbullet.gotoAndStop(5); jawsbox.hurt = true; jawsbox.health -= 10; } if (this.goopstuck) { this.goopani.gotoAndStop(2); this.goopani._xscale += 0.5; this.goopani._yscale += 0.5; this.goopani._rotation += 0.5; if (this.goopani._yscale >= 180) { jawsbox.health -= 10; } } if (jawsbox.sucked) { this._xscale -= 5; this._yscale -= 5; this._alpha -= 5; jawsbox.attack = false; drag = accuracy; jawsbox._x += (_root.char._x - _x) * drag; jawsbox._y += (_root.char._y - _y) * drag; if (this._alpha <= 1) { _root.loadedammo = 2; jawsbox.alive = false; --_root.enemies; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } jawsbox.removeMovieClip(); this.removeMovieClip(); } } if (this._y > 780) { this.alive = false; --_root.enemies; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } jawsbox.removeMovieClip(); this.removeMovieClip(); } if (jawsbox.health <= 0 && !_root.pause) { this.goopani.gotoAndStop(1); jawsbox.hurt = false; jawsbox.alive = false; this.enemy.gotoAndStop('death'); jawsbox.removeMovieClip(); this.goopani.gotoAndStop(1); rescource = _root.res.duplicateMovieClip('res_' + _root.rc, _root.getNextHighestDepth()); ++_root.rc; rescource.dropx = this._x; rescource.dropy = this._y; rescource.addtoscreen = true; rescource.amount = random(30) + 10; --_root.enemies; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } if (this.hitTest(_root.sources)) { _root.sources.health -= 2; } if (this.hitTest(_root.char) && !_root.charhurt) { _root.charhurt = true; _root.char.health -= 20; _root.damlocx = this._x; } } if (!jawsbox.alive && this.enemy.explode._currentframe == 23 or !_root.alive or _root.sources.health <= 1 or _root.restart) { jawsbox.removeMovieClip(); this.removeMovieClip(); } } } } instance box3 of movieClip 248 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { this.gate = 0; this.spd = 4; this.modes = 1; this.alive = true; this.fallspeed = 0; this.health = 50; this.bouncing = 5; this.hurt = false; } } onClipEvent (enterFrame) { if (!_root.pause && this.alive && !this.sucked && !_root.shop1 && !_root.shop2) { attackplayer = function () { if (this.hitTest(_root.char)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.char) && this.attack) { this.attack = false; } if (!this.hitTest(_root.char) && !this.attack) { this.modes = 1; if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; attacksource = function () { if (this.hitTest(_root.sources)) { this.modes = 2; this.attack = true; } if (!this.hitTest(_root.sources) && !this.attack) { this.modes = 3; if (_root.sources._x < this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; } } if (_root.sources._x > this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; } } } }; checkproximity(); checkproximity = function () { dist_player = 100; dx = _x - _root.char._x; dy = _y - _root.char._y; this.dist = Math.sqrt(dx * dx + dy * dy); if (this.dist < dist_player) { this.in_range = true; } else { this.in_range = false; } }; if (this.hurt) { if (_root.char._x < this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { if (!_root.gate.hitTest(this._x + 20, _y, true)) { if (!_root.gate2.hitTest(this._x + 20, _y, true)) { this._x += this.bouncing; } } } } if (_root.char._x > this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { if (!_root.gate.hitTest(this._x - 20, _y, true)) { if (!_root.gate2.hitTest(this._x - 20, _y, true)) { this._x -= this.bouncing; } } } } this.bouncing -= 2; if (this.bouncing <= 0) { this.bouncing = 5; this.hurt = false; if (this.attack) { this.attack = false; } } } if (!this.collide) { if (this.hitTest(_root.gate) && _root.gate.health > 1) { this.gate = 1; } if (this.hitTest(_root.gate2) && _root.gate2.health > 1) { this.gate = 2; } if (this.gate !== 0) { this.collide = true; } } if (!this.hitTest(_root.gate) && this.gate == 1 && this.collide or _root.gate.health <= 1 && this.gate == 1 && this.collide) { this.collide = false; this.gate = 0; } if (!this.hitTest(_root.gate2) && this.gate == 2 && this.collide or _root.gate2.health <= 1 && this.gate == 2 && this.collide) { this.collide = false; this.gate = 0; } if (!this.collide) { if (!this.hurt && this.in_range && !this.hitTest(_root.sources)) { attackplayer(); } if (!this.hurt && !this.in_range or this.hitTest(_root.sources) && !this.hurt) { attacksource(); } } if (this.hitTest(_root.gate) && !this.hurt && _root.gate.health > 1 or this.hitTest(_root.gate2) && !this.hurt && _root.gate2.health > 1) { this.modes = 2; this.attack = true; } if (!_root.BG.hitTest(this._x, _y + 10, true) && !this.inair) { this.inair = true; } while (_root.BG.hitTest(this._x, _y + 1, true)) { this.inair = false; this._y -= 0.1; this.fallspeed = 0; } if (this.inair) { this._y += this.fallspeed; this.fallspeed += 1; } if (this.fallspeed > 20 && this.inair) { this.fallspeed = 20; } } } } movieClip 365 { } movieClip 368 { } movieClip 371 { } movieClip 374 { } movieClip 375 { } movieClip 378 { } movieClip 379 { } movieClip 380 { } movieClip 381 { } movieClip 382 { frame 23 { stop(); } } movieClip 383 { frame 1 { stop(); } instance explode of movieClip 382 { onClipEvent (load) { if (_root.sfx) { _root.exploding = true; _root.playsound = true; } } } } movieClip 384 { frame 1 { stop(); } } instance enemy3 of movieClip 384 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { accuracy = 0.25; this._visible = true; boombox = _root.box3.duplicateMovieClip('boombox_' + _root.boxcount, _root.getNextHighestDepth()); ++_root.boxcount; ++_root.enemies; boombox._x = this._x; boombox._y = this._y; boombox.addedtostage = true; } } onClipEvent (enterFrame) { if (boombox.alive && this.addedtostage) { if (!_root.pause && !_root.shop1 && !_root.shop2 && !this._visible && _root.changer._currentframe <= 15) { this._visible = true; } if (this._visible) { if (_root.pause or _root.shop1 or _root.shop2 or _root.changer._currentframe > 15) { this._visible = false; } } } if (!_root.pause && boombox.alive && this.addedtostage && !_root.shop1 && !_root.shop2) { this._x = boombox._x; this._y = boombox._y - 40; if (!boombox.attack && !boombox.hurt) { if (boombox.modes == 1 && this._x < _root.char._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (boombox.modes == 1 && this._x > _root.char._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (boombox.modes == 1 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } if (boombox.modes == 3 && this._x < _root.sources._x && this._currentframe !== 2) { this.gotoAndStop(2); } if (boombox.modes == 3 && this._x > _root.sources._x && this._currentframe !== 1) { this.gotoAndStop(1); } if (boombox.modes == 3 && this.enemy._currentframe !== 'move') { this.enemy.gotoAndStop('move'); } } if (_root.turret1placed) { if (this.hitTest(_root.zone1) && !_root.targeted1 && !this.targeted) { _root.targeted1 = true; this.targeted = true; } if (!this.hitTest(_root.zone1) && _root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted1 && this.targeted) { rotatie = 180 + (Math.atan2(_root.turret1._y - this._y, _root.turret1._x - this._x) / Math.PI) * 180; _root.turret1._rotation = rotatie; } } if (_root.turret2placed) { if (this.hitTest(_root.zone1) && !_root.targeted2 && !this.targeted2) { _root.targeted2 = true; this.targeted2 = true; } if (!this.hitTest(_root.zone1) && _root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted2 && this.targeted2) { rotatie = 180 + (Math.atan2(_root.turret2._y - this._y, _root.turret2._x - this._x) / Math.PI) * 180; _root.turret2._rotation = rotatie; } } if (_root.turret3placed) { if (this.hitTest(_root.zone2) && !_root.targeted3 && !this.targeted3) { _root.targeted3 = true; this.targeted3 = true; } if (!this.hitTest(_root.zone2) && _root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted3 && this.targeted3) { rotatie = 180 + (Math.atan2(_root.turret3._y - this._y, _root.turret3._x - this._x) / Math.PI) * 180; _root.turret3._rotation = rotatie; } } if (_root.turret4placed) { if (this.hitTest(_root.zone2) && !_root.targeted4 && !this.targeted4) { _root.targeted4 = true; this.targeted4 = true; } if (!this.hitTest(_root.zone2) && _root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } if (_root.targeted4 && this.targeted4) { rotatie = 180 + (Math.atan2(_root.turret4._y - this._y, _root.turret4._x - this._x) / Math.PI) * 180; _root.turret4._rotation = rotatie; } } if (!boombox.hurt) { if (boombox.modes == 2 && this.enemy._currentframe !== 'attack') { this.enemy.gotoAndStop('attack'); } if (this.hitTest(_root.sources) && centibox.attack && this.enemy.attackanim._currentframe >= 24 && this.enemy.attackanim._currentframe <= 30) { _root.sources.health -= 2; } if (boombox.attack && this.enemy.attackanim._currentframe >= 16) { boombox.attack = false; } if (!_root.charhurt && this.hitTest(_root.char) && boombox.attack && this.enemy.attackanim._currentframe >= 5 && this.enemy.attackanim._currentframe <= 10) { _root.charhurt = true; _root.char.health -= 10; _root.damlocx = this._x; } if (_root.gate._currentframe == 1 && this.hitTest(_root.gate) && boombox.attack && this.enemy.attackanim._currentframe >= 5 && this.enemy.attackanim._currentframe <= 10) { _root.gate.health -= 1; if (_root.sfx && this.enemy.attackanim._currentframe == 5) { _root.shieldhurt = true; _root.playsound = true; } } if (_root.gate2._currentframe == 1 && this.hitTest(_root.gate2) && boombox.attack && this.enemy.attackanim._currentframe >= 5 && this.enemy.attackanim._currentframe <= 10) { _root.gate2.health -= 1; if (_root.sfx && this.enemy.attackanim._currentframe == 5) { _root.shieldhurt = true; _root.playsound = true; } } } if (this.hitTest(_root.tbullet0)) { turr = _root.tbullet0; } if (this.hitTest(_root.tbullet1)) { turr = _root.tbullet1; } if (this.hitTest(_root.tbullet2)) { turr = _root.tbullet2; } if (this.hitTest(_root.tbullet3)) { turr = _root.tbullet3; } if (this.hitTest(_root.tbullet4)) { turr = _root.tbullet4; } if (this.hitTest(_root.tbullet5)) { turr = _root.tbullet5; } if (this.hitTest(_root.tbullet6)) { turr = _root.tbullet6; } if (this.hitTest(_root.tbullet7)) { turr = _root.tbullet7; } if (this.hitTest(_root.tbullet8)) { turr = _root.tbullet8; } if (this.hitTest(_root.tbullet9)) { turr = _root.tbullet9; } if (this.hitTest(_root.tbullet10)) { turr = _root.tbullet10; } if (this.hitTest(turr)) { if (boombox.alive) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = turr._x; boltaction._y = turr._y; turr.fired = false; turr.timer = 0; turr._y = 10000; boombox.hurt = true; if (this.targeted) { if (_root.t1state == 0) { boombox.health -= 1; } if (_root.t1state == 1) { boombox.health -= 2; } if (_root.t1state == 2) { boombox.health -= 3; } if (_root.t1state == 3) { boombox.health -= 4; } if (_root.t1state == 4) { boombox.health -= 5; } } if (this.targeted2) { if (_root.t2state == 0) { boombox.health -= 1; } if (_root.t2state == 1) { boombox.health -= 2; } if (_root.t2state == 2) { boombox.health -= 3; } if (_root.t2state == 3) { boombox.health -= 4; } if (_root.t2state == 4) { boombox.health -= 5; } } if (this.targeted3) { if (_root.t3state == 0) { boombox.health -= 1; } if (_root.t3state == 1) { boombox.health -= 2; } if (_root.t3state == 2) { boombox.health -= 3; } if (_root.t3state == 3) { boombox.health -= 4; } if (_root.t3state == 4) { boombox.health -= 5; } } if (this.targeted4) { if (_root.t4state == 0) { boombox.health -= 1; } if (_root.t4state == 1) { boombox.health -= 2; } if (_root.t4state == 2) { boombox.health -= 3; } if (_root.t4state == 3) { boombox.health -= 4; } if (_root.t4state == 4) { boombox.health -= 5; } } } } if (this.hitTest(_root.bullet0)) { bull = _root.bullet0; } if (this.hitTest(_root.bullet1)) { bull = _root.bullet1; } if (this.hitTest(_root.bullet2)) { bull = _root.bullet2; } if (this.hitTest(_root.bullet3)) { bull = _root.bullet3; } if (this.hitTest(_root.bullet4)) { bull = _root.bullet4; } if (this.hitTest(_root.bullet5)) { bull = _root.bullet5; } if (this.hitTest(_root.bullet6)) { bull = _root.bullet6; } if (this.hitTest(_root.bullet7)) { bull = _root.bullet7; } if (this.hitTest(_root.bullet8)) { bull = _root.bullet8; } if (this.hitTest(_root.bullet9)) { bull = _root.bullet9; } if (this.hitTest(_root.bullet10)) { bull = _root.bullet10; } if (this.hitTest(bull)) { if (boombox.alive && _root.weapon == 0) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; boombox.hurt = true; boombox.health -= 1; } } if (this.hitTest(bull)) { if (boombox.alive && _root.weapon == 1) { this.enemy.gotoAndStop('hurt'); boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = bull._x; boltaction._y = bull._y; bull.fired = false; bull.timer = 0; bull._y = 10000; boombox.hurt = true; boombox.health -= 2; } } if (this.hitTest(_root.bullet_mine0)) { mine = _root.bullet_mine0; } if (this.hitTest(_root.bullet_mine1)) { mine = _root.bullet_mine1; } if (this.hitTest(_root.bullet_mine2)) { mine = _root.bullet_mine2; } if (this.hitTest(_root.bullet_mine3)) { mine = _root.bullet_mine3; } if (this.hitTest(_root.bullet_mine4)) { mine = _root.bullet_mine4; } if (this.hitTest(_root.bullet_mine5)) { mine = _root.bullet_mine5; } if (this.hitTest(_root.bullet_mine6)) { mine = _root.bullet_mine6; } if (this.hitTest(_root.bullet_mine7)) { mine = _root.bullet_mine7; } if (this.hitTest(_root.bullet_mine8)) { mine = _root.bullet_mine8; } if (this.hitTest(_root.bullet_mine9)) { mine = _root.bullet_mine9; } if (this.hitTest(_root.bullet_mine10)) { mine = _root.bullet_mine10; } if (this.hitTest(mine) && mine._currentframe == 2 && boombox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = mine._x; boltaction._y = mine._y; mine.gotoAndStop(3); boombox.hurt = true; boombox.health -= 25; } if (this.hitTest(_root.electricity) && boombox.alive && !boombox.hurt) { this.enemy.gotoAndStop('hurt'); boombox.hurt = true; boombox.health -= 2; } if (this.hitTest(_root.bullet_goop0)) { goop = _root.bullet_goop0; } if (this.hitTest(_root.bullet_goop1)) { goop = _root.bullet_goop1; } if (this.hitTest(_root.bullet_goop2)) { goop = _root.bullet_goop2; } if (this.hitTest(_root.bullet_goop3)) { goop = _root.bullet_goop3; } if (this.hitTest(_root.bullet_goop4)) { goop = _root.bullet_goop4; } if (this.hitTest(_root.bullet_goop5)) { goop = _root.bullet_goop5; } if (this.hitTest(_root.bullet_goop6)) { goop = _root.bullet_goop6; } if (this.hitTest(_root.bullet_goop7)) { goop = _root.bullet_goop7; } if (this.hitTest(_root.bullet_goop8)) { goop = _root.bullet_goop8; } if (this.hitTest(_root.bullet_goop9)) { goop = _root.bullet_goop9; } if (this.hitTest(_root.bullet_goop10)) { goop = _root.bullet_goop10; } if (this.hitTest(goop) && boombox.alive && !boombox.hurt && !this.goopstuck && goop._currentframe == 1) { goop.fired = false; this.goopstuck = true; boombox.spd = 0.5; boombox.hurt = true; boombox.health -= 1; } if (this.hitTest(_root.headbullet) && _root.headbullet._currentframe !== 1 && _root.headbullet._currentframe !== 5 && boombox.alive) { boltaction = _root.bolt.duplicateMovieClip('bolt_', _root.getNextHighestDepth()); boltaction.addedtostage = true; boltaction._x = __root.headbullet._x; boltaction._y = _root.headbullet._y; _root.headbullet.gotoAndStop(5); boombox.hurt = true; boombox.health -= 10; } if (this.goopstuck) { this.goopani.gotoAndStop(2); this.goopani._xscale += 0.2; this.goopani._yscale += 0.2; this.goopani._rotation += 0.5; if (this.goopani._yscale >= 200) { boombox.health -= 50; } } if (this._y > 780) { this.alive = false; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } --_root.enemies; boombox.removeMovieClip(); this.removeMovieClip(); } if (boombox.health <= 0 && !_root.pause) { this.goopani.gotoAndStop(1); boombox.hurt = false; boombox.alive = false; this.enemy.gotoAndStop('death'); rescource = _root.res.duplicateMovieClip('res_' + _root.rc, _root.getNextHighestDepth()); boombox.removeMovieClip(); ++_root.rc; rescource.dropx = this._x; rescource.dropy = this._y; rescource.addtoscreen = true; rescource.amount = random(50) + 10; --_root.enemies; if (_root.targeted1 && this.targeted) { _root.targeted1 = false; this.targeted = false; } if (_root.targeted2 && this.targeted2) { _root.targeted2 = false; this.targeted2 = false; } if (_root.targeted3 && this.targeted3) { _root.targeted3 = false; this.targeted3 = false; } if (_root.targeted4 && this.targeted4) { _root.targeted4 = false; this.targeted4 = false; } } if (!boombox.alive && this.enemy.explode._currentframe == 23 or !_root.alive or _root.sources.health <= 1 or _root.restart) { boombox.removeMovieClip(); this.removeMovieClip(); } } } } instance box of movieClip 248 { onClipEvent (load) { this.spd = 8; this.fallspeed = 0; this.jumpspeed = 15; this.bouncing = 15; _root.charmodes = 1; _root.charhurt = false; _root.gotdoublejump = false; this._visible = false; } onClipEvent (enterFrame) { if (!_root.pause && _root.alive && _root.sources.health > 1 && !_root.shop1 && !_root.shop2) { if (_root.cursor._x > this._x && _root.char._currentframe !== 1) { _root.char.gotoAndStop(1); } if (_root.cursor._x < this._x && _root.char._currentframe !== 2) { _root.char.gotoAndStop(2); } if (Key.isDown(65) or Key.isDown(37)) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.spd; ++_root.backgrounds.stars._x; if (_root.charmodes == 1) { } } } if (Key.isDown(68) or Key.isDown(39)) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.spd; --_root.backgrounds.stars._x; if (_root.charmodes == 1) { } } } if (_root.charhurt) { if (_root.damlocx > this._x) { if (!_root.BG.hitTest(this._x - 20, _y, true)) { this._x -= this.bouncing; } } if (_root.damlocx < this._x) { if (!_root.BG.hitTest(this._x + 20, _y, true)) { this._x += this.bouncing; } } this.bouncing -= 5; if (this.bouncing <= 0) { this.bouncing = 15; _root.charhurt = false; } } if (!_root.BG.hitTest(this._x, _y + 10, true) && !this.jumping) { this.inair = true; } while (_root.BG.hitTest(this._x, _y + 1, true)) { this.fallspeed = 0; this.doublejumped = false; this.jumped = false; this.inair = false; this._y -= 1.5; } if (!this.inair && _root.charmodes == 1) { if (Key.isDown(38) && !this.jumping or Key.isDown(87) && !this.jumping) { this.jumping = true; if (_root.sfx) { _root.jumpingsound = true; _root.playsound = true; } } } if (!Key.isDown(38) && this.jumping && !Key.isDown(87) && !this.jumped) { this.jumped = true; } if (_root.gotdoublejump && this.jumped && !this.doublejumped) { if (Key.isDown(38) or Key.isDown(87)) { this.fallspeed = 0; this.jumpspeed = 15; this.jumping = true; this.doublejumped = true; if (_root.sfx) { _root.jumpingsound = true; _root.playsound = true; } } } if (_root.charmodes == 2) { if (!_root.BG.hitTest(this._x, _y - 70, true)) { if (Key.isDown(38) or Key.isDown(87)) { this.jumping = false; this.jumpspeed = 15; this.fallspeed = 0; this._y -= this.spd; } } if (Key.isDown(40) or Key.isDown(83)) { this.jumping = false; this.jumpspeed = 15; this.fallspeed = 10; this._y += this.spd; } } if (this.jumping) { this._y -= this.jumpspeed; this.jumpspeed -= 2; } if (_root.BG.hitTest(this._x, _y - 70, true) && this.jumping) { this.jumping = false; this.jumpspeed = 15; } if (this.jumping && this.jumpspeed <= 0) { this.jumping = false; this.jumpspeed = 15; } if (this.inair && !this.jumping && _root.charmodes == 1) { this._y += this.fallspeed; this.fallspeed += 2; } if (this.fallspeed > 20 && this.inair) { this.fallspeed = 20; } } } } movieClip 385 { } movieClip 386 { frame 1 { stop(); } instance ani of movieClip 198 { onClipEvent (enterFrame) { if (!_root.pause) { if (_root.box.inair) { this.gotoAndStop(3); } if (!_root.box.jumped && _root.sources.health > 1) { if (Key.isDown(68) or Key.isDown(39)) { this.gotoAndStop(2); this.ani.play(); } if (Key.isDown(65) or Key.isDown(37)) { this.gotoAndStop(2); this.ani.prevFrame(); if (this.ani._currentframe == 1) { this.ani.gotoAndStop(19); } } else { if (!Key.isDown(65) && !Key.isDown(37) && !Key.isDown(68) && !Key.isDown(39)) { this.gotoAndStop(1); } } } } } } instance char of movieClip 216 { onClipEvent (enterFrame) { if (this._currentframe !== _root.weapon + 1) { this.gotoAndStop(_root.weapon + 1); } } } instance of movieClip 198 { onClipEvent (enterFrame) { if (!_root.pause) { if (_root.box.jumped) { this.gotoAndStop(3); } if (!_root.box.jumped && _root.sources.health > 1) { if (Key.isDown(65) or Key.isDown(37)) { this.gotoAndStop(2); this.ani.play(); } if (Key.isDown(68) or Key.isDown(39)) { this.gotoAndStop(2); this.ani.prevFrame(); if (this.ani._currentframe == 1) { this.ani.gotoAndStop(19); } } else { if (!Key.isDown(65) && !Key.isDown(37) && !Key.isDown(68) && !Key.isDown(39)) { this.gotoAndStop(1); } } } } } } instance char of movieClip 385 { onClipEvent (enterFrame) { if (this._currentframe !== _root.weapon + 1) { this.gotoAndStop(_root.weapon + 1); } } } instance explode of movieClip 302 { onClipEvent (load) { if (_root.sfx) { _root.exploding = true; _root.playsound = true; } } } } instance char of movieClip 386 { onClipEvent (load) { accuracy = 0.6; this.health = 200; _root.weapon = 0; _root.weapon2 = false; _root.weapon3 = false; _root.weapon4 = false; _root.weapon5 = false; _root.loadedammo = 0; _root.gotdoublejump = true; _root.bc = 0; _root.rc = 0; } onClipEvent (enterFrame) { if (!_root.alive && this.health > 1) { _root.alive = true; } if (!_root.pause && _root.alive && _root.sources.health > 1 && !_root.shop1 && !_root.shop2) { drag = accuracy; this._x += (_root.box._x - _x) * drag; this._y += (_root.box._y - _y) * drag; if (Key.isDown(49) && _root.weapon !== 0 && !this.keypush) { _root.weapon = 0; this.keypush = true; if (_root.sfx) { _root.equipped1 = true; _root.playsound = true; } } if (Key.isDown(50) && _root.weapon !== 1 && !this.keypush) { _root.weapon = 1; this.keypush = true; if (_root.sfx) { _root.machequip = true; _root.playsound = true; } } if (Key.isDown(51) && _root.weapon2 && _root.weapon !== 2 && !this.keypush) { _root.weapon = 2; this.keypush = true; if (_root.sfx) { _root.landequip = true; _root.playsound = true; } } if (Key.isDown(52) && _root.weapon3 && _root.weapon !== 3 && !this.keypush) { _root.weapon = 3; this.keypush = true; if (_root.sfx) { _root.lightequip = true; _root.playsound = true; } } if (Key.isDown(53) && _root.weapon4 && _root.weapon !== 4 && !this.keypush) { _root.weapon = 4; this.keypush = true; if (_root.sfx) { _root.goopplay = true; _root.playsound = true; } } if (Key.isDown(54) && _root.weapon5 && _root.weapon !== 5 && !this.keypush) { _root.weapon = 5; this.keypush = true; if (_root.sfx) { _root.vacplay = true; _root.playsound = true; } } if (Key.isDown(55) && _root.healthpack > 0 && !this.keypush) { _root.healthpack -= 1; _root.char.health = 200; this.keypush = true; if (_root.sfx) { _root.mouseclick.start(0, 1); } } if (Key.isDown(81) && !this.keypush) { --_root.weapon; this.keypush = true; if (_root.weapon < 0) { _root.weapon = 5; } if (_root.weapon == 5 && !_root.weapon5) { --_root.weapon; } if (_root.weapon == 4 && !_root.weapon4) { --_root.weapon; } if (_root.weapon == 3 && !_root.weapon3) { --_root.weapon; } if (_root.weapon == 2 && !_root.weapon2) { --_root.weapon; } if (_root.weapon == 0) { if (_root.sfx) { _root.equipped1 = true; _root.playsound = true; } } if (_root.weapon == 1) { if (_root.sfx) { _root.machequip = true; _root.playsound = true; } } if (_root.weapon == 2) { if (_root.sfx) { _root.landequip = true; _root.playsound = true; } } if (_root.weapon == 3) { if (_root.sfx) { _root.lightequip = true; _root.playsound = true; } } if (_root.weapon == 4) { if (_root.sfx) { _root.goopplay = true; _root.playsound = true; } } if (_root.weapon == 5) { if (_root.sfx) { _root.vacplay = true; _root.playsound = true; } } } if (!_root.eselected) { if (Key.isDown(69) && !this.keypush) { ++_root.weapon; this.keypush = true; if (_root.weapon == 2 && !_root.weapon2) { ++_root.weapon; } if (_root.weapon == 3 && !_root.weapon3) { ++_root.weapon; } if (_root.weapon == 4 && !_root.weapon4) { ++_root.weapon; } if (_root.weapon == 5 && !_root.weapon5) { ++_root.weapon; } if (_root.weapon > 5) { _root.weapon = 0; } if (_root.weapon == 0) { if (_root.sfx) { _root.equipped1 = true; _root.playsound = true; } } if (_root.weapon == 1) { if (_root.sfx) { _root.machequip = true; _root.playsound = true; } } if (_root.weapon == 2) { if (_root.sfx) { _root.landequip = true; _root.playsound = true; } } if (_root.weapon == 3) { if (_root.sfx) { _root.lightequip = true; _root.playsound = true; } } if (_root.weapon == 4) { if (_root.sfx) { _root.goopplay = true; _root.playsound = true; } } if (_root.weapon == 5) { if (_root.sfx) { _root.vacplay = true; _root.playsound = true; } } } } if (!Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52) && !Key.isDown(53) && !Key.isDown(54) && !Key.isDown(55) && !Key.isDown(69) && !Key.isDown(81) && this.keypush) { this.keypush = false; } onMouseDown = function () { if (!this.fire && _root.mousestate == 0) { this.fire = true; } }; if (this.fire && !this.shotfired) { if (_root.weapon == 0) { this.char.gun.gotoAndPlay(1); this.shotfired = true; if (_root.bc == 0) { energy = _root.bullet0; } else { if (_root.bc == 1) { energy = _root.bullet1; } else { if (_root.bc == 2) { energy = _root.bullet2; } else { if (_root.bc == 3) { energy = _root.bullet3; } else { if (_root.bc == 4) { energy = _root.bullet4; } else { if (_root.bc == 5) { energy = _root.bullet5; } else { if (_root.bc == 6) { energy = _root.bullet6; } else { if (_root.bc == 7) { energy = _root.bullet7; } else { if (_root.bc == 8) { energy = _root.bullet8; } else { if (_root.bc == 9) { energy = _root.bullet9; } else { if (_root.bc == 10) { energy = _root.bullet10; } } } } } } } } } } } ++_root.bc; if (_root.bc > 10) { _root.bc = 0; } energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = _root.char.char._rotation; energy._rotation = angle + 90; energy.dirx = Math.cos(angle * Math.PI / 180) * 30; energy.diry = Math.sin(angle * Math.PI / 180) * 30; energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 20; energy._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 25; energy._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 25; energy._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 20; energy._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x + 10; } this.firerate = 15; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (_root.weapon == 1 && _root.mgammo > 0) { this.char.gun.gotoAndPlay(1); _root.mgammo -= 1; this.shotfired = true; if (_root.bc == 0) { energy = _root.bullet0; } else { if (_root.bc == 1) { energy = _root.bullet1; } else { if (_root.bc == 2) { energy = _root.bullet2; } else { if (_root.bc == 3) { energy = _root.bullet3; } else { if (_root.bc == 4) { energy = _root.bullet4; } else { if (_root.bc == 5) { energy = _root.bullet5; } else { if (_root.bc == 6) { energy = _root.bullet6; } else { if (_root.bc == 7) { energy = _root.bullet7; } else { if (_root.bc == 8) { energy = _root.bullet8; } else { if (_root.bc == 9) { energy = _root.bullet9; } else { if (_root.bc == 10) { energy = _root.bullet10; } } } } } } } } } } } ++_root.bc; if (_root.bc > 10) { _root.bc = 0; } energy.gotoAndStop(1); energy.timer = 40; energy.fired = true; angle = _root.char.char._rotation; energy._rotation = angle + 90; energy.dirx = Math.cos(angle * Math.PI / 180) * 30; energy.diry = Math.sin(angle * Math.PI / 180) * 30; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 25) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 25; } if (_root.char.char._rotation > 25 && _root.char.char._rotation < 35) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 30; } if (_root.char.char._rotation > 35 && _root.char.char._rotation < 40) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 35; } if (_root.char.char._rotation > 40 && _root.char.char._rotation < 60) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 45; } if (_root.char.char._rotation > 60 && _root.char.char._rotation < 90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 45; energy._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 120) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 45; } if (_root.char.char._rotation > 120 && _root.char.char._rotation < 135) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 40; } if (_root.char.char._rotation > 135 && _root.char.char._rotation < 160) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 30; } if (_root.char.char._rotation > 160 && _root.char.char._rotation < 180) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 20; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -175) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; } if (_root.char.char._rotation > -175 && _root.char.char._rotation < -165) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 10; } if (_root.char.char._rotation > -165 && _root.char.char._rotation < -150) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 10; } if (_root.char.char._rotation > -150 && _root.char.char._rotation < -100) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y; } if (_root.char.char._rotation > -100 && _root.char.char._rotation < -90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y; energy._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < -50) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y; energy._x = this._x + 5; } if (_root.char.char._rotation > -50 && _root.char.char._rotation < -25) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 10; energy._x = this._x - 5; } if (_root.char.char._rotation > -25 && _root.char.char._rotation < 0) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x - 5; } this.firerate = 5; if (_root.sfx) { _root.machinefire = true; _root.playsound = true; } } if (_root.weapon == 1 && _root.mgammo <= 0 && !this.playsound) { this.playsound = true; _root.emptyplay = true; _root.playsound = true; } if (_root.weapon == 2 && _root.mineammo > 0) { this.char.gun.gotoAndPlay(1); _root.mineammo -= 1; this.shotfired = true; if (_root.bc == 0) { energy = _root.bullet_mine0; } else { if (_root.bc == 1) { energy = _root.bullet_mine1; } else { if (_root.bc == 2) { energy = _root.bullet_mine2; } else { if (_root.bc == 3) { energy = _root.bullet_mine3; } else { if (_root.bc == 4) { energy = _root.bullet_mine4; } else { if (_root.bc == 5) { energy = _root.bullet_mine5; } else { if (_root.bc == 6) { energy = _root.bullet_mine6; } else { if (_root.bc == 7) { energy = _root.bullet_mine7; } else { if (_root.bc == 8) { energy = _root.bullet_mine8; } else { if (_root.bc == 9) { energy = _root.bullet_mine9; } else { if (_root.bc == 10) { energy = _root.bullet_mine10; } } } } } } } } } } } ++_root.bc; if (_root.bc > 10) { _root.bc = 0; } energy.gotoAndStop(1); energy.played = false; energy.stick = false; energy.timer = 120; energy.fired = true; angle = _root.char.char._rotation; energy._x = this._x; energy._y = this._y; energy._rotation = angle + 90; energy.dirx = Math.cos(angle * Math.PI / 180) * 20; energy.diry = Math.sin(angle * Math.PI / 180) * 20; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 20; energy._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 25; energy._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 25; energy._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 20; energy._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { energy._x = this._x - Math.cos(angle * Math.PI / 180) * 20; energy._y = this._y - Math.sin(angle * Math.PI / 180) * 20; energy._y = this._y - 15; energy._x = this._x + 10; } if (_root.sfx) { _root.landmine = true; _root.playsound = true; } } if (_root.weapon == 2 && _root.mineammo <= 0 && !this.playsound) { this.playsound = true; _root.emptyplay = true; _root.playsound = true; } if (_root.weapon == 3 && _root.plasmabattery >= 5) { this.char.gun.gotoAndPlay(1); _root.plasmabattery -= 5; this.shotfired = true; electric = _root.electricity; electric.played = false; electric.electric.gotoAndPlay(1); electric.fired = true; this.firerate = 50; } if (_root.weapon == 3 && _root.plasmabattery < 5 && !this.playsound) { this.playsound = true; _root.emptyplay = true; _root.playsound = true; } if (_root.weapon == 4 && _root.goopammo > 0) { this.char.gun.gotoAndPlay(1); _root.goopammo -= 1; this.shotfired = true; if (_root.bc == 0) { goop = _root.bullet_goop0; } else { if (_root.bc == 1) { goop = _root.bullet_goop1; } else { if (_root.bc == 2) { goop = _root.bullet_goop2; } else { if (_root.bc == 3) { goop = _root.bullet_goop3; } else { if (_root.bc == 4) { goop = _root.bullet_goop4; } else { if (_root.bc == 5) { goop = _root.bullet_goop5; } else { if (_root.bc == 6) { goop = _root.bullet_goop6; } else { if (_root.bc == 7) { goop = _root.bullet_goop7; } else { if (_root.bc == 8) { goop = _root.bullet_goop8; } else { if (_root.bc == 9) { goop = _root.bullet_goop9; } else { if (_root.bc == 10) { goop = _root.bullet_goop10; } } } } } } } } } } } ++_root.bc; if (_root.bc > 10) { _root.bc = 0; } goop.gotoAndStop(1); goop.played = false; goop.gotoAndStop(1); goop.timer = 40; goop.fired = true; angle = _root.char.char._rotation; goop._rotation = angle + 90; goop.dirx = Math.cos(angle * Math.PI / 180) * 30; goop.diry = Math.sin(angle * Math.PI / 180) * 30; goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 15; goop._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 20; goop._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 25; goop._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 25; goop._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 20; goop._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 15; goop._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 15; goop._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { goop._x = this._x - Math.cos(angle * Math.PI / 180) * 20; goop._y = this._y - Math.sin(angle * Math.PI / 180) * 20; goop._y = this._y - 15; goop._x = this._x + 10; } this.firerate = 10; if (_root.sfx) { _root.goopshoot = true; _root.playsound = true; } } if (_root.weapon == 4 && _root.goopammo <= 0 && !this.playsound) { this.playsound = true; _root.emptyplay = true; _root.playsound = true; } if (_root.weapon == 5 && _root.loadedammo == 0 && _root.ionbattery >= 5) { this.char.gun.gotoAndPlay(1); _root.ionbattery -= 5; this.shotfired = true; sucker = _root.suction; sucker.suck = false; sucker.gotoAndStop(1); sucker.fired = true; this.firerate = 10; } if (_root.weapon == 5 && _root.ionbattery < 5 && !this.playsound) { this.playsound = true; _root.emptyplay = true; _root.playsound = true; } if (_root.weapon == 5 && _root.loadedammo !== 0) { this.char.gun.gotoAndPlay(1); this.shotfired = true; head = _root.headbullet; head.fired = true; head.gotoAndStop(_root.loadedammo + 1); angle = _root.char.char._rotation; head._rotation = angle + 90; head.dirx = Math.cos(angle * Math.PI / 180) * 30; head.diry = Math.sin(angle * Math.PI / 180) * 30; head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 15; head._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 20; head._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 25; head._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 25; head._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 20; head._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 15; head._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 15; head._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { head._x = this._x - Math.cos(angle * Math.PI / 180) * 20; head._y = this._y - Math.sin(angle * Math.PI / 180) * 20; head._y = this._y - 15; head._x = this._x + 10; } _root.loadedammo = 0; this.firerate = 5; } } if (this.shotfired && _root.weapon == 3) { angle = _root.char.char._rotation; electric._x = this._x; electric._y = this._y; electric._x = this._x - Math.cos(angle * Math.PI / 180) * 30; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 30; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 15; electric._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 20; electric._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 25; electric._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 25; electric._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 20; electric._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 15; electric._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 15; electric._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { electric._x = this._x - Math.cos(angle * Math.PI / 180) * 20; electric._y = this._y - Math.sin(angle * Math.PI / 180) * 20; electric._y = this._y - 15; electric._x = this._x + 10; } electric._rotation = angle + 90; } if (this.shotfired && _root.weapon == 5 && !sucker.suck) { angle = _root.char.char._rotation; sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 30; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 30; if (_root.char.char._rotation > 0 && _root.char.char._rotation < 5) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 15; sucker._x = this._x + 5; } if (_root.char.char._rotation > 5 && _root.char.char._rotation < 45) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 20; sucker._x = this._x + 5; } if (_root.char.char._rotation > 45 && _root.char.char._rotation < 90) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 25; sucker._x = this._x + 10; } if (_root.char.char._rotation > 90 && _root.char.char._rotation < 130) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 25; sucker._x = this._x - 5; } if (_root.char.char._rotation > 130 && _root.char.char._rotation < 145) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 20; sucker._x = this._x - 5; } if (_root.char.char._rotation > 145 && _root.char.char._rotation < 180) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 15; sucker._x = this._x - 5; } if (_root.char.char._rotation > -180 && _root.char.char._rotation < -90) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 15; sucker._x = this._x - 5; } if (_root.char.char._rotation > -90 && _root.char.char._rotation < 0) { sucker._x = this._x - Math.cos(angle * Math.PI / 180) * 20; sucker._y = this._y - Math.sin(angle * Math.PI / 180) * 20; sucker._y = this._y - 15; sucker._x = this._x + 10; } sucker._rotation = angle + 90; } if (sucker.suck && sucker.fired) { sucker.gotoAndStop(2); } onMouseUp = function () { if (this.shotfired && _root.weapon == 5) { sucker.gotoAndStop(2); } if (_root.weapon !== 4 && _root.weapon !== 3 && _root.weapon !== 5) { this.shotfired = false; } this.playsound = false; this.fire = false; }; if (this.shotfired) { if (_root.weapon == 0 or _root.weapon == 1 or _root.weapon == 3 or _root.weapon == 4 or _root.weapon == 5 && !this.fire) { --this.firerate; } if (this.firerate <= 0) { if (_root.weapon == 0 or _root.weapon == 1 or _root.weapon == 3 or _root.weapon == 4 or _root.weapon == 5) { this.shotfired = false; } } if (_root.loadedammo !== 0 && _root.weapon == 5) { this.firerate = 0; } } if (this._y > 780 && !_root.backtobase) { this.health -= 15; _root.backtobase = true; } if (_root.backtobase) { _root.changer.play(); if (_root.changer._currentframe >= 25) { _root.box._x = 347.9; _root.box._y = 275; this._x = 347.9; this._y = 275; _root.backtobase = false; } } if (!_root.shake) { rotatie = 180 + (Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) / Math.PI) * 180; this.char._rotation = rotatie; if (_root.cursor._x > this._x) { this.char._rotation = rotatie + 5; } if (_root.cursor._x < this._x) { this.char._rotation = rotatie - 5; } } if (_root.alive && this.health <= 1) { this.gotoAndStop(3); _root.alive = false; } } } } movieClip 387 { } movieClip 388 { } movieClip 389 { } movieClip 390 { } movieClip 391 { frame 1 { stop(); } } instance bolt of movieClip 391 { onClipEvent (load) { this._visible = false; if (this.addedtostage) { this.gotoAndStop(random(4) + 1); this._visible = true; if (_root.char._x > this._x) { this._xscale = -100; } } } onClipEvent (enterFrame) { if (this.ani._currentframe == 10) { this.removeMovieClip(); } if (this._currentframe == 7) { this.removeMovieClip(); } } } movieClip 396 { } movieClip 400 { frame 6 { stop(); } } movieClip 401 { frame 1 { stop(); } instance of movieClip 396 { onClipEvent (enterFrame) { if (_root.weapon == 0 && this._currentframe !== 1) { this.gotoAndStop(1); } if (_root.weapon == 1 && this._currentframe !== 2) { this.gotoAndStop(2); } } } instance ric of movieClip 400 { onClipEvent (enterFrame) { if (this._currentframe == 6) { _parent.removeMovieClip(); } } } } instance bullet0 of movieClip 401 { onClipEvent (load) { this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } movieClip 405 { } movieClip 406 { frame 1 { stop(); } instance explode of movieClip 405 { onClipEvent (load) { if (_root.sfx && !this.played) { _root.explodeland = true; _root.playsound = true; this.played = true; } } } } instance bullet_mine0 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } movieClip 416 { } movieClip 423 { frame 35 { stop(); } } movieClip 424 { } instance electricity of movieClip 424 { onClipEvent (load) { this._visible = false; if (this.fired) { this._visible = true; } } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; } if (this.fired) { if (_root.sfx && !this.played) { _root.lightfire = true; _root.playsound = true; this.played = true; } if (this.electric._currentframe == 35) { this.fired = false; } } } } movieClip 427 { frame 1 { stop(); } } instance bullet_goop0 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } movieClip 452 { } movieClip 453 { frame 15 { stop(); } } movieClip 454 { frame 1 { stop(); } } instance suction of movieClip 454 { onClipEvent (load) { this._visible = false; this.suck = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; } if (!this.fired && this._visible) { this._visible = false; } if (this.fired) { if (this.air._currentframe == 10) { this.fired = false; } if (_root.weapon !== 5) { this.gotoAndStop(2); } } } } movieClip 457 { } movieClip 460 { } movieClip 461 { frame 1 { stop(); } instance explode of movieClip 405 { onClipEvent (load) { if (_root.sfx && !this.played) { _root.explodeland = true; _root.playsound = true; this.played = true; } } } } instance headbullet of movieClip 461 { onClipEvent (load) { this.fired = false; this.timer = 40; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; } if (!this.fired && this._visible) { this._visible = false; } if (this.timer < 0 && this._currentframe !== 5) { this.fired = false; } if (this.fired && this.timer > 0) { --this.timer; } if (this.explode._currentframe == 23) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe !== 1) { this.gotoAndStop(5); } if (!_root.pause && this._currentframe !== 5) { _x = _x - dirx; _y = _y - diry; this._rotation += 10; } } } movieClip 463 { frame 1 { stop(); } } instance res of movieClip 463 { onClipEvent (load) { if (this.addtoscreen) { accuracy = 0.2; this.fallspeed = 0; this._x = dropx; this._y = dropy; dir = random(4) + 1; shift = random(20) + 5; vis = random(2) + 1; this.gotoAndStop(vis); if (dir == 1) { this._x -= shift; this._y -= shift; } if (dir == 2) { this._x += shift; } if (dir == 3) { this._x += shift; this._y -= shift; } if (dir == 4) { this._x -= shift; } this._visible = true; } else { this._visible = false; } } onClipEvent (enterFrame) { if (!_root.pause && this.addtoscreen) { if (!_root.BG.hitTest(this._x, this._y + 10, true) && !this.grabbed) { this._y += this.fallspeed; ++this.fallspeed; } } if (this.hitTest(_root.char) && !this.grabbed) { this.grabbed = true; if (_root.sfx) { _root.rescourcepickup = true; _root.playsound = true; } } if (this.hitTest(_root.cam.display) && this.grabbed) { _root.rescourceamount += this.amount; this.removeMovieClip(); } if (this.grabbed) { pointx = _root.cam._x; pointy = _root.cam._y; pointx -= 310; pointy += 260; drag = accuracy; this._x += (pointx - _x) * drag; this._y += (pointy - _y) * drag; } if (this._y > 3500) { this.removeMovieClip(); } } } instance bullet1 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet3 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet4 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet5 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet6 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet7 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet8 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet9 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet10 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet2 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance bullet_mine1 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine2 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine3 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine4 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine5 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine6 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine7 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine8 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine9 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_mine10 of movieClip 406 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.explode._currentframe == 23) { this.fired = false; } if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.stick = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stick = false; } if (this.fired && !this.stick) { if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); this.stick = true; if (_root.sfx && !this.played) { _root.landstick = true; _root.playsound = true; this.played = true; } } if (!_root.BG.hitTest(this._x, this._y, true) && this.timer > 0) { --this.timer; } if (this.timer <= 0) { this.fired = false; this.timer = 120; } if (!_root.pause && this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; --diry; } } } } instance bullet_goop1 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop2 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop3 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop4 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop5 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop6 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop7 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop8 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop9 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance bullet_goop10 of movieClip 427 { onClipEvent (load) { this.fired = false; this._visible = false; this.timer = 120; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); this.timer = 120; this.stuck = false; } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; this.stuck = false; } if (this.fired && this._currentframe == 2) { --timer; } if (this.timer <= 0) { this.fired = false; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe == 1) { this._rotation += 15; _x = _x - dirx; _y = _y - diry; --diry; } } } instance tbullet0 of movieClip 401 { onClipEvent (load) { this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet1 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet3 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet4 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet5 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet6 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet7 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet8 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet9 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet10 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } instance tbullet2 of movieClip 401 { onClipEvent (load) { this.timer = 40; this.fired = false; this._visible = false; } onClipEvent (enterFrame) { if (this.fired && !this._visible) { this._visible = true; this.gotoAndStop(1); } if (!this.fired && this._visible) { this._visible = false; this._y = 100000; } if (this.fired && !_root.pause) { if (this.timer <= 0) { this.timer = 40; this.fired = false; } if (this.timer > 0) { --this.timer; } if (_root.BG.hitTest(this._x, this._y, true) && this._currentframe == 1) { this.gotoAndStop(2); if (_root.sfx) { _root.ricochetsound = true; _root.playsound = true; } } if (this._currentframe == 1) { _x = _x - dirx; _y = _y - diry; } } } } movieClip 468 { } movieClip 470 { frame 1 { stop(); } } movieClip 471 { frame 200 { stop(); } } movieClip 472 { instance of movieClip 471 { onClipEvent (load) { this.gotoAndStop(_root.char.health); } onClipEvent (enterFrame) { if (this._currentframe > _root.char.health) { this.prevFrame(); } if (this._currentframe < _root.char.health) { this.play(); } } } frame 200 { stop(); } } // unknown tag 88 length 75 movieClip 475 { } movieClip 477 { } movieClip 490 { } movieClip 493 { } button 494 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 0) { _root.weapon = 0; _root.mousestate = 0; if (_root.sfx) { _root.equipped1 = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 495 { } movieClip 498 { } button 499 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 1) { _root.weapon = 1; _root.mousestate = 0; if (_root.sfx) { _root.machequip = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 500 { } movieClip 503 { } button 504 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 2 && _root.weapon2) { _root.weapon = 2; _root.mousestate = 0; if (_root.sfx) { _root.landequip = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 505 { } movieClip 508 { } button 509 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 3 && _root.weapon3) { _root.weapon = 3; _root.mousestate = 0; if (_root.sfx) { _root.lightequip = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 510 { } movieClip 513 { } button 514 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 4 && _root.weapon4) { _root.weapon = 4; _root.mousestate = 0; if (_root.sfx) { _root.goopplay = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 515 { } movieClip 518 { } button 519 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.weapon !== 5 && _root.weapon5) { _root.weapon = 5; _root.mousestate = 0; if (_root.sfx) { _root.vacplay = true; _root.playsound = true; } } } on (rollOut) { _root.mousestate = 0; } } movieClip 520 { } movieClip 523 { } button 524 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.healthpack > 0 && _root.char.health < 200) { _root.healthpack -= 1; _root.char.health = 200; _root.mousestate = 0; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } on (rollOut) { _root.mousestate = 0; } } movieClip 526 { } movieClip 529 { } button 530 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (rollOut) { _root.mousestate = 0; } on (press) { _root.mousestate = 0; if (_root.sfx) { _root.mouseclick.start(0, 1); } if (!_root.pause) { _root.pause = true; } else { if (_root.pause) { _root.pause = false; } } } } movieClip 531 { } movieClip 535 { } button 537 { on (rollOver) { _root.mousestate = 1; if (_root.sfx) { _root.mouseover.start(0, 1); } } on (rollOut) { _root.mousestate = 0; } on (press) { _root.mousestate = 0; if (_root.waittime > 1 && _root.days !== 0) { _root.waittime = 5; } if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 540 { frame 1 { onEnterFrame = function () { if (daycount !== _root.days) { daycount = _root.days; } if (!_root.attackperiod && !_root.pause && !_root.shop1 && !_root.shop2) { timer = _root.waittime; } }; } } movieClip 542 { frame 1 { stop(); } } button 549 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { cost = 0; explanation = 'Assault Rifle: Already Owned\rWhen in use left click and hold to use rapid fire.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 550 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 1; cost = 15; explanation = 'Assault Rifle Ammo:\r80 Rounds:\rCost: 15 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 551 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.rescourceamount >= cost) { if (item == 1) { _root.mgammo += 80; _root.rescourceamount -= cost; } else { if (item == 2 && !_root.weapon2) { _root.weapon2 = true; _root.mineammo += 5; _root.rescourceamount -= cost; } else { if (item == 3 && _root.weapon2) { _root.mineammo += 5; _root.rescourceamount -= cost; } else { if (item == 4 && !_root.weapon3) { _root.weapon3 = true; _root.plasmabattery += 30; _root.rescourceamount -= cost; } else { if (item == 5 && _root.weapon3) { _root.plasmabattery += 100; _root.rescourceamount -= cost; } else { if (item == 6 && !_root.weapon4) { _root.weapon4 = true; _root.goopammo += 5; _root.rescourceamount -= cost; } else { if (item == 7 && _root.weapon4) { _root.goopammo += 10; _root.rescourceamount -= cost; } else { if (item == 8 && !_root.weapon5) { _root.weapon5 = true; _root.ionbattery += 15; _root.rescourceamount -= cost; } else { if (item == 9 && _root.weapon5) { _root.ionbattery += 25; _root.rescourceamount -= cost; } } } } } } } } } if (_root.sfx) { _root.rescourcepickup = true; _root.playsound = true; } } } } button 552 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { cost = 0; explanation = ' '; item = 0; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 553 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { cost = 0; explanation = ' '; _root.shop1 = false; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 554 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 3; cost = 50; explanation = 'Mine Ammo:\r5 Rounds:\rCost: 50 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 555 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 5; cost = 80; explanation = 'Plasma Battery:\r100% Pack:\rCost: 80 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 556 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 7; cost = 40; explanation = 'Goop Ammo:\r10 Rounds:\rCost: 40 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 557 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 9; cost = 50; explanation = 'Ion Battery:\r25% Pack:\rCost: 50 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 558 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { item = 2; cost = 150; explanation = 'Mine Gun: 150\rLays down a land mine that detonates on impact.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 559 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { item = 6; cost = 300; explanation = 'Goop Gun: 300\rFires a sticky substance that surrounds and crushes enemies'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 560 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { item = 4; cost = 400; explanation = 'Ligtning Gun: 400\rDisperses an electrical charge damaging all in its path'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 561 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { item = 8; cost = 500; explanation = 'Sucker: 500\rAbsorbs enemies so they can be used for ammunition'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 564 { } movieClip 565 { frame 1 { stop(); } } button 571 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 1; cost = 50; explanation = 'Health Pack:\rCost: 50 Rescource'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 572 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { if (_root.rescourceamount >= cost) { if (item == 1) { _root.healthpack += 1; _root.rescourceamount -= cost; } else { if (item == 2 && !_root.upgrade1) { _root.upgrade1 = true; _root.gate2.health = 200; _root.rescourceamount -= cost; } else { if (item == 3 && _root.upgrade1 && !_root.upgrade2) { _root.upgrade2 = true; _root.gate2.health = 300; _root.rescourceamount -= cost; } else { if (item == 4 && !_root.upgrade1_) { _root.upgrade1_ = true; _root.gate.health = 200; _root.rescourceamount -= cost; } else { if (item == 5 && _root.upgrade1_ && !_root.upgrade2_) { _root.upgrade2_ = true; _root.gate.health = 300; _root.rescourceamount -= cost; } else { if (item == 6 && !_root.turret1placed) { _root.turret1placed = true; _root.rescourceamount -= cost; } else { if (item == 7 && _root.turret1placed && _root.t1state == 0) { _root.t1state = 1; _root.rescourceamount -= cost; } else { if (item == 8 && _root.turret1placed && _root.t1state == 1) { _root.t1state = 2; _root.rescourceamount -= cost; } else { if (item == 9 && _root.turret1placed && _root.t1state == 2) { _root.t1state = 3; _root.rescourceamount -= cost; } else { if (item == 10 && _root.turret1placed && _root.t1state == 3) { _root.t1state = 4; _root.rescourceamount -= cost; } else { if (item == 11 && !_root.turret2placed) { _root.turret2placed = true; _root.rescourceamount -= cost; } else { if (item == 12 && _root.turret2placed && _root.t2state == 0) { _root.t2state = 1; _root.rescourceamount -= cost; } else { if (item == 13 && _root.turret2placed && _root.t2state == 1) { _root.t2state = 2; _root.rescourceamount -= cost; } else { if (item == 14 && _root.turret2placed && _root.t2state == 2) { _root.t2state = 3; _root.rescourceamount -= cost; } else { if (item == 15 && _root.turret2placed && _root.t2state == 3) { _root.t2state = 4; _root.rescourceamount -= cost; } else { if (item == 16 && !_root.turret3placed) { _root.turret3placed = true; _root.rescourceamount -= cost; } else { if (item == 17 && _root.turret3placed && _root.t3state == 0) { _root.t3state = 1; _root.rescourceamount -= cost; } else { if (item == 18 && _root.turret3placed && _root.t3state == 1) { _root.t3state = 2; _root.rescourceamount -= cost; } else { if (item == 19 && _root.turret3placed && _root.t3state == 2) { _root.t3state = 3; _root.rescourceamount -= cost; } else { if (item == 20 && _root.turret3placed && _root.t3state == 3) { _root.t3state = 4; _root.rescourceamount -= cost; } else { if (item == 21 && !_root.turret4placed) { _root.turret4placed = true; _root.rescourceamount -= cost; } else { if (item == 22 && _root.turret4placed && _root.t4state == 0) { _root.t4state = 1; _root.rescourceamount -= cost; } else { if (item == 23 && _root.turret4placed && _root.t4state == 1) { _root.t4state = 2; _root.rescourceamount -= cost; } else { if (item == 24 && _root.turret4placed && _root.t4state == 2) { _root.t4state = 3; _root.rescourceamount -= cost; } else { if (item == 25 && _root.turret4placed && _root.t4state == 3) { _root.t4state = 4; _root.rescourceamount -= cost; } } } } } } } } } } } } } } } } } } } } } } } } } if (_root.sfx) { _root.rescourcepickup = true; _root.playsound = true; } } } } button 573 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { cost = 0; item = 0; explanation = ' '; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 574 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { cost = 0; explanation = ' '; _root.shop2 = false; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 575 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 2; cost = 150; explanation = 'Shield Upgrade: 150 Rescource\rIncreases eastern shields power.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 576 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 3; cost = 250; explanation = 'Shield Upgrade: 250 Rescource\rIncreases eastern shields power.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 577 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 4; cost = 150; explanation = 'Shield Upgrade: 150 Rescource\rIncreases western shields power.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 578 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 5; cost = 250; explanation = 'Shield Upgrade: 250 Rescource\rIncreases western shields power.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 579 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 6; cost = 300; explanation = 'Turret Top West: 300 Rescource\rDefends west side of base'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 580 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 7; cost = 250; explanation = 'Turret Upgrade 1: 250 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 581 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 8; cost = 300; explanation = 'Turret Upgrade 2: 300 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 582 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 9; cost = 350; explanation = 'Turret Upgrade 3: 350 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 583 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 10; cost = 400; explanation = 'Turret Upgrade 4: 400 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 584 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 11; cost = 300; explanation = 'Turret Bottom West: 500 Rescource\rDefends west side of base'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 585 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 12; cost = 250; explanation = 'Turret Upgrade 1: 250 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 586 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 13; cost = 300; explanation = 'Turret Upgrade 2: 300 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 587 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 14; cost = 350; explanation = 'Turret Upgrade 3: 350 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 588 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 15; cost = 400; explanation = 'Turret Upgrade 4: 400 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 589 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 16; cost = 300; explanation = 'Turret Top East: 300 Rescource\rDefends east side of base'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 590 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 17; cost = 250; explanation = 'Turret Upgrade 1: 250 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 591 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 18; cost = 300; explanation = 'Turret Upgrade 2: 300 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 592 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 19; cost = 350; explanation = 'Turret Upgrade 3: 350 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 593 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 20; cost = 400; explanation = 'Turret Upgrade 4: 400 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 594 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 21; cost = 300; explanation = 'Turret Bottom East: 300 Rescource\rDefends east side of base'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 595 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 22; cost = 250; explanation = 'Turret Upgrade 1: 250 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 596 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 23; cost = 300; explanation = 'Turret Upgrade 2: 300 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 597 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 24; cost = 350; explanation = 'Turret Upgrade 3: 350 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } button 598 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { item = 25; cost = 400; explanation = 'Turret Upgrade 4: 400 Rescource\rIncreases damage and speed.'; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 599 { frame 2 { explanation = ' '; cost = 0; item = 0; onEnterFrame = function () { if (amount !== _root.rescourceamount) { amount = _root.rescourceamount; } }; } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && this._currentframe !== 2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.weapon2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.weapon4) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.weapon3) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.weapon5) { this.gotoAndStop(2); } } } frame 4 { explanation = ' '; cost = 0; item = 0; onEnterFrame = function () { if (amount !== _root.rescourceamount) { amount = _root.rescourceamount; } }; } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.upgrade1) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.upgrade2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.upgrade1_) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.upgrade2_) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t1state > 0) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t1state > 1) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.turret1placed) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t1state > 2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t1state > 3) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t2state > 0) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t2state > 1) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.turret2placed) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t2state > 2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t2state > 3) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t3state > 0) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t3state > 1) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.turret3placed) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t3state > 2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t3state > 3) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t4state > 0) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t4state > 1) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.turret4placed) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t4state > 2) { this.gotoAndStop(2); } } } instance of movieClip 565 { onClipEvent (enterFrame) { if (this._currentframe == 1 && _root.t4state > 3) { this.gotoAndStop(2); } } } } movieClip 600 { } button 604 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { if (_root.sfx) { _root.mouseclick.start(0, 1); } getURL('http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Jarbot&utm_source=host&utm_content=ingame', '_blank'); } } movieClip 606 { } button 607 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (release) { _root.pause = false; if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 609 { } button 610 { on (rollOver) { if (_root.sfx) { _root.mouseover.start(0, 1); } } on (press) { _root.restart = true; _root.changer.play(); _root.room = 'menu'; _root.gameplaytrack.stop(); _root.gameplaytrack2.stop(); _root.gameplaytrack.setVolume(100); if (_root.sfx) { _root.mouseclick.start(0, 1); } } } movieClip 611 { } movieClip 614 { } movieClip 619 { } movieClip 639 { instance of movieClip 619 { onClipEvent (enterFrame) { if (Key.isDown(32)) { _parent.gotoAndPlay(1150); } } } frame 1151 { _root.soundtrack = 1; _root.waittime = 100; } frame 1327 { _parent.gotoAndStop(1); } } movieClip 658 { instance of movieClip 619 { onClipEvent (enterFrame) { if (Key.isDown(32)) { _parent.gotoAndPlay(980); } } } frame 1018 { _parent.gotoAndStop(1); } } movieClip 662 { frame 123 { stop(); _root.changer.play(); _root.room = 'menu'; _root.gameplaytrack.stop(); _root.gameplaytrack2.stop(); _root.gameplaytrack.setVolume(100); } } movieClip 666 { frame 123 { stop(); _root.changer.play(); _root.room = 'menu'; _root.gameplaytrack.stop(); _root.gameplaytrack2.stop(); _root.gameplaytrack.setVolume(100); } } movieClip 670 { frame 123 { stop(); _root.changer.play(); _root.restart = true; _root.room = 'endscene'; } } movieClip 671 { frame 1 { stop(); } } movieClip 672 { } movieClip 673 { } button 674 { on (release) { getURL('http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Jarbot&utm_source=host&utm_content=ingame', '_blank'); } } movieClip 675 { } movieClip 676 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } _parent._visible = true; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } instance of movieClip 472 { onClipEvent (enterFrame) { if (this._currentframe !== _root.char.health) { this.gotoAndStop(_root.char.health); this.bar.play(); } } } instance of movieClip 475 { onClipEvent (load) { this.counter = 0; } onClipEvent (enterFrame) { if (this.counter < _root.rescourceamount) { this.counter += 1; } else { if (this.counter > _root.rescourceamount) { this.counter -= 1; } } } } instance of movieClip 477 { onClipEvent (enterFrame) { if (this._currentframe !== _root.weapon + 1) { this.gotoAndStop(_root.weapon + 1); } if (_root.weapon == 1 && this.counter !== _root.mgammo) { this.counter = _root.mgammo; } if (_root.weapon == 2 && this.counter !== _root.mineammo) { this.counter = _root.mineammo; } if (_root.weapon == 3 && this.counter !== _root.plasmabattery) { this.counter = _root.plasmabattery; } if (_root.weapon == 4 && this.counter !== _root.goopammo) { this.counter = _root.goopammo; } if (_root.weapon == 5 && this.counter !== _root.ionbattery) { this.counter = _root.ionbattery; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this._currentframe !== _root.weapon + 1) { this.gotoAndStop(_root.weapon + 1); } } } instance of movieClip 505 { onClipEvent (enterFrame) { if (_root.weapon2 && this._alpha !== 100) { this._alpha = 100; } if (!_root.weapon2 && this._alpha !== 30) { this._alpha = 30; } } } instance of movieClip 510 { onClipEvent (enterFrame) { if (_root.weapon3 && this._alpha !== 100) { this._alpha = 100; } if (!_root.weapon3 && this._alpha !== 30) { this._alpha = 30; } } } instance of movieClip 515 { onClipEvent (enterFrame) { if (_root.weapon4 && this._alpha !== 100) { this._alpha = 100; } if (!_root.weapon4 && this._alpha !== 30) { this._alpha = 30; } } } instance of movieClip 520 { onClipEvent (enterFrame) { if (_root.weapon5 && this._alpha !== 100) { this._alpha = 100; } if (!_root.weapon5 && this._alpha !== 30) { this._alpha = 30; } } } instance of movieClip 526 { onClipEvent (enterFrame) { if (this.counter !== _root.healthpack) { this.counter = _root.healthpack; } if (_root.healthpack <= 0 && this._alpha !== 30) { this._alpha = 30; } if (_root.healthpack > 0 && this._alpha !== 100) { this._alpha = 100; } } } instance of movieClip 159 { onClipEvent (enterFrame) { if (_root.musicon && this._currentframe !== 1) { this.gotoAndStop(1); } if (!_root.musicon && this._currentframe !== 2) { this.gotoAndStop(2); } } } instance of movieClip 164 { onClipEvent (enterFrame) { if (_root.sfx && this._currentframe !== 1) { this.gotoAndStop(1); } if (!_root.sfx && this._currentframe !== 2) { this.gotoAndStop(2); } } } instance of movieClip 599 { onClipEvent (enterFrame) { if (_root.shop1 && this._currentframe !== 2) { this.gotoAndStop(2); } if (_root.shop2 && this._currentframe !== 4) { this.gotoAndStop(4); } if (!_root.shop1 && !_root.shop2 && this._currentframe !== 1) { this.gotoAndStop(1); } } } instance control_box of movieClip 611 { onClipEvent (enterFrame) { if (_root.pause && this._currentframe !== 2) { this.gotoAndStop(2); } if (!_root.pause && this._currentframe !== 1) { this.gotoAndStop(1); } } } instance control_box of movieClip 671 { onClipEvent (load) { timer = 100; } onClipEvent (enterFrame) { if (timer > 0 && _root.days == 0 && !message1display) { --timer; if (timer <= 0) { timer = 50; this.gotoAndStop(2); message1display = true; } } if (timer > 0 && _root.days == 1 && !message2display && !_root.attackperiod) { --timer; if (timer <= 0) { timer = 50; this.gotoAndStop(3); message2display = true; } } if (timer > 0 && !_root.alive) { --timer; if (timer <= 0) { timer = 50; this.gotoAndStop(4); } } if (timer > 0 && _root.sources.health <= 1) { --timer; if (timer <= 0) { this.gotoAndStop(5); } } if (timer > 0 && _root.days > 15) { --timer; if (timer <= 0) { timer = 50; this.gotoAndStop(6); } } } } } instance cam of movieClip 676 { onClipEvent (load) { accuracy = 0.45; } onClipEvent (enterFrame) { var drag = accuracy; if (_root.restart && _root.changer._currentframe >= 15) { _root.changer._x = 350; _root.changer._y = 275; this._x = 350; this._y = 275; } if (!_root.pause && !_root.restart) { if (_root.char._x > this._x) { if (!_root.camwall.hitTest(this._x + 360, this._y, true)) { this._x += (_root.char._x - _x) * drag; _root.backgrounds._x = this._x; _root.changer._x = this._x; } } if (_root.char._x < this._x) { if (!_root.camwall.hitTest(this._x - 360, this._y, true)) { this._x += (_root.char._x - _x) * drag; _root.backgrounds._x = this._x; _root.changer._x = this._x; } } if (_root.char._y > this._y) { if (!_root.camwall.hitTest(this._x, this._y + 285, true)) { this._y += (_root.char._y - 100 - _y) * drag; _root.backgrounds._y = this._y; _root.changer._y = this._y; } } if (_root.char._y < this._y) { if (!_root.camwall.hitTest(this._x, this._y - 285, true)) { this._y += (_root.char._y - 100 - _y) * drag; _root.backgrounds._y = this._y; _root.changer._y = this._y; } } } if (_root.shake) { shakey = random(3) + 1; way = random(4) + 1; if (way == 1) { if (!_root.camwall.hitTest(this._x + 360, _y, true)) { this._x += shakey; } if (!_root.camwall.hitTest(this._x, this._y + 285, true)) { this._y += shakey; } } if (way == 2) { if (!_root.camwall.hitTest(this._x - 360, _y, true)) { this._x -= shakey; } if (!_root.camwall.hitTest(this._x, this._y - 285, true)) { this._y -= shakey; } } if (way == 3) { if (!_root.camwall.hitTest(this._x + 360, _y, true)) { this._x += shakey; } if (!_root.camwall.hitTest(this._x, this._y - 285, true)) { this._y -= shakey; } } if (way == 4) { if (!_root.camwall.hitTest(this._x - 360, _y, true)) { this._x -= shakey; } if (!_root.camwall.hitTest(this._x, this._y - 285, true)) { this._y += shakey; } } if (!timest) { timer = 10; timest = true; } } if (timer > 0 && _root.shake) { --timer; } if (timer <= 0 && _root.shake) { timest = false; _root.shake = false; } } } movieClip 678 { } instance cursor of movieClip 678 { onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse; } } frame 8 { stop(); _root.restart = true; } movieClip 683 { } movieClip 686 { } movieClip 689 { } movieClip 690 { instance sources of movieClip 303 { onClipEvent (load) { this.health = 500; } onClipEvent (enterFrame) { if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.bar._currentframe !== this.health) { this.bar.gotoAndStop(this.health); } } } instance sources of movieClip 303 { onClipEvent (load) { this.health = 500; } onClipEvent (enterFrame) { if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.bar._currentframe !== this.health) { this.bar.gotoAndStop(this.health); } } } instance sources of movieClip 303 { onClipEvent (load) { this.health = 500; } onClipEvent (enterFrame) { if (this.health <= 1 && this._currentframe !== 2) { this.gotoAndStop(2); } if (this.health > 1 && this._currentframe !== 1) { this.gotoAndStop(1); } if (this.bar._currentframe !== this.health) { this.bar.gotoAndStop(this.health); } } } frame 227 { stop(); } instance of movieClip 689 { onClipEvent (enterFrame) { this._y -= 1; if (this._y < -776) { _root.scene.play(); } } } frame 360 { stop(); _root.changer.play(); _root.room = 'menu'; _root.gameplaytrack.stop(); _root.gameplaytrack2.stop(); _root.gameplaytrack.setVolume(100); } } frame 9 { stop(); } movieClip 695 { } movieClip 698 { } movieClip 701 { } movieClip 702 { } movieClip 703 { } movieClip 704 { } movieClip 709 { }




http://swfchan.com/27/130114/info.shtml
Created: 10/8 -2019 04:23:43 Last modified: 10/8 -2019 04:23:43 Server time: 26/04 -2024 13:50:14