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

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

Valor.swf

This is the info page for
Flash #215107

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


ActionScript [AS1/AS2]
Combined Code
movieClip 11 hit { frame 1 { _visible = false; } } movieClip 70 mc_explo { instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 56 { stop(); this.swapDepths(random(9999)); this.removeMovieClip(); } } movieClip 72 { } movieClip 75 { } movieClip 77 { } movieClip 79 { frame 9 { stop(); } } movieClip 81 enter { frame 1 { while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } } frame 32 { this.removeMovieClip(); } } movieClip 85 { } movieClip 87 { frame 1 { _visible = false; onEnterFrame = function () { if (!_root.pau) { if (hitTest(_root.herohit)) { if (_root.hero.raging) { _parent.hurt(_root.herohit.power + 4, true); } else { _parent.hurt(_root.herohit.power, true); } } if (hitTest(_root.bomb1)) { _parent.hurt(_root.bomb1.power); _root.bomb1.die(); } if (hitTest(_root.bomb2)) { _parent.hurt(_root.bomb2.power); _root.bomb2.die(); } if (hitTest(_root.bomb3)) { _parent.hurt(_root.bomb3.power); _root.bomb3.die(); } if (hitTest(_root.bomb4)) { _parent.hurt(_root.bomb4.power); _root.bomb4.die(); } if (hitTest(_root.bomb5)) { _parent.hurt(_root.bomb5.power); _root.bomb5.die(); } } }; } } movieClip 95 { } movieClip 160 { } movieClip 191 { } movieClip 213 { frame 9 { _parent.slideback = -10; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } frame 40 { _root.flyback = true; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } frame 43 { _root.flyback = false; } frame 55 { _parent.gotoAndStop('idle'); } frame 57 { _parent.ha = true; } frame 151 { randN = random(9999); _root.movieclips.attachMovie('Boss3_clone', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x - 50; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 152 { _parent.ha = false; _parent._x += 50; _parent.gotoAndStop('idle'); } frame 160 { _parent._x = _root.hero._x - (_root.hero._xscale / 100) * 80; _parent.y = _root.hero._y; _parent._xscale = _root.hero._xscale * -1; } frame 167 { _root.hero.cantblock = true; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); } } } onClipEvent (unload) { _root.hero.cantblock = false; } } frame 170 { _root.hero.cantblock = false; } frame 184 { _parent.ha = false; _parent.gotoAndStop('idle'); } } movieClip 219 { frame 9 { _parent.gotoAndStop('idle'); } } movieClip 241 { frame 38 { _parent.removeMovieClip(); } } movieClip 242 Boss3_clone { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function att(attType) { if (attType == 1) { gotoAndStop('att'); guy.gotoAndPlay('att1'); } if (attType == 3) { gotoAndStop('att'); guy.gotoAndPlay('portal'); } } function hurt(lifeminus, bullet) { if (!ha) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } _alpha = 100; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 100; speed = 12; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 85 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (random(1000) > 990) { _parent.att(2); } if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.att(1); } } } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } if (random(1000) > 950) { _parent.att(3); } } } } instance of movieClip 219 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } movieClip 251 { frame 18 { stop(); } } movieClip 252 smoke_land { frame 20 { this.removeMovieClip(); } } movieClip 255 bow_arrow { frame 1 { onEnterFrame = function () { if (!_root.pau) { _x = _x + (_xscale / 100) * 20; if (hit.hitTest(_root.hero.hit)) { _root.hero.hurt(12); this.removeMovieClip(); } if (!hit.hitTest(_root.screenhit)) { this.removeMovieClip(); } } }; } } movieClip 265 { frame 9 { stop(); } } movieClip 270 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 275 deflect_spark { frame 1 { _alpha = 70; } frame 11 { removeMovieClip(this); } } movieClip 287 smoke { frame 24 { stop(); } } movieClip 288 runSmoke { frame 26 { this.removeMovieClip(); } } movieClip 309 { frame 17 { stop(); } } movieClip 313 { frame 28 { _parent.swapDepths(9999); _parent.removeMovieClip(); } } movieClip 314 Gems { frame 1 { onEnterFrame = function () { if (!_root.pau) { if (!setvars) { grav = -10; setvars = true; } _y = _y + grav; if (!_root.ground.hitTest(_x, _y + 15, true)) { ++grav; } else { grav *= -0.6666666666666666; } while (_root.ground.hitTest(_x, _y + 14, true)) { _y = _y - 1; } if (hitTest(_root.hero.hit)) { gotoAndStop('collect'); } if (!hitTest(_root.screenhit)) { this.removeMovieClip(); } } }; gotoAndStop(random(5) + 1); } frame 8 { onEnterFrame = null(); _root.cam.gems.gotoAndPlay(2); ++_root.gems; } } movieClip 318 { } movieClip 319 { } movieClip 320 { } movieClip 344 { frame 20 { stop(); _parent.swapDepths(99999); _parent.removeMovieClip(); } } movieClip 345 bomb_get { frame 1 { onEnterFrame = function () { if (!_root.pau) { if (!setvars) { stop(); setvars = true; } if (hitTest(_root.screenhit)) { _visible = true; } else { _visible = false; } if (hitTest(_root.hero.hit) && !collected) { ++_root.bombs; gotoAndStop('collect'); collected = true; } } }; stop(); } } movieClip 346 { } movieClip 362 { frame 21 { stop(); } } movieClip 365 fallAttack2 { frame 1 { onEnterFrame = function () { if (!_root.pau) { play(); if (_currentframe < 30) { _x = _root.hero._x; _y = 455; } } else { stop(); } }; } frame 22 { _root.flyback = true; } frame 23 { _root.shakey += 35; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); } } } } frame 25 { _root.flyback = false; } frame 68 { this.removeMovieClip(); } } movieClip 371 { } movieClip 375 { } movieClip 394 { frame 20 { stop(); _parent.swapDepths(99999); _parent.removeMovieClip(); } } movieClip 395 foodUp { frame 1 { onEnterFrame = function () { if (!_root.pau) { if (!setvars) { gotoAndStop(random(2) + 1); stop(); setvars = true; } if (hitTest(_root.screenhit)) { _visible = true; } else { _visible = false; } if (hitTest(_root.hero.hit) && !collected) { _root.hero.life += 20; gotoAndStop('collect'); collected = true; } } }; } } movieClip 402 { frame 4 { if (random(15) == 1) { play(); } else { stop(); } } frame 5 { gotoAndStop(random(5) + 5); } } movieClip 422 { frame 19 { stop(); } } movieClip 444 { frame 21 { stop(); } } movieClip 463 { frame 18 { stop(); } } movieClip 477 { frame 18 { stop(); } } movieClip 478 Blood_mc { frame 1 { _alpha = 100; _root.valor += 2; if (_root.difficulty < 0) { _root.valor += 2; } if (_root.lifeGain) { _root.hero.life += _root.combocount / 3; ++_root.hero.life; } gotoAndStop(random(4) + 1); } } movieClip 480 { } movieClip 481 { } movieClip 485 { } movieClip 498 { } movieClip 520 { frame 5 { _parent.xplus += 10; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(8); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(8); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } frame 30 { _parent.gotoAndStop('idle'); } } movieClip 524 { frame 5 { _parent.gotoAndStop('idle'); } } movieClip 529 { frame 8 { _parent.gotoAndStop('idle'); } } movieClip 539 { frame 17 { stop(); } } movieClip 540 enemy3_big { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { if (_root.heroMode == 2) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { if (_root.heroMode == 2) { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; ++_root.lvlkills; _root.bigDead = true; }; onEnterFrame = function () { if (!_root.pau) { while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 350 + _root.difficulty * 14; speed = 6; dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; _root.movieclips['en' + namee]._xscale = guy._xscale; _root.movieclips['en' + namee]._yscale = guy._yscale; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 485 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(5) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 498 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 520 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { act1 = true; _parent.active = true; } else { act1 = false; _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 26 { namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } instance of movieClip 539 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 542 eraise { frame 17 { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; } frame 48 { this.removeMovieClip(); } } movieClip 546 { } movieClip 569 { } movieClip 572 { } movieClip 592 { frame 18 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('bow_arrow', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x + (_parent._xscale / 100) * 20; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y - 50; } } frame 24 { _parent.gotoAndStop(1); } } movieClip 625 { frame 27 { stop(); } } movieClip 626 bowman { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (!_root.pau) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.screenhit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } if (!_visible) { grav = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; _y = _y + grav; if (grav > 45) { grav = 45; } if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = random(40) + 50; speed = 2 + random(3); dir = speed / 2; grav = 0; namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 30, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 30, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 546 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 569 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.grav = 0; _parent.gotoAndStop('idle'); } } } } instance of movieClip 592 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 14 { ++_root.lvlkills; if (random(4) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } else { if (random(6) == 2) { namee = random(99999) + 10; _root.movieclips.attachMovie('bomb_get', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } } instance of movieClip 625 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 627 enemy3 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; gotoAndStop('hit'); life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y + 15; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.screenhit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 120 + random(40) + _root.difficulty * 8; speed = 8; dir = speed / 2; grav = 0; namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 485 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(5) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 498 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 520 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { act1 = true; _parent.active = true; } else { act1 = false; _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 26 { ++_root.lvlkills; if (random(3) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } else { if (random(5) == 2) { namee = random(99999) + 10; _root.movieclips.attachMovie('bomb_get', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } else { if (random(6) == 2) { namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } } } instance of movieClip 539 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 631 { } movieClip 634 { } movieClip 647 { } movieClip 697 { frame 41 { stop(); } } movieClip 702 { frame 10 { _root.flyback = true; } frame 11 { _root.shakey += 40; _parent.cantchange = true; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(30); } } } } frame 13 { _root.flyback = false; } frame 47 { _parent.cantchange = false; _parent.gotoAndStop('idle'); } } movieClip 722 { frame 31 { stop(); } } movieClip 723 enemy2_big_aura { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { if (_root.heroMode == 4) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } else { if (_root.specialing) { if (_root.heroMode == 4) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.heroMode == 4) { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; ++_root.lvlkills; _root.bigDead = true; }; _alpha = 80; onEnterFrame = function () { if (!_root.pau) { while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 450 + _root.difficulty * 10; speed = 6; dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; _root.movieclips['en' + namee]._xscale = guy._xscale; _root.movieclips['en' + namee]._yscale = guy._yscale; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } instance guy of movieClip 631 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.gotoAndStop('att'); } } } } } instance guy of movieClip 647 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 702 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 14 { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; if (random(6) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } _root.flyback = false; } instance of movieClip 722 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 727 { } movieClip 732 { } movieClip 733 { } movieClip 735 bigChest { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _parent.play(); } } } frame 2 { _root.gems += 100; } frame 29 { this.removeMovieClip(); } } movieClip 744 { } movieClip 755 { } movieClip 788 { } movieClip 826 { frame 40 { stop(); } } movieClip 827 fallAttack { frame 1 { onEnterFrame = function () { if (!_root.pau) { play(); if (_currentframe < 30) { _x = _root.hero._x; _y = 455; } } else { stop(); } }; } frame 37 { _root.flyback = true; } frame 38 { _root.shakey += 50; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); } } } } frame 40 { _root.flyback = false; } frame 83 { this.removeMovieClip(); } } movieClip 873 mc_explo_enem { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); } } } frame 56 { stop(); this.swapDepths(random(9999)); this.removeMovieClip(); } } movieClip 879 { } movieClip 880 { } movieClip 894 { } movieClip 909 { frame 12 { randN = random(9999); _root.movieclips.attachMovie('eBomb', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x + (_parent._xscale / 100) * 50; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y - 50; } frame 30 { _parent.gotoAndStop('idle'); } } movieClip 933 { frame 40 { stop(); } } movieClip 934 enemy4 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (!shitfuck) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.screenhit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 110 + random(40) + _root.difficulty * 8; speed = 8 + random(3); dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 880 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(5) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 894 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 909 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 13 { ++_root.lvlkills; if (random(4) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } else { if (random(5) == 2) { namee = random(99999) + 10; _root.movieclips.attachMovie('bomb_get', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 939 { } movieClip 940 { } movieClip 949 { } movieClip 1139 { frame 2 { lol = random(2); if (lol == 1) { gotoAndPlay('att1'); } else { if (lol == 2) { gotoAndPlay('at2'); } else { gotoAndPlay('at3'); } } } frame 5 { _parent._x += (_parent._xscale / 100) * 20; } frame 6 { _parent._x += (_parent._xscale / 100) * 20; } frame 7 { _parent._x += (_parent._xscale / 100) * 20; } frame 8 { _parent._x += (_parent._xscale / 100) * 10; } frame 9 { _parent._x += (_parent._xscale / 100) * 10; } frame 12 { _parent._x += (_parent._xscale / 100) * 20; } frame 16 { _root.flyback = true; } frame 17 { _root.shakey += 35; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(30); } } } } frame 19 { _root.flyback = false; } frame 33 { _parent._x += (_parent._xscale / 100) * 20; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(25); } } } } frame 34 { _parent._x += (_parent._xscale / 100) * 20; } frame 35 { _parent._x += (_parent._xscale / 100) * 20; } frame 36 { _parent._x += (_parent._xscale / 100) * 10; } frame 37 { _parent._x += (_parent._xscale / 100) * 10; } frame 47 { _parent.gotoAndStop('idle'); } frame 60 { _root.flyback = true; } frame 60 { _parent._x += (_parent._xscale / 100) * 20; } frame 61 { _parent._x += (_parent._xscale / 100) * 20; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(35); } } } } frame 62 { _parent._x += (_parent._xscale / 100) * 12; } frame 63 { _root.flyback = false; } frame 63 { _parent._x += (_parent._xscale / 100) * 10; } frame 65 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 72 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(10); } } } } frame 76 { _parent._x += (_parent._xscale / 100) * 10; } frame 77 { _parent._x += (_parent._xscale / 100) * 8; } frame 78 { _parent._x += (_parent._xscale / 100) * 6; } frame 79 { _parent._x += (_parent._xscale / 100) * 4; } frame 81 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 88 { _root.flyback = true; } frame 89 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; _root.shakey += 40; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(50); } } } } frame 92 { _root.flyback = false; } frame 97 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 105 { randN = random(9999); _root.movieclips.attachMovie('fallAttack2', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 106 { _parent.gotoAndStop('idle'); } frame 141 { _root.flyback = true; } frame 142 { _parent._x += (_parent._xscale / 100) * 20; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(50); } } } } frame 143 { _parent._x += (_parent._xscale / 100) * 20; } frame 144 { _parent._x += (_parent._xscale / 100) * 20; } frame 144 { randN = random(9999); _root.movieclips.attachMovie('eraise', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _root.hero._x + random(200) - 100; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 145 { _parent._x += (_parent._xscale / 100) * 10; } frame 145 { _root.flyback = false; } frame 146 { _parent._x += (_parent._xscale / 100) * 10; } frame 146 { randN = random(9999); _root.movieclips.attachMovie('eraise', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _root.hero._x + random(200) - 100; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 148 { randN = random(9999); _root.movieclips.attachMovie('eraise', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _root.hero._x + random(200) - 100; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 162 { _parent.gotoAndStop('idle'); } } movieClip 1145 { frame 5 { _parent.gotoAndStop('idle'); } } movieClip 1186 { frame 133 { stop(); _root.cam.fadein.play(); } } movieClip 1187 Boss5 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function att(attType) { if (attType == 1) { gotoAndStop('att'); guy.gotoAndPlay('att1'); } if (attType == 2) { gotoAndStop('att'); guy.gotoAndPlay('att2'); } } function hurt(lifeminus, bullet) { if (!ha) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } } function dirChange() { dir *= -1; } onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 2000 + _root.difficulty * 25; speed = 7; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (!lolol) { begLife = life; lolol = true; } _root.bossBarScale = (life / begLife) * 100; if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 56, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 56, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 56, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 56, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 940 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (random(1000) > 995) { _parent.att(2); } if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.att(1); } } } } } instance of movieClip 949 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } if (random(1000) > 950) { _parent.att(3); } } } } instance of movieClip 1145 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { ++_root.lvlkills; _root.lvl7_unlocked = true; _root.bossBeat = true; _root.flyback = false; namee = random(99999) + 10; _root.movieclips.attachMovie('bigChest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } movieClip 1188 enemy2 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (!_root.pau) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; if (!cantchange) { red = 255; tintfade = 100; _xscale = _root.hero._xscale * -1; slideback += lifeminus / 2; } life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.screenhit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } if (!_visible) { grav = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; _y = _y + grav; if (grav > 45) { grav = 45; } if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = random(30) + 140 + _root.difficulty * 8; speed = 3 + random(2); dir = speed / 2; grav = 0; namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 30, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 30, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } instance of movieClip 631 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 647 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 702 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 14 { ++_root.lvlkills; namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; if (random(6) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } instance of movieClip 722 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 1189 enemy2_big { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } onUnload = function () { _root.bigDead = true; }; onEnterFrame = function () { if (!_root.pau) { while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 350 + _root.difficulty * 12; speed = 6; dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; _root.movieclips['en' + namee]._xscale = guy._xscale; _root.movieclips['en' + namee]._yscale = guy._yscale; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } instance guy of movieClip 631 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.gotoAndStop('att'); } } } } } instance guy of movieClip 647 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 702 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 14 { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; if (random(6) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } instance of movieClip 722 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 1194 { } movieClip 1207 { } movieClip 1219 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } frame 18 { _parent.gotoAndStop('idle'); } } movieClip 1224 { frame 12 { _parent.gotoAndStop('idle'); } } movieClip 1238 { frame 20 { stop(); } } movieClip 1239 enemy1 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.screenhit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 90 + random(40) + _root.difficulty * 8; speed = 4 + random(3); dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 1194 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(5) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 1207 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 1219 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance of movieClip 1224 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { ++_root.lvlkills; if (random(4) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } else { if (random(5) == 2) { namee = random(99999) + 10; _root.movieclips.attachMovie('bomb_get', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } } instance of movieClip 1238 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 1240 { } movieClip 1241 boss3_aura { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function att(attType) { if (attType == 1) { gotoAndStop('att'); guy.gotoAndPlay('att1'); } } function hurt(lifeminus, bullet) { if (!ha) { if (random(10) > 3) { if (lifeminus > 0) { if (_root.heroMode == 3) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } else { if (_root.heroMode == 3) { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } } } function dirChange() { dir *= -1; } _alpha = 80; onUnload = function () { --_root.enemiesOnScreen; ++_root.lvlkills; _root.bigDead = true; }; onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 350 + _root.difficulty * 15; speed = 10; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 85 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (random(1000) > 990) { _parent.att(2); } if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.att(1); } } } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } if (random(1000) > 950) { _parent.att(3); } } } } instance of movieClip 219 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; _root.flyback = false; } } movieClip 1242 eBomb { frame 1 { function die() { _root.shakex += 30; _root.shakey += 30; randN = random(9999); _root.movieclips.attachMovie('mc_explo_enem', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; this.removeMovieClip(); } onEnterFrame = function () { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); die(); } if (speed > 0) { speed /= 1.1; } grav += 2; _x = _x + (_xscale / 100) * speed; _y = _y + grav; _rotation = _rotation + (_xscale / 100) * (speed * 2); if (!hitTest(_root.screenhit)) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y, true)) { die(); } } }; grav = -20; speed = 30; } } movieClip 1252 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(23); } } } } frame 18 { _parent.gotoAndStop('idle'); } } movieClip 1253 enemy1_big { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } onUnload = function () { --_root.enemiesOnScreen; ++_root.lvlkills; _root.bigDead = true; }; onEnterFrame = function () { if (!_root.pau) { while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 300 + _root.difficulty * 10; speed = 6; dir = speed / 2; grav = 0; htt = 0; while (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; } namee = random(99999) + 10; _root.movieclips.attachMovie('enter', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; _root.movieclips['en' + namee]._xscale = guy._xscale; _root.movieclips['en' + namee]._yscale = guy._yscale; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance guy of movieClip 1194 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(5) == 1) { _parent.gotoAndStop('att'); } } } } } instance guy of movieClip 1207 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance guy of movieClip 1252 { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } instance guy of movieClip 1224 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { if (random(4) == 1) { namee = random(99999) + 10; _root.movieclips.attachMovie('foodUp', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } _root.bigDead = true; namee = random(99999) + 10; _root.movieclips.attachMovie('chest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } instance guy of movieClip 1238 { onClipEvent (enterFrame) { if (!setv) { timer = 0; setv = true; } if (!_root.pau) { ++timer; if (timer > 60) { _alpha = _alpha - 5; } if (_alpha <= 0) { _parent.swapDepths(99999); _parent.removeMovieClip(); } } } } } movieClip 1255 bomb_mc { frame 1 { function die() { _root.shakex += 30; _root.shakey += 30; randN = random(9999); _root.movieclips.attachMovie('mc_explo', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; this.removeMovieClip(); } onEnterFrame = function () { if (!_root.pau) { if (speed > 0) { speed /= 1.2; } grav += 2; _x = _x + (_xscale / 100) * speed; _y = _y + grav; _rotation = _rotation + (_xscale / 100) * (speed * 2); if (!hitTest(_root.screenhit)) { this.removeMovieClip(); } power = 20; if (!_root.bomb1) { _root.bomb1 = this; } else { if (!_root.bomb2) { _root.bomb2 = this; } else { if (!_root.bomb3) { _root.bomb3 = this; } else { if (!_root.bomb4) { _root.bomb4 = this; } else { if (!_root.bomb5) { _root.bomb5 = this; } } } } } if (_root.ground.hitTest(_x, _y, true)) { die(); } } }; grav = -20; speed = 30; onUnload = function () { if (_root.bomb1 == this) { _root.bomb1 = false; } if (_root.bomb2 == this) { _root.bomb2 = false; } if (_root.bomb3 == this) { _root.bomb3 = false; } if (_root.bomb4 == this) { _root.bomb4 = false; } if (_root.bomb5 == this) { _root.bomb5 = false; } onEnterFrame = null; }; } } movieClip 1259 { } movieClip 1260 { } movieClip 1263 { } movieClip 1265 { } movieClip 1267 { } movieClip 1269 { } movieClip 1272 chest { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _parent.play(); } } } frame 2 { _root.gems += 10; } frame 29 { this.swapDepths(999999); this.removeMovieClip(); } } frame 1 { function die() { if (lives > 0) { hero.life = heroLife; hero.gotoAndStop('idle'); hero.alph = true; } else { lives = 3; heroDead = true; stopGame(); } } function startGame(curlev) { stopAllSounds(); gotoAndStop('select'); } function stopGame() { _x = 0; _y = 0; cam.swapDepths(99999); cam.removeMovieClip(); if (!heroDead) { gotoAndStop('loading'); } else { if (!arca) { gotoAndStop('gameover'); } else { gotoAndStop('arc_end'); } } } function fuckup(levelFucked) { hero.hurt(10); if (levelFucked == 1) { hero._x = fuckupspot1._x; hero._y = fuckupspot1._y; cam.derp.play(); } if (levelFucked == 2) { hero._x = fuckupspot2._x; hero._y = fuckupspot2._y; cam.derp.play(); } if (levelFucked == 3) { hero._x = fuckupspot3._x; hero._y = fuckupspot3._y; cam.derp.play(); } if (levelFucked == 4) { hero._x = fuckupspot4._x; hero._y = fuckupspot4._y; cam.derp.play(); } } function win() { stopGame(); if (gamelvl == 1) { gotoAndStop('boss1'); } } stop(); lives = 3; valorpotions = 2; gems = 0; valor = 0; bombs = 5; shakeon = true; shakeintense = 1.5; heroMode = 1; highScore = 0; heroLife = 150; _root.enemiesAllowed = 4; _root.enemiesOnScreen = 0; kn = 0; lvl2_unlocked = false; lvl3_unlocked = false; lvl4_unlocked = false; lvl5_unlocked = false; lvl6_unlocked = false; lvl7_unlocked = false; } frame 1 { Stage.showMenu = false; gameSounds = new Sound(this); gameSounds.setVolume(85); } frame 1 { difficulty = 0; } movieClip 1276 { } movieClip 1278 { } movieClip 1281 { } movieClip 1282 { } movieClip 1285 { } movieClip 1287 { } movieClip 1290 { } movieClip 1292 { } movieClip 1294 { } movieClip 1297 { } movieClip 1298 { } movieClip 1300 { } button 1310 { on (release) { _root.gotoAndStop('intro'); } } movieClip 1311 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } frame 49 { stop(); } } button 1314 { on (press) { getURL('http://www.stickpage.com/', '_blank'); } } movieClip 1316 { } frame 3 { stop(); _quality = 'medium'; } movieClip 1321 { } movieClip 1324 { frame 1 { gotoAndStop(_root.heroMode); onEnterFrame = function () { gotoAndStop(_root.heroMode); }; } } movieClip 1328 { } movieClip 1331 { } movieClip 1333 { } movieClip 1335 { } movieClip 1336 { frame 1 { gotoAndStop(_root.heroMode); onEnterFrame = function () { gotoAndStop(_root.heroMode); }; } } movieClip 1338 { } movieClip 1341 { } movieClip 1343 { } movieClip 1344 { frame 1 { gotoAndStop(_root.heroMode); onEnterFrame = function () { gotoAndStop(_root.heroMode); }; } } movieClip 1348 { } movieClip 1349 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } color._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } button 1351 { on (press) { getURL('http://www.stickpage.com/', '_blank'); } } movieClip 1357 { } movieClip 1363 { } movieClip 1378 { } button 1380 { on (release) { _root.difficulty = -1; play(); } } button 1381 { on (release) { _root.difficulty = 0; play(); } } button 1382 { on (release) { _root.difficulty = 2; play(); } } button 1383 { on (release) { _root.difficulty = 3; play(); } } button 1384 { on (release) { _root.difficulty = -2; play(); } } movieClip 1386 { frame 10 { stop(); } frame 16 { _root.gotoAndStop('menu'); } } movieClip 1387 { instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } frame 185 { stop(); } } frame 12 { stop(); cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; _root.goScale = 100; } movieClip 1392 { } movieClip 1394 { } movieClip 1395 { } movieClip 1396 { } movieClip 1398 { } movieClip 1401 { } movieClip 1403 { } movieClip 1405 { } movieClip 1409 { } movieClip 1410 { } movieClip 1412 { } movieClip 1414 { } button 1417 { on (release) { _root.gotoAndStop('select'); } } button 1419 { on (release) { gotoAndPlay('instructions'); } } button 1421 { on (release) { gotoAndPlay('credits'); } } button 1423 { on (press) { getURL('http://www.stickpage.com/', '_blank'); } } button 1430 { on (release) { gotoAndPlay('back1'); } } button 1436 { on (release) { gotoAndPlay('back2'); } } button 1438 { on (release) { getURL('https://soundcloud.com/austimuspryme', '_blank'); } } movieClip 1439 { frame 1 { stop(); } frame 33 { stop(); } frame 63 { gotoAndStop('MAIN'); } frame 95 { stop(); } frame 124 { gotoAndStop('MAIN'); } } movieClip 1442 { frame 6 { stop(); } } movieClip 1444 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } movieClip 1449 { frame 1 { gotoAndPlay(2); } frame 26 { stop(); } } movieClip 1452 { frame 1 { gotoAndStop(_root.heroMode); onEnterFrame = function () { gotoAndStop(_root.heroMode); }; } } movieClip 1461 { } movieClip 1463 { frame 1 { _visible = false; } } movieClip 1478 { frame 2 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 10 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } } movieClip 1487 { frame 8 { _parent.gotoAndStop('idle'); } } movieClip 1501 { frame 1 { _parent.speed = (_parent._xscale / 100) * 45; } frame 2 { _parent.speed = (_parent._xscale / 100) * 45; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 3 { _parent.speed = (_parent._xscale / 100) * 45; } frame 4 { _parent.speed = (_parent._xscale / 100) * 45; } frame 5 { _parent.speed = (_parent._xscale / 100) * 45; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 6 { _parent.speed = (_parent._xscale / 100) * 30; } frame 7 { _parent.speed = (_parent._xscale / 100) * 30; } frame 9 { _parent.speed = (_parent._xscale / 100) * 30; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 11 { _parent.speed = (_parent._xscale / 100) * 12; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 13 { _parent.speed = (_parent._xscale / 100) * 8; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 15 { _parent.speed = (_parent._xscale / 100) * 3; } frame 17 { _parent.gotoAndStop('idle'); } } movieClip 1518 { frame 8 { randN = random(9999); _root.movieclips.attachMovie('bomb_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x + (_parent._xscale / 100) * 50; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y - 50; } frame 16 { _parent.gotoAndStop('idle'); } } movieClip 1522 { frame 4 { _parent._y -= 40; _parent.jump = true; _parent.gotoAndStop('jump1'); } } movieClip 1541 { instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } frame 10 { _parent.gotoAndStop(1); } } movieClip 1542 { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(65)) { _parent.gotoAndStop(2); } } } } } movieClip 1543 { frame 10 { stop(); } } movieClip 1553 { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(65)) { _parent.gotoAndStop(2); } } } } } movieClip 1554 { frame 1 { _parent._y -= 20; } frame 10 { stop(); } } movieClip 1560 { frame 5 { stop(); } } movieClip 1565 { frame 1 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('smoke_land', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 8 { _parent.gotoAndStop('idle'); } } movieClip 1570 { } movieClip 1578 { } movieClip 1592 { frame 5 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } frame 13 { _parent.gotoAndStop('idle'); } frame 15 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } frame 24 { _parent.gotoAndStop('idle'); } frame 27 { _parent.xplus += 15; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } frame 37 { _parent.gotoAndStop('idle'); } } movieClip 1659 { frame 30 { stop(); } } movieClip 1668 { frame 7 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } frame 15 { _parent.gotoAndStop('idle'); } frame 19 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 30; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } frame 27 { _parent.gotoAndStop('idle'); } frame 36 { _parent.xplus += 15; _root.shakey += 25; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 30; } } frame 38 { _parent.xplus += 15; _root.shakey += 25; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 30; } } frame 53 { _parent.gotoAndStop('idle'); } } movieClip 1705 { } movieClip 1713 { frame 6 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } frame 13 { _parent.gotoAndStop('idle'); } frame 19 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 26; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } frame 26 { _parent.gotoAndStop('idle'); } frame 33 { _parent.xplus += 15; _root.shakey += 25; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 30; } } frame 49 { _parent.gotoAndStop('idle'); } } movieClip 1716 { } movieClip 1722 { } movieClip 1730 { } movieClip 1791 { frame 2 { _root.valor = 0; } frame 7 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 8 { _parent.xplus += 10; } frame 9 { _parent.xplus += 10; } frame 10 { _parent.xplus += 10; } frame 17 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 18 { _parent.xplus += 10; } frame 19 { _parent.xplus += 10; } frame 20 { _parent.xplus += 10; } frame 26 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 27 { _parent.xplus += 10; } frame 28 { _parent.xplus += 10; } frame 29 { _parent.xplus += 10; } frame 33 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 34 { _parent.xplus += 10; } frame 35 { _parent.xplus += 10; } frame 36 { _parent.xplus += 10; } frame 42 { _parent.xplus += 10; _root.shakey += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 43 { _parent.xplus += 10; } frame 44 { _parent.xplus += 10; } frame 45 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 46 { _parent.xplus += 10; } frame 47 { _parent.xplus += 10; } frame 50 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 25; } } frame 51 { _parent.xplus += 10; } frame 52 { _parent.xplus += 10; } frame 55 { _parent.xplus += 20; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } ka = true; _root.shakey += 40; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 56 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 57 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 59 { _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 86 { _parent.gotoAndStop('idle'); } } movieClip 1798 { } movieClip 1802 { } movieClip 1873 { frame 2 { _root.valor = 0; } frame 6 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } frame 7 { _parent.xplus += 10; } frame 8 { _parent.xplus += 10; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } frame 9 { _parent.xplus += 10; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 6; } } frame 43 { _parent.xplus += 20; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } ka = true; _root.shakey += 40; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 44 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 45 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 47 { _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 72 { _parent.gotoAndStop('idle'); } } movieClip 1920 { frame 2 { _root.valor = 0; } frame 23 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } frame 24 { _parent.xplus += 10; } frame 25 { _parent.xplus += 10; } frame 26 { _parent.xplus += 10; } frame 30 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } frame 31 { _parent.xplus += 10; } frame 32 { _parent.xplus += 10; } frame 34 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } frame 35 { _parent.xplus += 10; } frame 36 { _parent.xplus += 10; } frame 43 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } frame 44 { _parent.xplus += 10; } frame 45 { _parent.xplus += 10; } frame 46 { _parent.xplus += 10; } frame 48 { _parent.xplus += 20; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } ka = true; _root.shakey += 40; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 49 { _parent.xplus += 10; if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } } frame 50 { if (!_root.pau) { randN = random(9999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 52 { _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 50; } } frame 73 { _parent.gotoAndStop('idle'); } } movieClip 1926 { frame 8 { if (!Key.isDown(83)) { _parent.gotoAndStop('idle'); } else { _parent.gotoAndStop('block'); } } } movieClip 1941 { frame 33 { _root.flyback = false; _parent.gotoAndStop('run'); } } movieClip 1949 { } movieClip 1952 { } movieClip 1994 { instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 2; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 2; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 2; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 1; } } frame 50 { _parent.gotoAndStop('idle'); } } movieClip 1997 { } movieClip 2032 { frame 2 { --_root.lives; } frame 103 { _root.die(); } } movieClip 2033 { frame 1 { function hurt(lf) { if (!dead) { if (ha) { if (!blocking) { if (hall) { if (!_root.specialing) { _root.sounds('wack'); if (_root.difficulty < 0) { lf += _root.difficulty * 3; } life -= lf; _root.shakex += lf; if (lf > 15) { xplus += lf * 2; } _root.HUD.gotoAndPlay('hit'); _root.cam.flashes.gotoAndPlay('red'); rrr = 255; amou = 100; if (_root.flyback) { gotoAndStop('flyback'); } } hall = false; } } else { if (!cantblock) { xplus -= lf * 3; _root.shakex += 2; _root.cam.flashes.gotoAndPlay('white'); gotoAndStop('deflect'); } else { if (hall) { if (!_root.specialing) { if (_root.difficulty < 0) { lf += _root.difficulty * 3; } life -= lf; _root.sounds('wack'); _root.shakex += lf; if (lf > 15) { xplus += lf * 2; } _root.HUD.gotoAndPlay('hit'); _root.cam.flashes.gotoAndPlay('red'); rrr = 255; amou = 100; if (_root.flyback) { gotoAndStop('flyback'); } } cantblock = false; } } } } } } if (!setvars) { alpht = 0; ha = true; at = 0; xplus = 0; life = _root.heroLife; grav = 0; jump = false; speed = 0; maxSpeed = 17 + _root.difficulty * -1; rrr = 0; htt = 0; setvars = true; } onEnterFrame = function () { if (!_root.pau) { if (life > _root.heroLife) { life = _root.heroLife; } if (grav > 40) { grav = 40; } if (alph) { ha = false; ++alpht; ++at; } if (at == 20) { _alpha = _alpha - 35; at = 0; } if (_alpha < 100) { _alpha = _alpha + 2; } if (alpht > 150) { ha = true; alpht = 0; _alpha = 100; alph = false; } if (jump) { _y = _y - 16; } if (life <= 0) { gotoAndStop('die'); } if (speed > maxSpeed) { speed = maxSpeed; } if (speed < maxSpeed * -1) { speed = maxSpeed * -1; } _x = _x + speed; if (!_root.ground.hitTest(_x, _y, true)) { _y = _y + 1; _y = _y + grav; grav += 1.5; } else { grav = 0; } while (_root.ground.hitTest(_x, _y + 1, true)) { _y = _y - 1; grav = 0; } while (_root.ground.hitTest(_x + 30, _y - 40, true)) { _x = _x - 1; speed = 0; } while (_root.ground.hitTest(_x - 30, _y - 40, true)) { _x = _x + 1; speed = 0; } while (_root.ground.hitTest(_x, _y - 80, true)) { _y = _y + 1; ++grav; } while (_root.lvlb1.hitTest(hit)) { _x = _x - 1; } while (_root.lvlb2.hitTest(hit)) { _x = _x - 1; } while (_root.lvlb3.hitTest(hit)) { _x = _x - 1; } while (_root.lvlb4.hitTest(hit)) { _x = _x - 1; } while (_root.lvlb5.hitTest(hit)) { _x = _x - 1; } while (_root.lvlback.hitTest(hit)) { _x = _x + 1; } xplus /= 1.6; _x = _x + (_xscale / 100) * xplus; amou /= 1.6; col.setTint(rrr, 0, 0, amou); if (!hall) { ++htt; amou = -50; if (htt > 15) { hall = true; htt = 0; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { blocking = false; _root.specialing = false; specialing = false; jump = false; dead = false; } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 1463 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(38)) { if (_parent.grav < 3) { _parent.gotoAndStop('intoJump'); } } if (Key.isDown(65)) { if (_root.heroMode == 1 or _root.heroMode == 2) { _parent.gotoAndStop('att1'); } else { if (_root.heroMode == 3) { _parent.gotoAndStop('att2'); } else { if (_root.heroMode == 4) { _parent.gotoAndStop('att3'); } } } } if (Key.isDown(83)) { _parent.gotoAndStop('block'); } if (Key.isDown(80)) { _parent.gotoAndStop('poop'); } if (Key.isDown(68) && _root.bombs > 0) { --_root.bombs; _parent.gotoAndStop('toss'); } } } } frame 6 { jump = false; _root.specialing = false; specialing = false; } instance of movieClip 1478 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent.lkey = false; _parent.rkey = true; _parent._xscale = 100; _parent.speed += 4; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent.rkey = false; _parent.lkey = true; _parent._xscale = -100; _parent.speed -= 4; } } else { _parent.gotoAndStop('stop'); } } } } } frame 10 { jump = false; _root.specialing = false; specialing = false; } instance guy of movieClip 1487 { onClipEvent (enterFrame) { if (!_root.pau) { if (!shit) { t = 0; shit = true; } ++t; if (t < 1) { rpoo = false; lpoo = false; } _parent.speed /= 1.2; if (Key.isDown(39)) { _parent._xscale = 100; if (!rpoo) { _parent.gotoAndStop('run'); } else { if (_parent.rkey) { _parent.gotoAndStop('roll'); } } } else { rpoo = true; } if (Key.isDown(37)) { _parent._xscale = -100; if (!lpoo) { _parent.gotoAndStop('run'); } else { if (_parent.lkey) { _parent.gotoAndStop('roll'); } } } else { lpoo = true; } } } } frame 15 { jump = false; } instance of movieClip 1501 { onClipEvent (enterFrame) { if (!_root.pau) { } } } instance of movieClip 1518 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.2; } } } instance of movieClip 1522 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.2; } } } frame 34 { ukey = true; } instance of movieClip 1543 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(38) && !_parent.ukey) { _parent.jump = false; _parent.grav = 3; _parent.gotoAndStop('doublejump'); } if (!Key.isDown(38)) { _parent.ukey = false; } if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent._xscale = 100; _parent.speed += 2; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent._xscale = -100; _parent.speed -= 2; } } else { _parent.speed /= 1.1; } } if (_parent.grav == 0) { _parent.jump = false; _parent.gotoAndStop('land'); } } } } frame 40 { jump = true; } instance of movieClip 1554 { onClipEvent (enterFrame) { if (!_root.pau) { _parent._y -= 4; if (!Key.isDown(38)) { _parent.ukey = false; } if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent._xscale = 100; _parent.speed += 2; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent._xscale = -100; _parent.speed -= 2; } } else { _parent.speed /= 1.1; } } if (_parent.grav == 0) { _parent.jump = false; _parent.gotoAndStop('land'); } } } } frame 50 { blocking = true; if (deflected) { guy.gotoAndStop(5); deflected = false; } } instance guy of movieClip 1560 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(83)) { nextFrame(); } else { prevFrame(); _parent.gotoAndStop('idle'); } _parent.speed /= 1.3; } } onClipEvent (unload) { _parent.blocking = false; } } instance of movieClip 1565 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; } } } instance of movieClip 1592 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.1; } } } instance of movieClip 1668 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.1; } } } instance of movieClip 1713 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.1; } } } frame 75 { _root.specialing = true; specialing = true; } frame 75 { if (_root.heroMode == 3) { gotoAndStop('special2'); } else { if (_root.heroMode == 4) { gotoAndStop('special3'); } } } instance of movieClip 1791 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; if (Key.isDown(39) && !ka) { _parent._xscale = 100; } else { if (Key.isDown(37) && !ka) { _parent._xscale = -100; } } } } } frame 81 { _root.specialing = true; specialing = true; } instance of movieClip 1873 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; if (Key.isDown(39) && !ka) { _parent._xscale = 100; } else { if (Key.isDown(37) && !ka) { _parent._xscale = -100; } } } } } frame 88 { _root.specialing = true; specialing = true; } instance of movieClip 1920 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; if (Key.isDown(39) && !ka) { _parent._xscale = 100; } else { if (Key.isDown(37) && !ka) { _parent._xscale = -100; } } } } } frame 96 { deflected = true; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 6; gotoAndStop('block'); } frame 102 { _y = _y - 5; ++grav; jump = true; speed = 0; life -= _root.difficulty * 3; } instance of movieClip 1941 { onClipEvent (enterFrame) { if (!_root.pau) { if (!setv) { speed = 12; speed += _parent.xplus / 2.2; if (speed > 40) { speed = 40; } _parent.jump = true; _parent.xplus = 0; setv = true; } _parent._x -= (_parent._xscale / 100) * speed; if (speed > 0) { speed -= 0.8; } if (_parent.grav == 0) { _parent.jump = false; } } } } instance of movieClip 1994 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; } } } frame 115 { jump = false; grav = 0; dead = true; } instance of movieClip 2032 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.3; } } } } movieClip 2037 { } movieClip 2038 { } movieClip 2051 { } movieClip 2081 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(20); } } } } frame 29 { _parent.gotoAndStop('idle'); } } movieClip 2121 { frame 18 { _root.shakey += 20; } frame 21 { randN = random(9999); _root.movieclips.attachMovie('fallAttack', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 43 { _root.shakey += 20; } frame 46 { randN = random(9999); _root.movieclips.attachMovie('fallAttack', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 68 { _root.shakey += 20; } frame 71 { randN = random(9999); _root.movieclips.attachMovie('fallAttack', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._x; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 76 { _parent.gotoAndStop('idle'); } } movieClip 2122 { frame 129 { stop(); _root.cam.fadein.play(); } } movieClip 2123 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN * 2); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus; _root.score += lifeminus; } } function dirChange() { dir *= -1; } onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb9)) { _x = _x - 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 800 + _root.difficulty * 15; speed = 8; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (!lolol) { begLife = life; lolol = true; } _root.bossBarScale = (life / begLife) * 100; if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 2038 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (random(120) == 1) { _parent.gotoAndStop('att2'); } if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; if (random(100) >= 97) { _parent.gotoAndStop('att2'); } } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(15) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 2051 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { ++_root.lvlkills; _root.lvl3_unlocked = true; _root.bossBeat = true; namee = random(99999) + 10; _root.movieclips.attachMovie('bigChest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } movieClip 2147 { frame 140 { stop(); _root.cam.fadein.play(); } } movieClip 2148 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function att(attType) { if (attType == 1) { gotoAndStop('att'); guy.gotoAndPlay('att1'); } if (attType == 2) { gotoAndStop('att'); guy.gotoAndPlay('clone'); } if (attType == 3) { gotoAndStop('att'); guy.gotoAndPlay('portal'); } } function hurt(lifeminus, bullet) { if (!ha) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } } function dirChange() { dir *= -1; } onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlback)) { _x = _x + 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (hit.hitTest(_root.camBlock.lvlb)) { life = 0; } if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 800 + _root.difficulty * 15; speed = 12; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } if (!lolol) { begLife = life; lolol = true; } _root.bossBarScale = (life / begLife) * 100; col.setTint(red, 0, 0, tintfade); if (act1) { while (_root.eground.hitTest(_x + 56, _y - 20, true)) { _x = _x - 1; } while (_root.eground.hitTest(_x - 56, _y - 20, true)) { _x = _x + 1; } if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 56, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 56, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } frame 1 { stop(); } instance of movieClip 85 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (random(1000) > 990) { _parent.att(2); } if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(20) == 1) { _parent.att(1); } } } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } if (random(1000) > 950) { _parent.att(3); } } } } instance of movieClip 219 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._x -= (_parent._xscale / 100) * speed; speed /= 1.5; if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { ++_root.lvlkills; _root.lvl4_unlocked = true; _root.bossBeat = true; _root.flyback = false; namee = random(99999) + 10; _root.movieclips.attachMovie('bigChest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } movieClip 2153 { } movieClip 2170 { } movieClip 2187 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } frame 22 { _parent.gotoAndStop('idle'); } } movieClip 2199 { frame 16 { stop(); } instance of movieClip 11 hit { onClipEvent (load) { t = 0; speed = 22; } onClipEvent (enterFrame) { if (!_root.pau) { _parent._parent._x += (_parent._parent._xscale / 100) * speed; --speed; if (speed <= 0) { _parent._parent.gotoAndStop('idle'); } ++t; if (t == 2) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(Math.round(speed / 1.5)); } randN = random(99999); _root.movieclips.attachMovie('runSmoke', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _parent._parent._x; _root.movieclips['b' + randN]._xscale = _parent._parent._xscale; _root.movieclips['b' + randN]._y = _parent._parent._y; t = 0; } } } } } movieClip 2204 { } movieClip 2257 { frame 136 { stop(); _root.cam.fadein.play(); } } movieClip 2258 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (random(10) > 3) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN * 2); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus; _root.score += lifeminus; } } else { if (_root.specialing) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } else { slideback += 15; _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('deflect_spark', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.shakex += 3; gotoAndStop('block'); } } } function dirChange() { dir *= -1; } onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb9)) { _x = _x - 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 500; speed = 5; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (!lolol) { begLife = life; lolol = true; } _root.bossBarScale = (life / begLife) * 100; if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 40, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 40, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } instance of movieClip 2153 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; if (random(100) >= 97) { _parent.gotoAndStop('att2'); } } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { if (random(12) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 2170 { onClipEvent (enterFrame) { if (!_root.pau) { if (random(40) == 1) { _parent.gotoAndStop('att2'); } if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 19 { ++_root.lvlkills; _root.lvl2_unlocked = true; _root.bossBeat = true; namee = random(99999) + 10; _root.movieclips.attachMovie('bigChest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } movieClip 2261 { } movieClip 2269 { frame 13 { if (!_root.pau) { _root.shakey += 6; } } } movieClip 2304 { frame 22 { _root.flyback = true; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(30); } } } } frame 25 { _root.flyback = false; } frame 38 { _root.flyback = true; } frame 39 { _root.shakey += 30; } instance of movieClip 11 hit { onClipEvent (load) { _root.hero.cantblock = true; } onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(50); } } } onClipEvent (unload) { _root.hero.cantblock = false; } } frame 40 { if (!_root.pau) { if (_root.hero.grav < 2) { _root.hero.hurt(20); _root.hero.life -= 15; } } } frame 41 { _root.flyback = false; } frame 61 { _parent.gotoAndStop('idle'); } } movieClip 2347 { frame 12 { randN = random(9999); _root.movieclips.attachMovie('eraise', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _root.hero._x + random(200) - 100; _root.movieclips['b' + randN]._xscale = _parent._xscale; _root.movieclips['b' + randN]._y = _parent._y; } frame 37 { _parent.gotoAndStop('idle'); } } movieClip 2363 { frame 114 { stop(); _root.cam.fadein.play(); } } movieClip 2364 { frame 1 { function sbb() { _xscale = _root.hero._xscale; } function hurt(lifeminus, bullet) { if (!ha) { if (lifeminus > 0) { hb.play(); ++_root.combocount; _root.cam.combo.gotoAndPlay(2); _xscale = _root.hero._xscale * -1; randN = random(9999); _root.movieclips.attachMovie('Blood_mc', 'b' + randN, randN); _root.movieclips['b' + randN]._x = _x; _root.movieclips['b' + randN]._xscale = _xscale; _root.movieclips['b' + randN]._y = _y; _root.movieclips.attachMovie('Gems', 'g' + randN, randN + randN); _root.movieclips['g' + randN]._x = _x; _root.movieclips['g' + randN]._xscale = _xscale; _root.movieclips['g' + randN]._y = _y; _root.shakex += lifeminus / 2; ++_root.special; red = 255; tintfade = 100; slideback += lifeminus / 2; life -= lifeminus + _root.heroMode * 2; _root.score += lifeminus; } } } function dirChange() { dir *= -1; } stop(); onEnterFrame = function () { if (!_root.pau) { if (!active) { ++htt; if (htt > 200) { if (!hit.hitTest(_root.lvlHit)) { ++_root.lvlkills; this.swapDepths(99999); this.removeMovieClip(); } } } else { htt = 0; } while (hit.hitTest(_root.lvlb1)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb2)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb3)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb4)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb5)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb6)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb7)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb8)) { _x = _x - 1; } while (hit.hitTest(_root.lvlb9)) { _x = _x - 1; } if (!sb) { slideback = 0; sb = true; } slideback /= 1.2; _x = _x - slideback * _xscale / 100; if (grav > 45) { grav = 45; } _y = _y + grav; if (!setvars) { ++_root.kn; lawl = random(50); if (lawl >= 26) { weapon = true; } else { weapon = false; } col = new Color(this); red = 0; tintfade = 0; stop(); life = 2200 + _root.difficulty * 14; speed = 7; dir = speed / 2; grav = 0; htt = 0; setvars = true; } if (!lolol) { begLife = life; lolol = true; } _root.bossBarScale = (life / begLife) * 100; if (red > 0) { red /= 1.5; } if (tintfade > 0) { tintfade /= 1.5; } col.setTint(red, 0, 0, tintfade); if (act1) { if (life <= 0) { gotoAndStop('die'); } while (_root.ground.hitTest(_x + 56, _y - 20, true)) { _x = _x - 1; } while (_root.ground.hitTest(_x - 56, _y - 20, true)) { _x = _x + 1; } if (!_root.ground.hitTest(_x, _y, true)) { ++grav; } else { grav = 0; } while (_root.ground.hitTest(_x, _y, true)) { jump = false; _y = _y - 1; } } } }; col = new Color(this); Color.prototype.setTint = function (r, g, b, amount) { var v2 = new Object(); v2.ba = 100 - amount; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; } instance of movieClip 2261 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent.active) { if (_root.hero._x > _parent._x + 40) { if (random(20) == 1) { _parent._xscale = 100; _parent.gotoAndStop('run'); } } if (_root.hero._x < _parent._x - 40) { if (random(20) == 1) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (random(300) == 1) { _parent.gotoAndStop('raise'); } if (hitTest(_root.hero.hit)) { if (random(50) == 1) { _parent.gotoAndStop('att'); } } } } } instance of movieClip 2269 { onClipEvent (enterFrame) { if (!_root.pau) { if (_parent._xscale == -100) { _parent._x -= _parent.speed; } else { _parent._x += _parent.speed; } if (random(100) == 1) { _parent.gotoAndStop('idle'); } if (hitTest(_root.screenhit)) { _parent._visible = true; _parent.active = true; _parent.act1 = true; } else { _parent._visible = false; _parent.active = false; } if (_root.hero._x > _parent._x + 50) { if (random(10) == 1) { _parent._xscale = 100; } } if (_root.hero._x < _parent._x - 50) { if (random(10) == 1) { _parent._xscale = -100; } } if (random(150) == 1) { _parent._xscale *= -1; } if (hitTest(_root.screenhit)) { _parent.active = true; } else { _parent.active = false; } if (!_parent.active) { _parent.gotoAndStop('idle'); } } } } frame 20 { ++_root.lvlkills; _root.lvl5_unlocked = true; _root.bossBeat = true; _root.flyback = false; namee = random(99999) + 10; _root.movieclips.attachMovie('bigChest', 'en' + namee, random(99999)); _root.movieclips['en' + namee]._x = _x; _root.movieclips['en' + namee]._y = _y; } } frame 31 { if (cam) { cam.swapDepths(99999); cam.removeMovieClip(); } _x = 0; _y = 0; arcKills = lvlkills; bossbattle = false; _root.enemiesOnScreen = 0; bigDead = false; if (!caveMode) { lvlkills = 0; } flyback = false; if (curlev == undefined) { curlev = 1; } if (curlev == 1) { if (levelBeat == true) { if (!bc1) { gotoAndStop('boss1_cut'); bc1 = true; } else { gotoAndStop('boss1'); } levelBeat = false; } else { if (bossBeat == true) { gotoAndStop('select'); bossBeat = false; } else { if (!scene1) { scene1 = true; gotoAndStop('cut_lvl1'); } else { gotoAndStop('lvl1'); } } } } if (curlev == 2) { if (levelBeat == true) { if (!scene2) { scene2 = true; gotoAndStop('cut_lvl2'); } else { gotoAndStop('boss2'); } levelBeat = false; } else { if (bossBeat == true) { gotoAndStop('select'); bossBeat = false; } else { gotoAndStop('lvl2'); } } } if (curlev == 3) { if (levelBeat == true) { if (!scene3) { scene3 = true; gotoAndStop('cut_lvl3'); } else { gotoAndStop('boss3'); } levelBeat = false; } else { if (bossBeat == true) { lvl4_unlocked = true; gotoAndStop('select'); } else { gotoAndStop('lvl3'); } } } if (curlev == 4) { if (levelBeat == true) { if (!scene4) { scene4 = true; gotoAndStop('cut_lvl4'); } else { gotoAndStop('boss4'); } levelBeat = false; } else { if (bossBeat == true) { gotoAndStop('select'); } else { gotoAndStop('lvl4'); } } } if (curlev == 5) { if (levelBeat == true) { if (!scene8) { scene8 = true; gotoAndStop('cut_lvl5'); } levelBeat = false; } else { if (bossBeat == true) { gotoAndStop('cut_lvl5_win'); } else { gotoAndStop('lvl5'); } } } if (curlev == 6) { gotoAndStop('shop'); } if (curlev == 7) { if (!arca) { gotoAndStop('arcade'); } else { gotoAndStop('arc_end'); } } arca = false; } movieClip 2367 { } instance of movieClip 2367 { onClipEvent (enterFrame) { _parent.play(); } } frame 36 { shakex = 0; shakey = 0; gamelvl = 1; pau = false; if (!caveMode) { lvlkills = 0; } else { hero._x = cave._x; hero._y = cave._y; lvlb2.swapDepths(99999); lvlb2.removeMovieClip(); lvlb3.swapDepths(99999); lvlb3.removeMovieClip(); lvlb4.swapDepths(99999); lvlb4.removeMovieClip(); cave1.gotoAndStop('closed'); caveMode = false; } lvlTotal = 30; curlev = 1; goScale = 100; } frame 36 { stop(); _root.enemiesAllowed = 4 + difficulty; } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } movieClip 2375 { } movieClip 2379 { } movieClip 2381 { } movieClip 2382 { frame 1 { onEnterFrame = function () { gotoAndStop(_parent.modeNeeded); }; } } movieClip 2388 { } movieClip 2389 { } movieClip 2391 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero)) { _parent.arroww._visible = true; if (Key.isDown(40)) { _parent.golvl(); } } else { _parent.arroww._visible = false; } } } } } instance cave1 of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('caves'); } modeNeeded = 1; stop(); } } movieClip 2392 { frame 1 { _x = 0; _y = 0; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills <= 7) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills <= 7) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills <= 7) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills <= 7) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 15) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (_root.lvlkills > 7 && _root.lvlkills < 20) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.atbig) { if (_root.lvlkills >= 24) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1_big', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; this.swapDepths(99999); this.removeMovieClip(); } } } } } movieClip 2394 { frame 1 { _visible = false; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.fuckup(1); } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.levelBeat = true; _root.cam.fadein.play(); } } } movieClip 2398 { } movieClip 2399 { } movieClip 2402 { } movieClip 2404 { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { ++_root.lives; _parent.play(); } } } frame 10 { this.swapDepths(99999); this.removeMovieClip(); } } movieClip 2407 { frame 1 { _x = 0; _y = 0; } } movieClip 2410 { } movieClip 2415 { frame 1 { onEnterFrame = function () { if (hitTest(_root.screenhit)) { gotoAndStop(1); _visible = true; } else { gotoAndStop(2); _visible = false; } }; } } movieClip 2420 { } movieClip 2421 { frame 1 { if (_root.enemiesOnScreen <= 0) { _root.enemiesOnScreen = 0; } _root.shakeintense = 1.75; _visible = false; if (_root.shakeon) { shakex = _root.shakex; shakey = _root.shakey; } else { shakex = 0; shakey = 0; } while (hitTest(_root.lvlBottom)) { --_root.cam._y; } while (hitTest(_root.lvlTop)) { ++_root.cam._y; } while (hitTest(_root.lvlEnd)) { --_root.cam._x; } while (hitTest(_root.lvlEnd2)) { --_root.cam._x; } while (hitTest(_root.lvlBegin)) { ++_root.cam._x; } while (hitTest(_root.lvlb1)) { --_root.cam._x; } while (hitTest(_root.lvlb2)) { --_root.cam._x; } while (hitTest(_root.lvlb3)) { --_root.cam._x; } while (hitTest(_root.lvlback)) { ++_root.cam._x; } _root._x = _parent._x * -1 + 350 + shakex; _root._y = _parent._y * -1 + 200 + shakey; _root.screenhit._x = _parent._x; _root.screenhit._y = _parent._y; if (Key.isDown(27) && !p) { _parent.play(); p = true; } if (!Key.isDown(27)) { p = false; } } frame 2 { gotoAndPlay(1); } } movieClip 2424 { } movieClip 2427 { } movieClip 2430 { instance of movieClip 2424 { onClipEvent (enterFrame) { if (!l) { life = _root.hero.life; l = true; } fr = Math.round((_root.hero.life / life) * _root.heroLife); gotoAndStop(fr); } } } movieClip 2434 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 2435 { frame 1 { stop(); _root.HUD = this; } } movieClip 2438 { } movieClip 2440 { } movieClip 2443 { frame 1 { lives = 'x ' + _root.lives; potions = 'x ' + _root.valorpotions; bombs = 'x ' + _root.bombs; } } movieClip 2445 { } movieClip 2447 { } movieClip 2450 { } movieClip 2451 { frame 1 { timer = 0; pressspace._visible = false; onEnterFrame = function () { if (!_root.pau) { if (Key.isDown(49)) { _root.heroMode = 1; } else { if (Key.isDown(50) && _root.armor1_un) { _root.heroMode = 2; } else { if (Key.isDown(51) && _root.armor2_un) { _root.heroMode = 3; } else { if (Key.isDown(52) && _root.armor3_un) { _root.heroMode = 4; } } } } valorbar._xscale = _root.valor; valor = 'valor: ' + _root.valor; if (_root.valor >= 100) { valorbar.play(); pressspace._visible = true; _root.valor = 100; if (Key.isDown(32) && _root.hero.grav < 3) { if (!_root.hero.dead) { _root.hero.gotoAndStop('special'); pressspace._visible = false; } } } else { valorbar.gotoAndStop(1); } } }; } } movieClip 2454 { } movieClip 2455 { frame 1 { stop(); } } movieClip 2461 { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { _parent.play(); } } frame 8 { gotoAndStop(1); } instance of movieClip 11 hit { onClipEvent (enterFrame) { _parent.play(); } } frame 13 { gotoAndStop(1); } } movieClip 2464 { frame 1 { _xscale = _root.goScale; onEnterFrame = function () { _xscale = _root.goScale; }; } } movieClip 2465 { } movieClip 2466 { frame 10 { stop(); } } movieClip 2467 { } movieClip 2468 { frame 1 { stop(); } frame 3 { lol._visible = true; } frame 24 { lol._visible = false; } frame 47 { lol._visible = true; } frame 68 { lol._visible = false; } frame 93 { lol._visible = true; } frame 112 { lol._visible = false; } frame 121 { lol._visible = true; } frame 125 { lol._visible = false; } frame 128 { lol._visible = true; } frame 130 { lol._visible = false; } frame 131 { lol._visible = true; } } movieClip 2470 { } movieClip 2473 { frame 1 { gems = 'x ' + _root.gems; } } movieClip 2474 { frame 1 { stop(); } } movieClip 2477 { } movieClip 2479 { frame 1 { cmb = 'Combo: ' + _root.combocount; } } movieClip 2480 { frame 1 { stop(); _root.combocount = 0; } frame 47 { if (_root.combocount >= 10) { _parent.nice.play(); } if (_root.combocount < 10) { if (_root.combocount >= 5) { _parent.haha.play(); } } _root.combocount = 0; } } movieClip 2487 { frame 2 { poo = random(2); if (poo == 1) { gotoAndPlay('catch1'); } else { if (poo == 2) { gotoAndPlay('catch2'); } else { gotoAndPlay('catch3'); } } } frame 6 { stop(); } frame 11 { stop(); } frame 15 { stop(); } } movieClip 2490 { frame 1 { gotoAndStop(random(4) + 2); } } movieClip 2495 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 2496 { frame 1 { stop(); } frame 12 { _root.valor += 20; } } movieClip 2502 { frame 1 { gotoAndStop(key); } } movieClip 2503 { instance of movieClip 2502 { onClipEvent (load) { key = 1; } } } movieClip 2504 { instance of movieClip 2502 { onClipEvent (load) { key = 2; } } } movieClip 2505 { instance of movieClip 2502 { onClipEvent (load) { key = 3; } } } movieClip 2506 { instance of movieClip 2502 { onClipEvent (load) { key = 4; } } } movieClip 2507 { frame 1 { gotoAndStop(_root.heroMode); onEnterFrame = function () { gotoAndStop(_root.heroMode); }; } instance of movieClip 2502 { onClipEvent (load) { key = 2; } } instance of movieClip 2502 { onClipEvent (load) { key = 3; } } instance of movieClip 2502 { onClipEvent (load) { key = 4; } } instance of movieClip 2502 { onClipEvent (load) { key = 1; } } instance of movieClip 2502 { onClipEvent (load) { key = 2; } } instance of movieClip 2502 { onClipEvent (load) { key = 3; } } } movieClip 2509 { frame 1 { onEnterFrame = function () { if (_root.arca == true) { _visible = true; } else { _visible = false; } }; } } movieClip 2513 { } movieClip 2514 { } movieClip 2515 { frame 1 { stop(); } frame 7 { _root.valor += 5; } } movieClip 2519 { } movieClip 2521 { frame 1 { onEnterFrame = function () { if (_root.bossbattle == true) { _visible = true; } else { _visible = false; } }; } instance of movieClip 2519 { onClipEvent (enterFrame) { _xscale = _root.bossBarScale; } } } movieClip 2525 { frame 1 { gotoAndPlay(2); } frame 21 { stop(); } frame 40 { _root.win(); stop(); } } movieClip 2527 { } button 2531 { on (release) { _root.gotoAndStop('select'); play(); } } button 2532 { on (release) { _root.gotoAndStop('menu'); } } button 2533 { on (release) { _root.gameSounds.setVolume(0); } } button 2534 { on (release) { _root.gameSounds.setVolume(25); } } button 2535 { on (release) { _root.gameSounds.setVolume(50); } } button 2536 { on (release) { _root.gameSounds.setVolume(75); } } button 2537 { on (release) { _root.gameSounds.setVolume(100); } } button 2538 { on (release) { _quality = 'high'; _root._quality = 'high'; } } button 2539 { on (release) { _quality = 'medium'; _root._quality = 'medium'; } } button 2540 { on (release) { _quality = 'low'; _root._quality = 'low'; } } button 2541 { on (release) { _root.shakeon = true; } } button 2542 { on (release) { _root.shakeon = false; } } movieClip 2544 { frame 1 { stop(); _root.pau = false; } instance of movieClip 2443 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(90) && _root.valorpotions > 0) { if (!zkey) { _root.valor = 100; --_root.valorpotions; zkey = true; } } else { zkey = false; } } } } frame 2 { stop(); _root.shakex = 0; _root.shakey = 0; _root.pau = true; } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 3; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 100; ydist /= yspeed; _y = _y + ydist; } } } movieClip 2547 { } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; _root.lvlTotal = 30; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills > 7) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills > 15) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 23) { _root.atbig = true; if (_root.bigDead) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } } movieClip 2549 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 41 { shakex = 0; shakey = 0; gamelvl = 'boss1'; pau = false; lvlkills = 0; curlev = 1; bossbattle = true; } frame 41 { stop(); } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance lvlEnd2 of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } movieClip 2553 { frame 1 { _visible = false; _name = 'ground'; } } movieClip 2555 { } movieClip 2557 { } movieClip 2559 { } movieClip 2561 { } movieClip 2563 { } movieClip 2565 { frame 2 { stopAllSounds(); } frame 3 { stop(); } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.screenhit.hitTest(_root.bgp1)) { _root.bgp1._visible = true; } else { _root.bgp1._visible = false; } if (_root.screenhit.hitTest(_root.bgp2)) { _root.bgp2._visible = true; } else { _root.bgp2._visible = false; } if (_root.screenhit.hitTest(_root.bgp3)) { _root.bgp3._visible = true; } else { _root.bgp3._visible = false; } if (_root.screenhit.hitTest(_root.bgp4)) { _root.bgp4._visible = true; } else { _root.bgp4._visible = false; } if (_root.screenhit.hitTest(_root.bgp5)) { _root.bgp5._visible = true; } else { _root.bgp5._visible = false; } if (_root.screenhit.hitTest(_root.bgp6)) { _root.bgp6._visible = true; } else { _root.bgp6._visible = false; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 10) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 3; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 50; ydist /= yspeed; _y = _y + ydist; } } } frame 47 { shakex = 0; shakey = 0; gamelvl = 2; pau = false; lvlTotal = 35; if (!caveMode) { lvlkills = 0; } else { hero._x = cave._x; hero._y = cave._y; camBlock.gotoAndStop(4); cave1.gotoAndStop('closed'); caveMode = false; } curlev = 2; goScale = 100; } frame 47 { stop(); _root.enemiesAllowed = 5 + difficulty; } instance cave1 of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('caves'); } modeNeeded = 1; stop(); } } movieClip 2587 { } movieClip 2589 { } movieClip 2591 { } movieClip 2593 { frame 1 { _visible = false; _name = 'ground'; } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 3; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 50; ydist /= yspeed; _y = _y + ydist; } } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _root.lvltotal = 35; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 9) { if (!k1) { _root.camBlock.play(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 19) { if (!k2) { _root.camBlock.play(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 26) { if (!k3) { _root.camBlock.play(); _root.cam.go.play(); k3 = true; } } if (_root.lvlkills >= _root.lvltotal) { if (!k4) { _root.camBlock.gotoAndStop('mini'); _root.cam.go.play(); k4 = true; } } if (k4) { if (_root.bigDead) { if (!k5) { _root.camBlock.gotoAndStop('done'); _root.cam.go.play(); } } } } } } movieClip 2599 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } movieClip 2600 { frame 1 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 2 { stop(); } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(1); } } } frame 3 { stop(); _root.goScale = -100; } instance lvlback of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlback = this; } } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(2); } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 4 { stop(); _root.goScale = 100; } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(3); } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 5 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (!shit) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2_big', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; shit = true; } } } } } } frame 6 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.levelBeat = true; _root.cam.fadein.play(); } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } } movieClip 2602 { frame 1 { _visible = false; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 52 { shakex = 0; shakey = 0; gamelvl = 'boss2'; shakeon = true; pau = false; lvlkills = 0; curlev = 2; bossbattle = true; } frame 52 { stop(); } instance lvlEnd2 of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } movieClip 2604 { } movieClip 2605 { frame 1 { this.chacheAsBitmap = true; } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.screenhit.hitTest(_root.bgp1)) { _root.bgp1._visible = true; } else { _root.bgp1._visible = false; } if (_root.screenhit.hitTest(_root.bgp2)) { _root.bgp2._visible = true; } else { _root.bgp2._visible = false; } if (_root.screenhit.hitTest(_root.bgp3)) { _root.bgp3._visible = true; } else { _root.bgp3._visible = false; } if (_root.screenhit.hitTest(_root.bgp4)) { _root.bgp4._visible = true; } else { _root.bgp4._visible = false; } if (_root.screenhit.hitTest(_root.bgp5)) { _root.bgp5._visible = true; } else { _root.bgp5._visible = false; } if (_root.screenhit.hitTest(_root.bgp6)) { _root.bgp6._visible = true; } else { _root.bgp6._visible = false; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 10) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 59 { shakex = 0; shakey = 0; gamelvl = 3; pau = false; if (!caveMode) { lvlkills = 0; } else { hero._x = cave._x; hero._y = cave._y; camBlock.gotoAndStop(4); cave1.gotoAndStop('closed'); caveMode = false; } curlev = 3; goScale = 100; } frame 59 { stop(); _root.enemiesAllowed = 5 + difficulty; } movieClip 2607 { frame 1 { _visible = false; } } movieClip 2611 { } movieClip 2613 { } movieClip 2616 { } movieClip 2618 { } movieClip 2619 { } movieClip 2627 { } movieClip 2630 { } movieClip 2632 { } instance cave1 of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('caves'); } modeNeeded = 1; stop(); } } movieClip 2640 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _root.lvltotal = 35; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 9) { if (!k1) { _root.camBlock.play(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 19) { if (!k2) { _root.camBlock.play(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 26) { if (!k3) { _root.camBlock.play(); _root.cam.go.play(); k3 = true; } } if (_root.lvlkills >= _root.lvltotal) { if (!k4) { _root.camBlock.gotoAndStop('mini'); _root.camBlock.play(); _root.cam.go.play(); k4 = true; } } if (k4) { if (_root.bigDead) { _root.camBlock.gotoAndStop('done'); _root.cam.go.play(); } } } } } movieClip 2641 { frame 1 { stop(); } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(1); } } } frame 2 { stop(); _root.goScale = 100; } instance lvlback of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlback = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 3 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(2); } } } frame 4 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 5 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (!shit) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3_big', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; shit = true; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 6 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.levelBeat = true; _root.cam.fadein.play(); } } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 2643 { frame 1 { _visible = false; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 64 { shakex = 0; shakey = 0; gamelvl = 'boss3'; shakeon = true; pau = false; lvlkills = 0; curlev = 3; bossbattle = true; } frame 64 { stop(); } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance lvlEnd2 of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } movieClip 2645 { } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.screenhit.hitTest(_root.bgp1)) { _root.bgp1._visible = true; } else { _root.bgp1._visible = false; } if (_root.screenhit.hitTest(_root.bgp2)) { _root.bgp2._visible = true; } else { _root.bgp2._visible = false; } if (_root.screenhit.hitTest(_root.bgp3)) { _root.bgp3._visible = true; } else { _root.bgp3._visible = false; } if (_root.screenhit.hitTest(_root.bgp4)) { _root.bgp4._visible = true; } else { _root.bgp4._visible = false; } if (_root.screenhit.hitTest(_root.bgp5)) { _root.bgp5._visible = true; } else { _root.bgp5._visible = false; } if (_root.screenhit.hitTest(_root.bgp6)) { _root.bgp6._visible = true; } else { _root.bgp6._visible = false; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 10) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } frame 70 { shakex = 0; shakey = 0; gamelvl = 4; pau = false; if (!caveMode) { lvlkills = 0; } else { hero._x = cave._x; hero._y = cave._y; camBlock.gotoAndStop(3); cave1.gotoAndStop('closed'); caveMode = false; } curlev = 4; goScale = 100; } frame 70 { stop(); _root.enemiesAllowed = 5 + difficulty; } movieClip 2647 { frame 1 { _visible = false; _name = 'ground'; } } movieClip 2649 { frame 1 { _visible = false; } } movieClip 2655 { } movieClip 2656 { } movieClip 2658 { } movieClip 2660 { } movieClip 2663 { } movieClip 2666 { } movieClip 2667 { } movieClip 2670 { } movieClip 2673 { } movieClip 2674 { } movieClip 2677 { } movieClip 2679 { } movieClip 2681 { } movieClip 2685 { } instance cave1 of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('caves'); } modeNeeded = 1; stop(); } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 10) { if (!k1) { _root.camBlock.play(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 18) { if (!k2) { _root.camBlock.play(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 27) { if (!k3) { _root.camBlock.play(); _root.cam.go.play(); k3 = true; } } if (_root.lvlkills >= 36) { if (!k4) { _root.camBlock.gotoAndStop('mini'); _root.cam.go.play(); k4 = true; } } if (k4) { if (_root.bigDead) { if (!k5) { _root.camBlock.gotoAndStop('done'); _root.cam.go.play(); } } } } } } movieClip 2687 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } movieClip 2688 { frame 1 { stop(); } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 2 { stop(); } frame 3 { stop(); } instance lvlback of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlback = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(110) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 4 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 5 { stop(); } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (!shit) { namee = random(99999) + 10; _root.enemies.attachMovie('boss3_aura', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; shit = true; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 6 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.levelBeat = true; _root.cam.fadein.play(); } } } frame 7 { stop(); } } movieClip 2689 { instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.fuckup(1); } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.fuckup(2); } } } } instance lvlBottom of movieClip 2689 { onClipEvent (enterFrame) { _root.lvlBottom = this; } } frame 76 { shakex = 0; shakey = 0; gamelvl = 'boss4'; pau = false; lvlkills = 0; curlev = 4; bossbattle = true; } frame 76 { stop(); } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance lvlEnd2 of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } movieClip 2690 { } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.screenhit.hitTest(_root.bgp1)) { _root.bgp1._visible = true; } else { _root.bgp1._visible = false; } if (_root.screenhit.hitTest(_root.bgp2)) { _root.bgp2._visible = true; } else { _root.bgp2._visible = false; } if (_root.screenhit.hitTest(_root.bgp3)) { _root.bgp3._visible = true; } else { _root.bgp3._visible = false; } if (_root.screenhit.hitTest(_root.bgp4)) { _root.bgp4._visible = true; } else { _root.bgp4._visible = false; } if (_root.screenhit.hitTest(_root.bgp5)) { _root.bgp5._visible = true; } else { _root.bgp5._visible = false; } if (_root.screenhit.hitTest(_root.bgp6)) { _root.bgp6._visible = true; } else { _root.bgp6._visible = false; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 10) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 83 { shakex = 0; shakey = 0; gamelvl = 5; pau = false; if (!caveMode) { lvlkills = 0; } else { hero._x = cave._x; hero._y = cave._y; camBlock.gotoAndStop(8); cave1.gotoAndStop('closed'); caveMode = false; } curlev = 5; goScale = 100; } frame 83 { _root.enemiesAllowed = 6 + difficulty; } movieClip 2693 { frame 1 { _visible = false; } } movieClip 2695 { } movieClip 2699 { } instance cave1 of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('caves'); } modeNeeded = 1; stop(); } } movieClip 2702 { frame 1 { this.cacheAsBitmap = true; } } movieClip 2704 { frame 1 { _visible = false; } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 3; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 50; ydist /= yspeed; _y = _y + ydist; } } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 10) { if (!k1) { _root.camBlock.play(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 18) { if (!k2) { _root.camBlock.play(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 27) { if (!k3) { _root.camBlock.play(); _root.cam.go.play(); k3 = true; } } if (_root.lvlkills >= 36) { if (!k4) { _root.camBlock.play(); _root.cam.go.play(); k4 = true; } } if (_root.lvlkills >= 42) { if (!k5) { _root.camBlock.play(); _root.cam.go.play(); k5 = true; } } if (_root.lvlkills >= 50) { if (!k6) { _root.camBlock.play(); _root.cam.go.play(); k6 = true; } } if (_root.lvlkills >= 56) { if (!k7) { _root.camBlock.play(); _root.cam.go.play(); k7 = true; } } if (_root.lvlkills >= 75) { if (!k8) { _root.camBlock.gotoAndStop('mini'); _root.cam.go.play(); k8 = true; } } if (k8) { if (_root.bigDead) { if (!k10) { _root.camBlock.gotoAndStop('done'); _root.cam.go.play(); } } } } } } movieClip 2705 { frame 1 { stop(); } instance lvlb of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(1); } } } frame 2 { stop(); } frame 3 { stop(); } instance lvlback of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlback = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 4 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(2); } } } frame 5 { stop(); _root.goScale = -100; } instance lvlb1 of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlb1 = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 6 { stop(); _root.goScale = 100; } instance lvlback of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlback = this; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(3); } } } frame 7 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance lvlBottom of movieClip 11 hit { onClipEvent (enterFrame) { _root.lvlBottom = this; if (hitTest(_root.hero.hit)) { _root.fuckup(4); } } } frame 8 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('bowman', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy4', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 9 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (!shit) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2_big_aura', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; shit = true; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy2', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy3', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!_root.pau) { if (random(70) == 1) { namee = random(99999) + 10; _root.enemies.attachMovie('enemy1', 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x + _parent._x; _root.enemies['e' + namee]._y = _y + _parent._y; ++_root.enemiesOnScreen; } } } } } } frame 10 { stop(); _root.goScale = -100; } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _root.levelBeat = true; _root.cam.fadein.play(); } } } frame 12 { stop(); } } frame 89 { shakex = 0; shakey = 0; gamelvl = 'boss5'; pau = false; lvlkills = 0; curlev = 5; bossbattle = true; } frame 89 { stop(); } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance lvlEnd2 of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 3; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 50; ydist /= yspeed; _y = _y + ydist; } } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.screenhit.hitTest(_root.bgp1)) { _root.bgp1._visible = true; } else { _root.bgp1._visible = false; } if (_root.screenhit.hitTest(_root.bgp2)) { _root.bgp2._visible = true; } else { _root.bgp2._visible = false; } if (_root.screenhit.hitTest(_root.bgp3)) { _root.bgp3._visible = true; } else { _root.bgp3._visible = false; } if (_root.screenhit.hitTest(_root.bgp4)) { _root.bgp4._visible = true; } else { _root.bgp4._visible = false; } if (_root.screenhit.hitTest(_root.bgp5)) { _root.bgp5._visible = true; } else { _root.bgp5._visible = false; } if (_root.screenhit.hitTest(_root.bgp6)) { _root.bgp6._visible = true; } else { _root.bgp6._visible = false; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.lvlb1.swapDepths(99999); _root.lvlb1.removeMovieClip(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 10) { if (!k2) { _root.lvlb2.swapDepths(99999); _root.lvlb2.removeMovieClip(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.lvlb3.swapDepths(99999); _root.lvlb3.removeMovieClip(); _root.cam.go.play(); k3 = true; } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 96 { shakex = 0; shakey = 0; gamelvl = 7; pau = false; lvlkills = 0; curlev = 7; bossbattle = false; _root.enemiesAllowed = 3 + difficulty; } frame 96 { arca = true; } instance of movieClip 11 hit { onClipEvent (enterFrame) { _x = _root.hero._x + random(200) - 100; _y = _root.hero._y; if (hitTest(_root.screenhit)) { if (_root.enemiesOnScreen < _root.enemiesAllowed) { if (!lololwtf) { if (random(45) == 1) { enem = new Array('enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy3', 'enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy3', 'enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy1', 'enemy2', 'bowman', 'enemy3', 'enemy1_big', 'enemy2_big', 'enemy3_big', 'enemy2_big_aura', 'boss3_aura'); poopoo = enem.length; trace(poopoo); namee = random(99999) + 10; _root.enemies.attachMovie(enem[random(poopoo)], 'e' + namee, random(99999)); _root.enemies['e' + namee]._x = _x; _root.enemies['e' + namee]._y = _y; ++_root.enemiesOnScreen; } } } } } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; t = 0; ttime = 1100; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { ++t; if (t > ttime) { ++_root.enemiesAllowed; ttime += 50; t = 0; } if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } } } } frame 103 { arca = false; if (highscore == undefined) { highscore = 0; } if (highscore < arcKills) { highscore = arcKills; hs = true; } if (highscore >= 250) { extratext = 'have you tried pressing P lately?'; } else { extratext = ''; } endText = 'Your final score was ' + arcKills + '.' + '\n' + '\n' + 'Your high score is: ' + highscore + '\n' + '\n' + 'Go back to the shop an see how far you can get!' + '\n' + extratext; } frame 103 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2710 { } movieClip 2712 { } button 2716 { on (release) { gotoAndStop('select'); } } movieClip 2718 { } movieClip 2719 { } frame 111 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } frame 111 { function buy(bitem) { if (gems > itemCost) { if (bitem == 'life') { ++lives; } if (bitem == 'gpotion') { heroLife += 8; } if (bitem == 'vpotion') { ++valorpotions; } if (bitem == 'bomb') { ++bombs; } if (bitem == 'lifegain') { lifeGain = true; } if (bitem == 'armor1') { heroMode = 2; armor1_un = true; } if (bitem == 'armor2') { heroMode = 3; armor2_un = true; } if (bitem == 'armor3') { heroMode = 4; armor3_un = true; } gems -= itemCost; } } } frame 111 { descText = 'Welcome to the shop! You can find items here that will help you progress further in the game! Enjoy!'; itemCost = 0; } button 2722 { on (rollOver) { itemCost = 50; descText = 'An extra life. You will probably be needing this little guy a few times.'; } on (release) { _root.buy('life'); } } button 2723 { on (rollOver) { itemCost = 150; descText = 'The health potion will increase your maximum health by 5%'; } on (release) { _root.buy('gpotion'); } } button 2724 { on (rollOver) { itemCost = 35; descText = 'The valor potion will allow you to increase your valor guage to 100% without doing any work!'; } on (release) { _root.buy('vpotion'); } } button 2725 { on (rollOver) { itemCost = 20; descText = 'Bombs! Buy some and make your enemies go boom :D'; } on (release) { _root.buy('bomb'); } } movieClip 2732 { } button 2735 { on (rollOver) { _root.itemCost = 250; _root.descText = 'Life Gain will recover your health when you successfully land a hit on an enemy.'; } on (release) { _root.buy('lifegain'); } } movieClip 2737 { } movieClip 2739 { frame 1 { if (!_root.lifeGain) { gotoAndStop(1); } else { gotoAndStop(2); } onEnterFrame = function () { if (!_root.lifeGain) { gotoAndStop(1); } else { gotoAndStop(2); } }; } } button 2740 { on (rollOver) { _root.itemCost = 200; _root.descText = 'Armor Upgrade. This will reduce the damage you take, and increase the damage you give. Press the number keys to change your armor once unlocked! Also needed to enter level 3.'; } on (release) { _root.buy('armor1'); } } movieClip 2741 { } movieClip 2742 { } movieClip 2743 { frame 1 { if (!_root.armor1_un) { gotoAndStop(1); } else { gotoAndStop(2); } onEnterFrame = function () { if (!_root.armor1_un) { gotoAndStop(1); } else { gotoAndStop(2); } }; } } button 2744 { on (rollOver) { _root.itemCost = 250; _root.descText = 'Heaven\'s Armor. This will reduce the damage you take, increase the damage you give, and give you a new valor special! Also needed to enter level 4.'; } on (release) { _root.buy('armor2'); } } movieClip 2745 { } movieClip 2746 { } movieClip 2747 { frame 1 { if (!_root.armor2_un) { gotoAndStop(1); } else { gotoAndStop(2); } onEnterFrame = function () { if (!_root.armor2_un) { gotoAndStop(1); } else { gotoAndStop(2); } }; } } button 2748 { on (rollOver) { _root.itemCost = 350; _root.descText = 'Hell\'s Armor. This will reduce the damage you take, increase the damage you give, and give you a new valor special! needed to enter level 5. The ultimate Armor.'; } on (release) { _root.buy('armor3'); } } movieClip 2749 { } movieClip 2750 { frame 1 { if (!_root.armor3_un) { gotoAndStop(1); } else { gotoAndStop(2); } onEnterFrame = function () { if (!_root.armor3_un) { gotoAndStop(1); } else { gotoAndStop(2); } }; } } frame 119 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2752 { frame 2 { stopAllSounds(); } frame 4 { stop(); } } movieClip 2754 { } movieClip 2787 { } movieClip 2804 { } movieClip 2822 { } movieClip 2854 { instance of movieClip 1478 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent._xscale = 100; _parent.speed += 4; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent._xscale = -100; _parent.speed -= 4; } } else { _parent.gotoAndStop('stop'); } } } } } instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 20; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att3'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 22; } } frame 518 { _root.gotoAndStop('lvl1'); } } frame 125 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2866 { } movieClip 2869 { } movieClip 2870 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } color._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } movieClip 2886 { } movieClip 2914 { } movieClip 2917 { instance of movieClip 2866 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent._xscale = 100; _parent.speed += 4; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent._xscale = -100; _parent.speed -= 4; } } else { _parent.gotoAndStop('stop'); } } } } } instance vcam of movieClip 2870 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 2886 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } frame 328 { _root.gotoAndStop('boss2'); } } frame 132 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2919 { } movieClip 2920 { instance of movieClip 1478 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(39)) { if (_parent.speed < _parent.maxSpeed) { _parent._xscale = 100; _parent.speed += 4; } } else { if (Key.isDown(37)) { if (_parent.speed > _parent.maxSpeed * -1) { _parent._xscale = -100; _parent.speed -= 4; } } else { _parent.gotoAndStop('stop'); } } } } } instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(30); } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.hero.cantblock = true; } onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(50); } } } onClipEvent (unload) { _root.hero.cantblock = false; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } frame 252 { _root.gotoAndStop('boss4'); } } frame 139 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2921 { frame 1 { this.chacheAsBitmap = true; } } movieClip 2927 { instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero.hurt(13); } } } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } frame 318 { _root.gotoAndStop('boss3'); } } frame 146 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 2945 { instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } frame 255 { _root.gotoAndStop('boss1'); } } frame 154 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 3018 { instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } frame 307 { _root.gotoAndStop('win'); } } frame 160 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 3061 { instance vcam of movieClip 1349 { onClipEvent (enterFrame) { xdiff = _root.player._x - _x; ydiff = _root.player._y - _y; _x = _x + xdiff / 10; _y = _y + ydiff / 10; } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (load) { _root.herohit = this; power = 18; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (!Key.isDown(65)) { kd = true; } if (kd) { if (Key.isDown(65)) { _parent.gotoAndPlay('att2'); } } } } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 1461 { onClipEvent (enterFrame) { if (!_root.pau) { _parent.speed /= 1.5; if (Key.isDown(39)) { _parent._xscale = 100; _parent.gotoAndStop('run'); } else { if (Key.isDown(37)) { _parent._xscale = -100; _parent.gotoAndStop('run'); } } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(30); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(25); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(35); } } } } instance of movieClip 1560 { onClipEvent (enterFrame) { if (!_root.pau) { if (Key.isDown(83)) { nextFrame(); } else { prevFrame(); if (_currentframe == 1) { _parent.gotoAndStop('idle'); } } _parent.speed /= 1.5; } } onClipEvent (unload) { _parent.blocking = false; } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(10); } } } } instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero.hit)) { _root.hero._xscale = _parent._parent._xscale * -1; _root.hero.hurt(50); } } } } frame 516 { _root.gotoAndStop('boss5'); } } frame 168 { shakex = 0; shakey = 0; pau = false; flyback = false; lvlkills = 0; bossBeat = false; _root.goScale = 100; } frame 168 { arca = false; bossbattle = false; } movieClip 3064 { } movieClip 3065 { } movieClip 3066 { } movieClip 3068 { } movieClip 3071 { } movieClip 3072 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (!_root.pau) { if (hitTest(_root.hero)) { _parent.arroww._visible = true; if (Key.isDown(40)) { _parent.golvl(); } } else { _parent.arroww._visible = false; } } } } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 1; _root.gotoAndStop('loading'); } modeNeeded = 1; stop(); } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 2; _root.gotoAndStop('loading'); } modeNeeded = 1; if (_root.lvl2_unlocked == true) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 4; if (_root.heroMode == modeNeeded) { _root.gotoAndStop('loading'); } } modeNeeded = 3; if (_root.lvl4_unlocked == true) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 5; if (_root.heroMode == modeNeeded) { _root.gotoAndStop('loading'); } } modeNeeded = 4; if (_root.lvl5_unlocked == true) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 6; _root.gotoAndStop('loading'); } modeNeeded = 1; gotoAndStop('open'); } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 3; if (_root.heroMode == modeNeeded) { _root.gotoAndStop('loading'); } } modeNeeded = 2; if (_root.lvl3_unlocked == true) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } instance of movieClip 3072 { onClipEvent (load) { function golvl() { _root.curlev = 7; _root.gotoAndStop('loading'); } modeNeeded = 1; if (_root.lvl7_unlocked == true) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } movieClip 3075 { } movieClip 3084 { } movieClip 3086 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _parent.gotoAndStop(2); } else { _parent.gotoAndStop(1); } } } } movieClip 3088 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _parent.gotoAndStop(2); } else { _parent.gotoAndStop(1); } } } } movieClip 3090 { instance of movieClip 11 hit { onClipEvent (enterFrame) { if (hitTest(_root.hero.hit)) { _parent.gotoAndStop(2); } else { _parent.gotoAndStop(1); } } } } movieClip 3095 { frame 1 { _visible = false; } } instance cam of movieClip 2544 { onClipEvent (load) { _x = _root.hero._x; _y = _root.hero._y; } onClipEvent (enterFrame) { if (!_root.pau) { xspeed = 4; yspeed = 2; xdist = _root.hero._x + _root.hero._xscale - _x; xdist /= xspeed; _x = _x + xdist; ydist = _root.hero._y - _y - 110; ydist /= yspeed; _y = _y + ydist; } } } instance of movieClip 2547 { onClipEvent (load) { _root.shakex = 0; _root.shakey = 0; _visible = false; } onClipEvent (enterFrame) { if (!_root.pau) { if (_root.shakeon) { _root.shakex *= -1; _root.shakex /= _root.shakeintense; _root.shakey *= -1; _root.shakey /= _root.shakeintense; } else { _root.shakex = 0; _root.shakey = 0; } if (_root.lvlkills >= 4) { if (!k1) { _root.camBlock.play(); _root.cam.go.play(); k1 = true; } } if (_root.lvlkills >= 7) { if (!k2) { _root.camBlock.play(); _root.cam.go.play(); k2 = true; } } if (_root.lvlkills >= 13) { if (!k3) { _root.camBlock.play(); _root.cam.go.play(); k3 = true; } } if (_root.lvlkills >= 19) { if (!k4) { _root.camBlock.play(); _root.cam.go.play(); k4 = true; } } } } } instance lvlBegin of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { ++_root.hero._x; } } } instance lvlEnd of movieClip 11 hit { onClipEvent (enterFrame) { while (hitTest(_root.hero.hit)) { --_root.hero._x; } } } frame 176 { arca = false; bossbattle = false; shakex = 0; shakey = 0; pau = false; flyback = false; lvlkills = 0; bossBeat = false; _root.goScale = 100; caveMode = true; } instance of movieClip 2391 { onClipEvent (load) { function golvl() { _root.gotoAndStop('loading'); } modeNeeded = 1; stop(); } } movieClip 3098 { frame 1 { onEnterFrame = function () { if (!_root.pau) { if (hitTest(_root.hero.hit)) { gotoAndStop('collect'); } if (!hitTest(_root.screenhit)) { _visible = false; } else { _visible = true; } } }; gotoAndStop(random(5) + 1); } frame 8 { onEnterFrame = null(); _root.cam.gems.gotoAndPlay(2); ++_root.gems; } } movieClip 3103 { frame 1 { gotoAndStop(_root.curlev); } } movieClip 3111 { frame 1 { _visible = false; gotoAndStop(_root.curlev); } } frame 184 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } movieClip 3116 { frame 2 { stopAllSounds(); } frame 129 { _root.gotoAndStop('select'); } } frame 189 { cam.swapDepths(99999); cam.removeMovieClip(); _x = 0; _y = 0; } frame 189 { heroDead = false; } movieClip 3121 { } button 3122 { on (release) { _root.gotoAndStop('loading'); } } button 3123 { on (release) { _root.gotoAndStop('select'); } } movieClip 3124 { frame 2 { stopAllSounds(); } frame 70 { stop(); } }




http://swfchan.com/44/215107/info.shtml
Created: 21/11 -2018 18:51:37 Last modified: 21/11 -2018 18:51:37 Server time: 08/05 -2024 06:14:03