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

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

580256_bosses___.swf

This is the info page for
Flash #210364

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); var CPMStarPoolID = 21495; var CPMStarSubPoolID = 351; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?poolid=' + CPMStarPoolID + '&subpoolid=' + CPMStarSubPoolID); } // unknown tag 88 length 83 movieClip 163 { } movieClip 164 { instance bar of movieClip 163 { onClipEvent (load) { elgis = _width; } onClipEvent (enterFrame) { uzkrauta = _root.getBytesLoaded() / _root.getBytesTotal(); _width = uzkrauta * elgis; if (uzkrauta >= 1) { _root.gotoAndStop(2); } } } } movieClip 166 { } movieClip 168 { } movieClip 170 { } movieClip 172 { } movieClip 174 { } movieClip 176 { } movieClip 179 { } movieClip 180 { } movieClip 182 { } movieClip 184 { } movieClip 190 { } movieClip 191 { instance of movieClip 168 { onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } } } movieClip 193 { } frame 2 { 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__('9ef08821', this, 10301, true); } movieClip 200 { instance of movieClip 168 { onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _root.removeMovieClip(adBox); _root.play(); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _parent._xscale = 95; _parent._yscale = 95; } else { _parent._xscale = 100; _parent._yscale = 100; } } } frame 110 { stop(); } } frame 3 { stop(); } movieClip 213 { frame 168 { _root.play(); } } instance of movieClip 213 { onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } } frame 4 { var bossSave = SharedObject.getLocal('Bosses'); _global.achieveCounter = 0; _global.saveCheck = bossSave.data.saveCheck; n = 1; while (n <= 13) { m = 1; while (m <= 4) { _global[n.toString() + '_' + m.toString()] = bossSave.data[n.toString() + '_' + m.toString()]; _global['perfect_' + n.toString() + '_' + m.toString()] = bossSave.data['perfect_' + n.toString() + '_' + m.toString()]; ++m; } _global['shots_' + n.toString()] = bossSave.data['shots_' + n.toString()]; ++n; } c = 1; while (c <= 14) { _global['achievement_' + c.toString()] = bossSave.data['achievement_' + c.toString()]; ++c; } if (bossSave.data.saveCheck == undefined) { _global.saveCheck = true; n = 1; while (n <= 13) { m = 1; while (m <= 4) { _global[n.toString() + '_' + m.toString()] = false; _global['perfect_' + n.toString() + '_' + m.toString()] = false; ++m; } _global['shots_' + n.toString()] = false; ++n; } c = 1; while (c <= 14) { _global['achievement_' + c.toString()] = false; ++c; } } bossSave.data.saveCheck = _global.saveCheck; n = 1; while (n <= 13) { m = 1; while (m <= 4) { bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; bossSave.data['perfect_' + n.toString() + '_' + m.toString()] = _global['perfect_' + n.toString() + '_' + m.toString()]; ++m; } bossSave.data['shots_' + n.toString()] = _global['shots_' + n.toString()]; ++n; } c = 1; while (c <= 14) { bossSave.data['achievement_' + c.toString()] = _global['achievement_' + c.toString()]; if (_global['achievement_' + c.toString()]) { ++_global.achieveCounter; } ++c; } bossSave.flush(); } frame 4 { function hurtFunction(damage) { totalDamage = damage; if (!_root.player.injured && !_root.player.recovery) { if (playerLife - totalDamage > 0) { playerLife -= totalDamage; _root.playerinjured.start(); } else { if (_global.epack) { if (_global.lifeRefill > 0) { switch (_global.lifeRefill) { case 0.25: _root.liferefill.start(0, 1); break; case 0.5: _root.liferefill.start(0, 2); break; case 0.75: _root.liferefill.start(0, 3); break; case 1: _root.liferefill.start(0, 4); } _root.playerLife = Math.ceil(_root.pTotalLife * _global.lifeRefill); _root.playerHealth.pHealthbar.refill = true; _global.lifeRefill = 0; if (!_global.superpack) { _global.epack = false; } _global.usedpack = true; _root.playerHealth.playerLives.gotoAndStop(3); } else { playerLife = 0; _root.player.death = true; clearFunction(); } } else { playerLife = 0; _root.player.death = true; clearFunction(); } } _root.player.recovery = true; _root.player.injured = true; if (_root.player.charDirection == 'right') { _root.player.xVel = -3; } else { _root.player.xVel = 3; } } pPercentage = playerLife / pTotalLife; } function damageFunction(damage) { if (!_root.enemy.injured) { if (enemyLife - damage > 0) { enemyLife -= damage; } else { enemyLife = 0; _root.enemy.death = true; } _root.enemyhitsound.start(); _root.enemy.injured = true; } percentage = enemyLife / totalLife; } function healthRefill(hTotal) { _root.liferefill.start(0, 4); _root.enemyHealth.enemyHealthbar.refill = true; _root.enemyHealth.enemyLives.nextFrame(); enemyLife = hTotal; totalLife = hTotal; percentage = enemyLife / totalLife; } function clearFunction() { if (_root.i < 21) { _root.i = 21; } v = 0; while (v <= _root.i) { _root['laser' + v].removeMovieClip(); _root['p' + v].removeMovieClip(); _root['bullet' + v].removeMovieClip(); _root['bubble' + v].removeMovieClip(); _root.ground['plat' + v].removeMovieClip(); ++v; } } enemyDisplay = false; soundPlay = 2; _global.difficulty = 1; _global.epack = false; _global.lifeRefill = 0; _global.acCharge = 0; _global.megaCharge = false; _global.superpack = false; _global.superCounter = 1; _global.overCharge = false; _global.usedpack = false; _global.usedcharge = false; _global.activepack = false; _global.activecharge = false; _global.setachieve9 = false; _global.setachieve13 = false; _global.setachieve14 = false; masterVolume = new Sound(); masterVolume = new Sound(); keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.getCode() == 8) { endLife = 200; _global.epack = false; _root.hurtFunction(endLife); } if (Key.getCode() == 81) { if (_quality == 'LOW') { _quality = 'high'; _root.qualitydisplay.gotoAndStop(3); } else { if (_quality == 'MEDIUM') { _quality = 'low'; _root.qualitydisplay.gotoAndStop(1); } else { if (_quality == 'HIGH') { _quality = 'medium'; _root.qualitydisplay.gotoAndStop(2); } } } _root.qualitytoggle.start(); _root.qualitydisplay._alpha = 100; } if (Key.getCode() == 69) { if (soundPlay == 1) { musicchallenging.setVolume(100); musicdeadly.setVolume(100); musicstageselect.setVolume(100); musicstarter.setVolume(100); musictitle.setVolume(100); musictraining.setVolume(100); musictransition.setVolume(100); masterVolume.setVolume(100); soundPlay = 2; _root.qualitydisplay.gotoAndStop(4); } else { if (soundPlay == 2) { soundPlay = 3; musicchallenging.setVolume(0); musicdeadly.setVolume(0); musicstageselect.setVolume(0); musicstarter.setVolume(0); musictitle.setVolume(0); musictraining.setVolume(0); musictransition.setVolume(0); _root.qualitydisplay.gotoAndStop(5); } else { masterVolume.setVolume(0); musicchallenging.setVolume(0); musicdeadly.setVolume(0); musicstageselect.setVolume(0); musicstarter.setVolume(0); musictitle.setVolume(0); musictraining.setVolume(0); musictransition.setVolume(0); soundPlay = 1; _root.qualitydisplay.gotoAndStop(6); } } _root.soundtoggle.start(); _root.qualitydisplay._alpha = 100; } }; Key.addListener(keyListener); } frame 4 { soundControl = new Sound(); achievementmenu = new Sound(); achievementmenu.attachSound('achievementmenu'); achievementunlock = new Sound(); achievementunlock.attachSound('achievementunlock'); this.createEmptyMovieClip('applausemc', 50008); applause = new Sound(applausemc); applause.attachSound('applause'); this.createEmptyMovieClip('balloonbombdropmc', 50060); balloonbombdrop = new Sound(balloonbombdropmc); balloonbombdrop.attachSound('balloon_bombdrop'); this.createEmptyMovieClip('ballooncharge1mc', 50009); ballooncharge1 = new Sound(ballooncharge1mc); ballooncharge1.attachSound('balloon_charge1'); this.createEmptyMovieClip('ballooncharge2mc', 50010); ballooncharge2 = new Sound(ballooncharge2mc); ballooncharge2.attachSound('balloon_charge2'); this.createEmptyMovieClip('ballooncrankmc', 50011); ballooncrank = new Sound(ballooncrankmc); ballooncrank.attachSound('balloon_crank'); this.createEmptyMovieClip('balloonextendmc', 50012); balloonextend = new Sound(balloonextendmc); balloonextend.attachSound('balloon_extend'); this.createEmptyMovieClip('balloonlaser1mc', 50013); balloonlaser1 = new Sound(balloonlaser1mc); balloonlaser1.attachSound('balloon_laser1'); this.createEmptyMovieClip('balloonlaser2mc', 50014); balloonlaser2 = new Sound(balloonlaser2mc); balloonlaser2.attachSound('balloon_laser2'); this.createEmptyMovieClip('balloonphasedropmc', 50015); balloonphasedrop = new Sound(balloonphasedropmc); balloonphasedrop.attachSound('balloon_phasedrop'); this.createEmptyMovieClip('balloonpunchmc', 50061); balloonpunch = new Sound(balloonpunchmc); balloonpunch.attachSound('balloon_punch'); this.createEmptyMovieClip('balloonwhistlemc', 50016); balloonwhistle = new Sound(balloonwhistlemc); balloonwhistle.attachSound('balloon_whistle'); this.createEmptyMovieClip('bloodblendmc', 50017); bloodblend = new Sound(bloodblendmc); bloodblend.attachSound('blood_blend'); this.createEmptyMovieClip('bloodcapturemc', 50062); bloodcapture = new Sound(bloodcapturemc); bloodcapture.attachSound('blood_capture'); this.createEmptyMovieClip('blooddrillmc', 50018); blooddrill = new Sound(blooddrillmc); blooddrill.attachSound('blood_drill'); this.createEmptyMovieClip('bloodspraymc', 50004); bloodspray = new Sound(bloodspraymc); bloodspray.attachSound('blood_spray'); this.createEmptyMovieClip('bloodsuctionmc', 50019); bloodsuction = new Sound(bloodsuctionmc); bloodsuction.attachSound('blood_suction'); this.createEmptyMovieClip('bloodtickmc', 50063); bloodtick = new Sound(bloodtickmc); bloodtick.attachSound('blood_tick'); this.createEmptyMovieClip('bloodwallclimbmc', 50064); bloodwallclimb = new Sound(bloodwallclimbmc); bloodwallclimb.attachSound('blood_wallclimb'); this.createEmptyMovieClip('bloodslidemc', 50096); bloodslide = new Sound(bloodslidemc); bloodslide.attachSound('blood_slide'); this.createEmptyMovieClip('bombexplodemc', 50065); bombexplode = new Sound(bombexplodemc); bombexplode.attachSound('bombexplode'); this.createEmptyMovieClip('bubbleblowmc', 50066); bubbleblow = new Sound(bubbleblowmc); bubbleblow.attachSound('bubbleblow'); this.createEmptyMovieClip('bubblepopmc', 50067); bubblepop = new Sound(bubblepopmc); bubblepop.attachSound('bubblepop'); buttonachieveclick = new Sound(); buttonachieveclick.attachSound('button_achieveclick'); buttonbossclick = new Sound(); buttonbossclick.attachSound('button_bossclick'); buttonbosshover = new Sound(); buttonbosshover.attachSound('button_bosshover'); buttonchallenging = new Sound(); buttonchallenging.attachSound('button_challenging'); buttondeadly = new Sound(); buttondeadly.attachSound('button_deadly'); buttondefaultclick = new Sound(); buttondefaultclick.attachSound('button_defaultclick'); buttondefaultover = new Sound(); buttondefaultover.attachSound('button_defaultover'); buttonno = new Sound(); buttonno.attachSound('button_no'); buttonstartclick = new Sound(); buttonstartclick.attachSound('button_startclick'); buttonstarter = new Sound(); buttonstarter.attachSound('button_starter'); buttonyes = new Sound(); buttonyes.attachSound('button_yes'); this.createEmptyMovieClip('crabcirclemc', 50068); crabcircle = new Sound(crabcirclemc); crabcircle.attachSound('crab_circle'); this.createEmptyMovieClip('crabclackmc', 50069); crabclack = new Sound(crabclackmc); crabclack.attachSound('crab_clack'); this.createEmptyMovieClip('crabdescendmc', 50070); crabdescend = new Sound(crabdescendmc); crabdescend.attachSound('crab_descend'); crabdoor = new Sound(); crabdoor.attachSound('crab_door'); this.createEmptyMovieClip('crablegtapmc', 50071); crablegtap = new Sound(crablegtapmc); crablegtap.attachSound('crab_legtap'); this.createEmptyMovieClip('crabshellclosemc', 50020); crabshellclose = new Sound(crabshellclosemc); crabshellclose.attachSound('crab_shellclose'); this.createEmptyMovieClip('crabshellopenmc', 50021); crabshellopen = new Sound(crabshellopenmc); crabshellopen.attachSound('crab_shellopen'); this.createEmptyMovieClip('crabspikeshingmc', 50072); crabspikeshing = new Sound(crabspikeshingmc); crabspikeshing.attachSound('crab_spikeshing'); this.createEmptyMovieClip('crabclawblastmc', 50022); crabclawblast = new Sound(crabclawblastmc); crabclawblast.attachSound('crab_clawblast'); this.createEmptyMovieClip('crabclawpowermc', 50023); crabclawpower = new Sound(crabclawpowermc); crabclawpower.attachSound('crab_clawpower'); this.createEmptyMovieClip('craborbchargemc', 50024); craborbcharge = new Sound(craborbchargemc); craborbcharge.attachSound('crab_orbcharge'); this.createEmptyMovieClip('crabcreakmc', 50095); crabcreak = new Sound(crabcreakmc); crabcreak.attachSound('crab_creak'); deathsound = new Sound(); deathsound.attachSound('deathsound'); enemyhitsound = new Sound(); enemyhitsound.attachSound('enemyhitsound'); this.createEmptyMovieClip('ggblademc', 50073); ggblade = new Sound(ggblademc); ggblade.attachSound('gg_blade'); this.createEmptyMovieClip('ggfiredashmc', 50074); ggfiredash = new Sound(ggfiredashmc); ggfiredash.attachSound('gg_firedash'); this.createEmptyMovieClip('ggfireflaremc', 50075); ggfireflare = new Sound(ggfireflaremc); ggfireflare.attachSound('gg_fireflare'); this.createEmptyMovieClip('ggignitemc', 50076); ggignite = new Sound(ggignitemc); ggignite.attachSound('gg_ignite'); ggjumpland = new Sound(); ggjumpland.attachSound('gg_jumpland'); ggshoot = new Sound(); ggshoot.attachSound('gg_shoot'); this.createEmptyMovieClip('ggslidemc', 50077); ggslide = new Sound(ggslidemc); ggslide.attachSound('gg_slide'); gg2electricity = new Sound(); gg2electricity.attachSound('gg2_electricity'); gg2fire = new Sound(); gg2fire.attachSound('gg2_fire'); gg2leafblock = new Sound(); gg2leafblock.attachSound('gg2_leafblock'); gg2leafshield = new Sound(); gg2leafshield.attachSound('gg2_leafshield'); gg2leafshot = new Sound(); gg2leafshot.attachSound('gg2_leafshot'); ggfire = new Sound(); ggfire.attachSound('gg_fire'); this.createEmptyMovieClip('incinchargeblast1mc', 50025); incinchargeblast1 = new Sound(incinchargeblast1mc); incinchargeblast1.attachSound('incin_chargeblast1'); this.createEmptyMovieClip('incinchargeblast2mc', 50026); incinchargeblast2 = new Sound(incinchargeblast2mc); incinchargeblast2.attachSound('incin_chargeblast2'); this.createEmptyMovieClip('incinchargingmc', 50027); incincharging = new Sound(incinchargingmc); incincharging.attachSound('incin_charging'); this.createEmptyMovieClip('incinconveyorbeltmc', 50028); incinconveyorbelt = new Sound(incinconveyorbeltmc); incinconveyorbelt.attachSound('incin_conveyorbelt'); incinfiredrip = new Sound(); incinfiredrip.attachSound('incin_firedrip'); incinglassbreak = new Sound(); incinglassbreak.attachSound('incin_glassbreak'); incinignite = new Sound(); incinignite.attachSound('incin_ignite'); this.createEmptyMovieClip('incinlasermc', 50029); incinlaser = new Sound(incinlasermc); incinlaser.attachSound('incin_laser'); this.createEmptyMovieClip('incinlightdescendmc', 50078); incinlightdescend = new Sound(incinlightdescendmc); incinlightdescend.attachSound('incin_lightdescend'); this.createEmptyMovieClip('incinwormshingmc', 50079); incinwormshing = new Sound(incinwormshingmc); incinwormshing.attachSound('incin_wormshing'); this.createEmptyMovieClip('instructocorrectmc', 50031); instructocorrect = new Sound(instructocorrectmc); instructocorrect.attachSound('instructo_correct'); this.createEmptyMovieClip('instructoincorrectmc', 50032); instructoincorrect = new Sound(instructoincorrectmc); instructoincorrect.attachSound('instructo_incorrect'); this.createEmptyMovieClip('instructolasermc', 50033); instructolaser = new Sound(instructolasermc); instructolaser.attachSound('instructo_laser'); this.createEmptyMovieClip('instructotalk1mc', 50034); instructotalk1 = new Sound(instructotalk1mc); instructotalk1.attachSound('instructo_talk1'); this.createEmptyMovieClip('instructotalk2mc', 50035); instructotalk2 = new Sound(instructotalk2mc); instructotalk2.attachSound('instructo_talk2'); this.createEmptyMovieClip('instructotalk3mc', 50057); instructotalk3 = new Sound(instructotalk3mc); instructotalk3.attachSound('instructo_talk3'); item1activate = new Sound(); item1activate.attachSound('item1activate'); item1deactivate = new Sound(); item1deactivate.attachSound('item1deactivate'); item2activate = new Sound(); item2activate.attachSound('item2activate'); item2deactivate = new Sound(); item2deactivate.attachSound('item2deactivate'); liferefill = new Sound(); liferefill.attachSound('liferefill'); this.createEmptyMovieClip('musicstageselectmc', 50100); musicstageselect = new Sound(musicstageselectmc); musicstageselect.attachSound('music_stageselect'); this.createEmptyMovieClip('musictrainingmc', 50101); musictraining = new Sound(musictrainingmc); musictraining.attachSound('music_training'); this.createEmptyMovieClip('musictransitionmc', 50102); musictransition = new Sound(musictransitionmc); musictransition.attachSound('music_transition'); this.createEmptyMovieClip('musictitlemc', 50103); musictitle = new Sound(musictitlemc); musictitle.attachSound('music_title'); this.createEmptyMovieClip('musicstartermc', 50104); musicstarter = new Sound(musicstartermc); musicstarter.attachSound('music_starter'); this.createEmptyMovieClip('musicchallengingmc', 50105); musicchallenging = new Sound(musicchallengingmc); musicchallenging.attachSound('music_challenging'); this.createEmptyMovieClip('musicdeadlymc', 50106); musicdeadly = new Sound(musicdeadlymc); musicdeadly.attachSound('music_deadly'); perfectsound = new Sound(); perfectsound.attachSound('perfect'); this.createEmptyMovieClip('playerchargedmc', 50000); playercharged = new Sound(playerchargedmc); playercharged.attachSound('player_charged'); playerchargeshot = new Sound(); playerchargeshot.attachSound('player_chargeshot'); this.createEmptyMovieClip('playerchargingmc', 50002); playercharging = new Sound(playerchargingmc); playercharging.attachSound('player_charging'); playerinjured = new Sound(); playerinjured.attachSound('player_injured'); playerjump = new Sound(); playerjump.attachSound('player_jump'); playershoot = new Sound(); playershoot.attachSound('player_shoot'); playerslide = new Sound(); playerslide.attachSound('player_slide'); this.createEmptyMovieClip('poisonalarmmc', 50039); poisonalarm = new Sound(poisonalarmmc); poisonalarm.attachSound('poison_alarm'); poisonbloop = new Sound(); poisonbloop.attachSound('poison_bloop'); this.createEmptyMovieClip('poisonemergemc', 50036); poisonemerge = new Sound(poisonemergemc); poisonemerge.attachSound('poison_emerge'); this.createEmptyMovieClip('poisongaslargemc', 50080); poisongaslarge = new Sound(poisongaslargemc); poisongaslarge.attachSound('poison_gaslarge'); this.createEmptyMovieClip('poisongassmallmc', 50081); poisongassmall = new Sound(poisongassmallmc); poisongassmall.attachSound('poison_gassmall'); this.createEmptyMovieClip('poisonslosh1mc', 50037); poisonslosh1 = new Sound(poisonslosh1mc); poisonslosh1.attachSound('poison_slosh1'); this.createEmptyMovieClip('poisonslosh2mc', 50038); poisonslosh2 = new Sound(poisonslosh2mc); poisonslosh2.attachSound('poison_slosh2'); this.createEmptyMovieClip('poisonspillmc', 50040); poisonspill = new Sound(poisonspillmc); poisonspill.attachSound('poison_spill'); this.createEmptyMovieClip('poisonspraymc', 50041); poisonspray = new Sound(poisonspraymc); poisonspray.attachSound('poison_spray'); this.createEmptyMovieClip('poisonsubmergemc', 50042); poisonsubmerge = new Sound(poisonsubmergemc); poisonsubmerge.attachSound('poison_submerge'); qualitytoggle = new Sound(); qualitytoggle.attachSound('qualitytoggle'); shieldburst = new Sound(); shieldburst.attachSound('shield_burst'); shielddiffuse = new Sound(); shielddiffuse.attachSound('shield_diffuse'); shieldglitch = new Sound(); shieldglitch.attachSound('shield_glitch'); this.createEmptyMovieClip('shieldlaser1mc', 50043); shieldlaser1 = new Sound(shieldlaser1mc); shieldlaser1.attachSound('shield_laser1'); this.createEmptyMovieClip('shieldlaser2cmc', 50044); shieldlaser2c = new Sound(shieldlaser2cmc); shieldlaser2c.attachSound('shield_laser2challenging'); this.createEmptyMovieClip('shieldlaser2dmc', 50001); shieldlaser2d = new Sound(shieldlaser2dmc); shieldlaser2d.attachSound('shield_laser2deadly'); this.createEmptyMovieClip('shieldlaser3mc', 50045); shieldlaser3 = new Sound(shieldlaser3mc); shieldlaser3.attachSound('shield_laser3'); this.createEmptyMovieClip('shieldlaser4mc', 50046); shieldlaser4 = new Sound(shieldlaser4mc); shieldlaser4.attachSound('shield_laser4'); this.createEmptyMovieClip('shieldlaser5mc', 50047); shieldlaser5 = new Sound(shieldlaser5mc); shieldlaser5.attachSound('shield_laser5'); this.createEmptyMovieClip('shieldlaser6mc', 50048); shieldlaser6 = new Sound(shieldlaser6mc); shieldlaser6.attachSound('shield_laser6'); this.createEmptyMovieClip('shieldlaser7mc', 50049); shieldlaser7 = new Sound(shieldlaser7mc); shieldlaser7.attachSound('shield_laser7'); this.createEmptyMovieClip('shieldpowerupmc', 50005); shieldpowerup = new Sound(shieldpowerupmc); shieldpowerup.attachSound('shield_powerup'); this.createEmptyMovieClip('shielddownmc', 50050); shielddown = new Sound(shielddownmc); shielddown.attachSound('shield_shielddown'); this.createEmptyMovieClip('shieldupmc', 50051); shieldup = new Sound(shieldupmc); shieldup.attachSound('shield_shieldup'); shieldtwitch = new Sound(); shieldtwitch.attachSound('shield_twitch'); shieldteleportin = new Sound(); shieldteleportin.attachSound('shield_teleportin'); shieldteleportout = new Sound(); shieldteleportout.attachSound('shield_teleportout'); sniperappear = new Sound(); sniperappear.attachSound('sniper_appear'); sniperdisappear = new Sound(); sniperdisappear.attachSound('sniper_disappear'); sniperexplosion = new Sound(); sniperexplosion.attachSound('sniper_explosion'); snipergroundimpact = new Sound(); snipergroundimpact.attachSound('sniper_groundimpact'); snipergunshot = new Sound(); snipergunshot.attachSound('sniper_gunshot'); this.createEmptyMovieClip('sniperlaunchmc', 50082); sniperlaunch = new Sound(sniperlaunchmc); sniperlaunch.attachSound('sniper_launch'); sniperreload = new Sound(); sniperreload.attachSound('sniper_reload'); this.createEmptyMovieClip('snipersearchingmc', 50052); snipersearching = new Sound(snipersearchingmc); snipersearching.attachSound('sniper_searching'); snipertargeting = new Sound(); snipertargeting.attachSound('sniper_targeting'); soundtoggle = new Sound(); soundtoggle.attachSound('soundtoggle'); this.createEmptyMovieClip('springfloorspringmc', 50083); springfloorspring = new Sound(springfloorspringmc); springfloorspring.attachSound('spring_floorspring'); this.createEmptyMovieClip('springlandmc', 50084); springland = new Sound(springlandmc); springland.attachSound('spring_land'); this.createEmptyMovieClip('springjumpmc', 50085); springjump = new Sound(springjumpmc); springjump.attachSound('spring_springjump'); this.createEmptyMovieClip('springtopspringmc', 50086); springtopspring = new Sound(springtopspringmc); springtopspring.attachSound('spring_topspring'); springenergy = new Sound(); springenergy.attachSound('spring_energy'); springshockwave = new Sound(); springshockwave.attachSound('spring_shockwave'); titletwang = new Sound(); titletwang.attachSound('title_twang'); this.createEmptyMovieClip('wheellasermc', 50006); wheellaser = new Sound(wheellasermc); wheellaser.attachSound('wheel_laser'); this.createEmptyMovieClip('wheelpowerupmc', 50007); wheelpowerup = new Sound(wheelpowerupmc); wheelpowerup.attachSound('wheel_powerup'); this.createEmptyMovieClip('wheelrolllongmc', 50053); wheelrolllong = new Sound(wheelrolllongmc); wheelrolllong.attachSound('wheel_rolllong'); this.createEmptyMovieClip('wheelrollshortmc', 50056); wheelrollshort = new Sound(wheelrollshortmc); wheelrollshort.attachSound('wheel_rollshort'); this.createEmptyMovieClip('wheelthudmc', 50054); wheelthud = new Sound(wheelthudmc); wheelthud.attachSound('wheel_thud'); wheelwatercapture = new Sound(); wheelwatercapture.attachSound('wheel_watercapture'); this.createEmptyMovieClip('wheelwaterdropmc', 50087); wheelwaterdrop = new Sound(wheelwaterdropmc); wheelwaterdrop.attachSound('wheel_waterdrop'); wormbombdrop = new Sound(); wormbombdrop.attachSound('worm_bombdrop'); this.createEmptyMovieClip('wormchargemc', 50088); wormcharge = new Sound(wormchargemc); wormcharge.attachSound('worm_charge'); this.createEmptyMovieClip('wormcompressmc', 50089); wormcompress = new Sound(wormcompressmc); wormcompress.attachSound('worm_compress'); this.createEmptyMovieClip('wormdashmc', 50090); wormdash = new Sound(wormdashmc); wormdash.attachSound('worm_dash'); this.createEmptyMovieClip('wormfollowmc', 50003); wormfollow = new Sound(wormfollowmc); wormfollow.attachSound('worm_follow'); wormlaser = new Sound(); wormlaser.attachSound('worm_laser'); } // unknown tag 88 length 113 frame 5 { stop(); _root.musictitle.start(0, 99999); } movieClip 219 { } movieClip 220 { } movieClip 222 { } movieClip 226 { } movieClip 229 { } movieClip 230 { frame 1 { stop(); } instance of movieClip 229 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('wheelZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 6) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 230 { onClipEvent (load) { if (_global.achieveCounter >= 1) { this.gotoAndStop(2); } } } movieClip 233 { } movieClip 234 { frame 1 { stop(); } instance of movieClip 233 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('balloonZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 2) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 234 { onClipEvent (load) { if (_global.achieveCounter >= 4) { this.gotoAndStop(2); } } } movieClip 237 { } movieClip 238 { frame 1 { stop(); } instance of movieClip 237 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('sniperZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 4) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 238 { onClipEvent (load) { if (_global.achieveCounter >= 7) { this.gotoAndStop(2); } } } movieClip 241 { } movieClip 242 { frame 1 { stop(); } instance of movieClip 241 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('crabZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 7) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 242 { onClipEvent (load) { if (_global.achieveCounter >= 12) { this.gotoAndStop(2); } } } movieClip 245 { } movieClip 246 { frame 1 { stop(); } instance of movieClip 245 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('bloodZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 13) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 246 { onClipEvent (load) { if (_global.achieveCounter >= 11) { this.gotoAndStop(2); } } } movieClip 249 { } movieClip 250 { frame 1 { stop(); } instance of movieClip 249 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('wormZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 5) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 250 { onClipEvent (load) { if (_global.achieveCounter >= 6) { this.gotoAndStop(2); } } } movieClip 254 { } movieClip 257 { frame 1 { stop(); } } movieClip 261 { instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } } movieClip 262 { frame 1 { stop(); } instance of movieClip 261 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('shieldZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 3) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 262 { onClipEvent (load) { if (_global.achieveCounter >= 3) { this.gotoAndStop(2); } } } movieClip 266 { } movieClip 269 { } movieClip 270 { frame 1 { stop(); } instance of movieClip 269 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('incinZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 11) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 270 { onClipEvent (load) { if (_global.achieveCounter >= 10) { this.gotoAndStop(2); } } } movieClip 274 { } movieClip 276 { } movieClip 278 { } movieClip 282 { } movieClip 283 { frame 1 { stop(); } instance of movieClip 282 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('poisonZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 8) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 283 { onClipEvent (load) { if (_global.achieveCounter >= 5) { this.gotoAndStop(2); } } } movieClip 286 { instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } } movieClip 287 { frame 1 { stop(); } instance of movieClip 286 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('gg1Zoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 9) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 287 { onClipEvent (load) { if (_global.achieveCounter >= 2) { this.gotoAndStop(2); } } } movieClip 290 { instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } } movieClip 291 { frame 1 { stop(); } instance of movieClip 290 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('gg2Zoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 10) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 291 { onClipEvent (load) { if (_global.achieveCounter >= 8) { this.gotoAndStop(2); } } } movieClip 294 { } movieClip 295 { frame 1 { stop(); } instance of movieClip 294 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('springZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 12) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 295 { onClipEvent (load) { if (_global.achieveCounter >= 9) { this.gotoAndStop(2); } } } movieClip 306 { frame 13 { _root.titletwang.start(); } frame 16 { _root.titletwang.start(); } frame 19 { _root.titletwang.start(); } frame 22 { _root.titletwang.start(); } frame 25 { _root.titletwang.start(); } frame 28 { _root.titletwang.start(); } frame 31 { _root.titletwang.start(); } frame 34 { _root.titletwang.start(); } frame 37 { _root.titletwang.start(); } frame 52 { stop(); } } instance of movieClip 306 { onClipEvent (enterFrame) { if (Key.isDown(32)) { this.play(); } } } movieClip 308 { } movieClip 309 { } movieClip 311 { } movieClip 312 { } movieClip 314 { } movieClip 316 { } movieClip 318 { } movieClip 319 { } movieClip 323 { frame 1 { stop(); } frame 2 { _root.buttondefaultover.start(); } } movieClip 324 { instance of movieClip 319 { onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } } instance of movieClip 319 { onClipEvent (load) { startX = _xscale; startY = _yscale; } onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _xscale = startX - 5; _yscale = startY - 5; } else { _xscale = startX; _yscale = startY; } } } frame 111 { stop(); } instance of movieClip 323 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonstartclick.start(); _root.musictitle.stop(); _root.nextFrame(); _parent.nextFrame(); } } } } instance of movieClip 324 { onClipEvent (enterFrame) { if (Key.isDown(32)) { this.play(); } } } movieClip 327 { } movieClip 329 { } movieClip 331 { } movieClip 333 { } movieClip 335 { } movieClip 337 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 338 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } } movieClip 339 { frame 1 { stop(); } instance of movieClip 338 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (!_root.enemyDisplay) { _root.enemyDisplay = true; _root.enemyInfo.gotoAndStop('playerZoom'); _visible = false; } } else { if (_root.enemyInfo._currentframe == 14) { _root.enemyInfo.gotoAndStop(1); _root.enemyDisplay = false; _visible = true; } } } } } instance of movieClip 339 { onClipEvent (load) { if (_global.achieveCounter >= 13) { this.gotoAndStop(2); } } } movieClip 341 { } instance of movieClip 341 { onClipEvent (load) { if (_global.achieveCounter >= 14) { _alpha = 100; } else { _alpha = 0; } } } movieClip 345 { frame 1 { stop(); } } movieClip 348 { frame 1 { stop(); } } movieClip 351 { frame 1 { stop(); } } movieClip 352 { frame 1 { stop(); } instance of movieClip 348 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, false)) { getURL('http://www.gungamesonline.org', '_blank'); } } } instance of movieClip 351 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, false)) { getURL('http://www.freekillinggames.org', '_blank'); } } } frame 12 { stop(); } } instance of movieClip 352 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_currentframe == 1) { this.play(); } } else { if (_currentframe == 12) { this.play(); } } } } movieClip 355 { frame 7 { stop(); } } movieClip 357 { frame 7 { stop(); } } movieClip 363 { frame 7 { stop(); } } movieClip 365 { frame 7 { stop(); } } movieClip 367 { frame 7 { stop(); } } movieClip 371 { frame 7 { stop(); } } movieClip 373 { frame 7 { stop(); } } movieClip 378 { frame 7 { stop(); } } movieClip 380 { frame 7 { stop(); } } movieClip 382 { frame 7 { stop(); } } movieClip 386 { frame 7 { stop(); } } movieClip 388 { frame 7 { stop(); } } movieClip 390 { frame 7 { stop(); } } movieClip 391 { frame 7 { stop(); } } movieClip 392 { frame 1 { stop(); } frame 2 { _root.shieldup.stop(); _root.shieldup.start(); } frame 3 { _root.shieldup.stop(); _root.shieldup.start(); } frame 4 { _root.shieldup.stop(); _root.shieldup.start(); } frame 5 { _root.shieldup.stop(); _root.shieldup.start(); } frame 6 { _root.shieldup.stop(); _root.shieldup.start(); } frame 7 { _root.shieldup.stop(); _root.shieldup.start(); } frame 8 { _root.shieldup.stop(); _root.shieldup.start(); } frame 9 { _root.shieldup.stop(); _root.shieldup.start(); } frame 10 { _root.shieldup.stop(); _root.shieldup.start(); } frame 11 { _root.shieldup.stop(); _root.shieldup.start(); } frame 12 { _root.shieldup.stop(); _root.shieldup.start(); } frame 13 { _root.shieldup.stop(); _root.shieldup.start(); } frame 14 { _root.shieldup.stop(); _root.shieldup.start(); } } movieClip 394 { frame 20 { stop(); } } movieClip 396 { } movieClip 397 { frame 16 { stop(); _root.play(); } instance of movieClip 396 { onClipEvent (enterFrame) { _root.play(); } } } frame 22 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; i = 0; _global.megaCharge = false; playerLife = 100000; pTotalLife = 100000; pPercentage = playerLife / pTotalLife; musicstageselect.stop(); musictraining.start(0, 99999); } movieClip 400 { } instance ground of movieClip 400 { onClipEvent (load) { _visible = false; } } movieClip 407 { } movieClip 410 { } movieClip 413 { } movieClip 418 { frame 1 { stop(); } frame 2 { play(); } } movieClip 419 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } } movieClip 426 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } } movieClip 432 { frame 5 { stop(); } } movieClip 433 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } frame 2 { stop(); } } movieClip 436 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } frame 2 { stop(); } } movieClip 439 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } frame 2 { stop(); } } movieClip 441 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } } movieClip 443 { } movieClip 444 { instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } } movieClip 451 { } movieClip 462 { } movieClip 463 { frame 1 { stop(); _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x + 26; _root.yLaser = _root.playerSprite._y - 55; } instance hitBox of movieClip 396 { onClipEvent (load) { _visible = false; } } frame 2 { _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x - 30; _root.yLaser = _root.playerSprite._y - 55; } frame 3 { _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x + 30; _root.yLaser = _root.playerSprite._y - 55; } frame 4 { _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x - 35; _root.yLaser = _root.playerSprite._y - 55; } frame 5 { _root.playerHeight = 15; _root.xLaser = _root.playerSprite._x + 23; _root.yLaser = _root.playerSprite._y - 43; } frame 6 { _root.playerHeight = 15; _root.xLaser = _root.playerSprite._x - 23; _root.yLaser = _root.playerSprite._y - 43; } frame 7 { _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x + 30; _root.yLaser = _root.playerSprite._y - 55; } frame 8 { _root.playerHeight = 50; _root.xLaser = _root.playerSprite._x - 30; _root.yLaser = _root.playerSprite._y - 55; } frame 9 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x + 30; _root.yLaser = _root.playerSprite._y - 55; } frame 10 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x - 30; _root.yLaser = _root.playerSprite._y - 55; } frame 11 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x + 27; _root.yLaser = _root.playerSprite._y - 25; } instance sprite of movieClip 441 { onClipEvent (enterFrame) { _rotation = _rotation + 40; } } frame 12 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x - 31; _root.yLaser = _root.playerSprite._y - 25; } instance sprite of movieClip 441 { onClipEvent (enterFrame) { _rotation = _rotation - 40; } } frame 13 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x + 27; _root.yLaser = _root.playerSprite._y - 25; } frame 14 { _root.playerHeight = 20; _root.xLaser = _root.playerSprite._x - 31; _root.yLaser = _root.playerSprite._y - 25; } frame 15 { _root.playerHeight = 50; } frame 16 { _root.playerHeight = 50; } frame 17 { _root.playerHeight = 50; } frame 18 { _root.playerHeight = 50; } frame 19 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; _root.clearFunction(); _root.nextFrame(); _root.playerHealth.backGlow._visible = false; _root.playerHealth.playerThing._visible = false; if (_global.megaCharge) { _global.megaCharge = false; _global.superCounter = 1; } if (_root.enemy.phase == 4) { _global.setachieve13 = true; timer = 2000; } else { timer = 40; } _root.applause.stop(); _root.balloonbombdrop.stop(); _root.ballooncharge1.stop(); _root.ballooncharge2.stop(); _root.ballooncrank.stop(); _root.balloonextend.stop(); _root.balloonlaser1.stop(); _root.balloonlaser2.stop(); _root.balloonphasedrop.stop(); _root.balloonpunch.stop(); _root.balloonwhistle.stop(); _root.bloodblend.stop(); _root.bloodcapture.stop(); _root.blooddrill.stop(); _root.bloodspray.stop(); _root.bloodsuction.stop(); _root.bloodtick.stop(); _root.bloodwallclimb.stop(); _root.bloodslide.stop(); _root.bombexplode.stop(); _root.bubbleblow.stop(); _root.bubblepop.stop(); _root.crabcircle.stop(); _root.crabclack.stop(); _root.crabdescend.stop(); _root.crablegtap.stop(); _root.crabshellclose.stop(); _root.crabshellopen.stop(); _root.crabspikeshing.stop(); _root.crabclawblast.stop(); _root.crabclawpower.stop(); _root.craborbcharge.stop(); _root.crabcreak.stop(); _root.ggblade.stop(); _root.ggfiredash.stop(); _root.ggfireflare.stop(); _root.ggignite.stop(); _root.ggslide.stop(); _root.incinchargeblast1.stop(); _root.incinchargeblast2.stop(); _root.incincharging.stop(); _root.incinconveyorbelt.stop(); _root.incinlaser.stop(); _root.incinlightdescend.stop(); _root.incinwormshing.stop(); _root.instructocorrect.stop(); _root.instructoincorrect.stop(); _root.instructolaser.stop(); _root.instructotalk1.stop(); _root.instructotalk2.stop(); _root.instructotalk3.stop(); _root.playercharged.stop(); _root.playercharging.stop(); _root.poisonalarm.stop(); _root.poisonemerge.stop(); _root.poisongaslarge.stop(); _root.poisongassmall.stop(); _root.poisonslosh1.stop(); _root.poisonslosh2.stop(); _root.poisonspill.stop(); _root.poisonspray.stop(); _root.poisonsubmerge.stop(); _root.shieldlaser1.stop(); _root.shieldlaser2c.stop(); _root.shieldlaser2d.stop(); _root.shieldlaser3.stop(); _root.shieldlaser4.stop(); _root.shieldlaser5.stop(); _root.shieldlaser6.stop(); _root.shieldlaser7.stop(); _root.shieldpowerup.stop(); _root.shielddown.stop(); _root.shieldup.stop(); _root.sniperlaunch.stop(); _root.snipersearching.stop(); _root.springfloorspring.stop(); _root.springland.stop(); _root.springjump.stop(); _root.springtopspring.stop(); _root.wheellaser.stop(); _root.wheelpowerup.stop(); _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelthud.stop(); _root.wheelwaterdrop.stop(); _root.wormcharge.stop(); _root.wormcompress.stop(); _root.wormdash.stop(); _root.wormfollow.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } movieClip 465 { } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; death = false; wControl = false; jControl = false; sControl = false; dControl = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && wControl) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured && jControl) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured && dControl) { ducking = true; duckControl = true; } } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && sControl) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (sliding && !injured) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && jControl) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } movieClip 467 { } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } movieClip 470 { } movieClip 487 { } movieClip 491 { frame 35 { _root.instructo.gotoAndStop(1); } } movieClip 493 { } movieClip 496 { } movieClip 511 { } movieClip 513 { frame 23 { _root.enemySprite.gotoAndStop(3); } } movieClip 523 { } movieClip 525 { } movieClip 526 { frame 12 { _root.wheelpowerup.start(); } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 60; _xscale = _xscale + 3; _yscale = _yscale + 3; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 50; _xscale = _xscale + 3; _yscale = _yscale + 3; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 20; _xscale = _xscale + 3; _yscale = _yscale + 3; } } instance of movieClip 525 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } frame 33 { stop(); _root.enemy.attacking = true; damage = 20; _root.hurtFunction(damage); _root.wheelpowerup.stop(); _root.instructolaser.start(); } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 40; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 25; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 60; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 50; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 20; } } frame 41 { if (_root.enemyLife > 150) { _root.enemy.commandTimer = 50; _root.enemy.responseTimer = 50; } else { if (_root.enemyLife > 100 && _root.enemyLife <= 150) { _root.enemy.commandTimer = 40; _root.enemy.responseTimer = 40; } else { if (_root.enemyLife > 50 && _root.enemyLife <= 100) { _root.enemy.commandTimer = 30; _root.enemy.responseTimer = 30; } else { _root.enemy.commandTimer = 25; _root.enemy.responseTimer = 25; } } } _root.enemy.completed = false; _root.enemySprite.gotoAndStop(3); } } movieClip 527 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 25; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 4 { _root.instructotalk3.start(); } frame 5 { _root.instructoincorrect.start(); } frame 6 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } _global.setachieve14 = true; _global.13_1 = true; n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } movieClip 534 { frame 1 { stop(); } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } instance of movieClip 319 { onClipEvent (load) { startX = _xscale; startY = _yscale; } onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _xscale = startX - 5; _yscale = startY - 5; } else { _xscale = startX; _yscale = startY; } } } movieClip 540 { frame 1 { stop(); } frame 2 { _root.buttondefaultover.start(); } } movieClip 543 { frame 1 { stop(); } frame 2 { _root.buttondefaultover.start(); } } movieClip 548 { frame 1 { stop(); } frame 2 { _root.buttondefaultover.start(); } } movieClip 566 { frame 1 { stop(); } instance of movieClip 540 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttonyes.start(); _parent.nextFrame(); } } } instance of movieClip 543 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonno.start(); _root.musictraining.stop(); _root.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk1.stop(); _root.instructotalk2.start(); _root.instructo.italk.gotoAndPlay(1); _root.player.wControl = true; _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk1.stop(); _root.instructotalk2.start(); _root.instructo.italk.gotoAndPlay(1); _root.player.jControl = true; _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk1.stop(); _root.instructotalk2.start(); _root.instructo.italk.gotoAndPlay(1); _root.player.dControl = true; _root.player.sControl = true; _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk1.stop(); _root.instructotalk2.start(); _root.instructo.italk.gotoAndPlay(1); _root.reticule.sControl = true; _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk1.stop(); _root.instructotalk2.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.instructo.gotoAndStop(2); _root.instructotalk2.stop(); _root.instructotalk1.start(); _root.instructo.italk.gotoAndPlay(1); _root.buttondefaultclick.start(); _parent.nextFrame(); } } } instance of movieClip 548 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttondefaultclick.start(); _root.musictraining.stop(); _root.nextFrame(); } } } } instance of movieClip 566 { onClipEvent (load) { startTimer = 40; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; if (startTimer == 1) { this.gotoAndStop(2); _root.instructotalk2.start(); _root.instructo.gotoAndStop(2); } } } } movieClip 567 { } movieClip 568 { } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } movieClip 569 { } movieClip 570 { frame 1 { stop(); } instance of movieClip 569 { onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 25; } } } instance of movieClip 523 { onClipEvent (load) { _rotation = Math.random() * 360; } } instance of movieClip 523 { onClipEvent (load) { _rotation = Math.random() * 360; } } instance of movieClip 523 { onClipEvent (load) { _rotation = Math.random() * 360; } } instance of movieClip 523 { onClipEvent (load) { _rotation = Math.random() * 360; } } instance of movieClip 523 { onClipEvent (load) { _rotation = Math.random() * 360; } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } movieClip 573 { } movieClip 574 { } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } movieClip 577 { } movieClip 579 { } movieClip 581 { frame 1 { stop(); } frame 31 { stop(); } } movieClip 582 { frame 1 { stop(); } instance of movieClip 577 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 20; } } } instance skull of movieClip 579 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 20; } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; sControl = false; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge && sControl) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured && sControl) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } movieClip 583 { frame 16 { stop(); } } frame 39 { applause.stop(); balloonbombdrop.stop(); ballooncharge1.stop(); ballooncharge2.stop(); ballooncrank.stop(); balloonextend.stop(); balloonlaser1.stop(); balloonlaser2.stop(); balloonphasedrop.stop(); balloonpunch.stop(); balloonwhistle.stop(); bloodblend.stop(); bloodcapture.stop(); blooddrill.stop(); bloodspray.stop(); bloodsuction.stop(); bloodtick.stop(); bloodwallclimb.stop(); bloodslide.stop(); bombexplode.stop(); bubbleblow.stop(); bubblepop.stop(); crabcircle.stop(); crabclack.stop(); crabdescend.stop(); crablegtap.stop(); crabshellclose.stop(); crabshellopen.stop(); crabspikeshing.stop(); crabclawblast.stop(); crabclawpower.stop(); craborbcharge.stop(); crabcreak.stop(); ggblade.stop(); ggfiredash.stop(); ggfireflare.stop(); ggignite.stop(); ggslide.stop(); incinchargeblast1.stop(); incinchargeblast2.stop(); incincharging.stop(); incinconveyorbelt.stop(); incinlaser.stop(); incinlightdescend.stop(); incinwormshing.stop(); instructocorrect.stop(); instructoincorrect.stop(); instructolaser.stop(); instructotalk1.stop(); instructotalk2.stop(); instructotalk3.stop(); playercharged.stop(); playercharging.stop(); poisonalarm.stop(); poisonemerge.stop(); poisongaslarge.stop(); poisongassmall.stop(); poisonslosh1.stop(); poisonslosh2.stop(); poisonspill.stop(); poisonspray.stop(); poisonsubmerge.stop(); shieldlaser1.stop(); shieldlaser2c.stop(); shieldlaser2d.stop(); shieldlaser3.stop(); shieldlaser4.stop(); shieldlaser5.stop(); shieldlaser6.stop(); shieldlaser7.stop(); shieldpowerup.stop(); shielddown.stop(); shieldup.stop(); sniperlaunch.stop(); snipersearching.stop(); springfloorspring.stop(); springland.stop(); springjump.stop(); springtopspring.stop(); wheellaser.stop(); wheelpowerup.stop(); wheelrolllong.stop(); wheelrollshort.stop(); wheelthud.stop(); wheelwaterdrop.stop(); wormcharge.stop(); wormcompress.stop(); wormdash.stop(); wormfollow.stop(); musictraining.stop(); musicstageselect.start(0, 99999); } frame 39 { stop(); _global.stageSelection = ''; _global.usedpack = false; _global.usedcharge = false; _global.bosscount1 = 0; _global.bosscount2 = 0; _global.bosscount3 = 0; _global.bosscount4 = 0; _global.perfectcount1 = 0; _global.perfectcount2 = 0; _global.perfectcount3 = 0; _global.minimumcount = 0; _global.achieveCounter = 0; r = 1; while (r <= 12) { if (_global[r.toString() + '_1']) { ++_global.bosscount1; } if (_global[r.toString() + '_2']) { ++_global.bosscount2; } if (_global[r.toString() + '_3']) { ++_global.bosscount3; } if (_global[r.toString() + '_4']) { ++_global.bosscount4; } if (_global['perfect_' + r.toString() + '_1']) { ++_global.perfectcount1; } if (_global['perfect_' + r.toString() + '_2']) { ++_global.perfectcount2; } if (_global['perfect_' + r.toString() + '_3']) { ++_global.perfectcount3; } if (_global['shots_' + r.toString()]) { ++_global.minimumcount; } ++r; } if (_global.bosscount1 == 12) { if (!_global.achievement_1) { _global.achievement_1 = true; _root.achievementNotice.gotoAndStop(2); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.bosscount2 == 12) { if (!_global.achievement_2) { _global.achievement_2 = true; _root.achievementNotice.gotoAndStop(3); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; _global.acCharge = 0; } } if (_global.bosscount3 == 12) { if (!_global.achievement_3) { _global.achievement_3 = true; _root.achievementNotice.gotoAndStop(4); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.bosscount4 == 12) { if (!_global.achievement_4) { _global.achievement_4 = true; _root.achievementNotice.gotoAndStop(5); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.achievement_1) { _global.activepack = true; } if (_global.achievement_2) { _global.activecharge = true; } if (_global.achievement_3) { _global.superpack = true; } if (_global.achievement_4) { _global.overCharge = true; } if (_global.perfectcount1 == 12) { if (!_global.achievement_5) { _global.achievement_5 = true; _root.achievementNotice.gotoAndStop(6); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.perfectcount2 == 6) { if (!_global.achievement_6) { _global.achievement_6 = true; _root.achievementNotice.gotoAndStop(7); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.perfectcount3 == 1) { if (!_global.achievement_7) { _global.achievement_7 = true; _root.achievementNotice.gotoAndStop(8); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.setachieve9) { if (!_global.achievement_9) { _global.achievement_9 = true; _root.achievementNotice.gotoAndStop(10); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.minimumcount >= 4) { if (!_global.achievement_10) { _global.achievement_10 = true; _root.achievementNotice.gotoAndStop(11); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.setachieve13) { if (!_global.achievement_13) { _global.achievement_13 = true; _root.achievementNotice.gotoAndStop(14); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } if (_global.setachieve14) { if (!_global.achievement_14) { _global.achievement_14 = true; _root.achievementNotice.gotoAndStop(15); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; } } n = 1; while (n <= 13) { m = 1; while (m <= 4) { bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; bossSave.data['perfect_' + n.toString() + '_' + m.toString()] = _global['perfect_' + n.toString() + '_' + m.toString()]; ++m; } bossSave.data['shots_' + n.toString()] = _global['shots_' + n.toString()]; ++n; } c = 1; while (c <= 14) { bossSave.data['achievement_' + c.toString()] = _global['achievement_' + c.toString()]; if (_global['achievement_' + c.toString()]) { ++_global.achieveCounter; } ++c; } bossSave.flush(); } movieClip 587 { frame 1 { stop(); } frame 2 { _root.buttonbosshover.start(); } } movieClip 590 { } instance of movieClip 590 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_global.difficulty != 2) { if (_alpha > 0) { _alpha = _alpha - 15; } } else { if (_alpha < 100) { _alpha = _alpha + 15; } } } } movieClip 592 { } instance of movieClip 592 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_global.difficulty != 3) { if (_alpha > 0) { _alpha = _alpha - 15; } } else { if (_alpha < 100) { _alpha = _alpha + 15; } } } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } movieClip 611 { frame 10 { stop(); } } movieClip 612 { frame 10 { stop(); } } movieClip 613 { frame 1 { stop(); } } instance t4 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.3_1 or _global.3_2 or _global.3_3 or _global.3_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.3_2 or _global.3_3 or _global.3_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.4_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.3_1 or _global.3_2 or _global.3_3 or _global.3_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.3_2 or _global.3_3 or _global.3_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.4_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t3 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.2_1 or _global.2_2 or _global.2_3 or _global.2_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.2_2 or _global.2_3 or _global.2_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.3_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.2_1 or _global.2_2 or _global.2_3 or _global.2_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { if (_global.difficulty == 2) { if (_global.2_2 or _global.2_3 or _global.2_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { if (_global.3_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } instance t5 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.4_1 or _global.4_2 or _global.4_3 or _global.4_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.4_2 or _global.4_3 or _global.4_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.5_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.4_1 or _global.4_2 or _global.4_3 or _global.4_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.4_2 or _global.4_3 or _global.4_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.5_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t6 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.5_1 or _global.5_2 or _global.5_3 or _global.5_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.5_2 or _global.5_3 or _global.5_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.6_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.5_1 or _global.5_2 or _global.5_3 or _global.5_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.5_2 or _global.5_3 or _global.5_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.6_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t8 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.7_1 or _global.7_2 or _global.7_3 or _global.7_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.7_2 or _global.7_3 or _global.7_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.8_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.7_1 or _global.7_2 or _global.7_3 or _global.7_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.7_2 or _global.7_3 or _global.7_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.8_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t7 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.6_1 or _global.6_2 or _global.6_3 or _global.6_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.6_2 or _global.6_3 or _global.6_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.7_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.6_1 or _global.6_2 or _global.6_3 or _global.6_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.6_2 or _global.6_3 or _global.6_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.7_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t9 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.8_1 or _global.8_2 or _global.8_3 or _global.8_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.8_2 or _global.8_3 or _global.8_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.9_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.8_1 or _global.8_2 or _global.8_3 or _global.8_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.8_2 or _global.8_3 or _global.8_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.9_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t10 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.9_1 or _global.9_2 or _global.9_3 or _global.9_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.9_2 or _global.9_3 or _global.9_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.10_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.9_1 or _global.9_2 or _global.9_3 or _global.9_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.9_2 or _global.9_3 or _global.9_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.10_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t12 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.11_1 or _global.11_2 or _global.11_3 or _global.11_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.11_2 or _global.11_3 or _global.11_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.12_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.11_1 or _global.11_2 or _global.11_3 or _global.11_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.11_2 or _global.11_3 or _global.11_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.12_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t11 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.10_1 or _global.10_2 or _global.10_3 or _global.10_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.10_2 or _global.10_3 or _global.10_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.11_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.10_1 or _global.10_2 or _global.10_3 or _global.10_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.10_2 or _global.10_3 or _global.10_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.11_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } } instance t2 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 1) { if (_global.1_1 or _global.1_2 or _global.1_3 or _global.1_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.difficulty == 2) { if (_global.1_2 or _global.1_3 or _global.1_4) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (_global.2_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { if (_global.1_1 or _global.1_2 or _global.1_3 or _global.1_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { if (_global.difficulty == 2) { if (_global.1_2 or _global.1_3 or _global.1_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { if (_global.2_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } instance t1 of movieClip 613 { onClipEvent (load) { this.gotoAndStop(3); if (_global.difficulty == 3) { if (_global.1_2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_global.1_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this.gotoAndStop(2); } } } movieClip 620 { frame 1 { stop(); } } instance s1 of movieClip 620 { onClipEvent (load) { if (_global.1_4) { this.gotoAndStop(5); } else { if (_global.1_3) { this.gotoAndStop(4); } else { if (_global.1_2) { this.gotoAndStop(3); } else { if (_global.1_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t1._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b1.gotoAndStop(2); _root.stageName.gotoAndStop(2); } } else { if (_root.b1._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b1.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t1._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'wheel'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s3 of movieClip 620 { onClipEvent (load) { if (_global.3_4) { this.gotoAndStop(5); } else { if (_global.3_3) { this.gotoAndStop(4); } else { if (_global.3_2) { this.gotoAndStop(3); } else { if (_global.3_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t3._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b3.gotoAndStop(2); _root.stageName.gotoAndStop(4); } } else { if (_root.b3._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b3.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t3._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'shield'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s5 of movieClip 620 { onClipEvent (load) { if (_global.5_4) { this.gotoAndStop(5); } else { if (_global.5_3) { this.gotoAndStop(4); } else { if (_global.5_2) { this.gotoAndStop(3); } else { if (_global.5_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t5._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b5.gotoAndStop(2); _root.stageName.gotoAndStop(6); } } else { if (_root.b5._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b5.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t5._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'poison'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s11 of movieClip 620 { onClipEvent (load) { if (_global.11_4) { this.gotoAndStop(5); } else { if (_global.11_3) { this.gotoAndStop(4); } else { if (_global.11_2) { this.gotoAndStop(3); } else { if (_global.11_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t11._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b11.gotoAndStop(2); _root.stageName.gotoAndStop(12); } } else { if (_root.b11._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b11.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t11._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'blood'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s9 of movieClip 620 { onClipEvent (load) { if (_global.9_4) { this.gotoAndStop(5); } else { if (_global.9_3) { this.gotoAndStop(4); } else { if (_global.9_2) { this.gotoAndStop(3); } else { if (_global.9_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t9._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b9.gotoAndStop(2); _root.stageName.gotoAndStop(10); } } else { if (_root.b9._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b9.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t9._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'spring'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s7 of movieClip 620 { onClipEvent (load) { if (_global.7_4) { this.gotoAndStop(5); } else { if (_global.7_3) { this.gotoAndStop(4); } else { if (_global.7_2) { this.gotoAndStop(3); } else { if (_global.7_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t7._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b7.gotoAndStop(2); _root.stageName.gotoAndStop(8); } } else { if (_root.b7._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b7.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t7._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'sniper'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s12 of movieClip 620 { onClipEvent (load) { if (_global.12_4) { this.gotoAndStop(5); } else { if (_global.12_3) { this.gotoAndStop(4); } else { if (_global.12_2) { this.gotoAndStop(3); } else { if (_global.12_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t12._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b12.gotoAndStop(2); _root.stageName.gotoAndStop(13); } } else { if (_root.b12._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b12.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t12._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'crab'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s10 of movieClip 620 { onClipEvent (load) { if (_global.10_4) { this.gotoAndStop(5); } else { if (_global.10_3) { this.gotoAndStop(4); } else { if (_global.10_2) { this.gotoAndStop(3); } else { if (_global.10_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t10._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b10.gotoAndStop(2); _root.stageName.gotoAndStop(11); } } else { if (_root.b10._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b10.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t10._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'incin'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s8 of movieClip 620 { onClipEvent (load) { if (_global.8_4) { this.gotoAndStop(5); } else { if (_global.8_3) { this.gotoAndStop(4); } else { if (_global.8_2) { this.gotoAndStop(3); } else { if (_global.8_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t8._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b8.gotoAndStop(2); _root.stageName.gotoAndStop(9); } } else { if (_root.b8._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b8.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t8._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'gg2'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s2 of movieClip 620 { onClipEvent (load) { if (_global.2_4) { this.gotoAndStop(5); } else { if (_global.2_3) { this.gotoAndStop(4); } else { if (_global.2_2) { this.gotoAndStop(3); } else { if (_global.2_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t2._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b2.gotoAndStop(2); _root.stageName.gotoAndStop(3); } } else { if (_root.b2._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b2.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t2._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'gg1'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s4 of movieClip 620 { onClipEvent (load) { if (_global.4_4) { this.gotoAndStop(5); } else { if (_global.4_3) { this.gotoAndStop(4); } else { if (_global.4_2) { this.gotoAndStop(3); } else { if (_global.4_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t4._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b4.gotoAndStop(2); _root.stageName.gotoAndStop(5); } } else { if (_root.b4._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b4.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t4._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'balloon'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } instance s6 of movieClip 620 { onClipEvent (load) { if (_global.6_4) { this.gotoAndStop(5); } else { if (_global.6_3) { this.gotoAndStop(4); } else { if (_global.6_2) { this.gotoAndStop(3); } else { if (_global.6_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t6._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b6.gotoAndStop(2); _root.stageName.gotoAndStop(7); } } else { if (_root.b6._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b6.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_root.t6._currentframe == 2 && _root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'worm'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } movieClip 629 { frame 1 { stop(); } } instance of movieClip 629 { onClipEvent (load) { if (_global.activepack) { if (!_global.superpack) { switch (_global.lifeRefill) { case 0: this.gotoAndStop(1); break; case 0.25: this.gotoAndStop(2); break; case 0.5: this.gotoAndStop(3); break; case 0.75: this.gotoAndStop(4); break; case 1: this.gotoAndStop(5); } if (_global.lifeRefill > 1) { _global.lifeRefill = 1; } } else { this.gotoAndStop(6); _global.lifeRefill = 1; } if (_global.epack) { _root.packGlow._visible = true; } else { _root.packGlow._visible = false; } } else { this.gotoAndStop(7); _global.lifeRefill = 0; _root.packGlow._visible = false; } } onClipEvent (enterFrame) { if (_global.activepack) { if (!_global.superpack) { switch (_global.lifeRefill) { case 0: this.gotoAndStop(1); break; case 0.25: this.gotoAndStop(2); break; case 0.5: this.gotoAndStop(3); break; case 0.75: this.gotoAndStop(4); break; case 1: this.gotoAndStop(5); } if (_global.lifeRefill > 1) { _global.lifeRefill = 1; } } else { this.gotoAndStop(6); _global.lifeRefill = 1; } if (_global.epack) { _root.packGlow._visible = true; } else { _root.packGlow._visible = false; } } else { this.gotoAndStop(7); _global.lifeRefill = 0; _root.packGlow._visible = false; } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(2); } else { if (_root.frontText._currentframe == 2) { _root.frontText.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_global.activepack) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_global.lifeRefill > 0) { if (_global.epack) { _root.item2deactivate.start(); _global.epack = false; _root.packGlow._visible = false; } else { _root.item2activate.start(); _global.epack = true; _root.packGlow._visible = true; } } } } } } movieClip 636 { frame 1 { stop(); } } instance of movieClip 636 { onClipEvent (load) { if (_global.acCharge > 1440) { _global.acCharge = 1440; } switch (_global.acCharge) { case 0: frameCon = 1; break; case 480: frameCon = 2; break; case 960: frameCon = 3; break; case 1440: frameCon = 4; } if (_global.activecharge) { if (_global.megaCharge) { _root.megaGlow._visible = true; } else { _root.megaGlow._visible = false; } if (_global.overCharge) { this.gotoAndStop(5); _global.acCharge = 99999; } else { this.gotoAndStop(frameCon); if (_global.superCounter > 4) { _global.superCounter = 4; } } } else { this.gotoAndStop(6); _global.superCounter = 0; _root.megaGlow._visible = false; } } onClipEvent (enterFrame) { if (_global.activecharge) { if (_global.megaCharge) { _root.megaGlow._visible = true; } else { _root.megaGlow._visible = false; } } else { this.gotoAndStop(6); _global.superCounter = 0; _root.megaGlow._visible = false; } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(3); } else { if (_root.frontText._currentframe == 3) { _root.frontText.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_global.activecharge) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_global.acCharge > 0) { if (_global.megaCharge) { _root.item2deactivate.start(); _global.megaCharge = false; _global.usedcharge = false; _root.megaGlow._visible = false; } else { _root.item2activate.start(); _global.megaCharge = true; _global.usedcharge = true; _root.megaGlow._visible = true; } } } } } } movieClip 640 { } movieClip 643 { } instance of movieClip 643 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_global.difficulty != 2) { if (_alpha > 0) { _alpha = _alpha - 15; } } else { if (_alpha < 100) { _alpha = _alpha + 15; } } } } movieClip 646 { } instance of movieClip 646 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_global.difficulty != 3) { if (_alpha > 0) { _alpha = _alpha - 15; } } else { if (_alpha < 100) { _alpha = _alpha + 15; } } } } // unknown tag 88 length 114 movieClip 677 { frame 1 { stop(); } } movieClip 687 { } movieClip 698 { frame 1 { stop(); } frame 2 { _root.buttonachieveclick.start(); } frame 3 { _root.buttonachieveclick.start(); } frame 4 { _root.buttonachieveclick.start(); } frame 5 { _root.buttonachieveclick.start(); } frame 6 { _root.buttonachieveclick.start(); } frame 7 { _root.buttonachieveclick.start(); } frame 8 { _root.buttonachieveclick.start(); } frame 9 { _root.buttonachieveclick.start(); } } movieClip 702 { frame 1 { stop(); } frame 5 { _root.buttondefaultover.start(); } frame 6 { _root.buttonbosshover.start(); } frame 7 { _root.buttonbosshover.start(); } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(4); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(5); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(6); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(7); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(8); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } instance of movieClip 698 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (this.ip.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(9); _visible = true; } else { _visible = false; this.gotoAndStop(1); } } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_1_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_1) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_3_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_3) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_5_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_5) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_2_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_2) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_2_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_4_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_4) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_4_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_6_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_6) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_6_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_12_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_10_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_8_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_2_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_4_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_6_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_11_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_11) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_9_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_9) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_7_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_7) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_8_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_8_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_8) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_10_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_10_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_10) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_12_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_12_3) { this.gotoAndStop(10); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.shots_12) { this.gotoAndStop(11); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s1._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s3._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s5._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s12._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s10._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s8._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s4._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s6._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s2._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s11._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s7._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(_root.s9._currentframe + 11); } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_11_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_11_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_9_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_9_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_7_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_7_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_1_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_3_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_5_2) { this.gotoAndStop(9); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_1_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_3_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.perfect_5_1) { this.gotoAndStop(8); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 1) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_currentframe == 1) { this.gotoAndStop(17); } } else { if (_currentframe == 17) { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.difficulty = 1; _root.buttonstarter.start(); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 2) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 2) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_currentframe == 1) { this.gotoAndStop(17); } } else { if (_currentframe == 17) { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.difficulty = 2; _root.buttonchallenging.start(); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(6); if (_currentframe == 1) { this.gotoAndStop(17); } } else { if (_root.frontText._currentframe == 6) { _root.frontText.gotoAndStop(1); } if (_currentframe == 17) { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.difficulty = 3; _root.buttondeadly.start(); } } } movieClip 706 { frame 1 { stop(); } } instance of movieClip 706 { onClipEvent (enterFrame) { if (_root.frontText._currentframe == 4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe == 4) { _root.frontText.gotoAndStop(1); this.gotoAndStop(1); } else { _root.frontText.gotoAndStop(4); this.gotoAndStop(2); } _root.achievementmenu.start(); } } } instance ib of movieClip 702 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (_global.achieveCounter < 13) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(6); _root.stageName.gotoAndStop(14); } } else { if (_currentframe == 6) { _root.stageName.gotoAndStop(1); } this.gotoAndStop(1); } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(5); } else { if (_root.frontText._currentframe == 5) { _root.frontText.gotoAndStop(1); } } } else { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(7); _root.stageName.gotoAndStop(15); } } else { if (_currentframe == 7) { _root.stageName.gotoAndStop(1); } this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_global.achieveCounter >= 13) { if (_root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'instructo'; _root.buttonbossclick.start(); _root.nextFrame(); } } } } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(5); } } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (_root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'training'; _root.nextFrame(); } } } } movieClip 717 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 721 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 725 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 729 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 733 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 738 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 742 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 745 { frame 1 { stop(); } } movieClip 748 { frame 1 { stop(); } } movieClip 752 { frame 1 { stop(); } frame 3 { _root.buttondefaultover.start(); } } movieClip 755 { frame 1 { stop(); } } movieClip 758 { frame 1 { stop(); } } movieClip 761 { frame 1 { stop(); } } movieClip 764 { frame 1 { stop(); } } movieClip 767 { frame 1 { stop(); } frame 2 { _root.buttondefaultover.start(); } } movieClip 771 { frame 1 { stop(); } } movieClip 774 { frame 1 { stop(); } } movieClip 777 { frame 1 { stop(); } } movieClip 780 { frame 1 { stop(); } } movieClip 783 { frame 1 { stop(); } } movieClip 786 { frame 1 { stop(); } } movieClip 789 { frame 1 { stop(); } } movieClip 792 { frame 1 { stop(); } } movieClip 795 { frame 1 { stop(); } } movieClip 798 { frame 1 { stop(); } } movieClip 801 { frame 1 { stop(); } } movieClip 804 { frame 1 { stop(); } } movieClip 812 { frame 1 { stop(); } instance of movieClip 717 { onClipEvent (load) { if (_global.achievement_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(2); } } } instance of movieClip 721 { onClipEvent (load) { if (_global.achievement_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(3); } } } instance of movieClip 725 { onClipEvent (load) { if (_global.achievement_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(4); } } } instance of movieClip 729 { onClipEvent (load) { if (_global.achievement_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(5); } } } instance of movieClip 733 { onClipEvent (load) { if (_global.achievement_5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(6); } } } instance of movieClip 738 { onClipEvent (load) { if (_global.achievement_6) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_6) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(7); } } } instance of movieClip 742 { onClipEvent (load) { if (_global.achievement_7) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_7) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(8); } } } instance of movieClip 745 { onClipEvent (load) { if (_global.achievement_8) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_8) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 748 { onClipEvent (load) { if (_global.achievement_9) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_9) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 752 { onClipEvent (load) { if (_global.achievement_10) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(3); } else { if (_global.achievement_10) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttonachieveclick.start(); _parent.gotoAndStop(9); } } } instance of movieClip 755 { onClipEvent (load) { if (_global.achievement_11) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_11) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 758 { onClipEvent (load) { if (_global.achievement_12) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_12) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 761 { onClipEvent (load) { if (_global.achievement_13) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_13) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 764 { onClipEvent (load) { if (_global.achievement_14) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.achievement_14) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 767 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttondefaultclick.start(); _parent._parent.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.1_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.2_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.3_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.4_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.5_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.6_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.7_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.8_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.9_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.10_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.11_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.12_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 767 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.buttondefaultclick.start(); _parent.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.1_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.2_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.3_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.4_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.5_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.6_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.7_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.8_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.9_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.10_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.11_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.12_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.1_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.2_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.3_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.4_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.5_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.6_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.7_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.8_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.9_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.10_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.11_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.12_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.1_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.2_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.3_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.4_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.5_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.6_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.7_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.8_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.9_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.10_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.11_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.12_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.perfect_1_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.perfect_2_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.perfect_3_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.perfect_4_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.perfect_5_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.perfect_6_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.perfect_7_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.perfect_8_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.perfect_9_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.perfect_10_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.perfect_11_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.perfect_12_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.perfect_1_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.perfect_2_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.perfect_3_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.perfect_4_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.perfect_5_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.perfect_6_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.perfect_7_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.perfect_8_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.perfect_9_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.perfect_10_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.perfect_11_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.perfect_12_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.perfect_1_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.perfect_2_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.perfect_3_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.perfect_4_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.perfect_5_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.perfect_6_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.perfect_7_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.perfect_8_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.perfect_9_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.perfect_10_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.perfect_11_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.perfect_12_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 771 { onClipEvent (load) { if (_global.shots_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 774 { onClipEvent (load) { if (_global.shots_2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 777 { onClipEvent (load) { if (_global.shots_3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 780 { onClipEvent (load) { if (_global.shots_4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 783 { onClipEvent (load) { if (_global.shots_5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 786 { onClipEvent (load) { if (_global.shots_6) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 789 { onClipEvent (load) { if (_global.shots_7) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 792 { onClipEvent (load) { if (_global.shots_8) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 795 { onClipEvent (load) { if (_global.shots_9) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 798 { onClipEvent (load) { if (_global.shots_10) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 801 { onClipEvent (load) { if (_global.shots_11) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 804 { onClipEvent (load) { if (_global.shots_12) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 815 { frame 1 { stop(); } frame 2 { _root.buttonachieveclick.start(); } frame 3 { _root.buttonachieveclick.start(); } frame 5 { _root.buttonachieveclick.start(); } } instance of movieClip 319 { onClipEvent (load) { startX = _xscale; startY = _yscale; } onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _xscale = startX - 5; _yscale = startY - 5; } else { _xscale = startX; _yscale = startY; } } } // unknown tag 88 length 119 movieClip 856 { frame 1 { stop(); } frame 2 { _root.achievementunlock.start(); } frame 3 { _root.achievementunlock.start(); } frame 4 { _root.achievementunlock.start(); } frame 5 { _root.achievementunlock.start(); } frame 6 { _root.achievementunlock.start(); } frame 7 { _root.achievementunlock.start(); } frame 8 { _root.achievementunlock.start(); } frame 9 { _root.achievementunlock.start(); } frame 10 { _root.achievementunlock.start(); } frame 11 { _root.achievementunlock.start(); } frame 12 { _root.achievementunlock.start(); } frame 13 { _root.achievementunlock.start(); } frame 14 { _root.achievementunlock.start(); } instance ball of movieClip 337 { onClipEvent (load) { if (_root.reticule.charged) { this.gotoAndStop('charged'); } else { this.gotoAndPlay(_root.reticule.charge - 4); } } } frame 15 { _root.achievementunlock.start(); } } instance achievementNotice of movieClip 856 { onClipEvent (enterFrame) { if (_alpha > 0) { if (timer > 0) { --timer; } else { _alpha = _alpha - 10; } } } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 40 { musicstageselect.stop(); } instance of movieClip 620 { onClipEvent (load) { if (_global.1_4) { this.gotoAndStop(5); } else { if (_global.1_3) { this.gotoAndStop(4); } else { if (_global.1_2) { this.gotoAndStop(3); } else { if (_global.1_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t1._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b1.gotoAndStop(2); _root.stageName.gotoAndStop(2); } } else { if (_root.b1._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b1.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.3_4) { this.gotoAndStop(5); } else { if (_global.3_3) { this.gotoAndStop(4); } else { if (_global.3_2) { this.gotoAndStop(3); } else { if (_global.3_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t3._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b3.gotoAndStop(2); _root.stageName.gotoAndStop(4); } } else { if (_root.b3._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b3.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.5_4) { this.gotoAndStop(5); } else { if (_global.5_3) { this.gotoAndStop(4); } else { if (_global.5_2) { this.gotoAndStop(3); } else { if (_global.5_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t5._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b5.gotoAndStop(2); _root.stageName.gotoAndStop(6); } } else { if (_root.b5._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b5.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.11_4) { this.gotoAndStop(5); } else { if (_global.11_3) { this.gotoAndStop(4); } else { if (_global.11_2) { this.gotoAndStop(3); } else { if (_global.11_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t11._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b11.gotoAndStop(2); _root.stageName.gotoAndStop(12); } } else { if (_root.b11._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b11.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.9_4) { this.gotoAndStop(5); } else { if (_global.9_3) { this.gotoAndStop(4); } else { if (_global.9_2) { this.gotoAndStop(3); } else { if (_global.9_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t9._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b9.gotoAndStop(2); _root.stageName.gotoAndStop(10); } } else { if (_root.b9._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b9.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.7_4) { this.gotoAndStop(5); } else { if (_global.7_3) { this.gotoAndStop(4); } else { if (_global.7_2) { this.gotoAndStop(3); } else { if (_global.7_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t7._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b7.gotoAndStop(2); _root.stageName.gotoAndStop(8); } } else { if (_root.b7._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b7.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.12_4) { this.gotoAndStop(5); } else { if (_global.12_3) { this.gotoAndStop(4); } else { if (_global.12_2) { this.gotoAndStop(3); } else { if (_global.12_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t12._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b12.gotoAndStop(2); _root.stageName.gotoAndStop(13); } } else { if (_root.b12._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b12.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.10_4) { this.gotoAndStop(5); } else { if (_global.10_3) { this.gotoAndStop(4); } else { if (_global.10_2) { this.gotoAndStop(3); } else { if (_global.10_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t10._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b10.gotoAndStop(2); _root.stageName.gotoAndStop(11); } } else { if (_root.b10._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b10.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.8_4) { this.gotoAndStop(5); } else { if (_global.8_3) { this.gotoAndStop(4); } else { if (_global.8_2) { this.gotoAndStop(3); } else { if (_global.8_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t8._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b8.gotoAndStop(2); _root.stageName.gotoAndStop(9); } } else { if (_root.b8._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b8.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.2_4) { this.gotoAndStop(5); } else { if (_global.2_3) { this.gotoAndStop(4); } else { if (_global.2_2) { this.gotoAndStop(3); } else { if (_global.2_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t2._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b2.gotoAndStop(2); _root.stageName.gotoAndStop(3); } } else { if (_root.b2._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b2.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.4_4) { this.gotoAndStop(5); } else { if (_global.4_3) { this.gotoAndStop(4); } else { if (_global.4_2) { this.gotoAndStop(3); } else { if (_global.4_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t4._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b4.gotoAndStop(2); _root.stageName.gotoAndStop(5); } } else { if (_root.b4._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b4.gotoAndStop(1); } } } } instance of movieClip 620 { onClipEvent (load) { if (_global.6_4) { this.gotoAndStop(5); } else { if (_global.6_3) { this.gotoAndStop(4); } else { if (_global.6_2) { this.gotoAndStop(3); } else { if (_global.6_1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } } onClipEvent (enterFrame) { if (_root.t6._currentframe == 2) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { _root.b6.gotoAndStop(2); _root.stageName.gotoAndStop(7); } } else { if (_root.b6._currentframe == 2) { _root.stageName.gotoAndStop(1); } _root.b6.gotoAndStop(1); } } } } instance of movieClip 629 { onClipEvent (load) { if (_global.activepack) { if (!_global.superpack) { switch (_global.lifeRefill) { case 0: this.gotoAndStop(1); break; case 0.25: this.gotoAndStop(2); break; case 0.5: this.gotoAndStop(3); break; case 0.75: this.gotoAndStop(4); break; case 1: this.gotoAndStop(5); } if (_global.lifeRefill > 1) { _global.lifeRefill = 1; } } else { this.gotoAndStop(6); _global.lifeRefill = 1; } if (_global.epack) { _root.packGlow._visible = true; } else { _root.packGlow._visible = false; } } else { this.gotoAndStop(7); _global.lifeRefill = 0; _root.packGlow._visible = false; } } onClipEvent (enterFrame) { if (_global.activepack) { if (!_global.superpack) { switch (_global.lifeRefill) { case 0: this.gotoAndStop(1); break; case 0.25: this.gotoAndStop(2); break; case 0.5: this.gotoAndStop(3); break; case 0.75: this.gotoAndStop(4); break; case 1: this.gotoAndStop(5); } if (_global.lifeRefill > 1) { _global.lifeRefill = 1; } } else { this.gotoAndStop(6); _global.lifeRefill = 1; } if (_global.epack) { _root.packGlow._visible = true; } else { _root.packGlow._visible = false; } } else { this.gotoAndStop(7); _global.lifeRefill = 0; _root.packGlow._visible = false; } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(2); } else { if (_root.frontText._currentframe == 2) { _root.frontText.gotoAndStop(1); } } } } instance of movieClip 636 { onClipEvent (load) { if (_global.acCharge > 1440) { _global.acCharge = 1440; } switch (_global.acCharge) { case 0: frameCon = 1; break; case 480: frameCon = 2; break; case 960: frameCon = 3; break; case 1440: frameCon = 4; } if (_global.activecharge) { if (_global.megaCharge) { _root.megaGlow._visible = true; } else { _root.megaGlow._visible = false; } if (_global.overCharge) { this.gotoAndStop(5); _global.acCharge = 99999; } else { this.gotoAndStop(frameCon); if (_global.superCounter > 4) { _global.superCounter = 4; } } } else { this.gotoAndStop(6); _global.superCounter = 0; _root.megaGlow._visible = false; } } onClipEvent (enterFrame) { if (_global.activecharge) { if (_global.megaCharge) { _root.megaGlow._visible = true; } else { _root.megaGlow._visible = false; } } else { this.gotoAndStop(6); _global.superCounter = 0; _root.megaGlow._visible = false; } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(3); } else { if (_root.frontText._currentframe == 3) { _root.frontText.gotoAndStop(1); } } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 1) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 1) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 2) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 2) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { if (_global.difficulty == 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_global.difficulty == 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 706 { onClipEvent (enterFrame) { if (_root.frontText._currentframe == 4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 702 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(5); } } else { this.gotoAndStop(1); } } } instance ib of movieClip 702 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (_global.achieveCounter < 13) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(6); _root.stageName.gotoAndStop(14); } } else { if (_currentframe == 6) { _root.stageName.gotoAndStop(1); } this.gotoAndStop(1); } if (hitTest(_root._xmouse, _root._ymouse, true)) { _root.frontText.gotoAndStop(5); } else { if (_root.frontText._currentframe == 5) { _root.frontText.gotoAndStop(1); } } } else { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.frontText._currentframe != 4) { this.gotoAndStop(7); _root.stageName.gotoAndStop(15); } } else { if (_currentframe == 7) { _root.stageName.gotoAndStop(1); } this.gotoAndStop(1); } } } onClipEvent (mouseDown) { if (_global.achieveCounter == 13) { if (_root.frontText._currentframe != 4) { if (hitTest(_root._xmouse, _root._ymouse, true)) { _global.stageSelection = 'instructo'; _root.nextFrame(); } } } } } frame 54 { if (_global.stageSelection == 'training') { _root.gotoAndStop('training'); } else { _root.musictransition.start(); } } frame 55 { stop(); } movieClip 867 { } movieClip 894 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (load) { this.gotoAndStop(2); } } } movieClip 895 { instance of movieClip 894 { onClipEvent (load) { switch (_global.stageSelection) { case 'wheel': this.gotoAndStop(1); break; case 'gg1': this.gotoAndStop(2); break; case 'shield': this.gotoAndStop(3); break; case 'balloon': this.gotoAndStop(4); break; case 'poison': this.gotoAndStop(5); break; case 'worm': this.gotoAndStop(6); break; case 'sniper': this.gotoAndStop(7); break; case 'gg2': this.gotoAndStop(8); break; case 'spring': this.gotoAndStop(9); break; case 'incin': this.gotoAndStop(10); break; case 'blood': this.gotoAndStop(11); break; case 'crab': this.gotoAndStop(12); break; case 'instructo': this.gotoAndStop(13); } } } frame 95 { stop(); _root.play(); } } frame 73 { switch (_global.difficulty) { case 1: _root.musicstarter.start(0, 99999); break; case 2: _root.musicchallenging.start(0, 99999); break; case 3: _root.musicdeadly.start(0, 99999); } _root.gotoAndStop(_global.stageSelection); } frame 74 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; i = 0; minShots = 42; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 45; totalLife = 45; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 40; totalLife = 40; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 897 { } instance ground of movieClip 897 { onClipEvent (load) { _visible = false; } } movieClip 905 { frame 1 { stop(); } } movieClip 913 { frame 1 { stop(); } } movieClip 916 { } movieClip 918 { } movieClip 919 { } movieClip 923 { frame 1 { stop(); } } movieClip 926 { frame 1 { stop(); } } movieClip 927 { instance enemyHealthbar of movieClip 919 { onClipEvent (load) { totalHeight = _height; refill = false; } onClipEvent (enterFrame) { if (refill) { if (_height < totalHeight - 10) { _height = _height + 10; } else { _height = totalHeight; refill = false; } } else { _height = totalHeight * _root.percentage; } } } instance enemyLives of movieClip 923 { onClipEvent (load) { switch (_global.difficulty) { case 1: this.gotoAndStop(3); break; case 2: this.gotoAndStop(2); break; case 3: this.gotoAndStop(1); } } } } movieClip 929 { } movieClip 933 { frame 1 { stop(); } } movieClip 934 { instance pHealthbar of movieClip 929 { onClipEvent (load) { totalHeight = _height; refill = false; } onClipEvent (enterFrame) { if (refill) { if (_height < totalHeight * _root.pPercentage - 10) { _height = _height + 10; } else { _height = totalHeight * _root.pPercentage; refill = false; } } else { _height = totalHeight * _root.pPercentage; } } } instance playerLives of movieClip 923 { onClipEvent (load) { if (_global.epack) { if (_global.lifeRefill > 0) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(3); } } } } movieClip 938 { frame 4 { stop(); } } movieClip 940 { frame 4 { stop(); } } movieClip 943 { frame 4 { stop(); } } movieClip 945 { frame 4 { stop(); } } movieClip 946 { frame 1 { stop(); } } movieClip 948 { } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; if (_global.megaCharge) { _root.shielddown.start(); _global.megaCharge = false; } dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } movieClip 953 { frame 18 { _root.buttonstarter.start(); } frame 24 { stop(); } instance of movieClip 396 { onClipEvent (enterFrame) { if (_root.enemy.setPosition) { _parent.play(); } } } frame 25 { _root.ggground.gotoAndStop(2); _root.ggname.gotoAndStop(2); _root.ggdisplay.gotoAndStop(2); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 954 { frame 18 { _root.buttonstarter.start(); } frame 24 { stop(); } instance of movieClip 396 { onClipEvent (enterFrame) { if (_root.enemy.setPosition) { _parent.play(); } } } frame 25 { _root.ggground.gotoAndStop(2); _root.ggname.gotoAndStop(2); _root.ggdisplay.gotoAndStop(2); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 955 { frame 18 { _root.buttonstarter.start(); } frame 24 { _root.enemy.setPosition2 = true; } frame 25 { _root.ggground.gotoAndStop(3); _root.ggname.gotoAndStop(3); _root.ggdisplay.gotoAndStop(3); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 956 { frame 18 { _root.buttonstarter.start(); } frame 24 { _root.enemy.setPosition = true; } frame 25 { _root.ggground.gotoAndStop(5); _root.ggname.gotoAndStop(5); _root.ggdisplay.gotoAndStop(5); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 957 { frame 18 { _root.buttonstarter.start(); } frame 24 { _root.enemy.setPosition = true; } frame 25 { _root.ggground.gotoAndStop(5); _root.ggname.gotoAndStop(5); _root.ggdisplay.gotoAndStop(5); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 958 { frame 18 { _root.buttonstarter.start(); } frame 24 { _root.enemy.setPosition2 = true; } frame 25 { _root.ggground.gotoAndStop(6); _root.ggname.gotoAndStop(6); _root.ggdisplay.gotoAndStop(6); _root.buttondeadly.start(); } frame 34 { _root.weapons._visible = false; _root.weapons.gotoAndStop(1); } } movieClip 959 { frame 1 { stop(); } frame 2 { _root.weapons._visible = true; _root.buttonstartclick.start(); } frame 3 { _root.weapons._visible = true; _root.buttonstartclick.start(); } frame 4 { _root.weapons._visible = true; _root.buttonstartclick.start(); } frame 5 { _root.weapons._visible = true; _root.buttonstartclick.start(); } frame 6 { _root.weapons._visible = true; _root.buttonstartclick.start(); } frame 7 { _root.weapons._visible = true; _root.buttonstartclick.start(); } } instance weapons of movieClip 959 { onClipEvent (load) { _visible = false; } } movieClip 966 { frame 5 { stop(); } } movieClip 972 { } movieClip 978 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 4 { _root.xeLaser = _root.enemySprite._x - 70; _root.yeLaser = _root.enemySprite._y - 55; } frame 5 { _root.xeLaser = _root.enemySprite._x - 60; _root.yeLaser = _root.enemySprite._y - 65; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 8 { _root.xeLaser = _root.enemySprite._x + 50; _root.yeLaser = _root.enemySprite._y - 55; } frame 9 { _root.xeLaser = _root.enemySprite._x + 45; _root.yeLaser = _root.enemySprite._y - 65; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 984 { } movieClip 992 { frame 1 { stop(); } frame 1 { _root.xeLaser = _root.enemySprite._x - 55; _root.yeLaser = _root.enemySprite._y - 60; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 3 { _root.xeLaser = _root.enemySprite._x - 40; _root.yeLaser = _root.enemySprite._y - 60; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 998 { } movieClip 1005 { } movieClip 1013 { frame 9 { gotoAndPlay(3); } } movieClip 1019 { frame 1 { stop(); } frame 1 { _root.xeLaser = _root.enemySprite._x - 65; _root.yeLaser = _root.enemySprite._y - 60; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 5 { _root.ggignite.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 7 { _root.ggfiredash.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 7; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 8 { _root.xeLaser = _root.enemySprite._x + 50; _root.yeLaser = _root.enemySprite._y - 60; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 12 { _root.ggignite.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 14 { _root.ggfiredash.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 7; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1020 { frame 1 { stop(); } frame 4 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 50; _global.2_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_2_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.2_1 = true; _global.2_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_2_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.2_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_2_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.2_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_2 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; death = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; _visible = false; xVel = 0; switch (_global.difficulty) { case 1: xMax = -10; break; case 2: xMax = -12; break; case 3: xMax = -14; } yVel = 50; gravity = _root.gravity; slideVel = 24; slideSet = 15; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -32; maxFall = 50; phase = 0; introTimer = 20; jumpTimer = 24; xSet = 790; injuredSet = 8; injuredTimer = injuredSet; shotTimer = 25; burnTimer = 25; charDirection = 'left'; running = false; jumping = true; sliding = false; shooting = false; burning = false; injured = false; setPosition = false; setPosition2 = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { phase = 1; } if (jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggenter'); } else { _root.enemySprite.subEnemy.gotoAndStop('ggappear'); } } else { if (phase == 1) { running = true; maxFall = 24; if (death) { if (_global.difficulty > 1) { if (!jumping) { phase = 2; _root.weapons.gotoAndStop(3); _root.ggblade.stop(); _root.ggfiredash.stop(); _root.ggfireflare.stop(); _root.ggignite.stop(); _root.ggslide.stop(); } } else { _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; } } if (!jumping && !sliding && running) { _root.enemySprite.subEnemy.gotoAndStop('ggrun' + charDirection); } else { if (jumping && !sliding) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } else { if (!jumping && sliding) { _root.enemySprite.subEnemy.gotoAndStop('ggslide' + charDirection); } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } if (lDistance == 1) { charDirection = 'right'; } if (rDistance == 1) { charDirection = 'left'; } } if (!sliding && running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (shooting) { if (shotTimer > 0) { --shotTimer; } else { if (_global.difficulty == 2) { shotTimer = 25; } else { if (_global.difficulty == 3) { shotTimer = 15; } } shooting = false; } } if (charDirection == 'right') { if (!jumping && !sliding && !death) { if (yPlayer < -100 && xPlayer > 0) { _root.ggjumpland.start(); jumping = true; yVel = maxJump; } } if (!sliding && !jumping && xPlayer < 275 && xPlayer > 0) { _root.ggslide.start(); sliding = true; } if (!sliding && !shooting && xPlayer > 275 && lDistance > 50 && _global.difficulty > 1) { shooting = true; _root.parentShot.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } else { if (!jumping && !sliding && !death) { if (yPlayer < -100 && xPlayer < 0) { _root.ggjumpland.start(); jumping = true; yVel = maxJump; } } if (!sliding && !jumping && xPlayer > -275 && xPlayer < 0) { _root.ggslide.start(); sliding = true; } if (!sliding && !shooting && xPlayer < -275 && rDistance > 50 && _global.difficulty > 1) { shooting = true; _root.parentShot.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } if (sliding && !jumping) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { xVel = trackVel; slideLength = slideSet; sliding = false; } } } else { if (phase == 2) { if (!setPosition) { running = true; sliding = false; death = false; if (!jumping && !sliding && running) { _root.enemySprite.subEnemy.gotoAndStop('ggrun' + charDirection); } else { if (jumping && !sliding) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } else { if (!jumping && sliding) { _root.enemySprite.subEnemy.gotoAndStop('ggslide' + charDirection); } } } if (_x > xSet) { if (_x + xMax > xSet) { xVel = xMax; } else { while (_x + xVel < xSet) { xVel += 0.01; } xVel = 0; charDirection = 'left'; setPosition = true; life = _root.totalLife; _root.healthRefill(life); maxJump = -38; } charDirection = 'left'; } else { if (_x < xSet) { if (_x + -xMax < xSet) { xVel = -xMax; } else { while (_x + xVel > xSet) { xVel -= 0.01; } xVel = 0; charDirection = 'right'; setPosition = true; life = _root.totalLife; _root.healthRefill(life); maxJump = -38; } charDirection = 'right'; } } } else { running = false; charDirection = 'left'; _root.enemySprite.gotoAndStop('ggMetal'); if (yVel > 0) { shooting = true; } else { shooting = false; } if (!jumping && !shooting) { _root.enemySprite.subEnemy.gotoAndStop('ggstand' + charDirection); } else { if (jumping && !shooting) { _root.enemySprite.subEnemy.gotoAndStop('ggjumpw' + charDirection); } else { if (jumping && shooting) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } } } if (!jumping) { --jumpTimer; if (jumpTimer <= 0) { _root.ggjumpland.start(); jumping = true; _root.parentBlade.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; yVel = maxJump; } } else { if (_global.difficulty == 2) { if (yVel == 0) { _root.parentBlade.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } else { if (yVel == 0 or yVel == 22 or yVel == -28) { _root.parentBlade.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } jumpTimer = 12; } if (death) { if (_global.difficulty > 2) { if (!jumping) { phase = 3; death = false; life = _root.totalLife; _root.healthRefill(life); shooting = false; setPosition2 = false; _root.ggblade.stop(); _root.ggfiredash.stop(); _root.ggfireflare.stop(); _root.ggignite.stop(); _root.ggslide.stop(); } } else { _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; } } } } else { if (phase == 3) { if (setPosition2) { _root.enemySprite.gotoAndStop('ggHeat'); running = true; xMax = -35; if (!injured) { dotBlank.setTransform(dotReset); flicker = false; if (_root.player._x < _x) { _root.xeLaser = _root.enemySprite._x - 65; _root.yeLaser = _root.enemySprite._y - 60; charDirection = 'left'; } else { _root.xeLaser = _root.enemySprite._x + 50; _root.yeLaser = _root.enemySprite._y - 60; charDirection = 'right'; } } if (injured) { if (injuredTimer == injuredSet - 1) { xSet = _root.player._x; injuredTimer = 500; burning = true; shotTimer = 8; } if (burning) { if (burnTimer > 0) { --burnTimer; } else { burning = false; } } } else { --shotTimer; if (shotTimer == 5) { shooting = true; } else { if (shotTimer <= 0) { shooting = false; shotTimer = 40; } } } if (shotTimer == 2) { _root.parentFire.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (!burning) { if (_x > xSet) { if (_x + xMax > xSet) { xVel = xMax; } else { while (_x + xVel < xSet) { xVel += 0.01; } xVel = 0; injuredTimer = injuredSet; injured = false; burning = false; burnTimer = 25; } } else { if (_x < xSet) { if (_x + -xMax < xSet) { xVel = -xMax; } else { while (_x + xVel > xSet) { xVel -= 0.01; } xVel = 0; injuredTimer = injuredSet; injured = false; burning = false; burnTimer = 25; } } } } if (!injured && !shooting) { _root.enemySprite.subEnemy.gotoAndStop('ggnothing' + charDirection); } else { if (!injured && shooting) { _root.enemySprite.subEnemy.gotoAndStop('ggstand' + charDirection); } else { if (injured && burning) { _root.enemySprite.subEnemy.gotoAndStop('ggburn' + charDirection); } else { if (injured && !burning) { _root.enemySprite.subEnemy.gotoAndStop('ggjet' + charDirection); } } } } if (death) { _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; _root.ggblade.stop(); _root.ggfiredash.stop(); _root.ggfireflare.stop(); _root.ggignite.stop(); _root.ggslide.stop(); } } else { _root.weapons.gotoAndStop(4); } } else { if (phase == 4) { xVel = 0; xMax = 0; yVel = 0; running = false; jumping = false; sliding = false; shooting = false; burning = false; _root.ggblade.stop(); _root.ggfiredash.stop(); _root.ggfireflare.stop(); _root.ggignite.stop(); _root.ggslide.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } movieClip 1023 { } movieClip 1025 { } movieClip 1027 { } movieClip 1029 { } movieClip 1031 { } movieClip 1033 { } movieClip 1035 { } movieClip 1036 { frame 1 { stop(); } frame 2 { _root.applause.start(); } frame 21 { stop(); } } instance of movieClip 319 { onClipEvent (mouseUp) { if (hitTest(_root._xmouse, _root._ymouse, true)) { getURL('http://www.gungamesonline.org', '_blank'); } } } movieClip 1038 { } instance parentShot of movieClip 1038 { onClipEvent (load) { if (_name == 'parentShot') { } else { _root.ggshoot.start(); if (_root.enemy.charDirection == 'right') { _x = _root.xeLaser + 20; xVel = 25; } else { _x = _root.xeLaser - 20; xVel = -25; } _y = _root.yeLaser; damage = 3; } } onClipEvent (enterFrame) { if (_name == 'parentShot') { } else { _x = _x + xVel; _rotation = _rotation + rotVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.playerSprite.hitBox)) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } this.removeMovieClip(); } } } } movieClip 1040 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); _parent.removeMovieClip(); } } } } instance parentBlade of movieClip 1040 { onClipEvent (load) { if (_name == 'parentBlade') { } else { _root.ggblade.start(); if (_root.enemy.charDirection == 'right') { _x = _root.xeLaser + 20; } else { _x = _root.xeLaser - 20; } _y = _root.yeLaser; a = Math.abs(_y - (_root.player._y - 50)); b = Math.abs(_x - _root.player._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); speed = c / 25; yVel = a / speed; if (_root.player._x > _x) { xVel = b / speed; } else { xVel = -b / speed; } if (_root.player._y > _y) { yVel = a / speed; } else { yVel = -a / speed; } rotVel = -15; damage = 4; } } onClipEvent (enterFrame) { if (_name == 'parentBlade') { } else { _x = _x + xVel; _y = _y + yVel; _rotation = _rotation + rotVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.playerSprite.hitBox)) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } this.removeMovieClip(); } } } } movieClip 1047 { } movieClip 1048 { frame 1 { stop(); } frame 2 { _root.incinfiredrip.start(); } } instance parentFire of movieClip 1048 { onClipEvent (load) { if (_name == 'parentFire') { } else { if (_root.enemy.charDirection == 'right') { _x = _root.xeLaser + 20; xVel = 8; } else { _x = _root.xeLaser - 20; xVel = -8; } _root.ggfire.start(); timer = 7; yVel = 8.5; _y = _root.yeLaser; damage = 5; } } onClipEvent (enterFrame) { if (_name == 'parentFire') { } else { if (timer > 0) { --timer; _x = _x + xVel; } else { yVel = 0; this.gotoAndStop(2); } _y = _y + yVel; _x = _x + xVel; _rotation = _rotation + rotVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.playerSprite.hitBox)) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } this.removeMovieClip(); } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } frame 75 { clearFunction(); } frame 90 { gotoAndStop('stageselection'); } frame 91 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; i = 0; minShots = 42; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 45; totalLife = 45; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 40; totalLife = 40; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 897 { onClipEvent (load) { _visible = false; } } instance ggground of movieClip 905 { onClipEvent (load) { this.gotoAndStop(4); } } instance ggdisplay of movieClip 913 { onClipEvent (load) { this.gotoAndStop(4); } } instance ggname of movieClip 946 { onClipEvent (load) { this.gotoAndStop(4); } } instance weapons of movieClip 959 { onClipEvent (load) { _visible = false; } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } movieClip 1056 { frame 5 { stop(); } } movieClip 1062 { } movieClip 1068 { frame 1 { stop(); } frame 3 { _root.xeLaser = _root.enemySprite._x; _root.yeLaser = _root.enemySprite._y - 35; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 7 { _root.xeLaser = _root.enemySprite._x; _root.yeLaser = _root.enemySprite._y - 35; } } movieClip 1073 { } movieClip 1079 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 2 { _root.xeLaser = _root.enemySprite._x - 60; _root.yeLaser = _root.enemySprite._y - 60; } frame 3 { _root.xeLaser = _root.enemySprite._x - 70; _root.yeLaser = _root.enemySprite._y - 60; } frame 6 { _root.xeLaser = _root.enemySprite._x + 60; _root.yeLaser = _root.enemySprite._y - 60; } frame 7 { _root.xeLaser = _root.enemySprite._x + 70; _root.yeLaser = _root.enemySprite._y - 60; } } movieClip 1085 { } movieClip 1091 { frame 1 { stop(); } frame 1 { _root.xeLaser = _root.enemySprite._x - 70; _root.yeLaser = _root.enemySprite._y - 60; } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 3 { _root.xeLaser = _root.enemySprite._x - 70; _root.yeLaser = _root.enemySprite._y - 60; } frame 5 { _root.xeLaser = _root.enemySprite._x + 70; _root.yeLaser = _root.enemySprite._y - 60; } frame 7 { _root.xeLaser = _root.enemySprite._x + 70; _root.yeLaser = _root.enemySprite._y - 60; } } movieClip 1092 { frame 1 { stop(); } frame 4 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.8_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_8_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.8_1 = true; _global.8_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_8_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.8_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_8_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.8_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_8 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; switch (_global.difficulty) { case 1: xMax = -10; break; case 2: xMax = -12; break; case 3: xMax = -14; } yVel = 50; gravity = _root.gravity; trackVel = 0; startTimer = 2; maxJump = -16; maxFall = 50; phase = 0; introTimer = 20; jumpTimer = 60; xSet = 820; injuredSet = 8; injuredTimer = injuredSet; shotTimer = 0; charDirection = 'left'; running = false; jumping = true; shooting = false; shielded = false; shield = false; injured = false; setPosition = false; setPosition2 = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } if (lDistance == 1 or rDistance == 1) { if (lDistance == 1) { charDirection = 'right'; } if (rDistance == 1) { charDirection = 'left'; } } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { phase = 1; if (jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggenter'); } else { _root.enemySprite.subEnemy.gotoAndStop('ggappear'); } } if (jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggenter'); } else { _root.enemySprite.subEnemy.gotoAndStop('ggappear'); } } else { if (phase == 1) { maxFall = 24; if (!jumping) { if (_root.player._x > _x) { charDirection = 'right'; } else { charDirection = 'left'; } } if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; running = false; if (jumpTimer == 0) { shooting = true; shielded = false; if (_global.difficulty == 1) { jumpTimer = 115; } else { if (_global.difficulty == 2) { jumpTimer = 105; } else { if (_global.difficulty == 3) { jumpTimer = 95; } } } } } } if (jumpTimer == 50) { shooting = false; shielded = true; _root.parentShield.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (jumping) { } else { if (jumpTimer > 0) { --jumpTimer; } if (_global.difficulty > 1) { if (jumpTimer == 35 or jumpTimer == 30 or jumpTimer == 25 or jumpTimer == 20 or jumpTimer == 15) { _root.parentLeaf.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } if (jumpTimer == 5) { if (_global.difficulty == 3) { q = 1; while (q <= 5) { _root.parentFall.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = (Stage.width / 5) * q - 100; ++_root.i; ++q; } } } if (jumpTimer == 1) { _root.ggjumpland.start(); jumping = true; running = true; yVel = maxJump; --jumpTimer; } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } else { xVel = 0; } if (jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } else { if (!jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggstand' + charDirection); } } if (death) { if (_global.difficulty > 1) { if (!jumping) { _root.clearFunction(); phase = 2; shielded = false; shotTimer = 50; death = false; jumpTimer = 7; life = _root.totalLife; _root.healthRefill(life); shooting = false; setPosition = false; } } else { _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { if (setPosition) { _root.enemySprite.gotoAndStop('ggMagma'); maxJump = -30; running = true; if (!jumping) { if (jumpTimer > 0) { --jumpTimer; } else { _root.ggjumpland.start(); jumping = true; yVel = maxJump; if (_global.difficulty == 2) { jumpTimer = 12; } else { jumpTimer = 6; } } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (shotTimer > 0) { --shotTimer; } else { if (_global.difficulty == 2) { shotTimer = 60; } else { shotTimer = 45; } } if (jumping && shotTimer < 5) { if (_root.player._x < _x) { _root.enemySprite.subEnemy.gotoAndStop('ggjumpleft'); } else { _root.enemySprite.subEnemy.gotoAndStop('ggjumpright'); } } else { if (jumping && shotTimer >= 5) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } else { if (!jumping && running && shotTimer < 5) { if (_root.player._x < _x) { _root.enemySprite.subEnemy.gotoAndStop('ggrunleft'); } else { _root.enemySprite.subEnemy.gotoAndStop('ggrunright'); } } else { if (!jumping && running && shotTimer >= 5) { _root.enemySprite.subEnemy.gotoAndStop('ggrun' + charDirection); } } } } if (shotTimer == 4) { _root.gg2fire.start(); if (_global.difficulty == 3) { _root.parentMagma.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); if (_root.player._x < _x) { _root['bullet' + _root.i].xVel = -15; _root['bullet' + _root.i]._xscale = -_xscale; } else { _root['bullet' + _root.i].xVel = 15; } _root['bullet' + _root.i].yVel = 0; _root['bullet' + _root.i]._rotation = 0; ++_root.i; } _root.parentMagma.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].yVel = 7; if (_root.player._x < _x) { _root['bullet' + _root.i].xVel = -10; _root['bullet' + _root.i]._rotation = -25; _root['bullet' + _root.i]._xscale = -_xscale; } else { _root['bullet' + _root.i].xVel = 10; _root['bullet' + _root.i]._rotation = 25; } ++_root.i; _root.parentMagma.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].yVel = -7; if (_root.player._x < _x) { _root['bullet' + _root.i].xVel = -10; _root['bullet' + _root.i]._rotation = 25; _root['bullet' + _root.i]._xscale = -_xscale; } else { _root['bullet' + _root.i].xVel = 10; _root['bullet' + _root.i]._rotation = -25; } ++_root.i; } if (death) { if (_global.difficulty > 2) { if (!jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggstand' + charDirection); running = false; phase = 3; jumpTimer = 30; shotTimer = 30; death = false; life = _root.totalLife; _root.healthRefill(life); _root.yeLaser += yVel; running = false; setPosition2 = false; } } else { _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; } } } else { _root.weapons.gotoAndStop(6); } } else { if (phase == 3) { if (setPosition2) { maxJump = -20; _root.enemySprite.gotoAndStop('ggPlug'); if (jumpTimer > 0) { --jumpTimer; } else { _root.ggjumpland.start(); jumping = true; yVel = Math.round(Math.random() * maxJump) - 20; running = true; jumpTimer = 60; shotTimer = 10; } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } else { xVel = 0; } if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; running = false; } } if (shotTimer > 0) { --shotTimer; } else { if (rDistance > 50 && lDistance > 50 && !jumping) { _root.parentSpark.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; shotTimer = 20; } } if (jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggjump' + charDirection); } else { if (!jumping) { _root.enemySprite.subEnemy.gotoAndStop('ggstand' + charDirection); } } if (death) { jumping = false; running = false; gravity = 0; yVel = 0; xVel = 0; _root.enemySprite.gotoAndStop('ggdeath'); _root.clearFunction(); phase = 4; } } else { _root.weapons.gotoAndStop(7); } } else { if (phase == 4) { xVel = 0; xMax = 0; yVel = 0; running = false; jumping = false; shooting = false; shielded = false; shield = false; _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } movieClip 1094 { } instance parentLeaf of movieClip 1094 { onClipEvent (load) { if (_name == 'parentLeaf') { } else { yVel = -25; _x = _root.enemy._x; _y = _root.enemy._y - 90; damage = 4; _root.gg2leafshot.start(); } } onClipEvent (enterFrame) { if (_name == 'parentLeaf') { } else { _y = _y + yVel; if (_y < -100) { this.removeMovieClip(); } if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1095 { instance of movieClip 1094 { onClipEvent (load) { damage = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (enterFrame) { _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (enterFrame) { _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (enterFrame) { _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (enterFrame) { _rotation = _rotation - 10; } } frame 4 { stop(); } instance of movieClip 1094 { onClipEvent (load) { damage = 7; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 7; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 7; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } instance of movieClip 1094 { onClipEvent (load) { damage = 7; } onClipEvent (enterFrame) { if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } _rotation = _rotation - 10; } } } instance parentShield of movieClip 1095 { onClipEvent (load) { if (_name == 'parentShield') { } else { xVel = 0; if (_global.difficulty == 1) { xSet = 10; } else { if (_global.difficulty == 2) { xSet = 15; } else { if (_global.difficulty == 3) { xSet = 18; } } } shootControl = false; _x = _root.xeLaser; _y = _root.yeLaser; _root.gg2leafshield.start(); } } onClipEvent (enterFrame) { if (_name == 'parentShield') { } else { if (_root.enemy.jumping) { charDirection = _root.enemy.charDirection; } if (!_root.enemy.shooting && !shootControl) { _x = _root.xeLaser; _y = _root.yeLaser; } else { if (_root.enemy.shooting && !shootControl) { if (charDirection == 'right') { xVel = xSet; } else { xVel = -xSet; } shootControl = true; } } _x = _x + xVel; _rotation = _rotation + 10; if (_root.ground.hitTest(_x, _y, true)) { if (_root.ground.hitTest(_x, _y, true)) { this.removeMovieClip(); } } } } } instance parentFall of movieClip 1094 { onClipEvent (load) { if (_name == 'parentFall') { } else { c = 0; yVel = 6; damage = 4; } } onClipEvent (enterFrame) { if (_name == 'parentFall') { } else { if (_y > 800) { this.removeMovieClip(); } _x = _x + Math.cos(c) * 8; c += 0.2; _y = _y + yVel; if (this.hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1100 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); _parent.removeMovieClip(); } } } frame 7 { gotoAndPlay(3); } } instance parentMagma of movieClip 1100 { onClipEvent (load) { if (_name == 'parentMagma') { this.gotoAndStop(1); } else { _x = _root.xeLaser; _y = _root.yeLaser; damage = 2; } } onClipEvent (enterFrame) { if (_name == 'parentMagma') { } else { _x = _x + xVel; _y = _y + yVel; if (_root.ground.hitTest(_x, _y, true)) { this.removeMovieClip(); } } } } movieClip 1107 { instance of movieClip 493 { onClipEvent (load) { _visible = false; _parent._parent.removeMovieClip(); } } } movieClip 1108 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); _parent.removeMovieClip(); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; _parent.gotoAndPlay(1); } } } instance parentSpark of movieClip 1108 { onClipEvent (load) { if (_name == 'parentSpark') { this.gotoAndStop(1); } else { _root.gg2electricity.start(); _x = _root.xeLaser; _y = _root.yeLaser; xVel = 15; yVel = 15; damage = 2; bottom = _y + _height / 2; top = _y - _height / 2; right = _x + _width / 2; left = _x - _width / 2; sDirection = 'down'; } } onClipEvent (enterFrame) { if (_name == 'parentSpark') { } else { bottom = _y + _height / 2; top = _y - _height / 2; right = _x + _width / 2; left = _x - _width / 2; if (sDirection == 'down') { if (!_root.ground.hitTest(_x, bottom, true)) { _y = _y + yVel; } else { if (_root.player._x > _x) { sDirection = 'right'; } else { sDirection = 'left'; } } } if (sDirection == 'right') { if (!_root.ground.hitTest(right, _y, true)) { _x = _x + xVel; } else { sDirection = 'up'; } } if (sDirection == 'left') { if (!_root.ground.hitTest(left, _y, true)) { _x = _x - xVel; } else { sDirection = 'up'; } } if (sDirection == 'up') { if (!_root.ground.hitTest(_x, top, true)) { _y = _y - yVel; } else { sDirection = 'top'; } } if (sDirection == 'top') { if (_root.player._x > _x) { if (_x + xVel < _root.player._x) { _x = _x + xVel; } else { sDirection = 'fdown'; } } else { if (_x - xVel > _root.player._x) { _x = _x - xVel; } else { sDirection = 'fdown'; } } } if (sDirection == 'fdown') { if (!_root.ground.hitTest(_x, bottom, true)) { _y = _y + yVel * 1.5; } else { this.gotoAndStop(8); } } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit) && !_root.enemy.shielded) { _root.damageFunction(damage); } else { if (this.hitTest(_root.enemySprite.subEnemy.enemyHit) && _root.enemy.shielded) { _root.gg2leafblock.start(); } } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.subEnemy.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.subEnemy.enemyHit) && !_root.enemy.shielded) { _root.damageFunction(damage); } else { if (this.hitTest(_root.enemySprite.subEnemy.enemyHit) && _root.enemy.shielded) { _root.gg2leafblock.start(); } } this.removeMovieClip(); } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } frame 92 { clearFunction(); } frame 107 { gotoAndStop('stageselection'); } frame 108 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 0; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 42; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 45; totalLife = 45; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 40; totalLife = 40; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 897 { onClipEvent (load) { _visible = false; } } movieClip 1112 { frame 1 { stop(); } } instance platform of movieClip 1112 { onClipEvent (load) { _visible = false; } } movieClip 1114 { frame 1 { stop(); } frame 10 { stop(); } } instance platImg of movieClip 1114 { onClipEvent (load) { if (_global.difficulty != 1) { _visible = false; } else { _visible = true; _root.platform.gotoAndStop(2); this.gotoAndStop(10); } } } movieClip 1116 { } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; _visible = false; xVel = 0; xMax = -11; yVel = 35; yMax = 0; gravity = _root.gravity; trackVel = 0; startTimer = 2; maxJump = -16; maxFall = 35; phase = 0; introTimer = 25; injuredSet = 8; injuredTimer = injuredSet; directionTimer = 200; rotationSpeed = 0; rotationMax = 10; trapTimer = 25; vulnerableTimer = 0; shotTimer = 75; circSize = 1; rotAngle = 0; setRot = 0; xSet = Stage.width / 2; ySet = Stage.height / 2 + 100; running = false; rChange = false; jumping = true; injured = false; shooting = false; xPosition = false; yPosition = false; setPosition = false; hit = false; death = false; flicker = false; soundControl = true; soundTimer = 0; charRotation = 'clockwise'; charDirection = 'left'; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.enemySprite.waterGlow._alpha = 0; _root.p.removeMovieClip(); _root.laser.removeMovieClip(); } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.enemySprite._x = _x; _root.enemySprite._y = _y - _height / 2; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } if (introTimer > 0) { --introTimer; } else { _root.wheelrolllong.start(); phase = 1; gravity = 0; xMax = -25; yMax = -25; running = true; } } else { if (phase == 1) { if (death) { if (_global.difficulty > 1) { a = Math.abs(_y - ySet); b = Math.abs(_x - xSet); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); speed = c / 25; xSpeed = -b / speed; ySpeed = -a / speed; _root.clearFunction(); phase = 2; _root.player.stuck = false; death = false; charRotation = 'clockwise'; life = _root.totalLife; _root.healthRefill(life); _root.wheellaser.stop(); _root.wheelpowerup.stop(); _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelthud.stop(); _root.wheelwaterdrop.stop(); } else { _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; _root.enemySprite.gotoAndStop('wheeldeath'); xVel = 0; yVel = 0; _root.clearFunction(); phase = 4; } } if (charRotation == 'clockwise') { if (rotationSpeed < rotationMax) { rotationSpeed += 0.5; } _root.enemySprite.wBlade._rotation -= rotationSpeed; if (charDirection == 'left') { if (lDistance > 1) { if (xVel > xMax) { --xVel; } if (lDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel > yMax) { --yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'up'; } } } if (charDirection == 'up') { if (uDistance > 1) { if (yVel > yMax) { --yVel; } if (uDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel < -xMax) { ++xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'right'; } } } if (charDirection == 'right') { if (rDistance > 1) { if (xVel < -xMax) { ++xVel; } if (rDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel < -yMax) { ++yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'down'; } } } if (charDirection == 'down') { if (gDistance > 1) { if (yVel < -yMax) { ++yVel; } if (gDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel > xMax) { --xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'left'; } } } } else { if (rotationSpeed > -rotationMax) { rotationSpeed -= 0.5; } _root.enemySprite.wBlade._rotation -= rotationSpeed; if (charDirection == 'right') { if (rDistance > 1) { if (xVel < -xMax) { ++xVel; } if (rDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel < -yMax) { ++yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'up'; } } } if (charDirection == 'up') { if (uDistance > 1) { if (yVel > yMax) { --yVel; } if (uDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel < -xMax) { ++xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'left'; } } } if (charDirection == 'left') { if (lDistance > 1) { if (xVel > xMax) { --xVel; } if (lDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel > yMax) { --yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'down'; } } } if (charDirection == 'down') { if (gDistance > 1) { if (yVel < -yMax) { ++yVel; } if (gDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel > xMax) { --xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'right'; } } } } if (directionTimer > 0) { --directionTimer; } else { rChange = true; directionTimer = Math.round(Math.random() * 200) + 100; } if (gDistance == 1 or uDistance == 1) { if (trapTimer > 0) { --trapTimer; } else { if (gDistance == 1 && _global.difficulty > 1) { _root.parentTrap.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 0; _root['bullet' + _root.i].yVel = 0; ++_root.i; } else { if (uDistance == 1 && _global.difficulty == 3) { _root.parentTrap3.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 0; _root['bullet' + _root.i].yVel = 0; ++_root.i; } } if (_global.difficulty == 2) { trapTimer = Math.round(Math.random() * 10) + 15; } else { if (_global.difficulty == 3) { trapTimer = Math.round(Math.random() * 10) + 5; } } } } } else { if (phase == 2) { if (!setPosition) { if (_x > xSet) { if (_x + xSpeed > xSet) { xVel = xSpeed; } else { while (_x + xVel < xSet) { xVel += 0.01; } xPosition = true; } } else { if (_x < xSet) { if (_x + -xSpeed < xSet) { xVel = -xSpeed; } else { while (_x + xVel > xSet) { xVel -= 0.01; } xPosition = true; } } } if (_y > ySet) { if (_y + ySpeed > ySet) { yVel = ySpeed; } else { while (_y + yVel < ySet) { yVel += 0.01; } yPosition = true; } } else { if (_y < ySet) { if (_y + -ySpeed < ySet) { yVel = -ySpeed; } else { while (_y + yVel > ySet) { yVel -= 0.01; } yPosition = true; } } } if (yPosition && xPosition) { setPosition = true; _root.wheelpowerup.start(); _x = 465; _y = 435; } } else { _x = 465; _y = 435; xVel = 0; yVel = 0; if (charRotation == 'clockwise') { _root.enemySprite.wBlade._rotation += rotationSpeed; } else { _root.enemySprite.wBlade._rotation -= rotationSpeed; } if (shotTimer > 0) { rotationSpeed = 25 - shotTimer / 3; _root.enemySprite.waterGlow._alpha += 1.75; --shotTimer; if (shotTimer == 1) { _root.wheellaser.start(); } } else { if (rotationSpeed > 0) { rotationSpeed -= 0.28; } else { rotationSpeed = 0; } shooting = true; } if (shooting && !_root.player.death) { if (charRotation == 'clockwise' && rotAngle < 2.64 or charRotation == 'cclockwise' && rotAngle > 0.5) { _root.laser.removeMovieClip(); _root.p.removeMovieClip(); _root.createEmptyMovieClip('laser', _root.getNextHighestDepth()); _root.pp._x = _x; _root.pp._y = _y - _height / 2; while (!hit) { _root.pp._y += Math.sin(rotAngle) * circSize; _root.pp._x += Math.cos(rotAngle) * circSize; if (!_root.ground.hitTest(_root.pp._x, _root.pp._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp._x, _root.pp._y, true)) { circSize += 0.01; } if (_root.ground.hitTest(_root.pp._x, _root.pp._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp._x, _root.pp._y, true)) { hit = true; } } _root.laser.moveTo(_x, _y - _height / 2); _root.laser.lineStyle(20, 16280733, 100); _root.laser.lineTo(_root.pp._x, _root.pp._y); _root.laser.moveTo(_x, _y - _height / 2); _root.laser.lineStyle(14, 268435455, 100); _root.laser.lineTo(_root.pp._x, _root.pp._y); _root.parentP.duplicateMovieClip('p', _root.getNextHighestDepth()); if (charRotation == 'clockwise') { rotAngle += 0.03; } else { rotAngle -= 0.03; } circSize = 1; hit = false; } else { circSize = 1; shotTimer = 75; if (charRotation == 'clockwise') { charRotation = 'cclockwise'; } else { charRotation = 'clockwise'; } if (charRotation == 'clockwise') { rotAngle = 0; } else { rotAngle = Math.PI; } shooting = false; _root.enemySprite.waterGlow._alpha = 0; _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _x; _root.pp._y = _y - _height / 2; _root.wheelpowerup.start(); } } if (trapTimer > 0) { --trapTimer; } else { _root.parentTrap2.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = Math.random() * 13 - 6.5; _root['bullet' + _root.i].yVel = -20; ++_root.i; if (_global.difficulty == 2) { trapTimer = 20; } else { trapTimer = 10; } } } if (death) { if (_global.difficulty > 2) { if (!shooting) { _root.clearFunction(); phase = 3; _root.player.stuck = false; shooting = false; death = false; charRotation = 'clockwise'; charDirection = 'down'; life = _root.totalLife; _root.healthRefill(life); running = true; _root.pp._y = -500; _root.enemySprite.waterGlow._alpha = 0; _root.enemySprite.waterCenter._alpha = 0; circSize = 1; shotTimer = 75; _root.platImg._visible = true; _root.platImg.play(); _root.platform.gotoAndStop(2); _root.xeLaser = _x; _root.yeLaser = _y - _height / 2; _root.waterFinal._x = _x; _root.waterFinal._y = _y - _height / 2; setRot = Math.ceil(Math.random() * 2); _root.wheellaser.stop(); _root.wheelpowerup.stop(); _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelthud.stop(); _root.wheelwaterdrop.stop(); if (setRot == 1) { rotAngle = 0; } else { rotAngle = Math.PI; } } } else { _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; _root.enemySprite.gotoAndStop('wheeldeath'); xVel = 0; yVel = 0; _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { if (charRotation == 'clockwise') { if (rotationSpeed < rotationMax) { rotationSpeed += 0.5; } _root.enemySprite.wBlade._rotation -= rotationSpeed; if (charDirection == 'left') { if (lDistance > 1) { if (xVel > xMax) { --xVel; } if (lDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel > yMax) { --yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'up'; } } } if (charDirection == 'up') { if (uDistance > 1) { if (yVel > yMax) { --yVel; } if (uDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel < -xMax) { ++xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'right'; } } } if (charDirection == 'right') { if (rDistance > 1) { if (xVel < -xMax) { ++xVel; } if (rDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel < -yMax) { ++yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'down'; } } } if (charDirection == 'down') { if (gDistance > 1) { if (yVel < -yMax) { ++yVel; } if (gDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel > xMax) { --xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'cclockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'left'; } } } } else { if (rotationSpeed > -rotationMax) { rotationSpeed -= 0.5; } _root.enemySprite.wBlade._rotation -= rotationSpeed; if (charDirection == 'right') { if (rDistance > 1) { if (xVel < -xMax) { ++xVel; } if (rDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel < -yMax) { ++yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'up'; } } } if (charDirection == 'up') { if (uDistance > 1) { if (yVel > yMax) { --yVel; } if (uDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel < -xMax) { ++xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'left'; } } } if (charDirection == 'left') { if (lDistance > 1) { if (xVel > xMax) { --xVel; } if (lDistance < 30) { rotationSpeed = 0; } } else { xVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (yVel > yMax) { --yVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charDirection = 'down'; } } } if (charDirection == 'down') { if (gDistance > 1) { if (yVel < -yMax) { ++yVel; } if (gDistance < 30) { rotationSpeed = 0; } } else { yVel = 0; _root.wheelthud.stop(); _root.wheelthud.start(); if (xVel > xMax) { --xVel; } if (rChange) { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrollshort.start(); charRotation = 'clockwise'; rChange = false; } else { _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelrolllong.start(); charDirection = 'right'; } } } } if (directionTimer > 0) { --directionTimer; } else { rChange = true; directionTimer = Math.round(Math.random() * 200) + 100; } if (shotTimer > 0) { _root.waterFinal.waterGlow._alpha += 1.75; --shotTimer; if (shotTimer == 1) { _root.wheellaser.start(); } } else { shooting = true; } if (shooting && !_root.player.death) { if (setRot == 1 && rotAngle < 2.44 or setRot == 2 && rotAngle > 0.7) { _root.laser.removeMovieClip(); _root.p.removeMovieClip(); _root.createEmptyMovieClip('laser', _root.getNextHighestDepth()); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; while (!hit) { _root.pp._y += Math.sin(rotAngle) * circSize; _root.pp._x += Math.cos(rotAngle) * circSize; if (!_root.ground.hitTest(_root.pp._x, _root.pp._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp._x, _root.pp._y, true)) { circSize += 0.01; } if (_root.ground.hitTest(_root.pp._x, _root.pp._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp._x, _root.pp._y, true)) { hit = true; } } _root.laser.moveTo(_root.xeLaser, _root.yeLaser); _root.laser.lineStyle(20, 16280733, 100); _root.laser.lineTo(_root.pp._x, _root.pp._y); _root.laser.moveTo(_root.xeLaser, _root.yeLaser); _root.laser.lineStyle(14, 268435455, 100); _root.laser.lineTo(_root.pp._x, _root.pp._y); _root.parentP.duplicateMovieClip('p', _root.getNextHighestDepth()); if (setRot == 1) { rotAngle += 0.03; } else { rotAngle -= 0.03; } circSize = 1; hit = false; } else { circSize = 1; shotTimer = 75; setRot = Math.ceil(Math.random() * 2); if (setRot == 1) { rotAngle = 0; } else { rotAngle = Math.PI; } shooting = false; _root.waterFinal.waterGlow._alpha = 0; _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; _root.wheelpowerup.start(); } } if (death) { _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; _root.enemySprite.gotoAndStop('wheeldeath'); _root.waterFinal.gotoAndStop(2); xVel = 0; yVel = 0; _root.clearFunction(); phase = 4; _root.wheellaser.stop(); _root.wheelpowerup.stop(); _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelthud.stop(); _root.wheelwaterdrop.stop(); } } else { if (phase == 4) { _root.p.removeMovieClip(); _root.laser.removeMovieClip(); _root.pp._x = _root.xeLaser; _root.pp._y = _root.yeLaser; _root.enemySprite.gotoAndStop('wheeldeath'); xVel = 0; yVel = 0; _root.clearFunction(); running = false; jumping = false; injured = false; shooting = false; _root.wheellaser.stop(); _root.wheelpowerup.stop(); _root.wheelrolllong.stop(); _root.wheelrollshort.stop(); _root.wheelthud.stop(); _root.wheelwaterdrop.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; } } } movieClip 1120 { } movieClip 1122 { } movieClip 1124 { } movieClip 1126 { } movieClip 1127 { instance of movieClip 1126 { onClipEvent (enterFrame) { _rotation = _rotation + 0.5; } } } movieClip 1128 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance waterGlow of movieClip 226 { onClipEvent (load) { _alpha = 0; } } frame 2 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.1_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_1_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.1_1 = true; _global.1_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_1_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.1_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_1_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.1_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_1 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured && !stuck) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.clearFunction(); _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } movieClip 1129 { frame 1 { stop(); } instance waterGlow of movieClip 226 { onClipEvent (load) { _alpha = 0; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } movieClip 1130 { } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(30); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(60); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(90); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(120); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(30); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(60); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(90); } } instance of movieClip 1130 { onClipEvent (load) { this.gotoAndPlay(120); } } movieClip 1131 { frame 1 { stop(); } frame 2 { _root.wheelwatercapture.start(); } frame 8 { stop(); } } instance parentTrap2 of movieClip 1131 { onClipEvent (load) { if (_name == 'parentTrap2') { } else { _root.wheelwaterdrop.start(); _x = _root.enemy._x; _y = _root.enemy._y - _root.enemy._height / 2; timer = 50; } } onClipEvent (enterFrame) { if (_name == 'parentTrap2') { } else { if (hitTest(_root.playerSprite.hitBox) && this._currentframe == 1) { if (!_root.player.stuck) { xVel = 0; yVel = 0; _root.player.stuck = true; _xscale = 100; _yscale = 100; if (_global.difficulty == 2) { timer = 50; } else { timer = 200; } this.play(); } } else { if (_currentframe != 1) { if (!_root.player.stuck) { this.removeMovieClip(); } _x = _root.player._x; _y = _root.player._y - 40; } if (!_root.ground.hitTest(_x, _y, true)) { _x = _x + xVel; _y = _y + yVel; if (yVel < 18) { ++yVel; } } } if (timer > 0) { --timer; } else { if (hitTest(_root.playerSprite) && _currentframe != 1) { _root.player.stuck = false; } if (_currentframe == 1) { if (_xscale > 15) { _xscale = _xscale - 10; _yscale = _yscale - 10; } else { this.removeMovieClip(); } } else { this.removeMovieClip(); } } } } } instance parentTrap of movieClip 1131 { onClipEvent (load) { if (_name == 'parentTrap') { } else { _root.wheelwaterdrop.start(); _x = _root.enemy._x; _y = _root.enemy._y - 20; timer = 50; } } onClipEvent (enterFrame) { if (_name == 'parentTrap') { } else { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { if (!_root.player.stuck && this._currentframe == 1) { _root.player.stuck = true; _xscale = 100; _yscale = 100; if (_global.difficulty == 2) { timer = 75; } else { timer = 200; } this.play(); } } if (timer > 0) { --timer; if (hitTest(_root.playerSprite) && _currentframe != 1 && _root.player.recovery) { this.removeMovieClip(); } } else { if (hitTest(_root.playerSprite) && _currentframe != 1) { _root.player.stuck = false; } if (_currentframe == 1) { if (_xscale > 15) { _xscale = _xscale - 10; _yscale = _yscale - 10; } else { this.removeMovieClip(); } } else { this.removeMovieClip(); } } } } } instance pp of movieClip 467 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance parentP of movieClip 570 { onClipEvent (load) { if (_name == 'p') { this.gotoAndStop(2); _x = _root.pp._x; _y = _root.pp._y; } } onClipEvent (enterFrame) { if (_name == 'p') { _x = _root.pp._x; _y = _root.pp._y; } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentTrap3 of movieClip 1131 { onClipEvent (load) { if (_name == 'parentTrap3') { } else { _root.wheelwaterdrop.start(); _x = _root.enemy._x; _y = _root.enemy._y - 20; timer = 25; } } onClipEvent (enterFrame) { if (_name == 'parentTrap3') { } else { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { if (!_root.player.stuck && this._currentframe == 1) { _root.player.stuck = true; _xscale = 100; _yscale = 100; if (_global.difficulty == 2) { timer = 75; } else { timer = 200; } this.play(); } } _y = _y + yVel; if (yVel < 24) { yVel += _root.gravity; } if (_root.ground.hitTest(_x, _y, true)) { yVel = 0; } if (timer > 0) { --timer; if (hitTest(_root.playerSprite) && _currentframe != 1 && _root.player.recovery) { this.removeMovieClip(); } } else { if (hitTest(_root.playerSprite) && _currentframe != 1) { _root.player.stuck = false; } if (_currentframe == 1) { if (_xscale > 15) { _xscale = _xscale - 10; _yscale = _yscale - 10; } else { this.removeMovieClip(); } } else { this.removeMovieClip(); } } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!_root.player.stuck) { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } } onClipEvent (keyUp) { if (!_root.player.stuck) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 109 { clearFunction(); } frame 124 { gotoAndStop('stageselection'); } frame 125 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 0; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 36; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 45; totalLife = 45; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 40; totalLife = 40; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 35; totalLife = 35; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1136 { } movieClip 1137 { instance of movieClip 1136 { onClipEvent (enterFrame) { _rotation = _rotation + 2.5; } } instance of movieClip 1136 { onClipEvent (enterFrame) { _rotation = _rotation - 2.5; } } } movieClip 1139 { instance of movieClip 1137 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (hitTest(_root.enemySprite.enemyBottom.enemyPunch.enemyHit)) { _y = _y + 170; _root.balloonpunch.start(); } if (_y > ySet) { if (hitTest(_root.player)) { --_root.yLaser; --_root.player._y; } _y = _y - 1; } if (_parent._x > 540) { _visible = true; } else { _visible = false; } } } instance of movieClip 1137 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (hitTest(_root.enemySprite.enemyBottom.enemyPunch.enemyHit)) { _y = _y + 170; _root.balloonpunch.start(); } if (_y > ySet) { if (hitTest(_root.player)) { --_root.yLaser; --_root.player._y; } _y = _y - 1; } if (_parent._x < 380) { _visible = true; } else { _visible = false; } } } instance of movieClip 1137 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (hitTest(_root.enemySprite.enemyBottom.enemyPunch.enemyHit)) { _y = _y + 170; _root.balloonpunch.start(); } if (_y > ySet) { if (hitTest(_root.player)) { --_root.yLaser; --_root.player._y; } _y = _y - 1; } if (_parent._x > 0) { _visible = true; } else { _visible = false; } } } instance of movieClip 1137 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (hitTest(_root.enemySprite.enemyBottom.enemyPunch.enemyHit)) { _y = _y + 170; _root.balloonpunch.start(); } if (_y > ySet) { if (hitTest(_root.player)) { --_root.yLaser; --_root.player._y; } _y = _y - 1; } if (_parent._x < 945) { _visible = true; } else { _visible = false; } } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 200; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } movieClip 1142 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 7; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1144 { } movieClip 1146 { } movieClip 1149 { } movieClip 1153 { instance of movieClip 1149 { onClipEvent (load) { rotSpeed = 2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1136 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } } movieClip 1154 { } movieClip 1160 { } movieClip 1161 { frame 1 { _root.balloonextend.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = 2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1136 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } frame 25 { _root.ballooncrank.start(); } frame 45 { if (_root.enemy.phase == 1) { _root.enemy.attacking = false; _root.enemy.attackNumber = 0; } _root.enemySprite.enemyBottom.gotoAndStop(1); } } movieClip 1166 { frame 1 { _root.balloonextend.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = 2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1136 { onClipEvent (load) { rotSpeed = -2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } frame 15 { _root.ballooncrank.start(); } frame 30 { _root.enemy.attackTimer = 50; _root.enemySprite.enemyBottom.gotoAndStop(1); } } movieClip 1167 { frame 1 { stop(); } instance bGlow of movieClip 1154 { onClipEvent (load) { _alpha = 0; } } } movieClip 1170 { } movieClip 1171 { instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 60; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 50; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 40; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 25; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 20; } } } movieClip 1177 { } movieClip 1178 { frame 1 { stop(); } instance of movieClip 1177 { onClipEvent (load) { _root.balloonwhistle.start(); } } } movieClip 1186 { frame 1 { stop(); } frame 2 { _root.balloonbombdrop.start(); } } movieClip 1188 { frame 1 { stop(); } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = 3; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1136 { onClipEvent (load) { rotSpeed = 2; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance balloonGlow of movieClip 1171 { onClipEvent (load) { _alpha = 0; } } instance of movieClip 1149 { onClipEvent (load) { rotSpeed = -3; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } frame 3 { _root.balloonphasedrop.start(); } frame 20 { stop(); } frame 21 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.4_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_4_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.4_1 = true; _global.4_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_4_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.4_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_4_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.4_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_4 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (_x > (Stage.width / 4) * 3 && _root.ground._x > -115) { if (xVel < 0) { _root.xLaser += xVel; _x = _x + xVel; } else { r = 1; while (r <= 6) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; ++r; } _root.lTarget._x -= xVel; _root.enemySprite._x -= xVel; _root.enemy._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; } } else { if (_x < Stage.width / 4 && _root.ground._x < 1060) { if (xVel < 0) { r = 1; while (r <= 6) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; ++r; } _root.lTarget._x -= xVel; _root.enemy._x -= xVel; _root.enemySprite._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; } else { _root.xLaser += xVel; _x = _x + xVel; } } else { _root.xLaser += xVel; _x = _x + xVel; } } if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; yVel = 0; gravity = 0; hover = 1.57; attackCounter = 0; attackLength = 0; attackTimer = 25; laserCounter = 0; laserCharge = 0; if (_global.difficulty == 2) { laserMax = 1; } else { laserMax = 2; } maxCharge = 300; attackNumber = 0; xPlayer = 0; yPlayer = 0; circSize = 0; lineWidth = 1; radians = 0; shotTimer = 0; ySet = _y; xSet = 0; xEnd = 0; startTimer = 2; phase = 0; introTimer = 25; injuredSet = 8; injuredTimer = injuredSet; charDirection = 'left'; posPlayer = ''; running = false; attacking = false; charge = false; hit = false; injured = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.clearFunction(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); } hover += 0.12; _y = ySet + Math.sin(hover) * 12; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { running = true; phase = 1; } } else { if (phase == 1) { xVel = Math.abs(_x - _root.player._x) / 28; xPlayer = _root.player._x; yPlayer = _root.player._y; if (running) { if (_x < _root.player._x) { _x = _x + xVel; } else { _x = _x - xVel; } } if (attackTimer > 0 && !attacking) { --attackTimer; running = true; } else { if (!attacking && attackCounter < 3) { if (_global.difficulty == 1) { attackNumber = 2; } else { attackNumber = Math.ceil(Math.random() * 2); } } else { if (!attacking && attackCounter >= 3) { if (_global.difficulty == 3) { attackNumber = 4; attackCounter = 0; } else { if (_global.difficulty == 1) { attackNumber = 2; } else { attackNumber = Math.ceil(Math.random() * 2); } attackCounter = 0; } } } } if (!attacking) { switch (attackNumber) { case 1: ++attackCounter; if (_global.difficulty == 1) { attackTimer = 35; } else { if (_global.difficulty == 2) { attackTimer = 30; } else { attackTimer = 20; } } shotTimer = 40; attacking = true; break; case 2: running = true; if (_global.difficulty == 1) { attackTimer = 40; } else { if (_global.difficulty == 2) { attackTimer = 20; } else { attackTimer = 10; } } ++attackCounter; shotTimer = 20; attacking = true; break; break; case 3: case 4: shotTimer = 30; attackCounter = 0; if (_global.difficulty == 1) { attackTimer = 25; } else { if (_global.difficulty == 2) { attackTimer = 20; } else { attackTimer = 10; } } running = true; attacking = true; break; case 5: } } else { if (attackNumber == 1) { if (shotTimer > 0 && !_root.player.death) { if (shotTimer == 30) { _root.ballooncharge1.start(); } --shotTimer; if (shotTimer <= 30) { _root.enemySprite.balloonGlow._alpha += 2.75; } attackLength = 25; if (shotTimer > 15) { running = false; a = Math.abs(_y - 154 - yPlayer) - 40; b = _x - 60 - xPlayer; c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; radians = angle * 0.0174532925199433; _root.pp1._x = _x - 65; _root.pp1._y = _y - 143; while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.1; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.lTarget._x = _root.pp1._x; _root.lTarget._y = _root.pp1._y; _root.lTarget.iAim.play(); } hit = false; circSize = 0; if (shotTimer == 1) { _root.balloonlaser1.start(); if (xPlayer > _root.lTarget._x) { posPlayer = 'right'; } else { posPlayer = 'left'; } } } else { if (attackLength > 0 && !_root.player.death) { _root.lTarget._y = -200; _root.lTarget.iAim.gotoAndStop(1); --attackLength; if (posPlayer == 'right') { if (_global.difficulty == 2) { radians -= 0.02; } else { radians -= 0.035; } } else { if (_global.difficulty == 3) { radians += 0.02; } else { radians += 0.035; } } _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _x - 65; _root.pp1._y = _y - 143; while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.15; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.moveTo(_x - 65, _y - 143); _root.laser1.lineStyle(19, 12585996, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 65, _y - 143); _root.laser1.lineStyle(18, 16359327, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 65, _y - 143); _root.laser1.lineStyle(14, 268435455, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); hit = false; circSize = 0; } else { if (laserCounter < laserMax) { _root.enemySprite.balloonGlow._alpha = 0; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); shotTimer = 40; ++laserCounter; } else { _root.enemySprite.balloonGlow._alpha = 0; _root.lTarget._y = -200; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); attackNumber = 0; laserCounter = 0; running = true; attacking = false; } } } } else { if (attackNumber == 2) { if (shotTimer > 0) { --shotTimer; } else { _root.parentBomb.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; if (laserCounter < 4) { if (_global.difficulty == 1) { shotTimer = 85; } else { if (_global.difficulty == 2) { shotTimer = 65; } else { shotTimer = 45; } } ++laserCounter; } else { laserCounter = 0; attackNumber = 0; attacking = false; } } } else { if (attackNumber == 3) { attacking = false; } else { if (attackNumber == 4) { if (shotTimer > 0) { _root.enemySprite.balloonWhistle.gotoAndStop(2); --shotTimer; } else { running = false; _root.enemySprite.balloonWhistle.gotoAndStop(1); _root.enemySprite.enemyBottom.gotoAndStop(2); } } else { if (attackNumber == 5) { attacking = false; } } } } } } if (death) { if (_global.difficulty > 1) { if (!attacking) { phase = 2; _root.laser.removeMovieClip(); _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); death = false; life = _root.totalLife; _root.healthRefill(life); shotTimer = 25; attackTimer = 75; _root.balloonbombdrop.stop(); _root.ballooncharge1.stop(); _root.ballooncharge2.stop(); _root.ballooncrank.stop(); _root.balloonextend.stop(); _root.balloonlaser1.stop(); _root.balloonlaser2.stop(); _root.balloonphasedrop.stop(); _root.balloonpunch.stop(); _root.balloonwhistle.stop(); } } else { _root.enemySprite.gotoAndStop('balloondeath'); _root.clearFunction(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); phase = 4; } } } else { if (phase == 2) { xPlayer = _root.player._x; yPlayer = _root.player._y; if (shotTimer > 0) { --shotTimer; } else { _root.parentBomb.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; if (_global.difficulty == 2) { if (!attacking) { shotTimer = 60; } else { shotTimer = 5000; } } else { shotTimer = 40; } } if (!attacking) { xVel = Math.abs(_x - _root.player._x) / 28; if (running) { if (_x < _root.player._x) { _x = _x + xVel; } else { _x = _x - xVel; } } if (attackTimer > 0) { --attackTimer; } else { attacking = true; dirSet = Math.ceil(Math.random() * 2); attackTimer = 60; if (dirSet == 1) { xSet = _root.ground._x - _root.ground._width / 2 - 200; xEnd = _root.ground._x + _root.ground._width / 2 + 200; } else { xEnd = _root.ground._x - _root.ground._width / 2 - 200; xSet = _root.ground._x + _root.ground._width / 2 + 200; } } } else { _x = _x + xVel; if (dirSet == 1) { xSet = _root.ground._x - _root.ground._width / 2 - 200; xEnd = _root.ground._x + _root.ground._width / 2; } else { xEnd = _root.ground._x - _root.ground._width / 2; xSet = _root.ground._x + _root.ground._width / 2 + 200; } if (attackTimer > 0) { --attackTimer; xVel = (xSet - _x) / 15; attackLength = 0; } else { ++attackLength; if (attackLength == 120 or attackLength == 225 or attackLength == 330 or attackLength == 435) { _root.enemySprite.enemyBottom.gotoAndStop(2); _root.enemySprite.balloonWhistle.gotoAndStop(1); } if (attackLength == 90 or attackLength == 195 or attackLength == 310 or attackLength == 415) { _root.enemySprite.balloonWhistle.gotoAndStop(2); } if (dirSet == 2) { if (_x > xEnd) { xVel = -5; } else { attacking = false; shotTimer = 40; attackTimer = 200; } } else { if (_x < xEnd) { xVel = 5; } else { attacking = false; shotTimer = 40; attackTimer = 200; } } } } if (death) { if (_global.difficulty > 2) { if (!attacking) { phase = 3; death = false; life = _root.totalLife; _root.healthRefill(life); _root.enemySprite.gotoAndPlay(2); attackTimer = 50; attackLength = 75; shotTimer = 380; _root.balloonbombdrop.stop(); _root.ballooncharge1.stop(); _root.ballooncharge2.stop(); _root.ballooncrank.stop(); _root.balloonextend.stop(); _root.balloonlaser1.stop(); _root.balloonlaser2.stop(); _root.balloonphasedrop.stop(); _root.balloonpunch.stop(); _root.balloonwhistle.stop(); } } else { _root.enemySprite.gotoAndStop('balloondeath'); _root.clearFunction(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); phase = 4; } } } else { if (phase == 3) { xVel = Math.abs(_x - _root.player._x) / 28; if (running) { if (_x < _root.player._x) { _x = _x + xVel; } else { _x = _x - xVel; } } if (shotTimer > 0) { --shotTimer; if (_root.enemySprite.enemyBottom.bGlow._alpha < 100 && shotTimer < 60) { if (shotTimer == 59) { _root.ballooncharge2.start(); } _root.enemySprite.enemyBottom.bGlow._alpha += 2; } if (shotTimer == 1) { _root.ballooncharge2.stop(); _root.balloonlaser2.start(); } } else { attacking = true; } if (!attacking) { if (attackTimer > 0) { running = true; _root.enemySprite.balloonWhistle.gotoAndStop(2); --attackTimer; } else { _root.enemySprite.balloonWhistle.gotoAndStop(1); _root.enemySprite.enemyBottom.gotoAndStop(3); running = false; } } else { running = false; if (attackLength > 0 && !_root.player.death) { --attackLength; _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); _root.laser2.removeMovieClip(); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); radians = 2.24; _root.pp2._x = _root.enemySprite._x; _root.pp2._y = _root.enemySprite._y - 130; while (!hit) { _root.pp2._y += Math.sin(radians) * circSize; _root.pp2._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { circSize += Math.random() * 0.2 + 1.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser2.moveTo(_root.enemySprite._x, _root.enemySprite._y - 130); _root.laser2.lineStyle(9, 4874677, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_root.enemySprite._x, _root.enemySprite._y - 130); _root.laser2.lineStyle(7, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser3.removeMovieClip(); _root.createEmptyMovieClip('laser3', _root.getNextHighestDepth()); radians2 = 0.9; _root.pp3._x = _root.enemySprite._x; _root.pp3._y = _root.enemySprite._y - 130; while (!hit) { _root.pp3._y += Math.sin(radians2) * circSize; _root.pp3._x += Math.cos(radians2) * circSize; if (!_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { circSize += Math.random() * 0.2 + 1.5; } if (_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser3.moveTo(_root.enemySprite._x, _root.enemySprite._y - 130); _root.laser3.lineStyle(9, 4874677, 100); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); _root.laser3.moveTo(_root.enemySprite._x, _root.enemySprite._y - 130); _root.laser3.lineStyle(7, 16777215, 100); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); _root.laser5.removeMovieClip(); _root.createEmptyMovieClip('laser5', _root.getNextHighestDepth()); radians4 = 0.28; _root.pp5._x = _root.enemySprite._x + 2; _root.pp5._y = _root.enemySprite._y - 130; while (!hit) { _root.pp5._y += Math.sin(radians4) * circSize; _root.pp5._x += Math.cos(radians4) * circSize; if (!_root.ground.hitTest(_root.pp5._x, _root.pp5._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp5._x, _root.pp5._y, true)) { circSize += Math.random() * 0.2 + 1.5; } if (_root.ground.hitTest(_root.pp5._x, _root.pp5._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp5._x, _root.pp5._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser5.moveTo(_root.enemySprite._x + 2, _root.enemySprite._y - 130); _root.laser5.lineStyle(9, 4874677, 100); _root.laser5.lineTo(_root.pp5._x, _root.pp5._y); _root.laser5.moveTo(_root.enemySprite._x + 2, _root.enemySprite._y - 130); _root.laser5.lineStyle(7, 16777215, 100); _root.laser5.lineTo(_root.pp5._x, _root.pp5._y); _root.laser4.removeMovieClip(); _root.createEmptyMovieClip('laser4', _root.getNextHighestDepth()); radians3 = 2.86; _root.pp4._x = _root.enemySprite._x - 5; _root.pp4._y = _root.enemySprite._y - 130; while (!hit) { _root.pp4._y += Math.sin(radians3) * circSize; _root.pp4._x += Math.cos(radians3) * circSize; if (!_root.ground.hitTest(_root.pp4._x, _root.pp4._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp4._x, _root.pp4._y, true)) { circSize += Math.random() * 0.2 + 1.5; } if (_root.ground.hitTest(_root.pp4._x, _root.pp4._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp4._x, _root.pp4._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser4.moveTo(_root.enemySprite._x - 5, _root.enemySprite._y - 130); _root.laser4.lineStyle(9, 4874677, 100); _root.laser4.lineTo(_root.pp4._x, _root.pp4._y); _root.laser4.moveTo(_root.enemySprite._x - 5, _root.enemySprite._y - 130); _root.laser4.lineStyle(7, 16777215, 100); _root.laser4.lineTo(_root.pp4._x, _root.pp4._y); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p3', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p4', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p5', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p6', _root.getNextHighestDepth()); } else { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); attackLength = 75; attackTimer = 50; shotTimer = 380; _root.balloonlaser2.stop(); _root.enemySprite.enemyBottom.bGlow._alpha = 0; running = true; attacking = false; } } if (death) { _root.enemySprite.gotoAndStop('balloondeath'); _root.clearFunction(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); _root.balloonbombdrop.stop(); _root.ballooncharge1.stop(); _root.ballooncharge2.stop(); _root.ballooncrank.stop(); _root.balloonextend.stop(); _root.balloonlaser1.stop(); _root.balloonlaser2.stop(); _root.balloonphasedrop.stop(); _root.balloonpunch.stop(); _root.balloonwhistle.stop(); phase = 4; } } else { if (phase == 4) { _root.enemySprite.gotoAndStop('balloondeath'); _root.clearFunction(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.p4.removeMovieClip(); _root.p5.removeMovieClip(); _root.p6.removeMovieClip(); running = false; attacking = false; charge = false; _root.balloonbombdrop.stop(); _root.ballooncharge1.stop(); _root.ballooncharge2.stop(); _root.ballooncrank.stop(); _root.balloonextend.stop(); _root.balloonlaser1.stop(); _root.balloonlaser2.stop(); _root.balloonphasedrop.stop(); _root.balloonpunch.stop(); _root.balloonwhistle.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } instance pp of movieClip 467 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance parentP of movieClip 570 { onClipEvent (load) { if (_name == 'p1') { this.gotoAndStop(2); _x = _root.pp1._x; _y = _root.pp1._y; damage = 3; } else { if (_name == 'p2') { this.gotoAndStop(2); _x = _root.pp2._x; _y = _root.pp2._y; damage = 8; } else { if (_name == 'p3') { this.gotoAndStop(2); _x = _root.pp3._x; _y = _root.pp3._y; damage = 8; } else { if (_name == 'p4') { _x = _root.enemySprite._x; _y = _root.enemySprite._y - 133; _xscale = 110; _yscale = 110; damage = 8; } else { if (_name == 'p5') { this.gotoAndStop(2); _x = _root.pp4._x; _y = _root.pp4._y; damage = 8; } else { if (_name == 'p6') { this.gotoAndStop(2); _x = _root.pp5._x; _y = _root.pp5._y; damage = 8; } } } } } } } onClipEvent (enterFrame) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance lTarget of movieClip 582 { onClipEvent (load) { this.gotoAndStop(3); } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance pp2 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 8; } } instance pp3 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 8; } } instance pp4 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 8; } } instance pp5 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 8; } } movieClip 1191 { } movieClip 1194 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1195 { frame 1 { stop(); } frame 2 { stop(); _root.bombexplode.start(); } instance of movieClip 1194 { onClipEvent (load) { xSpeed = 25; } onClipEvent (enterFrame) { _x = _x + xSpeed; } } instance of movieClip 1194 { onClipEvent (load) { xSpeed = -25; } onClipEvent (enterFrame) { _x = _x + xSpeed; } } instance of movieClip 570 { onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { ++timer; if (timer > 300) { _parent.removeMovieClip(); } if (_alpha > 0) { _alpha = _alpha - 5; _xscale = _xscale - 5; _yscale = _yscale - 5; } } } } instance parentBomb of movieClip 1195 { onClipEvent (load) { if (_name != 'parentBomb') { damage = 4; _x = _root.enemy._x + 90; _y = _root.enemy._y - 180; yVel = 0; rotSpeed = Math.random() * 10 - 5; _root.enemySprite.smoke.play(); } } onClipEvent (enterFrame) { if (_name != 'parentBomb') { if (_currentframe == 1) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); yVel = 0; _rotation = 0; this.gotoAndStop(2); } _rotation = _rotation + rotSpeed; _y = _y + yVel; if (yVel < 24) { yVel += _root.gravity; } } xVel = _root.player.xVel; if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -115) { if (xVel < 0) { } else { _x = _x - xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (xVel < 0) { _x = _x - xVel; } } } if (_root.ground.hitTest(_x, _y, true)) { yVel = 0; _rotation = 0; this.gotoAndStop(2); } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyBottom.enemyPunch.glove.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyBottom.enemyPunch.glove.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -120 or _x > 1050) { this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -115) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyBottom.enemyPunch.glove.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyBottom.enemyPunch.glove.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -120 or _x > 1050) { this.removeMovieClip(); } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 126 { clearFunction(); } frame 141 { gotoAndStop('stageselection'); } frame 142 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 36; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 40; totalLife = 40; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 35; totalLife = 35; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 400 { onClipEvent (load) { _visible = false; } } movieClip 1198 { } instance enemy of movieClip 222 { onClipEvent (load) { timer = 0; _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; if (_global.difficulty == 1) { xMax = -5; } else { if (_global.difficulty == 2) { xMax = -7; } else { xMax = -9; } } yVel = 0; maxFall = 24; maxJump = -37; sCirc = 145; circSize = 0; sRads = 0; radians = 1.570796326794897; c = 0.05; xSet = 0; xPos = _x; yPos = _y - _height / 2; hoverSet = _y; gravity = 0; shotTimer = 0; attackNumber = 0; attackLength = 0; attackTimer = 40; switch (_global.difficulty) { case 1: attackSet = 50; break; case 2: attackSet = 40; break; case 3: attackSet = 35; } shieldTimer = 25; startTimer = 2; if (_global.difficulty != 3) { laserMax = 2; radianInc = 0.01; inc = 3.14; circInc = 0.2; } else { circInc = 0.4; inc = 2.09; laserMax = 3; radianInc = 0.007; } phase = 0; introTimer = 25; injuredSet = 8; teleCount = 0; injuredTimer = injuredSet; charDirection = 'left'; charRotation = ''; running = false; attacking = false; shield = true; jumping = false; sliding = false; hit = false; setPosition = false; injured = false; death = false; flicker = false; teleport = false; switchShield = false; shielded = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x; yPlayer = _root.player._y; if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } if (lDistance == 1 or rDistance == 1) { if (lDistance == 1) { charDirection = 'right'; } if (rDistance == 1) { charDirection = 'left'; } } if (charDirection == 'left') { _root.enemySprite._xscale = 100; } else { _root.enemySprite._xscale = -100; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (phase == 0) { _y = hoverSet + Math.sin(sRads * 5) * 7; xPos = _x; yPos = _y - _height / 2 - 35; sRads += c; v = 1; while (v <= 3) { _root['shield' + v]._y = yPos + Math.sin(sRads + 2.04 * v) * sCirc; _root['shield' + v]._x = xPos + Math.cos(sRads + 2.04 * v) * sCirc; a = _root['shield' + v]._y - (_y - _height / 2 - 35); b = Math.abs(_root['shield' + v]._x - _x); angle = Math.atan(b / a) * 180 / Math.PI; if (_x >= _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = angle; } else { if (_x >= _root['shield' + v]._x && yPos > _root['shield' + v]._y) { _root['shield' + v]._rotation = angle + 180; } else { if (_x < _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = -angle; } else { _root['shield' + v]._rotation = -angle + 180; } } } ++v; } if (introTimer > 0) { --introTimer; } else { phase = 1; } } else { if (phase == 1) { _y = hoverSet + Math.sin(sRads * 5) * 7; xPos = _x; yPos = _y - _height / 2 - 35; sRads += c; v = 1; while (v <= 3) { _root['shield' + v]._y = yPos + Math.sin(sRads + 2.04 * v) * sCirc; _root['shield' + v]._x = xPos + Math.cos(sRads + 2.04 * v) * sCirc; a = _root['shield' + v]._y - (_y - _height / 2 - 35); b = Math.abs(_root['shield' + v]._x - _x); angle = Math.atan(b / a) * 180 / Math.PI; if (_x >= _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = angle; } else { if (_x >= _root['shield' + v]._x && yPos > _root['shield' + v]._y) { _root['shield' + v]._rotation = angle + 180; } else { if (_x < _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = -angle; } else { _root['shield' + v]._rotation = -angle + 180; } } } ++v; } if (!teleport) { running = true; _root.enemySprite.shieldHalo.rotSpeed = Math.abs(-attackTimer - 5); if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (!attacking) { if (attackTimer > 0) { --attackTimer; } else { if (teleCount < 2) { if (charDirection == 'left') { if (_x - xPlayer > 0 && _x - xPlayer < 350 && _global.difficulty > 1) { attackNumber = 1; shotTimer = 10; attackLength = 45; } else { shotTimer = 30; attackNumber = 2; } } else { if (xPlayer - _x > 0 && xPlayer - _x < 350 && _global.difficulty > 1) { shotTimer = 10; attackNumber = 1; attackLength = 45; } else { shotTimer = 30; attackNumber = 2; } } attacking = true; } else { teleport = true; } } } if (attackNumber == 1) { if (shotTimer > 0) { if (shotTimer == 1) { _root.shieldlaser2d.start(); } --shotTimer; } else { if (attackLength > 0 && !_root.player.death) { if (_global.difficulty == 2) { xMax = -12; } else { xMax = -14; } _root.enemySprite.gotoAndStop(2); --attackLength; _root.pp1._x = _x - 17; _root.pp2._x = _x + 17; _root.pp1._y = _y - 15; _root.pp2._y = _y - 15; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y + 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y + 10, true)) { if (!_root.shield1.barrier.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.shield2.barrier.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.shield3.barrier.hitTest(_root.pp1._x, _root.pp1._y, true)) { _root.pp1._y += 10; } } else { _root.pp1._y += 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.shield1.barrier.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.shield2.barrier.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.shield3.barrier.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y + 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y + 10, true)) { if (!_root.shield1.barrier.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.shield2.barrier.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.shield3.barrier.hitTest(_root.pp2._x, _root.pp2._y, true)) { _root.pp2._y += 10; } } else { _root.pp2._y += 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.shield1.barrier.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.shield2.barrier.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.shield3.barrier.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x - 17, _y - 15); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 17, _y - 15); _root.laser1.lineStyle(2, 4783898, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x + 17, _y - 15); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x + 17, _y - 15); _root.laser2.lineStyle(2, 4783898, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); } else { _root.enemySprite.shieldDown.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); attacking = false; attackTimer = attackSet; attackNumber = 0; _root.shieldlaser2d.stop(); if (_global.difficulty == 3) { ++teleCount; } if (_global.difficulty == 2) { xMax = -7; } else { xMax = -9; } } } } else { if (attackNumber == 2) { if (shotTimer > 0) { if (shotTimer == 1) { _root.shieldlaser2d.start(); } --shotTimer; if (shotTimer == 2) { _root.enemySprite.gotoAndStop(3); } } else { if (radians < 4.71238898038469 && !_root.player.death) { j = 1; while (j <= laserMax) { _root['laser' + j].removeMovieClip(); _root['p' + j].removeMovieClip(); _root.createEmptyMovieClip('laser' + j, _root.getNextHighestDepth()); _root['pp' + j]._x = _x; _root['pp' + j]._y = _y - 35; while (!hit) { _root['pp' + j]._y += Math.sin(radians + inc * j) * circSize; _root['pp' + j]._x += Math.cos(radians + inc * j) * circSize; if (!_root.ground.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or !_root.playerSprite.hitBox.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true)) { if (!_root.shield1.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or !_root.shield2.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or !_root.shield3.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true)) { circSize += circInc; } } if (_root.ground.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or _root.playerSprite.hitBox.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or _root.shield1.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or _root.shield2.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true) or _root.shield3.barrier.hitTest(_root['pp' + j]._x, _root['pp' + j]._y, true)) { hit = true; } } _root['laser' + j].moveTo(_x, _y - 35); _root['laser' + j].lineStyle(6, 16777215, 100); _root['laser' + j].lineTo(_root['pp' + j]._x, _root['pp' + j]._y); _root['laser' + j].moveTo(_x, _y - 35); _root['laser' + j].lineStyle(4, 4783898, 100); _root['laser' + j].lineTo(_root['pp' + j]._x, _root['pp' + j]._y); _root.parentP.duplicateMovieClip('p' + j, _root.getNextHighestDepth()); hit = false; radians += radianInc; circSize = 0; ++j; } } else { _root.enemySprite.shieldSpin.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); radians = 1.570796326794897; attackTimer = attackSet; attacking = false; attackNumber = 0; _root.shieldlaser2d.stop(); if (_global.difficulty == 3) { ++teleCount; } } } } } } else { running = false; if (!attacking) { shotTimer = 10; _root.enemySprite.gotoAndStop(12); } else { if (shotTimer > 0) { if (shotTimer == 1) { _root.shieldlaser2d.start(); } --shotTimer; if (shotTimer == 2) { _root.enemySprite.gotoAndStop(3); } } else { if (radians > -7.853981633974483 && !_root.player.death) { k = 1; while (k <= 2) { _root['laser' + k].removeMovieClip(); _root['p' + k].removeMovieClip(); _root.createEmptyMovieClip('laser' + k, _root.getNextHighestDepth()); _root['pp' + k]._x = _x; _root['pp' + k]._y = _y - 35; while (!hit) { _root['pp' + k]._y += Math.sin(radians + 3.14 * k) * circSize; _root['pp' + k]._x += Math.cos(radians + 3.14 * k) * circSize; if (!_root.ground.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or !_root.playerSprite.hitBox.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true)) { if (!_root.shield1.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or !_root.shield2.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or !_root.shield3.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true)) { circSize += 0.2; } } if (_root.ground.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or _root.playerSprite.hitBox.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or _root.shield1.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or _root.shield2.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true) or _root.shield3.barrier.hitTest(_root['pp' + k]._x, _root['pp' + k]._y, true)) { hit = true; } } _root['laser' + k].moveTo(_x, _y - 35); _root['laser' + k].lineStyle(6, 16777215, 100); _root['laser' + k].lineTo(_root['pp' + k]._x, _root['pp' + k]._y); _root['laser' + k].moveTo(_x, _y - 35); _root['laser' + k].lineStyle(4, 4783898, 100); _root['laser' + k].lineTo(_root['pp' + k]._x, _root['pp' + k]._y); _root.parentP.duplicateMovieClip('p' + k, _root.getNextHighestDepth()); hit = false; radians -= 0.024; circSize = 0; ++k; } } else { _root.enemySprite.shieldSpin.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); radians = 1.570796326794897; attackTimer = attackSet; attacking = false; attackNumber = 0; teleCount = 0; teleport = false; _root.shieldlaser2d.stop(); } } } } if (death) { if (_global.difficulty > 1) { _root.clearFunction(); shotTimer = 0; xVel = 0; attackNumber = 0; attackLength = 0; attackTimer = 25; shieldTimer = 100; running = false; attacking = false; teleport = false; _root.enemySprite.gotoAndStop(14); _root.shieldlaser1.stop(); _root.shieldlaser2c.stop(); _root.shieldlaser2d.stop(); _root.shieldlaser3.stop(); _root.shieldlaser4.stop(); _root.shieldlaser5.stop(); _root.shieldlaser6.stop(); _root.shieldlaser7.stop(); _root.shieldpowerup.stop(); _root.shielddown.stop(); _root.shieldup.stop(); if (switchShield) { sCirc = 75; xPos = _x; yPos = _y - _height / 2 - 35; sRads += c; v = 1; while (v <= 3) { _root['shield' + v]._y = yPos + Math.sin(sRads + 2.04 * v) * sCirc; _root['shield' + v]._x = xPos + Math.cos(sRads + 2.04 * v) * sCirc; a = _root['shield' + v]._y - (_y - _height / 2 - 35); b = Math.abs(_root['shield' + v]._x - _x); angle = Math.atan(b / a) * 180 / Math.PI; if (_x >= _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = angle + 180; } else { if (_x >= _root['shield' + v]._x && yPos > _root['shield' + v]._y) { _root['shield' + v]._rotation = angle; } else { if (_x < _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = -angle + 180; } else { _root['shield' + v]._rotation = -angle; } } } ++v; } } } else { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.enemySprite.gotoAndStop('shielddeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { gravity = _root.gravity; if (!switchShield) { sCirc = 75; xPos = _x; yPos = _y - _height / 2 - 35; sRads += c; v = 1; while (v <= 3) { _root['shield' + v]._y = yPos + Math.sin(sRads + 2.04 * v) * sCirc; _root['shield' + v]._x = xPos + Math.cos(sRads + 2.04 * v) * sCirc; a = _root['shield' + v]._y - (_y - _height / 2 - 35); b = Math.abs(_root['shield' + v]._x - _x); angle = Math.atan(b / a) * 180 / Math.PI; if (_x >= _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = angle + 180; } else { if (_x >= _root['shield' + v]._x && yPos > _root['shield' + v]._y) { _root['shield' + v]._rotation = angle; } else { if (_x < _root['shield' + v]._x && yPos < _root['shield' + v]._y) { _root['shield' + v]._rotation = -angle + 180; } else { _root['shield' + v]._rotation = -angle; } } } ++v; } } if (shieldTimer > 0) { --shieldTimer; } else { if (shield) { _root.shielddown.start(); shielded = false; shield = false; } else { _root.shieldup.start(); shielded = true; shield = true; } shieldTimer = 100; } if (lDistance < 2) { _root.enemySprite.shieldDash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); if (_global.difficulty == 3) { attacking = true; } running = false; sliding = false; shotTimer = 25; attackLength = 24; xMax = 0; _x = _x + 2; } if (rDistance < 2) { _root.enemySprite.shieldDash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); if (_global.difficulty == 3) { attacking = true; } running = false; sliding = false; shotTimer = 25; attackLength = 24; xMax = 0; _x = _x - 2; } if (shield) { _root.shield1.gotoAndStop(2); _root.shield2.gotoAndStop(2); _root.shield3.gotoAndStop(2); } else { _root.shield1.barrier._alpha -= 20; _root.shield2.barrier._alpha -= 20; _root.shield3.barrier._alpha -= 20; } if (attackTimer > 0) { --attackTimer; } else { if (!jumping && !sliding && !attacking) { attackNumber = Math.ceil(Math.random() * 2); if (attackNumber == 1) { jumping = true; running = true; yVel = maxJump; xMax = (_x - xPlayer) / maxJump; _root.shieldlaser2d.start(); } else { if (attackNumber == 2) { sliding = true; running = true; xSet = xPlayer; xMax = -(_x - xPlayer) / 20; _root.shieldlaser2d.start(); } } if (xPlayer > _x) { charDirection = 'right'; } else { charDirection = 'left'; } attackNumber = 0; } else { if (jumping && !_root.player.death) { if (yVel < 0) { _root.enemySprite.gotoAndStop(5); _root.pp1._x = _x - 35; _root.pp2._x = _x + 35; _root.pp1._y = _y - 2; _root.pp2._y = _y - 2; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y + 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y + 10, true)) { _root.pp1._y += 10; } else { _root.pp1._y += 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y + 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y + 10, true)) { _root.pp2._y += 10; } else { _root.pp2._y += 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x - 35, _y - 2); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 35, _y - 2); _root.laser1.lineStyle(2, 2090234, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x + 35, _y - 2); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x + 35, _y - 2); _root.laser2.lineStyle(2, 2090234, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); } else { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.enemySprite.shieldJump.play(); _root.shieldlaser2d.stop(); } if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { if (_global.difficulty == 3) { attacking = true; } else { attackTimer = 25; } running = false; jumping = false; shotTimer = 30; attackLength = 24; xMax = 0; } } } else { if (sliding && !_root.player.death) { _root.enemySprite.gotoAndStop(6); if (charDirection == 'left') { _root.pp1._x = _x + 55; _root.pp2._x = _x + 62; _root.pp1._y = _y - 40; _root.pp2._y = _y - 55; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x + 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x + 10, _root.pp1._y, true)) { _root.pp1._x += 10; } else { _root.pp1._x += 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x + 10, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x + 10, _root.pp2._y, true)) { _root.pp2._x += 10; } else { _root.pp2._x += 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x + 55, _y - 40); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x + 55, _y - 40); _root.laser1.lineStyle(2, 2090234, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(2, 2090234, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); if (xSet > _x) { _root.enemySprite.shieldDash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); if (_global.difficulty == 3) { attacking = true; } else { attackTimer = 25; } running = false; sliding = false; shotTimer = 30; attackLength = 27; xMax = 0; _root.shieldlaser2d.stop(); } } else { _root.pp1._x = _x - 55; _root.pp2._x = _x - 62; _root.pp1._y = _y - 40; _root.pp2._y = _y - 55; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x - 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x - 10, _root.pp1._y, true)) { _root.pp1._x -= 10; } else { _root.pp1._x -= 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x - 10, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x - 10, _root.pp2._y, true)) { _root.pp2._x -= 10; } else { _root.pp2._x -= 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x - 55, _y - 40); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 55, _y - 40); _root.laser1.lineStyle(2, 2090234, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x - 62, _y - 55); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x - 62, _y - 55); _root.laser2.lineStyle(2, 2090234, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); if (xSet < _x) { _root.enemySprite.shieldDash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.shieldlaser2d.stop(); if (_global.difficulty == 3) { attacking = true; } else { attackTimer = 25; } running = false; sliding = false; shotTimer = 30; attackLength = 24; xMax = 0; } } } } } } if (running) { xVel = xMax; } if (attacking) { _root.enemySprite.shieldHalo.rotSpeed = Math.abs(-shotTimer - 5); if (shotTimer > 0) { if (shotTimer == 1) { _root.shieldlaser2d.start(); } --shotTimer; } else { _root.enemySprite.gotoAndStop(4); if (attackLength > 0 && !_root.player.death) { --attackLength; _root.pp1._x = _x - 62; _root.pp2._x = _x + 62; _root.pp1._y = _y - 55; _root.pp2._y = _y - 55; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x - 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x - 10, _root.pp1._y, true)) { _root.pp1._x -= 10; } else { _root.pp1._x -= 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x + 10, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x + 10, _root.pp2._y, true)) { _root.pp2._x += 10; } else { _root.pp2._x += 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x - 62, _y - 55); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 62, _y - 55); _root.laser1.lineStyle(2, 2090234, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(2, 2090234, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); } else { _root.enemySprite.shieldVul.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); attacking = false; attackTimer = 20; _root.shieldlaser2d.stop(); } } } else { _root.enemySprite.shieldHalo.rotSpeed = Math.abs(-attackTimer - 5); } if (death) { if (_global.difficulty > 2) { if (!jumping && !sliding) { _root.clearFunction(); shotTimer = 0; xVel = 0; attackNumber = 0; attackLength = 0; attackTimer = 1; shieldTimer = 100; jumping = false; sliding = false; running = false; attacking = false; _root.enemySprite.gotoAndStop(15); _root.shieldlaser1.stop(); _root.shieldlaser2c.stop(); _root.shieldlaser2d.stop(); _root.shieldlaser3.stop(); _root.shieldlaser4.stop(); _root.shieldlaser5.stop(); _root.shieldlaser6.stop(); _root.shieldlaser7.stop(); _root.shieldpowerup.stop(); _root.shielddown.stop(); _root.shieldup.stop(); if (_x < Stage.width / 2) { charDirection = 'right'; } else { charDirection = 'left'; } } } else { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.enemySprite.gotoAndStop('shielddeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { gravity = _root.gravity; if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (!setPosition) { if (!sliding) { if (attackTimer > 0) { --attackTimer; } else { sliding = true; running = true; xSet = Stage.width / 2; xMax = -10; } } else { if (sliding && !_root.player.death) { _root.enemySprite.gotoAndStop(8); if (charDirection == 'left') { if (xSet > _x) { _root.enemySprite.shield2Dash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); attacking = false; running = false; sliding = false; setPosition = true; _root.shieldpowerup.start(); shotTimer = 125; attackLength = 150; xMax = 0; } } else { if (xSet < _x) { _root.enemySprite.shield2Dash.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); attacking = false; running = false; sliding = false; setPosition = true; _root.shieldpowerup.start(); shotTimer = 125; attackLength = 150; xMax = 0; } } } } } else { if (attacking) { _root.enemySprite.gotoAndStop(9); if (attackLength > 0 && !_root.player.death) { --attackLength; _root.pp1._x = _x - 62; _root.pp2._x = _x + 62; _root.pp1._y = _y - 55; _root.pp2._y = _y - 55; _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); while (!hit) { if (!_root.ground.hitTest(_root.pp1._x - 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x - 10, _root.pp1._y, true)) { _root.pp1._x -= 10; } else { _root.pp1._x -= 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; while (!hit) { if (!_root.ground.hitTest(_root.pp2._x + 10, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x + 10, _root.pp2._y, true)) { _root.pp2._x += 10; } else { _root.pp2._x += 0.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_x - 62, _y - 55); _root.laser1.lineStyle(4, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_x - 62, _y - 55); _root.laser1.lineStyle(2, 16711680, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(4, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_x + 62, _y - 55); _root.laser2.lineStyle(2, 16711680, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); } else { _root.enemySprite.shield2Vul.play(); _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); attacking = false; shotTimer = 125; attackLength = 150; _root.shieldpowerup.start(); _root.shieldlaser2d.stop(); } } else { if (shotTimer > 0) { if (shotTimer == 1) { _root.shieldlaser2d.start(); } --shotTimer; _root.enemySprite.gotoAndStop(11); if (shotTimer <= 2) { _root.shieldFlash.play(); if (shotTimer == 2) { _root.shieldburst.start(); } } } else { attacking = true; } } } shield = true; if (shield) { _root.shield1.gotoAndStop(4); _root.shield2.gotoAndStop(4); _root.shield3.gotoAndStop(4); } if (death) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.enemySprite.gotoAndStop('shielddeath'); _root.clearFunction(); _root.shieldlaser1.stop(); _root.shieldlaser2c.stop(); _root.shieldlaser2d.stop(); _root.shieldlaser3.stop(); _root.shieldlaser4.stop(); _root.shieldlaser5.stop(); _root.shieldlaser6.stop(); _root.shieldlaser7.stop(); _root.shieldpowerup.stop(); _root.shielddown.stop(); _root.shieldup.stop(); phase = 4; } } else { if (phase == 4) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1.removeMovieClip(); _root.p2.removeMovieClip(); _root.p3.removeMovieClip(); _root.enemySprite.gotoAndStop('shielddeath'); _root.clearFunction(); _root.shield1.gotoAndStop(6); _root.shield2.gotoAndStop(6); _root.shield3.gotoAndStop(6); running = false; attacking = false; shield = false; jumping = false; sliding = false; teleport = false; switchShield = false; _root.shieldlaser1.stop(); _root.shieldlaser2c.stop(); _root.shieldlaser2d.stop(); _root.shieldlaser3.stop(); _root.shieldlaser4.stop(); _root.shieldlaser5.stop(); _root.shieldlaser6.stop(); _root.shieldlaser7.stop(); _root.shieldpowerup.stop(); _root.shielddown.stop(); _root.shieldup.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } movieClip 1201 { } movieClip 1203 { } movieClip 1205 { } movieClip 1211 { } movieClip 1212 { } movieClip 1213 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } instance of movieClip 1212 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.15; d += 0.35; } } } movieClip 1216 { } movieClip 1218 { } movieClip 1220 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 4 { _root.enemySprite.gotoAndStop(1); } } movieClip 1227 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 3 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } frame 6 { _root.enemySprite.gotoAndStop(1); } } movieClip 1231 { } movieClip 1233 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 5 { _root.enemySprite.gotoAndStop(7); } } movieClip 1236 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 4 { _root.enemySprite.gotoAndStop(7); } } movieClip 1243 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 5 { _root.enemySprite.gotoAndStop(7); } } movieClip 1244 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } instance of movieClip 1212 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.15; d += 0.35; } } } movieClip 1248 { } movieClip 1253 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 5 { _root.enemySprite.gotoAndStop(10); } } movieClip 1257 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 2 { stop(); } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } frame 5 { _root.enemySprite.gotoAndStop(10); } } movieClip 1259 { instance parentRing of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } } movieClip 1275 { } movieClip 1277 { instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 3 { stop(); } instance of movieClip 1248 { onClipEvent (enterFrame) { _xscale = _xscale + 1; _yscale = _yscale + 1; } } instance glow1 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 60; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 50; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 40; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 25; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 20; } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } _xscale = _xscale + 3.5; _yscale = _yscale + 3.5; } } instance glow2 of movieClip 1218 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 50; } _xscale = _xscale + 3.5; _yscale = _yscale + 3.5; } } instance of movieClip 1275 { onClipEvent (enterFrame) { _xscale = _xscale + 0.75; _yscale = _yscale + 0.75; } } frame 6 { _root.enemySprite.gotoAndStop(1); } } movieClip 1280 { frame 15 { stop(); _root.enemy._x = Math.random() * 300 + 300; _root.enemy.attacking = true; _root.enemySprite.gotoAndStop(13); } } movieClip 1282 { frame 15 { stop(); } } movieClip 1283 { frame 16 { stop(); } } movieClip 1284 { frame 16 { stop(); } } movieClip 1290 { instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } instance of movieClip 1212 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.15; d += 0.35; } } frame 12 { _root.shieldglitch.start(); } frame 28 { _root.shield1.gotoAndStop(2); _root.shield2.gotoAndStop(2); _root.shield3.gotoAndStop(2); _root.enemy.switchShield = true; _root.shieldtwitch.start(); } instance of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 40 { _root.enemy.phase = 2; life = _root.totalLife; _root.healthRefill(life); _root.enemy.death = false; _root.enemy.switchShield = false; _root.enemySprite.gotoAndStop(7); } } movieClip 1297 { instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } instance of movieClip 1212 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.15; d += 0.35; } } frame 12 { _root.shieldglitch.start(); } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 25; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 25; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 25; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 25; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } frame 28 { _root.enemy.switchShield = true; _root.shield1.gotoAndStop(4); _root.shield2.gotoAndStop(4); _root.shield3.gotoAndStop(4); q = 1; while (q <= 3) { _root['shield' + q]._y = _root.enemy._y - 450; _root['shield' + q]._rotation = 180; ++q; } _root.shield1._rotation = 0; _root.shield2._rotation = 0; _root.shield3._rotation = 0; _root.shield2._x = Stage.width / 2 - 300; _root.shield1._x = 5000; _root.shield3._x = Stage.width / 2 + 300; _root.shieldtwitch.start(); } instance of movieClip 1203 { onClipEvent (load) { if (_name == 'parentRing') { _visible = false; timer = 10; c = 1; } } onClipEvent (enterFrame) { if (_name == 'parentRing') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('ring' + c, _parent.getNextHighestDepth()); ++c; timer = 10; } } else { _y = _y + 0.5; _yscale = _yscale - 2; _xscale = _xscale - 2; if (_xscale <= 0) { this.removeMovieClip(); } } } } instance of movieClip 1205 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d); d += 0.3; } } frame 40 { _root.enemy.phase = 3; life = _root.totalLife; _root.healthRefill(life); _root.enemy.death = false; _root.enemy.attacking = true; _root.enemySprite.gotoAndStop(10); } } movieClip 1298 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1213 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.5; d += 0.2; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1244 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.5; d += 0.2; } } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 25; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1259 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.5; d += 0.2; } } frame 12 { stop(); _root.shieldteleportin.start(); } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1213 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.5; d += 0.2; } } frame 13 { _root.shieldteleportout.start(); } instance shieldHalo of movieClip 254 { onClipEvent (load) { rotSpeed = 5; } onClipEvent (enterFrame) { _rotation = _rotation + rotSpeed; } } instance of movieClip 1213 { onClipEvent (load) { ySet = _y; d = 0; } onClipEvent (enterFrame) { _y = ySet + Math.sin(d) * 1.5; d += 0.2; } } frame 16 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.3_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_3_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.3_1 = true; _global.3_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_3_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.3_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_3_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.3_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_3 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; achieveTimer = 0; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } if (jumping) { ++achieveTimer; } else { achieveTimer = 0; } if (achieveTimer >= 1440) { if (!_global.achievement_11) { _global.achievement_11 = true; _root.achievementNotice.gotoAndStop(12); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; c = 1; while (c <= 14) { _root.bossSave.data['achievement_' + c.toString()] = _global['achievement_' + c.toString()]; if (_global['achievement_' + c.toString()]) { ++_global.achieveCounter; } ++c; } bossSave.flush(); } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } movieClip 1300 { } movieClip 1303 { } movieClip 1307 { instance of movieClip 493 { onClipEvent (load) { _visible = false; timer = 0; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox) && _parent._alpha > 10) { _parent._alpha -= 2.5; if (_parent._alpha < 10) { _root.shielddown.start(); } _root.player.trackJump = 0; _root.player.yVel = 0; _root.player._y = _parent._parent._y + _parent._y + 25; _root.player._x = _parent._parent._x; _root.xLaser = _parent._parent._x; _root.yLaser = _parent._parent._y + _parent._y - 25; } } } } movieClip 1310 { frame 1 { stop(); } instance barrier of movieClip 1300 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } instance barrier of movieClip 1303 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _rotation = _rotation - 5; if (_alpha < 100) { _alpha = _alpha + 10; } if (_alpha <= 0) { _parent.gotoAndStop(3); } } } instance barrier of movieClip 1307 { onClipEvent (load) { _alpha = 0; if (_parent._name == 'shield2') { _y = 25; } } onClipEvent (enterFrame) { _rotation = _rotation - 5; if (!hitTest(_root.playerSprite.hitBox)) { if (_alpha < 100) { _alpha = _alpha + 5; } } } } } instance shield1 of movieClip 1310 { onClipEvent (load) { a = _y - (_root.enemy._y - _root.enemy._height / 2 - 35); b = Math.abs(_x - _root.enemy._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI; if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = angle; } else { if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 > _y) { _rotation = angle + 180; } else { if (_root.enemy._x < _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = -angle; } else { _rotation = -angle + 180; } } } } } instance shield2 of movieClip 1310 { onClipEvent (load) { charDirection = 'left'; xVel = -5; xMin = 150; xMax = 780; a = _y - (_root.enemy._y - _root.enemy._height / 2 - 35); b = Math.abs(_x - _root.enemy._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI; if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = angle; } else { if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 > _y) { _rotation = angle + 180; } else { if (_root.enemy._x < _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = -angle; } else { _rotation = -angle + 180; } } } } onClipEvent (enterFrame) { if (_currentframe == 4) { _x = _x + xVel; if (_x < xMin && charDirection == 'left') { charDirection = 'right'; xVel = 5; } if (_x > xMax && charDirection == 'right') { charDirection = 'left'; xVel = -5; } } } } instance shield3 of movieClip 1310 { onClipEvent (load) { charDirection = 'right'; xVel = 5; xMin = 150; xMax = 780; a = _y - (_root.enemy._y - _root.enemy._height / 2 - 35); b = Math.abs(_x - _root.enemy._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI; if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = angle; } else { if (_root.enemy._x > _x && _root.enemy._y - _root.enemy._height / 2 - 35 > _y) { _rotation = angle + 180; } else { if (_root.enemy._x < _x && _root.enemy._y - _root.enemy._height / 2 - 35 < _y) { _rotation = -angle; } else { _rotation = -angle + 180; } } } } onClipEvent (enterFrame) { if (_currentframe == 4) { _x = _x + xVel; if (_x < xMin && charDirection == 'left') { charDirection = 'right'; xVel = 5; } if (_x > xMax && charDirection == 'right') { charDirection = 'left'; xVel = -5; } } } } movieClip 1314 { frame 1 { stop(); } frame 3 { if (_root.playerSprite.hitBox.hitTest(_root.shield1.barrier) or _root.playerSprite.hitBox.hitTest(_root.shield2.barrier) or _root.playerSprite.hitBox.hitTest(_root.shield3.barrier)) { } else { damage = 20; _root.hurtFunction(damage); } } } instance parentP of movieClip 570 { onClipEvent (load) { _xscale = 75; _yscale = 75; if (_name == 'p1') { this.gotoAndStop(2); _x = _root.pp1._x; _y = _root.pp1._y; if (_global.difficulty != 3) { damage = 5; } else { damage = 3; } } if (_name == 'p2') { this.gotoAndStop(2); _x = _root.pp2._x; _y = _root.pp2._y; if (_global.difficulty == 1) { damage = 5; } else { if (_global.difficulty == 2) { damage = 6; } else { damage = 3; } } } if (_name == 'p3') { this.gotoAndStop(2); _x = _root.pp3._x; _y = _root.pp3._y; if (_global.difficulty == 1) { damage = 4; } else { if (_global.difficulty == 2) { damage = 6; } else { damage = 3; } } } if (_name == 'p4') { this.gotoAndStop(2); _x = _root.pp4._x; _y = _root.pp4._y; if (_global.difficulty == 1) { damage = 4; } else { if (_global.difficulty == 2) { damage = 6; } else { damage = 3; } } } } onClipEvent (enterFrame) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; } if (_name == 'p2') { _x = _root.pp2._x; _y = _root.pp2._y; } if (_name == 'p3') { _x = _root.pp3._x; _y = _root.pp3._y; } if (_name == 'p4') { _x = _root.pp4._x; _y = _root.pp4._y; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance pp2 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true) && !_root.enemy.shielded) { _root.damageFunction(damage); } this.removeMovieClip(); } t = 1; while (t <= 3) { if (_root['shield' + t].barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } ++t; } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true) && !_root.enemy.shielded) { _root.damageFunction(damage); } this.removeMovieClip(); } } t = 1; while (t <= 3) { if (_root['shield' + t].barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } ++t; } } } instance pp3 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!_root.player.stuck) { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } } onClipEvent (keyUp) { if (!_root.player.stuck) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } instance achievementNotice of movieClip 856 { onClipEvent (load) { _alpha = 0; timer = 0; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { if (_alpha > 0) { _alpha = _alpha - 10; } } } } frame 143 { clearFunction(); } frame 158 { gotoAndStop('stageselection'); } frame 159 { stop(); i = 0; g = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 51; totalShots = 0; achieveTimer = 0; _root.incinconveyorbelt.start(0, 99999); switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 50; totalLife = 50; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 50; totalLife = 50; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1318 { } movieClip 1319 { } movieClip 1321 { } movieClip 1323 { } movieClip 1324 { } movieClip 1327 { } movieClip 1328 { } movieClip 1329 { } movieClip 1333 { frame 1 { stop(); } } movieClip 1335 { frame 1 { stop(); } frame 2 { _root.incinignite.start(); } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } } movieClip 1337 { frame 1 { stop(); } frame 2 { _root.incinignite.start(); } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } } movieClip 1339 { frame 1 { stop(); } frame 2 { _root.incinignite.start(); } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } } movieClip 1341 { frame 1 { stop(); } frame 2 { _root.incinignite.start(); } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } instance of movieClip 1005 { onClipEvent (load) { damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } } movieClip 1343 { } movieClip 1346 { } movieClip 1349 { } movieClip 1351 { instance of movieClip 1346 { onClipEvent (load) { damage = 7; xVel = 9; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } } } instance of movieClip 1349 { onClipEvent (load) { if (_parent._parent.timer <= 50) { _root.incinwormshing.start(); } } } frame 31 { gotoAndPlay(1); } } movieClip 1353 { frame 31 { gotoAndPlay(1); } frame 33 { gotoAndPlay(1); } } movieClip 1354 { frame 1 { stop(); } instance of movieClip 1335 { onClipEvent (enterFrame) { p = 0; while (p <= 20) { if (hitTest(_root['bullet' + p]._x, _root['bullet' + p]._y, true)) { this.gotoAndStop(2); } ++p; } if (hitTest(_root.enemy2Sprite.hitBox)) { if (_currentframe == 2 && _root.enemy.phase == 1 && _global.difficulty == 3) { _root.enemySprite.sprite2.bulb.play(); _root.enemySprite.beam.timer = 24; } _parent.removeMovieClip(); } } } instance of movieClip 1337 { onClipEvent (enterFrame) { p = 0; while (p <= 20) { if (hitTest(_root['bullet' + p]._x, _root['bullet' + p]._y, true)) { this.gotoAndStop(2); } ++p; } if (hitTest(_root.enemy2Sprite.hitBox)) { if (_currentframe == 2 && _root.enemy.phase == 1 && _global.difficulty == 3) { _root.enemySprite.sprite2.bulb.play(); _root.enemySprite.beam.timer = 24; } _parent.removeMovieClip(); } } } instance of movieClip 1339 { onClipEvent (enterFrame) { p = 0; while (p <= 20) { if (hitTest(_root['bullet' + p]._x, _root['bullet' + p]._y, true)) { this.gotoAndStop(2); } ++p; } if (hitTest(_root.enemy2Sprite.hitBox)) { if (_currentframe == 2 && _root.enemy.phase == 1 && _global.difficulty == 3) { _root.enemySprite.sprite2.bulb.play(); _root.enemySprite.beam.timer = 24; } _parent.removeMovieClip(); } } } instance of movieClip 1341 { onClipEvent (enterFrame) { p = 0; while (p <= 20) { if (hitTest(_root['bullet' + p]._x, _root['bullet' + p]._y, true)) { this.gotoAndStop(2); } ++p; } if (hitTest(_root.enemy2Sprite.hitBox)) { if (_currentframe == 2 && _root.enemy.phase == 1 && _global.difficulty == 3) { _root.enemySprite.sprite2.bulb.play(); _root.enemySprite.beam.timer = 24; } _parent.removeMovieClip(); } } } instance worm of movieClip 1353 { onClipEvent (load) { this.gotoAndStop(32); this.head.gotoAndStop(32); timer = 80; } onClipEvent (enterFrame) { --timer; if (timer == 0) { this.play(); this.head.play(); } else { if (timer <= -100) { this.gotoAndStop(32); this.head.gotoAndStop(32); } } } } instance of movieClip 1337 { onClipEvent (enterFrame) { p = 0; while (p <= 20) { if (hitTest(_root['bullet' + p]._x, _root['bullet' + p]._y, true)) { this.gotoAndStop(2); } ++p; } if (hitTest(_root.enemy2Sprite.hitBox)) { if (_currentframe == 2 && _root.enemy.phase == 1) { _root.enemySprite.sprite2.bulb.play(); _root.enemySprite.beam.timer = 24; } _parent.removeMovieClip(); } } } } movieClip 1357 { } movieClip 1359 { } movieClip 1361 { instance parentFloor of movieClip 1333 { onClipEvent (load) { if (_root.enemy.phase == 3) { this.gotoAndStop(2); damage = 12; xVel = 9; } } onClipEvent (enterFrame) { if (_name == 'parentFloor') { } else { if (hitTest(_root.playerSprite)) { _root.hurtFunction(damage); } if (_x > 1300) { this.removeMovieClip(); } _x = _x + xVel; } } } instance parentPlat of movieClip 1354 { onClipEvent (load) { if (_name == 'parentPlat') { timer = 75; counter = 0; } else { xVel = 9; if (_root.enemy.phase != 3) { this.gotoAndStop(Math.ceil(Math.random() * 4)); } else { if (_parent.parentPlat.counter == 2) { _root.enemyHit.removeMovieClip(); _root.hitZone.duplicateMovieClip('enemyHit', _root.i); ++_root.i; } if (_parent.parentPlat.counter < 3) { this.gotoAndStop(Math.ceil(Math.random() * 4)); ++_parent.parentPlat.counter; } else { this.gotoAndStop(5); _parent.parentPlat.counter = 0; } } } } onClipEvent (enterFrame) { if (_name == 'parentPlat') { if (timer > 0) { --timer; } else { if (_root.enemy.phase == 3) { _parent.parentFloor.duplicateMovieClip('plat' + _root.g, _parent.getNextHighestDepth()); ++_root.g; } this.duplicateMovieClip('plat' + _root.g, _parent.getNextHighestDepth()); ++_root.g; if (_root.enemy.phase == 1) { timer = 75; } else { timer = 35; } } } else { if (_x > 1300) { this.removeMovieClip(); } _x = _x + xVel; if (hitTest(_root.player)) { if (hitTest(_root.ld) or hitTest(_root.rd)) { if (_root.player._x > (Stage.width / 7) * 4 && _root.ground._x > 130) { p = 0; while (p <= 20) { _root['bullet' + p]._x -= xVel - _root.player.xVel + 1; ++p; } _root.belt._x -= xVel - _root.player.xVel + 1; _root.parentMagma._x -= xVel - _root.player.xVel + 1; _root.enemySprite._x -= xVel - _root.player.xVel + 1; _root.enemy2Sprite._x -= xVel - _root.player.xVel + 1; _root.ground._x -= xVel - _root.player.xVel + 1; } else { _root.xLaser += xVel - _root.player.xVel + 2; _root.player._x += xVel - _root.player.xVel + 2; } } } } } } instance of movieClip 1357 { onClipEvent (enterFrame) { _rotation = _rotation + 9; } } instance of movieClip 1359 { onClipEvent (enterFrame) { _rotation = _rotation + 9; } } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.enemySprite.sprite1); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite.sprite1); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotColor2 = new Color(_root.enemySprite.sprite2); dotBlank2 = new Color(_root.enemySprite.sprite2); dotColor3 = new Color(_root.enemySprite.sprite3); dotBlank3 = new Color(_root.enemySprite.sprite3); phase = 1; injuredSet = 8; xSet = 0; ySet = 0; circSize = 0; radians = 0; injuredTimer = injuredSet; hit = false; death = false; injured = false; flicker = false; } onClipEvent (enterFrame) { if (_root.player.death) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); } if (phase == 1) { if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (death) { if (_global.difficulty > 1) { phase = 2; life = _root.totalLife; _root.healthRefill(life); death = false; dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; _root.enemySprite.beam.gotoAndStop(1); _root.enemySprite.sprite2.bulb.bulb2.gotoAndStop(2); _root.enemySprite.sprite1.gotoAndStop(2); _root.enemySprite.sprite1.bulb.gotoAndPlay(38); _root.incinchargeblast1.stop(); _root.incinchargeblast2.stop(); _root.incincharging.stop(); _root.incinlaser.stop(); _root.incinlightdescend.stop(); _root.incinwormshing.stop(); _root.incinlaser.start(0, 99999); } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; _root.enemySprite.sprite1.gotoAndStop(2); _root.enemySprite.sprite1.bulb.gotoAndPlay(38); _root.enemySprite.sprite3.gotoAndStop('incindeath'); _root.clearFunction(); _global.lifeRefill += 0.5; _global.10_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_10_1 = true; _root.perfect.play(); } } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; phase = 4; } } } else { if (phase == 2) { if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor2.setTransform(dotTransform); flicker = true; } else { dotBlank2.setTransform(dotReset); flicker = false; } } else { dotBlank2.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (!_root.player.death) { radians = 2.2; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _root.enemySprite._x + 431; _root.pp1._y = _root.enemySprite._y - 460; while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += Math.random() * 0.3 + 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.moveTo(_root.enemySprite._x + 431, _root.enemySprite._y - 460); _root.laser1.lineStyle(23, 8332, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_root.enemySprite._x + 431, _root.enemySprite._y - 460); _root.laser1.lineStyle(21, 12374270, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_root.enemySprite._x + 431, _root.enemySprite._y - 460); _root.laser1.lineStyle(17, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); hit = false; circSize = 0; } if (death) { if (_global.difficulty > 2) { phase = 3; life = _root.totalLife; _root.healthRefill(life); death = false; dotBlank2.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; _root.enemySprite.charge._alpha = 0; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.enemySprite.sprite2.gotoAndStop(2); _root.enemySprite.sprite2.bulb.gotoAndPlay(23); _root.enemySprite.play(); dotColor3 = new Color(_root.enemySprite.sprite3); dotBlank3 = new Color(_root.enemySprite.sprite3); _root.incinchargeblast1.stop(); _root.incinchargeblast2.stop(); _root.incincharging.stop(); _root.incinlaser.stop(); _root.incinlightdescend.stop(); _root.incinwormshing.stop(); } else { dotBlank2.setTransform(dotReset); flicker = false; injured = false; _root.enemySprite.charge._alpha = 0; _root.enemySprite.sprite2.gotoAndStop(2); _root.enemySprite.sprite2.bulb.gotoAndPlay(23); _root.enemySprite.sprite3.gotoAndStop('incindeath'); _root.clearFunction(); _global.lifeRefill += 0.75; _global.10_1 = true; _global.10_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_10_2 = true; _root.perfect.play(); } } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; phase = 4; } } } else { if (phase == 3) { if (_root.achieveTimer < 2160) { ++_root.achieveTimer; } else { if (!_global.achievement_8) { _global.achievement_8 = true; _root.achievementNotice.gotoAndStop(9); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; c = 1; while (c <= 14) { _root.bossSave.data['achievement_' + c.toString()] = _global['achievement_' + c.toString()]; if (_global['achievement_' + c.toString()]) { ++_global.achieveCounter; } ++c; } bossSave.flush(); } } if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor3.setTransform(dotTransform); flicker = true; } else { dotBlank3.setTransform(dotReset); flicker = false; } } else { dotBlank3.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (death) { _root.enemySprite.sprite3.gotoAndStop('incindeath'); _root.clearFunction(); _global.lifeRefill += 1; _global.10_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_10_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.10_4 = true; } if (_root.totalShots == _root.minShots) { _global.shots_10 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; _root.incinchargeblast1.stop(); _root.incinchargeblast2.stop(); _root.incincharging.stop(); _root.incinlaser.stop(); _root.incinlightdescend.stop(); _root.incinwormshing.stop(); phase = 4; } } else { if (phase == 4) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.incinchargeblast1.stop(); _root.incinchargeblast2.stop(); _root.incincharging.stop(); _root.incinlaser.stop(); _root.incinlightdescend.stop(); _root.incinwormshing.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xMin = 0; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_root.g >= 20) { _root.g = 1; } if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= xMin + 1) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= xMin - 5) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (_x > (Stage.width / 7) * 4 && _root.ground._x > 130) { if (xVel < 0) { _root.xLaser += xVel; _x = _x + xVel; } else { p = 0; while (p <= 20) { _root['bullet' + p]._x -= xVel; ++p; } _root.belt._x -= xVel; _root.parentMagma._x -= xVel; _root.enemySprite._x -= xVel; _root.enemy2Sprite._x -= xVel; _root.ground._x -= xVel; } } else { if (_x < (Stage.width / 7) * 3 && _root.ground._x < 790) { if (xVel < 0) { p = 0; while (p <= 20) { _root['bullet' + p]._x -= xVel; ++p; } _root.belt._x -= xVel; _root.parentMagma._x -= xVel; _root.enemySprite._x -= xVel; _root.enemy2Sprite._x -= xVel; _root.ground._x -= xVel; } else { _root.xLaser += xVel; _x = _x + xVel; } } else { _root.xLaser += xVel; _x = _x + xVel; } } if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax + xMin) { xVel -= xAccel; } else { xVel = -xMax + xMin; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax + xMin) { xVel += xAccel; } else { xVel = xMax + xMin; } charDirection = 'right'; } else { if (xVel > xMin) { xVel -= xDecel; } else { if (xVel < xMin) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > xMin) { xVel -= xDecel; } else { if (xVel < xMin) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; xMin = 9; trackJump = 0; } else { xMin = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } movieClip 1363 { } movieClip 1366 { } movieClip 1369 { } movieClip 1371 { } movieClip 1396 { } movieClip 1397 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } instance of movieClip 1396 { onClipEvent (enterFrame) { if (_global.difficulty == 1) { _visible = false; } } } instance of movieClip 1396 { onClipEvent (enterFrame) { if (_global.difficulty == 1) { _visible = false; } } } } movieClip 1400 { } movieClip 1404 { frame 34 { if (_global.difficulty > 1) { _root.parentMagma.duplicateMovieClip('bullet' + _root.g, _root.getNextHighestDepth()); ++_root.g; } } frame 36 { gotoAndPlay(1); } frame 39 { _root.incinglassbreak.start(); } frame 55 { stop(); } } movieClip 1406 { frame 1 { stop(); } instance of movieClip 1363 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (_root.enemy.phase == 1) { _y = ySet + (Math.random() * 3 - 6); } } } instance of movieClip 1366 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (_root.enemy.phase == 1) { _y = ySet + (Math.random() * 3 - 6); } } } } movieClip 1424 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 8 { gotoAndPlay(2); } frame 9 { _root.incincharging.stop(); _root.incinchargeblast1.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 21 { gotoAndStop(1); } } movieClip 1425 { } movieClip 1427 { frame 1 { stop(); } instance barrier of movieClip 493 { onClipEvent (load) { _visible = false; } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } } movieClip 1428 { instance bulb2 of movieClip 1427 { onClipEvent (enterFrame) { if (_root.enemy.phase == 2) { this.gotoAndStop(2); } } } frame 20 { stop(); } frame 22 { gotoAndPlay(1); } frame 24 { _root.incinglassbreak.start(); } frame 40 { stop(); } } movieClip 1429 { frame 1 { stop(); } instance of movieClip 1363 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + (Math.random() * 3 - 6); } } instance of movieClip 1366 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + (Math.random() * 3 - 6); } } instance bulb of movieClip 1428 { onClipEvent (load) { if (_global.difficulty == 1) { this.gotoAndPlay(23); } } } instance of movieClip 1363 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (_root.enemy.phase == 1) { _y = ySet + (Math.random() * 3 - 6); } } } instance of movieClip 1366 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { if (_root.enemy.phase == 1) { _y = ySet + (Math.random() * 3 - 6); } } } } movieClip 1432 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } frame 2 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } movieClip 1433 { frame 1 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 200; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 200; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 200; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 200; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } instance beam of movieClip 1424 { onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { if (_root.enemy.phase == 1) { if (timer > 0) { if (timer == 24) { _root.incinchargeblast2.start(); } --timer; this.play(); } else { this.gotoAndStop(1); } } else { if (_root.enemy.phase == 2 && _global.difficulty == 3) { _parent.charge._alpha = timer; if (timer < 100) { if (timer == 0) { _root.incincharging.start(); } ++timer; } else { this.gotoAndPlay(9); timer = 0; } } } } } instance charge of movieClip 1425 { onClipEvent (load) { _alpha = 0; } } instance sprite2 of movieClip 1429 { onClipEvent (load) { if (_global.difficulty == 1) { this.gotoAndStop(2); } } } instance sprite3 of movieClip 1432 { onClipEvent (load) { if (_global.difficulty != 3) { _visible = false; } } } frame 2 { _root.incinlightdescend.start(); } frame 31 { stop(); } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 7; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance parentP of movieClip 570 { onClipEvent (load) { damage = 5; if (_name == 'p1') { this.gotoAndStop(2); _x = _root.pp1._x; _y = _root.pp1._y; } } onClipEvent (enterFrame) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; } } } movieClip 1437 { } movieClip 1439 { } movieClip 1440 { frame 1 { stop(); } } instance parentMagma of movieClip 1440 { onClipEvent (load) { if (_name != 'parentMagma') { xVel = 0; yVel = 0; yMax = 20; _root.incinfiredrip.start(); } else { _visible = false; } damage = 5; } onClipEvent (enterFrame) { if (_name != 'parentMagma') { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } if (yVel < yMax && _currentframe == 1) { ++yVel; } _x = _x + xVel; _y = _y + yVel; if (_root.ground.hitTest(_x, _y, true)) { yVel = 0; xVel = 9; this.gotoAndStop(2); } if (_x > 1100) { this.removeMovieClip(); } if (_currentframe == 2) { _xscale = _xscale - 1.5; _yscale = _yscale - 1.5; if (_xscale < 50) { this.removeMovieClip(); } } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.sprite1.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite2.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite3.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.sprite1.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite2.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite3.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -50 or _x > 980) { this.removeMovieClip(); } if (_root.enemySprite.sprite2.bulb.bulb2.barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } if (_root.enemySprite.sprite1.bulb.bulb2.barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_root.player._x > (Stage.width / 7) * 4 && _root.ground._x > 130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < (Stage.width / 7) * 3 && _root.ground._x < 790) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.sprite1.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite2.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite3.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.sprite1.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite2.bulb.bulb2.enemyHit.hitTest(_x, _y, true) or _root.enemySprite.sprite3.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -70 or _x > 1000) { this.removeMovieClip(); } } if (_root.enemySprite.sprite2.bulb.bulb2.barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } if (_root.enemySprite.sprite1.bulb.bulb2.barrier.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.buttonachieveclick.start(); this.removeMovieClip(); } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } instance achievementNotice of movieClip 856 { onClipEvent (load) { _alpha = 0; timer = 0; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { if (_alpha > 0) { _alpha = _alpha - 10; } } } } frame 160 { clearFunction(); } frame 175 { gotoAndStop('stageselection'); } frame 176 { stop(); i = 0; g = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 66; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 65; totalLife = 65; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 65; totalLife = 65; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 65; totalLife = 65; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 400 { onClipEvent (load) { _visible = false; } } movieClip 1443 { } instance platform of movieClip 1443 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.gd._x, _root.gd._y, true)) { if (_root.player.gDistance < 1) { _root.player._y -= 5; } } else { if (hitTest(_root.g2d._x, _root.g2d._y, true)) { if (_root.player.g2Distance < 1) { _root.player._y -= 5; } } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } movieClip 1446 { } movieClip 1449 { } movieClip 1450 { } movieClip 1451 { } movieClip 1452 { frame 1 { stop(); } } movieClip 1453 { frame 1 { stop(); } } movieClip 1462 { frame 1 { if (_root.enemy.phase > 0) { _root.poisonslosh1.start(); } } } movieClip 1464 { } movieClip 1466 { } movieClip 1473 { frame 1 { stop(); } frame 23 { if (_root.enemy.phase == 1) { _root.poisonbloop.start(); if (_global.difficulty == 1) { _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = -18; ++_root.i; _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 18; ++_root.i; } else { _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = -18; ++_root.i; _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 0; ++_root.i; _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 18; ++_root.i; } } else { if (_root.enemy.phase == 2) { if (_global.difficulty == 3) { if (_root.enemy.attackNumber == 1) { _root.parentBubble.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; _root.enemy.attackNumber = 2; } else { _root.poisonbloop.start(); _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = -18; ++_root.i; _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 0; ++_root.i; _root.parentGoo.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 18; ++_root.i; _root.enemy.attackNumber = 1; } } else { _root.parentBubble.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; _root.enemy.attackNumber = 2; } } } } frame 35 { _root.enemy.running = true; _root.enemy.attacking = false; _root.enemy.attackTimer = 10; _root.enemySprite.leg1.play(); _root.enemySprite.leg2.play(); _root.enemySprite.leg3.play(); if (_global.difficulty == 1) { _root.enemy.shotTimer = 100; } else { if (_global.difficulty == 2) { if (_root.enemy.phase == 1) { _root.enemy.shotTimer = 75; } else { if (_root.enemy.phase == 2) { _root.enemy.shotTimer = 75; } } } else { if (_root.enemy.phase == 1) { _root.enemy.shotTimer = 50; } else { if (_root.enemy.phase == 2) { _root.enemy.shotTimer = 50; } } } } _root.enemySprite.spring.gotoAndStop(1); _root.enemySprite.tank.gotoAndStop(1); } } movieClip 1474 { frame 1 { stop(); } frame 2 { _root.poisonslosh1.stop(); } } movieClip 1494 { } movieClip 1495 { frame 21 { stop(); _root.poisonFloor._alpha = 100; _root.poisonFloor.play(); _root.emergency.play(); _root.poisonspill.start(); } } movieClip 1536 { } movieClip 1551 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 40 { stop(); _root.enemy.attacking = true; _root.poisonspray.start(); } frame 68 { stop(); } } movieClip 1552 { frame 2 { _root.poisonemerge.start(); } frame 40 { stop(); } frame 41 { _root.poisonsubmerge.start(); } instance pTank of movieClip 1551 { onClipEvent (load) { this.gotoAndPlay(41); } } frame 101 { _root.enemy.attackLength = 25; _root.enemy.attackDirection = 0; _root.enemy.attacking = false; } } movieClip 1553 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance leg2 of movieClip 1446 { onClipEvent (load) { this.gotoAndPlay(6); } } instance pGun of movieClip 1552 { onClipEvent (load) { _root.emergency.gotoAndStop(1); } } frame 4 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.5_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_5_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.5_1 = true; _global.5_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_5_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.5_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_5_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.5_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_5 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; if (_global.difficulty == 1) { xMax = -3; } else { if (_global.difficulty == 2) { xMax = -4; } else { xMax = -5; } } yVel = 0; maxFall = 24; pos1 = 160; pos2 = 760; yPos = 455; gravity = _root.gravity; startTimer = 2; phase = 0; shotTimer = 30; shotTimer2 = 75; attackTimer = 10; gasTimer = 0; attackNumber = 1; attackDirection = 0; attackLength = 30; introTimer = 25; injuredSet = 8; injuredTimer = injuredSet; xScale = _root.enemySprite._xscale; charDirection = 'left'; running = false; attacking = false; setPosition = false; hit = false; injured = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { _root.enemySprite.leg1.gotoAndStop(1); _root.enemySprite.leg2.gotoAndStop(6); _root.enemySprite.leg3.gotoAndStop(1); _root.enemySprite.tank.tank1.gotoAndStop(1); _root.enemySprite.spring.spring1.gotoAndStop(1); if (introTimer > 0) { --introTimer; } else { phase = 1; running = true; _root.poisonslosh1.start(); _root.enemySprite.leg1.play(); _root.enemySprite.leg2.play(); _root.enemySprite.leg3.play(); _root.enemySprite.tank.tank1.play(); _root.enemySprite.spring.spring1.play(); } } else { if (phase == 1) { if (lDistance == 1 or rDistance == 1) { if (lDistance == 1) { _root.enemySprite._xscale = -_root.enemySprite._xscale; charDirection = 'right'; } if (rDistance == 1) { _root.enemySprite._xscale = -_root.enemySprite._xscale; charDirection = 'left'; } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (shotTimer > 0) { --shotTimer; } else { _root.enemySprite.leg1.gotoAndStop(1); _root.enemySprite.leg2.gotoAndStop(6); _root.enemySprite.leg3.gotoAndStop(1); _root.enemySprite.tank.gotoAndStop(2); _root.enemySprite.spring.gotoAndStop(2); running = false; attacking = true; } if (attacking) { if (attackTimer > 0) { --attackTimer; } else { _root.enemySprite.spring.spring2.play(); _root.enemySprite.tank.tank2.play(); } } if (gasTimer > 0) { --gasTimer; } if (injured) { if (gasTimer == 0 && _global.difficulty > 1) { _root.parentGas.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; gasTimer = 20; } } if (death) { if (_global.difficulty > 1) { phase = 2; life = _root.totalLife; _root.healthRefill(life); death = false; _root.poisonalarm.stop(); _root.poisonemerge.stop(); _root.poisongaslarge.stop(); _root.poisongassmall.stop(); _root.poisonslosh1.stop(); _root.poisonslosh2.stop(); _root.poisonspill.stop(); _root.poisonspray.stop(); _root.poisonsubmerge.stop(); } else { _root.enemySprite.gotoAndStop('poisondeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { if (lDistance == 1 or rDistance == 1) { if (lDistance == 1) { _root.enemySprite._xscale = -_root.enemySprite._xscale; charDirection = 'right'; } if (rDistance == 1) { _root.enemySprite._xscale = -_root.enemySprite._xscale; charDirection = 'left'; } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (shotTimer2 > 0) { --shotTimer2; } else { if (_global.difficulty == 3) { _root.parentGas2.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; shotTimer2 = Math.ceil(Math.random() * 50) + 75; } } if (shotTimer > 0) { --shotTimer; } else { _root.enemySprite.leg1.gotoAndStop(1); _root.enemySprite.leg2.gotoAndStop(6); _root.enemySprite.leg3.gotoAndStop(1); _root.enemySprite.tank.gotoAndStop(2); _root.enemySprite.spring.gotoAndStop(2); running = false; attacking = true; } if (attacking) { if (attackTimer > 0) { --attackTimer; } else { _root.enemySprite.spring.spring2.play(); _root.enemySprite.tank.tank2.play(); } } if (gasTimer > 0) { --gasTimer; } if (injured) { if (gasTimer == 0 && _global.difficulty > 1) { _root.parentGas.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; gasTimer = 20; } } if (death) { if (_global.difficulty > 2) { phase = 3; _root.clearFunction(); life = _root.totalLife; _root.healthRefill(life); shotTimer = 20; running = false; attacking = false; setPosition = true; death = false; _root.poisonalarm.stop(); _root.poisonemerge.stop(); _root.poisongaslarge.stop(); _root.poisongassmall.stop(); _root.poisonslosh1.stop(); _root.poisonslosh2.stop(); _root.poisonspill.stop(); _root.poisonspray.stop(); _root.poisonsubmerge.stop(); } else { _root.enemySprite.gotoAndStop('poisondeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { if (setPosition) { _root.enemySprite.gotoAndStop(2); } else { if (shotTimer > 0) { --shotTimer; if (shotTimer == 1) { _root.parentBurst.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].bubble = 1; ++_root.i; } if (shotTimer == 41) { _root.parentBurst.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].bubble = 2; ++_root.i; } if (shotTimer == 40) { _root.parentBubbling2._y = 430; _root.parentBubbling2._x = Math.random() * 770 + 80; } } else { _root.parentBubbling._y = 430; _root.parentBubbling._x = Math.random() * 770 + 80; shotTimer = 80; } if (attackDirection == 0) { attackDirection = Math.ceil(Math.random() * 2); _root.enemySprite.pGun.play(); } else { if (attackDirection == 1) { charDirection = 'left'; _root.enemySprite._xscale = xScale; _root.enemySprite._x = pos2; } else { charDirection = 'right'; _root.enemySprite._xscale = -xScale; _root.enemySprite._x = pos1; } } if (attacking) { if (attackLength > 0 && !_root.player.death) { --attackLength; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); if (charDirection == 'right') { _root.pp1._x = _root.enemySprite._x + 283; _root.pp1._y = _root.enemySprite._y - 278; while (!hit) { if (!_root.ground.hitTest(_root.pp1._x + 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x + 10, _root.pp1._y, true)) { _root.pp1._x += 10; } else { _root.pp1._x += 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_root.enemySprite._x + 283, _root.enemySprite._y - 278); } else { _root.pp1._x = _root.enemySprite._x - 283; _root.pp1._y = _root.enemySprite._y - 278; while (!hit) { if (!_root.ground.hitTest(_root.pp1._x - 10, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x - 10, _root.pp1._y, true)) { _root.pp1._x -= 10; } else { _root.pp1._x -= 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_root.enemySprite._x - 283, _root.enemySprite._y - 278); } _root.laser1.lineStyle(10, 45841, 80); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); } else { _root.pp1._y = -500; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.enemySprite.pGun.play(); } } } if (death) { _root.enemySprite.gotoAndStop('poisondeath'); _root.clearFunction(); _root.poisonalarm.stop(); _root.poisonemerge.stop(); _root.poisongaslarge.stop(); _root.poisongassmall.stop(); _root.poisonslosh1.stop(); _root.poisonslosh2.stop(); _root.poisonspill.stop(); _root.poisonspray.stop(); _root.poisonsubmerge.stop(); phase = 4; } } else { if (phase == 4) { xVel = 0; xMax = 0; yVel = 0; running = false; attacking = false; _root.poisonalarm.stop(); _root.poisonemerge.stop(); _root.poisongaslarge.stop(); _root.poisongassmall.stop(); _root.poisonslosh1.stop(); _root.poisonslosh2.stop(); _root.poisonspill.stop(); _root.poisonspray.stop(); _root.poisonsubmerge.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; if (phase != 3) { _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } } movieClip 1556 { } movieClip 1557 { frame 1 { stop(); } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.2; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.1; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c -= 0.15; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.15; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c -= 0.2; } } } instance parentGas of movieClip 1557 { onClipEvent (load) { if (_name == 'parentGas') { } else { _root.poisongassmall.start(); this.gotoAndStop(2); if (_root.enemy.charDirection == 'left') { _x = _root.enemy._x + 45; } else { _xscale = -_xscale; _x = _root.enemy._x - 50; } damage = 10; _y = _root.enemy._y - 25; } } onClipEvent (enterFrame) { if (_name != 'parentGas') { _alpha = _alpha - 0.1; if (_alpha <= 12) { this.removeMovieClip(); } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1564 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 7; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 6 { stop(); } } movieClip 1566 { frame 1 { stop(); } frame 2 { _root.incinfiredrip.start(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 1557 { onClipEvent (load) { this.gotoAndStop(2); damage = 8; } onClipEvent (enterFrame) { _alpha = _alpha - 0.25; if (_alpha <= 12) { this.removeMovieClip(); } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } instance parentGoo of movieClip 1566 { onClipEvent (load) { if (_name == 'parentGoo') { } else { _x = _root.enemy._x - 5; _y = _root.enemy._y - 350; yVel = -22; rotSpeed = Math.random() * 20 - 10; } } onClipEvent (enterFrame) { if (_name == 'parentGoo') { } else { _y = _y + yVel; _x = _x + xVel; _rotation = _rotation + rotSpeed; if (yVel < 24) { yVel += _root.gravity; } if (xVel > 0) { xVel -= 0.25; } else { if (xVel < 0) { xVel += 0.25; } } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { yVel = 0; xVel = 0; rotSpeed = 0; this.gotoAndStop(2); } if (_currentframe == 2) { _xscale = _xscale - 1; _yscale = _yscale - 1; if (_xscale < 20) { this.removeMovieClip(); } } } } } movieClip 1582 { frame 15 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _parent.play(); _root.hurtFunction(damage); } } } frame 16 { _root.bubblepop.start(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; _parent.removeMovieClip(); } } } instance parentBubble of movieClip 1582 { onClipEvent (load) { if (_name == 'parentBubble') { } else { _root.bubbleblow.start(); _x = _root.enemy._x; _y = _root.enemy._y - 340; yVel = 5; xVel = Math.random() * 14 - 7; rotSpeed = Math.random() * 10 - 5; timer = 450; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 54 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 635 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < 44 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > 873 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } movieClip 1584 { } instance parentBubbling of movieClip 1584 { onClipEvent (load) { if (_name == 'parentBubbling') { _alpha = 0; } else { _alpha = 100; _y = _root.parentBubbling._y + (Math.random() * 8 - 4); _x = _root.parentBubbling._x + (Math.random() * 60 - 30); xVel = Math.random() * 2 - 1; yVel = Math.random() * 0.5 - 0.25; } } onClipEvent (enterFrame) { if (_name == 'parentBubbling') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } else { if (_xscale > 0) { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 5; _yscale = _yscale - 5; } else { this.removeMovieClip(); } } } } instance parentBurst of movieClip 1566 { onClipEvent (load) { if (_name == 'parentBurst') { } else { _root.poisonbloop.start(); if (bubble == 1) { _x = _root.parentBubbling._x; _y = _root.parentBubbling._y; } else { _x = _root.parentBubbling2._x; _y = _root.parentBubbling2._y; } yVel = -32; rotSpeed = 10; } } onClipEvent (enterFrame) { if (_name == 'parentBurst') { } else { _y = _y + yVel; _rotation = _rotation + rotSpeed; if (yVel < 24) { yVel += _root.gravity; } if (_currentframe == 2) { _xscale = _xscale - 2.5; _yscale = _yscale - 2.5; if (_xscale < 20) { this.removeMovieClip(); } } if (_y > 445) { this.gotoAndStop(2); yVel = 0; rotSpeed = 0; } } } } instance parentB of movieClip 1584 { onClipEvent (load) { if (_name == 'parentB') { _alpha = 0; bubble = false; } else { _alpha = 50; _y = Math.random() * 250 + 400; _x = Math.random() * 860 + 35; _xscale = 75; _yscale = 75; yVel = -0.5; if (!_root.poisonFloor.hitTest(_x, _y, true)) { this.removeMovieClip(); } } } onClipEvent (enterFrame) { if (_name == 'parentB') { if (bubble) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } else { _y = _y + yVel; if (_xscale > 0) { _xscale = _xscale - 2; _yscale = _yscale - 2; } else { this.removeMovieClip(); } } } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; } } movieClip 1586 { } instance p1 of movieClip 1586 { onClipEvent (load) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; damage = 10; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p1._x; _y = _root.p1._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.pGun.pTank.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.pGun.pTank.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.pGun.pTank.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.pGun.pTank.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentBubbling2 of movieClip 1584 { onClipEvent (load) { if (_name == 'parentBubbling2') { _alpha = 0; } else { _alpha = 100; _y = _root.parentBubbling2._y + (Math.random() * 8 - 4); _x = _root.parentBubbling2._x + (Math.random() * 60 - 30); xVel = Math.random() * 2 - 1; yVel = Math.random() * 0.5 - 0.25; } } onClipEvent (enterFrame) { if (_name == 'parentBubbling2') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } else { if (_xscale > 0) { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 5; _yscale = _yscale - 5; } else { this.removeMovieClip(); } } } } movieClip 1588 { frame 1 { stop(); } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.2; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.1; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c -= 0.15; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c += 0.15; } } instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c -= 0.2; } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 12; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } instance parentGas2 of movieClip 1588 { onClipEvent (load) { if (_name == 'parentGas2') { } else { _root.poisongaslarge.start(); this.gotoAndStop(2); if (_root.enemy.charDirection == 'left') { _x = _root.enemy._x + 70; } else { _x = _root.enemy._x - 75; } _y = _root.enemy._y - 25; } } onClipEvent (enterFrame) { if (_name != 'parentGas2') { _rotation = _rotation + 2.5; if (_xscale < 200) { _xscale = _xscale + 5; _yscale = _yscale + 5; } else { _y = _y - 5; } if (_y < 175) { _alpha = _alpha - 5; if (_alpha <= 0) { this.removeMovieClip(); } } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } movieClip 1590 { } movieClip 1591 { frame 1 { stop(); } frame 25 { _root.parentB.bubble = true; } frame 190 { stop(); _root.enemy.setPosition = false; _root.enemySprite.gotoAndStop(3); } } instance poisonFloor of movieClip 1591 { onClipEvent (load) { _alpha = 0; damage = 15; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } movieClip 1594 { } movieClip 1595 { } instance of movieClip 1595 { onClipEvent (load) { this.gotoAndPlay(46); } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } movieClip 1599 { frame 2 { _root.poisonalarm.start(); } } instance emergency of movieClip 1599 { onClipEvent (load) { this.gotoAndStop(1); } } frame 177 { clearFunction(); } frame 192 { gotoAndStop('stageselection'); } frame 193 { stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 60; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 70; totalLife = 70; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 65; totalLife = 65; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 60; totalLife = 60; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1602 { } movieClip 1604 { } instance platform of movieClip 1604 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.gd._x, _root.gd._y, true)) { if (_root.player.gDistance < 1) { _root.player._y -= 5; } } else { if (hitTest(_root.g2d._x, _root.g2d._y, true)) { if (_root.player.g2Distance < 1) { _root.player._y -= 5; } } } } } movieClip 1606 { } instance of movieClip 1606 { onClipEvent (enterFrame) { _x = _root.ground._x; } } movieClip 1609 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 5; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1610 { frame 1 { stop(); } instance p7 of movieClip 1586 { onClipEvent (load) { if (_name == 'p7') { damage = 2; _visible = false; timer = 1; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; xVel = Math.random() * 6 - 3; yVel = -(Math.random() * 3); } } } onClipEvent (enterFrame) { if (_name == 'p7') { if (timer > 0) { --timer; } else { this.duplicateMovieClip('bullet' + _root.i, _parent.getNextHighestDepth()); ++_root.i; timer = 1; } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 3; _yscale = _yscale - 3; if (_xscale < 0) { this.removeMovieClip(); } } } } } } movieClip 1611 { frame 1 { stop(); } instance of movieClip 1610 { onClipEvent (load) { timer = 650; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 500; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 350; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 650; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 500; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 350; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 650; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 500; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 350; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 500; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 650; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } instance of movieClip 1610 { onClipEvent (load) { timer = 350; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { timer = 450; this.play(); } } } } instance spout of movieClip 1611 { onClipEvent (load) { if (_global.difficulty == 3) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } movieClip 1615 { } movieClip 1616 { frame 1 { stop(); } } instance person of movieClip 1616 { onClipEvent (load) { set1 = _root.ground._x - 125; set2 = _root.ground._x + 125; _x = set1; _alpha = -900; } onClipEvent (enterFrame) { set1 = _root.ground._x - 125; set2 = _root.ground._x + 125; if (_global.difficulty > 1) { if (_currentframe == 2) { _alpha = -500; if (_x == set1) { _x = set2; } else { _x = set1; } this.gotoAndStop(1); } if (_alpha < 100) { _alpha = _alpha + 5; } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (_x > (Stage.width / 4) * 3 && _root.ground._x > 290) { if (xVel < 0) { _root.xLaser += xVel; _x = _x + xVel; } else { r = 1; while (r <= 20) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; _root['bubble' + r]._x -= xVel; ++r; } _root.person._x -= xVel; _root.lTarget._x -= xVel; _root.enemySprite._x -= xVel; _root.enemy._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; _root.spout._x -= xVel; } } else { if (_x < Stage.width / 4 && _root.ground._x < 650) { if (xVel < 0) { r = 1; while (r <= 20) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; _root['bubble' + r]._x -= xVel; ++r; } _root.person._x -= xVel; _root.lTarget._x -= xVel; _root.enemy._x -= xVel; _root.enemySprite._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; _root.spout._x -= xVel; } else { _root.xLaser += xVel; _x = _x + xVel; } } else { _root.xLaser += xVel; _x = _x + xVel; } } if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; xMax = 0; yVel = 0; maxFall = 24; gravity = _root.gravity; startTimer = 2; c = 0; ySet = 550; shotTimer = 100; attackLength = 150; phase = 0; circSize = 0; introTimer = 5; injuredSet = 8; injuredTimer = injuredSet; charDirection = 'left'; running = false; attacking = false; setPosition = false; hit = false; injured = false; death = false; flicker = false; deathPause = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { running = true; xVel = xMax; phase = 1; _root.enemySprite.slLeg.gotoAndStop(1); _root.enemySprite.blLeg.gotoAndStop(1); _root.enemySprite.srLeg.gotoAndStop(2); _root.enemySprite.brLeg.gotoAndStop(2); _root.enemySprite.brLeg.iLeg.gotoAndPlay(20); _root.enemySprite.slLeg.iLeg.gotoAndPlay(20); _root.enemySprite.brLeg.iLeg.bArm.gotoAndPlay(20); _root.enemySprite.slLeg.iLeg.bArm.gotoAndPlay(20); } } else { if (phase == 1) { if (shotTimer > 0) { --shotTimer; } else { _root.parentBubble5.duplicateMovieClip('bubble' + _root.g, _root.getNextHighestDepth()); ++_root.g; _root.parentBubble6.duplicateMovieClip('bubble' + _root.g, _root.getNextHighestDepth()); ++_root.g; if (_global.difficulty == 1) { shotTimer = 250; } else { if (_global.difficulty == 2) { shotTimer = 225; } else { shotTimer = 200; } } if (_root.g > 20) { _root.g = 1; } } if (lDistance <= 85 or rDistance <= 85) { if (lDistance <= 85) { _root.enemySprite.srLeg.gotoAndStop(1); _root.enemySprite.brLeg.gotoAndStop(1); _root.enemySprite.slLeg.gotoAndStop(2); _root.enemySprite.blLeg.gotoAndStop(2); _root.enemySprite.brLeg.iLeg.gotoAndPlay(10); _root.enemySprite.slLeg.iLeg.gotoAndPlay(10); _root.enemySprite.blLeg.iLeg.gotoAndPlay(21); _root.enemySprite.srLeg.iLeg.gotoAndPlay(21); _root.enemySprite.brLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.slLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.blLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.srLeg.iLeg.bArm.gotoAndPlay(21); charDirection = 'right'; } if (rDistance <= 85) { _root.enemySprite.slLeg.gotoAndStop(1); _root.enemySprite.blLeg.gotoAndStop(1); _root.enemySprite.srLeg.gotoAndStop(2); _root.enemySprite.brLeg.gotoAndStop(2); _root.enemySprite.brLeg.iLeg.gotoAndPlay(21); _root.enemySprite.slLeg.iLeg.gotoAndPlay(21); _root.enemySprite.blLeg.iLeg.gotoAndPlay(10); _root.enemySprite.srLeg.iLeg.gotoAndPlay(10); _root.enemySprite.brLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.slLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.blLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.srLeg.iLeg.bArm.gotoAndPlay(10); charDirection = 'left'; } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (attacking && !_root.player.death) { _root.p1._x = _root.enemySprite._x; _root.p1._y = _root.enemySprite._y - 562; _root.p2._x = _root.enemySprite._x - 100; _root.p2._y = _root.enemySprite._y - 515; _root.p3._x = _root.enemySprite._x + 100; _root.p3._y = _root.enemySprite._y - 517; _root.p4._x = _root.pp1._x; _root.p4._y = _root.pp1._y; _root.p5._x = _root.pp2._x; _root.p5._y = _root.pp2._y; _root.p6._x = _root.pp3._x; _root.p6._y = _root.pp3._y; _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _root.enemySprite._x; _root.pp1._y = _root.enemySprite._y - 562; while (!hit) { if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y - 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y - 10, true)) { _root.pp1._y -= 10; } else { _root.pp1._y -= 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_root.enemySprite._x, _root.enemySprite._y - 562); _root.laser1.lineStyle(16, 14877186, 90); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_root.enemySprite._x, _root.enemySprite._y - 562); _root.laser1.lineStyle(10, 12845056, 90); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.removeMovieClip(); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); radians = 3.93; _root.pp2._x = _root.enemySprite._x - 100; _root.pp2._y = _root.enemySprite._y - 515; while (!hit) { _root.pp2._y += Math.sin(radians) * circSize; _root.pp2._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { circSize += 2; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser2.moveTo(_root.enemySprite._x - 100, _root.enemySprite._y - 515); _root.laser2.lineStyle(16, 14877186, 90); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_root.enemySprite._x - 100, _root.enemySprite._y - 515); _root.laser2.lineStyle(10, 12845056, 90); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser3.removeMovieClip(); _root.createEmptyMovieClip('laser3', _root.getNextHighestDepth()); radians2 = 5.5; _root.pp3._x = _root.enemySprite._x + 100; _root.pp3._y = _root.enemySprite._y - 517; while (!hit) { _root.pp3._y += Math.sin(radians2) * circSize; _root.pp3._x += Math.cos(radians2) * circSize; if (!_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { circSize += 2; } if (_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser3.moveTo(_root.enemySprite._x + 100, _root.enemySprite._y - 517); _root.laser3.lineStyle(16, 14877186, 90); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); _root.laser3.moveTo(_root.enemySprite._x + 100, _root.enemySprite._y - 517); _root.laser3.lineStyle(10, 12845056, 90); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); } else { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1._y = -500; _root.p2._y = -500; _root.p3._y = -500; _root.p4._y = -500; _root.p5._y = -500; _root.p6._y = -500; _root.bloodspray.stop(); } if (death) { if (_global.difficulty > 1) { if (!attacking && !deathPause) { _root.enemySprite.gotoAndStop(2); phase = 2; _root.enemySprite.enemyBody.mouth.gotoAndStop(3); if (_x < _root.ground._x && charDirection != 'right') { _root.enemySprite.srLeg.gotoAndStop(1); _root.enemySprite.brLeg.gotoAndStop(1); _root.enemySprite.slLeg.gotoAndStop(2); _root.enemySprite.blLeg.gotoAndStop(2); _root.enemySprite.brLeg.iLeg.gotoAndPlay(10); _root.enemySprite.slLeg.iLeg.gotoAndPlay(10); _root.enemySprite.blLeg.iLeg.gotoAndPlay(21); _root.enemySprite.srLeg.iLeg.gotoAndPlay(21); _root.enemySprite.brLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.slLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.blLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.srLeg.iLeg.bArm.gotoAndPlay(21); charDirection = 'right'; } else { if (_x >= _root.ground._x && charDirection != 'left') { _root.enemySprite.slLeg.gotoAndStop(1); _root.enemySprite.blLeg.gotoAndStop(1); _root.enemySprite.srLeg.gotoAndStop(2); _root.enemySprite.brLeg.gotoAndStop(2); _root.enemySprite.brLeg.iLeg.gotoAndPlay(21); _root.enemySprite.slLeg.iLeg.gotoAndPlay(21); _root.enemySprite.blLeg.iLeg.gotoAndPlay(10); _root.enemySprite.srLeg.iLeg.gotoAndPlay(10); _root.enemySprite.brLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.slLeg.iLeg.bArm.gotoAndPlay(21); _root.enemySprite.blLeg.iLeg.bArm.gotoAndPlay(10); _root.enemySprite.srLeg.iLeg.bArm.gotoAndPlay(10); charDirection = 'left'; } } death = false; _root.bloodblend.stop(); _root.bloodcapture.stop(); _root.blooddrill.stop(); _root.bloodspray.stop(); _root.bloodsuction.stop(); _root.bloodtick.stop(); _root.bloodwallclimb.stop(); _root.bloodslide.stop(); } } else { _root.enemySprite.gotoAndStop('blooddeath'); _root.clearFunction(); phase = 4; } } _root.enemySprite._x = _x; _root.enemySprite._y = _y; } else { if (phase == 2) { if (!setPosition) { if (_root.person._alpha > 0) { _root.person._alpha -= 15; } else { _root.person._y = -500; } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } if (_root.ground._x - 3 < _x and _x < _root.ground._x + 3) { xVel = 0; running = false; life = _root.totalLife; _root.healthRefill(life); _root.enemySprite.gotoAndStop(3); setPosition = true; } } else { if (attacking) { if (shotTimer > 0) { --shotTimer; } else { _root.parentBubble1.duplicateMovieClip('bubble' + _root.g, _root.getNextHighestDepth()); ++_root.g; _root.parentBubble2.duplicateMovieClip('bubble' + _root.g, _root.getNextHighestDepth()); ++_root.g; if (_global.difficulty == 2) { shotTimer = 110; } else { shotTimer = 95; } if (_root.g > 20) { _root.g = 1; } } } if (death) { if (_global.difficulty > 2) { phase = 3; _root.enemySprite.innerEnemy.play(); life = _root.totalLife; _root.healthRefill(life); xMax = -7; shotTimer = 150; attacking = false; death = false; _root.bloodblend.stop(); _root.bloodcapture.stop(); _root.blooddrill.stop(); _root.bloodspray.stop(); _root.bloodsuction.stop(); _root.bloodtick.stop(); _root.bloodwallclimb.stop(); _root.bloodslide.stop(); } else { _root.enemySprite.gotoAndStop('blooddeath'); _root.clearFunction(); phase = 4; } } } _root.enemySprite._x = _x; _root.enemySprite._y = _y; } else { if (phase == 3) { if (attacking) { _root.enemySprite._y = ySet + Math.sin(c) * 75; c += 0.05; running = true; --attackLength; if (attackLength <= 50 && attackLength > 0 && !_root.player.death) { _root.p1._x = _root.enemySprite._x; _root.p1._y = _root.enemySprite._y - 100; _root.p2._x = _root.enemySprite._x - 100; _root.p2._y = _root.enemySprite._y - 150; _root.p3._x = _root.enemySprite._x + 100; _root.p3._y = _root.enemySprite._y - 150; _root.p4._x = _root.pp1._x; _root.p4._y = _root.pp1._y; _root.p5._x = _root.pp2._x; _root.p5._y = _root.pp2._y; _root.p6._x = _root.pp3._x; _root.p6._y = _root.pp3._y; _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _root.enemySprite._x; _root.pp1._y = _root.enemySprite._y - 100; while (!hit) { if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y + 10, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y + 10, true)) { _root.pp1._y += 10; } else { _root.pp1._y += 0.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } hit = false; _root.laser1.moveTo(_root.enemySprite._x, _root.enemySprite._y - 100); _root.laser1.lineStyle(16, 14877186, 90); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser1.moveTo(_root.enemySprite._x, _root.enemySprite._y - 100); _root.laser1.lineStyle(10, 12845056, 90); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.laser2.removeMovieClip(); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); radians = 2.36; _root.pp2._x = _root.enemySprite._x - 100; _root.pp2._y = _root.enemySprite._y - 145; while (!hit) { _root.pp2._y += Math.sin(radians) * circSize; _root.pp2._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { circSize += 1; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser2.moveTo(_root.enemySprite._x - 100, _root.enemySprite._y - 145); _root.laser2.lineStyle(16, 14877186, 90); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser2.moveTo(_root.enemySprite._x - 100, _root.enemySprite._y - 145); _root.laser2.lineStyle(10, 12845056, 90); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.laser3.removeMovieClip(); _root.createEmptyMovieClip('laser3', _root.getNextHighestDepth()); radians2 = 0.78; _root.pp3._x = _root.enemySprite._x + 100; _root.pp3._y = _root.enemySprite._y - 145; while (!hit) { _root.pp3._y += Math.sin(radians2) * circSize; _root.pp3._x += Math.cos(radians2) * circSize; if (!_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { circSize += 1; } if (_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { hit = true; } } hit = false; circSize = 0; _root.laser3.moveTo(_root.enemySprite._x + 100, _root.enemySprite._y - 145); _root.laser3.lineStyle(16, 14877186, 90); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); _root.laser3.moveTo(_root.enemySprite._x + 100, _root.enemySprite._y - 145); _root.laser3.lineStyle(10, 12845056, 90); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); } else { if (attackLength <= 0) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p1._y = -500; _root.p2._y = -500; _root.p3._y = -500; _root.p4._y = -500; _root.p5._y = -500; _root.p6._y = -500; _root.pp1._y = -500; _root.pp2._y = -500; _root.pp3._y = -500; attackLength = 100; } } if (lDistance <= 50 or rDistance <= 50) { if (lDistance <= 50) { charDirection = 'right'; } if (rDistance <= 50) { charDirection = 'left'; } } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = -xMax; } } } _root.enemySprite._x = _x; if (death) { _root.enemySprite.gotoAndStop('blooddeath'); _root.clearFunction(); _root.bloodblend.stop(); _root.bloodcapture.stop(); _root.blooddrill.stop(); _root.bloodspray.stop(); _root.bloodsuction.stop(); _root.bloodtick.stop(); _root.bloodwallclimb.stop(); _root.bloodslide.stop(); phase = 4; } } else { if (phase == 4) { _root.laser1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.laser3.removeMovieClip(); xVel = 0; xMax = 0; yVel = 0; running = false; attacking = false; _root.bloodblend.stop(); _root.bloodcapture.stop(); _root.blooddrill.stop(); _root.bloodspray.stop(); _root.bloodsuction.stop(); _root.bloodtick.stop(); _root.bloodwallclimb.stop(); _root.bloodslide.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; } } } movieClip 1619 { } movieClip 1623 { } movieClip 1625 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1626 { frame 1 { _root.enemy.xMax = 0; } frame 31 { _root.bloodtick.start(); } instance of movieClip 1625 { onClipEvent (enterFrame) { _root.enemy.xMax = -7; } } } movieClip 1627 { } movieClip 1628 { frame 12 { _root.bloodtick.start(); } instance of movieClip 1625 { onClipEvent (enterFrame) { _root.enemy.xMax = -7; } } frame 23 { _root.enemy.xMax = 0; } } movieClip 1629 { frame 1 { stop(); } } movieClip 1634 { } movieClip 1637 { } movieClip 1648 { } movieClip 1649 { frame 15 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.person._x, _root.person._y, true) && _root.person._alpha >= 100) { _parent.play(); } } } frame 16 { _root.person.gotoAndStop(2); _root.enemy.deathPause = true; _root.bloodcapture.start(); } frame 40 { if (_root.enemySprite.enemyBody.chamber.blood._currentframe == 1) { _root.enemySprite.enemyBody.chamber.blood.play(); } } } movieClip 1650 { frame 5 { stop(); } } movieClip 1654 { } movieClip 1664 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 25; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1665 { frame 40 { _root.blooddrill.start(); } } movieClip 1666 { frame 5 { stop(); } instance of movieClip 1665 { onClipEvent (load) { if (_global.difficulty == 2) { this.gotoAndStop(1); } } } } movieClip 1667 { frame 2 { _root.bloodcapture.start(); } frame 15 { stop(); } } movieClip 1670 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 2 { stop(); } } movieClip 1671 { frame 1 { stop(); } } movieClip 1675 { } movieClip 1676 { frame 1 { stop(); } frame 2 { _root.bloodblend.start(); } frame 30 { _root.enemy.attacking = true; } frame 31 { _root.bloodspray.start(); } frame 195 { _root.enemy.attacking = false; _root.enemy.deathPause = false; _root.bloodspray.stop(); } } movieClip 1678 { } movieClip 1679 { } movieClip 1688 { } movieClip 1696 { } movieClip 1697 { instance of movieClip 1688 { onClipEvent (load) { this.enemyBody.mouth.gotoAndStop(4); } } frame 35 { _root.bloodwallclimb.start(); } instance of movieClip 1688 { onClipEvent (load) { this.enemyBody.mouth.gotoAndStop(2); } } frame 55 { stop(); _root.enemy.attacking = true; _root.enemySprite.nextFrame(); } frame 56 { _root.enemySprite.nextFrame(); } frame 120 { stop(); _root.enemy.attacking = true; _root.enemySprite.gotoAndStop(6); } } movieClip 1706 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } } instance enemyBody of movieClip 1679 { onClipEvent (load) { this.mouth.gotoAndStop(5); this.chamber.blood.gotoAndStop(50); } } } movieClip 1707 { frame 100 { _root.bloodspray.stop(); } } movieClip 1708 { frame 12 { _root.bloodslide.start(); } frame 51 { stop(); _root.enemySprite.nextFrame(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; } } instance of movieClip 1679 { onClipEvent (load) { this.mouth.gotoAndStop(5); this.chamber.blood.gotoAndStop(50); } } instance of movieClip 1707 { onClipEvent (enterFrame) { if (_currentframe == 2) { _root.bloodsuction.start(); } if (_currentframe == 50) { _root.bloodspray.start(); } } } } movieClip 1709 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance brLeg of movieClip 1629 { onClipEvent (load) { this.gotoAndStop(2); } } instance srLeg of movieClip 1629 { onClipEvent (load) { this.gotoAndStop(2); } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 8 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.11_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_11_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.11_1 = true; _global.11_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_11_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.11_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_11_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.11_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_11 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance pp2 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 1; } } instance pp3 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 1; } } instance p1 of movieClip 1586 { onClipEvent (load) { if (_name == 'p1') { damage = 7; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p1._x; _y = _root.p1._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p1') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance p2 of movieClip 1586 { onClipEvent (load) { if (_name == 'p2') { damage = 7; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p2._x; _y = _root.p2._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p2') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance p3 of movieClip 1586 { onClipEvent (load) { if (_name == 'p3') { damage = 7; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p3._x; _y = _root.p3._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p3') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance p4 of movieClip 1586 { onClipEvent (load) { if (_name == 'p4') { damage = 8; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p4._x; _y = _root.p4._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p4') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance p5 of movieClip 1586 { onClipEvent (load) { if (_name == 'p5') { damage = 8; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p5._x; _y = _root.p5._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p5') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } instance p6 of movieClip 1586 { onClipEvent (load) { if (_name == 'p6') { damage = 8; } else { if (_name != 'parentP') { _xscale = 50; _yscale = 50; _x = _root.p6._x; _y = _root.p6._y; xVel = Math.random() * 6 - 3; yVel = Math.random() * 6 - 3; } } } onClipEvent (enterFrame) { if (_name == 'p6') { if (_y > 0) { this.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } else { if (_name != 'parentP') { _x = _x + xVel; _y = _y + yVel; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 0) { this.removeMovieClip(); } } } } } movieClip 1725 { frame 15 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 6; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _parent.play(); _root.hurtFunction(damage); } } } frame 16 { _root.bubblepop.start(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; _parent.removeMovieClip(); } } } instance parentBubble1 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble1') { _x = _root.enemySprite._x - 110; _y = _root.enemySprite._y - 530; yVel = 5; timer = 400; _root.bubbleblow.start(); xVel = Math.random() * 7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble1') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 0 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 635 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance parentBubble2 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble2') { _x = _root.enemySprite._x + 110; _y = _root.enemySprite._y - 530; yVel = 5; timer = 400; xVel = Math.random() * -7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble2') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 0 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 635 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance parentBubble3 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble3') { _x = _root.enemySprite._x - 110; _y = _root.enemySprite._y - 250; yVel = 5; timer = 300; _root.bubbleblow.start(); xVel = Math.random() * 7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble3') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 0 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 635 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance parentBubble4 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble4') { _x = _root.enemySprite._x + 110; _y = _root.enemySprite._y - 250; yVel = 5; timer = 300; xVel = Math.random() * 7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble4') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 0 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 635 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.bInner.bDrop.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.bInner.bDrop.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.bInner.bDrop.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite.bInner.bDrop.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > 290) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 650) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentBubble5 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble5') { _x = _root.enemySprite._x - 100; _y = _root.enemySprite._y - 400; yVel = 5; timer = 300; _root.bubbleblow.start(); xVel = Math.random() * 7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble5') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 160 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 610 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance parentBubble6 of movieClip 1725 { onClipEvent (load) { if (_name != 'parentBubble6') { _x = _root.enemySprite._x + 100; _y = _root.enemySprite._y - 400; yVel = 5; timer = 300; xVel = Math.random() * 7; rotSpeed = Math.random() * 10 - 5; yDir = 'up'; if (xVel < 0) { xDir = 'right'; } else { xDir = 'left'; } } } onClipEvent (enterFrame) { if (_name == 'parentBubble6') { } else { --timer; if (timer <= 0) { this.play(); } if (_currentframe == 15) { _y = _y - yVel; _x = _x - xVel; _rotation = _rotation + rotSpeed; } if (_y < 160 && yDir == 'up') { yVel = -yVel; yDir = 'down'; } else { if (_y > 610 && yDir == 'down') { yVel = -yVel; yDir = 'up'; } } if (_x < _root.ground._x - 550 && xDir == 'left') { xVel = -xVel; xDir = 'right'; } else { if (_x > _root.ground._x + 550 && xDir == 'right') { xVel = -xVel; xDir = 'left'; } } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 194 { clearFunction(); } frame 209 { gotoAndStop('stageselection'); } frame 210 { stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 30; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 50; totalLife = 50; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 40; totalLife = 40; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 30; totalLife = 30; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 400 { onClipEvent (load) { _visible = false; } } movieClip 1728 { } instance platform of movieClip 1728 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.gd._x, _root.gd._y, true)) { if (_root.player.gDistance < 1) { _root.player._y -= 5; } } else { if (hitTest(_root.g2d._x, _root.g2d._y, true)) { if (_root.player.g2Distance < 1) { _root.player._y -= 5; } } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } movieClip 1733 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 3 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _parent.xVel = 0; _parent.yVel = 0; _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.6_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_6_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.6_1 = true; _global.6_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_6_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.6_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_6_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.6_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_6 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance seg1 of movieClip 1733 { onClipEvent (load) { if (_name != 'seg1') { this.gotoAndStop(2); } else { chargeTimer = 0; if (_global.difficulty == 1) { chaseSet = 125; } else { if (_global.difficulty == 2) { chaseSet = 75; } else { chaseSet = 0; } } chaseTimer = -25; this.gotoAndStop(1); xVel = 5; yVel = -5; xDir = Math.round(Math.random() * 75); yDir = Math.round(Math.random() * 50); timer = 15; } a = yVel; b = xVel; angle = Math.atan(b / a) * 180 / Math.PI; if (xVel > 0 && yVel > 0) { _rotation = -angle + 180; } else { if (xVel > 0 && yVel < 0) { _rotation = -angle; } else { if (xVel < 0 && yVel < 0) { _rotation = -angle; } else { _rotation = -angle + 180; } } } } onClipEvent (enterFrame) { if (timer > 0) { --timer; } if (_root.player.death) { this.removeMovieClip(); } if (timer == 1) { i = 2; while (i <= 9) { this.duplicateMovieClip('seg' + i, _root.getNextHighestDepth()); _root['seg' + i]._xscale = _xscale - i * 3; _root['seg' + i]._yscale = _yscale - i * 3; ++i; } } _x = _x + xVel; _y = _y + yVel; a = yVel; b = xVel; angle = Math.atan(b / a) * 180 / Math.PI; if (xVel > 0 && yVel > 0) { _rotation = -angle + 180; } else { if (xVel > 0 && yVel < 0) { _rotation = -angle; } else { if (xVel < 0 && yVel < 0) { _rotation = -angle; } else { _rotation = -angle + 180; } } } if (_name == 'seg1') { i = 2; while (i <= 9) { _root['seg' + i].xVel = (_root['seg' + (i - 1)]._x - _root['seg' + i]._x) / 7; _root['seg' + i].yVel = (_root['seg' + (i - 1)]._y - _root['seg' + i]._y) / 7; ++i; } if (_root.enemy.phase == 2) { if (_global.difficulty > 2) { ++chaseTimer; } else { chaseTimer = 0; } if (chaseTimer < chaseSet) { xDir = Math.round(Math.random() * 75); yDir = Math.round(Math.random() * 50); if (xVel < xSet) { xVel += 1.5; } if (xVel > xSet) { xVel -= 1.5; } if (yVel < ySet) { yVel += 1.5; } if (yVel > ySet) { yVel -= 1.5; } if (xDir == 25) { if (xSet > 0) { xSet = -(Math.ceil(Math.random() * 8) + 4); } else { xSet = Math.ceil(Math.random() * 8) + 4; } } if (yDir == 25) { if (ySet > 0) { ySet = -(Math.ceil(Math.random() * 8) + 4); } else { ySet = Math.ceil(Math.random() * 8) + 4; } } if (chaseTimer == chaseSet - 1) { _root.wormfollow.start(0, 10000); } } else { if (chaseTimer >= chaseSet && chaseTimer < 150) { xVel = (_root.player._x - _x) / 37; yVel = (_root.player._y - _root.playerSprite._height / 2 - _y) / 37; } else { _root.wormfollow.stop(); chaseTimer = 0; } } } else { if (_root.enemy.phase == 1) { if (_global.difficulty > 1) { ++chaseTimer; } if (chaseTimer < chaseSet) { xDir = Math.round(Math.random() * 75); yDir = Math.round(Math.random() * 50); if (xVel < xSet) { xVel += 1.5; } if (xVel > xSet) { xVel -= 1.5; } if (yVel < ySet) { yVel += 1.5; } if (yVel > ySet) { yVel -= 1.5; } if (xDir == 25) { if (xSet > 0) { xSet = -(Math.ceil(Math.random() * 8) + 4); } else { xSet = Math.ceil(Math.random() * 8) + 4; } } if (yDir == 25) { if (ySet > 0) { ySet = -(Math.ceil(Math.random() * 8) + 4); } else { ySet = Math.ceil(Math.random() * 8) + 4; } } if (chaseTimer == chaseSet - 1) { _root.wormfollow.start(0, 10000); } } else { if (chaseTimer >= chaseSet && chaseTimer < 150) { xVel = (_root.player._x - _x) / 35; yVel = (_root.player._y - _root.playerSprite._height / 2 - _y) / 35; } else { if (_global.difficulty != 3) { _root.wormfollow.stop(); } chaseTimer = 0; } } } else { if (_root.enemy.phase == 3) { ++chargeTimer; if (chargeTimer < 100) { xDir = Math.round(Math.random() * 75); yDir = Math.round(Math.random() * 50); if (xVel < xSet) { xVel += 1.5; } if (xVel > xSet) { xVel -= 1.5; } if (yVel < ySet) { yVel += 1.5; } if (yVel > ySet) { yVel -= 1.5; } if (xDir == 25) { if (xSet > 0) { xSet = -(Math.ceil(Math.random() * 8) + 4); } else { xSet = Math.ceil(Math.random() * 8) + 4; } } if (yDir == 25) { if (ySet > 0) { ySet = -(Math.ceil(Math.random() * 8) + 4); } else { ySet = Math.ceil(Math.random() * 8) + 4; } } } else { if (chargeTimer >= 65 && chargeTimer < 150) { if (xVel != 0) { _root.wormcompress.start(); } xVel = 0; yVel = 0; if (_root.enemy.injured) { chargeTimer = 0; } } else { if (chargeTimer >= 150 && chargeTimer < 160) { if (chargeTimer == 151) { _root.wormdash.start(); } xVel = (_root.player._x - _x) / 2; yVel = (_root.player._y - _root.playerSprite._height / 2 - _y) / 2; if (chargeTimer == 151) { damage = 8; _root.hurtFunction(damage); } } else { chargeTimer = 0; } } } mxSet = _root._xmouse; mySet = _root._ymouse; } } } if (_y < 100) { ySet = Math.ceil(Math.random() * 8) + 4; } if (_y > 600) { ySet = -(Math.ceil(Math.random() * 8) + 4); } if (_x < 100) { xSet = Math.ceil(Math.random() * 8) + 4; } if (_x > 800) { xSet = -(Math.ceil(Math.random() * 8) + 4); } } } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.seg1); dotBlank = new Color(_root.seg1); dotColor2 = new Color(_root.seg2); dotBlank2 = new Color(_root.seg2); dotColor3 = new Color(_root.seg3); dotBlank3 = new Color(_root.seg3); dotColor4 = new Color(_root.seg4); dotBlank4 = new Color(_root.seg4); dotColor5 = new Color(_root.seg5); dotBlank5 = new Color(_root.seg5); dotColor6 = new Color(_root.seg6); dotBlank6 = new Color(_root.seg6); dotColor7 = new Color(_root.seg7); dotBlank7 = new Color(_root.seg7); dotColor8 = new Color(_root.seg8); dotBlank8 = new Color(_root.seg8); dotColor9 = new Color(_root.seg9); dotBlank9 = new Color(_root.seg9); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; shotTimer = 100; phase = 1; injuredSet = 8; injuredTimer = injuredSet; death = false; injured = false; flicker = false; } onClipEvent (enterFrame) { dotColor = new Color(_root.seg1); dotBlank = new Color(_root.seg1); dotColor2 = new Color(_root.seg2); dotBlank2 = new Color(_root.seg2); dotColor3 = new Color(_root.seg3); dotBlank3 = new Color(_root.seg3); dotColor4 = new Color(_root.seg4); dotBlank4 = new Color(_root.seg4); dotColor5 = new Color(_root.seg5); dotBlank5 = new Color(_root.seg5); dotColor6 = new Color(_root.seg6); dotBlank6 = new Color(_root.seg6); dotColor7 = new Color(_root.seg7); dotBlank7 = new Color(_root.seg7); dotColor8 = new Color(_root.seg8); dotBlank8 = new Color(_root.seg8); dotColor9 = new Color(_root.seg9); dotBlank9 = new Color(_root.seg9); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); dotColor2.setTransform(dotTransform); dotColor3.setTransform(dotTransform); dotColor4.setTransform(dotTransform); dotColor5.setTransform(dotTransform); dotColor6.setTransform(dotTransform); dotColor7.setTransform(dotTransform); dotColor8.setTransform(dotTransform); dotColor9.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); dotBlank3.setTransform(dotReset); dotBlank4.setTransform(dotReset); dotBlank5.setTransform(dotReset); dotBlank6.setTransform(dotReset); dotBlank7.setTransform(dotReset); dotBlank8.setTransform(dotReset); dotBlank9.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); dotBlank3.setTransform(dotReset); dotBlank4.setTransform(dotReset); dotBlank5.setTransform(dotReset); dotBlank6.setTransform(dotReset); dotBlank7.setTransform(dotReset); dotBlank8.setTransform(dotReset); dotBlank9.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (phase == 1) { if (death) { if (_global.difficulty > 1) { phase = 2; life = _root.totalLife; _root.healthRefill(life); if (_global.difficulty == 2) { _root.seg1.chaseSet = 100; } else { _root.seg1.chaseSet = 75; } death = false; _root.wormcharge.stop(); _root.wormcompress.stop(); _root.wormdash.stop(); _root.wormfollow.stop(); } else { _root.seg1.gotoAndStop('wormdeath'); u = 1; while (u <= 9) { _root['seg' + u].removeMovieClip(); ++u; } _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { if (shotTimer > 0) { --shotTimer; } else { _root.parentBomb.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; if (_global.difficulty == 2) { shotTimer = 55; } else { shotTimer = 40; } } if (death) { if (_global.difficulty > 2) { phase = 3; _root.beam1.gotoAndPlay(1); _root.beam2.gotoAndPlay(1); life = _root.totalLife; _root.healthRefill(life); death = false; _root.wormcharge.stop(); _root.wormcompress.stop(); _root.wormdash.stop(); _root.wormfollow.stop(); } else { _root.seg1.gotoAndStop('wormdeath'); u = 1; while (u <= 9) { _root['seg' + u].removeMovieClip(); ++u; } _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { if (shotTimer > 0) { --shotTimer; } else { _root.parentBomb.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; shotTimer = 35; } if (death) { _root.seg1.gotoAndStop('wormdeath'); u = 1; while (u <= 9) { _root['seg' + u].removeMovieClip(); ++u; } _root.clearFunction(); _root.wormcharge.stop(); _root.wormcompress.stop(); _root.wormdash.stop(); _root.wormfollow.stop(); _root.shieldpowerup.stop(); _root.shieldlaser2d.stop(); phase = 4; } } else { if (phase == 4) { _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } } movieClip 1735 { } movieClip 1736 { frame 1 { stop(); } frame 2 { _root.bombexplode.start(); } instance of movieClip 1735 { onClipEvent (load) { damage = 4; } onClipEvent (enterFrame) { _y = _y - 10; if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 1735 { onClipEvent (load) { damage = 4; } onClipEvent (enterFrame) { _y = _y + 10; if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 570 { onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { ++timer; if (timer > 200) { _parent.removeMovieClip(); } if (_alpha > 0) { _alpha = _alpha - 5; _xscale = _xscale - 5; _yscale = _yscale - 5; } } } } instance parentBomb of movieClip 1736 { onClipEvent (load) { if (_name != 'parentBomb') { _root.wormbombdrop.start(); _x = _root.seg9._x; _y = _root.seg9._y; rotSpeed = Math.ceil(Math.random() * 40 + 20) * 2; } } onClipEvent (enterFrame) { if (_name != 'parentBomb') { if (rotSpeed > 0) { rotSpeed -= 2; _rotation = _rotation + rotSpeed; } else { this.gotoAndStop(2); } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } movieClip 1738 { } movieClip 1742 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); _parent.removeMovieClip(); } } } instance of movieClip 1738 { onClipEvent (enterFrame) { _rotation = _rotation + 12; } } frame 4 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 3; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); _parent.play(); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; _parent.xVel = 0; _parent.yVel = 0; } } instance of movieClip 1738 { onClipEvent (enterFrame) { _rotation = _rotation + 12; } } instance of movieClip 1738 { onClipEvent (enterFrame) { _rotation = _rotation + 12; } } instance of movieClip 1738 { onClipEvent (enterFrame) { _rotation = _rotation + 12; } } instance of movieClip 493 { onClipEvent (load) { _parent.removeMovieClip(); } } } movieClip 1745 { } movieClip 1746 { instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_alpha < 100) { _alpha = _alpha + 2.5; } } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_alpha < 100) { _alpha = _alpha + 2.5; } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 71 { _root.shieldlaser2d.stop(); } } instance beam2 of movieClip 1746 { onClipEvent (load) { pos1 = 101.45; pos2 = 170.55; pos3 = 239.75; pos4 = 308.85; pos5 = 377.85; pos6 = 555.05; pos7 = 624.15; pos8 = 693.35; pos9 = 762.4500000000001; pos10 = 831.4500000000001; this.gotoAndStop(71); _x = this['pos' + Math.ceil(Math.random() * 10)]; } onClipEvent (enterFrame) { if (_currentframe == 1) { _x = this['pos' + Math.ceil(Math.random() * 10)]; } } } movieClip 1747 { instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_alpha < 100) { _alpha = _alpha + 2.5; } } } instance parentShot of movieClip 1742 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_alpha < 100) { _alpha = _alpha + 2.5; } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } instance of movieClip 1747 { onClipEvent (load) { pos1 = 108.9; pos2 = 177.1; pos3 = 244.7; pos4 = 312.9; pos5 = 380.5; pos6 = 448.7; pos7 = 516.3; pos8 = 584.5; if (_global.difficulty > 3) { _x = this['pos' + Math.ceil(Math.random() * 10)]; } else { this.gotoAndStop(71); } } onClipEvent (enterFrame) { if (_currentframe == 1) { _y = this['pos' + Math.ceil(Math.random() * 8)]; } } } instance beam1 of movieClip 1746 { onClipEvent (load) { pos1 = 101.45; pos2 = 170.55; pos3 = 239.75; pos4 = 308.85; pos5 = 377.85; pos6 = 555.05; pos7 = 624.15; pos8 = 693.35; pos9 = 762.4500000000001; pos10 = 831.4500000000001; this.gotoAndStop(71); _x = this['pos' + Math.ceil(Math.random() * 10)]; } onClipEvent (enterFrame) { if (_currentframe == 1) { _x = this['pos' + Math.ceil(Math.random() * 10)]; } if (_currentframe == 50) { _root.shieldpowerup.stop(); _root.shieldlaser2d.start(); } if (_currentframe == 2) { _root.shieldpowerup.start(); } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 211 { clearFunction(); } frame 226 { gotoAndStop('stageselection'); } frame 227 { stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 45; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 75; totalLife = 75; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 60; totalLife = 60; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 45; totalLife = 45; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1753 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1754 { frame 1 { stop(); } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } onClipEvent (enterFrame) { if (_currentframe == 1) { _root.crabspikeshing.start(); } } } instance of movieClip 1753 { onClipEvent (load) { this.gotoAndPlay(75); } } } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 10; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } movieClip 1758 { } movieClip 1759 { frame 100 { if (_root.enemy.phase == 2) { stop(); } } } movieClip 1765 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1769 { frame 1 { stop(); } instance of movieClip 1765 { onClipEvent (load) { if (_global.difficulty == 2) { damage = 15; } else { damage = 100; } } onClipEvent (enterFrame) { _rotation = _rotation + 40; if (hitTest(_root.playerSprite.hitBox)) { if (_global.difficulty == 3) { _global.epack = false; } _root.hurtFunction(damage); } } } instance of movieClip 1765 { onClipEvent (load) { if (_global.difficulty == 2) { damage = 15; } else { damage = 100; } } onClipEvent (enterFrame) { _rotation = _rotation + 40; if (hitTest(_root.playerSprite.hitBox)) { if (_global.difficulty == 3) { _global.epack = false; } _root.hurtFunction(damage); } } } instance of movieClip 1765 { onClipEvent (load) { if (_global.difficulty == 2) { damage = 15; } else { damage = 100; } } onClipEvent (enterFrame) { _rotation = _rotation + 40; if (hitTest(_root.playerSprite.hitBox)) { if (_global.difficulty == 3) { _global.epack = false; } _root.hurtFunction(damage); } } } instance of movieClip 1765 { onClipEvent (load) { if (_global.difficulty == 2) { damage = 15; } else { damage = 100; } } onClipEvent (enterFrame) { _rotation = _rotation + 40; if (hitTest(_root.playerSprite.hitBox)) { if (_global.difficulty == 3) { _global.epack = false; } _root.hurtFunction(damage); } } } } movieClip 1770 { instance obs of movieClip 1769 { onClipEvent (load) { if (_global.difficulty == 1) { this.gotoAndStop(4); } } } } movieClip 1773 { } movieClip 1774 { frame 1 { stop(); } frame 2 { _root.crabdoor.start(); } frame 15 { stop(); } } movieClip 1777 { } movieClip 1778 { frame 1 { stop(); } instance ground1 of movieClip 1770 { onClipEvent (enterFrame) { if (_x < -1100) { if (_root.enemy.phase == 1) { _x = 500; if (_global.difficulty == 2) { this.obs.gotoAndStop(Math.ceil(Math.random() * 2)); } else { if (_global.difficulty == 3) { this.obs.gotoAndStop(Math.ceil(Math.random() * 3)); } } } } } } instance ground2 of movieClip 1770 { onClipEvent (enterFrame) { if (_x < -1100) { if (_root.enemy.phase == 1) { _x = 500; if (_global.difficulty == 2) { this.obs.gotoAndStop(Math.ceil(Math.random() * 2)); } else { if (_global.difficulty == 3) { this.obs.gotoAndStop(Math.ceil(Math.random() * 3)); } } } } } } } movieClip 1779 { } instance platform of movieClip 1779 { onClipEvent (load) { _visible = false; } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.setachieve9 = true; } } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotColor2 = new Color(_root.enemySprite2); dotBlank2 = new Color(_root.enemySprite2); xVel = 0; if (_global.difficulty == 1) { xMax = 6; } else { if (_global.difficulty == 2) { xMax = 7; } else { xMax = 7.5; } } shotTimer = 100; attackTimer = 75; attackCounter = 0; attackLength = 0; if (_global.difficulty == 2) { attackSet = 70; } else { attackSet = 40; } achieveTimer = 0; phase = 1; injuredSet = 8; injuredTimer = injuredSet; attacking = false; setPosition = false; hit = false; death = false; injured = false; flicker = false; } onClipEvent (enterFrame) { if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); dotColor2.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (_root.player.death) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); } if (phase == 1) { if (_global.difficulty == 3) { if (achieveTimer < 2160) { ++achieveTimer; } else { if (!_global.achievement_12) { _global.achievement_12 = true; _root.achievementNotice.gotoAndStop(13); _root.achievementNotice.timer = 60; _root.achievementNotice._alpha = 100; c = 1; while (c <= 14) { _root.bossSave.data['achievement_' + c.toString()] = _global['achievement_' + c.toString()]; if (_global['achievement_' + c.toString()]) { ++_global.achieveCounter; } ++c; } bossSave.flush(); } } } if (xVel < xMax) { xVel += 0.5; } if (!_root.player.death) { _root.enemySprite._x += xVel; } if (shotTimer > 0) { --shotTimer; } else { if (_root.enemySprite._currentframe == 14) { _root.crabclawpower.start(); } if (_root.enemySprite._currentframe == 15) { _root.enemySprite.stop(); } } if (death) { if (_global.difficulty > 1) { phase = 2; life = _root.totalLife; _root.healthRefill(life); _root.enemySprite.gotoAndStop('clawdeath'); _root.ground.gotoAndStop(2); death = false; _root.crabcircle.stop(); _root.crabclack.stop(); _root.crabdescend.stop(); _root.crablegtap.stop(); _root.crabshellclose.stop(); _root.crabshellopen.stop(); _root.crabspikeshing.stop(); _root.crabclawblast.stop(); _root.crabclawpower.stop(); _root.craborbcharge.stop(); _root.crabcreak.stop(); } else { _root.ground.gotoAndStop(2); _root.enemySprite.gotoAndStop('clawdeath'); _root.enemySprite2.gotoAndStop('crabdeath'); _root.clearFunction(); _global.lifeRefill += 0.5; _global.12_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_12_1 = true; _root.perfect.play(); } } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; phase = 4; } } } else { if (phase == 2) { if (setPosition) { if (shotTimer > 0) { --shotTimer; } else { if (_root.enemySprite2.claw2._currentframe == 14) { _root.crabclawpower.start(); } if (_root.enemySprite2.claw2._currentframe == 15) { _root.enemySprite2.claw2.stop(); } } if (attackTimer > 0) { if (attackTimer == attackSet / 2) { _root.parentRing.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = 320; _root['bullet' + _root.i]._y = 142; ++_root.i; } --attackTimer; } else { _root.parentRing.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = 616; _root['bullet' + _root.i]._y = 142; ++_root.i; attackTimer = attackSet; } } if (death) { if (_global.difficulty > 2) { phase = 3; life = _root.totalLife; _root.healthRefill(life); attackTimer = 30; shotTimer = 125; death = false; setPosition = false; _root.enemySprite2.play(); _root.platform._x = Stage.width / 2; _root.crabcircle.stop(); _root.crabclack.stop(); _root.crabdescend.stop(); _root.crablegtap.stop(); _root.crabshellclose.stop(); _root.crabshellopen.stop(); _root.crabspikeshing.stop(); _root.crabclawblast.stop(); _root.crabclawpower.stop(); _root.craborbcharge.stop(); _root.crabcreak.stop(); } else { _root.enemySprite2.gotoAndStop('crabdeath'); _root.clearFunction(); _global.lifeRefill += 0.75; _global.12_1 = true; _global.12_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_12_2 = true; _root.perfect.play(); } } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; phase = 4; } } } else { if (phase == 3) { if (setPosition) { if (attacking) { if (attackCounter == 5) { if (attackLength > 0 && !_root.player.death) { if (attackLength == 40) { _root.wheelpowerup.stop(); _root.wheellaser.start(); } --attackLength; radians = 2.38; circSize = 0; _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser2', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser3', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser4', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser5', _root.getNextHighestDepth()); _root.createEmptyMovieClip('laser6', _root.getNextHighestDepth()); _root.pp1._x = _root.enemySprite2._x + 60; _root.pp1._y = _root.enemySprite2._y + 336; while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.moveTo(_root.enemySprite2._x + 60, _root.enemySprite2._y + 336); _root.laser1.lineStyle(12, 16777215, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.parentP.duplicateMovieClip('p1', _root.getNextHighestDepth()); hit = false; circSize = 0; radians = 0.78; _root.pp2._x = _root.enemySprite2._x - 50; _root.pp2._y = _root.enemySprite2._y + 336; while (!hit) { _root.pp2._y += Math.sin(radians) * circSize; _root.pp2._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } _root.laser2.moveTo(_root.enemySprite2._x - 50, _root.enemySprite2._y + 336); _root.laser2.lineStyle(12, 16777215, 100); _root.laser2.lineTo(_root.pp2._x, _root.pp2._y); _root.parentP.duplicateMovieClip('p2', _root.getNextHighestDepth()); hit = false; circSize = 0; radians = 1.25; _root.pp3._x = _root.enemySprite2._x - 117; _root.pp3._y = _root.enemySprite2._y + 420; while (!hit) { _root.pp3._y += Math.sin(radians) * circSize; _root.pp3._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp3._x, _root.pp3._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp3._x, _root.pp3._y, true)) { hit = true; } } _root.laser3.moveTo(_root.enemySprite2._x - 117, _root.enemySprite2._y + 420); _root.laser3.lineStyle(12, 16777215, 100); _root.laser3.lineTo(_root.pp3._x, _root.pp3._y); _root.parentP.duplicateMovieClip('p3', _root.getNextHighestDepth()); hit = false; circSize = 0; radians = 1.89; _root.pp4._x = _root.enemySprite2._x + 125; _root.pp4._y = _root.enemySprite2._y + 420; while (!hit) { _root.pp4._y += Math.sin(radians) * circSize; _root.pp4._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp4._x, _root.pp4._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp4._x, _root.pp4._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp4._x, _root.pp4._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp4._x, _root.pp4._y, true)) { hit = true; } } _root.laser4.moveTo(_root.enemySprite2._x + 125, _root.enemySprite2._y + 420); _root.laser4.lineStyle(12, 16777215, 100); _root.laser4.lineTo(_root.pp4._x, _root.pp4._y); _root.parentP.duplicateMovieClip('p4', _root.getNextHighestDepth()); hit = false; circSize = 0; radians = 1.57; _root.pp5._x = _root.enemySprite2._x - 370; _root.pp5._y = _root.enemySprite2._y + 402; while (!hit) { _root.pp5._y += Math.sin(radians) * circSize; _root.pp5._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp5._x, _root.pp5._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp5._x, _root.pp5._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp5._x, _root.pp5._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp5._x, _root.pp5._y, true)) { hit = true; } } _root.laser5.moveTo(_root.enemySprite2._x - 370, _root.enemySprite2._y + 402); _root.laser5.lineStyle(14, 16777215, 100); _root.laser5.lineTo(_root.pp5._x, _root.pp5._y); _root.parentP.duplicateMovieClip('p5', _root.getNextHighestDepth()); hit = false; circSize = 0; radians = 1.57; _root.pp6._x = _root.enemySprite2._x + 380; _root.pp6._y = _root.enemySprite2._y + 402; while (!hit) { _root.pp6._y += Math.sin(radians) * circSize; _root.pp6._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp6._x, _root.pp6._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp6._x, _root.pp6._y, true)) { circSize += Math.random() * 0.3 + 1.5; } if (_root.ground.hitTest(_root.pp6._x, _root.pp6._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp6._x, _root.pp6._y, true)) { hit = true; } } _root.laser6.moveTo(_root.enemySprite2._x + 380, _root.enemySprite2._y + 402); _root.laser6.lineStyle(14, 16777215, 100); _root.laser6.lineTo(_root.pp6._x, _root.pp6._y); _root.parentP.duplicateMovieClip('p6', _root.getNextHighestDepth()); hit = false; circSize = 0; if (attackLength == 1) { _root.enemySprite2.cBody.play(); attacking = false; attackCounter = 0; attackLength = 0; shotTimer = 100; attackTimer = 25; _root.wheellaser.stop(); _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); } } } } else { if (shotTimer > 0) { --shotTimer; } else { ++attackCounter; if (attackCounter == 5) { _root.enemySprite2.cBody.play(); attacking = true; } else { _root.craborbcharge.start(); _root.parentEnergy.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; shotTimer = 80; } } if (attackTimer > 0) { if (attackTimer == 50) { _root.parentRing.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = 320; _root['bullet' + _root.i]._y = 286; ++_root.i; } --attackTimer; } else { _root.parentRing.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = 616; _root['bullet' + _root.i]._y = 286; ++_root.i; attackTimer = 100; } } if (death) { _root.enemySprite2.gotoAndStop('crabdeath'); _root.clearFunction(); _global.lifeRefill += 1; _global.12_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_12_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.12_4 = true; } if (_root.totalShots == _root.minShots) { _global.shots_12 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } _root.crabcircle.stop(); _root.crabclack.stop(); _root.crabdescend.stop(); _root.crablegtap.stop(); _root.crabshellclose.stop(); _root.crabshellopen.stop(); _root.crabspikeshing.stop(); _root.crabclawblast.stop(); _root.crabclawpower.stop(); _root.craborbcharge.stop(); _root.crabcreak.stop(); if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; phase = 4; } } } else { if (phase == 4) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); xVel = 0; xMax = 0; attacking = false; _root.crabcircle.stop(); _root.crabclack.stop(); _root.crabdescend.stop(); _root.crablegtap.stop(); _root.crabshellclose.stop(); _root.crabshellopen.stop(); _root.crabspikeshing.stop(); _root.crabclawblast.stop(); _root.crabclawpower.stop(); _root.craborbcharge.stop(); _root.crabcreak.stop(); _root.wheelpowerup.stop(); _root.wheellaser.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (_x > (Stage.width / 4) * 3 && _root.ground._x > -1250) { if (xVel < 0) { _root.xLaser += xVel; _x = _x + xVel; } else { r = 1; while (r <= 20) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; _root['bubble' + r]._x -= xVel; ++r; } _root.person._x -= xVel; _root.lTarget._x -= xVel; if (_root.enemySprite._x > -500) { _root.enemySprite._x -= xVel; } _root.enemy._x -= xVel; if (_root.enemy.phase == 1) { _root.ground.ground1._x -= xVel; _root.ground.ground2._x -= xVel; } else { if (_root.ground._x > -1250) { _root.ground._x -= xVel; _root.platform._x -= xVel; } else { _root.ground._x = -1250; } } _root.wire1._x -= xVel; _root.wire2._x -= xVel; } } else { _root.xLaser += xVel; _x = _x + xVel; if (_root.enemy.phase == 2 && _root.ground._x < -1250) { _root.ground._x = -1250; if (_global.difficulty == 3) { _root.blades.gotoAndStop(2); } _root.ground.door.play(); } } if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y - 10; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - 10; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y - 10; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - 10; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } movieClip 1781 { } movieClip 1783 { } movieClip 1786 { } movieClip 1788 { } movieClip 1789 { } movieClip 1793 { } movieClip 1794 { frame 1 { stop(); } frame 2 { _root.crabclawblast.start(); } instance of movieClip 1793 { onClipEvent (load) { damage = 12; } onClipEvent (enterFrame) { if (_width < 1500) { _width = _width + 100; } else { _parent._x += 100; _parent._parent.glow1._alpha -= 20; _parent._parent.glow2._alpha -= 20; } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1795 { frame 1 { _root.crabclack.start(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 100; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _global.epack = false; _root.hurtFunction(damage); } } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance of movieClip 1781 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 4 - 2; } } instance of movieClip 1783 { onClipEvent (load) { ySet = _y; } onClipEvent (enterFrame) { _y = ySet + Math.random() * 6 - 3; } } instance glow1 of movieClip 1789 { onClipEvent (load) { _alpha = -10; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 2.5; } else { _parent.beam.gotoAndStop(2); } } } instance glow2 of movieClip 1789 { onClipEvent (load) { _alpha = -10; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 2.5; } } } instance beam of movieClip 1794 { onClipEvent (enterFrame) { if (_x > 2000) { _root.enemy.shotTimer = 125; _parent.play(); } } } frame 16 { gotoAndPlay(1); } frame 17 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } } movieClip 1796 { } movieClip 1799 { } movieClip 1803 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1804 { frame 1 { stop(); } frame 2 { _root.crabshellopen.start(); } frame 30 { stop(); _root.wheelpowerup.start(); } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } else { _parent.nextFrame(); } } } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } instance of movieClip 570 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100) { _alpha = _alpha + 5; } } } frame 31 { _root.enemy.attackLength = 40; } frame 32 { _root.crabshellclose.start(); } frame 61 { _root.enemy.attackNumber = 0; _root.enemy.attacking = false; } } movieClip 1806 { } movieClip 1808 { } movieClip 1809 { frame 15 { _root.crabcreak.start(); } frame 34 { stop(); } } movieClip 1810 { frame 1 { stop(); } instance claw2 of movieClip 1795 { onClipEvent (load) { this.gotoAndStop(1); } } frame 75 { stop(); _root.enemy.setPosition = true; } instance claw2 of movieClip 1795 { onClipEvent (load) { this.gotoAndStop(1); } } frame 81 { _root.ground.door2.play(); } frame 106 { _root.crabdescend.start(); } instance of movieClip 1809 { onClipEvent (load) { this.gotoAndPlay(10); } onClipEvent (enterFrame) { this.play(); } } instance of movieClip 1809 { onClipEvent (enterFrame) { this.play(); } } frame 132 { stop(); _root.enemy.setPosition = true; } frame 133 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance enemySprite2 of movieClip 1810 { onClipEvent (load) { if (_global.difficulty == 1) { _visible = false; } } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.ground._x == -1250) { this.play(); } } } } movieClip 1812 { } movieClip 1813 { frame 3 { stop(); } } instance parentRing of movieClip 1813 { onClipEvent (load) { if (_name != 'parentRing') { xPos = _root.player._x; yPos = _root.player._y - 50; ySpeed = (_y - yPos) / 75; xSpeed = (_x - xPos) / 75; damage = 5; _root.crabcircle.start(); } } onClipEvent (enterFrame) { if (_name != 'parentRing') { if (_y > yPos) { _xscale = _xscale - 15; _yscale = _yscale - 15; if (_xscale <= 10) { this.removeMovieClip(); } } if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); this.removeMovieClip(); } _y = _y - ySpeed; _x = _x - xSpeed; } } } instance parentP of movieClip 570 { onClipEvent (load) { if (_name == 'p1') { this.gotoAndStop(2); _x = _root.pp1._x; _y = _root.pp1._y; } else { if (_name == 'p2') { this.gotoAndStop(2); _x = _root.pp2._x; _y = _root.pp2._y; } else { if (_name == 'p3') { this.gotoAndStop(2); _x = _root.pp3._x; _y = _root.pp3._y; } else { if (_name == 'p4') { this.gotoAndStop(2); _x = _root.pp4._x; _y = _root.pp4._y; } else { if (_name == 'p5') { this.gotoAndStop(2); _x = _root.pp5._x; _y = _root.pp5._y; } else { if (_name == 'p6') { this.gotoAndStop(2); _x = _root.pp6._x; _y = _root.pp6._y; } } } } } } } onClipEvent (enterFrame) { if (_name == 'p1') { _x = _root.pp1._x; _y = _root.pp1._y; } } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance pp2 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance pp3 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance pp4 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } movieClip 1816 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 1817 { } movieClip 1818 { frame 1 { stop(); } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 60; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 50; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 40; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation - 25; } } instance of movieClip 523 { onClipEvent (enterFrame) { _rotation = _rotation + 20; } } frame 2 { _root.springenergy.start(); } frame 3 { stop(); } frame 4 { _root.bombexplode.start(); } instance of movieClip 1817 { onClipEvent (load) { damage = 5; } onClipEvent (enterFrame) { _x = _x + 15; if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 1817 { onClipEvent (load) { damage = 5; } onClipEvent (enterFrame) { _x = _x - 15; if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance of movieClip 570 { onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { ++timer; if (timer > 200) { _parent.removeMovieClip(); } if (_alpha > 0) { _alpha = _alpha - 5; _xscale = _xscale - 5; _yscale = _yscale - 5; } } } } instance parentEnergy of movieClip 1818 { onClipEvent (load) { if (_name != 'parentEnergy') { _alpha = 0; _x = _root.enemySprite2._x + 4; _y = _root.enemySprite2._y + 380; } } onClipEvent (enterFrame) { if (_name != 'parentEnergy') { if (_alpha < 100) { _alpha = _alpha + 4; } else { if (_currentframe != 4) { _y = _y + 35; } if (_currentframe == 1) { this.glow.play(); this.play(); } else { if (_currentframe == 3) { if (_y > _root.player._y - 50) { this.nextFrame(); } } } } } } } instance pp5 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance pp6 of movieClip 467 { onClipEvent (load) { _visible = false; damage = 20; } onClipEvent (enterFrame) { if (_root.playerSprite.hitBox.hitTest(_x, _y, true)) { _root.hurtFunction(damage); } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite2.claw2.enemyHit) or this.hitTest(_root.enemySprite2.cBody.lSide.enemyHit) or this.hitTest(_root.enemySprite2.cBody.rSide.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite2.claw2.enemyHit) or this.hitTest(_root.enemySprite2.cBody.lSide.enemyHit) or this.hitTest(_root.enemySprite2.cBody.rSide.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -70 or _x > 1000) { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite2.claw2.enemyHit) or this.hitTest(_root.enemySprite2.cBody.lSide.enemyHit) or this.hitTest(_root.enemySprite2.cBody.rSide.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit) or this.hitTest(_root.enemySprite2.claw2.enemyHit) or this.hitTest(_root.enemySprite2.cBody.lSide.enemyHit) or this.hitTest(_root.enemySprite2.cBody.rSide.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -70 or _x > 1000) { this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_root.enemy.phase == 1) { if (_root.player._x > (Stage.width / 4) * 3) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } } if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } instance achievementNotice of movieClip 856 { onClipEvent (load) { _alpha = 0; timer = 0; } onClipEvent (enterFrame) { if (timer > 0) { --timer; } else { if (_alpha > 0) { _alpha = _alpha - 10; } } } } frame 228 { clearFunction(); } frame 243 { gotoAndStop('stageselection'); } frame 244 { stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 27; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 30; totalLife = 30; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 27; totalLife = 27; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 25; totalLife = 25; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1820 { } instance ground of movieClip 1820 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (hitTest(_root.gd._x, _root.gd._y, true)) { if (_root.player.gDistance < 1) { _root.player._y -= 10; } } else { if (hitTest(_root.g2d._x, _root.g2d._y, true)) { if (_root.player.g2Distance < 1) { _root.player._y -= 10; } } } } } movieClip 1823 { } movieClip 1825 { } movieClip 1826 { instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation - 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation + 5; } } instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation + 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation + 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation - 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation + 5; } } instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation - 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation + 5; } } instance of movieClip 1823 { onClipEvent (enterFrame) { _rotation = _rotation + 2.5; } } instance gear3 of movieClip 1825 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } } instance of movieClip 1826 { onClipEvent (enterFrame) { _x = _root.ground._x - 36; } } movieClip 1832 { frame 1 { stop(); } } movieClip 1835 { } movieClip 1836 { } movieClip 1838 { } movieClip 1852 { frame 14 { } } movieClip 1854 { instance smoke of movieClip 1852 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_currentframe == 14) { this.gotoAndStop(1); _alpha = 0; } } } } movieClip 1855 { } movieClip 1858 { } movieClip 1859 { } movieClip 1860 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } instance sBody of movieClip 1859 { onClipEvent (enterFrame) { if (_x > -128) { _x = _x - 5; } } } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 5 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.7_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_7_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.7_1 = true; _global.7_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_7_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.7_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_7_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.7_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_7 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (_x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (xVel < 0) { _root.xLaser += xVel; _x = _x + xVel; } else { r = 1; while (r <= 6) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; ++r; } _root.lTarget._x -= xVel; _root.enemySprite._x -= xVel; _root.enemy._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; } } else { if (_x < Stage.width / 4 && _root.ground._x < 1060) { if (xVel < 0) { r = 1; while (r <= 6) { _root['laser' + r]._x -= xVel; _root['pp' + r]._x -= xVel; _root['p' + r]._x -= xVel; ++r; } _root.lTarget._x -= xVel; _root.enemy._x -= xVel; _root.enemySprite._x -= xVel; _root.platform._x -= xVel; _root.ground._x -= xVel; } else { _root.xLaser += xVel; _x = _x + xVel; } } else { _root.xLaser += xVel; _x = _x + xVel; } } if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; yVel = 0; hover = 0; maxFall = 24; gravity = _root.gravity; startTimer = 2; shotTimer = 0; shotCounter = 0; if (_global.difficulty == 2) { shotMax = 4; } else { shotMax = 8; } attackLength = 0; attackTimer = 250; phase = 0; circSize = 0; radians = 0; angle = 0; angle2 = 0; dirSet = 0; introTimer = 25; injuredSet = 25; flick = 8; xScale = _root.enemySprite._xscale; injuredTimer = injuredSet; aimDir = 'up'; charDirection = 'left'; attacking = false; setPosition = false; hit = false; injured = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; dirSet = Math.ceil(Math.random() * 2); shotTimer = 50; _y = 300; if (dirSet == 1) { charDirection = 'right'; } else { charDirection = 'left'; } if (charDirection == 'right') { _root.enemySprite._xscale = -xScale; _x = _root.ground._x - _root.ground._width / 2 + 250; } else { _root.enemySprite._xscale = xScale; _x = _root.ground._x + _root.ground._width / 2 - 250; } } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { if (_root.player.death) { _root.laser1.removeMovieClip(); } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } xPlayer = _root.player._x; yPlayer = _root.player._y; if (phase == 0) { if (introTimer > 0) { --introTimer; } else { phase = 1; } } else { if (phase == 1) { if (injured) { _root.lTarget._y = -500; _root.lTarget.iAim.gotoAndStop(1); if (_root.enemySprite._alpha > -300) { if (_root.enemySprite._alpha == 100) { _root.sniperdisappear.start(); } _root.enemySprite._alpha -= 20; } else { if (_global.difficulty == 1) { shotTimer = 20; } else { if (_global.difficulty == 2) { shotTimer = 15; } else { shotTimer = 10; } } _y = 300; _root.enemySprite._alpha = 100; injured = false; injuredTimer = 25; dotBlank.setTransform(dotReset); flicker = false; if (charDirection == 'right') { charDirection = 'left'; } else { charDirection = 'right'; } if (charDirection == 'right') { _root.enemySprite._xscale = -xScale; _x = _root.ground._x - _root.ground._width / 2 + 250; } else { _root.enemySprite._xscale = xScale; _x = _root.ground._x + _root.ground._width / 2 - 250; } } } _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _x; _root.pp1._y = _y - 128; a = Math.abs(_y - yPlayer - (_root.player._height + 50)); b = _x - xPlayer; c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; if (charDirection == 'right') { if (angle > 30) { angle = 30; } } else { if (angle < 150) { angle = 150; } } if (yPlayer - (_root.player._height + 45) > _y - 175) { radians = angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sBody.sGun._rotation = -angle; _root.enemySprite.sBody.sEye._rotation = -angle; } else { _root.enemySprite.sBody.sGun._rotation = angle + 180; _root.enemySprite.sBody.sEye._rotation = angle + 180; } } else { radians = -angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sBody.sGun._rotation = angle; _root.enemySprite.sBody.sEye._rotation = angle; } else { _root.enemySprite.sBody.sGun._rotation = -angle + 180; _root.enemySprite.sBody.sEye._rotation = -angle + 180; } } if (!injured && !_root.player.death) { while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.15; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.moveTo(_x, _y - 128); _root.laser1.lineStyle(1, 16737945, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.lTarget._x = _root.pp1._x; _root.lTarget._y = _root.pp1._y; hit = false; circSize = 0; } if (shotTimer > 0) { if (!injured) { --shotTimer; } if (shotTimer <= 10 && shotTimer > 0) { _root.enemySprite.sBody.sEye.gotoAndStop(2); } } else { _root.lTarget.iAim.gotoAndStop(1); _root.enemySprite.sBody.sGun.smoke._alpha = 100; _root.enemySprite.sBody.sGun.smoke.play(); _root.parentSmoke.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; _root.snipergunshot.start(); if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true)) { q = 1; while (q <= 10) { _root.parentDirt.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; ++q; } _root.snipergroundimpact.start(); } else { damage = 7; _root.hurtFunction(damage); } _root.enemySprite.sBody.sEye.gotoAndStop(1); if (_global.difficulty == 1) { shotTimer = 80; } else { if (_global.difficulty == 2) { shotTimer = 60; } else { shotTimer = 50; } } } if (shotTimer == 27) { _root.lTarget.iAim.play(); } if (death) { if (_global.difficulty > 1) { if (_root.enemySprite._alpha <= -300) { phase = 2; life = _root.totalLife; _root.healthRefill(life); _root.lTarget.gotoAndStop(2); attacking = true; death = false; _root.sniperlaunch.stop(); _root.snipersearching.stop(); } } else { _root.enemySprite.gotoAndStop('sniperdeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { if (attacking && !_root.player.death) { _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.laser1._x = _root.ground._x; _root.laser1._y = -200; _root.pp1._x = _root.ground._x; _root.pp1._y = -200; a = _root.laser1._y - yPlayer + 50; b = Math.abs(_root.laser1._x - xPlayer); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; if (xPlayer > _root.laser1._x) { radians = angle * 0.0174532925199433; } else { radians = -(angle + 180) * 0.0174532925199433; } while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.25; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.lineStyle(1, 16737945, 100); _root.laser1.lineTo(_root.pp1._x - _root.ground._x, _root.pp1._y + 200); _root.lTarget._x = _root.pp1._x; _root.lTarget._y = _root.pp1._y; hit = false; circSize = 0; if (shotTimer > 0) { --shotTimer; } else { if (shotCounter < shotMax) { ++shotCounter; _root.parentMissile.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); if (xPlayer > _root.laser1._x) { _root['bullet' + _root.i]._rotation = angle; } else { _root['bullet' + _root.i]._rotation = -angle + 180; } ++_root.i; } else { attacking = false; attackTimer = 250; _root.enemySprite.gotoAndStop(1); _root.lTarget.gotoAndStop(1); _root.lTarget._y = -200; _root.laser1.removeMovieClip(); _y = 300; _root.enemySprite._alpha = -400; injured = false; injuredTimer = 30; if (charDirection == 'right') { charDirection = 'left'; angle = 190; _root.enemySprite.sBody.sGun._rotation = angle + 180; _root.enemySprite.sBody.sEye._rotation = angle + 180; } else { charDirection = 'right'; angle = -10; _root.enemySprite.sBody.sGun._rotation = -angle; _root.enemySprite.sBody.sEye._rotation = -angle; } if (charDirection == 'right') { _root.enemySprite._xscale = -xScale; _x = _root.ground._x - _root.ground._width / 2 + 250; } else { _root.enemySprite._xscale = xScale; _x = _root.ground._x + _root.ground._width / 2 - 250; } } shotTimer = 25; } } else { if (attackTimer > 0 && !_root.player.death) { --attackTimer; if (_root.enemySprite._alpha < 100) { _root.enemySprite._alpha += 10; if (_root.enemySprite._alpha >= 100) { _root.snipersearching.start(0, 4); } } else { _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.pp1._x = _x; _root.pp1._y = _y - 128; if (charDirection == 'right') { if (aimDir == 'up') { if (angle > -10) { angle -= 0.75; } else { aimDir = 'down'; } } else { if (angle < 45) { angle += 0.75; } else { aimDir = 'up'; } } } else { if (aimDir == 'up') { if (angle > 135) { angle -= 0.75; } else { aimDir = 'down'; } } else { if (angle < 190) { angle += 0.75; } else { aimDir = 'up'; } } } radians = angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sBody.sGun._rotation = -angle; _root.enemySprite.sBody.sEye._rotation = -angle; } else { _root.enemySprite.sBody.sGun._rotation = angle + 180; _root.enemySprite.sBody.sEye._rotation = angle + 180; } while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.15; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } _root.laser1.moveTo(_x, _y - 128); _root.laser1.lineStyle(1, 16737945, 100); _root.laser1.lineTo(_root.pp1._x, _root.pp1._y); _root.lTarget._x = _root.pp1._x; _root.lTarget._y = _root.pp1._y; hit = false; circSize = 0; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) && !_root.player.recovery) { _root.enemySprite.sBody.sGun.smoke._alpha = 100; _root.enemySprite.sBody.sGun.smoke.play(); _root.parentSmoke.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; _root.snipergunshot.start(); damage = 7; _root.hurtFunction(damage); } } } else { if (_root.enemySprite._alpha > -300) { if (_root.enemySprite._alpha == 100) { _root.sniperdisappear.start(); } _root.enemySprite._alpha -= 20; _root.laser1.removeMovieClip(); _root.lTarget._y = -200; } else { attacking = true; shotTimer = 30; shotCounter = 0; _root.lTarget.gotoAndStop(2); _root.enemySprite.gotoAndStop(2); } } } if (death) { if (_global.difficulty > 2) { if (_root.enemySprite._alpha >= 100) { phase = 3; life = _root.totalLife; _root.healthRefill(life); _root.laser1.removeMovieClip(); _root.lTarget._y = -200; death = false; _root.sniperlaunch.stop(); _root.snipersearching.stop(); } } else { _root.enemySprite.gotoAndStop('sniperdeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { if (!setPosition) { _root.enemySprite.gotoAndStop(3); if (_root.enemySprite.sBottom._alpha > -300) { _root.enemySprite.sBottom._alpha -= 20; } else { _root.enemySprite.gotoAndStop(4); gravity = 0; ySet = _y; xMin = _root.ground._x - _root.ground._width / 2 + 250; xMax = _root.ground._x + _root.ground._width / 2 - 250; _root.lTarget2.gotoAndStop(2); _root.shieldglitch.start(); _root.enemySprite.sBody.sEye.gotoAndStop(2); _y = _y - 25; setPosition = true; } } else { _y = ySet + Math.sin(hover) * 12; hover += 0.12; _x = _x + xVel; xMin = _root.ground._x - _root.ground._width / 2 + 250; xMax = _root.ground._x + _root.ground._width / 2 - 250; if (charDirection == 'right') { if (xVel < 5) { ++xVel; } if (_x > xMax) { charDirection = 'left'; _root.enemySprite._xscale = xScale; angle += 180; } _root.enemySprite.sBody.sGun._rotation = -angle; _root.enemySprite.sBody.sEye._rotation = angle; if (aimDir == 'up') { if (angle > 5) { angle -= 1.25; } else { aimDir = 'down'; } } else { if (angle < 35) { angle += 1.25; } else { aimDir = 'up'; } } } else { if (xVel > -10) { --xVel; } if (_x < xMin) { charDirection = 'right'; _root.enemySprite._xscale = -xScale; angle -= 180; } _root.enemySprite.sBody.sGun._rotation = angle + 180; _root.enemySprite.sBody.sEye._rotation = angle + 180; if (aimDir == 'up') { if (angle > 145) { angle -= 1.25; } else { aimDir = 'down'; } } else { if (angle < 180) { angle += 1.25; } else { aimDir = 'up'; } } } if (charDirection == 'right') { _root.pp1._x = _x + 40; } else { _root.pp1._x = _x - 40; } _root.pp1._y = _y - 128; radians = angle * 0.0174532925199433; if (!_root.player.death) { while (!hit) { _root.pp1._y += Math.sin(radians) * circSize; _root.pp1._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { circSize += 0.15; } if (_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp1._x, _root.pp1._y, true)) { hit = true; } } if (charDirection == 'right') { _root.laser1.moveTo(_x + 40, _y - 128); } else { _root.laser1.moveTo(_x - 40, _y - 128); } _root.lTarget._x = _root.pp1._x; _root.lTarget._y = _root.pp1._y; hit = false; circSize = 0; radians = 0; _root.laser1.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.laser1._x = _root.ground._x; _root.laser1._y = -200; _root.pp2._x = _root.ground._x; _root.pp2._y = -200; a = _root.laser1._y - yPlayer + 50; b = Math.abs(_root.laser1._x - xPlayer); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle2 = Math.atan(b / a) * 180 / Math.PI + 90; if (xPlayer > _root.laser1._x) { radians = angle2 * 0.0174532925199433; } else { radians = -(angle2 + 180) * 0.0174532925199433; } while (!hit) { _root.pp2._y += Math.sin(radians) * circSize; _root.pp2._x += Math.cos(radians) * circSize; if (!_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or !_root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { circSize += 0.25; } if (_root.ground.hitTest(_root.pp2._x, _root.pp2._y, true) or _root.playerSprite.hitBox.hitTest(_root.pp2._x, _root.pp2._y, true)) { hit = true; } } hit = false; circSize = 0; } if (!_root.ground.hitTest(_root.pp1._x, _root.pp1._y, true) && !_root.player.recovery) { _root.enemySprite.sBody.sGun.smoke._alpha = 100; _root.enemySprite.sBody.sGun.smoke.play(); _root.parentSmoke.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; _root.snipergunshot.start(); damage = 5; _root.hurtFunction(damage); } if (shotTimer > 0) { --shotTimer; } else { _root.parentMissile.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); if (xPlayer > _root.laser1._x) { _root['bullet' + _root.i]._rotation = angle2; } else { _root['bullet' + _root.i]._rotation = -angle2 + 180; } ++_root.i; shotTimer = 60; } } if (death) { _root.enemySprite.gotoAndStop('sniperdeath'); _root.clearFunction(); _root.sniperlaunch.stop(); _root.snipersearching.stop(); phase = 4; } } else { if (phase == 4) { _root.laser1.removeMovieClip(); xVel = 0; yVel = 0; _root.sniperlaunch.stop(); _root.snipersearching.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); attacking = false; } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } instance pp1 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance parentSmoke of movieClip 1852 { onClipEvent (load) { if (_name != 'parentSmoke') { _x = _root.lTarget._x; _y = _root.lTarget._y - 25; if (_root.enemy.charDirection == 'left') { _xscale = -_xscale; } } } onClipEvent (enterFrame) { if (_name != 'parentSmoke') { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } if (_currentframe == 14) { this.removeMovieClip(); } } } } movieClip 1862 { } instance parentDirt of movieClip 1862 { onClipEvent (load) { if (_name != 'parentDirt') { _xscale = Math.random() * 125 + 75; _yscale = _xscale; _x = _root.lTarget._x; _y = _root.lTarget._y - 3; rotSpeed = Math.random() * 40 - 20; yVel = Math.random() * 3 + 3; if (_root.enemy.charDirection == 'right') { xVel = -(Math.random() * 2) - 1; } else { xVel = Math.random() * 2 + 1; } } } onClipEvent (enterFrame) { if (_name != 'parentDirt') { _y = _y - yVel; _x = _x - xVel; if (_root.player.rDistance > 2 && _root.player.lDistance > 2) { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } } _rotation = _rotation + rotSpeed; yVel -= 0.5; if (_root.ground.hitTest(_x, _y, true)) { this.removeMovieClip(); } } } } movieClip 1876 { instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 8; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 13 { stop(); } } movieClip 1877 { frame 1 { stop(); } instance parentExplosion of movieClip 1876 { onClipEvent (load) { _root.sniperexplosion.start(); } onClipEvent (enterFrame) { if (_currentframe == 13) { _parent.removeMovieClip(); } } } } instance parentMissile of movieClip 1877 { onClipEvent (load) { if (_name != 'parentMissile') { _x = _root.ground._x; _y = -200; _root.sniperlaunch.start(); a = Math.abs(_y - (_root.player._y - 50)); b = Math.abs(_x - _root.player._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); if (_global.difficulty == 2) { speed = c / 38; } else { speed = c / 50; } yVel = a / speed; if (_root.player._x > _x) { xVel = b / speed; } else { xVel = -b / speed; } if (_root.player._y > _y) { yVel = a / speed; } else { yVel = -a / speed; } } } onClipEvent (enterFrame) { if (_name != 'parentMissile') { _x = _x + xVel; _y = _y + yVel; if (_root.ground.hitTest(_x, _y, true) or _root.playerSprite.hitBox.hitTest(_x, _y, true)) { this.gotoAndStop(2); xVel = 0; yVel = 0; } if (_currentframe == 1) { _root.parentCloud.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = _x; _root['bullet' + _root.i]._y = _y; if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _root['bullet' + _root.i]._x -= _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _root['bullet' + _root.i]._x -= _root.player.xVel; } } } ++_root.i; } if (_root.player._x > (Stage.width / 4) * 3) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } } } } movieClip 1878 { instance of movieClip 1556 { onClipEvent (load) { xSet = _x; ySet = _y; c = 0; } onClipEvent (enterFrame) { _x = xSet + Math.cos(c) * 3; _y = ySet + Math.sin(c) * 3; c -= 0.15; } } } instance parentCloud of movieClip 1878 { onClipEvent (load) { if (_name != 'parentCloud') { _xscale = Math.random() * 75 + 50; _yscale = _xscale; } } onClipEvent (enterFrame) { if (_name != 'parentCloud') { _alpha = _alpha - 10; if (_alpha <= 0) { this.removeMovieClip(); } if (_root.player.rDistance > 2 && _root.player.lDistance > 2) { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } } } } } instance pp2 of movieClip 467 { onClipEvent (load) { _visible = false; } } instance lTarget of movieClip 582 { onClipEvent (load) { this.gotoAndStop(3); } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -120 or _x > 1050) { this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_root.player._x > (Stage.width / 4) * 3 && _root.ground._x > -130) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _x = _x - _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4 && _root.ground._x < 1060) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _x = _x - _root.player.xVel; } } } if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } if (_x < -120 or _x > 1050) { this.removeMovieClip(); } } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } frame 245 { clearFunction(); } frame 260 { gotoAndStop('stageselection'); } frame 261 { stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; minShots = 42; totalShots = 0; switch (_global.difficulty) { case 1: playerLife = 50; pTotalLife = 50; enemyLife = 60; totalLife = 60; break; case 2: playerLife = 55; pTotalLife = 55; enemyLife = 50; totalLife = 50; break; case 3: playerLife = 65; pTotalLife = 65; enemyLife = 40; totalLife = 40; } percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } movieClip 1881 { } movieClip 1883 { } movieClip 1884 { frame 1 { stop(); } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } instance of movieClip 1884 { onClipEvent (enterFrame) { if (hitTest(_root.playerSprite) or hitTest(_root.enemySprite)) { if (!_root.enemy.death) { this.play(); } } } } movieClip 1887 { } movieClip 1888 { frame 1 { stop(); } frame 20 { stop(); } } movieClip 1892 { } movieClip 1893 { frame 1 { stop(); } instance of movieClip 1892 { onClipEvent (enterFrame) { if (_y > 290) { _y = _y - 15; if (hitTest(_root.player)) { _root.player.trackJump = 0; _root.player.jumping = true; _root.player.jumpControl = true; ++_root.player.trackJump; _root.player.yVel = _root.player.maxJump; } } } } instance of movieClip 1892 { onClipEvent (enterFrame) { if (_y < 400) { _y = _y + 30; } else { _root.floorCover.play(); _parent.gotoAndStop(1); } } } } instance of movieClip 1892 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.enemy.phase == 2 or _root.enemy.phase == 4) { if (_global.difficulty > 1) { _visible = true; if (_y > 604) { _y = _y - 15; } } } else { _visible = false; } if (_root.enemy.phase == 3) { _x = 1500; } } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { if (_root.enemy.phase != 3) { jumping = false; trackJump = 0; } else { trackJump = 0; jumping = true; jumpControl = true; ++trackJump; yVel = maxJump * 1.75; _root.springfloorspring.start(); } } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } movieClip 1895 { instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } movieClip 1904 { } movieClip 1906 { } movieClip 1908 { } movieClip 1909 { frame 1 { stop(); } instance enemyHit of movieClip 493 { onClipEvent (load) { _visible = false; damage = 2; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } frame 2 { if (_root.enemy.phase == 2 or _root.enemy.phase == 3) { if (_global.difficulty == 3) { _root.springshockwave.start(); _root.parentForce.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = 10; ++_root.i; _root.parentForce.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = -10; ++_root.i; } } } frame 5 { _root.enemy.jumping = true; _root.enemy.yVel = _root.enemy.maxJump; _root.enemy.running = true; xPlayer = _root.player._x; _root.enemy.xMax = (_root.enemy._x - xPlayer) / _root.enemy.maxJump; if (xPlayer > _root.enemy._x) { _root.enemy.charDirection = 'right'; } else { _root.enemy.charDirection = 'left'; } } frame 6 { _root.springjump.start(); } frame 23 { gotoAndStop(1); } frame 24 { _root.deathsound.start(); } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 6; yVel = -6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -6; yVel = 6; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = -8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 8; yVel = 0; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = 8; } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; } } instance of movieClip 462 { onClipEvent (load) { xVel = 0; yVel = -8; timer = 80; _root.nextFrame(); _root.enemyHealth.enemyOrb.nextFrame(); _root.enemyHealth.backGlow._visible = false; if (_global.usedcharge) { _global.acCharge = 0; } _global.acCharge += 480 * _global.difficulty; switch (_global.difficulty) { case 1: _global.lifeRefill += 0.5; _global.9_1 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_9_1 = true; _root.perfect.play(); } } break; case 2: _global.lifeRefill += 0.75; _global.9_1 = true; _global.9_2 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_9_2 = true; _root.perfect.play(); } } break; case 3: _global.lifeRefill += 1; _global.9_3 = true; if (_root.playerLife == _root.pTotalLife) { if (!_global.usedpack) { _global.perfect_9_3 = true; _root.perfect.play(); } } if (!_global.usedpack && !_global.usedcharge) { _global.9_4 = true; } if (_root.totalShots != _root.minShots) break; _global.shots_9 = true; } n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); if (_global.usedcharge) { if (!_global.overCharge) { _global.megaCharge = false; } _global.superCounter = 1; } else { ++_global.superCounter; } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; --timer; if (timer <= 0) { timer = 1000; _root.nextFrame(); } } } } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { _visible = false; dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; xVel = 0; xMax = 0; yVel = 0; maxJump = -32; maxFall = 24; gravity = _root.gravity; startTimer = 2; phase = 0; shotTimer = 100; introTimer = 25; injuredSet = 8; injuredTimer = injuredSet; xScale = _root.enemySprite._xscale; charDirection = 'left'; jumping = false; hit = false; injured = false; death = false; flicker = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x - _x; yPlayer = _root.player._y - _y; if (startTimer > 0) { --startTimer; } else { if (lDistance == 1) { xVel = 0; } if (rDistance == 1) { xVel = 0; } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (running) { _x = _x + xVel; } _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { phase = 1; } } else { if (phase == 1) { if (charDirection == 'left') { _root.enemySprite._xscale = xScale; } else { _root.enemySprite._xscale = -xScale; } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = xMax; } } if (jumping) { if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { running = false; jumping = false; xMax = 0; } } } else { running = false; xMax = 0; _root.enemySprite.play(); } xPlayer = _root.player._x; yPlayer = _root.player._y; a = Math.abs(_y - yPlayer - (_root.player._height + 50)); b = _x - xPlayer; c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; if (charDirection == 'right') { if (angle > 40) { angle = 40; } } else { if (angle < 140) { angle = 140; } } if (yPlayer - (_root.player._height + 45) > _y - 175) { radians = angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = -angle; } else { _root.enemySprite.sGun.sBarrel._rotation = angle + 180; } } else { radians = -angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = angle; } else { _root.enemySprite.sGun.sBarrel._rotation = -angle + 180; } } if (_global.difficulty > 1) { if (shotTimer > 0) { --shotTimer; } else { _root.parentShot.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = Math.cos(radians) * 13; _root['bullet' + _root.i].yVel = Math.sin(radians) * 13; _root['bullet' + _root.i]._x = _x + Math.cos(radians) * 150; _root['bullet' + _root.i]._y = _y - 163 + Math.sin(radians) * 150; ++_root.i; if (_global.difficulty == 2) { shotTimer = 30; } else { shotTimer = 45; } } } if (death) { if (_global.difficulty > 1) { if (jumping && yVel < -10) { phase = 2; life = _root.totalLife; _root.healthRefill(life); _root.ground.gotoAndStop(2); death = false; _root.springfloorspring.stop(); _root.springland.stop(); _root.springjump.stop(); _root.springtopspring.stop(); } } else { xVel = 0; yVel = 0; _root.enemySprite.gotoAndStop('springdeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 2) { if (_global.difficulty == 2) { if (shotTimer > 0) { --shotTimer; } else { _root.parentShot.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = Math.cos(radians) * 13; _root['bullet' + _root.i].yVel = Math.sin(radians) * 13; _root['bullet' + _root.i]._x = _x + Math.cos(radians) * 150; _root['bullet' + _root.i]._y = _y - 163 + Math.sin(radians) * 150; ++_root.i; shotTimer = 50; } } if (charDirection == 'left') { _root.enemySprite._xscale = xScale; } else { _root.enemySprite._xscale = -xScale; } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = xMax; } } if (jumping) { if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { running = false; jumping = false; xMax = 0; } } } else { running = false; xMax = 0; _root.enemySprite.play(); } xPlayer = _root.player._x; yPlayer = _root.player._y; a = Math.abs(_y - yPlayer - (_root.player._height + 50)); b = _x - xPlayer; c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; if (charDirection == 'right') { if (angle > 40) { angle = 40; } } else { if (angle < 140) { angle = 140; } } if (yPlayer - (_root.player._height + 45) > _y - 175) { radians = angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = -angle; } else { _root.enemySprite.sGun.sBarrel._rotation = angle + 180; } } else { radians = -angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = angle; } else { _root.enemySprite.sGun.sBarrel._rotation = -angle + 180; } } if (death) { if (_global.difficulty > 2) { phase = 3; _root.ground.gotoAndStop(3); maxJump = -28; life = _root.totalLife; _root.healthRefill(life); shotTimer = 50; death = false; _root.springfloorspring.stop(); _root.springland.stop(); _root.springjump.stop(); _root.springtopspring.stop(); } else { xVel = 0; yVel = 0; _root.enemySprite.gotoAndStop('springdeath'); _root.clearFunction(); phase = 4; } } } else { if (phase == 3) { if (charDirection == 'left') { _root.enemySprite._xscale = xScale; } else { _root.enemySprite._xscale = -xScale; } if (running) { if (charDirection == 'left') { xVel = xMax; } else { xVel = xMax; } } if (jumping) { if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { running = false; jumping = false; xMax = 0; } } } else { running = false; xMax = 0; _root.enemySprite.play(); } xPlayer = _root.player._x; yPlayer = _root.player._y; a = Math.abs(_y - yPlayer - (_root.player._height + 50)); b = _x - xPlayer; c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); angle = Math.atan(b / a) * 180 / Math.PI + 90; if (charDirection == 'right') { if (angle > 40) { angle = 40; } } else { if (angle < 140) { angle = 140; } } if (yPlayer - (_root.player._height + 45) > _y - 175) { radians = angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = -angle; } else { _root.enemySprite.sGun.sBarrel._rotation = angle + 180; } } else { radians = -angle * 0.0174532925199433; if (charDirection == 'right') { _root.enemySprite.sGun.sBarrel._rotation = angle; } else { _root.enemySprite.sGun.sBarrel._rotation = -angle + 180; } } if (shotTimer > 0) { --shotTimer; } else { _root.parentShot.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i].xVel = Math.cos(radians) * 13; _root['bullet' + _root.i].yVel = Math.sin(radians) * 13; _root['bullet' + _root.i]._x = _x + Math.cos(radians) * 150; _root['bullet' + _root.i]._y = _y - 163 + Math.sin(radians) * 150; ++_root.i; shotTimer = 40; } if (death) { xVel = 0; yVel = 0; _root.enemySprite.gotoAndStop('springdeath'); _root.clearFunction(); _root.springfloorspring.stop(); _root.springland.stop(); _root.springjump.stop(); _root.springtopspring.stop(); phase = 4; } } else { if (phase == 4) { xVel = 0; xMax = 0; yVel = 0; jumping = false; _root.springfloorspring.stop(); _root.springland.stop(); _root.springjump.stop(); _root.springtopspring.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } instance parentShot of movieClip 1742 { onClipEvent (load) { if (_name != 'parentShot') { _root.springenergy.start(); } } onClipEvent (enterFrame) { if (_name != 'parentShot') { _x = _x + xVel; _y = _y + yVel; if (_root.ground.hitTest(_x, _y, true)) { this.play(); } } } } instance parentForce of movieClip 1742 { onClipEvent (load) { if (_name != 'parentForce') { _y = _root.enemy._y - 5; _x = _root.enemy._x; } } onClipEvent (enterFrame) { if (_name != 'parentForce') { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true)) { this.play(); } if (_y < 600) { if (_x < 320 or _x > 600) { this.play(); } } } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } movieClip 1911 { frame 1 { stop(); } instance of movieClip 493 { onClipEvent (load) { _visible = false; damage = 4; } onClipEvent (enterFrame) { if (hitTest(_root.playerSprite.hitBox)) { _root.hurtFunction(damage); } } } } instance of movieClip 1911 { onClipEvent (load) { timer = 50; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_currentframe == 36) { _root.springtopspring.start(); } if (timer > 0) { --timer; } else { this.play(); timer = 250; } } } } instance of movieClip 1911 { onClipEvent (load) { timer = 100; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_currentframe == 36) { _root.springtopspring.start(); } if (timer > 0) { --timer; } else { this.play(); timer = 250; } } } } instance of movieClip 1911 { onClipEvent (load) { timer = 150; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_currentframe == 36) { _root.springtopspring.start(); } if (timer > 0) { --timer; } else { this.play(); timer = 250; } } if (_root.enemy.phase > 1) { timer = 250; } } } instance of movieClip 1911 { onClipEvent (load) { timer = 200; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_currentframe == 36) { _root.springtopspring.start(); } if (timer > 0) { --timer; } else { this.play(); timer = 250; } } if (_root.enemy.phase > 1) { timer = 250; } } } instance of movieClip 1911 { onClipEvent (load) { timer = 250; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (_currentframe == 36) { _root.springtopspring.start(); } if (timer > 0) { --timer; } else { this.play(); timer = 250; } } if (_root.enemy.phase > 1) { timer = 250; } } } instance of movieClip 1911 { onClipEvent (load) { timer = 200; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (timer > 0) { --timer; } else { this.play(); timer = 250; } } if (_root.enemy.phase > 1) { timer = 250; } } } instance of movieClip 1911 { onClipEvent (load) { timer = 150; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (timer > 0) { --timer; } else { this.play(); timer = 250; } } if (_root.enemy.phase > 1) { timer = 250; } } } instance of movieClip 1911 { onClipEvent (load) { timer = 100; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (timer > 0) { --timer; } else { this.play(); timer = 250; } } } } instance of movieClip 1911 { onClipEvent (load) { timer = 50; } onClipEvent (enterFrame) { if (_global.difficulty == 3) { if (timer > 0) { --timer; } else { this.play(); timer = 250; } } } } frame 262 { clearFunction(); } frame 277 { gotoAndStop('stageselection'); } frame 278 { stop(); i = 0; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; i = 0; _global.difficulty = 1; playerLife = 65; pTotalLife = 65; enemyLife = 200; totalLife = 200; percentage = enemyLife / totalLife; pPercentage = playerLife / pTotalLife; } instance ground of movieClip 400 { onClipEvent (load) { _visible = false; } } movieClip 1914 { } movieClip 1920 { } movieClip 1930 { frame 1 { stop(); } } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; death = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (_global.megaCharge) { dotSprite = new Color(_root.playerSprite); dotSColor = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 150, 'ba': 100, 'bb': 200}; dotSprite.setTransform(dotSColor); } } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!death) { if (!jumping && !sliding && !ducking && !injured && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured) { if (Key.isDown(37) or Key.isDown(65)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39) or Key.isDown(68)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(90) or Key.isDown(75)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } if (Key.isDown(40) or Key.isDown(83)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured) { _root.playerslide.start(); sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured) { ducking = true; duckControl = true; } } } if (sliding && !injured) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(90) && !Key.isDown(75) && !Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { jumping = false; trackJump = 0; } if (Key.isDown(38) or Key.isDown(87) or Key.isDown(32)) { if (!Key.isDown(40) && !Key.isDown(83)) { if (trackJump < 2 && !jumpControl && !injured) { _root.laser.removeMovieClip(); _root.playerjump.start(); jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(38) && !Key.isDown(87) && !Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40) && !Key.isDown(83)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(88) or Key.isDown(74)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } else { if (death) { _root.playerSprite.gotoAndStop('dead'); } } } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { dotColor = new Color(_root.enemySprite); dotTransform = {'ra': 100, 'rb': 255, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; dotBlank = new Color(_root.enemySprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; phase = 1; injuredSet = 8; injuredTimer = injuredSet; attackTimer = 20; commandTimer = 55; responseTimer = 55; command = 0; attacking = false; completed = false; death = false; injured = false; flicker = false; _root.enemySprite.gotoAndStop(3); } onClipEvent (enterFrame) { if (injured) { if (injuredTimer > 0) { --injuredTimer; if (!flicker) { dotColor.setTransform(dotTransform); dotColor2.setTransform(dotTransform); flicker = true; } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); flicker = false; } } else { dotBlank.setTransform(dotReset); dotBlank2.setTransform(dotReset); flicker = false; injuredTimer = injuredSet; injured = false; } } if (_root.player.death) { _root.p.removeMovieClip(); _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); } if (phase == 1) { if (!_root.player.death) { if (attacking) { if (attackTimer > 0) { --attackTimer; _root.laser1.removeMovieClip(); _root.p.removeMovieClip(); _root.createEmptyMovieClip('laser1', _root.getNextHighestDepth()); _root.laser1.moveTo(_root.enemySprite._x - 83, _root.enemySprite._y - 118); _root.laser1.lineStyle(28, 12585996, 100); _root.laser1.lineTo(_root.pp._x, _root.pp._y); _root.laser1.moveTo(_root.enemySprite._x - 83, _root.enemySprite._y - 118); _root.laser1.lineStyle(26, 16359327, 100); _root.laser1.lineTo(_root.pp._x, _root.pp._y); _root.laser1.moveTo(_root.enemySprite._x - 83, _root.enemySprite._y - 118); _root.laser1.lineStyle(23, 268435455, 100); _root.laser1.lineTo(_root.pp._x, _root.pp._y); _root.parentP.duplicateMovieClip('p', _root.getNextHighestDepth()); } else { attacking = false; attackTimer = 20; _root.enemySprite.iAttack.play(); _root.p.removeMovieClip(); _root.laser1.removeMovieClip(); } } if (commandTimer > 0) { --commandTimer; if (commandTimer == 1) { command = Math.ceil(Math.random() * 7) + 1; _root.ecommands.gotoAndStop(command); _root.enemySprite.gotoAndStop(4); } } else { if (responseTimer > 0) { --responseTimer; switch (command) { case 2: if (_root.playerSprite._currentframe == 7 or _root.playerSprite._currentframe == 8) { completed = true; } break; case 3: if (_root.playerSprite._currentframe == 1 or _root.playerSprite._currentframe == 2) { completed = true; } break; case 4: if (_root.playerSprite._currentframe == 3 or _root.playerSprite._currentframe == 4) { completed = true; } break; case 5: if (_root.playerSprite._currentframe == 5 or _root.playerSprite._currentframe == 6) { completed = true; } break; case 6: if (_root.reticule.bulletControl) { completed = true; } break; case 7: if (_root.playerSprite._currentframe == 13 or _root.playerSprite._currentframe == 14) { completed = true; } break; case 8: if (_root.playerSprite._currentframe == 11 or _root.playerSprite._currentframe == 12) { completed = true; } } } else { if (completed) { _root.instructocorrect.start(); if (_root.enemyLife > 150) { commandTimer = 50; responseTimer = 50; } else { if (_root.enemyLife > 100 && _root.enemyLife <= 150) { commandTimer = 40; responseTimer = 40; } else { if (_root.enemyLife > 50 && _root.enemyLife <= 100) { commandTimer = 30; responseTimer = 30; } else { commandTimer = 25; responseTimer = 25; } } } completed = false; } else { _root.enemySprite.gotoAndStop(5); } _root.ecommands.gotoAndStop(1); } } } else { _root.enemySprite.iAttack.play(); } if (death) { _root.enemySprite.gotoAndStop('instructodeath'); _root.clearFunction(); _global.13_1 = true; n = 1; while (n <= 13) { m = 1; while (m <= 4) { _root.bossSave.data[n.toString() + '_' + m.toString()] = _global[n.toString() + '_' + m.toString()]; ++m; } ++n; } _root.bossSave.flush(); phase = 4; } } else { if (phase == 4) { _root.laser1.removeMovieClip(); _root.p1.removeMovieClip(); _root.laser2.removeMovieClip(); _root.p2.removeMovieClip(); _root.laser3.removeMovieClip(); _root.p3.removeMovieClip(); _root.laser4.removeMovieClip(); _root.p4.removeMovieClip(); _root.laser5.removeMovieClip(); _root.p5.removeMovieClip(); _root.laser6.removeMovieClip(); _root.p6.removeMovieClip(); attacking = false; _root.instructocorrect.stop(); _root.instructoincorrect.stop(); _root.instructolaser.stop(); _root.instructotalk1.stop(); _root.instructotalk2.stop(); _root.instructotalk3.stop(); _root.wheelpowerup.stop(); _root.musicstarter.stop(); _root.musicchallenging.stop(); _root.musicdeadly.stop(); } } } } instance of movieClip 948 { onClipEvent (load) { totalWidth = _width; totalCharge = _global.acCharge; currentCharge = _global.acCharge; cPercentage = currentCharge / totalCharge; dotBlank = new Color(_root.playerSprite); dotReset = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0}; if (!_global.megaCharge) { _alpha = 0; } } onClipEvent (enterFrame) { _width = totalWidth * cPercentage; if (currentCharge > 0) { --currentCharge; } else { _alpha = 0; _global.megaCharge = false; dotBlank.setTransform(dotReset); } cPercentage = currentCharge / totalCharge; } } instance qualitydisplay of movieClip 534 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; _root.playershoot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 15; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; _root.playerchargeshot.start(); if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; ++_root.totalShots; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or this.hitTest(_root.enemySprite.enemyHit)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (this.hitTest(_root.enemySprite.enemyHit)) { _root.damageFunction(damage); } this.removeMovieClip(); } } } } instance parentP of movieClip 570 { onClipEvent (load) { if (_name == 'p') { this.gotoAndStop(2); _x = _root.player._x; _y = _root.player._y - 50; } } onClipEvent (enterFrame) { if (_name == 'p') { _x = _root.player._x; _y = _root.player._y - 50; } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; startTimer = 17; } onClipEvent (enterFrame) { if (startTimer > 0) { --startTimer; } else { if (!Key.isDown(88) && !Key.isDown(74)) { bulletControl = false; } if (!_global.megaCharge) { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { _root.playercharging.stop(); charge = 0; } } else { if (Key.isDown(88) or Key.isDown(74)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } } } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge == 5) { _root.playercharging.start(); } if (_global.megaCharge) { charge = 15; charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } } onClipEvent (keyUp) { if (!Key.isDown(88) && !Key.isDown(74)) { if (charged && !_global.megaCharge) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } instance pp of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x; _y = _root.player._y - 50; } onClipEvent (enterFrame) { _x = _root.player._x; _y = _root.player._y - 50; } } frame 279 { clearFunction(); } frame 294 { gotoAndStop('stageselection'); } frame 295 { function hurtFunction(damage) { if (!_root.player.injured && !_root.player.recovery) { if (playerLife - damage > 0) { playerLife -= damage; } else {} _root.player.recovery = true; _root.player.injured = true; if (_root.player.charDirection == 'right') { _root.player.xVel = -3; } else { _root.player.xVel = 3; } } } function damageFunction(damage) { if (!_root.enemy.injured) { if (enemyLife - damage > 0) { enemyLife -= damage; } else { _root.enemy.death = true; } _root.enemy.injured = true; } trace(enemyLife); } function clearFunction() { v = 0; while (v <= _root.i) { _root['laser' + v].removeMovieClip(); _root['p' + v].removeMovieClip(); _root['bullet' + v].removeMovieClip(); ++v; } } stop(); i = 0; g = 1; gravity = 2; playerHeight = 50; enemyHeight = 50; xLaser = 0; yLaser = 0; xeLaser = 0; yeLaser = 0; playerLife = 50; enemyLife = 10; i = 0; } instance player of movieClip 465 { onClipEvent (load) { _visible = false; xVel = 0; xMax = 12; xAccel = 3; xDecel = 1; yVel = 0; gravity = _root.gravity; slideVel = 24; slideSet = 10; slideLength = slideSet; trackJump = 0; trackVel = 0; startTimer = 2; maxJump = -24; maxFall = 24; fireCounter = 0; injuredTimer = 12; recoveryTimer = 30; charDirection = 'right'; jumping = false; sliding = false; ducking = false; jumpControl = false; slideControl = false; duckControl = false; injured = false; recovery = false; stuck = false; gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; } onClipEvent (enterFrame) { gDistance = _root.gd.dDistance; g2Distance = _root.g2d.dDistance; uDistance = _root.ud.dDistance; u2Distance = _root.u2d.dDistance; lDistance = _root.ld.dDistance; rDistance = _root.rd.dDistance; if (startTimer > 0) { --startTimer; } else { if (!jumping && !sliding && !ducking && !injured && !stuck && yVel == 0) { if (charDirection == 'right') { if (xVel <= 2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } else { if (xVel >= -2) { _root.playerSprite.gotoAndStop('stand' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('run' + charDirection.toString()); } } } else { if (!jumping && !sliding && ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('duck' + charDirection.toString()); } else { if (!jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slide' + charDirection.toString()); } else { if (jumping && sliding && !ducking && !injured && !stuck) { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel <= 0) { if (trackJump == 1) { _root.playerSprite.gotoAndStop('jump' + charDirection.toString()); } else { _root.playerSprite.gotoAndStop('slidejump' + charDirection.toString()); } } else { if (jumping && !sliding && !ducking && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (!sliding && !injured && !stuck && yVel > 0) { _root.playerSprite.gotoAndStop('fall' + charDirection.toString()); } else { if (injured) { _root.playerSprite.gotoAndStop('hurt' + charDirection.toString()); } else { if (stuck) { _root.playerSprite.gotoAndStop('stuck' + charDirection.toString()); } } } } } } } } } while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } _x = _x + xVel; _root.xLaser += xVel; if (stuck) { xVel = 0; slideLength = slideSet; sliding = false; if (jumping) { jumping = false; trackJump = 0; yVel = 0; } } if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = 12; injured = false; } } if (recovery) { if (recoveryTimer > 0) { stuck = false; --recoveryTimer; if (recoveryTimer <= 18) { _root.playerSprite._alpha = Math.random() * 25 + 50; } } else { _root.playerSprite._alpha = 100; recoveryTimer = 30; recovery = false; } } if (!sliding && !ducking && !injured && !stuck) { if (Key.isDown(37)) { if (xVel > -xMax) { xVel -= xAccel; } else { xVel = -xMax; } charDirection = 'left'; } else { if (Key.isDown(39)) { if (xVel < xMax) { xVel += xAccel; } else { xVel = xMax; } charDirection = 'right'; } else { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } } } if (ducking && !injured && !stuck) { if (xVel > 0) { xVel -= xDecel; } else { if (xVel < 0) { xVel += xDecel; } } } if (lDistance == 1 or rDistance == 1) { if (sliding) { sliding = false; xVel = trackVel; slideLength = slideSet; } } if (Key.isDown(40)) { if (Key.isDown(32)) { if (!jumping && !sliding && !slideControl && !injured && !stuck) { sliding = true; if (ducking) { duckControl = true; } else { duckControl = false; } ducking = false; jumpControl = true; slideControl = true; trackVel = xVel; } } else { if (!sliding && !jumping && !injured && !stuck) { ducking = true; duckControl = true; } } } if (sliding && !injured && !stuck) { if (charDirection == 'left') { xVel = -slideVel; } else { xVel = slideVel; } if (slideLength > 0) { --slideLength; } else { if (!jumping) { xVel = trackVel; slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } } else { if (sliding && injured) { slideLength = slideSet; sliding = false; if (duckControl) { ducking = true; } } } if (slideControl) { if (!Key.isDown(32)) { if (slideLength == slideSet) { slideControl = false; } } } if (gDistance == 1 or g2Distance == 1) { if (_root.enemy.phase != 3) { jumping = false; trackJump = 0; } else { trackJump = 0; jumping = true; jumpControl = true; ++trackJump; yVel = maxJump * 1.75; } } if (Key.isDown(32)) { if (!Key.isDown(40)) { if (trackJump < 2 && !jumpControl && !injured && !stuck) { jumping = true; jumpControl = true; ++trackJump; yVel = maxJump; } } } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _root.yLaser += yVel; _y = _y + yVel; if (!Key.isDown(32)) { jumpControl = false; } if (!Key.isDown(40)) { ducking = false; duckControl = false; } if (fireCounter > 0) { --fireCounter; } else { firing = false; } if (Key.isDown(38)) { fireCounter = 4; if (!firing) { firing = true; } } _root.gd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.ud._x = _x - _width / 2; _root.u2d._x = _x - _width / 2; _root.rd._y = _y - _height / 2; _root.ld._y = _y - _height / 2; _root.playerSprite._x = _x; _root.playerSprite._y = _y; } } } instance gd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance ud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x - _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance g2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y; i = _root.player._y; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y; dDistance = Math.round(_y - _root.player._y); } } instance u2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height - _root.playerHeight; i = _root.player._y - _root.player._height; hit = true; } onClipEvent (enterFrame) { _x = _root.player._x + _root.player._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.player._y - _root.player._height - _root.playerHeight; dDistance = Math.round(_root.player._y - _root.player._height - _root.playerHeight - _y); } } instance rd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x + _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x + _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.player.xVel / 10; i = _root.player._x + _root.player._width / 2; dDistance = Math.round(_x - (_root.player._x + _root.player._width / 2)); } } instance ld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.player._x - _root.player._width / 2; _y = _root.player._y - _root.player._height / 2; i = _root.player._x - _root.player._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.player._y - _root.player._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.player.xVel / 10; hit = false; i = _root.player._x - _root.player._width / 2; dDistance = Math.round(_root.player._x - _root.player._width / 2 - _x); } } instance parentBullet of movieClip 568 { onClipEvent (load) { if (_name == 'parentBullet') { } else { damage = 1; if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; } } onClipEvent (enterFrame) { if (_name == 'parentBullet') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } } instance parentFlash of movieClip 570 { onClipEvent (enterFrame) { if (_name != 'parentFlash') { if (_alpha > 0) { _alpha = _alpha - 5; } else { this.removeMovieClip(); } } } } instance parentCharge of movieClip 574 { onClipEvent (load) { if (_name == 'parentCharge') { } else { damage = 3; if (_root.player.charDirection == 'right') { _x = _root.xLaser + 20; xVel = 40; } else { _xscale = -_xscale; _x = _root.xLaser - 20; xVel = -40; } _y = _root.yLaser; } } onClipEvent (enterFrame) { if (_name == 'parentCharge') { } else { _x = _x + xVel; if (_root.ground.hitTest(_x, _y, true) or _root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; _root['flash' + _root.i]._xscale = 150; _root['flash' + _root.i]._yscale = 150; ++_root.i; if (_root.enemySprite.enemyHit.hitTest(_x, _y, true)) { _root.damageFunction(damage); } this.removeMovieClip(); } } t = 1; while (t <= 10) { if (_root['seg' + t].enemyHit.hitTest(_x, _y, true)) { _root.parentFlash.duplicateMovieClip('flash' + _root.i, _root.getNextHighestDepth()); _root['flash' + _root.i]._x = _x - xVel / 2; _root['flash' + _root.i]._y = _y; ++_root.i; _root.damageFunction(damage); this.removeMovieClip(); } ++t; } } } instance reticule of movieClip 582 { onClipEvent (load) { charDirection = _root.player.charDirection; charge = 0; bulletControl = false; hit = true; charged = false; } onClipEvent (enterFrame) { if (!Key.isDown(38)) { bulletControl = false; } if (Key.isDown(38)) { if (!bulletControl && !_root.player.injured) { _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentBullet.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; bulletControl = true; this.gotoAndStop(2); } ++charge; } else { charge = 0; } if (charge >= 15) { charged = true; _root.playerSprite.sprite.ball.gotoAndStop('charged'); } if (charge >= 5 && !charged) { _root.playerSprite.sprite.ball.play(); } else { if (!charged) { _root.playerSprite.sprite.ball.gotoAndStop(1); } } charDirection = _root.player.charDirection; } onClipEvent (keyUp) { if (!Key.isDown(38)) { if (charged) { charged = false; _root.playerSprite.sprite.wFire.gotoAndPlay(2); _root.parentCharge.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); ++_root.i; } } } } movieClip 1931 { } instance egd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eud of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x - _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance eg2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y; i = _root.enemy._y; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y + 10, true) && !_root.platform.hitTest(_x, _y + 10, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true) or _root.platform.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y; dDistance = Math.round(_y - _root.enemy._y); } } instance eu2d of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height - _root.enemyHeight; i = _root.enemy._y - _root.enemy._height; hit = true; } onClipEvent (enterFrame) { _x = _root.enemy._x + _root.enemy._width / 2; while (!hit) { _y = i; if (!_root.ground.hitTest(_x, _y - 10, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; i = _root.enemy._y - _root.enemy._height - _root.enemyHeight; dDistance = Math.round(_root.enemy._y - _root.enemy._height - _root.enemyHeight - _y); } } instance erd of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x + _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x + _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x + 10, _y, true)) { i += 10; } else { i += 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } hit = false; _x = _x - _root.enemy.xVel / 10; i = _root.enemy._x + _root.enemy._width / 2; dDistance = Math.round(_x - (_root.enemy._x + _root.enemy._width / 2)); } } instance eld of movieClip 467 { onClipEvent (load) { _visible = false; _x = _root.enemy._x - _root.enemy._width / 2; _y = _root.enemy._y - _root.enemy._height / 2; i = _root.enemy._x - _root.enemy._width / 2; hit = true; } onClipEvent (enterFrame) { _y = _root.enemy._y - _root.enemy._height / 2; while (!hit) { _x = i; if (!_root.ground.hitTest(_x - 10, _y, true)) { i -= 10; } else { i -= 0.5; } if (_root.ground.hitTest(_x, _y, true)) { hit = true; } } _x = _x - _root.enemy.xVel / 10; hit = false; i = _root.enemy._x - _root.enemy._width / 2; dDistance = Math.round(_root.enemy._x - _root.enemy._width / 2 - _x); } } instance enemy of movieClip 222 { onClipEvent (load) { xVel = 0; xMax = -3; yVel = 0; maxFall = 24; gravity = 0; startTimer = 2; phase = 0; introTimer = 25; injuredSet = 10; injuredTimer = injuredSet; xScale = _root.enemySprite._xscale; charDirection = 'left'; hit = false; injured = false; death = false; gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x; yPlayer = _root.player._y; } onClipEvent (enterFrame) { gDistance = _root.egd.dDistance; g2Distance = _root.eg2d.dDistance; uDistance = _root.eud.dDistance; u2Distance = _root.eu2d.dDistance; lDistance = _root.eld.dDistance; rDistance = _root.erd.dDistance; xPlayer = _root.player._x; yPlayer = _root.player._y; if (startTimer > 0) { --startTimer; } else { while (lDistance + xVel <= 0) { ++xVel; } while (rDistance - xVel <= 0) { --xVel; } if (yVel < maxFall) { yVel += gravity; } else { yVel = maxFall; } while (gDistance - yVel <= 0 or g2Distance - yVel <= 0) { --yVel; } while (uDistance + yVel <= 0 or u2Distance + yVel <= 0) { ++yVel; } _y = _y + yVel; if (injured) { if (injuredTimer > 0) { --injuredTimer; } else { injuredTimer = injuredSet; injured = false; } } _x = _x + xVel; _root.xeLaser += xVel; _root.yeLaser += yVel; if (gDistance == 1 or g2Distance == 1) { if (yVel == 0) { jumping = false; } } if (phase == 0) { if (introTimer > 0) { --introTimer; } else { phase = 1; } } else { if (phase == 1) { if (death) { phase = 2; _root.enemyLife = 10; death = false; } } else { if (phase == 2) { if (death) { phase = 3; _root.enemyLife = 10; death = false; } } else { if (phase == 3) { if (death) { phase = 4; _root.enemyLife = 10; death = false; } } else { if (phase == 4) { } } } } } _root.egd._x = _x - _width / 2; _root.g2d._x = _x - _width / 2; _root.eud._x = _x - _width / 2; _root.eu2d._x = _x - _width / 2; _root.erd._y = _y - _height / 2; _root.eld._y = _y - _height / 2; _root.enemySprite._x = _x; _root.enemySprite._y = _y; } } } instance parentMissile of movieClip 1877 { onClipEvent (load) { if (_name != 'parentMissile') { _x = _root.enemy._x; _y = _root.enemy._y; a = Math.abs(_y - (_root.player._y - 50)); b = Math.abs(_x - _root.player._x); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); speed = c / 35; yVel = a / speed; if (_root.player._x > _x) { xVel = b / speed; } else { xVel = -b / speed; } if (_root.player._y > _y) { yVel = a / speed; } else { yVel = -a / speed; } } } onClipEvent (enterFrame) { if (_name != 'parentMissile') { _x = _x + xVel; _y = _y + yVel; if (_root.ground.hitTest(_x, _y, true) or _root.playerSprite.hitBox.hitTest(_x, _y, true)) { this.gotoAndStop(2); xVel = 0; yVel = 0; } if (_currentframe == 1) { _root.parentCloud.duplicateMovieClip('bullet' + _root.i, _root.getNextHighestDepth()); _root['bullet' + _root.i]._x = _x; _root['bullet' + _root.i]._y = _y; if (_root.player._x > (Stage.width / 4) * 3) { if (_root.player.xVel > 0 && _root.player.rDistance > 1) { _root['bullet' + _root.i]._x -= _root.player.xVel; } } else { if (_root.player._x < Stage.width / 4) { if (_root.player.xVel < 0 && _root.player.lDistance > 1) { _root['bullet' + _root.i]._x -= _root.player.xVel; } } } ++_root.i; } } } } instance parentCloud of movieClip 1878 { onClipEvent (load) { if (_name != 'parentCloud') { _xscale = Math.random() * 75 + 50; _yscale = _xscale; } } onClipEvent (enterFrame) { if (_name != 'parentCloud') { _alpha = _alpha - 7.5; if (_alpha <= 0) { this.removeMovieClip(); } } } } movieClip 1933 { } instance parentMine of movieClip 1933 { onClipEvent (load) { if (_name != 'parentMine') { _x = _root.enemy._x; _y = _root.enemy._y; } } } movieClip 1935 { } movieClip 1937 { } movieClip 1940 { } movieClip 1943 { } movieClip 1945 { } movieClip 1946 { } movieClip 1951 { } movieClip 1953 { } instance of movieClip 1953 { onClipEvent (enterFrame) { _rotation = _rotation - 2; } } movieClip 1955 { } instance of movieClip 1955 { onClipEvent (enterFrame) { _rotation = _rotation + 2; } } frame 297 { stop(); enemyDisplay = false; } instance of movieClip 230 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 234 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 238 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 242 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 246 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 250 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 262 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 270 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 283 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 287 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 291 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 295 { onClipEvent (mouseDown) { if (_currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 306 { onClipEvent (enterFrame) { if (Key.isDown(32)) { this.play(); } } } instance of movieClip 324 { onClipEvent (enterFrame) { if (Key.isDown(32)) { this.play(); } } } instance seg1 of movieClip 222 { onClipEvent (load) { dotColor = new Color(this); red = Math.ceil(Math.random() * 255); green = Math.ceil(Math.random() * 255); blue = Math.ceil(Math.random() * 255); percentage = Math.ceil(Math.random() * 50); dotTransform = {'ra': percentage, 'rb': red, 'ga': percentage, 'gb': green, 'ba': percentage, 'bb': blue}; dotColor.setTransform(dotTransform); if (_name == 'seg1') { xVel = 5; yVel = -5; xDir = Math.round(Math.random() * 50); yDir = Math.round(Math.random() * 50); i = 2; while (i <= 350) { this.duplicateMovieClip('seg' + i, _root.getNextHighestDepth()); _root['seg' + i]._xscale = _xscale - i * 0.1; _root['seg' + i]._yscale = _yscale - i * 0.1; ++i; } } } onClipEvent (enterFrame) { _x = _x + xVel; _y = _y + yVel; if (_name == 'seg1') { i = 2; while (i <= 350) { _root['seg' + i].xVel = _root['seg' + (i - 1)]._x - _root['seg' + i]._x; _root['seg' + i].yVel = _root['seg' + (i - 1)]._y - _root['seg' + i]._y; ++i; } xDir = Math.round(Math.random() * 50); yDir = Math.round(Math.random() * 50); if (xVel < xSet) { xVel += 1.5; } if (xVel > xSet) { xVel -= 1.5; } if (yVel < ySet) { yVel += 1.5; } if (yVel > ySet) { yVel -= 1.5; } if (xDir == 25) { if (xSet > 0) { xSet = -(Math.ceil(Math.random() * 9) + 6); } else { xSet = Math.ceil(Math.random() * 9) + 6; } } if (yDir == 25) { if (ySet > 0) { ySet = -(Math.ceil(Math.random() * 9) + 6); } else { ySet = Math.ceil(Math.random() * 9) + 6; } } if (_y < 100) { ySet = Math.ceil(Math.random() * 9) + 6; } if (_y > 600) { ySet = -(Math.ceil(Math.random() * 9) + 6); } if (_x < 100) { xSet = Math.ceil(Math.random() * 9) + 6; } if (_x > 800) { xSet = -(Math.ceil(Math.random() * 9) + 6); } } } }




http://swfchan.com/43/210364/info.shtml
Created: 8/10 -2018 09:24:23 Last modified: 8/10 -2018 09:24:23 Server time: 25/04 -2024 14:14:37