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

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

Kit-And-Octopod.swf

This is the info page for
Flash #125327

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


ActionScript [AS1/AS2]
Combined Code
movieClip 58 firework2 { frame 15 { this.removeMovieClip(); } } movieClip 60 marker { } movieClip 62 { frame 1 { _visible = false; } } movieClip 76 { frame 7 { _parent.gotoAndStop(1); } } movieClip 81 { frame 8 { stop(); } } movieClip 83 { } movieClip 85 { frame 5 { _parent.gotoAndStop(1); } } movieClip 95 { frame 7 { } } movieClip 96 tentapod { frame 1 { stop(); } frame 6 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } } movieClip 98 bld { } movieClip 100 ene1_1 { } movieClip 102 ene1_2 { } movieClip 104 ene1_3 { } movieClip 106 tchest1 { } movieClip 108 tchest2 { } movieClip 110 tchest3 { } movieClip 112 barrel1 { } movieClip 114 barrel2 { } movieClip 116 barrel3 { } movieClip 118 en1_head1 { } movieClip 120 en1_head2 { } movieClip 122 block { } movieClip 124 brick2 { } movieClip 126 brick1 { } movieClip 128 fadeout { frame 1 { _root.inplay = false; onEnterFrame = function () { _x = _root.vcam._x; _y = _root.vcam._y; }; } frame 8 { _root.resetlevel(); _root.gotoAndPlay(this.target); delete this.onEnterFrame; this.removeMovieClip(); } } movieClip 134 { frame 1 { this.gotoAndStop(_root.hero_skin); } } movieClip 135 herohead1 { } movieClip 141 { frame 1 { this.gotoAndStop(_root.hero_skin); } } movieClip 147 { frame 1 { this.gotoAndStop(_root.hero_hair); } } movieClip 148 herohead2 { } movieClip 154 { frame 1 { this.gotoAndStop(_root.hero_skin); } } movieClip 155 herohead3 { } movieClip 157 herobody1 { } movieClip 159 herobody2 { } movieClip 162 { } movieClip 163 lbarcase { } movieClip 173 buzz { } movieClip 175 { frame 9 { stop(); } } movieClip 185 { } movieClip 188 { frame 16 { stop(); } } movieClip 189 { frame 10 { _root.hero._visible = false; _root.hero.gotoAndStop(24); _root.vcam.target = _root.buffalo; } frame 18 { _parent.gotoAndStop(7); } } movieClip 190 { frame 18 { _parent.gotoAndStop(2); } } movieClip 193 { } movieClip 194 buffalo { frame 1 { grav = 0; spd = 25; timer = 10; } frame 2 { stop(); } } movieClip 208 { } movieClip 210 { } movieClip 211 parrot { frame 1 { timer = 10; yvel = 0; xvel = 0; maxspeed = 10; } frame 2 { stop(); } } movieClip 213 buffalotile { } movieClip 215 tentapodtile { } movieClip 217 parrottile { } movieClip 219 worm1 { } movieClip 221 worm2 { } movieClip 223 worm3 { } movieClip 225 worm4 { } movieClip 227 worm5 { } movieClip 231 { } movieClip 233 enelbar { frame 47 { stop(); } } movieClip 243 { } movieClip 244 pt { frame 17 { this.removeMovieClip(); } } movieClip 246 firework1 { frame 15 { this.removeMovieClip(); } } movieClip 248 brute1 { } movieClip 250 brute2 { } movieClip 252 brute3 { } movieClip 254 brute4 { } movieClip 256 brute5 { } movieClip 274 spikebear { frame 1 { if (this.hitTest(_root.vcam)) { _root.spike0.start(0, 0); _root.spike0.setVolume(_root.sfxvol); } --this.count; } frame 4 { onEnterFrame = function () { if (_root.hero.bound.hitTest(this.bound) && _root.hero.life > 0 && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 3; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 13; _root.hero.xvel = 5 * (this._xscale / -100); delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } }; } frame 16 { delete this.onEnterFrame; } frame 21 { this._x -= 75 * (_xscale / 100); if (this.count < 1) { this.removeMovieClip(); } if (_root.enlyr.bear._currentframe == 9) { this.removeMovieClip(); } } } movieClip 277 boulder { frame 4 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 34 { onEnterFrame = function () { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0 && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 7; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 13; if (_x + _root.enlyr._x < _root.hero._x) { _root.hero.xvel = 10; } else { _root.hero.xvel = -10; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } }; } frame 34 { _root.bang.start(0, 0); _root.bang.setVolume(_root.sfxvol / 2); ran = random(2); _root['crate' + ran].start(0, 0); _root['crate' + ran].setVolume(_root.sfxvol / 2); } frame 55 { delete this.onEnterFrame; } frame 56 { this.removeMovieClip(); } } movieClip 279 firework { frame 15 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 15 { n = 0; while (n < 20) { newf = _parent.attachMovie('firework1', 'firework' + n, _parent.getNextHighestDepth()); newf._x = _x; newf._y = _y - 130; newf._rotation = random(360); ++n; } } frame 40 { this._x = random(650); } } movieClip 281 smackhit { frame 7 { this.removeMovieClip(); } } movieClip 296 { } movieClip 309 { } movieClip 316 { frame 20 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.bruteattackFunction(this, _parent._parent); } } frame 32 { _parent.gotoAndStop(_parent.destination); } } movieClip 319 { frame 1 { ran = random(2); gotoAndPlay(['hurt' + ran]); } frame 7 { _parent.gotoAndStop(1); } frame 14 { _parent.gotoAndStop(1); } } movieClip 340 { frame 1 { _root.points += 500; _root.addhit(_parent._x + _root.enlyr._x, _parent._y + _root.enlyr._y, 7); } frame 21 { _parent.swapDepths(_parent._parent.getNextHighestDepth()); _parent.removeMovieClip(); } } movieClip 349 { frame 45 { _root.tentapod.gotoAndStop(5); _root.tentapod.host = 'null'; _root.tentapod._x = _parent._x + _root.enlyr._x + 40 * (_parent._xscale / -100); _root.tentapod._y = _parent._y + _root.enlyr._y - 40; _root.tentapod.xSpeed = 20 * (_parent._xscale / -100); _root.tentapod.grav = 10; } frame 55 { _parent.gotoAndStop(1); } } movieClip 352 { frame 54 { _parent.gotoAndStop(1); } } movieClip 358 { frame 16 { buzz = _root.interact.attachMovie('buzz', 'buzz' + _root.interact.getNextHighestDepth(), _root.interact.getNextHighestDepth()); buzz._x = _parent._x + _root.enlyr._x - _root.interact._x; buzz._y = _parent._y + _root.enlyr._y - _root.interact._y; buzz._xscale = 100; buzz.active = true; buzz.life = 90; _root.buzzArray.push(buzz); buzz = _root.interact.attachMovie('buzz', 'buzz' + _root.interact.getNextHighestDepth(), _root.interact.getNextHighestDepth()); buzz._x = _parent._x + _root.enlyr._x - _root.interact._x; buzz._y = _parent._y + _root.enlyr._y - _root.interact._y; buzz._xscale = -100; buzz.active = true; buzz.life = 90; _root.buzzArray.push(buzz); _root.sawsfx.start(0, 0); _root.sawsfx.setVolume(_root.sfxvol); } frame 32 { _parent.gotoAndStop(1); } } movieClip 359 brute { frame 1 { stop(); } frame 4 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); } frame 5 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); } frame 6 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); } frame 7 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 40, 'bld'); } frame 10 { _root.addbld(this._x + _root.enlyr._x - 5.75, this._y + _root.enlyr._y - 60.65, 'brute1'); _root.addbld(this._x + _root.enlyr._x - 7.55, this._y + _root.enlyr._y - 84.65000000000001, 'brute2'); _root.addbld(this._x + _root.enlyr._x - 12.7, this._y + _root.enlyr._y - 36.35, 'brute3'); _root.addbld(this._x + _root.enlyr._x + 2.15, this._y + _root.enlyr._y - 20.1, 'brute4'); _root.addbld(this._x + _root.enlyr._x + 20.9, this._y + _root.enlyr._y - 47.75, 'brute5'); _root.brutedeath.start(0, 0); _root.brutedeath.setVolume(_root.sfxvol); this.lbar.removeMovieClip(); _root.kills += 1; _root.captainkills += 1; } frame 11 { _root.addbld(this._x + _root.enlyr._x - 5.75, this._y + _root.enlyr._y - 60.65, 'brute1'); _root.addbld(this._x + _root.enlyr._x - 7.55, this._y + _root.enlyr._y - 84.65000000000001, 'brute2'); _root.addbld(this._x + _root.enlyr._x - 12.7, this._y + _root.enlyr._y - 36.35, 'brute3'); _root.addbld(this._x + _root.enlyr._x + 2.15, this._y + _root.enlyr._y - 20.1, 'brute4'); _root.addbld(this._x + _root.enlyr._x + 20.9, this._y + _root.enlyr._y - 47.75, 'brute5'); _root.brutedeath.start(0, 0); _root.brutedeath.setVolume(_root.sfxvol); this.lbar.removeMovieClip(); _root.kills += 1; _root.captainkills += 1; } frame 12 { this.life -= 3; if (this.life < 1) { this.gotoAndStop('sftdead'); _root.points += 1; _root.tentapod.gotoAndStop(5); _root.tentapod._x = this._x + _root.enlyr._x; _root.tentapod._y = this._y + _root.enlyr._y - 30; _root.tentapod.xSpeed = 0; _root.tentapod.grav = 10; } } } movieClip 371 { frame 36 { _parent.removeMovieClip(); } } movieClip 372 arrow { frame 1 { stop(); } } movieClip 374 en1_head { } movieClip 407 { } movieClip 414 { frame 8 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.eneattackFunction(this, 5); } } frame 20 { _parent.gotoAndStop(1); } } movieClip 416 { frame 11 { _parent.gotoAndStop(1); } } movieClip 417 { frame 10 { _parent.gotoAndStop(1); } } movieClip 420 { frame 12 { _parent.gotoAndStop(1); } } movieClip 422 { frame 13 { _parent.gotoAndStop(1); } } movieClip 424 { } movieClip 430 { frame 1 { if (_parent.life < 1) { _parent.gotoAndStop('sftdead'); } } frame 31 { _parent.gotoAndStop(1); } } movieClip 431 { frame 1 { _root.points += 100; _root.addhit(_parent._x + _root.enlyr._x, _parent._y + _root.enlyr._y, 3); } frame 52 { _parent.swapDepths(_parent._parent.getNextHighestDepth()); _parent.removeMovieClip(); } } movieClip 433 { frame 1 { _root.points += 100; _root.addhit(_parent._x + _root.enlyr._x, _parent._y + _root.enlyr._y, 3); } frame 21 { _parent.swapDepths(_parent._parent.getNextHighestDepth()); _parent.removeMovieClip(); } } movieClip 439 { } movieClip 440 { frame 1 { stop(); } frame 5 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 6 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 7 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 8 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 10 { _root.kills += 1; } frame 11 { _root.addbld(this._x + _root.enlyr._x - 5, this._y + _root.enlyr._y - 39, 'en1_head1'); _root.addbld(this._x + _root.enlyr._x + 4, this._y + _root.enlyr._y - 33, 'en1_head2'); _root.addbld(this._x + _root.enlyr._x + 7, this._y + _root.enlyr._y - 14, 'ene1_1'); _root.addbld(this._x + _root.enlyr._x - 2, this._y + _root.enlyr._y - 16, 'ene1_2'); _root.addbld(this._x + _root.enlyr._x + 3, this._y + _root.enlyr._y - 6, 'ene1_3'); _root.kills += 1; } frame 12 { if (life > 0) { ++_root.octoattack; ranoscream = random(3); _root['oscream' + ranoscream].start(0, 0); _root['oscream' + ranoscream].setVolume(_root.sfxvol * 1.5); } } } movieClip 441 enlayer { instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -75; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -75; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneArray.push(this); _root.eneactionArray.push(this); } } } movieClip 444 sparkle { frame 19 { this.swapDepths(_parent.getNextHighestDepth()); this.removeMovieClip(); } } movieClip 446 lbar { } movieClip 456 coin { frame 1 { _root.coinArray.push(this); } frame 20 { gotoAndPlay(2); } } movieClip 457 fadein { frame 1 { _root.inplay = false; onEnterFrame = function () { this.swapDepths(_root.getNextHighestDepth()); this._x = _root.vcam._x; this._y = _root.vcam._y; }; } frame 16 { _root.inplay = true; this.removeMovieClip(); } } movieClip 459 { frame 10 { stop(); } } // unknown tag 88 length 91 movieClip 465 { } movieClip 467 { frame 10 { stop(); } } movieClip 471 { } movieClip 472 meddisp { } movieClip 474 { } movieClip 480 { frame 1 { if (_parent._parent._parent._parent == _root.male && _parent._parent._parent._parent != undefined) { stop(); } else { if (_root.hero_sex == 'f') { this.gotoAndStop(_root.hero_hair + 1); } if (_root.hero_sex == 'm') { this.gotoAndStop(1); } } } } movieClip 485 { frame 1 { this.gotoAndStop(_root.hero_skin); } } movieClip 489 { frame 1 { if (_parent._parent._parent._parent._parent == _root.male && _parent._parent._parent._parent._parent != undefined) { stop(); } else { if (_root.hero_sex == 'f') { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 494 { frame 1 { this.gotoAndStop(_root.hero_hair); } } movieClip 500 { frame 1 { this.gotoAndStop(_root.hero_hair); } } movieClip 501 { frame 1 { if (_parent._parent._parent._parent._parent == _root.male && _parent._parent._parent._parent._parent != undefined) { stop(); } else { if (_root.hero_sex == 'f') { this.gotoAndStop(2); } else { stop(); } } } } movieClip 507 { frame 1 { this.gotoAndStop(_root.hero_hair); } } movieClip 508 { frame 1 { if (_parent._parent._parent._parent._parent == _root.male && _parent._parent._parent._parent._parent != undefined) { stop(); } else { if (_root.hero_sex == 'f') { this.gotoAndStop(2); } else { stop(); } } } } movieClip 514 { frame 1 { this.gotoAndStop(_root.hero_hair); } } movieClip 516 { frame 1 { if (_root.piratemode == true) { this.gotoAndStop(2); } else { stop(); } } } movieClip 518 { frame 1 { if (_parent.notsquidge == true) { play(); } else { gotoAndStop(5); } } frame 5 { _parent.notsquidge = false; } } movieClip 519 { frame 1 { if (_root.tentapod._currentframe == 4 && _root.tentapod.host == 'hero' && _root.hero._currentframe != 16) { this.gotoAndStop(2); } else { stop(); } } } movieClip 520 { } movieClip 537 { frame 16 { gotoAndPlay('cycle'); } } movieClip 557 { frame 1 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.attckFunction(this, 'qh1', 0); } } frame 9 { _parent.gotoAndStop(1); } frame 11 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.attckFunction(this, 'qh2', 0); } } frame 18 { _parent.gotoAndStop(1); } frame 20 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.attckFunction(this, 'qh3', 0); } } frame 29 { _parent.gotoAndStop(1); } frame 31 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { if (Key.isDown(38)) { _root.attckFunction(this, 'qh4', 18, 0 * (_root.hero._xscale / 100)); } else { _root.attckFunction(this, 'qh4', 12, 12 * (_root.hero._xscale / 100)); } } } frame 50 { _parent.gotoAndStop(1); } } movieClip 563 { frame 5 { stop(); } } movieClip 568 { frame 6 { _parent.gotoAndStop(1); } } movieClip 577 { frame 12 { stop(); } frame 28 { stop(); } } movieClip 595 { } movieClip 598 { frame 10 { stop(); } } movieClip 604 { frame 9 { stop(); } } movieClip 614 { frame 6 { _parent.gotoAndStop(9); } } movieClip 615 { frame 5 { _parent.gotoAndStop(1); } } movieClip 632 { frame 3 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh1', 0, 0); } } frame 9 { _parent.gotoAndStop(1); } frame 12 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh2', 0, 0); } } frame 18 { _parent.gotoAndStop(1); } frame 21 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh3', 0, 0); } } frame 27 { _parent.gotoAndStop(1); } frame 30 { randomsound = random(3); _root['swish' + randomsound].start(0, 0); _root['swish' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh2', 0, 0); } } frame 36 { _parent.gotoAndStop(1); } } movieClip 633 { frame 5 { _parent.gotoAndStop(6); } } movieClip 646 { frame 19 { _parent.gotoAndStop(1); } } movieClip 650 { frame 4 { _root.throwsfx.start(0, 0); _root.throwsfx.setVolume(_root.sfxvol + 40); } frame 8 { if (Key.isDown(38)) { _root.tentapod.grav = 20; _root.tentapod.xSpeed = 0; _root.tentapod.gotoAndStop(5); } else { _root.tentapod.grav = 5; _root.tentapod.xSpeed = _root.tentapod._xscale / 5; _root.tentapod.gotoAndStop(5); } this.head.gotoAndStop(1); } frame 11 { _parent.gotoAndStop(1); } } movieClip 653 { frame 11 { _parent.gotoAndStop(1); } } movieClip 661 { frame 1 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh1', 15, 5 * (_root.hero._xscale / 100)); } } frame 8 { stop(); } frame 9 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { _root.hrdattckFunction(this, 'qh1', 15, 5 * (_root.hero._xscale / 100)); } } frame 15 { stop(); } } movieClip 665 { frame 4 { _parent.spell.life = 0; _parent.spell.gotoAndStop('harddead'); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } frame 12 { _parent.gotoAndStop(1); } } movieClip 667 { } movieClip 674 { frame 22 { _parent.gotoAndStop(1); } } movieClip 675 { frame 1 { --_root.continues; _root.hud.conts.gotoAndStop(_root.continues + 1); if (_root.continues > 1) { _root.vcam.target = ''; } if (_root.continues > 0) { _root.points -= 200; if (_root.points < 0) { _root.points = 0; } _root.addhit(_root.hero._x, _root.hero._y - 100, 8); } else { _root.points -= 500; if (_root.points < 0) { _root.points = 0; } _root.addhit(_root.hero._x, _root.hero._y - 100, 9); } } frame 21 { if (_root.continues > 1) { _root.hero._x = _root.checkpoint._x + _root.interact._x; _root.hero._y = _root.checkpoint._y + _root.interact._y; } } frame 22 { if (_root.continues > 1) { _root.vcam.target = _root.hero; } } frame 38 { if (_root.continues > 0) { _root.hero._x = _root.checkpoint._x + _root.interact._x; _root.hero._y = _root.checkpoint._y + _root.interact._y; sparkles = _root.attachMovie('sparkle', 'sp1' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); sparkles._x = _root.hero._x; sparkles._y = _root.hero._y; _root.teleport.start(0, 0); _root.teleport.setVolume(_root.sfxvol); _root.hero.grav = 15; _root.hero.life = 20; _root.hero.gotoAndStop(6); } else { _root.inplay = false; if (_root.hud.death._currentframe == 1) { _root.hud.death.gotoAndPlay(2); } stop(); } } } movieClip 676 hero { frame 1 { stop(); } frame 1 { delete this.onEnterFrame; _root.vcam.txs = 100; attkpwr = 0; this.jumpdelay = 0; onEnterFrame = function () { if (_root.inplay == true) { if (Key.isDown(37) && 0 == Key.isDown(65) && this.onLwall != true) { this.gotoAndStop(2); delete this.onEnterFrame; } if (Key.isDown(39) && 0 == Key.isDown(65) && this.onRwall != true) { this.gotoAndStop(2); delete this.onEnterFrame; } if (this._xscale == 100 && this.onRwall) { if (Key.isDown(38)) { this.grav = 2; this.gotoAndStop(8); delete this.onEnterFrame; } } if (this._xscale == -100 && this.onLwall) { if (Key.isDown(38)) { this.grav = 2; this.gotoAndStop(8); delete this.onEnterFrame; } } if (0 == Key.isDown(65) && attkpwr > 0) { if (attkpwr < 10) { attkpwr = 0; combo += 1; if (combo > 3) { combo = 1; } this.gotoAndStop(3); delete this.onEnterFrame; } } if (Key.isDown(65)) { ++attkpwr; if (attkpwr > 6) { attkpwr = 0; strcombo += 1; if (strcombo > 4) { strcombo = 1; } this.gotoAndStop(13); delete this.onEnterFrame; } } if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { this.gotoAndStop(6); grav = 13; delete this.onEnterFrame; } if (0 == this.onGround) { delete this.onEnterFrame; this.gotoAndStop(6); } if (Key.isDown(68) && _root.tentapod._currentframe == 4 && _root.tentapod.host == 'hero') { this.gotoAndStop(16); delete this.onEnterFrame; } } }; } frame 2 { delete this.onEnterFrame; onEnterFrame = function () { if (_root.inplay == true) { this._x += this._xscale / 15; if (this.xvel < this.mxs && this._xscale == 100) { this.xvel += this._xscale / 50; } if (this.xvel > -this.mxs && this._xscale == -100) { this.xvel += this._xscale / 50; } if (this._xscale == 100 && Key.isDown(37)) { this._xscale = -100; } if (this._xscale == -100 && Key.isDown(39)) { this._xscale = 100; } if (0 == Key.isDown(39) && 0 == Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(4); } if (0 == Key.isDown(65) && attkpwr > 0) { if (attkpwr < 10) { attkpwr = 0; combo += 1; if (combo > 3) { combo = 1; } this.gotoAndStop(3); delete this.onEnterFrame; } } if (Key.isDown(65)) { ++attkpwr; if (attkpwr > 6) { attkpwr = 0; strcombo += 1; if (strcombo > 4) { strcombo = 1; } this.gotoAndStop(13); delete this.onEnterFrame; } } if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { this.gotoAndStop(6); grav = 13; delete this.onEnterFrame; } if (this._xscale == 100 && this.onRwall) { if (Key.isDown(38)) { this.grav = 2; this.gotoAndStop(8); delete this.onEnterFrame; } else { this.gotoAndStop(1); delete this.onEnterFrame; } } if (this._xscale == -100 && this.onLwall) { if (Key.isDown(38)) { this.grav = 2; this.gotoAndStop(8); delete this.onEnterFrame; } else { this.gotoAndStop(1); delete this.onEnterFrame; } } if (0 == this.onGround) { delete this.onEnterFrame; this.gotoAndStop(6); } if (Key.isDown(68) && _root.tentapod._currentframe == 4 && _root.tentapod.host == 'hero') { this.gotoAndStop(16); delete this.onEnterFrame; } } }; } frame 3 { delete this.onEnterFrame; this.attack_mc.gotoAndPlay('combo' + combo); onEnterFrame = function () { if (_root.inplay == true) { if (Key.isDown(37)) { this._xscale = -100; } if (Key.isDown(39)) { this._xscale = 100; } } }; } frame 4 { delete this.onEnterFrame; onEnterFrame = function () { if (_root.inplay == true) { this._x += this.xvel; this.xvel = 0; if (this.xvel > 0) { this.xvel -= 1; } if (this.xvel < 0) { this.xvel += 1; } if (Math.abs(this.xvel) < 1) { delete this.onEnterFrame; this.gotoAndStop(5); } if (Key.isDown(37) && 0 == Key.isDown(65) && this.onLwall != true) { this.gotoAndStop(2); delete this.onEnterFrame; } if (Key.isDown(39) && 0 == Key.isDown(65) && this.onRwall != true) { this.gotoAndStop(2); delete this.onEnterFrame; } if (0 == Key.isDown(65) && attkpwr > 0) { if (attkpwr < 10) { attkpwr = 0; combo += 1; if (combo > 3) { combo = 1; } this.gotoAndStop(3); delete this.onEnterFrame; } } if (Key.isDown(65)) { ++attkpwr; if (attkpwr > 6) { attkpwr = 0; strcombo += 1; if (strcombo > 4) { strcombo = 1; } this.gotoAndStop(13); delete this.onEnterFrame; } } if (Key.isDown(68) && _root.tentapod._currentframe == 4) { this.gotoAndStop(16); delete this.onEnterFrame; } if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { this.gotoAndStop(6); grav = 13; delete this.onEnterFrame; } } }; } frame 5 { delete this.onEnterFrame; this.xvel = 0; onEnterFrame = function () { if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { this.gotoAndStop(6); grav = 13; delete this.onEnterFrame; } if (0 == Key.isDown(65) && attkpwr > 0) { if (attkpwr < 10) { attkpwr = 0; combo += 1; if (combo > 3) { combo = 1; } this.gotoAndStop(3); delete this.onEnterFrame; } } if (Key.isDown(65)) { ++attkpwr; if (attkpwr > 6) { attkpwr = 0; strcombo += 1; if (strcombo > 4) { strcombo = 1; } this.gotoAndStop(13); delete this.onEnterFrame; } } }; } frame 6 { delete this.onEnterFrame; onEnterFrame = function () { if (_root.inplay == true) { this._x += this.xvel; if (this.xvel > 0) { this.xvel -= 0.2; } if (this.xvel < 0) { this.xvel += 0.2; } --this.jumpdelay; if (Key.isDown(39) && this.jumpdelay < 1) { if (this._xscale == -100) { this._xscale = 100; } if (this.xvel < this.mxs && this._xscale == 100) { this.xvel += this._xscale / 100; } } if (Key.isDown(37) && this.jumpdelay < 1) { if (this._xscale == 100) { this._xscale = -100; } if (this.xvel > -this.mxs && this._xscale == -100) { this.xvel += this._xscale / 100; } } if (this.onGround == true) { if (Math.abs(this.xvel) > 0) { if (0 == Key.isDown(39) && 0 == Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(4); } if (Key.isDown(39) or Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(2); } } else { this.xvel = 0; this.gotoAndStop(12); delete this.onEnterFrame; } } if (this.grav > 0 && this.jump_mc._currentframe > 12) { this.jump_mc.gotoAndPlay(1); } if (this.grav < 1 && this.jump_mc._currentframe < 13) { this.jump_mc.gotoAndPlay(13); } if (this.onRwall == true && this._xscale == 100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } if (this.onLwall == true && this._xscale == -100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } if (Key.isDown(65)) { jumpcombo += 1; if (jumpcombo > 1) { jumpcombo = 0; } this.gotoAndStop(18); delete this.onEnterFrame; } if (Key.isDown(68) && _root.tentapod._currentframe == 4 && _root.tentapod.host == 'hero') { this.gotoAndStop(16); delete this.onEnterFrame; } } }; } frame 7 { delete this.onEnterFrame; onEnterFrame = function () { if (_root.inplay == true) { if (0 == Key.isDown(37) && 0 == Key.isDown(39)) { delete this.onEnterFrame; this.gotoAndStop(1); } } }; } frame 8 { delete this.onEnterFrame; timeup = 0; xvel = 0; yvel = -7; toggled = false; onEnterFrame = function () { if (_root.inplay == true) { this._y += this.yvel; this.yvel += 0.3; if (this.yvel > 0) { yvel = 0; grav = 0; delete this.onEnterFrame; this.gotoAndStop(11); } if (this.onRwall != true && this._xscale == 100) { delete this.onEnterFrame; this.gotoAndStop(10); } if (this.onLwall != true && this._xscale == -100) { delete this.onEnterFrame; this.gotoAndStop(10); } if (this._xscale == 100 && Key.isDown(37)) { delete this.onEnterFrame; grav = 11; this.gotoAndStop(6); } if (this._xscale == -100 && Key.isDown(39)) { delete this.onEnterFrame; grav = 11; this.gotoAndStop(6); } if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { delete this.onEnterFrame; grav = 11; if (this._xscale == 100 && toggled == false) { this.xvel = -5; toggled = true; this._xscale = -100; this.jumpdelay = 10; } if (this._xscale == -100 && toggled == false) { this.xvel = 5; toggled = true; this._xscale = 100; this.jumpdelay = 10; } this.gotoAndStop(6); } } }; } frame 9 { onEnterFrame = function () { if (_root.inplay == true) { if (this.onGround == true) { delete this.onEnterFrame; this._xscale *= -1; this.gotoAndStop(12); } if (0 == this.onLwall && 0 == this.onRwall) { delete this.onEnterFrame; this.gotoAndStop(6); } if (this._xscale == -100 && (Key.isDown(39) or Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) && this.onLwall == true) { delete this.onEnterFrame; grav = 11; this._xscale *= -1; xvel = 5; this.gotoAndStop(14); } if (this._xscale == 100 && (Key.isDown(37) or Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) && this.onRwall == true) { delete this.onEnterFrame; grav = 11; this._xscale *= -1; xvel = -5; this.gotoAndStop(14); } if (Key.isDown(40) && this.grav < -2) { delete this.onEnterFrame; this._xscale *= -1; this.gotoAndStop(6); } } }; } frame 10 { onEnterFrame = function () { if (_root.inplay == true) { this.grav = 0; if (Key.isDown(40)) { _y = _y + this._height / 2; this.grav = -2; delete this.onEnterFrame; gotoAndStop(9); } if (Key.isDown(38)) { this._x += this._width * (this._xscale / 100); this.grav += 5; this.gotoAndStop(15); } } }; } frame 11 { delayforjump2 = 10; onEnterFrame = function () { if (_root.inplay == true) { if (this.onGround == true) { delete this.onEnterFrame; this._xscale *= -1; this.gotoAndStop(4); } if (delayforjump2 < 1) { if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { delete this.onEnterFrame; grav = 11; this.gotoAndStop(6); if (this._xscale == 100) { xvel = 5; } if (this._xscale == -100) { xvel = -5; } } if (this._xscale == 100 && Key.isDown(37)) { delete this.onEnterFrame; grav = 11; this.gotoAndStop(6); } if (this._xscale == -100 && Key.isDown(39)) { delete this.onEnterFrame; grav = 11; this.gotoAndStop(6); } } if (Key.isDown(40) && this.grav < -4) { delete this.onEnterFrame; this._xscale *= -1; this.gotoAndStop(6); } } }; } frame 12 { onEnterFrame = function () { if (_root.inplay == true) { if (Key.isDown(37)) { this.gotoAndStop(2); delete this.onEnterFrame; } if (Key.isDown(39)) { this.gotoAndStop(2); delete this.onEnterFrame; } if (Key.isDown(65)) { combo += 1; if (combo > 4) { combo = 1; } this.gotoAndStop(3); delete this.onEnterFrame; } if (Key.isDown(68) && _root.tentapod._currentframe == 4) { this.gotoAndStop(16); delete this.onEnterFrame; } if (Key.isDown(83) or Key.isDown(81) or Key.isDown(87) or Key.isDown(88)) { this.gotoAndStop(6); grav = 13; delete this.onEnterFrame; } } }; } frame 13 { this.attack_mc.gotoAndPlay('combo' + strcombo); onEnterFrame = function () { if (_root.inplay == true) { if (Key.isDown(37)) { this._xscale = -100; } if (Key.isDown(39)) { this._xscale = 100; } } }; } instance bound of movieClip 62 { onClipEvent (load) { i = 0; while (i < _root.eneArray.length) { if (this.hitTest(_root.eneArray[i]) && _root.eneArray[i]._currentframe == 9) { _root.hero.spell = _root.eneArray[i]; _root.hero.gotoAndStop(19); } ++i; } } } frame 14 { onEnterFrame = function () { if (_root.inplay == true) { this._x += this.xvel; if (this.xvel < this.mxs && this._xscale == 100) { this.xvel += this._xscale / 100; } if (this.xvel > -this.mxs && this._xscale == -100) { this.xvel += this._xscale / 100; } if (this.onGround == true) { if (Math.abs(this.xvel) > 0) { if (0 == Key.isDown(39) && 0 == Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(4); } if (Key.isDown(39) or Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(2); } } else { this.xvel = 0; this.gotoAndStop(12); delete this.onEnterFrame; } } if (this.grav > 0 && this.jump_mc._currentframe > 12) { this.jump_mc.gotoAndPlay(1); } if (this.grav < 1 && this.jump_mc._currentframe < 13) { this.jump_mc.gotoAndPlay(13); } if (this.onRwall == true && this._xscale == 100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } if (this.onLwall == true && this._xscale == -100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } } }; } frame 15 { delete this.onEnterFrame; } frame 16 { delete this.onEnterFrame; } frame 17 { delete this.onEnterFrame; _root.addbld(this._x, this._y - 20, 'bld'); _root.addbld(this._x, this._y - 20, 'bld'); _root.addbld(this._x, this._y - 20, 'bld'); } frame 18 { this.attack_mc.gotoAndPlay('combo' + jumpcombo); onEnterFrame = function () { if (_root.inplay == true) { this._x += this.xvel; if (Key.isDown(39)) { if (this._xscale == -100) { this._xscale = 100; } if (this.xvel < this.mxs && this._xscale == 100) { this.xvel += this._xscale / 100; } } if (Key.isDown(37)) { if (this._xscale == 100) { this._xscale = -100; } if (this.xvel > -this.mxs && this._xscale == -100) { this.xvel += this._xscale / 100; } } if (this.onRwall == true && this._xscale == 100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } if (this.onLwall == true && this._xscale == -100) { if (Key.isDown(38)) { this.grav = 2; delete this.onEnterFrame; this.gotoAndStop(8); } if (0 == Key.isDown(38)) { this.xvel = 0; this.grav = 0; delete this.onEnterFrame; this.gotoAndStop(9); } } if (this.onGround == true) { if (Math.abs(this.xvel) > 0) { if (0 == Key.isDown(39) && 0 == Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(4); } if (Key.isDown(39) or Key.isDown(37)) { delete this.onEnterFrame; this.gotoAndStop(2); } } else { this.xvel = 0; this.gotoAndStop(12); delete this.onEnterFrame; } } } }; } frame 19 { delete this.onEnterFrame; } frame 20 { delete this.onEnterFrame; onEnterFrame = function () { if (_root.inplay == true) { this._x += this.xvel; this.anim._rotation += 20 + -xvel * -(_xscale / 100); if (xvel > 0) { _xscale = 100; } if (xvel < 0) { _xscale = -100; } if (this.xvel > 0) { this.xvel -= 0.5; } if (this.xvel < 0) { this.xvel += 0.5; } if (this.onGround == true) { delete this.onEnterFrame; this.gotoAndStop(21); } } }; } frame 21 { delete this.onEnterFrame; xvel = 0; _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); } frame 22 { delete this.onEnterFrame; xvel = 0; onEnterFrame = function () { if (_root.inplay == true) { if (this.anim._currentframe < 21) { grav = 0; } } if (_root.tentapod._currentframe != 4) { _root.tentapod.gotoAndStop(4); _root.tentapod.host = 'hero'; } }; } frame 23 { delete this.onEnterFrame; xvel = 0; _root.addbld(this._x + -5, this._y - 39, 'herohead1'); _root.addbld(this._x + 4, this._y - 33, 'herohead2'); _root.addbld(this._x + 7, this._y - 14, 'herohead3'); _root.addbld(this._x - 2, this._y - 16, 'herobody1'); _root.addbld(this._x + 3, this._y - 6, 'herobody2'); onEnterFrame = function () { if (_root.inplay == true) { if (this.anim._currentframe < 21) { grav = 0; } } if (_root.tentapod._currentframe != 4) { _root.tentapod.gotoAndStop(4); _root.tentapod.host = 'hero'; } }; } frame 24 { delete this.onEnterFrame; xvel = 0; } } frame 1 { _root.captainkills = 0; _root.wormkills = 0; _root.dropoff = 0; _root.octoattack = 0; _root.medalFunction = function () { if (_root.kills > 4 && _root.m1 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'HIGH 5'; _root.hud.medals.meddescription = 'GET 5 KILLS'; Playtomic.Log.CustomMetric('5Kills', 'Medals'); _root.m1 = true; } if (_root.kills > 24 && _root.m2 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'BANDIT'; _root.hud.medals.meddescription = 'GET 25 KILLS'; Playtomic.Log.CustomMetric('25Kills', 'Medals'); _root.m2 = true; } if (_root.kills > 49 && _root.m3 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'WARRIOR'; _root.hud.medals.meddescription = 'GET 50 KILLS'; Playtomic.Log.CustomMetric('50Kills', 'Medals'); _root.m3 = true; } if (_root.captainkills > 0 && _root.m4 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'EX CAPITANO'; _root.hud.medals.meddescription = 'KILL A CAPTAIN'; Playtomic.Log.CustomMetric('KillCaptain', 'Medals'); _root.m4 = true; } if (_root.wormkills > 0 && _root.m5 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'EARLY BIRD'; _root.hud.medals.meddescription = 'KILL A DEATH WORM'; Playtomic.Log.CustomMetric('KillWorm', 'Medals'); _root.m5 = true; } if (_root.endchoice == 'mercy' && _root.m6 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'BIG HEART'; _root.hud.medals.meddescription = 'SHOW MERCY TO BEAR'; Playtomic.Log.CustomMetric('MercyBear', 'Medals'); _root.m6 = true; } if (_root.endchoice == 'kill' && _root.m7 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'HEARTLESS'; _root.hud.medals.meddescription = 'KILL BEAR'; Playtomic.Log.CustomMetric('KillBear', 'Medals'); _root.m7 = true; } if (_root.points > 9999 && _root.m8 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'RICH'; _root.hud.medals.meddescription = 'GET 10000 POINTS'; Playtomic.Log.CustomMetric('1000Points', 'Medals'); _root.m8 = true; } if (_root.points > 99999 && _root.m9 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'MILLIONAIRE'; _root.hud.medals.meddescription = 'GET A MILLION POINTS'; Playtomic.Log.CustomMetric('MillionPoints', 'Medals'); _root.m9 = true; } if (_root.points > 499 && _root.m10 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'POCKET MONEY'; _root.hud.medals.meddescription = 'GET 500 POINTS'; _root.m10 = true; } if (_root.dropoff > 0 && _root.m11 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'CLUMSY'; _root.hud.medals.meddescription = 'FALL INTO AN ABYSS'; Playtomic.Log.CustomMetric('FallAbyss', 'Medals'); _root.m11 = true; } if (_root.piratemode == true && _root.m12 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'SCURVY SEADOG'; _root.hud.medals.meddescription = 'PLAY IN PIRATE MODE'; Playtomic.Log.CustomMetric('PirateMode', 'Medals'); _root.m12 = true; } if (_root.octoattack > 0 && _root.m13 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'OCTO-JUSTICE'; _root.hud.medals.meddescription = 'OCTOPOD ATTACK'; Playtomic.Log.CustomMetric('OctoJustice', 'Medals'); _root.m13 = true; } if (_root.c1 == true && _root.c2 == true && _root.c3 == true && _root.c4 == true && _root.c5 == true && _root.c6 == true && _root.c7 == true && _root.c8 == true && _root.c9 == true && _root.c10 == true && _root.c11 == true && _root.c12 == true && _root.c13 == true && _root.c14 == true && _root.c15 == true && _root.c16 == true && _root.m14 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'HOME TO ROOST'; _root.hud.medals.meddescription = 'GET ALL CHICKENS HOME'; Playtomic.Log.CustomMetric('AllChickens', 'Medals'); _root.m14 = true; } if (_root.hostagesaved > 12 && _root.m15 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'SAVIOUR'; _root.hud.medals.meddescription = 'RESCUE ALL 13 HOSTAGES'; Playtomic.Log.CustomMetric('Saviour', 'Medals'); _root.m15 = true; } if (_root.m1 == true && _root.m2 == true && _root.m3 == true && _root.m4 == true && _root.m5 == true && _root.m6 == true && _root.m7 == true && _root.m8 == true && _root.m9 == true && _root.m10 == true && _root.m11 == true && _root.m12 == true && _root.m13 == true && _root.m14 == true && _root.m15 == true && _root.m16 != true && _root.hud.medals._currentframe == 1) { _root.hud.medals.gotoAndPlay(2); _root.hud.medals.medname = 'COMPLETIONIST'; _root.hud.medals.meddescription = 'GET 100%'; Playtomic.Log.CustomMetric('Completionist', 'Medals'); _root.m16 = true; } }; } frame 1 { piratemode = false; _root.gameplaysetupFunction = function () { if (_root.difficulty == 'hard') { _root.continues = 2; } if (_root.difficulty == 'medium') { _root.continues = 3; } if (_root.difficulty == 'easy') { _root.continues = 5; } if (_root.piratemode == true) { _root.pet = 'parrot'; _root.herohead = 2; } else { _root.pet = 'tentapod'; _root.herohead = 1; } _root.stop(); _root.saveitFunction(); _root.hostageArray = []; _root.brickblocksArray = []; _root.eneArray = []; _root.eneactionArray = []; _root.archerArray = []; _root.coinArray = []; _root.tchest = []; _root.chickenArray = []; _root.barrelArray = []; _root.nestArray = []; _root.checkpointArray = []; _root.arrowArray = []; _root.breakableblocksArray = []; _root.buzzArray = []; _root.ground._visible = false; _root.createEmptyMovieClip('level_case', 3); snapshot = new flash.display.BitmapData(_root.stmp._width, _root.stmp._height, true, 0); snapshot.draw(_root.stmp); _root.stmp.swapDepths(_root.getNextHighestDepth()); _root.stmp.removeMovieClip(); _root.level_case.attachBitmap(snapshot, 1); _root.createEmptyMovieClip('bg1', 2); poosnapshot = new flash.display.BitmapData(_root.bg1_stmp._width, _root.bg1_stmp._height, true, 0); poosnapshot.draw(_root.bg1_stmp); _root.bg1_stmp.swapDepths(_root.getNextHighestDepth()); _root.bg1_stmp.removeMovieClip(); _root.bg1.attachBitmap(poosnapshot, 1); _root.createEmptyMovieClip('bg2', 1); poosnapshot2 = new flash.display.BitmapData(_root.bg2_stmp._width, _root.bg2_stmp._height, true, 0); poosnapshot2.draw(_root.bg2_stmp); _root.bg2_stmp.swapDepths(_root.getNextHighestDepth()); _root.bg2_stmp.removeMovieClip(); _root.bg2.attachBitmap(poosnapshot2, 1); _root.interact.swapDepths(_root.getNextHighestDepth()); _root.enlyr.swapDepths(_root.getNextHighestDepth()); _root.hro = attachMovie('hero', 'hero', _root.getNextHighestDepth()); _root.hro.xvel = 0; _root.hro.combo = 0; _root.hro.strcombo = 0; _root.hro.jumpcombo = 0; _root.hro.grav = 0; _root.hro.mxs = 6; _root.hro.life = 20; _root.hro.spell = ''; _root.hro._x = _root.interact.lvlstart._x + _root.interact._x; _root.hro._y = _root.interact.lvlstart._y + _root.interact._y; _root.marker1 = attachMovie('marker', 'lwall', _root.getNextHighestDepth()); _root.marker2 = attachMovie('marker', 'rwall', _root.getNextHighestDepth()); _root.marker3 = attachMovie('marker', 'dward', _root.getNextHighestDepth()); _root.lwall._visible = false; _root.rwall._visible = false; _root.dward._visible = false; _root.tnt = attachMovie(_root.pet, _root.pet, _root.getNextHighestDepth()); _root.tnt._x = _root.hro._x; _root.tnt._y = _root.hro._y; _root.tnt.grav = 0; _root[_root.pet].swapDepths(_root.getNextHighestDepth()); _root.hud.swapDepths(_root.getNextHighestDepth()); _root.pausetimer = 10; _root.mutetimer = 10; _root.resettimer = 20; }; _root.gameplayFunction = function () { --_root.pausetimer; --_root.mutetimer; --_root.resettimer; if (Key.isDown(77)) { if (_root.sfxvol > 0 && _root.mutetimer < 1) { _root.sfxvol = 0; _root.musicvol = 0; _root.mutetimer = 10; } if (_root.sfxvol < 1 && _root.mutetimer < 1) { _root.sfxvol = 100; _root.musicvol = 100; _root.mutetimer = 10; } _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } if ((Key.isDown(80) or Key.isDown(27)) && _root.hud.pausehud._currentframe == 2 && pausetimer < 1) { _root.hud.pausehud.gotoAndStop(1); _root.inplay = true; pausetimer = 10; } if (Key.isDown(82) && resettimer < 1) { _root.inplay = false; fadeout = _root.attachMovie('fadeout', 'fadeout' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); fadeout._x = _root.vcam._x; fadeout._y = _root.vcam._y; _root._currentframe -= 1; fadeout.target = _root._currentframe; resettimer = 30; } if (_root.inplay == true) { if ((Key.isDown(80) or Key.isDown(27)) && _root.hud.pausehud._currentframe == 1 && _root.pausetimer < 1) { _root.hud.pausehud.gotoAndStop(2); _root.inplay = false; pausetimer = 10; } _root.medalFunction(); _root.heroFunctions(); if (_root.pet == 'tentapod') { _root.tentapodFunction(_root.tentapod, _root.hero); } if (_root.pet == 'parrot') { _root.parrotFunction(_root.parrot, _root.hero); } i = 0; while (i < _root.bitsArray.length) { _root.bitsFunction(_root.bitsArray[i], i); ++i; } i = 0; while (i < _root.eneactionArray.length) { _root.enemyFunction(_root.eneactionArray[i], i); ++i; } i = 0; while (i < _root.archerArray.length) { _root.archerFunction(_root.archerArray[i]); ++i; } i = 0; while (i < _root.chickenArray.length) { _root.chickenFunction(_root.chickenArray[i], i); ++i; } i = 0; while (i < _root.barrelArray.length) { _root.barrelFunction(_root.barrelArray[i], i); ++i; } i = 0; while (i < _root.coinArray.length) { _root.coinFunction(_root.coinArray[i], i); ++i; } i = 0; while (i < _root.arrowArray.length) { _root.arrowFunction(_root.arrowArray[i], i); ++i; } i = 0; while (i < _root.checkpointArray.length) { _root.checkpointFunction(_root.checkpointArray[i], i); ++i; } i = 0; while (i < _root.breakableblocksArray.length) { _root.breakableblocksFunction(_root.breakableblocksArray[i], i); ++i; } i = 0; while (i < _root.buzzArray.length) { _root.buzzFunction(_root.buzzArray[i], i); ++i; } i = 0; while (i < _root.hostageArray.length) { _root.hostageFunction(_root.hostageArray[i], i); ++i; } } _root.cameraFunction(); }; } frame 1 { breakableblocksFunction = function (subject1, num) { if (subject1._currentframe == 2) { if (subject1.hitTest(_root.hero.bound)) { subject1.gotoAndStop(3); } } if (subject1._currentframe == 4 && _root.hero.life < 1) { subject1.gotoAndStop(5); } }; hostageFunction = function (subject1, num) { if (subject1._currentframe == 4) { subject1._x -= subject1._xscale / 25; if (0 == _root.ground.hitTest(subject1._x + subject1.bound._x + _root.interact._x, subject1._y + subject1.bound._y + _root.interact._y + subject1.bound._height / 2 + 10, true)) { subject1._xscale *= -1; } if (_root.ground.hitTest(subject1._x + subject1.bound._x + _root.interact._x + 20, subject1._y + subject1.bound._y + _root.interact._y, true)) { subject1._xscale *= -1; } if (_root.ground.hitTest(subject1._x + subject1.bound._x + _root.interact._x - 20, subject1._y + subject1.bound._y + _root.interact._y, true)) { subject1._xscale *= -1; } } }; buzzFunction = function (subject1, num) { subject1._x -= subject1._xscale / 10; --subject1.life; if (subject1.life < 1) { subject1.removeMovieClip(); _root.buzzArray.splice(num, 1); } if (_root.ground.wall.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y, true)) { subject1.removeMovieClip(); _root.buzzArray.splice(num, 1); } if (subject1.hitTest(_root.hero.bound) && subject1.active == true && _root.hero.life > 0 && _root.hero._currentframe != 17) { subject1.active = false; _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 1; if (_root.hero.life < 1) { _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero.gotoAndStop(17); } } }; } frame 1 { _root.bitsFunction = function (subject1, num) { subject1._x += subject1.xSpeed; subject1._y -= subject1.grav; subject1._rotation += subject1.xSpeed * 2; --subject1.grav; if (_root.ground.hitTest(subject1._x, subject1._y, true)) { if (subject1.style == 'bld') { if (subject1.grav > -10) { _root.drawbloodspeckFunction(subject1); subject1.removeMovieClip(); _root.bitsArray.splice(num, 1); } else { _root.drawbloodspeckFunction(subject1); subject1.grav *= -0.5; } } else { if (subject1.grav < -6) { subject1.grav *= -0.5; } else { subject1.xSpeed = 0; subject1.cacheAsBitmap = true; _root.bitsArray.splice(num, 1); } } } }; _root.addbld = function (xpos, ypos, element) { bit = _root.level_case.attachMovie(element, element + _root.level_case.getNextHighestDepth(), _root.level_case.getNextHighestDepth()); bit.style = element; bit._y = ypos + _root.level_case._y; bit._x = xpos + _root.level_case._x; if (bit.style == 'bld') { bit.grav = 5 + random(9); bit.xSpeed = random(15) - random(15); } else { bit.grav = 6 + random(9); bit.xSpeed = random(5) - random(5); } _root.bitsArray.push(bit); }; _root.addsmack = function (xpos, ypos) { bit = _root.attachMovie('smackhit', 'bld' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); bit._y = ypos + (random(20) - random(20)); bit._x = xpos; }; _root.addhit = function (xpos, ypos, points) { bit = _root.attachMovie('pt', 'pt' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); bit._y = ypos + (random(20) - random(20)) - 50; bit._x = xpos; bit.pt.gotoAndStop(points); }; _root.addcoin = function (xpos, ypos, element) { bit = _root.attachMovie(element, element + _root.getNextHighestDepth(), _root.getNextHighestDepth()); bit._y = ypos; bit._x = xpos; bit.xSpeed = random(7) - random(7); bit.grav = 10; bit.flying = true; bit.timer = 15; }; drawbloodspeckFunction = function (subject1) { _root.snapshot.setPixel(subject1._x, subject1._y, 6362131); _root.snapshot.setPixel(subject1._x + 1, subject1._y, 6362131); _root.snapshot.setPixel(subject1._x - 1, subject1._y, 6362131); _root.snapshot.setPixel(subject1._x, subject1._y + 1, 6362131); _root.snapshot.setPixel(subject1._x + 1, subject1._y + 1, 6362131); _root.snapshot.setPixel(subject1._x - 1, subject1._y + 1, 6362131); _root.snapshot.setPixel(subject1._x + 2, subject1._y + 1, 6362131); _root.snapshot.setPixel(subject1._x - 2, subject1._y + 1, 6362131); _root.snapshot.setPixel(subject1._x, subject1._y + 2, 6362131); _root.snapshot.setPixel(subject1._x + 1, subject1._y + 2, 6362131); _root.snapshot.setPixel(subject1._x + 2, subject1._y + 2, 6362131); _root.snapshot.setPixel(subject1._x - 2, subject1._y + 2, 6362131); _root.snapshot.setPixel(subject1._x - 1, subject1._y + 2, 6362131); }; coinFunction = function (subject1, num) { if (subject1.hitTest(_root.vcam)) { subject1._visible = true; } else { subject1._visible = false; } if (subject1.flying == true) { subject1._x += subject1.xSpeed; subject1._y -= subject1.grav; --subject1.grav; while (_root.ground.ground.hitTest(subject1._x, subject1._y - 5, true)) { subject1._y += 5; } while (_root.ground.ground.hitTest(subject1._x, subject1._y + 5, true)) { subject1._y -= 5; } if (_root.ground.ground.hitTest(subject1._x, subject1._y - 10, true)) { subject1._y += 10; subject1.grav *= -0.7; } if (_root.ground.ground.hitTest(subject1._x, subject1._y + 10, true)) { subject1.grav *= -0.7; } if (_root.ground.wall.hitTest(subject1._x + 2, subject1._y, true)) { subject1._x -= 2; subject1.xSpeed *= -0.9; } if (_root.ground.wall.hitTest(subject1._x - 2, subject1._y, true)) { subject1._x += 2; subject1.xSpeed *= -0.9; } --subject1.timer; } if ((subject1.hitTest(_root.hero.bound) or subject1.hitTest(_root[_root.pet].bound)) && (subject1.timer < 1 or subject1.timer == undefined)) { if (_root.difficulty == 'hard') { _root.hero.life += 5; } if (_root.difficulty == 'medium') { _root.hero.life += 10; } if (_root.difficulty == 'easy') { _root.hero.life += 15; } _root.points += 50; if (_root.hero.life > 20) { _root.hero.life = 20; } _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); sparkle = _root.attachMovie('sparkle', 'sparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); sparkle._x = subject1._x + _root.interact._x; sparkle._y = subject1._y + _root.interact._y; if (subject1.flying == true) { _root.addhit(subject1._x, subject1._y, 2); } else { _root.addhit(subject1._x + _root.interact._x, subject1._y + _root.interact._y, 2); } subject1.swapDepths(_root.interact.getNextHighestDepth()); subject1.removeMovieClip(); _root.coinArray.splice(num, 1); } }; barrelFunction = function (subject1, num) { if (subject1._currentframe == 3) { subject1._x += subject1.xSpeed; subject1._rotation += subject1.xSpeed * 5; subject1._y -= subject1.grav; --subject1.grav; if (subject1.xSpeed > 0) { subject1.xSpeed -= 0.1; } if (subject1.xSpeed < 0) { subject1.xSpeed += 0.1; } while (_root.ground.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y + 10, true)) { --subject1._y; } if (_root.ground.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y + 15, true)) { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); if (subject1.grav > -13) { subject1.grav = 0; subject1.xSpeed = 0; subject1._rotation = 0; subject1.gotoAndStop(2); } else { subject1.grav *= -0.7; } } if (_root.ground.wall.hitTest(subject1._x, subject1._y, true)) { subject1.xSpeed *= -1; _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } if (_root.enlyr.hitTest(subject1)) { i = 0; while (i < _root.eneArray.length) { if (_root.eneArray[i].bound.hitTest(subject1) && _root.eneArray[i].life > 0) { _root.addsmack(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y - 20); _root.eneArray[i].grav = 10; _root.eneArray[i].xSpeed = 10 * (_root.eneArray[i]._xscale / 100); _root.eneArray[i].gotoAndStop(8); _root.eneArray[i].life -= 10; _root.addbld(subject1._x - 1 + _root.interact._x, subject1._y + _root.interact._y + 8, 'barrel1'); _root.addbld(subject1._x + 7 + _root.interact._x, subject1._y + _root.interact._y - 8, 'barrel2'); _root.addbld(subject1._x - 7 + _root.interact._x, subject1._y + _root.interact._y - 8, 'barrel3'); _root.ransound = random(2); _root['crate' + _root.ransound].start(0, 0); _root['crate' + _root.ransound].setVolume(_root.sfxvol); subject1.swapDepths(_root.interact.getNextHighestDepth()); subject1.removeMovieClip(); _root.barrelArray.splice(num, 1); _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); } ++i; } } } }; chickenFunction = function (subject1, num) { if (subject1._currentframe == 3) { i = 0; while (i < _root.nestArray.length) { if (_root.nestArray[i].hitTest(subject1) && subject1.grav < 0) { _root[subject1._name] = true; subject1.swapDepths(_root.interact.getNextHighestDepth()); subject1.removeMovieClip(); _root.points += 200; _root.addhit(_root.hero._x, _root.hero._y - 20, 6); _root.chickenhit.start(0, 0); _root.chichenhit.setVolume(_root.sfxvol); _root.chickenArray.splice(num, 1); _root.nestArray[i].gotoAndStop(3); } ++i; } subject1._x += subject1.xSpeed; subject1._y -= subject1.grav; --subject1.grav; if (subject1.xSpeed > 0) { subject1.xSpeed -= 0.1; } if (subject1.xSpeed < 0) { subject1.xSpeed += 0.1; } while (_root.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y + 10, true)) { --subject1._y; } while (_root.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y - 10, true)) { ++subject1._y; subject1.grav = 10; } while (_root.ground.hitTest(subject1._x + _root.interact._x + 10, subject1._y + _root.interact._y, true)) { --subject1._x; } while (_root.ground.hitTest(subject1._x + _root.interact._x - 10, subject1._y + _root.interact._y, true)) { ++subject1._x; } if (_root.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y + 15, true)) { if (subject1.grav > -8) { subject1.grav = 0; subject1.xSpeed = 0; subject1._rotation = 0; subject1.gotoAndStop(2); } else { _root.drawbloodspeckFunction(subject1); _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); subject1.grav *= -0.7; subject1._y - 5; } } if (_root.ground.hitTest(subject1._x + _root.interact._x, subject1._y + _root.interact._y - 15, true)) { _root.drawbloodspeckFunction(subject1); _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); subject1._y + 5; subject1.grav *= -0.7; } if (_root.ground.hitTest(subject1._x + _root.interact._x + 15, subject1._y + _root.interact._y, true) or _root.wall.hitTest(subject1._x + _root.interact._x - 15, subject1._y + _root.interact._y, true)) { if (subject1.xSpeed < 2) { subject1.xSpeed = 2; } subject1.xSpeed *= -1; subject1._x - 5; _root.drawbloodspeckFunction(subject1); _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } if (_root.ground.hitTest(subject1._x + _root.interact._x - 15, subject1._y + _root.interact._y, true) or _root.wall.hitTest(subject1._x + _root.interact._x + 15, subject1._y + _root.interact._y, true)) { if (subject1.xSpeed > -2) { subject1.xSpeed = -2; } subject1.xSpeed *= -1; subject1._x + 5; _root.drawbloodspeckFunction(subject1); _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } } }; checkpointFunction = function (subject1) { if (subject1.hitTest(_root.hero.bound)) { subject1.gotoAndStop(3); _root.checkpoint = subject1; i = 0; while (i < _root.checkpointArray.length) { if (_root.checkpointArray[i] != subject1) { _root.checkpointArray[i].gotoAndStop(2); } ++i; } } }; _root.arrowFunction = function (subject1, num) { if (subject1.hitTest(_root.vcam)) { subject1._visible = true; } else { subject1._visible = false; } if (subject1._currentframe == 1) { subject1._x += subject1.xSpeed; subject1.ySpeed -= subject1.grav; subject1._y -= subject1.ySpeed; subject1._rotation = _root.getAngle(subject1.xSpeed * -1, subject1.ySpeed - subject1.grav); subject1.grav += 0.1; } if (_root.ground.hitTest(subject1._x, subject1._y, true)) { if (subject1._visible == true) { _root.arrowmiss.start(0, 0); _root.arrowmiss.setVolume(_root.sfxvol); } subject1.gotoAndStop(2); _root.arrowArray.splice(num, 1); } if (_root.hero.bound.hitTest(subject1)) { _root.hero.life -= 5; if (_root.hero.life < 1) { _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); _root.hero.gotoAndStop(23); } else { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.gotoAndStop(17); } _root.addsmack(subject1._x, subject1._y - 20); subject1.removeMovieClip(); _root.arrowArray.splice(num, 1); } }; } frame 1 { _root.vcam.target = _root.player1; _root.vcam.txs = 100; cameraFunction = function () { _root.hud._x = _root.vcam._x; _root.hud._y = _root.vcam._y; _root.bg._x = _root.vcam._x; _root.bg._y = _root.vcam._y; _root.bg1._x = _root.vcam._x / 1.3 - _root.vcam._width / 2; _root.bg1._y = _root.vcam._y / 2; _root.bg2._x = _root.vcam._x / 1.3 - _root.vcam._width / 2; _root.bg2._y = _root.vcam._y / 1.1; _root.vcam.camControl(); _root.vcam._y = Math.floor(_root.vcam._y + (_root.vcam.target._y - _root.vcam._y) / 5 - 12); _root.vcam._x = Math.floor(_root.vcam._x + (_root.vcam.target._x - _root.vcam._x) / 10 - _root.vcam.xadjust); _root.hud.lbar._xscale += ((_root.hero.life / 20) * 100 - _root.hud.lbar._xscale) / 4; if (_root.hud.lbar._xscale < 0) { _root.hud.lbar._xscale = 0; } if (_root.vcam._x + _root.vcam._width / 2 > _root.r_limit._x) { _root.vcam._x = _root.r_limit._x - _root.vcam._width / 2; } if (_root.vcam._x - _root.vcam._width / 2 < _root.l_limit._x) { _root.vcam._x = _root.l_limit._x + _root.vcam._width / 2; } if (_root.vcam._y + _root.vcam._height / 2 > _root.d_limit._y) { _root.vcam._y = _root.d_limit._y - _root.vcam._height / 2; } if (_root.vcam._y - _root.vcam._height / 2 < _root.u_limit._y) { _root.vcam._y = _root.u_limit._y + _root.vcam._height / 2; } }; } frame 1 { attckFunction = function (subject1, reac, gr, xspd1) { if (_root.enlyr.bear.bound.hitTest(subject1)) { _root.enlyr.bear.life -= 1; _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y - 20); if (reac == 'qh1') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 1); _root.points += 10; } if (reac == 'qh2') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 4); _root.points += 15; } if (reac == 'qh4') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 5); _root.points += 20; } } if (_root.interact.hitTest(subject1)) { i = 0; while (i < _root.barrelArray.length) { if (_root.barrelArray[i].hitTest(subject1)) { _root.barrelArray[i].gotoAndPlay(4); _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.barrelArray[i]._x + _root.interact._x, _root.barrelArray[i]._y + _root.interact._y - 5); } ++i; } i = 0; while (i < _root.hostageArray.length) { if (_root.hostageArray[i].hitTest(subject1)) { if (_root.hostageArray[i]._currentframe == 2) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.hostageArray[i]._x + _root.interact._x, _root.hostageArray[i]._y + _root.interact._y - 20); _root.hostageArray[i].gotoAndStop(3); _root.points += 200; _root.addhit(_root.hero._x, _root.hero._y - 20, 6); _root.chickenhit.start(0, 0); _root.chichenhit.setVolume(_root.sfxvol); } } ++i; } i = 0; while (i < _root.tchest.length) { if (_root.tchest[i].hitTest(subject1)) { _root.tchest[i].gotoAndPlay(7); --_root.tchest[i].life; if (_root.tchest[i].life < 1) { _root.addbld(_root.tchest[i]._x - 8 + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 5, 'tchest1'); _root.addbld(_root.tchest[i]._x + 2 + _root.interact._x, _root.tchest[i]._y + _root.interact._y + 8, 'tchest2'); _root.addbld(_root.tchest[i]._x + 3 + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 3, 'tchest3'); _root.ransound = random(2); _root['crate' + _root.ransound].start(0, 0); _root['crate' + _root.ransound].setVolume(_root.sfxvol); _root.tchest[i].swapDepths(_root.interact.getNextHighestDepth()); _root.tchest[i].removeMovieClip(); _root.tchest.splice(i, 1); } else { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.tchest[i]._x + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 5); } } ++i; } } if (subject1.hitTest(_root.tentapod) && _root.tentapod._currentframe != 5) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); if (Key.isDown(38)) { _root.tentapod.grav = 20; _root.tentapod.xSpeed = 1 * (_root.hero._xscale / 100); _root.tentapod.gotoAndStop(5); } else { _root.tentapod.grav = 10; _root.tentapod.xSpeed = 12 * (_root.hero._xscale / 100); _root.tentapod.gotoAndStop(5); } } if (_root.enlyr.hitTest(subject1)) { i = 0; while (i < _root.eneArray.length) { if (_root.eneArray[i].bound.hitTest(subject1) && _root.eneArray[i].life > 0 && _root.tentapod.host != _root.eneArray[i]) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y - 20); if (reac == 'qh1') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 1); _root.points += 10; } if (reac == 'qh2') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 4); _root.points += 15; } if (reac == 'qh4') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 5); _root.points += 20; } if (_root.hero._x < _root.enlyr._x + _root.eneArray[i]._x) { _root.eneArray[i]._xscale = 100; } if (_root.hero._x > _root.enlyr._x + _root.eneArray[i]._x) { _root.eneArray[i]._xscale = -100; } if (_root.eneArray[i].onGround == true) { if (_root.eneArray[i].enetype != 'brute') { _root.eneArray[i].grav = gr; } if (_root.eneArray[i].enetype == 'brute' && (_root.eneArray[i]._currentframe == 3 or _root.eneArray[i]._currentframe == 14)) { } else { _root.eneArray[i].gotoAndStop(reac); } _root.eneArray[i].xSpeed = xspd1; _root.eneArray[i].life -= 1.7; if (_root.eneArray[i].life < 1) { if (_root.eneArray[i].grav < 1) { _root.eneArray[i].gotoAndStop('sftdead'); } } } } ++i; } if (_root.eneArray[i].enetype == 'worm') { _root.eneArray[i].life -= 1; if (_root.eneArray[i].life < 1) { _root.points += 500; _root.eneArray[i].gotoAndStop('harddead'); } } } }; hrdattckFunction = function (subject1, reac, gr, xspd1) { if (_root.enlyr.bear.bound.hitTest(subject1)) { _root.enlyr.bear.life -= 2; _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y - 20); if (reac == 'qh1') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 1); _root.points += 10; } if (reac == 'qh2') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 4); _root.points += 15; } if (reac == 'qh4') { _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 5); _root.points += 20; } } if (_root.interact.hitTest(subject1)) { i = 0; while (i < _root.hostageArray.length) { if (_root.hostageArray[i].hitTest(subject1)) { if (_root.hostageArray[i]._currentframe == 2) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.hostageArray[i]._x + _root.interact._x, _root.hostageArray[i]._y + _root.interact._y - 20); _root.hostageArray[i].gotoAndStop(3); _root.points += 200; _root.addhit(_root.hero._x, _root.hero._y - 20, 6); _root.chickenhit.start(0, 0); _root.chichenhit.setVolume(_root.sfxvol); } if (_root.hostageArray[i]._currentframe == 4) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.scream0.start(0, 0); _root.scream0.setVolume(_root.sfxvol); _root.addsmack(_root.hostageArray[i]._x + _root.interact._x, _root.hostageArray[i]._y + _root.interact._y - 20); _root.hostageArray[i].gotoAndStop(5); } } ++i; } i = 0; while (i < _root.barrelArray.length) { if (_root.barrelArray[i].hitTest(subject1)) { if (_root.barrelArray[i].life < 1) { _root.addbld(_root.barrelArray[i]._x - 1 + _root.interact._x, _root.barrelArray[i]._y + _root.interact._y + 8, 'barrel1'); _root.addbld(_root.barrelArray[i]._x + 7 + _root.interact._x, _root.barrelArray[i]._y + _root.interact._y - 8, 'barrel2'); _root.addbld(_root.barrelArray[i]._x - 7 + _root.interact._x, _root.barrelArray[i]._y + _root.interact._y - 8, 'barrel3'); _root.ransound = random(2); _root['crate' + _root.ransound].start(0, 0); _root['crate' + _root.ransound].setVolume(_root.sfxvol); _root.barrelArray[i].swapDepths(_root.interact.getNextHighestDepth()); _root.barrelArray[i].removeMovieClip(); _root.barrelArray.splice(i, 1); } else { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.barrelArray[i]._x + _root.interact._x, _root.barrelArray[i]._y + _root.interact._y - 5); _root.barrelArray[i].gotoAndStop(3); if (Key.isDown(38)) { _root.barrelArray[i].grav = 15; _root.barrelArray[i].xSpeed = 7 * (_root.hero._xscale / 100); } else { _root.barrelArray[i].grav = 10; _root.barrelArray[i].xSpeed = 10 * (_root.hero._xscale / 100); } } } ++i; } i = 0; while (i < _root.chickenArray.length) { if (_root.chickenArray[i].hitTest(subject1)) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.randomsound = random(2); _root['chicken' + _root.hero.randomsound].start(0, 0); _root['chicken' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.chickenArray[i]._x + _root.interact._x, _root.chickenArray[i]._y + _root.interact._y); _root.chickenArray[i].gotoAndStop(3); _root.chickenArray[i]._xscale = _root.hero._xscale; if (Key.isDown(38)) { _root.chickenArray[i].grav = 20; _root.chickenArray[i].xSpeed = 0; } else { _root.chickenArray[i].grav = 15; _root.chickenArray[i].xSpeed = 7 * (_root.hero._xscale / 100); } } ++i; } i = 0; while (i < _root.tchest.length) { if (_root.tchest[i].hitTest(subject1)) { _root.tchest[i].gotoAndPlay(7); --_root.tchest[i].life; if (_root.tchest[i].life < 1) { _root.addbld(_root.tchest[i]._x - 8 + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 5, 'tchest1'); _root.addbld(_root.tchest[i]._x + 2 + _root.interact._x, _root.tchest[i]._y + _root.interact._y + 8, 'tchest2'); _root.addbld(_root.tchest[i]._x + 3 + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 3, 'tchest3'); _root.ransound = random(2); _root['crate' + _root.ransound].start(0, 0); _root['crate' + _root.ransound].setVolume(_root.sfxvol); _root.tchest[i].swapDepths(_root.interact.getNextHighestDepth()); _root.tchest[i].removeMovieClip(); _root.tchest.splice(i, 1); } else { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.tchest[i]._x + _root.interact._x, _root.tchest[i]._y + _root.interact._y - 5); } } ++i; } } if (subject1.hitTest(_root.tentapod)) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); if (Key.isDown(38)) { _root.tentapod.grav = 25; _root.tentapod.xSpeed = 5 * (_root.hero._xscale / 100); _root.tentapod.gotoAndStop(5); } else { if (Key.isDown(37) or Key.isDown(39)) { _root.tentapod.grav = 7; _root.tentapod._y = _root.hero._y - _root.hero.bound._height / 2; _root.tentapod.xSpeed = 25 * (_root.hero._xscale / 100); _root.tentapod.gotoAndStop(5); } else { _root.tentapod.grav = 18; _root.tentapod.xSpeed = 21 * (_root.hero._xscale / 100); _root.tentapod.gotoAndStop(5); } } } if (_root.enlyr.hitTest(subject1)) { i = 0; while (i < _root.eneArray.length) { if (_root.eneArray[i].bound.hitTest(subject1) && _root.eneArray[i].life > 0 && _root.tentapod.host != _root.eneArray[i]) { _root.eneArray[i].life -= 2; _root.addsmack(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y - 20); if (_root.eneArray[i].onGround == true) { if (_root.eneArray[i].enetype == 'brute' && (_root.eneArray[i]._currentframe == 3 or _root.eneArray[i]._currentframe == 14)) { } else { if (_root.eneArray[i].enetype != 'worm') { _root.eneArray[i].gotoAndStop(reac); } } } else { if (_root.eneArray[i].enetype != 'brute') { _root.eneArray[i].grav = gr; } if (_root.eneArray[i].enetype != 'worm') { _root.eneArray[i].gotoAndStop(8); } _root.eneArray[i].xSpeed = xspd1; } if (_root.eneArray[i].life < 1) { _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); _root.eneArray[i].gotoAndStop('harddead'); } else { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); if (reac == 'qh1') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 1); _root.points += 10; } if (reac == 'qh2') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 4); _root.points += 15; } if (reac == 'qh3') { _root.addhit(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y, 5); _root.points += 20; } } } ++i; } } }; eneattackFunction = function (subject1) { if (_root.hero.bound.hitTest(subject1) && _root.hero.life > 0 && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 5; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero.gotoAndStop(17); } } }; bruteattackFunction = function (subject1, subject2) { if (_root.hero.bound.hitTest(subject1) && _root.hero.life > 0 && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); subject2.destination = 13; _root.hero.life -= 7; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; _root.hero.xvel = 17 * (subject2._xscale / -100); delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } else { subject2.destination = 1; } }; } frame 1 { enemyFunction = function (subject1, num) { subject1._y -= subject1.grav; --subject1.grav; if (subject1.hitTest(_root.vcam)) { subject1._visible = true; } else { subject1._visible = false; } subject1.lbar.lbar._xscale = (subject1.life / subject1.origlife) * 100; if (subject1.lbar.lbar._xscale < 0) { subject1.lbar.lbar._xscale = 0; } if (subject1._y > _root.d_limit._y) { subject1.swapDepths(_root.enlyr.getNextHighestDepth()); subject1.removeMovieClip(); } while (_root.ground.ground.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x, _root.enlyr._y + subject1._y + subject1.bound._y + subject1.bound._height / 2 - 2, true)) { --subject1._y; subject1.grav = 0; } while (_root.ground.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x, subject1._y + _root.enlyr._y + subject1.bound._y - subject1.bound._height / 2 + 2, true)) { ++subject1._y; subject1.grav = -2; } if (_root.ground.ground.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x, _root.enlyr._y + subject1._y + subject1.bound._y + subject1.bound._height / 2 + 4, true)) { subject1.onGround = true; } else { subject1.onGround = false; } if (subject1._currentframe == 1) { if (_root.hero._y - (subject1._y + _root.enlyr._y) < 200 && _root.hero._y - (subject1._y + _root.enlyr._y) > -200) { if (_root.hero._x - (subject1._x + _root.enlyr._x) < 500 && _root.hero._x - (subject1._x + _root.enlyr._x) > 40) { subject1.gotoAndStop(2); } if (_root.hero._x - (subject1._x + _root.enlyr._x) > -500 && _root.hero._x - (subject1._x + _root.enlyr._x) < -40) { subject1.gotoAndStop(2); } if (_root.hero._x - (subject1._x + _root.enlyr._x) < 40 && _root.hero._x - (subject1._x + _root.enlyr._x) > -40) { var v3 = random(15); if (v3 == 0) { subject1.gotoAndStop(3); } } } } if (subject1._currentframe == 2) { subject1._x += subject1._xscale / subject1.spd; if (_root.hero._x - (subject1._x + _root.enlyr._x) > 0) { subject1._xscale = -100; } if (_root.hero._x - (subject1._x + _root.enlyr._x) < 0) { subject1._xscale = 100; } if (_root.hero._x - (subject1._x + _root.enlyr._x) < 35 && _root.hero._x - (subject1._x + _root.enlyr._x) > -35) { subject1.gotoAndStop(1); } if (_root.eneArray[i].enetype == 'brute') { subject1.randistanceattack = random(60); if (subject1.randistanceattack == 0) { subject1.gotoAndStop(14); } } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x - 5, _root.enlyr._y + subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 5, _root.enlyr._y + subject1._y, true)) { --subject1._x; } } if (subject1._currentframe == 12) { if (_root.eneArray[i].enetype != 'brute') { subject1.life -= 0.1; subject1._x += subject1._xscale / subject1.spd * 0.6; subject1.ranturn = random(30); if (subject1.ranturn == 0) { subject1._xscale *= -1; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x - 5, _root.enlyr._y + subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 5, _root.enlyr._y + subject1._y, true)) { --subject1._x; } if (0 == _root.ground.hitTest(subject1._x + subject1.bound._x + _root.enlyr._x, subject1._y + subject1.bound._y + _root.enlyr._y + subject1.bound._height / 2 + 10, true)) { subject1._xscale *= -1; } if (_root.ground.hitTest(subject1._x + subject1.bound._x + _root.enlyr._x + 20, subject1._y + subject1.bound._y + _root.enlyr._y, true)) { subject1._xscale *= -1; } subject1.life -= 0.05; if (subject1.life < 0) { _root.points += 1; _root.tentapod.gotoAndStop(5); _root.tentapod._x = subject1._x + _root.enlyr._x; _root.tentapod._y = subject1._y + _root.enlyr._y - 30; _root.tentapod.xSpeed = 0; _root.tentapod.grav = 10; subject1.gotoAndStop('sftdead'); } } else {} } if (subject1._currentframe == 8) { subject1._x += subject1.xSpeed; subject1.anim._rotation += 20 + -subject1.xSpeed * -(subject1._xscale / 100); if (subject1.xSpeed > 0) { subject1.xSpeed -= 0.5; } if (subject1.xSpeed < 0) { subject1.xSpeed += 0.5; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x - 5, _root.enlyr._y + subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 5, _root.enlyr._y + subject1._y, true)) { --subject1._x; } if (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 7 * (subject1._xscale / 100), _root.enlyr._y + subject1._y + subject1.bound._y, true)) { subject1._xscale *= -1; subject1.xSpeed *= -1; if (subject1.grav < 0) { subject1.grav *= -1; } } if (subject1.onGround == true) { subject1.gotoAndStop(9); } } }; _root.archerFunction = function (subject1) { subject1._y -= subject1.grav; --subject1.grav; if (subject1.hitTest(_root.vcam)) { subject1._visible = true; } else { subject1._visible = false; } while (_root.ground.ground.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x, _root.enlyr._y + subject1._y + subject1.bound._y + subject1.bound._height / 2 - 2, true)) { --subject1._y; subject1.grav = 0; } if (_root.ground.ground.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x, _root.enlyr._y + subject1._y + subject1.bound._y + subject1.bound._height / 2 + 4, true)) { subject1.onGround = true; } else { subject1.onGround = false; } if (subject1._currentframe == 1) { if (_root.hero._y - (subject1._y + _root.enlyr._y) < 400 && _root.hero._y - (subject1._y + _root.enlyr._y) > -400) { if (_root.hero._x - (subject1._x + _root.enlyr._x) < 500 && _root.hero._x - (subject1._x + _root.enlyr._x) > 40) { subject1.rantoattack = random(40); if (subject1.rantoattack == 0) { subject1.gotoAndStop(3); } } if (_root.hero._x - (subject1._x + _root.enlyr._x) > -40 && _root.hero._x - (subject1._x + _root.enlyr._x) < 40) { subject1.gotoAndStop(2); } if (_root.hero._x - (subject1._x + _root.enlyr._x) > -500 && _root.hero._x - (subject1._x + _root.enlyr._x) < -40) { subject1.rantoattack = random(40); if (subject1.rantoattack == 0) { subject1.gotoAndStop(3); } } } } if (_root.hero._x < subject1._x + _root.enlyr._x) { subject1._xscale = 100; } if (_root.hero._x > subject1._x + _root.enlyr._x) { subject1._xscale = -100; } if (subject1._currentframe == 12) { subject1.life -= 0.1; subject1._x += subject1._xscale / subject1.spd * 0.6; subject1.ranturn = random(30); if (subject1.ranturn == 0) { subject1._xscale *= -1; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x - 5, _root.enlyr._y + subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 5, _root.enlyr._y + subject1._y, true)) { --subject1._x; } if (0 == _root.ground.hitTest(subject1._x + subject1.bound._x + _root.enlyr._x, subject1._y + subject1.bound._y + _root.enlyr._y + subject1.bound._height / 2 + 10, true)) { subject1._xscale *= -1; } if (_root.ground.hitTest(subject1._x + subject1.bound._x + _root.enlyr._x + 20, subject1._y + subject1.bound._y + _root.enlyr._y, true)) { subject1._xscale *= -1; } subject1.life -= 0.05; if (subject1.life < 0) { _root.points += 1; _root.tentapod.gotoAndStop(5); _root.tentapod._x = subject1._x + _root.enlyr._x; _root.tentapod._y = subject1._y + _root.enlyr._y - 30; _root.tentapod.xSpeed = 0; _root.tentapod.grav = 10; subject1.gotoAndStop('sftdead'); } } if (subject1._currentframe == 8) { subject1._x += subject1.xSpeed; subject1.anim._rotation += 20 + -subject1.xSpeed * -(subject1._xscale / 100); if (subject1.xSpeed > 0) { subject1.xSpeed -= 0.5; } if (subject1.xSpeed < 0) { subject1.xSpeed += 0.5; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x - 5, _root.enlyr._y + subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 5, _root.enlyr._y + subject1._y, true)) { --subject1._x; } if (_root.ground.wall.hitTest(_root.enlyr._x + subject1._x + subject1.bound._x + 7 * (subject1._xscale / 100), _root.enlyr._y + subject1._y + subject1.bound._y, true)) { subject1._xscale *= -1; subject1.xSpeed *= -1; if (subject1.grav < 0) { subject1.grav *= -1; } } if (subject1.onGround == true) { subject1.gotoAndStop(9); } } }; } frame 1 { resetlevel = function () { i = 0; while (i < _root.bitsArray.length) { _root.bitsArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.eneArray.length) { _root.eneArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.archerArray.length) { _root.archerArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.chickenArray.length) { _root.chickenArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.barrelArray.length) { _root.barrelArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.coinArray.length) { _root.coinArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.arrowArray.length) { _root.arrowArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.checkpointArray.length) { _root.checkpointArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.breakableblocksArray.length) { _root.breakableblocksArray[i].removeMovieClip(); ++i; } i = 0; while (i < _root.hostageArray.length) { _root.hostageArray[i].removeMovieClip(); ++i; } _root.hostageArray = []; _root.brickblocksArray = []; _root.eneArray = []; _root.archerArray = []; _root.coinArray = []; _root.tchest = []; _root.chickenArray = []; _root.barrelArray = []; _root.nestArray = []; _root.checkpointArray = []; _root.arrowArray = []; _root.breakableblocksArray = []; _root.eneactionArray = []; _root.buzzArray = []; _root.hero.removeMovieClip(); _root[_root.pet].removeMovieClip(); _root.stmp.removeMovieClip(); _root.lwall.removeMovieClip(); _root.rwall.removeMovieClip(); _root.dward.removeMovieClip(); _root.level_case.removeMovieClip(); _root.bg1.removeMovieClip(); _root.bg2.removeMovieClip(); _root.enlyr.removeMovieClip(); _root.interact.removeMovieClip(); _root.hud.removeMovieClip(); _root.vcam.removeMovieClip(); _root.inplay = true; }; heroFunctions = function () { if (_root.hero._x - _root.hero._width / 2 < _root.l_limit._x) { _root.hero._x = _root.l_limit._x + _root.hero._width / 2; } if (_root.hero._y > _root.d_limit._y) { _root.dropoff += 1; _root.hero.life = 0; _root.hero.gotoAndStop(22); } if (_root.hero._y - _root.hero.bound._height < _root.u_limit._y) { _root.hero._y = _root.u_limit._y + _root.hero.bound._height; } if (_root.hero.bound.hitTest(_root.interact.endpoint)) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(1); delete _root.hero.onEnterFrame; fadeout = _root.attachMovie('fadeout', 'fadeout' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); fadeout._x = _root.vcam._x; fadeout._y = _root.vcam._y; _root._currentframe += 1; fadeout.target = _root._currentframe; } _root.lwall._x = _root.hero._x + _root.hero.bound._x - 20 * Math.sin((_root.hero._rotation + 90) * 0.0174533) - 0 * Math.sin((_root.hero._rotation + 180) * 0.0174533); _root.lwall._y = _root.hero._y + _root.hero.bound._y + 20 * Math.cos((_root.hero._rotation + 90) * 0.0174533) + 0 * Math.cos((_root.hero._rotation + 180) * 0.0174533); _root.rwall._x = _root.hero._x + _root.hero.bound._x + 20 * Math.sin((_root.hero._rotation + 90) * 0.0174533) - 0 * Math.sin((_root.hero._rotation + 180) * 0.0174533); _root.rwall._y = _root.hero._y + _root.hero.bound._y - 20 * Math.cos((_root.hero._rotation + 90) * 0.0174533) + 0 * Math.cos((_root.hero._rotation + 180) * 0.0174533); _root.dward._x = _root.hero._x + _root.hero.bound._x - 1 * Math.sin((_root.hero._rotation + 90) * 0.0174533) - -18 * Math.sin((_root.hero._rotation + 180) * 0.0174533); _root.dward._y = _root.hero._y + _root.hero.bound._y + 1 * Math.cos((_root.hero._rotation + 90) * 0.0174533) + -18 * Math.cos((_root.hero._rotation + 180) * 0.0174533); _root.hero._y -= _root.hero.grav; if (_root.hero.grav > -100) { if (_root.hero._currentframe == 8) { _root.hero.grav += 0; } else { if (_root.hero._currentframe == 9 or _root.hero._currentframe == 11) { _root.hero.grav -= 0.1; } else { _root.hero.grav -= 1; } } } while (_root.ground.ground.hitTest(_root.hero._x + _root.hero.bound._x, _root.hero._y + _root.hero.bound._y + _root.hero.bound._height / 2 - 2, true)) { --_root.hero._y; _root.hero.grav = 0; } while (_root.ground.ground.hitTest(_root.hero._x + _root.hero.bound._x, _root.hero._y + _root.hero.bound._y - _root.hero.bound._height / 2 + 2, true)) { ++_root.hero._y; _root.hero.grav = -2; } while (_root.ground.wall.hitTest(_root.rwall._x, _root.rwall._y, true)) { --_root.hero._x; --_root.rwall._x; } while (_root.ground.wall.hitTest(_root.lwall._x, _root.lwall._y, true)) { ++_root.hero._x; ++_root.lwall._x; } if (_root.ground.wall.hitTest(_root.rwall._x + 2, _root.rwall._y, true)) { _root.hero.onRwall = true; } else { _root.hero.onRwall = false; } if (_root.ground.wall.hitTest(_root.lwall._x - 2, _root.lwall._y, true)) { _root.hero.onLwall = true; } else { _root.hero.onLwall = false; } if (_root.ground.ground.hitTest(_root.hero._x + _root.hero.bound._x, _root.hero._y + _root.hero.bound._y + _root.hero.bound._height / 2 + 10, true)) { _root.hero.onGround = true; _root.hero.jumpdelay = 0; } else { _root.hero.onGround = false; } if (_root.hero._currentframe == 20) { if (_root.ground.hitTest(_root.rwall._x + 10, _root.rwall._y, true)) { _root.rwall._x -= 10; _root.hero._x -= 10; _root.hero.xvel *= -1.3; _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } if (_root.ground.hitTest(_root.lwall._x - 10, _root.lwall._y, true)) { _root.rwall._x += 10; _root.hero._x += 10; _root.hero.xvel *= -1.3; _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } } }; getAngle = function (vecx, vecy) { var v1 = Math.sqrt(vecx * vecx + vecy * vecy); if (v1 == 0) { return 0; } var v3; if (vecy < 0) { v3 = 6.283185307179586 - Math.acos(vecx / v1); return v3 * 180 / Math.PI; } v3 = Math.acos(vecx / v1); return v3 * 180 / Math.PI; }; tentapodFunction = function (subject1, subject2) { subject1._y -= subject1.grav; --subject1.grav; while (_root.ground.wall.hitTest(subject1._x + subject1.bound._x - 10, subject1._y, true)) { ++subject1._x; } while (_root.ground.wall.hitTest(subject1._x + subject1.bound._x + 10, subject1._y, true)) { --subject1._x; } if (subject1._y > _root.d_limit._y && subject1._currentframe != 4) { subject1._x = _root.hero._x; subject1._y = _root.hero._y - 50; subject1.grav = 10; subject1.xSpeed = 0; subject1.gotoAndStop(5); _root.teleport.start(0, 0); _root.teleport.setVolume(_root.sfxvol); sparkle = _root.attachMovie('sparkle', 'sparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); sparkle._x = subject1._x; sparkle._y = subject1._y; } while (_root.ground.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + subject1.bound._height / 2 + 2, true)) { --subject1._y; subject1.grav = 0; } while (_root.ground.ground.hitTest(_root.tentapod._x + _root.tentapod.bound._x, _root.tentapod._y + _root.tentapod.bound._y - _root.tentapod.bound._height / 2 - 2, true)) { ++_root.tentapod._y; _root.tentapod.grav = -2; } if (_root.ground.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + subject1.bound._height / 2 + 10, true)) { subject1.onGround = true; } else { subject1.onGround = false; } if (subject1._currentframe == 1) { if (subject2._x - subject1._x > 50) { subject1._xscale = 100; subject1.gotoAndStop(2); } if (subject2._x - subject1._x < -50) { subject1._xscale = -100; subject1.gotoAndStop(2); } if (subject2._x - subject1._x < 60 && subject2._x - subject1._x > -60) { if (subject2._x < subject1._x) { subject1._xscale = -100; } else { subject1._xscale = 100; } subject1.grav = 6.5; subject1.gotoAndStop(3); } } if (subject1._currentframe == 2) { subject1._x += subject1._xscale / 30; if (subject2._x - subject1._x < 60 && subject2._x - subject1._x > -60) { if (subject2._x < subject1._x) { subject1._xscale = -100; } else { subject1._xscale = 100; } subject1.grav = 6.5; subject1.gotoAndStop(3); } if (_root.ground.wall.hitTest(subject1._x + subject1.bound._x + subject1.bound._width * (subject1._xscale / 100), subject1._y, true)) { subject1.gotoAndStop(7); } if (subject1.onGround != true) { subject1.gotoAndStop(3); } } if (subject1._currentframe == 7) { subject1.xSpeed = 0; subject1.grav = 3.3; if (0 == _root.ground.wall.hitTest(subject1._x + subject1.bound._x - subject1.bound._width * (subject1._xscale / -100), subject1._y, true)) { subject1.gotoAndStop(1); } if (_root.hero._y > subject1._y) { if (subject1._xscale == 100 && _root.hero._x < subject1._x) { subject1.gotoAndStop(1); } if (subject1._xscale == -100 && _root.hero._x > subject1._x) { subject1.gotoAndStop(1); } } if (subject1.bound.hitTest(subject2._x + subject2.bound._x, subject2._y + subject2.bound._y, true)) { if (_root.hero._currentframe != 3 && _root.hero._currentframe != 13) { subject1._rotation = 0; subject2.pmc.head.gotoAndStop(2); subject2.pmc.head.notsquidge = true; subject1.gotoAndStop(4); subject1.host = 'hero'; } } } if (subject1._currentframe == 3) { if (_root.ground.wall.hitTest(subject1._x + subject1.bound._x + subject1.bound._width * (subject1._xscale / 100), subject1._y, true)) { subject1.gotoAndStop(7); } subject1.xSpeed = subject1._xscale / 25; subject1._x += subject1.xSpeed; if (subject1.bound.hitTest(subject2._x + subject2.bound._x, subject2._y + subject2.bound._y, true)) { if (_root.hero._currentframe != 3 && _root.hero._currentframe != 13) { subject1._rotation = 0; subject2.pmc.head.gotoAndStop(2); subject2.pmc.head.notsquidge = true; subject1.gotoAndStop(4); subject1.host = 'hero'; } } if (subject1.onGround == true) { subject1._rotation = 0; subject1.gotoAndStop(1); } } if (subject1._currentframe == 6) { } if (subject1._currentframe == 4) { subject1._x = subject2._x; subject1._xscale = subject2._xscale; subject1._y = subject2._y - 25; if (subject1.host.life < 0.1 && subject1.host != 'hero') { subject1.gotoAndStop(5); subject1._x = subject1.host._x + _root.enlyr._x; subject1._y = subject1.host._y + _root.enlyr._y - 30; subject1.xSpeed = 0; subject1.grav = 10; } } if (subject1._currentframe == 5) { if (subject1.xSpeed > 0) { subject1.xSpeed -= 0.5; } if (subject1.xSpeed < 0) { subject1.xSpeed += 0.5; } subject1._x += subject1.xSpeed; if (_root.ground.hitTest(subject1._x + subject1.bound._x + 5, subject1._y + subject1.bound._y, true) or _root.ground.wall.hitTest(subject1._x + subject1.bound._x - 5, subject1._y + subject1.bound._y, true)) { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); subject1.xSpeed *= -1; if (subject1.grav < 0) { subject1.grav *= -1; } } if (_root.enlyr.bear.bound.hitTest(subject1) && subject1.hitbear < 1) { subject1.hitbear += 1; _root.enlyr.bear.life -= 1; _root.hero.randomsound = random(3); subject1.xSpeed *= -1; if (subject1.grav < 0) { subject1.grav *= -1; } _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y - 20); _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 1); _root.points += 10; } if (_root.enlyr.hitTest(subject1)) { i = 0; while (i < _root.eneArray.length) { if (_root.eneArray[i].bound.hitTest(subject1) && _root.eneArray[i].life > 0 && _root.eneArray[i].onGround == true && subject1.onGround != true) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.eneArray[i]._x + _root.enlyr._x, _root.eneArray[i]._y + _root.enlyr._y - 20); if (_root.eneArray[i].enetype == 'worm') { if (subject1.hitbear < 1) { subject1.hitbear += 1; _root.eneArray[i].life -= 1; if (_root.eneArray[i].life < 1) { _root.points += 500; _root.eneArray[i].gotoAndStop('harddead'); } subject1.xSpeed *= -1; if (subject1.grav < 0) { subject1.grav *= -1; } _root.addhit(_root.enlyr.bear._x + _root.enlyr._x, _root.enlyr.bear._y + _root.enlyr._y, 1); _root.points += 10; } } else { _root.eneArray[i].gotoAndStop(12); subject1.host = _root.eneArray[i]; subject1.gotoAndStop(4); subject1.xSpeed = 0; subject1.grav = 0; } } ++i; } } if (subject1.onGround == true) { subject1.gotoAndStop(6); } } else { subject1.hitbear = 0; } }; } frame 1 { function gotoMySite() { getURL('http://www.jayarmstronggames.com', '_top'); } _root.createEmptyMovieClip('sfxMC', 1001); swing0 = new Sound(sfxMC); swing0.attachSound('swing0'); swing1 = new Sound(sfxMC); swing1.attachSound('swing1'); swing2 = new Sound(sfxMC); swing2.attachSound('swing2'); throwsfx = new Sound(sfxMC); throwsfx.attachSound('throwsfx'); swish0 = new Sound(sfxMC); swish0.attachSound('swish0'); swish1 = new Sound(sfxMC); swish1.attachSound('swish1'); swish2 = new Sound(sfxMC); swish2.attachSound('swish2'); _root.createEmptyMovieClip('sfxMC1', 1002); goohit = new Sound(sfxMC1); goohit.attachSound('goohit'); smack0 = new Sound(sfxMC1); smack0.attachSound('smack0'); smack1 = new Sound(sfxMC1); smack1.attachSound('smack1'); smack2 = new Sound(sfxMC1); smack2.attachSound('smack2'); smack3 = new Sound(sfxMC1); smack3.attachSound('smack3'); slice0 = new Sound(sfxMC1); slice0.attachSound('slice0'); slice1 = new Sound(sfxMC1); slice1.attachSound('slice1'); splat = new Sound(sfxMC1); splat.attachSound('splat'); scream0 = new Sound(sfxMC1); scream0.attachSound('scream0'); coinsfx = new Sound(sfxMC1); coinsfx.attachSound('coinsfx'); crate0 = new Sound(sfxMC1); crate0.attachSound('crate0'); crate1 = new Sound(sfxMC1); crate1.attachSound('crate1'); teleport = new Sound(sfxMC1); teleport.attachSound('teleport'); _root.createEmptyMovieClip('sfxMC2', 1003); chicken0 = new Sound(sfxMC2); chicken0.attachSound('chicken0'); chicken1 = new Sound(sfxMC2); chicken1.attachSound('chicken1'); chickenhit = new Sound(sfxMC2); chickenhit.attachSound('chickenhit'); spike0 = new Sound(sfxMC2); spike0.attachSound('spike0'); spike1 = new Sound(sfxMC2); spike1.attachSound('spike1'); arrowshoot = new Sound(sfxMC2); arrowshoot.attachSound('arrowshoot'); arrowhit = new Sound(sfxMC2); arrowhit.attachSound('arrowhit'); arrowmiss = new Sound(sfxMC2); arrowmiss.attachSound('arrowmiss'); drama = new Sound(sfxMC2); drama.attachSound('drama'); _root.createEmptyMovieClip('miscfx', 1004); gatefx = new Sound(miscfx); gatefx.attachSound('gatefx'); bubble = new Sound(miscfx); bubble.attachSound('bubble'); wormscream0 = new Sound(miscfx); wormscream0.attachSound('wormscream0'); wormscream1 = new Sound(miscfx); wormscream1.attachSound('wormscream1'); wormscream2 = new Sound(miscfx); wormscream2.attachSound('wormscream2'); _root.createEmptyMovieClip('miscfx2', 1005); btn = new Sound(miscfx2); btn.attachSound('btn'); crowd = new Sound(miscfx2); crowd.attachSound('crowd'); checkpointsfx = new Sound(miscfx2); checkpointsfx.attachSound('checkpointsfx'); roar = new Sound(miscfx2); roar.attachSound('roar'); _root.createEmptyMovieClip('miscfx3', 1006); win = new Sound(miscfx3); win.attachSound('win'); worm2sfx = new Sound(miscfx3); worm2sfx.attachSound('worm2sfx'); spell = new Sound(miscfx3); spell.attachSound('spell'); _root.createEmptyMovieClip('miscfx4', 1007); gatebtn = new Sound(miscfx4); gatebtn.attachSound('gatebtn'); worm1sfx = new Sound(miscfx4); worm1sfx.attachSound('worm1sfx'); brutedeath = new Sound(miscfx4); brutedeath.attachSound('brutedeath'); oscream0 = new Sound(miscfx4); oscream0.attachSound('oscream0'); oscream1 = new Sound(miscfx4); oscream1.attachSound('oscream1'); oscream2 = new Sound(miscfx4); oscream2.attachSound('oscream2'); _root.createEmptyMovieClip('miscfx5', 1008); medal = new Sound(miscfx5); medal.attachSound('medal'); bang = new Sound(miscfx5); bang.attachSound('bang'); _root.createEmptyMovieClip('miscfx6', 1009); sawsfx = new Sound(miscfx6); sawsfx.attachSound('sawsfx'); _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; _root.mmenu = false; _root.msnow = false; _root.createEmptyMovieClip('musicfx01', 1010); music_Boss = new Sound(musicfx01); music_Boss.attachSound('music_Boss'); music_Castle = new Sound(musicfx01); music_Castle.attachSound('music_Castle'); music_Home1 = new Sound(musicfx01); music_Home1.attachSound('music_Home1'); music_Menu = new Sound(musicfx01); music_Menu.attachSound('music_Menu'); music_Snow = new Sound(musicfx01); music_Snow.attachSound('music_Snow'); music_Intro = new Sound(musicfx01); music_Intro.attachSound('music_Intro'); bitsArray = new Array(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var mySiteLink = new ContextMenuItem('Jay Armstrong Games', gotoMySite); myMenu.customItems.push(mySiteLink); _root.menu = myMenu; } frame 1 { buffaloFunction = function (subject1) { subject1._y -= subject1.grav; --subject1.grav; while (_root.ground.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + subject1.bound._height / 2 - 2, true)) { --subject1._y; subject1.grav = 0; } while (_root.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y - subject1.bound._height / 2 + 2, true)) { ++subject1._y; subject1.grav = -2; } --subject1.timer; if (subject1._currentframe == 2 or subject1._currentframe == 3) { if (Key.isDown(68) && subject1.timer < 1) { subject1.gotoAndStop(4); subject1.timer = 10; } } if (subject1._currentframe == 4) { if (Key.isDown(68) && subject1.timer < 1) { subject1.gotoAndStop(6); subject1.timer = 10; } if (subject1.hitTest(_root.hero.bound)) { subject1.gotoAndStop(5); } } if (subject1._currentframe == 2) { if (_root.hero._x - subject1._x > 100) { subject1.gotoAndStop(3); } if (_root.hero._x - subject1._x < -100) { subject1.gotoAndStop(3); } } if (subject1._currentframe == 3) { subject1._x -= subject1._xscale / subject1.spd; if (_root.hero._x - subject1._x < 100 && _root.hero._x - subject1._x > -100) { subject1.gotoAndStop(2); } if (_root.hero._x - subject1._x < 0) { subject1._xscale = 100; } if (_root.hero._x - subject1._x > 0) { subject1._xscale = -100; } } if (subject1._currentframe == 7) { _root.hero.gotoAndStop(24); _root.hero._x = subject1._x; _root.hero._y = subject1._y; if (Key.isDown(37)) { subject1._xscale = 100; subject1.gotoAndStop(8); } if (Key.isDown(39)) { subject1._xscale = -100; subject1.gotoAndStop(8); } if (Key.isDown(38)) { if (subject1.head._rotation < 90) { subject1.head._rotation += 8; } } if (Key.isDown(40)) { if (subject1.head._rotation > -90) { subject1.head._rotation -= 8; } } if (Key.isDown(68)) { subject1.timer = 30; _root.hero._visible = true; _root.hero._y -= 80; _root.hero.grav = 25; _root.hero.onGround = false; _root.hero.gotoAndStop(20); _root.vcam.target = _root.hero; _root.hero.xvel = 25 * (subject1._xscale / -100); subject1.gotoAndStop(2); } } if (subject1._currentframe == 8) { _root.hero.gotoAndStop(24); _root.hero._x = subject1._x; _root.hero._y = subject1._y; subject1._x -= subject1._xscale / subject1.spd; if (0 == Key.isDown(37) && 0 == Key.isDown(39)) { subject1.gotoAndStop(7); } if (Key.isDown(37)) { subject1._xscale = 100; } if (Key.isDown(39)) { subject1._xscale = -100; } } }; parrotFunction = function (subject1) { --subject1.timer; if (subject1._currentframe == 2) { subject1._x += (_root.hero._x - subject1._x - 50 * (_root.hero._xscale / 100)) / 8; subject1._y += (_root.hero._y - subject1._y - 60) / 8; subject1._xscale = _root.hero._xscale; subject1._rotation += (_root.hero.xvel * 3 - subject1._rotation) / 10; } if (subject1._currentframe == 3) { subject1._y -= subject1.yvel; subject1._x += subject1.xvel; if (Key.isDown(38)) { if (subject1.yvel < subject1.maxspeed) { subject1.yvel += 2; } } if (Key.isDown(40)) { if (subject1.yvel > -subject1.maxspeed) { subject1.yvel -= 2; } } if (Key.isDown(37)) { if (subject1.xvel > -subject1.maxspeed) { subject1.xvel -= 2; subject1._xscale = -100; } } if (Key.isDown(39)) { if (subject1.xvel < subject1.maxspeed) { subject1.xvel += 2; subject1._xscale = 100; } } if (subject1.xvel > 0) { subject1.xvel -= 0.5; } if (subject1.xvel < 0) { subject1.xvel += 0.5; } if (subject1.yvel > 0) { subject1.yvel -= 0.5; } if (subject1.yvel < 0) { subject1.yvel += 0.5; } subject1._rotation += (subject1.xvel - subject1.yvel - subject1._rotation) / 3; while (_root.ground.hitTest(subject1._x, subject1._y + 10, true)) { --subject1._y; subject1.yvel = 0; } while (_root.ground.hitTest(subject1._x, subject1._y - 10, true)) { ++subject1._y; subject1.yvel = 0; } while (_root.ground.hitTest(subject1._x - 10, subject1._y, true)) { ++subject1._x; subject1.xvel = 0; } while (_root.ground.hitTest(subject1._x + 10, subject1._y, true)) { --subject1._x; subject1.xvel = 0; } if (subject1._y > _root.d_limit._y) { subject1._y = _root.d_limit._y; } if (subject1._y < _root.u_limit._y + subject1._height) { subject1._y = _root.u_limit._y + subject1._height; } if (_root.hero._currentframe == 23 or _root.hero._currentframe == 22 or _root.hero._currentframe == 17) { subject1.gotoAndStop(2); _root.vcam.target = _root.hero; } } if (Key.isDown(68)) { if (subject1._currentframe == 2 && subject1.timer < 1) { subject1.gotoAndStop(3); subject1.timer = 10; _root.vcam.target = _root.parrot; _root.hero.gotoAndStop(24); } if (subject1._currentframe == 3 && subject1.timer < 1) { subject1.gotoAndStop(2); subject1.timer = 10; _root.vcam.target = _root.hero; _root.hero.gotoAndStop(1); } } }; } frame 1 { function sitelock(urls_allowed) { lock = true; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { delete _root.onEnterFrame; _root._alpha = 0; } } Playtomic.Log.View(4302, 'd7f643d26d2d4733', _root._url); var kongregate = _global.kongregate; kongregate.services.connect(); stop(); onEnterFrame = function () { _root.bar.lbar._xscale = Math.floor((_root.getBytesLoaded() / getBytesTotal()) * 100); if (_root.bar.lbar._xscale == 100) { Playtomic.Log.Play(); _root.bar.gotoAndStop(2); } }; } movieClip 680 { } movieClip 687 { } instance of movieClip 687 { onClipEvent (load) { this.cacheAsBitmap = true; } } // unknown tag 88 length 44 movieClip 693 { frame 1 { stop(); } frame 6 { stop(); } } instance of movieClip 693 { onClipEvent (rollOver) { _root.bubble.start(0, 0); _root.bubble.setVolume(100); gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { _root.btn.start(0, 0); _root.btn.setVolume(100); getURL('http://armorgames.com/', '_blank'); } } movieClip 696 { } movieClip 698 { } movieClip 699 { frame 1 { stop(); } frame 6 { stop(); } } instance of movieClip 699 { onClipEvent (rollOver) { gotoAndPlay(2); _root.bubble.start(0, 0); _root.bubble.setVolume(100); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { getURL('http://jayarmstronggames.com/', '_blank'); _root.btn.start(0, 0); _root.btn.setVolume(100); } } // unknown tag 88 length 63 movieClip 711 { } movieClip 712 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 713 { frame 1 { stop(); } instance of movieClip 712 { onClipEvent (rollOver) { this.gotoAndPlay(2); _root.bubble.start(0, 0); _root.bubble.setVolume(100); } onClipEvent (rollOut) { this.gotoAndPlay(6); } onClipEvent (release) { _root.btn.start(0, 0); _root.btn.setVolume(100); _root.gotoAndStop('armorlogo'); } } } movieClip 717 { } movieClip 1779 __Packages.Playtomic.LogRequest { #initclip if (!_global.Playtomic) { _global.Playtomic = new Object(); } if (!_global.Playtomic.LogRequest) { var v1 = function () {}; Playtomic.LogRequest = v1; var v2 = v1.prototype; v2.Queue = function (data) { ++this.Pieces; this.Data += ((this.Data == '') ? '' : '~') + data; if (this.Pieces == 8 || this.Data.length > 300) { this.Pieces = 0; this.Ready = true; } }; v2.Send = function () { var v3 = function (success) { if (this.Data.indexOf('v/') == 0 || this.Data.indexOf('~v/') > -1) { Playtomic.Log.IncreaseViews(); } if (this.Data.indexOf('p/') == 0 || this.Data.indexOf('~p/') > -1) { Playtomic.Log.IncreasePlays(); } }; var v2 = new LoadVars(); v2.sendAndLoad('http://g' + Playtomic.Log.GUID + '.api.playtomic.com/Tracker/q.aspx?swfid=' + Playtomic.Log.SWFID + '&q=' + this.Data + '&url=' + Playtomic.Log.SourceUrl + '&' + Math.random() + 'z', v3, 'POST'); }; v2.Data = ''; v2.Ready = false; ASSetPropFlags(Playtomic.LogRequest.prototype, null, 1); } #endinitclip } movieClip 1780 __Packages.Playtomic.Log { #initclip if (!_global.Playtomic) { _global.Playtomic = new Object(); } if (!_global.Playtomic.Log) { var v1 = function () {}; Playtomic.Log = v1; var v2 = v1.prototype; v1.View = function (swfid, guid, defaulturl) { if (swfid == undefined) { swfid = 0; } if (guid == undefined) { guid = ''; } if (defaulturl == undefined) { defaulturl = ''; } if (Playtomic.Log.SWFID > 0) { return undefined; } Playtomic.Log.SWFID = swfid; Playtomic.Log.GUID = guid; Playtomic.Log.Enabled = true; if (Playtomic.Log.SWFID == 0 || Playtomic.Log.GUID == '') { Playtomic.Log.Enabled = false; return undefined; } if (defaulturl.indexOf('http://') != 0) { Playtomic.Log.Enabled = false; return undefined; } Playtomic.Log.SourceUrl = defaulturl; if (Playtomic.Log.SourceUrl == null || Playtomic.Log.SourceUrl == '' || Playtomic.Log.SourceUrl.indexOf('https://') == 0) { Playtomic.Log.Enabled = false; return undefined; } Playtomic.Log.Cookie = SharedObject.getLocal('playtomic'); var v5 = Playtomic.Log.GetCookie('views'); Playtomic.Log.Send('v/' + v5, true); _global.setTimeout(Playtomic.Log.PingServer, 60000); }; v1.ForceSend = function () { if (Playtomic.Log.Request == null) { return undefined; } Playtomic.Log.Request.Send(); Playtomic.Log.Request = new Playtomic.LogRequest(); }; v1.Play = function () { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.LevelCounters = new Array(); Playtomic.Log.LevelAverages = new Array(); Playtomic.Log.LevelRangeds = new Array(); Playtomic.Log.Send('p/' + (Playtomic.Log.Plays + 1), true); }; v1.CustomMetric = function (name, group, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (group == null || group == undefined) { group = ''; } if (unique == null || unique == undefined) { unique = false; } if (unique) { if (Playtomic.Log.Customs.indexOf(name) > -1) { return undefined; } Playtomic.Log.Customs.push(name); } Playtomic.Log.Send('c/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(group)); }; v1.Link = function (url, name, group, unique, total, fail) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('l/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(group) + '/' + Playtomic.Log.Clean(url) + '/' + unique + '/' + total + '/' + fail); }; v1.LevelCounterMetric = function (name, level, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.LevelCounters.indexOf(v1) > -1) { return undefined; } Playtomic.Log.LevelCounters.push(v1); } Playtomic.Log.Send('lc/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level)); }; v1.LevelRangedMetric = function (name, level, value, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.LevelRangeds.indexOf(v1) > -1) { return undefined; } Playtomic.Log.LevelRangeds.push(v1); Playtomic.Log.SaveCookie('lr_' + name, 1); } Playtomic.Log.Send('lr/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level) + '/' + value); }; v1.LevelAverageMetric = function (name, level, value, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.LevelAverages.indexOf(v1) > -1) { return undefined; } Playtomic.Log.LevelAverages.push(v1); } Playtomic.Log.Send('la/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level) + '/' + value); }; v1.Heatmap = function (name, group, x, y) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('h/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(group) + '/' + x + '/' + y); }; v1.Funnel = function (name, step, stepnum) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('f/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(step) + '/' + stepnum); }; v1.PlayerLevelStart = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('pls/' + levelid); }; v1.PlayerLevelWin = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plw/' + levelid); }; v1.PlayerLevelQuit = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plq/' + levelid); }; v1.PlayerLevelRetry = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plr/' + levelid); }; v1.PlayerLevelFlag = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plf/' + levelid); }; v1.PingServer = function () { if (!Playtomic.Log.Enabled) { return undefined; } ++Playtomic.Log.Pings; Playtomic.Log.Send('t/' + (Playtomic.Log.FirstPing ? 'y' : 'n') + '/' + Playtomic.Log.Pings, true); if (Playtomic.Log.FirstPing) { Playtomic.Log.FirstPing = false; setInterval(Playtomic.Log.PingServer, 60000); } }; v1.Send = function (s, view) { if (view == undefined) { view = false; } Playtomic.Log.Request.Queue(s); if (Playtomic.Log.Request.Ready || view || !Playtomic.Log.Queue) { Playtomic.Log.Request.Send(); Playtomic.Log.Request = new Playtomic.LogRequest(); } }; v1.GetCookie = function (n) { if (Playtomic.Log.Cookie.data[n] == undefined) { return 0; } else { return parseInt(Playtomic.Log.Cookie.data[n]); } }; v1.SaveCookie = function (n, v) { Playtomic.Log.Cookie.data[n] = v.toString(); Playtomic.Log.Cookie.flush(); }; v1.Clean = function (s) { while (s.indexOf('/') > -1) { s = Playtomic.Log.Replace(s, '/', '\\'); } while (s.indexOf('~') > -1) { s = Playtomic.Log.Replace(s, '~', '-'); } return escape(s); }; v1.Replace = function (str, find, replace) { return (str.split(find)).join(replace); }; v1.IncreaseViews = function () { var v1 = Playtomic.Log.GetCookie('views'); ++v1; Playtomic.Log.SaveCookie('views', v1); }; v1.IncreasePlays = function () { ++Playtomic.Log.Plays; }; v1.Enabled = false; v1.Queue = true; v1.SWFID = 0; v1.GUID = ''; v1.Request = new Playtomic.LogRequest(); v1.FirstPing = true; v1.Pings = 0; v1.Plays = 0; v1.HighestGoal = 0; v1.Customs = new Array(); v1.LevelCounters = new Array(); v1.LevelAverages = new Array(); v1.LevelRangeds = new Array(); ASSetPropFlags(Playtomic.Log.prototype, null, 1); } #endinitclip } frame 2 { _root.saveitFunction(); stop(); if (_root.mmenu != true) { stopAllSounds(); _root.music_Menu.start(0, 99); _root.music_Menu.setVolume(_root.musicvol); _root.mmenu = true; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } } frame 2 { } movieClip 724 { frame 42 { stop(); } } movieClip 731 { frame 13 { stop(); } } movieClip 732 { } movieClip 744 { frame 8 { stop(); } } movieClip 745 { frame 1 { stop(); yoff = [0, 30, 60, 87.5]; woff = [80, 100, 150, 95]; choicepos = 0; timer = 20; plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; _root.mutetimer = 10; onEnterFrame = function () { --_root.mutetimer; if (Key.isDown(77)) { if (_root.sfxvol > 0 && _root.mutetimer < 1) { _root.sfxvol = 0; _root.musicvol = 0; _root.mutetimer = 10; } if (_root.sfxvol < 1 && _root.mutetimer < 1) { _root.sfxvol = 100; _root.musicvol = 100; _root.mutetimer = 10; } _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } --timer; mp._y += (yoff[choicepos] - mp._y) / 3; mp.l._x += (-(woff[choicepos] / 2) - mp.l._x) / 3; mp.r._x += (woff[choicepos] / 2 - mp.r._x) / 3; if ((Key.isDown(40) or Key.isDown(39)) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; _root.abtn.gotoAndStop('loop'); } if ((Key.isDown(38) or Key.isDown(37)) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; _root.abtn.gotoAndStop('loop'); } if (0 == Key.isDown(38) && 0 == Key.isDown(40) && 0 == Key.isDown(37) && 0 == Key.isDown(39) && 0 == Key.isDown(65) && 0 == Key.isDown(67)) { timer = 0; } if (Key.isDown(65) && timer < 1) { _root.abtn.gotoAndStop('loop'); plysound2(); if (choicepos == 0) { if (_root.l2 == true) { _root.gotoAndStop('map'); } else { _root.gotoAndStop('character'); } } if (choicepos == 1) { delete this.onEnterFrame; _root.gotoAndStop(44); } if (choicepos == 2) { getURL('http://www.armorgames.com', '_blank'); timer = 10; } if (choicepos == 3) { delete this.onEnterFrame; this.gotoAndStop(2); } } }; } frame 2 { yoff = [20, 60, 83]; woff = [190, 170, 30]; choicepos = 0; timer = 10; onEnterFrame = function () { mp._y += (yoff[choicepos] - mp._y) / 3; mp.l._x += (-(woff[choicepos] / 2) - mp.l._x) / 3; mp.r._x += (woff[choicepos] / 2 - mp.r._x) / 3; if ((Key.isDown(40) or Key.isDown(39)) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; } if ((Key.isDown(38) or Key.isDown(37)) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; } if (0 == Key.isDown(38) && 0 == Key.isDown(40) && 0 == Key.isDown(37) && 0 == Key.isDown(39) && 0 == Key.isDown(65) && 0 == Key.isDown(67)) { timer = 0; } --timer; if ((Key.isDown(65) or Key.isDown(67)) && timer < 1) { plysound2(); timer = 20; if (choicepos == 0) { getURL('http://jayarmstronggames.com/', '_blank'); } if (choicepos == 1) { getURL('http://waterflame.newgrounds.com', '_blank'); } if (choicepos == 2) { delete this.onEnterFrame; this.gotoAndStop(1); } } }; } } instance of movieClip 693 { onClipEvent (rollOver) { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); } } instance of movieClip 699 { onClipEvent (rollOver) { gotoAndPlay(2); _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { getURL('http://jayarmstronggames.com/', '_blank'); _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); } } movieClip 748 { } movieClip 753 { frame 59 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 118 { gotoAndPlay('loop'); } } movieClip 756 { } movieClip 761 { frame 1 { this.gotoAndStop(_root.hero_skin); } } movieClip 764 { frame 1 { if (_root.piratemode == true) { this.gotoAndStop(2); } if (_root.piratemode == false) { this.gotoAndStop(1); } } } movieClip 766 { instance of movieClip 764 { onClipEvent (load) { if (_root.piratemode == true) { this.swapDepths(_parent.getNextHighestDepth()); this.removeMovieClip(); } } } frame 10 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 18 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 30 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } frame 37 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 44 { stop(); } } movieClip 767 { frame 47 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 54 { stop(); } } movieClip 768 { frame 14 { stop(); } } frame 3 { targetxscale = 75; onEnterFrame = function () { _root.vcam._x += (_root.map.pointer._x + _root.map._x - _root.vcam._x) / 3; _root.vcam._y += (_root.map.pointer._y + _root.map._y - _root.vcam._y) / 3; _root.vcam._xscale += (targetxscale - _root.vcam._xscale) / 12; _root.vcam._yscale = _root.vcam._xscale; _root.mapbg._x = _root.vcam._x; _root.mapbg._y = _root.vcam._y; _root.mapbg._xscale = _root.vcam._xscale; _root.mapbg._yscale = _root.mapbg._xscale; _root.maphud._x = _root.vcam._x; _root.maphud._y = _root.vcam._y; _root.maphud._xscale = _root.vcam._xscale; _root.maphud._yscale = _root.maphud._xscale; _root.fade._x = _root.vcam._x - _root.vcam._width / 2; _root.fade._y = _root.vcam._y - _root.vcam._height / 2; _root.fade._xscale = _root.vcam._xscale; _root.fade._yscale = _root.maphud._xscale; _root.cameraFunction(); }; } movieClip 770 { } movieClip 774 { } movieClip 779 { frame 1 { if (_root.piratemode == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } movieClip 780 { frame 15 { stop(); } } movieClip 781 { } movieClip 782 { frame 1 { origmap = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6', 'l7', 'l8', 'l9', 'l10', 'l11', 'l12', 'l13', 'l14', 'l15', 'l16', 'l17']; placenames = ['home', 'culfords bridge', 'city limits', 'outer lands', 'old town', 'castle gates', 'bears castle', 'castle dungeons', 'dungeon barracks', 'captains quarters', 'outer mavigonia', 'lair of the worm', 'mt endeavour', 'bears arena', 'outer arena', 'bears cave']; map = []; choicepos = 0; timer = 30; _root.mutetimer = 10; totalc = [0, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 0]; chome = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; if (_root.c1 == true) { chome[1] += 1; } if (_root.c2 == true) { chome[2] += 1; } if (_root.c3 == true) { chome[3] += 1; } if (_root.c4 == true) { chome[4] += 1; } if (_root.c5 == true) { chome[5] += 1; } if (_root.c6 == true) { chome[6] += 1; } if (_root.c7 == true) { chome[7] += 1; } if (_root.c8 == true) { chome[7] += 1; } if (_root.c9 == true) { chome[8] += 1; } if (_root.c10 == true) { chome[9] += 1; } if (_root.c11 == true) { chome[10] += 1; } if (_root.c12 == true) { chome[11] += 1; } if (_root.c13 == true) { chome[12] += 1; } if (_root.c14 == true) { chome[12] += 1; } if (_root.c15 == true) { chome[13] += 1; } if (_root.c16 == true) { chome[14] += 1; } i = 0; while (i < placenames.length) { temp = placenames[i].toUpperCase(); placenames[i] = temp; ++i; } plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; _root.l1 = true; i = 0; while (i < origmap.length - 1) { if (_root[origmap[i]] == true) { this[origmap[i]].gotoAndStop(1); map.push(this[origmap[i]]); } else { this[origmap[i]].gotoAndStop(2); } ++i; } onEnterFrame = function () { --_root.mutetimer; if (Key.isDown(77)) { if (_root.sfxvol > 0 && _root.mutetimer < 1) { _root.sfxvol = 0; _root.musicvol = 0; _root.mutetimer = 10; } if (_root.sfxvol < 1 && _root.mutetimer < 1) { _root.sfxvol = 100; _root.musicvol = 100; _root.mutetimer = 10; } _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } if (_root.maphud.mdisp._currentframe == 1) { pointer._x += (map[choicepos]._x - pointer._x) / 3; pointer._y += (map[choicepos]._y - pointer._y) / 3; x1 = _root.maphud.arrow._x + _root.maphud._x; y1 = _root.maphud.arrow._y + _root.maphud._y; a = map[choicepos]._x - x1; b = map[choicepos]._y - y1; c = Math.sqrt(a * a + b * b); _root.maphud.arrow._xscale = c; _root.maphud.arrow._rotation = Math.atan2(map[choicepos]._y - (_root.maphud.arrow._y + _root.maphud._y), map[choicepos]._x - (_root.maphud.arrow._x + _root.maphud._x)) * 180 / Math.PI; _root.maphud.placename = placenames[choicepos]; if (totalc[choicepos] == 0) { _root.maphud.cc._visible = false; } else { _root.maphud.cc._visible = true; } _root.maphud.howmanychickens = chome[choicepos] + '/' + totalc[choicepos]; --timer; if ((Key.isDown(27) or Key.isDown(83)) && timer < 1) { plysound2(); delete _root.onEnterFrame; _root.vcam.swapDepths(_root.getNextHighestDepth()); _root.vcam.removeMovieClip(); _root.gotoAndStop(2); timer = 10; } if (Key.isDown(65) && timer < 1) { plysound2(); delete _root.onEnterFrame; _root.vcam.swapDepths(_root.getNextHighestDepth()); _root.vcam.removeMovieClip(); if ('lvl' + (choicepos + 1) == 'lvl1') { _root.gotoAndStop('c1'); } else { _root.gotoAndPlay('lvl' + (choicepos + 1)); } timer = 10; } if (Key.isDown(69) && timer < 1) { plysound2(); delete _root.onEnterFrame; _root.vcam.swapDepths(_root.getNextHighestDepth()); _root.vcam.removeMovieClip(); _root.gotoAndStop('character'); timer = 10; } if ((Key.isDown(40) or Key.isDown(39)) && timer < 1) { ++choicepos; timer = 10; plysound(); this.pointer.lm.gotoAndPlay(1); } if ((Key.isDown(38) or Key.isDown(37)) && timer < 1) { timer = 10; --choicepos; plysound(); this.pointer.lm.gotoAndPlay(1); } if (choicepos < 0) { choicepos = map.length - 1; } if (choicepos > map.length - 1) { choicepos = 0; } if (Key.isDown(67) && timer < 1) { timer = 10; plysound2(); _root.maphud.mdisp.gotoAndStop(2); } if (Key.isDown(88)) { if (timer < 1 && _root.piratemode == false && _root.maphud.m.pm._currentframe == 3) { _root.piratemode = true; plysound2(); _root.maphud.m.pm.gotoAndStop(2); _root.maphud.m.pm.pmd.gotoAndPlay(2); this.pointer.lm.ind.gotoAndStop(2); this.pointer.lm.gotoAndPlay(1); timer = 10; } if (timer < 1 && _root.piratemode == true && _root.maphud.m.pm._currentframe == 2) { _root.piratemode = false; plysound2(); _root.maphud.m.pm.gotoAndStop(3); _root.maphud.m.pm.pmd.gotoAndPlay(2); _root.maphud.m.pm.pmd.head.gotoAndStop(1); this.pointer.lm.ind.gotoAndStop(1); this.pointer.lm.gotoAndPlay(1); timer = 10; } } if (0 == Key.isDown(67) && 0 == Key.isDown(88) && 0 == Key.isDown(38) && 0 == Key.isDown(40) && 0 == Key.isDown(37) && 0 == Key.isDown(39) && 0 == Key.isDown(65)) { timer = 0; } } }; } } movieClip 784 { frame 1 { function camControl() { rp.x = _x; rp.y = _y; var v4 = camH * _yscale * 0.01; var v3 = camW * _xscale * 0.01; var v6 = sH / v4; var v5 = sW / v3; _x2 = (v3 / 2) * v5; _y2 = (v4 / 2) * v6; _xscale2 = v5 * 100; _yscale2 = v6 * 100; _parent.filters = this.filters; _parent.transform.colorTransform = this.transform.colorTransform; } function reset() { _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; _parent._rotation = 0; _parent._visible = true; _root.reset_mc._x = 350; _root.reset_mc._y = 200; } function set_x2(value) { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent._x += value - v2.x; } function get_x2() { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); return v2.x; } function set_y2(value) { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent._y += value - v2.y; } function get_y2() { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); return v2.y; } function get_xscale2() { return _parent._xscale; } function set_xscale2(value) { setProperty2('_xscale', value); } function get_yscale2() { return _parent._yscale; } function set_yscale2(value) { setProperty2('_yscale', value); } function get_rotation2() { return parent.rotation; } function setProperty2(prop, n) { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent[prop] = n; var v3 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v3); _parent._x -= v3.x - v2.x; _parent._y -= v3.y - v2.y; } addProperty('_xscale2', get_xscale2, set_xscale2); addProperty('_yscale2', get_yscale2, set_yscale2); _visible = false; addProperty('_x2', get_x2, set_x2); addProperty('_y2', get_y2, set_y2); var oldScaleMode = stage.scaleMode; stage.scaleMode = 'exactFit'; var sW = Stage.width; var sH = Stage.height; stage.scaleMode = oldScaleMode; var bounds_obj = this.getBounds(this); var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin); var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin); var rp = {'x': this._x, 'y': this._y}; this.onUnload = reset; } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } movieClip 787 { } movieClip 788 { } movieClip 790 { } movieClip 801 { frame 1 { stop(); } frame 2 { play(); } } movieClip 805 { frame 1 { stop(); } frame 2 { play(); } } movieClip 806 { frame 1 { stop(); if (_root.piratemodeunlocked == false) { stop; } else { if (_root.piratemodeunlocked == true) { if (_root.piratemode == true) { this.gotoAndStop(2); } if (_root.piratemode == false) { this.gotoAndStop(3); } } } } } movieClip 807 { frame 29 { stop(); } } movieClip 815 { } movieClip 821 { } movieClip 826 { frame 32 { stop(); } } movieClip 831 { frame 38 { stop(); } } movieClip 832 { frame 1 { stop(); } frame 2 { i = 1; xoff = 0; yoff = 0; mnm = ['HIGH 5', 'BANDIT', 'WARRIOR', 'EX CAPITANO', 'EARLY BIRD', 'BIG HEART', 'HEARTLESS', 'RICH', 'MILLIONAIRE', 'POCKET MONEY', 'CLUMSY', 'SCURVY SEADOG', 'OCTO-JUSTICE', 'HOME TO ROOST', 'SAVIOUR', 'COMPLETIONIST']; mnd = ['GET 5 KILLS', 'GET 25 KILLS', 'GET 50 KILLS', 'KILL A CAPTAIN', 'KILL A DEATHWORM', 'SHOW MERCY TO BEAR', 'KILL BEAR', 'GET 1000 POINTS', 'GET A MILLION POINTS', 'GET 500 POINTS', 'FALL INTO AN ABYSS', 'PLAY IN PIRATE MODE', 'OCTOPOD ATTACK', 'GET ALL CHICKENS HOME', 'RESCUE 10 HOSTAGES', 'GET 100%']; ttimer = 10; ccount = 0; k = 0; while (k < 17) { if (_root['c' + k] == true) { ccount += 1; } ++k; } onEnterFrame = function () { if (i < 17) { nm = this.attachMovie('meddisp', 'nm' + i, this.getNextHighestDepth()); nm._x = 130.8 + xoff; nm._y = 50 + yoff; nm.medname = mnm[i - 1]; nm.meddescription = mnd[i - 1]; if (_root['m' + i] == true) { nm.gotoAndStop(2); } else { nm.gotoAndStop(1); } ++i; if (xoff > 300) { xoff = 0; yoff += 60; } else { xoff += 200; } } --ttimer; if (Key.isDown(67) && ttimer < 1) { j = 0; while (j < 17) { this['nm' + j].removeMovieClip(); ++j; } _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); _root.map.timer = 20; delete this.onEnterFrame; ttimer = 10; this.gotoAndStop(1); } }; } } movieClip 833 { } movieClip 835 { frame 1 { _visible = false; } } frame 4 { stop(); delete this.onEnterFrame; onEnterFrame = function () { delete this.female.model.onEnterFrame; delete this.male.model.onEnterFrame; delete eval(this.female.model.gotoAndStop(1)); delete eval(this.male.model.gotoAndStop(1)); this.female.model.pmc.head.head.eyes.gotoAndStop(2); this.female.model.pmc.head.head.hair.gotoAndStop(2); this.female.model.pmc.head.ponytail.gotoAndStop(_root.hero_hair + 1); this.female.model.pmc.head.head.hair.hair.gotoAndStop(_root.hero_hair); this.female.model.pmc.head.head.skin.gotoAndStop(_root.hero_skin); this.female.model.pmc.head.head.beard.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.head.beard.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.ponytail.gotoAndStop(1); this.male.model.pmc.head.head.eyes.gotoAndStop(1); this.male.model.pmc.head.head.hair.gotoAndStop(1); this.male.model.pmc.head.head.hair.hair.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.head.skin.gotoAndStop(_root.hero_skin); male._x += (216.6666666666667 - male._x) / 3; female._x += (433.3333333333333 - female._x) / 3; if (this.female._currentframe == 1) { if (Key.isDown(39)) { this.female.gotoAndStop(2); } } if (this.female._currentframe == 2) { if (Key.isDown(37)) { this.female.gotoAndStop(1); } if (Key.isDown(65) && this.female._currentframe == 2) { this.female.gotoAndPlay(3); _root.hero_sex = 'f'; } } if (this.male._currentframe == 1) { if (Key.isDown(37)) { this.male.gotoAndStop(2); } } if (this.male._currentframe == 2) { if (Key.isDown(39)) { this.male.gotoAndStop(1); } } if (Key.isDown(65) && this.male._currentframe == 2) { this.male.gotoAndPlay(3); _root.hero_sex = 'm'; } }; } instance of movieClip 687 { onClipEvent (load) { this.cacheAsBitmap = true; } } movieClip 839 { } movieClip 843 { frame 1 { stop(); } frame 19 { _root.gotoAndStop('customise'); } } movieClip 845 { } movieClip 849 { frame 1 { stop(); } frame 19 { _root.gotoAndStop('customise'); } } frame 5 { stop(); delete this.onEnterFrame; onEnterFrame = function () { delete this.female.model.onEnterFrame; delete this.male.model.onEnterFrame; delete eval(this.female.model.gotoAndStop(1)); delete eval(this.male.model.gotoAndStop(1)); this.female.model.pmc.head.head.eyes.gotoAndStop(2); this.female.model.pmc.head.head.hair.gotoAndStop(2); this.female.model.pmc.head.ponytail.gotoAndStop(_root.hero_hair + 1); this.female.model.pmc.head.head.hair.hair.gotoAndStop(_root.hero_hair); this.female.model.pmc.head.head.skin.gotoAndStop(_root.hero_skin); this.female.model.pmc.head.head.beard.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.head.beard.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.ponytail.gotoAndStop(1); this.male.model.pmc.head.head.eyes.gotoAndStop(1); this.male.model.pmc.head.head.hair.gotoAndStop(1); this.male.model.pmc.head.head.hair.hair.gotoAndStop(_root.hero_hair); this.male.model.pmc.head.head.skin.gotoAndStop(_root.hero_skin); if (_root.hero_sex == 'm') { male._x += (433.3333333333333 - male._x) / 5; female._y += (-50 - female._x) / 5; customise._x += (216.6666666666667 - customise._x) / 5; } if (_root.hero_sex == 'f') { male._y += (-50 - male._x) / 5; female._x += (216.6666666666667 - female._x) / 5; customise._x += (433.3333333333333 - customise._x) / 5; } }; } movieClip 851 { frame 1 { stop(); yoff = [-40, 0, 60]; woff = [174, 174, 120]; choicepos = 0; timer = 20; plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; onEnterFrame = function () { --timer; mp._y += (yoff[choicepos] - mp._y) / 3; mp.l._x += (woff[choicepos] / 2 - mp.l._x) / 3; mp.r._x += (-(woff[choicepos] / 2) - mp.r._x) / 3; if (Key.isDown(40) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; } if (Key.isDown(38) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; } if (0 == Key.isDown(38) && 0 == Key.isDown(40) && 0 == Key.isDown(37) && 0 == Key.isDown(39) && 0 == Key.isDown(65) && 0 == Key.isDown(67)) { timer = 0; } if (Key.isDown(39) && timer < 1) { if (choicepos == 0) { plysound2(); if (_root.hero_hair < _root.male.model.pmc.head.head.hair.hair._totalframes) { _root.hero_hair += 1; } timer = 10; } if (choicepos == 1) { plysound2(); _root.hero_skin += 1; timer = 10; } } if (Key.isDown(37) && timer < 1) { if (choicepos == 0) { plysound2(); if (_root.hero_hair > 1) { _root.hero_hair -= 1; } timer = 10; } if (choicepos == 1) { plysound2(); if (_root.hero_skin > 1) { _root.hero_skin -= 1; timer = 10; } } } if (Key.isDown(65) && timer < 1) { if (choicepos == 2) { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); delete this.onEnterFrame; _root.gotoAndStop('map'); } } }; } } frame 6 { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } frame 7 { _root.levelname = 'HOME'; _root.l1 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 1); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 853 { } movieClip 854 { } movieClip 857 { } movieClip 860 { frame 1 { b; } } movieClip 861 { } movieClip 866 { } movieClip 868 { } movieClip 870 { } movieClip 871 { } movieClip 876 { } movieClip 877 { } movieClip 879 { } movieClip 883 { frame 1 { this.gotoAndStop(_parent.todisplay); } } movieClip 884 { frame 1 { stop(); onEnterFrame = function () { if (_root.hero.hitTest(this)) { delete this.onEnterFrame; this.gotoAndPlay(2); } }; } frame 20 { stop(); } } movieClip 886 { frame 1 { _root.checkpoint = this; _visible = false; } } movieClip 888 { frame 1 { _visible = false; } } movieClip 889 { instance of movieClip 884 { onClipEvent (load) { todisplay = 3; } } instance of movieClip 884 { onClipEvent (load) { todisplay = 2; } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } movieClip 895 { } movieClip 899 { } movieClip 905 { frame 1 { this.gotoAndStop(_root.continues + 1); } instance of movieClip 899 { onClipEvent (load) { if (_root.difficulty == 'hard') { this._visible = true; } if (_root.difficulty == 'medium') { this._visible = true; } if (_root.difficulty == 'easy') { this._visible = true; } } } instance of movieClip 899 { onClipEvent (load) { if (_root.difficulty == 'hard') { this._visible = true; } if (_root.difficulty == 'medium') { this._visible = true; } if (_root.difficulty == 'easy') { this._visible = true; } } } instance of movieClip 899 { onClipEvent (load) { if (_root.difficulty == 'hard') { this._visible = false; } if (_root.difficulty == 'medium') { this._visible = true; } if (_root.difficulty == 'easy') { this._visible = true; } } } instance of movieClip 899 { onClipEvent (load) { if (_root.difficulty == 'hard') { this._visible = false; } if (_root.difficulty == 'medium') { this._visible = false; } if (_root.difficulty == 'easy') { this._visible = true; } } } instance of movieClip 899 { onClipEvent (load) { if (_root.difficulty == 'hard') { this._visible = false; } if (_root.difficulty == 'medium') { this._visible = false; } if (_root.difficulty == 'easy') { this._visible = true; } } } } movieClip 910 { frame 1 { stop(); } frame 2 { _root.inplay = false; onEnterFrame = function () { _root.hud._x = _root.vcam._x; _root.hud._y = _root.vcam._y; }; } frame 45 { delete this.onEnterFrame; _root.gotoAndPlay(_root._currentframe - 1); _root.resetlevel(); } } movieClip 917 { } movieClip 918 { frame 119 { stop(); } } movieClip 939 { } movieClip 955 { frame 1 { _root.enlyr.en1.mc.play(); _root.enlyr.en2.mc.play(); stop(); delete this.onEnterFrame; } frame 2 { _root.enlyr.en1.mc.stop(); _root.enlyr.en2.mc.stop(); stop(); yoff = [-114, -84, -32, 16, 16, 46.5, 86.55]; xoff = [0, 0, 0, -85, 65, 0, 0, 0]; woff = [80, 95, 70, 30, 30, 100, 120]; choicepos = 0; timer = 20; plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; onEnterFrame = function () { --timer; mp._y += (yoff[choicepos] - mp._y) / 3; mp._x += (xoff[choicepos] - mp._x) / 3; mp.l._x += (-(woff[choicepos] / 2) - mp.l._x) / 3; mp.r._x += (woff[choicepos] / 2 - mp.r._x) / 3; this.diff.gotoAndStop(_root.difficulty); if (Key.isDown(40) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; } if (Key.isDown(38) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; } if (choicepos == 1) { if (Key.isDown(65) && timer < 1) { getURL('http://armorgames.com/', '_blank'); } } if (choicepos == 2) { if (Key.isDown(39)) { if (_root.difficulty == 'easy' && timer < 1) { plysound2(); _root.difficulty = 'medium'; timer = 10; } if (_root.difficulty == 'medium' && timer < 1) { plysound2(); _root.difficulty = 'hard'; timer = 10; } } if (Key.isDown(37)) { if (_root.difficulty == 'hard' && timer < 1) { plysound2(); _root.difficulty = 'medium'; timer = 10; } if (_root.difficulty == 'medium' && timer < 1) { plysound2(); _root.difficulty = 'easy'; timer = 10; } } } if (choicepos == 3) { if (Key.isDown(39) && timer < 1) { plysound2(); if (_root.sfxvol < 100) { _root.sfxvol += 1; } timer = 2; } if (Key.isDown(37) && timer < 1) { plysound2(); if (_root.sfxvol > 0) { _root.sfxvol -= 1; } timer = 2; } } if (choicepos == 4) { if (Key.isDown(39) && timer < 1) { if (_root.musicvol < 100) { _root.musicvol += 1; _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } timer = 2; } if (Key.isDown(37) && timer < 1) { if (_root.musicvol > 0) { _root.musicvol -= 1; _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } timer = 2; } } if (choicepos == 0) { if (Key.isDown(65) && timer < 1) { delete this.onEnterFrame; _root.hud.pausehud.gotoAndStop(1); _root.inplay = true; pausetimer = 10; } } if (choicepos == 5) { if (Key.isDown(65) && timer < 1) { plysound2(); delete this.onEnterFrame; this.gotoAndStop(3); timer = 10; } } if (choicepos == 6) { if (Key.isDown(65) && timer < 1) { plysound2(); delete this.onEnterFrame; _root.fadeout = _root.attachMovie('fadeout', 'fadeout' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _root.fadeout._x = _root.vcam._x; _root.fadeout._y = _root.vcam._y; _root.fadeout.target = 2; } } }; } instance of movieClip 693 { onClipEvent (rollOver) { gotoAndPlay(2); _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); getURL('http://armorgames.com/', '_blank'); } } instance of movieClip 699 { onClipEvent (rollOver) { gotoAndPlay(2); _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } onClipEvent (rollOut) { gotoAndPlay(7); } onClipEvent (release) { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); getURL('http://jayarmstronggames.com/', '_blank'); } } frame 3 { timer = 10; onEnterFrame = function () { --timer; if (Key.isDown(65) && timer < 1) { this.gotoAndStop(2); timer = 20; } }; } } movieClip 962 { } movieClip 963 { frame 1 { stop(); } frame 2 { play(); } frame 17 { _root.medal.start(0, 0); _root.medal.setVolume(_root.sfxvol); } } movieClip 964 { instance lbar of movieClip 446 lbar { onClipEvent (load) { _xscale = 1; } } } frame 8 { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } frame 9 { _root.levelname = 'CULFORDS BRIDGE'; _root.l2 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 2); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 966 { } movieClip 970 { frame 1 { b; } } movieClip 972 { } movieClip 974 { } movieClip 975 { } movieClip 981 { frame 6 { stop(); } } movieClip 982 { frame 2 { stop(); onEnterFrame = function () { if (_root[_root.pet].bound.hitTest(this)) { delete this.onEnterFrame; this.gotoAndStop(3); } }; } frame 3 { toacton.gotoAndPlay(2); _root.gatebtn.start(0, 0); _root.gatebtn.setVolume(_root.sfxvol / 4); stop(); } } movieClip 987 { frame 1 { stop(); block = _root.ground.ground.attachMovie('block', 'block' + _root.ground.ground.getNextHighestDepth(), _root.ground.ground.getNextHighestDepth()); block._width = this.bound._width; block._height = this.bound._height; block._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.ground._x); block._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.ground._y); block1 = _root.ground.wall.attachMovie('block', 'block' + _root.ground.wall.getNextHighestDepth(), _root.ground.wall.getNextHighestDepth()); block1._width = this.bound._width; block1._height = this.bound._height + 10; block1._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.wall._x); block1._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.wall._y); } frame 2 { _root.gatefx.start(0, 0); _root.gatefx.setVolume(_root.sfxvol); } frame 16 { block.removeMovieClip(); block1.removeMovieClip(); stop(); } } movieClip 989 { } movieClip 991 { frame 1 { life = 4; life2 = 3; } frame 2 { stop(); } frame 6 { gotoAndStop(2); } frame 7 { if (life > 0) { _root.addcoin(_x + _parent._x, _y + _parent._y, 'coin'); _root.addcoin(_x + _parent._x, _y + _parent._y, 'coin'); _root.addcoin(_x + _parent._x, _y + _parent._y, 'coin'); } } frame 12 { stop(); } } movieClip 995 { frame 20 { ranturn = random(4); if (ranturn == 0) { _parent._xscale *= -1; } } } movieClip 997 { } movieClip 998 { frame 1 { _root.chickenArray.push(this); } frame 2 { stop(); } } movieClip 1004 { frame 24 { stop(); } } movieClip 1005 { frame 1 { _root.nestArray.push(this); } frame 2 { stop(); } } movieClip 1006 { instance of movieClip 884 { onClipEvent (load) { todisplay = 1; } } instance of movieClip 884 { onClipEvent (load) { todisplay = 8; } } instance of movieClip 884 { onClipEvent (load) { todisplay = 4; } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.door1; } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 884 { onClipEvent (load) { todisplay = 7; } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 10 { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } frame 11 { _root.levelname = 'CITY LIMITS'; _root.l3 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 3); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1007 { } movieClip 1010 { } movieClip 1012 { } movieClip 1014 { } movieClip 1015 { } movieClip 1016 { frame 1 { stop(); onEnterFrame = function () { if (_root.hero.hitTest(this)) { delete this.onEnterFrame; this.gotoAndPlay(2); } }; } frame 20 { stop(); } } movieClip 1017 { instance of movieClip 1016 { onClipEvent (load) { todisplay = 5; } } instance of movieClip 1016 { onClipEvent (load) { todisplay = 6; } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.door1; } } instance of movieClip 1016 { onClipEvent (load) { todisplay = 4; } } } movieClip 1018 { } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 12 { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } frame 13 { _root.levelname = 'OUTER LANDS'; _root.l4 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 4); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1019 { } movieClip 1020 { } instance bg1_stmp of movieClip 1020 { onClipEvent (load) { addy = 500; } } movieClip 1023 { } movieClip 1025 { } movieClip 1027 { } movieClip 1028 { } movieClip 1036 { frame 1 { _root.barrelArray.push(this); life = 2; } frame 2 { stop(); } frame 3 { life -= 1; } frame 7 { gotoAndStop(2); } } movieClip 1043 { frame 1 { _root.checkpointsfx.start(0, 0); _root.checkpointsfx.setVolume(_root.sfxvol * 2); } frame 11 { stop(); } } movieClip 1044 { frame 1 { _root.checkpointArray.push(this); } frame 2 { stop(); } } movieClip 1045 { frame 1 { v; } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 14 { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } frame 15 { _root.levelname = 'OLD TOWN'; _root.l5 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 5); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1046 { } movieClip 1049 { } movieClip 1051 { } movieClip 1053 { } movieClip 1054 { } movieClip 1061 { frame 1 { randomsound = random(3); _root['swing' + randomsound].start(0, 0); _root['swing' + randomsound].setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.life -= 1; if (_root.hero.life < 1) { _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); delete _root.hero.onEnterFrame; _root.hero.grav = 18; _root.hero.xvel = 15 * (_parent._parent._xscale / -100); _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.addsmack(_root.hero._x, _root.hero._y - 20); } } } } frame 18 { _parent.gotoAndStop(3); } } movieClip 1069 { frame 18 { newarrow = _root.attachMovie('arrow', 'arrow' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); newarrow._x = _parent._x + _root.enlyr._x; newarrow._y = _parent._y + _root.enlyr._y - 16.5; _root.arrowArray.push(newarrow); newarrow.grav = 0; plop = Math.abs(_parent._x + _root.enlyr._x - _root.hero._x); if (plop < 130) { newarrow.ySpeed = 13; newarrow.xSpeed = -3 * (_parent._xscale / 100); } if (plop > 130 && plop < 250) { newarrow.ySpeed = 13; newarrow.xSpeed = -7 * (_parent._xscale / 100); } if (plop > 250 && plop < 300) { newarrow.ySpeed = 13; newarrow.xSpeed = -10 * (_parent._xscale / 100); } if (plop > 250) { newarrow.ySpeed = 15; newarrow.xSpeed = -12 * (_parent._xscale / 100); } if (_parent._visible == true) { _root.arrowshoot.start(0, 0); _root.arrowshoot.setVolume(_root.sfxvol); } } frame 31 { _parent.gotoAndStop(1); } } movieClip 1070 { frame 1 { stop(); } frame 5 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 6 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 7 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 8 { _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); _root.addbld(this._x + _root.enlyr._x, this._y + _root.enlyr._y - 20, 'bld'); } frame 10 { _root.kills += 1; } frame 11 { _root.addbld(this._x + _root.enlyr._x - 5, this._y + _root.enlyr._y - 39, 'en1_head1'); _root.addbld(this._x + _root.enlyr._x + 4, this._y + _root.enlyr._y - 33, 'en1_head2'); _root.addbld(this._x + _root.enlyr._x + 7, this._y + _root.enlyr._y - 14, 'ene1_1'); _root.addbld(this._x + _root.enlyr._x - 2, this._y + _root.enlyr._y - 16, 'ene1_2'); _root.addbld(this._x + _root.enlyr._x + 3, this._y + _root.enlyr._y - 6, 'ene1_3'); _root.kills += 1; } frame 12 { if (life > 0) { ++_root.octoattack; ranoscream = random(3); _root['oscream' + ranoscream].start(0, 0); _root['oscream' + ranoscream].setVolume(_root.sfxvol * 1.5); } } } movieClip 1071 { instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } } movieClip 1114 { frame 22 { _root.explosionsfx.start(0, 0); _root.explosionsfx.setVolume(_root.sfxvolume); } frame 22 { _parent.block.removeMovieClip(); _parent.block2.removeMovieClip(); if (this.hitTest(_root.hero.bound) && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.gotoAndStop(20); _root.hero.grav = 15; _root.hero.xvel = 5 + random(20) * (_root.hero._xscale / 100); } } frame 51 { _parent.gotoAndStop(4); } } movieClip 1115 { frame 1 { _root.breakableblocksArray.push(this); block = _root.ground.ground.attachMovie('block', 'block' + _root.ground.ground.getNextHighestDepth(), _root.ground.ground.getNextHighestDepth()); block._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.ground._x); block._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.ground._y); block2 = _root.ground.wall.attachMovie('block', 'block' + _root.ground.wall.getNextHighestDepth(), _root.ground.wall.getNextHighestDepth()); block2._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.wall._x); block2._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.wall._y); } frame 2 { stop(); } frame 4 { stop(); } frame 5 { block = _root.ground.ground.attachMovie('block', 'block' + _root.ground.ground.getNextHighestDepth(), _root.ground.ground.getNextHighestDepth()); block._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.ground._x); block._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.ground._y); block2 = _root.ground.wall.attachMovie('block', 'block' + _root.ground.wall.getNextHighestDepth(), _root.ground.wall.getNextHighestDepth()); block2._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.wall._x); block2._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.wall._y); gotoAndStop(2); } } movieClip 1117 { } movieClip 1136 { frame 45 { if (_root[_parent._name] != true) { _root[_parent._name] = true; _root.hostagesaved += 1; } trace(_root.hostagesaved); _parent.gotoAndStop(4); } } movieClip 1149 { } movieClip 1163 { frame 19 { stop(); } } movieClip 1164 { frame 1 { _root.hostageArray.push(this); } frame 2 { stop(); } frame 3 { _root.points += 1; } } movieClip 1165 { instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 1016 { onClipEvent (load) { todisplay = 4; } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 16 { if (_root.mcastle != true) { stopAllSounds(); _root.music_Castle.start(0, 99); _root.music_Castle.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = true; _root.mhome1 = false; } } frame 17 { _root.levelname = 'CASTLE GATES'; _root.l6 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 6); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1168 { } movieClip 1170 { } movieClip 1172 { } movieClip 1174 { } movieClip 1176 { } movieClip 1177 { } movieClip 1182 { frame 1 { if (this.hitTest(_root.vcam)) { ransound = random(2); _root['spike' + ransound].start(0, 0); _root['spike' + ransound].setVolume(_root.sfxvol); } } frame 5 { onEnterFrame = function () { if (this.bound.hitTest(_root.hero.bound) && _root.hero._currentframe != 23) { _root.hero.life = 0; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } }; } frame 34 { delete this.onEnterFrame; } frame 37 { _parent.counter = 30; _parent.gotoAndStop(3); } } movieClip 1183 { frame 2 { stop(); } frame 3 { onEnterFrame = function () { if (_root.inplay == true) { --counter; if (counter < 1) { gotoAndStop(2); } } }; } } movieClip 1184 { instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 10; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 50; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 70; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 120; } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.door1; } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 18 { if (_root.mcastle != true) { stopAllSounds(); _root.music_Castle.start(0, 99); _root.music_Castle.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = true; _root.mhome1 = false; } } frame 19 { _root.levelname = 'BEARS CASTLE'; _root.l7 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 7); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1186 { } movieClip 1188 { } movieClip 1190 { } movieClip 1192 { } movieClip 1193 { } movieClip 1194 { instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined && _root.enlyr.en2.life == undefined && _root.enlyr.en3.life == undefined) { this.gotoAndPlay(2); } } } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 10; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 30; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 50; } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } } movieClip 1195 { instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en3 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en2 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en1 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 5; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneArray.push(this); _root.archerArray.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 20 { if (_root.mcastle != true) { stopAllSounds(); _root.music_Castle.start(0, 99); _root.music_Castle.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = true; _root.mhome1 = false; } } frame 21 { _root.levelname = 'CASTLE DUNGEONS'; _root.l8 = true; _root.gameplaysetupFunction(); Playtomic.Log.LevelCounterMetric('Played', 8); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1196 { } movieClip 1199 { } movieClip 1201 { } movieClip 1203 { } movieClip 1204 { } movieClip 1207 { } movieClip 1208 { frame 2 { stop(); onEnterFrame = function () { if (this.bound.hitTest(_root.hero.bound) && _root.hero._currentframe != 23) { _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); _root.hero.gotoAndStop(23); } }; } } movieClip 1213 { } movieClip 1215 { frame 1 { stop(); } frame 2 { _root.gatefx.start(0, 0); _root.gatefx.setVolume(_root.sfxvol); } frame 14 { stop(); block = _root.ground.ground.attachMovie('block', 'block' + _root.ground.ground.getNextHighestDepth(), _root.ground.ground.getNextHighestDepth()); block._width = this.poop._width; block._height = this.poop._height; block._x = this._x + _root.interact._x - (_root.ground._x + _root.ground.ground._x); block._y = this._y + _root.interact._y - (_root.ground._y + _root.ground.ground._y); } } movieClip 1216 { instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.bridge1; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 10; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 30; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 50; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 10; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 30; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 50; } } } movieClip 1217 { instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 22 { if (_root.mcastle != true) { stopAllSounds(); _root.music_Castle.start(0, 99); _root.music_Castle.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = true; _root.mhome1 = false; } } frame 23 { _root.l9 = true; _root.gameplaysetupFunction(); _root.levelname = 'DUNGEON BARRACKS'; Playtomic.Log.LevelCounterMetric('Played', 9); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1224 { } movieClip 1226 { } movieClip 1228 { } movieClip 1229 { } movieClip 1230 { instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 30; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 70; } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.bridge1; } } instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined && _root.enlyr.en2.life == undefined && _root.enlyr.en3.life == undefined) { this.gotoAndPlay(2); } } } } instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en11.life == undefined && _root.enlyr.en21.life == undefined && _root.enlyr.en31.life == undefined && _root.enlyr.en41.life == undefined && _root.enlyr.en51.life == undefined) { this.gotoAndPlay(2); } } } } } movieClip 1231 { instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance en3 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en2 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en1 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en31 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en21 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en11 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en41 of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance en51 of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 24 { if (_root.mboss != true) { stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } frame 25 { _root.l10 = true; _root.gameplaysetupFunction(); _root.levelname = 'CAPTAINS QUARTERS'; Playtomic.Log.LevelCounterMetric('Played', 10); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1234 { } movieClip 1236 { } movieClip 1238 { } movieClip 1239 { } movieClip 1240 { instance en1 of movieClip 359 brute { onClipEvent (load) { this.grav = 0; this.spd = -100; xSpeed = 0; if (_root.difficulty == 'hard') { life = 50; } if (_root.difficulty == 'medium') { life = 40; } if (_root.difficulty == 'easy') { life = 30; } origlife = life; this.enetype = 'brute'; _root.eneactionArray.push(this); _root.eneArray.push(this); this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); } } } movieClip 1241 { instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined) { this.gotoAndPlay(2); } } } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 26 { if (_root.msnow != true) { stopAllSounds(); _root.music_Snow.start(0, 99); _root.music_Snow.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = true; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } } frame 27 { _root.l11 = true; _root.gameplaysetupFunction(); _root.levelname = 'OUTER MAVIGONIA'; Playtomic.Log.LevelCounterMetric('Played', 11); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1243 { } movieClip 1244 { } movieClip 1245 { } movieClip 1248 { } movieClip 1251 { } movieClip 1253 { } movieClip 1255 { } movieClip 1256 { } movieClip 1257 { instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 50; } } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndStop(3); counter = 30; } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.bridge1; } } instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en11.life == undefined && _root.enlyr.en21.life == undefined && _root.enlyr.en31.life == undefined && _root.enlyr.en41.life == undefined && _root.enlyr.en51.life == undefined) { this.gotoAndPlay(2); } } } } } movieClip 1258 { instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance en21 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en31 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en11 of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance en41 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en61 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en51 of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 28 { if (_root.mboss != true) { stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } frame 29 { _root.l12 = true; _root.gameplaysetupFunction(); _root.levelname = 'LAIR OF THE WORM'; Playtomic.Log.LevelCounterMetric('Played', 12); onEnterFrame = function () { _root.gameplayFunction(); _root.enlyr.en1.lbar.lbar._xscale = (_root.enlyr.en1.life / _root.enlyr.en1.origlife) * 100; if (_root.enlyr.en1.lbar.lbar._xscale < 0) { _root.enlyr.en1.lbar.lbar._xscale = 0; } if (_root.enlyr.en1.life < 1 && _root.enlyr.en1._currentframe != 4) { _root.enlyr.en1.gotoAndStop(4); } }; } movieClip 1259 { } movieClip 1263 { } movieClip 1266 { } movieClip 1268 { } movieClip 1269 { } movieClip 1270 { instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined) { if (_root.msnow != true) { stopAllSounds(); _root.music_Snow.start(0, 99); _root.music_Snow.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = true; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } this.gotoAndPlay(2); } } } } } movieClip 1273 { } movieClip 1344 { frame 31 { ranworm = random(2) + 1; _root['worm' + ranworm + 'sfx'].start(0, 0); _root['worm' + ranworm + 'sfx'].setVolume(_root.sfxvol / 2); ranscream = random(3); _root['wormscream' + ranscream].start(0, 0); _root['wormscream' + ranscream].setVolume(_root.sfxvol); } frame 34 { _root.worm2sfx.start(0, 0); _root.worm2sfx.setVolume(_root.sfxvol); } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 15; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; if (_parent._parent._x + _root.enlyr._x < _root.hero._x && _root.hero.onRWall != true) { _root.hero.xvel = 12; } if (_parent._parent._x + _root.enlyr._x > _root.hero._x && _root.hero.onLWall != true) { _root.hero.xvel = -12; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } } } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 15; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; if (_parent._parent._x + _root.enlyr._x < _root.hero._x && _root.hero.onRWall != true) { _root.hero.xvel = 12; } if (_parent._parent._x + _root.enlyr._x > _root.hero._x && _root.hero.onLWall != true) { _root.hero.xvel = -12; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } } } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 15; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; if (_parent._parent._x + _root.enlyr._x < _root.hero._x && _root.hero.onRWall != true) { _root.hero.xvel = 12; } if (_parent._parent._x + _root.enlyr._x > _root.hero._x && _root.hero.onLWall != true) { _root.hero.xvel = -12; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } } } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 15; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; if (_parent._parent._x + _root.enlyr._x < _root.hero._x && _root.hero.onRWall != true) { _root.hero.xvel = 12; } if (_parent._parent._x + _root.enlyr._x > _root.hero._x && _root.hero.onLWall != true) { _root.hero.xvel = -12; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } } } frame 68 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 86 { ranworm = random(2) + 1; _root['worm' + ranworm + 'sfx'].start(0, 0); _root['worm' + ranworm + 'sfx'].setVolume(_root.sfxvol / 2); } instance bound of movieClip 62 { onClipEvent (load) { if (_root.hero.bound.hitTest(this) && _root.hero.life > 0) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 15; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 17; if (_parent._parent._x + _root.enlyr._x < _root.hero._x && _root.hero.onRWall != true) { _root.hero.xvel = 12; } if (_parent._parent._x + _root.enlyr._x > _root.hero._x && _root.hero.onLWall != true) { _root.hero.xvel = -12; } delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } } } frame 110 { _parent.gotoAndPlay(2); } } movieClip 1346 { frame 3 { _root.points += 500; _root.addhit(_parent._x + _root.enlyr._x, _parent._y + _root.enlyr._y, 7); } frame 21 { _parent.lbar.removeMovieClip(); _parent.swapDepths(_parent._parent.getNextHighestDepth()); _parent.removeMovieClip(); } } movieClip 1347 { frame 3 { stop(); if (_root.hero.onGround == true) { _x = _root.hero._x - _root.enlyr._x; _y = _root.hero._y - _root.enlyr._y; } if (_root.hero._x < this._x + _root.enlyr._x) { this._xscale = -100; } if (_root.hero._x > this._x + _root.enlyr._x) { this._xscale = 100; } } frame 4 { if (life < 1) { _root.addbld(this._x + _root.enlyr._x - 5, this._y + _root.enlyr._y - 70, 'worm1'); _root.addbld(this._x + _root.enlyr._x + 4, this._y + _root.enlyr._y - 73, 'worm2'); _root.addbld(this._x + _root.enlyr._x + 7, this._y + _root.enlyr._y - 74, 'worm3'); _root.addbld(this._x + _root.enlyr._x - 2, this._y + _root.enlyr._y - 80, 'worm4'); _root.addbld(this._x + _root.enlyr._x + 3, this._y + _root.enlyr._y - 65, 'worm5'); _root.wormkills += 1; _root.kills += 1; _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { gotoAndStop(3); } } frame 5 { if (life < 1) { _root.addbld(this._x + _root.enlyr._x - 5, this._y + _root.enlyr._y - 70, 'worm1'); _root.addbld(this._x + _root.enlyr._x + 4, this._y + _root.enlyr._y - 73, 'worm2'); _root.addbld(this._x + _root.enlyr._x + 7, this._y + _root.enlyr._y - 74, 'worm3'); _root.addbld(this._x + _root.enlyr._x - 2, this._y + _root.enlyr._y - 80, 'worm4'); _root.addbld(this._x + _root.enlyr._x + 3, this._y + _root.enlyr._y - 65, 'worm5'); _root.wormkills += 1; _root.kills += 1; _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { gotoAndStop(3); } } } movieClip 1348 { instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en1 of movieClip 1347 { onClipEvent (load) { _root.eneArray.push(this); if (_root.difficulty == 'hard') { life = 40; } if (_root.difficulty == 'medium') { life = 30; } if (_root.difficulty == 'easy') { life = 20; } origlife = life; this.enetype = 'worm'; onGround = true; this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 30 { if (_root.msnow != true) { stopAllSounds(); _root.music_Snow.start(0, 99); _root.music_Snow.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = true; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } } frame 31 { _root.l13 = true; _root.gameplaysetupFunction(); _root.levelname = 'MT ENDEAVOUR'; Playtomic.Log.LevelCounterMetric('Played', 13); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1351 { } movieClip 1352 { } movieClip 1357 { } movieClip 1359 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } instance of movieClip 991 { onClipEvent (load) { _root.tchest.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 32 { if (_root.mboss != true) { stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } frame 33 { _root.l14 = true; _root.gameplaysetupFunction(); _root.levelname = 'BEARS ARENA'; Playtomic.Log.LevelCounterMetric('Played', 14); onEnterFrame = function () { _root.gameplayFunction(); _root.enlyr.en1.lbar.lbar._xscale = (_root.enlyr.en1.life / _root.enlyr.en1.origlife) * 100; if (_root.enlyr.en1.lbar.lbar._xscale < 0) { _root.enlyr.en1.lbar.lbar._xscale = 0; } if (_root.enlyr.en1.life < 1 && _root.enlyr.en1._currentframe != 4) { _root.enlyr.en1.gotoAndStop(4); } }; } movieClip 1366 { } movieClip 1376 { } movieClip 1378 { } movieClip 1381 { } movieClip 1382 { } movieClip 1386 { } movieClip 1389 { frame 2 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 10 { _parent.gotoAndStop(5); } } movieClip 1390 { frame 6 { stop(); } } movieClip 1393 { } movieClip 1394 { } movieClip 1397 { } movieClip 1404 { frame 13 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 27 { _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); } frame 48 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 53 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 56 { if (_root.interact.bear.xtogo == 'plop') { _parent.swapDepths(_root.interact.getNextHighestDepth()); _parent.removeMovieClip(); } else { _parent._x = _parent.xtogo; } _parent.gotoAndStop(2); } } movieClip 1405 { frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1406 { instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined) { if (_root.msnow != true) { stopAllSounds(); _root.music_Snow.start(0, 99); _root.music_Snow.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = true; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } _root.interact.bear.gotoAndStop(6); _root.interact.bear.xtogo = 1054.1; _root.r_limit._x = 1656.6; this.gotoAndPlay(2); } } } } instance door2 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en2.life == undefined && _root.enlyr.en3.life == undefined && _root.enlyr.en4.life == undefined && _root.enlyr.en5.life == undefined) { _root.r_limit._x = 1835; _root.interact.bear.gotoAndStop(6); _root.interact.bear.xtogo = 'plop'; this.gotoAndPlay(2); } } } } instance bear of movieClip 1405 { onClipEvent (enterFrame) { if (this._currentframe != 6) { if (_root.hero._x < this._x + _root.interact._x) { _xscale = -100; } if (_root.hero._x > this._x + _root.interact._x) { _xscale = 100; } } if (this._currentframe == 2) { if (this._x + _root.interact._x - _root.vcam._x < 150) { if (this._y + _root.interact._y - _root.vcam._y < 50) { this.gotoAndStop(3); } } } if (this._currentframe == 4) { if (_root.hero._currentframe > 19) { this.gotoAndStop(5); } } if (this._currentframe == 5) { if (_root.hero._currentframe < 20) { this.gotoAndStop(4); } } } } } movieClip 1408 { instance en2 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en3 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } instance en5 of movieClip 1070 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 10; } if (_root.difficulty == 'medium') { life = 5; } if (_root.difficulty == 'easy') { life = 5; } _root.eneArray.push(this); _root.archerArray.push(this); } } instance en1 of movieClip 1347 { onClipEvent (load) { _root.eneArray.push(this); if (_root.difficulty == 'hard') { life = 40; } if (_root.difficulty == 'medium') { life = 30; } if (_root.difficulty == 'easy') { life = 20; } origlife = life; this.enetype = 'worm'; this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); onGround = true; } } instance en4 of movieClip 440 { onClipEvent (load) { this.grav = 0; this.spd = -50; xSpeed = 0; if (_root.difficulty == 'hard') { life = 15; } if (_root.difficulty == 'medium') { life = 10; } if (_root.difficulty == 'easy') { life = 10; } _root.eneactionArray.push(this); _root.eneArray.push(this); } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 34 { if (_root.msnow != true) { stopAllSounds(); _root.music_Snow.start(0, 99); _root.music_Snow.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = true; _root.mboss = false; _root.mcastle = false; _root.mhome1 = false; } } frame 35 { _root.l15 = true; _root.gameplaysetupFunction(); _root.levelname = 'OUTER ARENA'; Playtomic.Log.LevelCounterMetric('Played', 15); onEnterFrame = function () { _root.gameplayFunction(); }; } movieClip 1415 { } movieClip 1417 { } movieClip 1419 { } movieClip 1420 { } movieClip 1422 { instance door1 of movieClip 987 { onClipEvent (enterFrame) { if (this._currentframe == 1) { if (_root.enlyr.en1.life == undefined && _root.enlyr.en2.life == undefined) { if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } _root.interact.bear.gotoAndStop(6); _root.interact.bear.xtogo = 'plop'; this.gotoAndPlay(2); } } } } instance bear of movieClip 1405 { onClipEvent (enterFrame) { if (this._currentframe != 6) { if (_root.hero._x < this._x + _root.interact._x) { _xscale = -100; } if (_root.hero._x > this._x + _root.interact._x) { _xscale = 100; } } if (this._currentframe == 2) { if (this._x + _root.interact._x - _root.vcam._x < 150) { if (this._y + _root.interact._y - _root.vcam._y < 50) { this.gotoAndStop(3); } } } if (this._currentframe == 4) { if (_root.hero._currentframe > 19) { this.gotoAndStop(5); } } if (this._currentframe == 5) { if (_root.hero._currentframe < 20) { this.gotoAndStop(4); } } } } instance of movieClip 982 { onClipEvent (load) { toacton = _root.interact.door2; } } instance door2 of movieClip 987 { onClipEvent (load) { this.activated = false; } onClipEvent (enterFrame) { if (this._currentframe > 15 && this.activated == false) { this.activated = true; if (_root.mcastle != true) { stopAllSounds(); _root.music_Castle.start(0, 99); _root.music_Castle.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = true; _root.mhome1 = false; } } } } } movieClip 1423 { instance en1 of movieClip 359 brute { onClipEvent (load) { this.grav = 0; this.spd = -100; xSpeed = 0; if (_root.difficulty == 'hard') { life = 40; } if (_root.difficulty == 'medium') { life = 30; } if (_root.difficulty == 'easy') { life = 20; } origlife = life; this.enetype = 'brute'; _root.eneactionArray.push(this); _root.eneArray.push(this); this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); this.lbar._x -= 125; } } instance en2 of movieClip 359 brute { onClipEvent (load) { this.grav = 0; this.spd = -100; xSpeed = 0; if (_root.difficulty == 'hard') { life = 40; } if (_root.difficulty == 'medium') { life = 30; } if (_root.difficulty == 'easy') { life = 20; } origlife = life; this.enetype = 'brute'; _root.eneactionArray.push(this); _root.eneArray.push(this); this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); this.lbar._x += 125; } } } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 36 { if (_root.mboss != true) { stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } frame 37 { _root.l16 = true; _root.gameplaysetupFunction(); _root.levelname = 'BEARS CAVE'; Playtomic.Log.LevelCounterMetric('Played', 16); init = false; br = _root.enlyr.bear; onEnterFrame = function () { if (init != true) { _root.inplay = false; br.gotoAndStop(8); init = true; } if (br._currentframe == 8) { _root.tentapod._x = _root.hero._x - 25; _root.inplay = false; } if (br._currentframe == 9) { _root.inplay = false; if (_root.hero.onGround == true) { _root.hero.gotoAndStop(1); } while (_root.ground.ground.hitTest(_root.enlyr._x + br._x + br.bound._x, _root.enlyr._y + br._y + br.bound._y + br.bound._height / 2 - 2, true)) { --br._y; br.grav = 0; } } if (_root.inplay == true) { --br.grav; br._y -= br.grav; while (_root.ground.ground.hitTest(_root.enlyr._x + br._x + br.bound._x, _root.enlyr._y + br._y + br.bound._y + br.bound._height / 2 - 2, true)) { --br._y; br.grav = 0; } if (br._currentframe == 1) { if (_root.hero._x < br._x + _root.enlyr._x) { br._xscale = 100; } if (_root.hero._x > br._x + _root.enlyr._x) { br._xscale = -100; } ranmove = random(30); if (ranmove == 0) { ranwhat = random(6); if (ranwhat < 4) { br.gotoAndStop(2); } if (ranwhat == 4) { br.gotoAndStop(5); } if (ranwhat == 5) { br.gotoAndStop(7); } } } if (br._currentframe == 2) { if (_root.hero._x - (br._x + _root.enlyr._x) < 30 && _root.hero._x - (br._x + _root.enlyr._x) > -30) { br.gotoAndStop(1); } ranmove = random(45); if (ranmove == 0) { ranwhat = random(2); if (ranwhat == 0) { br.gotoAndStop(5); } if (ranwhat == 1) { br.gotoAndStop(7); } } br._x += br._xscale / -70; if (_root.hero._x < br._x + _root.enlyr._x) { br._xscale = 100; } if (_root.hero._x > br._x + _root.enlyr._x) { br._xscale = -100; } --br.launchcooldown; if (br.launchcooldown < 1) { if (_root.hero._x - (br._x + _root.enlyr._x) < 200 && _root.hero._x - (br._x + _root.enlyr._x) > -200) { br.launchcooldown = 60; br.gotoAndStop(3); } } } if (br._currentframe == 4) { br._x -= br.xvel; if (_root.ground.ground.hitTest(_root.enlyr._x + br._x + br.bound._x, _root.enlyr._y + br._y + br.bound._y + br.bound._height / 2 + 10, true)) { br.xvel = 0; br.gotoAndStop(6); } } br.lbar.lbar._xscale = (br.life / br.origlife) * 100; if (br.lbar.lbar._xscale < 0) { br.lbar.lbar._xscale = 0; if (br._currentframe != 9) { br.gotoAndStop(9); } } } _root.gameplayFunction(); }; } movieClip 1427 { } movieClip 1429 { } movieClip 1431 { } movieClip 1432 { } movieClip 1434 { } movieClip 1467 { frame 73 { _parent.gotoAndStop(1); } } movieClip 1470 { } movieClip 1474 { } movieClip 1476 { frame 16 { _parent.xvel = 10 * (_parent._xscale / 100); _parent.grav = 10; _parent._y -= 10; _parent.gotoAndStop(4); } frame 35 { stop(); } } movieClip 1478 { frame 2 { onEnterFrame = function () { if (_root.hero.bound.hitTest(this.bound) && _root.hero.life > 0 && _root.hero._currentframe != 23 && _root.hero._currentframe != 22 && _root.hero._currentframe != 20 && _root.hero._currentframe != 21) { _root.hero.randomsound = random(3); _root['smack' + _root.hero.randomsound].start(0, 0); _root['smack' + _root.hero.randomsound].setVolume(_root.sfxvol); _root.hero.life -= 3; if (_root.hero.life < 1) { delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(23); _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } else { _root.hero._y -= 20; _root.hero.grav = 13; _root.hero.xvel = 5 * (this._xscale / -100); delete _root.hero.onEnterFrame; _root.hero.gotoAndStop(20); } } }; } frame 20 { stop(); } } movieClip 1487 { frame 10 { _root.spell.start(0, 0); _root.spell.setVolume(_root.sfxvol); } frame 26 { ns = _root.enlyr.attachMovie('boulder', 'boulder' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); newx = _root.hero._x - _root.enlyr._x; ns._x = newx; ns._y = _parent._y; } frame 29 { ns = _root.enlyr.attachMovie('boulder', 'boulder' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); if (newx == _root.hero._x - _root.enlyr._x) { ns._x = newx + 150; } else { if (newx < _root.hero._x - _root.enlyr._x) { newx = _root.hero._x - _root.enlyr._x + 50; } else { if (newx > _root.hero._x - _root.enlyr._x) { newx = _root.hero._x - _root.enlyr._x - 50; } } ns._x = newx; } ns._y = _parent._y; } frame 32 { ns = _root.enlyr.attachMovie('boulder', 'boulder' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); if (newx == _root.hero._x - _root.enlyr._x) { ns._x = newx - 150; } else { if (newx < _root.hero._x - _root.enlyr._x) { newx = _root.hero._x - _root.enlyr._x - 100; } else { if (newx > _root.hero._x - _root.enlyr._x) { newx = _root.hero._x - _root.enlyr._x + 100; } } ns._x = newx; } ns._y = _parent._y; } frame 60 { _parent.gotoAndStop(1); } } movieClip 1490 { } movieClip 1494 { frame 38 { _parent.gotoAndStop(1); } } movieClip 1501 { frame 35 { ns = _root.enlyr.attachMovie('spikebear', 'spikebear' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); ns._x = _parent._x + 30 * (_parent._xscale / -100); ns._y = _parent._y; ns.count = 5; ns._xscale = _parent._xscale; } frame 42 { ns = _root.enlyr.attachMovie('spikebear', 'spikebear' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); ns._x = _parent._x + 50 * (_parent._xscale / -100); ns._y = _parent._y; ns.count = 5; ns._xscale = _parent._xscale; } frame 49 { ns = _root.enlyr.attachMovie('spikebear', 'spikebear' + _root.enlyr.getNextHighestDepth(), _root.enlyr.getNextHighestDepth()); ns._x = _parent._x + 80 * (_parent._xscale / -100); ns._y = _parent._y; ns.count = 5; ns._xscale = _parent._xscale; } frame 62 { _parent.gotoAndStop(1); } } movieClip 1509 { frame 1 { _root.inplay = false; } frame 2 { _root.inplay = false; } frame 38 { _root.vcam.target = _root.focus; } frame 75 { _root.roar.start(0, 0); _root.roar.setVolume(_root.sfxvol); } frame 79 { onEnterFrame = function () { _root.vcam._x += random(10) - random(10); _root.vcam._y += random(10) - random(10); }; } frame 105 { delete this.onEnterFrame; } frame 124 { _root.vcam.target = _root.hero; _root.inplay = true; _parent.gotoAndStop(1); } } movieClip 1516 { frame 1 { _root.brutedeath.start(0, 0); _root.brutedeath.setVolume(_root.sfxvol); } frame 45 { stop(); delete _root.hero.onEnterFrame; fadeout = _root.attachMovie('fadeout', 'fadeout' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); fadeout._x = _root.vcam._x; fadeout._y = _root.vcam._y; fadeout.target = 41; } } movieClip 1517 { frame 1 { stop(); } } movieClip 1518 { instance bear of movieClip 1517 { onClipEvent (load) { this.grav = 0; this.spd = -100; xSpeed = 0; if (_root.difficulty == 'hard') { life = 70; } if (_root.difficulty == 'medium') { life = 60; } if (_root.difficulty == 'easy') { life = 50; } origlife = life; launchcooldown = 0; this.lbar = _root.hud.attachMovie('enelbar', 'lbar' + _root.hud.getNextHighestDepth(), _root.hud.getNextHighestDepth()); } } } movieClip 1519 { } instance vcam of movieClip 784 { onClipEvent (load) { _x = 374.1; _y = 242; var xSpeed = 0; var ySpeed = 0; var moveSpeed = 8; var xadjust = 0; target = _root.hero; } } frame 39 { delete _root.onEnterFrame; timer = 15; onEnterFrame = function () { --timer; if (Key.isDown(32) && timer < 1) { _root.gotoAndStop(40); } }; stopAllSounds(); _root.music_Intro.start(0, 0); _root.music_Intro.setVolume(_root.musicvol); } movieClip 1523 { } movieClip 1527 { } movieClip 1528 { frame 35 { } frame 38 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } frame 148 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 194 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 229 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 234 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 238 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 244 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } } movieClip 1530 { } movieClip 1534 { frame 8 { stopAllSounds(); _root.drama.start(0, 0); _root.drama.setVolume(_root.musicvol); } frame 112 { _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } movieClip 1540 { frame 38 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 41 { _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); _root.crate0.start(0, 0); _root.crate0.setVolume(_root.sfxvol); } frame 70 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 90 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 102 { _root.swing2.start(0, 0); _root.swing2.setVolume(_root.sfxvol); } frame 114 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } frame 145 { stop(); _root.gotoAndStop(40); } } movieClip 1541 { frame 1 { } instance vcam of movieClip 784 { onClipEvent (enterFrame) { camControl(); } } } frame 40 { delete _root.onEnterFrame; timer = 15; onEnterFrame = function () { --timer; if (Key.isDown(32) && timer < 1) { _root.gotoAndPlay('lvl1'); delete this.onEnterFrame; } }; if (_root.mboss != true) { stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } } movieClip 1554 { } movieClip 1556 { } movieClip 1562 { frame 1 { if (_root.piratemode == true) { this.gotoAndStop(2); } else { stop(); } } } movieClip 1570 { instance vcam of movieClip 784 { onClipEvent (enterFrame) { camControl(); } } frame 81 { _root.crate0.start(0, 0); _root.crate0.setVolume(_root.sfxvol); } frame 89 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol - 10); } frame 96 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol - 30); } frame 104 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol - 50); } frame 152 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 220 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 308 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 329 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 368 { _root.swing2.start(0, 0); _root.swing2.setVolume(_root.sfxvol); } frame 370 { _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); } frame 415 { _root.gotoAndPlay('lvl1'); } } frame 41 { delete _root.onEnterFrame; stop(); stopAllSounds(); _root.music_Boss.start(0, 99); _root.music_Boss.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = true; _root.mcastle = false; _root.mhome1 = false; } movieClip 1575 { } movieClip 1582 { } movieClip 1589 { frame 10 { stop(); } } movieClip 1591 { frame 10 { stop(); } } movieClip 1605 { frame 18 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol / 4); } frame 45 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol / 6); } frame 69 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol / 10); } frame 75 { stop(); } } movieClip 1610 { frame 1 { if (_root.endchoice == 'mercy') { this.gotoAndStop(2); } if (_root.endchoice == 'kill') { this.gotoAndStop(1); } } } movieClip 1641 { } movieClip 1645 { } movieClip 1648 { } movieClip 1649 { frame 1 { } instance vcam of movieClip 784 { onClipEvent (enterFrame) { camControl(); } } frame 129 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 270 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 275 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 275 { stop(); thisvol = _root.musicvol; onEnterFrame = function () { if (_root.musicvol > 0) { --_root.musicvol; _root.music_Boss.setVolume(_root.musicvol); } if (Key.isDown(37)) { this.kill.gotoAndStop(11); this.mercy.gotoAndStop(10); } if (Key.isDown(39)) { this.mercy.gotoAndStop(11); this.kill.gotoAndStop(10); } if (Key.isDown(65)) { if (this.kill._currentframe == 11) { this.gotoAndPlay('killoption'); Playtomic.Log.CustomMetric('Killed_Bear'); _root.endchoice = 'kill'; stopAllSounds(); _root.musicvol = thisvol; _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; delete this.onEnterFrame; } if (this.mercy._currentframe == 11) { this.gotoAndPlay('mercyoption'); Playtomic.Log.CustomMetric('Mercy_Bear'); _root.endchoice = 'mercy'; stopAllSounds(); _root.musicvol = thisvol; _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; delete this.onEnterFrame; } } }; } frame 288 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 326 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 408 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 419 { _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); } frame 475 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 485 { _root.gatebtn.start(0, 0); _root.gatebtn.setVolume(_root.sfxvol); } frame 504 { this.gotoAndPlay('reunited'); } frame 529 { _root.swing1.start(0, 0); _root.swing1.setVolume(_root.sfxvol); } frame 530 { _root.splat.start(0, 0); _root.splat.setVolume(_root.sfxvol); } frame 639 { _root.smack0.start(0, 0); _root.smack0.setVolume(_root.sfxvol); } frame 713 { _root.crate0.start(0, 0); _root.crate0.setVolume(_root.sfxvol); } frame 768 { _root.crowd.start(0, 0); _root.crowd.setVolume(_root.sfxvol); _root.win.start(0, 0); _root.win.setVolume(_root.sfxvol); } frame 779 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 789 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 906 { _root.gotoAndStop(42); } } frame 42 { delete _root.onEnterFrame; if (_root.mhome1 != true) { stopAllSounds(); _root.music_Home1.start(0, 99); _root.music_Home1.setVolume(_root.musicvol); _root.mmenu = false; _root.msnow = false; _root.mboss = false; _root.mcastle = false; _root.mhome1 = true; } } movieClip 1689 { frame 93 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 114 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 129 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 137 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 149 { _root.crowd.start(0, 0); _root.crowd.setVolume(_root.sfxvol); } frame 150 { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); } frame 457 { stop(); _parent._parent.gotoAndPlay(_parent._parent._currentframe + 1); } } movieClip 1698 { frame 130 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 141 { _root.swing0.start(0, 0); _root.swing0.setVolume(_root.sfxvol); } frame 146 { _root.goohit.start(0, 0); _root.goohit.setVolume(_root.sfxvol); } frame 458 { _parent._parent.gotoAndPlay(_parent._parent._currentframe + 1); stop(); } } movieClip 1699 { frame 1 { if (_root.endchoice == 'mercy') { this.gotoAndStop(2); } if (_root.endchoice == 'kill') { this.gotoAndStop(1); } } } movieClip 1703 { frame 20 { n = 0; while (n < 20) { newf = _parent.attachMovie('firework2', 'firework' + n, _parent.getNextHighestDepth()); newf._x = _x; newf._y = _y - 130; newf._rotation = random(360); ++n; } } frame 20 { _root.coinsfx.start(0, 0); _root.coinsfx.setVolume(_root.sfxvol); } frame 45 { this._x = random(650); } } movieClip 1704 { instance vcam of movieClip 784 { onClipEvent (enterFrame) { camControl(); } } frame 157 { stop(); } frame 172 { _root.gotoAndStop(_root._currentframe + 1); } } movieClip 1707 { frame 107 { stop(); } } frame 43 { delete _root.onEnterFrame; } instance of movieClip 687 { onClipEvent (load) { this.cacheAsBitmap = true; } } movieClip 1709 { } movieClip 1726 { frame 1 { _root.piratemodeunlocked = true; _root.saveitFunction(); } frame 88 { stop(); stop(); yoff = [110, 136]; woff = [96, 120]; choicepos = 0; timer = 20; plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; onEnterFrame = function () { _root.medalFunction(); --timer; mp._y += (yoff[choicepos] - mp._y) / 3; mp.l._x += (-(woff[choicepos] / 2) - mp.l._x) / 3; mp.r._x += (woff[choicepos] / 2 - mp.r._x) / 3; if ((Key.isDown(40) or Key.isDown(39)) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; } if ((Key.isDown(38) or Key.isDown(37)) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; } if (0 == Key.isDown(38) && 0 == Key.isDown(40) && 0 == Key.isDown(37) && 0 == Key.isDown(39) && 0 == Key.isDown(65) && 0 == Key.isDown(67)) { timer = 0; } if (Key.isDown(65) && timer < 1) { plysound2(); if (choicepos == 0) { _root.piratemode = true; _root.saveitFunction(); _root.gotoAndStop('menu'); } if (choicepos == 1) { _root.piratemode = false; _root.saveitFunction(); _root.gotoAndStop('menu'); } } }; } } movieClip 1727 { } movieClip 1734 { } movieClip 1736 { frame 1 { stop(); yoff = [-42, 6, 6, 36.5, 76.55]; xoff = [0, -85, 65, 0, 0, 0]; woff = [70, 30, 30, 100, 120]; choicepos = 0; timer = 20; _root.mutetimer = 10; plysound = function () { _root.bubble.start(0, 0); _root.bubble.setVolume(_root.sfxvol); }; plysound2 = function () { _root.btn.start(0, 0); _root.btn.setVolume(_root.sfxvol / 2); }; onEnterFrame = function () { --_root.mutetimer; if (Key.isDown(77)) { if (_root.sfxvol > 0 && _root.mutetimer < 1) { _root.sfxvol = 0; _root.musicvol = 0; _root.mutetimer = 10; } if (_root.sfxvol < 1 && _root.mutetimer < 1) { _root.sfxvol = 100; _root.musicvol = 100; _root.mutetimer = 10; } _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } --timer; mp._y += (yoff[choicepos] - mp._y) / 3; mp._x += (xoff[choicepos] - mp._x) / 3; mp.l._x += (-(woff[choicepos] / 2) - mp.l._x) / 3; mp.r._x += (woff[choicepos] / 2 - mp.r._x) / 3; this.diff.gotoAndStop(_root.difficulty); if (Key.isDown(40) && timer < 1) { ++choicepos; plysound(); if (choicepos > yoff.length - 1) { choicepos = 0; } timer = 10; } if (Key.isDown(38) && timer < 1) { --choicepos; plysound(); if (choicepos < 0) { choicepos = yoff.length - 1; } timer = 10; } if (choicepos == 0) { if (Key.isDown(39)) { if (_root.difficulty == 'easy' && timer < 1) { plysound2(); _root.difficulty = 'medium'; timer = 10; } if (_root.difficulty == 'medium' && timer < 1) { plysound2(); _root.difficulty = 'hard'; timer = 10; } } if (Key.isDown(37)) { if (_root.difficulty == 'hard' && timer < 1) { plysound2(); _root.difficulty = 'medium'; timer = 10; } if (_root.difficulty == 'medium' && timer < 1) { plysound2(); _root.difficulty = 'easy'; timer = 10; } } } if (choicepos == 1) { if (Key.isDown(39) && timer < 1) { plysound2(); if (_root.sfxvol < 100) { _root.sfxvol += 1; } timer = 2; } if (Key.isDown(37) && timer < 1) { plysound2(); if (_root.sfxvol > 0) { _root.sfxvol -= 1; } timer = 2; } } if (choicepos == 2) { if (Key.isDown(39) && timer < 1) { if (_root.musicvol < 100) { _root.musicvol += 1; _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } timer = 2; } if (Key.isDown(37) && timer < 1) { if (_root.musicvol > 0) { _root.musicvol -= 1; _root.music_Boss.setVolume(_root.musicvol); _root.music_Castle.setVolume(_root.musicvol); _root.music_Home1.setVolume(_root.musicvol); _root.music_Menu.setVolume(_root.musicvol); _root.music_Snow.setVolume(_root.musicvol); _root.music_Intro.setVolume(_root.musicvol); } timer = 2; } } if (choicepos == 3) { if (Key.isDown(65) && timer < 1) { plysound2(); delete this.onEnterFrame; this.gotoAndStop(2); timer = 10; } } if (choicepos == 4) { if (Key.isDown(65) && timer < 1) { plysound2(); _root.gotoAndStop(2); } } }; } frame 2 { timer = 10; onEnterFrame = function () { --timer; if (Key.isDown(65) && timer < 1) { delete this.onEnterFrame; this.gotoAndStop(1); timer = 20; } }; } } frame 45 { _root.saveData = SharedObject.getLocal('octopod_complete'); saveresetFunction = function () { _root.l1 = true; _root.herohead = 1; _root.hostagesaved = 0; _root.hero_hair = 1; _root.hero_skin = 1; _root.hero_sex = 'm'; _root.kills = 0; _root.saveData.flush(); _root.piratemode = false; _root.difficulty = 'medium'; _root.sfxvol = 100; _root.musicvol = 100; _root.piratemodeunlocked = false; _root.points = 0; i = 0; while (i < 17) { _root['c' + i] = false; ++i; } i = 0; while (i < 17) { _root['m' + i] = false; ++i; } i = 0; while (i < 14) { _root['h' + i] = false; ++i; } }; if (_root.saveData.data.exists == 1) { i = 1; while (i < 17) { if (_root.saveData.data['l' + i] == true) { _root['l' + i] = _root.saveData.data['l' + i]; } ++i; } _root.herohead = _root.saveData.data.herohead; _root.piratemode = _root.saveData.data.piratemode; _root.hero_sex = _root.saveData.data.hero_sex; _root.hero_hair = _root.saveData.data.hero_hair; _root.hero_skin = _root.saveData.data.hero_skin; _root.difficulty = _root.saveData.data.difficulty; _root.musicvol = _root.saveData.data.musicvol; _root.sfxvol = _root.saveData.data.sfxvol; _root.kills = _root.saveData.data.kills; _root.points = _root.saveData.data.points; _root.hostagesaved = _root.saveData.data.hostagesaved; _root.piratemodeunlocked = _root.saveData.data.piratemodeunlocked; i = 0; while (i < 17) { _root['c' + i] = _root.saveData.data['c' + i]; ++i; } i = 0; while (i < 17) { _root['m' + i] = _root.saveData.data['m' + i]; ++i; } i = 0; while (i < 14) { _root['h' + i] = _root.saveData.data['h' + i]; ++i; } } else { _root.saveData.data.exists = 1; saveresetFunction(); } saveitFunction = function () { i = 1; while (i < 17) { if (_root['l' + i] == true) { _root.saveData.data['l' + i] = _root['l' + i]; } ++i; } _root.saveData.data.herohead = _root.herohead; _root.saveData.data.piratemode = _root.piratemode; _root.saveData.data.hero_sex = _root.hero_sex; _root.saveData.data.hero_hair = _root.hero_hair; _root.saveData.data.hero_skin = _root.hero_skin; _root.saveData.data.difficulty = _root.difficulty; _root.saveData.data.musicvol = _root.musicvol; _root.saveData.data.sfxvol = _root.sfxvol; _root.saveData.data.kills = _root.kills; _root.saveData.data.points = _root.points; _root.saveData.data.piratemodeunlocked = _root.piratemodeunlocked; _root.saveData.data.hostagesaved = _root.hostagesaved; i = 0; while (i < 17) { _root.saveData.data['c' + i] = _root['c' + i]; ++i; } i = 0; while (i < 17) { _root.saveData.data['m' + i] = _root['m' + i]; ++i; } i = 0; while (i < 14) { _root.saveData.data['h' + i] = _root['h' + i]; ++i; } _root.saveData.flush(); }; if (_root.sfxvol == undefined) { _root.saveresetFunction(); } } movieClip 1744 { } movieClip 1750 { } movieClip 1753 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 225 { _root.gotoAndStop('devlogos'); } } instance of movieClip 1753 { onClipEvent (release) { getURL('http://armorgames.com', '_blank'); } } movieClip 1766 { } movieClip 1772 { } movieClip 1774 { } movieClip 1775 { } movieClip 1777 { frame 1 { webtogo = 'http://www.jayarmstronggames.com'; } frame 181 { webtogo = 'http://www.waterflame.newgrounds.com'; } frame 268 { _root.gotoAndStop(2); } } instance of movieClip 1777 { onClipEvent (enterFrame) { if (Key.isDown(32)) { delete this.onEnterFrame; _root.gotoAndStop(2); } } onClipEvent (release) { getURL(this.webtogo, '_blank'); } }




http://swfchan.com/26/125327/info.shtml
Created: 28/2 -2019 07:46:49 Last modified: 28/2 -2019 07:46:49 Server time: 22/12 -2024 10:28:37