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

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

Red Baron.swf

This is the info page for
Flash #132563

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


ActionScript [AS1/AS2]
Combined Code
movieClip 67 { } movieClip 68 loneflag { frame 1 { coin._y = -100; speed = Math.random() * 15 + 10; xspeed = Math.random() * 10 + 14; nStartWidth = 30; atLeast = 50; onEnterFrame = function () { atLeast -= 1; if (atLeast <= 0 && _x - 70 < _root.redbaron._x && _x + 70 > _root.redbaron._x && _y - 20 < _root.redbaron._y && _y + 20 > _root.redbaron._y && xspeed < 1 && speed < 1) { if (eden == 'lb') { _root.comboText('a', _root.redbaron._x, _root.redbaron._y - 100); _root.lb = true; this.removeMovieClip(); } else { _root.specweapon = 6; _root.cweapon = 1; _root.weapon = 1; _root.rb = false; this.removeMovieClip(); } } _root.depthCreator(this, _y); if (!(Math.abs(speed) < 1 && coin._y > -5)) { coin._y += speed; speed += 1; } if (xspeed > 0) { xspeed -= 0.6; } if (xspeed > 0) { _root.landCheck(this, 1, 5); if (bLeftHit && dir == -1 || bRightHit && dir == 1) { dir *= -1.8; _x = _x + dir * 10; } _x = _x + dir * xspeed; } if (Math.abs(speed) < 1 && coin._y > -5) { coin._y = 0; } if (coin._y > 0 && Math.abs(speed) > 1) { speed *= -0.6; coin._y -= 2; } if (_name == 'loneflagrb') { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }; } } movieClip 80 { frame 18 { stop(); } } movieClip 89 { frame 13 { stop(); } } movieClip 90 tankrubble { frame 16 { this.removeMovieClip(); } } movieClip 92 { } movieClip 109 { } movieClip 110 { instance of movieClip 109 { onClipEvent (enterFrame) { if (_parent._parent.stun > 0) { _visible = true; } else { _visible = false; } } onClipEvent (load) { if (_parent._parent.stun > 0) { _visible = true; } else { _visible = false; } } } } movieClip 123 { frame 13 { _parent.nWait = 7; } frame 40 { _parent.nWait = 7; } } movieClip 134 { } movieClip 138 { } movieClip 140 { } movieClip 141 { } movieClip 143 { } movieClip 147 { } movieClip 149 { frame 12 { if (_root.specHitTest(240 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('alienbigpunch'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 15; _root.sparks(_root.redbaron); _root.blockbar -= 20; _parent.lockhitt = 20; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 6; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 20; } } } frame 25 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 150 { } movieClip 151 { } movieClip 152 { } movieClip 153 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 34 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 154 { instance of movieClip 109 { onClipEvent (enterFrame) { if (_parent._parent.stun > 0) { _visible = true; } else { _visible = false; } } onClipEvent (load) { if (_parent._parent.stun > 0) { _visible = true; } else { _visible = false; } } } } movieClip 189 { } movieClip 207 { frame 1 { if (_x < _root.redbaron._x) { _parent.nSlide = -20; _root.redbaron.nSlide = 20; } else { _parent.nSlide = 20; _root.redbaron.nSlide = -20; } } frame 50 { _parent.bDead = false; _parent.form = 'small'; _parent.gotoAndStop('idlesmall'); } } movieClip 209 { } movieClip 211 { } movieClip 213 { } movieClip 215 { } movieClip 216 { } movieClip 227 { } movieClip 256 { frame 1 { cont = true; _parent.nSlide = 5 * _parent.nFacing; } frame 7 { if (_root.specHitTest(170 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('aliensmallpunch'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 3; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 0.5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 5; } } else { cont = false; } } frame 14 { if (!cont) { _parent.gotoAndStop('idlesmall'); } cont = true; _parent.nSlide = 5 * _parent.nFacing; } frame 17 { if (_root.specHitTest(170 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('aliensmallpunch2'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 3; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 0.5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 5; } } else { cont = false; } } frame 26 { if (!cont) { _parent.gotoAndStop('idlesmall'); } _parent.nSlide = 5 * _parent.nFacing; } frame 30 { if (_root.specHitTest(170 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('aliensmallpunch'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 3; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 0.5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 5; } } } frame 39 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 263 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 6 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 268 { } movieClip 269 { frame 16 { if (_root.specHitTest(200 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('aliensmallpunch2'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 6; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 3; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 12; } } } frame 18 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 288 { frame 1 { if (_x < _root.redbaron._x) { _parent.nSlide = -20; _root.redbaron.nSlide = 20; } else { _parent.nSlide = 20; _root.redbaron.nSlide = -20; } } frame 72 { _parent.bDead = false; _parent.form = 'spider'; _parent.gotoAndStop('idlespider'); } } movieClip 289 { } movieClip 290 { } movieClip 291 { } movieClip 292 { frame 1 { _root.playSoundEffect('spiderswing'); } frame 12 { if (_root.specHitTest(280 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('spiderhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -5 * _parent.nFacing; _root.redbaron.nSlide = _parent.nFacing * 8; _root.sparks(_root.redbaron); _root.blockbar -= 15; } else { _parent.gotoAndStop('idle' + _parent.form); } } else { _root.health -= 2; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 16; } } } frame 23 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 293 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 9 { _parent.gotoAndStop('idle' + _parent.form); } } movieClip 295 { } movieClip 306 { frame 1 { if (_x < _root.redbaron._x) { _parent.nSlide = -20; _root.redbaron.nSlide = 20; } else { _parent.nSlide = 20; _root.redbaron.nSlide = -20; } i = 1; while (i <= 30) { _root.Coin(); ++i; } } frame 46 { if (_root.level == 4) { starter = 1; onEnterFrame = function () { starter += 1; if (starter > 80 && starter < 82) { _root.crTime = getTimer(); if (_root.bonusEnabled) { _root.Coin1.removeMovieClip(); _root.attachMovie('bonusCoin', 'Coin1', _root.getNextHighestDepth()); } else { _root.fadeInn(); } } }; } else { ++_root.kills; _parent.removeMovieClip(); } stop(); } } movieClip 307 alien { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (supah > 0) { nSlide = nFacing * 12; supah -= 1; gotoAndStop('attackman'); alien.gotoAndPlay(alien._currentframe + 2); } if (!bRightHit && nSlide > 0) { _x = _x + nSlide; } if (!bLeftHit && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { nSlide += 1; } if (lockhitt == undefined) { lockhitt = 0; } else { if (lockhitt > 0) { lockhitt -= 1; } } if (lockhit > 0) { _root.alienhits -= 0.5 + barhard; if (_root.alienhits <= 0) { _root.redbaron.baron.play(); supah = 40; lockhit = 0; } if (Math.round(Math.random() * 4) == 1) { _root.redbaron._x = _root.ssx; _root.ssx = _root.redbaron._x; } _root.redbaron.gotoAndStop(rbc); _root.redbaron.baron.gotoAndStop(rbcc); _root.redbaron.nShake = 3; nWait = 10; nAttackWait = 15; this.gotoAndStop(4); if (Key.isDown(_root.attack) && !hitter) { _root.addImpactHit((_root.redbaron._x + _x) / 2, _root.redbaron._y - 80, false, true); if (hits % 2 == 0) { if (Math.round(Math.random()) == 1) { _root.playSoundEffect('baron_swingin1'); } else { _root.playSoundEffect('baron_swingin2'); } } _root.alienhits += 10; hits += 1; hitter = true; } if (_root.alienhits >= 90) { gotoAndStop(1); stun = 160; _root.redbaron.baron.play(); lockhit = 0; hits = 0; } if (!Key.isDown(_root.attack)) { hitter = false; } } else { hits = 0; hitter = false; } if (form == 'man') { nMoveSpeed = 4; nVertSpeed = 2.5; waitadd = 5; } else { if (form == 'small') { nMoveSpeed = 11; nVertSpeed = 3; waitadd = 10; } else { nMoveSpeed = 5.5; nVertSpeed = 2; waitadd = 15; } } if (!_root.dead) { if (stun > 0) { --stun; } if (_root.baronwaittime == 0) { if (bDead != true) { if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && nWait < 999) { if (lockhitt > 0) { barhard += 0.2; lockhit = 40; _root.alienhits = 45; _root.ssx = _root.redbaron._x; _root.redbaron.baron.stop(); rbc = _root.redbaron._currentframe; rbcc = _root.redbaron.baron._currentframe; } nWait = 12; gotoAndStop('hit' + form); alien.gotoAndPlay(1); nSlide = 10 * baron.nFacing; _root.Hit(); if (form == 'man') { if (stun > 0) { nHealth -= _root.attackLevel; } else { nHealth -= _root.attackLevel / 3; } } else { nHealth -= _root.attackLevel / 2; } } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && _currentframe != 9 && stun == 0) { if (!bLeftHit) { if (_x > baron._x - 50) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - 50) { nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + 50) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + 50) { nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { nFacing = -1; } } if (!bUpHit && _y - 5 > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y + 5 < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle' + form); } else { gotoAndStop('walk' + form); } } if (_root.specHitTest(200 * nFacing, 5, _root.redbaron, this) && nAttackWait == 0 && stun == 0 && nHealth > 0) { gotoAndStop('attack' + form); nWait = Math.ceil(Math.random() * 5) + 10 + waitadd; nAttackWait = Math.ceil(Math.random() * 10) + 10; } else { if (_root.specHitTest(300 * nFacing, 5, _root.redbaron, this) && nAttackWait == 0 && stun == 0 && nHealth > 0 && form == 'small') { gotoAndStop('attack2' + form); nSlide = nFacing * 25; nWait = Math.ceil(Math.random() * 5) + 10 + waitadd; nAttackWait = Math.ceil(Math.random() * 10) + 10; } } } if (nWait > 0) { bMoveable = false; nWait -= 1; } else { bMoveable = true; } if (nAttackWait > 0) { nAttackWait -= 1; } if (defthrow > 0) { defthrow -= 1; } } if (bombs > 25) { bombs -= 5; } if (form == 'spider' && nHealth > 0) { if (bombs <= 25) { bombs -= 1; if (bombs % 5 == 0) { _root.coins += 1; _root.attachMovie('bombz', 'Coin' + _root.coins, _root.getNextHighestDepth()); if (_root.redbaron._x > _x) { _root['Coin' + _root.coins].dir = 1; } else { _root['Coin' + _root.coins].dir = -1; } _root['Coin' + _root.coins].objectz = _root.coins; _root['Coin' + _root.coins].pulse = true; _root['Coin' + _root.coins]._yscale = 80; _root['Coin' + _root.coins]._xscale = 80; _root['Coin' + _root.coins]._x = _x; _root['Coin' + _root.coins]._y = _y - 10; } if (bombs <= 0) { bombs = 1000; } } } if (nHealth <= 0 && form == 'spider' || nHealth <= 200 && form == 'small' || nHealth <= 400 && form == 'man') { this.gotoAndStop('dead' + form); bDead = true; } } } }; } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } } movieClip 309 { } movieClip 310 { } movieClip 316 { } movieClip 323 { } movieClip 333 { frame 26 { gotoAndPlay(9); } } movieClip 341 { frame 19 { gotoAndPlay(1); } frame 20 { gotoAndPlay(1); } } movieClip 342 { } movieClip 352 { } movieClip 368 { } movieClip 369 { frame 8 { if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 25 { _parent.gotoAndStop('idle'); } } movieClip 374 { } movieClip 384 { frame 15 { stop(); } } movieClip 390 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 18 { _parent.gotoAndStop('idle'); } } movieClip 410 { frame 35 { stop(); } } movieClip 418 { frame 30 { stop(); } } movieClip 419 { frame 36 { stop(); } } movieClip 420 { frame 4 { ++_root.kills; } frame 19 { stop(); _parent.removeMovieClip(); } } movieClip 421 robosaur { frame 1 { ramp = 0; onEnterFrame = function () { _root.landCheck(this, 0.5); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (ramp > 0) { if (bRightHit && nSlide > 0 || bLeftHit && nSlide < 0) { ramp = 0; nSlide = 0; } nSlide = nFacing * 20; this.gotoAndStop('walk'); robo.leg.gotoAndPlay(robo.leg._currentframe + 1); nMoveSpeed = 10; ramp -= 1; if (_root.specHitTest(100 * nFacing, 10, _root.redbaron, this) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != nFacing) { if (_root.lockkeys == 0) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } else { nMoveSpeed = 5; } if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); robo.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 25; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 20; nAttackWait = Math.ceil(Math.random() * 20) + 20; } else { if (_root.specHitTest(500 * nFacing, 40, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0 && blast == 0) { nWait = 70; nAttackWait = Math.ceil(Math.random() * 20) + 80; ramp = 30; blast = 200; } } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } } movieClip 438 smoke { frame 1 { _x = _root.redbaron._x; _y = _root.redbaron._y + 10; smoke = _root.smokes; _root.depthCreator(this, this._y + 10); this.onEnterFrame = function () { _x = _x - _root.redbaron.nFacing * 20; }; } frame 19 { this.removeMovieClip(); } } movieClip 457 { } movieClip 544 { frame 1 { _parent.nWait = 9; } frame 40 { _parent.nWait = 6; } } movieClip 567 { frame 18 { _root.camshake = 20; if (_root.specHitTest(300 * _parent.nFacing, 30, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.redbaron.nShake = 3; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; _root.redbaron.nSlide = _parent.nFacing * 25; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide = _parent.nFacing * 25; _root.health -= 8; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 33 { _parent.gotoAndStop('idle'); } } movieClip 574 { frame 18 { stop(); } } movieClip 585 wallchip { frame 16 { this.removeMovieClip(); stop(); } } movieClip 592 { frame 18 { stop(); } } movieClip 593 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 16 { _parent.gotoAndStop('idle'); } } movieClip 594 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } frame 35 { ++_root.kills; _root.golemdead = true; } frame 45 { stop(); _parent.removeMovieClip(); } frame 45 { stop(); } } movieClip 595 golem { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.5); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0 && _currentframe <= 4 && nWait < 10) { this.gotoAndStop('death1'); bDead = true; } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.2; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 1; } else { addz = 0; } gotoAndStop('hit'); _root.Hit(); golem.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() + 1) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 5) + 5; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(300 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 60; nAttackWait = Math.ceil(Math.random() * 10) + 70; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 616 { } movieClip 622 { } movieClip 630 { } movieClip 631 { frame 21 { this.gotoAndPlay(2); } } movieClip 632 { } movieClip 635 { frame 10 { if (_root.specHitTest(160 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 19 { _parent.gotoAndStop('idle'); } } movieClip 640 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 8 { _parent.gotoAndStop('idle'); } } movieClip 660 { frame 20 { stop(); } } movieClip 661 { frame 3 { ++_root.kills; } frame 25 { stop(); _parent.removeMovieClip(); } } movieClip 662 { frame 6 { _parent.gotoAndStop('idle'); } } movieClip 663 raidon { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.7); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.round(Math.random() * 8) != 1) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); nek.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 20; } else { this.gotoAndStop('block'); _root.attackLevel = 0; nWait = 10; bMoveable = false; _root.redbaron.nSlide = -10 * _root.redbaron.nFacing; _root.sparks(this); } } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 10; nAttackWait = Math.ceil(Math.random() * 20) + 10; } else { if (_root.specHitTest(260 * nFacing, 40, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0 && blast == 0) { gotoAndStop('blast'); nWait = Math.ceil(Math.random() * 20) + 35; nAttackWait = Math.ceil(Math.random() * 20) + 50; blast = 200; } } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 666 { } movieClip 668 { } movieClip 674 { } movieClip 676 { } movieClip 678 { } movieClip 680 { } movieClip 682 { } movieClip 684 { } movieClip 686 { } movieClip 687 { } movieClip 698 { } movieClip 705 { frame 10 { _root.attachMovie('nightwep', 'blackhoodblast' + _root.blackhoodblast, _root.getNextHighestDepth()); sender = _root['blackhoodblast' + _root.blackhoodblast]; sender._x = _parent._x + _parent.nFacing * 60; sender._y = _parent._y - 100; sender.dir = _parent.nFacing; if (_root.blackhoodblast < 10) { _root.blackhoodblast += 1; } else { _root.blackhoodblast = 1; } } frame 20 { _root.attachMovie('nightwep', 'blackhoodblast' + _root.blackhoodblast, _root.getNextHighestDepth()); sender = _root['blackhoodblast' + _root.blackhoodblast]; sender._x = _parent._x + _parent.nFacing * 60; sender._y = _parent._y - 100; sender.dir = _parent.nFacing; if (_root.blackhoodblast < 10) { _root.blackhoodblast += 1; } else { _root.blackhoodblast = 1; } } frame 24 { _parent.gotoAndStop('idle'); } } movieClip 706 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 12 { _parent.gotoAndStop('idle'); } } movieClip 707 { frame 4 { ++_root.kills; } frame 30 { stop(); _parent.removeMovieClip(); } } movieClip 708 nightling { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); skullz.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 25; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(400 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 50; nAttackWait = Math.ceil(Math.random() * 20) + 70; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 710 { } movieClip 711 nightwep { frame 1 { spd = 20; yadd = 0; onEnterFrame = function () { weapon._rotation += dir * 45; weapon._y -= yadd; _x = _x + dir * spd; if (_root.specHitTest(1, 15, _root.redbaron, this, 100, 80) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != dir) { if (_root.lockkeys == 0) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; spd += 10; _root.sparks(_root.redbaron); _root.blockbar -= 5; yadd = 10; dir *= -1; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 1; this.removeMovieClip(); } } if (_x < _root.lefthit || _x > _root.righthit) { this.removeMovieClip(); } }; } } movieClip 718 { } movieClip 730 { frame 25 { gotoAndPlay(2); } } movieClip 757 { frame 1 { atk = false; } frame 10 { onEnterFrame = function () { if (!atk) { if (_root.specHitTest(_currentframe * 10 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 2; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } atk = true; } } }; } frame 25 { _parent.gotoAndStop('idle'); } } movieClip 766 { } movieClip 776 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 17 { _parent.gotoAndStop('idle'); } } movieClip 808 { frame 6 { ++_root.kills; } frame 24 { stop(); _parent.removeMovieClip(); } } movieClip 809 jayman { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 4; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); jay.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 20; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(180 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 15) + 10; nAttackWait = Math.ceil(Math.random() * 30) + 20; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } } } }; } frame 1 { stop(); } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 814 { } movieClip 825 { } movieClip 856 { frame 13 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _root.health -= 3; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } else { _parent.gotoAndStop('idle'); } } } frame 43 { _parent.gotoAndStop('idle'); } } movieClip 865 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 12 { _parent.gotoAndStop('idle'); } } movieClip 892 { frame 7 { ++_root.kills; } frame 38 { stop(); _parent.removeMovieClip(); } } movieClip 893 nekrodin { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.6); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); nek.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 25; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 20; nAttackWait = Math.ceil(Math.random() * 20) + 20; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 904 { } movieClip 910 { frame 10 { if (Math.round(Math.random() * 20) == 1) { _root.playSoundEffect('growl'); } } } movieClip 945 { frame 14 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 3; } } } frame 15 { _root.playSoundEffect('growl'); } frame 23 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 3; } } } frame 30 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 3; } } } frame 32 { _root.playSoundEffect('dg_lunge'); } frame 40 { _root.playSoundEffect('dg_lunge'); } frame 45 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 3; } } } frame 57 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; _root.redbaron.nSlide += _parent.nFacing * 3; } } } frame 61 { _parent.gotoAndStop('idle'); } } movieClip 953 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); if (Math.round(Math.random() * 6) == 1) { _root.playSoundEffect('dg_die'); } xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 9 { _parent.gotoAndStop('idle'); } } movieClip 969 { frame 34 { stop(); _parent.removeMovieClip(); } } movieClip 970 pitbull { frame 1 { onEnterFrame = function () { if (reachedfence || _root.darksaber == undefined) { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (_root.darksaber.bDead && _root.darksaber != undefined) { this.gotoAndStop('death1'); bDead = true; nHealth = 0; } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 5; _root.Hit(); nek.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 25; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 20; nAttackWait = Math.ceil(Math.random() * 20) + 20; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } } } } else { _root.scaleChar(this); this.swapDepths(identifier); this.gotoAndStop(2); if (_x < 8100) { _x = _x + nMoveSpeed; _xscale = nScaleTime * 2; _yscale = nScaleTime * 2; } else { _x = _x - nMoveSpeed; _xscale = nScaleTime * -2; _yscale = nScaleTime * 2; } if (Math.abs(8100 - _x) < 10) { gotoAndStop(1); reachedfence = true; } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1036 { } movieClip 1043 { } movieClip 1055 { } movieClip 1061 { } movieClip 1105 { } movieClip 1107 { } movieClip 1164 { } movieClip 1182 { frame 18 { gotoAndPlay(5); } } movieClip 1267 { frame 1 { cont = false; if (_parent.nHealth > 150) { gotoAndPlay(35); } } frame 2 { _parent.nSlide += 10 * _parent.nFacing; _root.playSoundEffect('clawswing'); } frame 14 { if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 10 * _parent.nFacing; _root.health -= 2; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 21 { if (cont) { cont = false; } else { _parent.gotoAndStop('idle'); } _root.playSoundEffect('clawswing'); } frame 30 { _parent.nSlide += 9 * _parent.nFacing; if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 9 * _parent.nFacing; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 33 { if (cont) { cont = false; } else { _parent.gotoAndStop('idle'); } } frame 36 { _root.playSoundEffect('clawswing'); } frame 40 { _parent.nSlide += 4 * _parent.nFacing; if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 5 * _parent.nFacing; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 43 { if (cont) { cont = false; } else { _parent.gotoAndStop('idle'); } _root.playSoundEffect('clawswing'); } frame 46 { _parent.nSlide += 9 * _parent.nFacing; if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 9 * _parent.nFacing; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 51 { if (cont) { cont = false; } else { _parent.gotoAndStop('idle'); } _root.playSoundEffect('clawswing'); } frame 60 { _parent.nSlide += 9 * _parent.nFacing; if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 9 * _parent.nFacing; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 67 { if (cont) { cont = false; } else { _parent.gotoAndStop('idle'); } _root.playSoundEffect('clawswing'); } frame 70 { _parent.nSlide += 9 * _parent.nFacing; if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('clawhit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _parent.nSlide = -5 * _parent.nFacing; cont = true; _root.sparks(_root.redbaron); _root.blockbar -= 10; _parent.nSlide += -5 * _parent.nFacing; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide += 9 * _parent.nFacing; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; cont = true; } } } frame 79 { _parent.gotoAndStop('idle'); } } movieClip 1283 { } movieClip 1287 { frame 5 { _root.playSoundEffect('saberhowl'); } frame 13 { _root.createPitbull(1); _root.createPitbull(-1); } frame 31 { _parent.gotoAndStop(1); } } movieClip 1329 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; i = Math.ceil(Math.random() * 2.9 + 0.1); if (i == 1) { _root.playSoundEffect('saberyelp1'); } else { if (i == 2) { _root.playSoundEffect('saberyelp2'); } else { _root.playSoundEffect('saberyelp3'); } } onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; if (Math.round(Math.random()) == 1) { gotoAndPlay(15); } } frame 14 { _parent.gotoAndStop('idle'); } frame 26 { _parent.gotoAndStop('idle'); } } movieClip 1339 { } movieClip 1342 { } movieClip 1345 { } movieClip 1348 { } movieClip 1351 { } movieClip 1354 { } movieClip 1357 { } movieClip 1360 { } movieClip 1385 { frame 1 { if (_x < _root.redbaron._x) { _parent.nSlide = -10; _root.redbaron.nSlide = 10; } else { _parent.nSlide = 10; _root.redbaron.nSlide = -10; } i = 1; while (i <= 30) { _root.Coin(); ++i; } } frame 7 { ++_root.kills; } frame 95 { stop(); starter = 1; onEnterFrame = function () { starter += 1; if (starter > 80 && starter < 82) { if (_root.level == 3) { _root.crTime = getTimer(); if (_root.bonusEnabled) { _root.Coin1.removeMovieClip(); _root.attachMovie('bonusCoin', 'Coin1', _root.getNextHighestDepth()); } else { _root.fadeInn(); } } else { _parent.removeMovieClip(); } } }; } } movieClip 1386 darksaber { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.5); _root.scaleChar(this); if (_currentframe != 4) { _root.depthCreator(this, _y); } else { _root.depthCreator(this, _y + 15); } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } if (_root.attackLevel > 0 && _root.lockkeys == 0) { lAttack = _root.attackLevel; } psli = 1; if (nSlide >= -30 == false) { nSlide = 0; } if (!howler) { if (_name == 'darksaber') { if (_x < (_root.righthit + _root.lefthit) / 2) { _root.hen._x = _root.righthit - 100; } else { _root.hen._x = _root.lefthit + 100; } } else { _root.hen._x = _root.lefthit + Math.random() * (_root.righthit - _root.lefthit); } _root.hen._y = _root.uphit + Math.random() * (_root.downhit - _root.uphit); } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && _currentframe != 5) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } this.gotoAndStop('hit'); deadvar = 30; _root.Hit(); nek.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * _root.redbaron.nFacing; if (_root.lockkeys == 0 && _root.weapon != 3) { nHealth -= _root.attackLevel / 2; } else { if (_root.lockkeys == 0 && _root.weapon == 3) { nHealth -= _root.attackLevel / 3; } else { nHealth -= 2; } } nWait = Math.ceil(Math.random() * 5) + 10; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; if (!howler) { baron = _root.redbaron; } else { baron = _root.hen; } nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 4 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x && baron != _root.hen) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x && baron != _root.hen) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x && baron != _root.hen) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x && baron != _root.hen) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { if (nMoveSpeed > 10) { gotoAndStop('run'); } else { gotoAndStop('walk'); } } } if (_root.specHitTest((145 + addd) * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 3) + 10; nAttackWait = Math.ceil(Math.random() * 5) + 25; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } } if (nHealth <= 0) { this.gotoAndStop('death1'); bDead = true; } } } if (!howler) { if (nHealth < 150) { nMoveSpeed = 17; nVerticleSpeed = 4; addd = 70; xway = 20; } else { xway = 40; addd = 0; nMoveSpeed = 4; nVerticleSpeed = 3; } } else { nMoveSpeed = 12; xway = 10; } if (lAttack > 6 && howlwait == 0 && _currentframe == 6 && _root.lockkeys == 0) { howler = true; baron = _root.hen; lAttack = 0; nWait = 0; nAttackWait = 900; } if (howler && Math.abs(_root.hen._x - _x) < 100) { this.gotoAndStop('howl'); nWait = 40; nAttackWait = 50; howlwait = 150; howler = false; } if (howlwait > 130 && nHealth > 0) { this.gotoAndStop('howl'); } if (howlwait == undefined) { howlwait = 0; } else { if (howlwait > 0) { howlwait -= 1; } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 1389 { } movieClip 1394 { } movieClip 1398 { } movieClip 1399 { } movieClip 1480 { } movieClip 1495 { } movieClip 1502 { frame 9 { if (_root.specHitTest(210 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 27 { _parent.gotoAndStop('idle'); } } movieClip 1505 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 9 { _parent.gotoAndStop('idle'); } } movieClip 1540 { frame 7 { ++_root.kills; } frame 15 { stop(); _parent.removeMovieClip(); } } movieClip 1541 skullz { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.6); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 4; _root.comboText(0, twall._x - 100, _y - 150); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); skullz.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 25; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 20; nAttackWait = Math.ceil(Math.random() * 20) + 20; } else { if (_root.specHitTest(260 * nFacing, 40, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0 && blast == 0) { gotoAndStop('blast'); nWait = Math.ceil(Math.random() * 20) + 35; nAttackWait = Math.ceil(Math.random() * 20) + 50; blast = 200; } } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1549 { } movieClip 1560 { frame 19 { gotoAndPlay(3); } } movieClip 1567 { frame 9 { if (_root.specHitTest(150 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { --_root.health; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 11 { _parent.gotoAndStop('idle'); } } movieClip 1577 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 13 { _parent.gotoAndStop('idle'); } } movieClip 1595 { frame 6 { ++_root.kills; } frame 17 { stop(); _parent.removeMovieClip(); } } movieClip 1596 peevo { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.7); _root.scaleChar(this); _root.depthCreator(this, _y); if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 4; } else { addz = 0; } gotoAndStop('hit'); _root.Hit(); peevo.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 20) + 30; deadvar = 30; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(130 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 15) + 20; nAttackWait = Math.ceil(Math.random() * 30) + 30; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1601 { } movieClip 1602 blackhoodblast { frame 1 { k = false; onEnterFrame = function () { _root.depthCreator(this, _y - 3); if (_root.specHitTest(60, 30, _root.redbaron, this, 0, 30) && !k && _currentframe > 29 && _currentframe < 45 && _root.lockkeys == 0) { _root.health -= 4; _root.redbaron.gotoAndStop('hit'); _root.redbaron.nSlide = -15 * _root.redbaron.nFacing; k = true; } }; } frame 57 { this.removeMovieClip(); } } movieClip 1610 { } movieClip 1627 { } movieClip 1646 { frame 14 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 3; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 30 { _parent.gotoAndStop('idle'); } } movieClip 1654 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 9 { _parent.gotoAndStop('idle'); } } movieClip 1666 { frame 6 { ++_root.kills; } frame 31 { stop(); _parent.removeMovieClip(); } } movieClip 1692 { frame 9 { _root.attachMovie('blackhoodblast', 'blackhoodblast' + _root.blackhoodblast, _root.getNextHighestDepth()); sender = _root['blackhoodblast' + _root.blackhoodblast]; sender._x = _parent._x + _parent.nFacing * 50; sender._y = _parent._y; sender._yscale = 400; if (_root.blackhoodblast < 10) { _root.blackhoodblast += 1; } else { _root.blackhoodblast = 1; } } frame 25 { _parent.gotoAndStop('idle'); } } movieClip 1693 blackhood { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.7); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); ghost.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 20; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(190 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 10; nAttackWait = Math.ceil(Math.random() * 20) + 10; } else { if (_root.specHitTest(260 * nFacing, 40, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0 && blast == 0) { gotoAndStop('blast'); nWait = Math.ceil(Math.random() * 20) + 35; nAttackWait = Math.ceil(Math.random() * 20) + 50; blast = 200; } } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if (blast > 0) { blast -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 1721 { frame 28 { _parent._parent.removeMovieClip(); } } movieClip 1722 { } movieClip 1723 impactspark3 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 27) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 1733 { frame 15 { _parent._parent.removeMovieClip(); } } movieClip 1734 { } movieClip 1735 impactspark2 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 14) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 1748 newText { } movieClip 1756 mailbox { frame 1 { stop(); _xscale = 70; _yscale = 70; this.onEnterFrame = function () { _root.depthCreator(this, _y); if (_x >= _root.redbaron._x - 800) { } else { _root.floorpiece.floorpiece['Point' + objectz].x += 1900; } null; if (!(_currentframe == 1 && _root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 20, this, _root.redbaron) && _root.attackLevel > 0)) { } else { play(); } null; }; } frame 2 { _root.playSound('hit'); this.attachMovie('mailboxpapers', 'papers' + Math.abs(this.getNextHighestDepth()), Math.abs(this.getNextHighestDepth())); } } movieClip 1767 { } movieClip 1768 { } movieClip 1769 bombz { frame 1 { if (pulse) { stop(); coin._y = -150; speed = Math.random() * 15 + 10; xspeed = Math.random() * 20 + 10; nStartWidth = 50; str = 1; } onEnterFrame = function () { if (pulse) { _yscale = 80; _xscale = 80; _root.depthCreator(this, _y); if (_currentframe == 1) { str += 1; if (str > 100) { gotoAndPlay(16); } if (_x - 60 < _root.redbaron._x && _x + 60 > _root.redbaron._x && _y - 30 < _root.redbaron._y && _y + 30 > _root.redbaron._y && _root.lockkeys == 0) { if (!_root.bShielded) { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); } else { _root.blockless = false; } gotoAndPlay(16); } if (!(Math.abs(speed) < 1 && coin._y > -5)) { coin._y += speed; speed += 1; } if (xspeed > 0) { xspeed -= 0.6; } if (xspeed > 0) { _root.landCheck(this, 1, 5); if (bLeftHit && dir == -1 || bRightHit && dir == 1) { dir *= -1.2; _x = _x + dir * 25; } _x = _x + dir * xspeed; } if (Math.abs(speed) < 1 && coin._y > -5) { coin._y = 0; } if (coin._y > 0 && Math.abs(speed) > 1) { speed *= -0.6; coin._y -= 2; } } } }; } frame 21 { if (_root.specHitTest(1, 40, this, _root.redbaron, 0, 130) && pulse != true && _root.lockkeys == 0) { _root.health -= 5; _root.redbaron.gotoAndStop('hit'); } i = 0; while (i <= 30) { if (_root['basicenemy' + i] != undefined) { if (Math.abs(_root['basicenemy' + i]._x - _parent._x) < 400 && Math.abs(_root['basicenemy' + i]._y - _parent._y) < 250) { _root['basicenemy' + i].nHealth -= 15; _root['basicenemy' + i].nWait = 35; } } ++i; } _root.playSoundEffect('explode_sound'); } frame 50 { stop(); } } movieClip 1772 { frame 1 { stop(); this.swapDepths(1); this.onEnterFrame = function () { if (_root.specHitTest(1, 20, this, _root.redbaron, 0, 60) && _root.attackLevel > 0) { _root.playSoundEffect('sloppyeater'); if (_root.health + 25 <= 50) { _root.health += 25; } else { _root.health = 50; } this.removeMovieClip(); } }; } } movieClip 1796 crate { frame 1 { stop(); stick.removeMovieClip(); onEnterFrame = function () { _root.depthCreator(this, _y); if (_x < _root.lefthit) { if (_root.level == 1) { _root.floorpiece.floorpiece['Point' + objectz].x += 5000; } else { if (_root.level == 2) { _root.floorpiece.floorpiece['Point' + objectz].x += 1200; } else { if (_root.level == 3) { _root.floorpiece.floorpiece['Point' + objectz].x += 1800; } else { _root.floorpiece.floorpiece['Point' + objectz].x += 1000; } } } _root.floorpiece.floorpiece['Point' + objectz].y = Math.random() * 100 + 30; gotoAndStop(1); _xscale = Math.abs(_xscale); turkey.removeMovieClip(); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 20, this, _root.redbaron) && _root.attackLevel > 0 && _currentframe == 1) { if (_root.bombs > 0 && _root.legs > 0) { total = _root.bombs + _root.legs; if (Math.random() * total < _root.legs) { gotoAndPlay('legs'); _root.legs -= 1; } else { gotoAndPlay('bombs'); _root.bombs -= 1; } } else { if (_root.bombs > 0) { gotoAndPlay('bombs'); _root.bombs -= 1; } else { if (_root.legs > 0) { gotoAndPlay('legs'); _root.legs -= 1; } else { gotoAndPlay('bombs'); _root.bombs -= 1; } } } } }; } frame 2 { _root.Hit(); _xscale = _xscale * _root.redbaron.nFacing; } frame 19 { stop(); } frame 20 { _root.Hit(); } frame 37 { stop(); } } movieClip 1806 cone { frame 1 { stop(); onEnterFrame = function () { _root.depthCreator(this, _y); _x < _root.redbaron._x - 800 ? undefined : null; if (!(_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 20, this, _root.redbaron) && _root.attackLevel > 0 && _currentframe == 1)) { } else { play(); } null; }; } frame 2 { _root.Hit(); _xscale = _xscale * _root.redbaron.nFacing; } frame 21 { stop(); } } movieClip 1828 { frame 32 { stop(); } } movieClip 1852 turkey { frame 1 { stop(); this.swapDepths(1); onEnterFrame = function () { if (_root.specHitTest(1, 25, this, _root.redbaron, 0, 70) && _root.attackLevel > 0) { _root.health = 50; _root.playSoundEffect('sloppyeater'); this.removeMovieClip(); } }; } } movieClip 1853 garbagecan { frame 1 { stop(); onEnterFrame = function () { _root.depthCreator(this, _y); if (_x >= _root.lefthit) { } else { _root.floorpiece.floorpiece['Point' + objectz].x += 3060; gotoAndStop(1); undefined; _xscale = Math.abs(_xscale); } null; if (!(_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 20, this, _root.redbaron) && _root.attackLevel > 0 && _currentframe == 1)) { } else { play(); } null; }; } frame 2 { _root.Hit(); _xscale = _xscale * _root.redbaron.nFacing; } frame 30 { stop(); } } movieClip 1867 { } movieClip 1881 { } movieClip 1887 { } movieClip 1890 { } movieClip 1908 { frame 1 { _root.Hit(); _root.playSoundEffect('chickkill'); } frame 7 { ++_root.kills; } frame 110 { _parent.removeMovieClip(); } } movieClip 1909 btt { frame 1 { onEnterFrame = function () { _root.scaleChar(this); _root.depthCreator(this, _y); if (!bDead && _root.baronwaittime == 0) { baron = _root.redbaron; _root.landCheck(this, 1.2); if (i < 0) { i = 35; } else { --i; } if (i < 30) { if (bRightHit && pathx > _x || bLeftHit && pathx < _x) { pathx = _x; } if (bUpHit && pathy < _y || bDownHit && pathy > _y) { pathy = _y; } if (_x < pathx - 5 && !bRightHit) { gotoAndStop(2); _x = _x + 5; nFacing = 1; } if (_x > pathx + 5 && !bLeftHit) { gotoAndStop(2); _x = _x - 5; nFacing = -1; } if (_y < pathy - 5 && !bDownHit) { gotoAndStop(2); _y = _y + 3; } if (_y > pathy + 5 && !bUpHit) { gotoAndStop(2); _y = _y - 3; } if (_y < _root.uphit) { _y = _root.uphit; pathy += Math.random() * 200; } if (_y > _root.downhit) { _y = _root.downhit; pathy -= Math.random() * 200; } if (!(_x < pathx - 5 && !bRightHit) && !(_x > pathx + 5 && !bLeftHit) && !(_y < pathy - 5 && !bDownHit) && !(_y > pathy + 5 && !bUpHit)) { gotoAndStop(1); } } else { gotoAndStop(3); pathx += Math.random() * 400 - 200; pathy += Math.random() * 300 - 150; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.5, 26, this, _root.redbaron) && _root.attackLevel > 0) { this.gotoAndStop(4); bDead = true; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; if (_currentframe == 3 && _root.specHitTest(150 * nFacing, 16, _root.redbaron, this) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != nFacing) { _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 2; } else { _root.health -= 0.5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } }; } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.bDead || _parent._currentframe != 4) { _visible = false; } else { _visible = true; } } } } movieClip 1929 { } movieClip 1930 { frame 41 { gotoAndPlay(2); } } movieClip 1933 { frame 18 { if (_root.specHitTest(150 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { --_root.health; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 27 { _parent.gotoAndStop('idle'); } } movieClip 1941 { frame 1 { xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } frame 24 { _parent.gotoAndStop('idle'); } } movieClip 1942 { frame 10 { ++_root.kills; } frame 29 { _parent.shadoww._visible = false; } frame 56 { stop(); _parent.removeMovieClip(); } } movieClip 1943 pygmy { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); pyg.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 20; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(150 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 15) + 10; nAttackWait = Math.ceil(Math.random() * 30) + 20; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1945 { } movieClip 1946 gitblt { frame 1 { spd = 25; yadd = 0; onEnterFrame = function () { blt._y -= yadd; _rotation = _rotation + dir * 15; _x = _x + dir * spd; if (_root.specHitTest(1, 15, _root.redbaron, this, 70, 60) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != dir) { if (_root.lockkeys == 0) { dir *= -1; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; spd += 10; _root.sparks(_root.redbaron); _root.blockbar -= 10; yadd = 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 3; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; this.removeMovieClip(); } } if (_x < _root.lefthit || _x > _root.righthit) { this.removeMovieClip(); } }; } } movieClip 1948 { } movieClip 1950 { } movieClip 1952 { } movieClip 1954 { } movieClip 1956 { } movieClip 1958 { } movieClip 1960 { } movieClip 1966 { } movieClip 1967 { } movieClip 1969 { } movieClip 1971 { } movieClip 1989 { } movieClip 1991 { } movieClip 1993 { } movieClip 1994 { } movieClip 1996 { } movieClip 1997 { frame 7 { if (_root.specHitTest(190 * _parent.nFacing, 15, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 15 { _parent.gotoAndStop('idle'); } } movieClip 2001 { } movieClip 2002 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 10 { _parent.gotoAndStop('idle'); } } movieClip 2009 { } movieClip 2017 { } movieClip 2019 { } movieClip 2020 { frame 6 { ++_root.kills; } frame 20 { stop(); _parent.removeMovieClip(); } } movieClip 2021 { } movieClip 2022 { } movieClip 2023 { } movieClip 2024 { } movieClip 2032 { frame 7 { _root.attachMovie('gitblt', 'blackhoodblast' + _root.blackhoodblast, _root.getNextHighestDepth()); sender = _root['blackhoodblast' + _root.blackhoodblast]; sender._x = _parent._x + _parent.nFacing * 60; sender._y = _parent._y - 70; sender.dir = _parent.nFacing; if (_root.blackhoodblast < 10) { _root.blackhoodblast += 1; } else { _root.blackhoodblast = 1; } } frame 16 { _parent.gotoAndStop('idle'); } } movieClip 2033 gitrobo { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.5); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { _y = _y + nGravity; if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing * 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && Math.round(Math.random() * 10) == 1 && nWait < 40 && nHealth > 0) { this.gotoAndStop('block'); _root.attackLevel = 0; nWait = 10; bMoveable = false; _root.redbaron.nSlide = -10 * _root.redbaron.nFacing; _root.rev = -1; _root.sparks(this); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && nWait < 999) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); ghost.gotoAndPlay(1); nSlide = Math.ceil(Math.random() * 3 + 5) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 20; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - 50) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - 50) { nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + 50) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + 50) { nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { nFacing = -1; } } if (!bUpHit && _y - 5 > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y + 5 < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(150 * nFacing, 5, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 5) + 10; nAttackWait = Math.ceil(Math.random() * 10) + 10; } if (_root.specHitTest(400 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && defthrow == 0 && nHealth > 0) { gotoAndStop('throw'); nWait = 20; nAttackWait = 30; defthrow = 100; } } if (nWait > 0) { bMoveable = false; nWait -= 1; } else { bMoveable = true; } if (nAttackWait > 0) { nAttackWait -= 1; } if (defthrow > 0) { defthrow -= 1; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { nSlide += 1; } } } } }; } frame 1 { stop(); _root.rev = 1; } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); _root.rev = 1; } frame 6 { stop(); } frame 7 { stop(); } } movieClip 2040 { } movieClip 2052 { frame 17 { gotoAndPlay(2); } } movieClip 2068 { frame 5 { if (_root.specHitTest(190 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 3; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 26 { _parent.gotoAndStop('idle'); } } movieClip 2088 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 20 { _parent.gotoAndStop('idle'); } } movieClip 2113 { frame 27 { stop(); } } movieClip 2119 { frame 4 { ++_root.kills; } frame 40 { stop(); _parent.removeMovieClip(); } } movieClip 2120 roboknight { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); knight.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 15; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(150 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 10; nAttackWait = Math.ceil(Math.random() * 20) + 10; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2140 spark3 { frame 1 { _rotation = _rotation + (Math.random() * 30 - 15); _xscale = 80; _yscale = _xscale; _xscale = _xscale * switcher; _x = _x + switcher * 100; i = 1; this.onEnterFrame = function () { _root.depthCreator(this, _y + 85); i += 1; if (i >= 19) { this.removeMovieClip(); } }; } frame 19 { this.removeMovieClip(); } } movieClip 2162 { } movieClip 2171 { frame 24 { gotoAndPlay(2); } } movieClip 2175 { } movieClip 2178 { } movieClip 2184 { } movieClip 2191 { } movieClip 2198 { } movieClip 2199 { frame 2 { _parent.nSlide = _parent.nFacing * 8; _root.playSoundEffect('sytheswing'); } frame 8 { if (_root.specHitTest(250 * _parent.nFacing, 25, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('sythehit1'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -20 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 20; _root.blockless = false; } else { _parent.gotoAndStop('idle'); } } else { _root.redbaron.nSlide = -10 * _parent.nFacing; _root.health -= 2; if (_root.health > 0) { _root.redbaron.gotoAndStop('hit'); } _root.baronwaittime = 3; } } } frame 24 { atk1 = false; _parent.nSlide = _parent.nFacing * 6; _root.playSoundEffect('sytheswing'); } frame 27 { if (_root.specHitTest(250 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { _root.playSoundEffect('sythehit'); if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -20 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; _root.blockless = false; } else { _parent.gotoAndStop('idle'); } } else { atk1 = true; _root.health -= 2; if (_root.health > 0) { _root.redbaron.gotoAndStop('hit'); } _root.baronwaittime = 3; _root.rev = _parent.nFacing * _root.redbaron.nFacing; _root.redbaron.nSlide = 6 * _parent.nFacing; } } } frame 32 { if (atk1 && _root.health > 0) { this.gotoAndPlay(24); } } frame 33 { _parent.gotoAndStop('idle'); } } movieClip 2207 { frame 1 { _root.Hit(); _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); _root.bloodSplatter(_parent); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 13 { _parent.gotoAndStop('idle'); } } movieClip 2223 { } movieClip 2239 { frame 1 { if (_x < _root.redbaron._x) { _parent.nSlide = -20; _root.redbaron.nSlide = 20; } else { _parent.nSlide = 20; _root.redbaron.nSlide = -20; } i = 1; while (i <= 30) { _root.Coin(); ++i; } } frame 59 { stop(); starter = 1; onEnterFrame = function () { starter += 1; if (starter > 80 && starter < 82) { if (_root.level == 2) { _root.crTime = getTimer(); if (_root.bonusEnabled) { _root.Coin1.removeMovieClip(); _root.attachMovie('bonusCoin', 'Coin1', _root.getNextHighestDepth()); } else { _root.fadeInn(); } } else { ++_root.kills; _parent.removeMovieClip(); } } }; } } movieClip 2244 { frame 1 { _root.bAttacking = false; _root.rev = -1; _parent.nFacing = -_root.redbaron.nFacing; } frame 19 { _root.rev = -1; _parent.gotoAndStop('attack'); _parent.nWait = Math.ceil(Math.random() * 20) + 20; _parent.nAttackWait = Math.ceil(Math.random() * 20) + 30; } } movieClip 2267 { } movieClip 2277 { frame 9 { _root.attachMovie('sythe', 'sythe' + _parent._name, _root.getNextHighestDepth()); sythe = _root['sythe' + _parent._name]; sythe.dir = _parent.nFacing; sythe._x = _parent._x + _parent.nFacing * 80; sythe._y = _parent._y - 70; sythe.defector = _parent; sythe.speed = 20; sythe.tlt = _parent; sythe.nStartWidth = sythe._width; stop(); } } movieClip 2283 { } movieClip 2284 defector { frame 1 { onEnterFrame = function () { _root.landCheck(this, 1.2); _root.scaleChar(this); _root.depthCreator(this, _y); if (!bRightHit && nSlide > 0) { _x = _x + nSlide; } if (!bLeftHit && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { nSlide += 1; } if (!_root.dead) { if (stun > 0) { --stun; } if (_root.baronwaittime == 0) { if (bDead != true) { if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (health < 60) { blocklevel = 1; } else { if (health < 150) { blocklevel = 2; } } if (_root.specHitTest(_root.range * _root.redbaron.nFacing * 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && Math.round(Math.random() * (blocklevel * 1.5)) == 1 && nWait < 40 && stun == 0 && nHealth > 0) { this.gotoAndStop('block'); _root.attackLevel = 0; nWait = 10; bMoveable = false; _root.redbaron.nSlide = -10 * _root.redbaron.nFacing; _root.rev = -1; _root.sparks(this); } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && nWait < 999) { _root.rev = 1; gotoAndStop('hit'); ghost.gotoAndPlay(1); nSlide = Math.ceil(Math.random() * 3 + 5) * baron.nFacing; if (stun > 0) { nHealth -= _root.attackLevel; } else { nHealth -= _root.attackLevel / 3; nWait = Math.ceil(Math.random() * 10) + 5; } } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0 && (stun > 0 || _currentframe == 8)) { nSlide = Math.ceil(Math.random() * 3 + 5) * baron.nFacing; nHealth -= _root.attackLevel / 3; _root.redbaron._y - 80; if (stun > 0) { gotoAndStop('hit'); } else { _root.Hit(); _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); _root.bloodSplatter(this); } } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3) { if (!bLeftHit) { if (_x > baron._x - 50) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - 50) { nFacing = -1; } if (_x < baron._x && _x + 150 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + 50) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + 50) { nFacing = 1; } if (_x > baron._x && _x - 150 < baron._x) { nFacing = -1; } } if (!bUpHit && _y - 5 > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y + 5 < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(200 * nFacing, 5, _root.redbaron, this) && nAttackWait == 0 && stun == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 5) + 10 * blocklevel; nAttackWait = Math.ceil(Math.random() * 10) + 10 * blocklevel; } if (_root.specHitTest(600 * nFacing, 5, _root.redbaron, this) && nAttackWait == 0 && defthrow == 0 && stun == 0 && nHealth > 0) { gotoAndStop('throw'); nWait = 99999; nAttackWait = 99999; defthrow = 200; } } if (nWait > 0) { bMoveable = false; nWait -= 1; } else { bMoveable = true; } if (nAttackWait > 0) { nAttackWait -= 1; } if (defthrow > 0) { defthrow -= 1; } if (stun > 0 && _currentframe != 4) { gotoAndStop('dizzy'); } } if (nHealth <= 0 && _currentframe == 1) { this.gotoAndStop('death1'); bDead = true; } } } }; } frame 1 { stop(); _root.rev = 1; } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); _root.rev = 1; } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 2287 { } movieClip 2290 { } movieClip 2294 { } movieClip 2295 sythe { frame 1 { onEnterFrame = function () { nFacing = dir; _x = _x + dir * speed; _root.scaleChar(this); _root.landCheck(this, 0.4, 70); _root.depthCreator(this, _y + 85); if (bRightHit && dir == 1 || bLeftHit && dir == -1) { twall.shake = 10; dir *= -1; } if (_root.specHitTest(1, 30, _root.redbaron, this, 79, 100) && !l && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != nFacing) { _root.blockless = false; _root.blockbar -= 30; _root.ssx = _root.redbaron._x; _root.redbaron.nShake = 7; _root.sparks(_root.redbaron); speed = 40; } else { _root.health -= 5; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } dir *= -1; _x = _x + dir * 60; l = true; } if (_root.specHitTest(70, 500, tlt, this, 70)) { if (speed == 20) { defector.nWait = 10; defector.nAttackWait = 15; defector.gotoAndStop('idle'); } else { defector.nWait = 120; defector.nAttackWait = 140; defector.stun = 120; defector.nHealth -= 8; defector.gotoAndStop('hit'); } this.removeMovieClip(); } }; } } movieClip 2305 { } movieClip 2327 { } movieClip 2338 { frame 9 { stop(); } } movieClip 2358 { frame 7 { if (_root.specHitTest(250 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 2; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } } frame 13 { _parent.gotoAndStop('idle'); } } movieClip 2396 { frame 1 { xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 1 { _root.Hit(); _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } frame 21 { _parent.gotoAndStop('idle'); } } movieClip 2426 { frame 27 { stop(); } } movieClip 2434 { frame 6 { ++_root.kills; } frame 37 { stop(); _parent.removeMovieClip(); } } movieClip 2453 { frame 7 { ++_root.kills; } frame 14 { stop(); _parent.removeMovieClip(); } } movieClip 2454 snakebot { frame 1 { onEnterFrame = function () { _root.landCheck(this, 1); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death' + Math.ceil(Math.random() * 1.9)); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (!bDead) { if (bRh && nSlide > 0) { nSlide = -14; twall.shake = 10; twall.health -= 5; _root.comboText(0, twall._x - 100, _y - 150); } if (bLh && nSlide < 0) { nSlide = 14; twall.shake = 10; twall.health -= 5; _root.comboText(0, twall._x - 100, _y - 150); } if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 130 && nHealth > 0) { addz = 8; } else { addz = 0; } this.gotoAndStop('hit'); deadvar = 30; this.snake.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 20) + 20; } _xscale = nFacing * nScaleTime * 2.8; _yscale = nScaleTime * 2.8; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - 250) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + 300 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - 150) { nFacing = -1; } if (_x < baron._x && _x + 300 > baron._x) { nFacing = 1; } } if (bRightHit == false) { if (_x < baron._x + 250) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - 300 < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + 150) { nFacing = 1; } if (_x > baron._x && _x - 300 < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(350 * nFacing, 15, _root.redbaron, this) && nAttackWait == 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 30) + 20; nAttackWait = Math.ceil(Math.random() * 40) + 40; nSlide = 20 * nFacing; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 2457 { frame 1 { _root.playSoundEffect('wallrise'); } frame 20 { _parent.play(); } } movieClip 2469 { frame 20 { stop(); } } movieClip 2470 dwall { frame 1 { onEnterFrame = function () { if (health > 0) { if (des && _root.specHitTest(_root.range * _root.redbaron.nFacing, 500, this, _root.redbaron) && _root.attackLevel > 0) { if (_root.lockkeys == 0) { health -= _root.attackLevel; } else { _root.redbaron._x += _root.redbaron.nFacing * -25; health -= 1; } shake = 5; _root.Hit(); _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } } else { gotoAndStop(8); } }; } frame 1 { stop(); ++_root.breakwalls; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); _root['brkwall' + num].removeMovieClip(); ++_root.breakwall; } } movieClip 2472 dwallfloor { frame 1 { _visible = false; } } movieClip 2473 deadwall { } movieClip 2481 { frame 8 { _parent.removeMovieClip(); } } movieClip 2482 impactspark { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 7) { this.removeMovieClip(); } }; stop(); starter = 1; } instance of movieClip 2481 { onClipEvent (load) { _y = _y + (Math.random() * 100 - 50); } } frame 2 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 7) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 2511 { } movieClip 2540 { } movieClip 2561 { frame 8 { if (_root.specHitTest(150 * _parent.nFacing, 10, _root.redbaron, _parent) && _root.lockkeys == 0) { if (_root.lockkeys == 0) { if (_root.bShielded == true && _root.redbaron.nFacing != _parent.nFacing) { _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 10; } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.baronwaittime = 3; } } else { _parent.gotoAndStop('idle'); } } } frame 19 { _parent.gotoAndStop('idle'); } } movieClip 2569 { frame 1 { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); xx = _x; onEnterFrame = function () { _x = xx; if (_currentframe < 6) { _x = _x + (Math.random() * 20 - 10); } }; } frame 11 { _parent.gotoAndStop('idle'); } } movieClip 2582 { frame 4 { ++_root.kills; } frame 11 { stop(); _parent.removeMovieClip(); } } movieClip 2583 samurai { frame 1 { onEnterFrame = function () { _root.landCheck(this, 0.8); _root.scaleChar(this); _root.depthCreator(this, _y); if (nHealth <= 0) { deadvar -= 1; if (_currentframe <= 4 && deadvar == 0) { this.gotoAndStop('death1'); bDead = true; } } if (!_root.dead) { if (_root.baronwaittime == 0) { if (bDead != true) { if (nHealth <= 0) { psli = 1.5; } else { psli = 1; } if (bRh && nSlide > 0) { nSlide = -10; twall.shake = 10; } if (bLh && nSlide < 0) { nSlide = 10; twall.shake = 10; } if (_root.specHitTest(_root.range * _root.redbaron.nFacing / 1.2, 26, this, _root.redbaron) && _root.attackLevel > 0) { if (Math.abs(_x - _root.redbaron._x) < 100 && nHealth > 0) { addz = 5; } else { addz = 0; } gotoAndStop('hit'); deadvar = 30; _root.Hit(); ghost.gotoAndPlay(1); nSlide = (Math.ceil(Math.random() * 3 + 5) + addz) * baron.nFacing * psli; nHealth -= _root.attackLevel; nWait = Math.ceil(Math.random() * 10) + 15; } _xscale = nFacing * nScaleTime * 2.2; _yscale = nScaleTime * 2.2; baron = _root.redbaron; nThisXx = Math.round(_x); nThisYy = Math.round(_y); if (bMoveable && _currentframe != 3 && nHealth > 0) { if (!bLeftHit) { if (_x > baron._x - xway) { _x = _x - nMoveSpeed; nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { _x = _x - nMoveSpeed; nFacing = 1; } } else { if (_x > baron._x - xway) { nFacing = -1; } if (_x < baron._x && _x + xway + 50 > baron._x) { nFacing = 1; } } if (!bRightHit) { if (_x < baron._x + xway) { _x = _x + nMoveSpeed; nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { _x = _x + nMoveSpeed; nFacing = -1; } } else { if (_x < baron._x + xway) { nFacing = 1; } if (_x > baron._x && _x - (xway + 50) < baron._x) { nFacing = -1; } } if (!bUpHit && _y - yway > baron._y) { _y = _y - nVerticleSpeed; } if (!bDownHit && _y - yway < baron._y) { _y = _y + nVerticleSpeed; } nThisX = Math.round(_x); nThisY = Math.round(_y); if (nSlide == 0) { if (nThisXx == nThisX && nThisYy == nThisY) { gotoAndStop('idle'); } else { gotoAndStop('walk'); } } if (_root.specHitTest(150 * nFacing, 10, _root.redbaron, this) && nAttackWait == 0 && nHealth > 0) { gotoAndStop('attack'); nWait = Math.ceil(Math.random() * 10) + 15; nAttackWait = Math.ceil(Math.random() * 20) + 15; } } if (nWait > 0) { bMoveable = false; --nWait; } else { bMoveable = true; } if (nAttackWait > 0) { --nAttackWait; } if ((!bRightHit || nHealth <= 0) && nSlide > 0) { _x = _x + nSlide; } if ((!bLeftHit || nHealth <= 0) && nSlide < 0) { _x = _x + nSlide; } if (nSlide > 0) { --nSlide; } if (nSlide < 0) { ++nSlide; } } } } }; } frame 1 { stop(); } instance of movieClip 310 { onClipEvent (enterFrame) { if (_parent.bDead) { _visible = false; } } } instance of movieClip 92 { onClipEvent (enterFrame) { if (_parent.nHealth <= 0) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2586 grass { frame 1 { _xscale = 40; _yscale = 40; _root.scaleChar(this); onEnterFrame = function () { _root.depthCreator(this, _y); if (_root.level != 3) { if (_x < _root.redbaron._x - 800) { _root.floorpiece.floorpiece['Point' + objectz].x += 1100 + Math.random() * 200 - 100; _root.grassCheck(); } } else { if (_x < _root.redbaron._x - 800) { _root.floorpiece.floorpiece['Point' + objectz].x += 1700 + Math.random() * 200 - 100; _root.grassCheck(); } } }; } } movieClip 2589 tree1 { frame 1 { _xscale = _xscale + (Math.random() * 30 - 15); _yscale = _xscale; this.cacheAsBitmap = true; onEnterFrame = function () { if (_x >= _root.redbaron._x - 950) { } else { _x = _x + (1450 + Math.random() * 300); _xscale = 100 + Math.random() * 30 - 15; _yscale = _xscale; } null; }; } } movieClip 2592 tree2 { frame 1 { _xscale = _xscale + (Math.random() * 30 - 15); _yscale = _xscale; this.cacheAsBitmap = true; onEnterFrame = function () { if (_x >= _root.redbaron._x - 950) { } else { _x = _x + (1450 + Math.random() * 300); _xscale = 100 + Math.random() * 30 - 15; _yscale = _xscale; } null; }; } } movieClip 2606 blood3 { frame 1 { _root.scaleChar(this); _xscale = _xscale * 1.5; _yscale = _xscale; _xscale = _xscale * switcher; _rotation = _rotation + (Math.random() * 60 - 30); this.onEnterFrame = function () { _root.depthCreator(this, _y + 170 - addon); }; } frame 19 { this.removeMovieClip(); } } movieClip 2640 mailboxpapers { frame 56 { this.removeMovieClip(); } } movieClip 2648 { frame 20 { stop(); } } movieClip 2649 { } movieClip 2650 impactspark4 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 28) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 2660 { } movieClip 2661 bonusCoin { frame 1 { _x = (_root.righthit + _root.lefthit) / 2; _y = (_root.uphit + _root.downhit) / 2 - 30; coin._y = -600; speed = 30; nStartWidth = 50; onEnterFrame = function () { if (_x - 70 < _root.redbaron._x && _x + 70 > _root.redbaron._x && _y - 20 < _root.redbaron._y && _y + 20 > _root.redbaron._y && speed < 1) { _root.playSoundEffect('coinsound'); _root.gotoAndStop('tankbonus'); } _root.depthCreator(this, _y); if (!(Math.abs(speed) < 1 && coin._y > -5)) { coin._y += speed; speed += 1; } if (Math.abs(speed) < 1 && coin._y > -5) { coin._y = 0; } if (coin._y > -15 && Math.abs(speed) > 1) { speed *= -0.6; coin._y -= 2; } }; } } movieClip 2672 { } movieClip 2673 { frame 1 { loop = Math.floor(Math.random() * 6 + 1); looper = 1; } frame 18 { looper += 1; if (loop > looper) { gotoAndPlay(2); } } frame 19 { stop(); } } movieClip 2675 coin1 { frame 1 { coin._y = -250; speed = Math.random() * 15 + 10; xspeed = Math.random() * 10 + 8; nStartWidth = 50; float = false; fader = 400; stop(); onEnterFrame = function () { if (!float) { fader -= 1; if (fader <= 0) { _alpha = _alpha - 20; if (_alpha <= 0) { this.removeMovieClip(); } } if (_x < _root.lefthit - 100) { this.removeMovieClip(); } if (_x - 70 < _root.redbaron._x && _x + 70 > _root.redbaron._x && _y - 20 < _root.redbaron._y && _y + 20 > _root.redbaron._y) { _root.playSoundEffect('coinsound'); _root.score += 1; float = true; } _root.depthCreator(this, _y); if (!(Math.abs(speed) < 1 && coin._y > -5)) { coin._y += speed; speed += 1; } if (xspeed > 0) { xspeed -= 0.6; } if (xspeed > 0) { _root.landCheck(this, 1, 5); if (bLeftHit && dir == -1 || bRightHit && dir == 1) { dir *= -1.8; _x = _x + dir * 25; } _x = _x + dir * xspeed; } if (Math.abs(speed) < 1 && coin._y > -5) { coin._y = 0; } if (coin._y > 0 && Math.abs(speed) > 1) { speed *= -0.6; coin._y -= 2; } } else { gotoAndStop(2); _x = _x + (_root.cam._x - (_root.cam._width / 2 - 90) - _x) / 4; _y = _y + (_root.cam._y - (_root.cam._height / 2 - 50) - _y) / 4; if (Math.abs(_root.cam._x - (_root.cam._width / 2 - 90) - _x + (_root.cam._y - (_root.cam._height / 2 - 50) - _y)) < 30) { this.removeMovieClip(); } } }; } } movieClip 2686 { frame 1 { loop = Math.floor(Math.random() * 6 + 1); looper = 1; } frame 17 { looper += 1; if (loop > looper) { gotoAndPlay(2); } } frame 18 { stop(); } } movieClip 2688 coin2 { frame 1 { coin._y = -250; speed = Math.random() * 15 + 10; xspeed = Math.random() * 10 + 8; nStartWidth = 50; float = false; fader = 400; stop(); onEnterFrame = function () { if (!float) { fader -= 1; if (fader <= 0) { _alpha = _alpha - 20; if (_alpha <= 0) { this.removeMovieClip(); } } if (_x < _root.lefthit - 100) { this.removeMovieClip(); } if (_x - 70 < _root.redbaron._x && _x + 70 > _root.redbaron._x && _y - 20 < _root.redbaron._y && _y + 20 > _root.redbaron._y) { _root.playSoundEffect('coinsound'); _root.score += 1; float = true; } _root.depthCreator(this, _y); if (!(Math.abs(speed) < 1 && coin._y > -5)) { coin._y += speed; speed += 1; } if (xspeed > 0) { xspeed -= 0.6; } if (xspeed > 0) { _root.landCheck(this, 1, 5); if (bLeftHit && dir == -1 || bRightHit && dir == 1) { dir *= -1.8; _x = _x + dir * 25; } _x = _x + dir * xspeed; } if (Math.abs(speed) < 1 && coin._y > -5) { coin._y = 0; } if (coin._y > 0 && Math.abs(speed) > 1) { speed *= -0.6; coin._y -= 2; } } else { gotoAndStop(2); _x = _x + (_root.cam._x - (_root.cam._width / 2 - 90) - _x) / 4; _y = _y + (_root.cam._y - (_root.cam._height / 2 - 50) - _y) / 4; if (Math.abs(_root.cam._x - (_root.cam._width / 2 - 90) - _x + (_root.cam._y - (_root.cam._height / 2 - 50) - _y)) < 30) { this.removeMovieClip(); } } }; } } movieClip 2692 { frame 1 { if (_parent._xscale < 0) { _xscale = _xscale * -1; } } } movieClip 2701 shielded { frame 1 { _root.playSoundEffect('shield_shatter'); _xscale = _xscale * -0.4; _yscale = 40; onEnterFrame = function () { _root.depthCreator(this, this._y + 100); }; } frame 30 { this.removeMovieClip(); } } movieClip 2719 { frame 18 { _parent.removeMovieClip(); stop(); } } movieClip 2720 impactspark5 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 18) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 2738 { frame 18 { _parent.removeMovieClip(); stop(); } } movieClip 2739 impactspark6 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 18) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 2757 { frame 18 { _parent.removeMovieClip(); stop(); } } movieClip 2758 impactspark7 { frame 1 { this.onEnterFrame = function () { _root.depthCreator(this, _y + 120); starter += 1; if (starter > 18) { this.removeMovieClip(); } }; stop(); starter = 1; } } movieClip 2768 { } movieClip 2769 { frame 1 { stop(); if (_parent._name == 'Object0') { gotoAndStop(2); } else { stop(); } } } movieClip 2771 stand { frame 1 { onEnterFrame = function () { _root.depthCreator(this, _y); if (_name == 'Object0') { if (_root.lb && _root.loneflaglb == undefined) { flag._visible = true; if (!_root.rb && Math.abs(_root.redbaron._x - _x) < 80 && Math.abs(_root.redbaron._y - _y) < 30) { _root.rb = true; _root.specweapon = 0; _root.captures += 1; } } else { flag._visible = false; } } else { if (_root.rb && _root.loneflagrb == undefined) { flag._visible = true; _root.cweapon = 4; if (Math.abs(_root.redbaron._x - _x) < 80 && Math.abs(_root.redbaron._y - _y) < 30) { _root.specweapon = 6; _root.cweapon = 1; _root.weapon = 1; _root.rb = false; } } else { flag._visible = false; } } }; if (_name == 'Object0') { _xscale = _xscale * -1; } } } movieClip 2773 completecoin { frame 1 { onEnterFrame = function () { _x = _x + (370 - _x) / 5; _y = _y + (80 - _y) / 5; if (Math.abs(_x - 370) < 30 && Math.abs(_y - 80) < 20) { _parent.groundsgold += val; _root.playSoundEffect('coinsound'); this.removeMovieClip(); } }; } } movieClip 2775 { } movieClip 2777 { } movieClip 2779 { } movieClip 2780 { } movieClip 2781 bumsketch { frame 1 { onEnterFrame = function () { _root.depthCreator(this, this._y - 5); }; } } movieClip 2792 { frame 10 { i = 1; while (i <= 50) { _root.Coin(); ++i; } } } movieClip 2793 tank { frame 1 { onEnterFrame = function () { tank.gotoAndStop(_currentframe); if (health > 0) { if (_root.specHitTest(_root.range * _root.redbaron.nFacing, 500, this, _root.redbaron) && _root.attackLevel > 0) { if (_root.lockkeys == 0) { health -= _root.attackLevel; } else { health -= 1; _root.redbaron._x += _root.redbaron.nFacing * -25; } shake = 5; attachMovie('tankrubble', 'tankrubble' + Math.round(health), Math.round(health) + 100); this['tankrubble' + Math.round(health)]._x = -110; this['tankrubble' + Math.round(health)]._y = 124; _root.Hit(); _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } } else { gotoAndStop(10); } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 2797 { } movieClip 2798 { frame 1 { stop(); if (_root.weapon == 4 && _parent._parent._name == 'redbaron') { gotoAndStop(2); } } } movieClip 2805 { } movieClip 2807 { } movieClip 2808 { frame 1 { if (_root.redbaron._currentframe == 4 || _root.redbaron._currentframe == 8 || _root.redbaron._currentframe == 3) { gotoAndStop(2); } else { stop(); } } } movieClip 2811 { } movieClip 2814 { } movieClip 2817 { } movieClip 2820 { frame 1 { if (_root.redbaron._currentframe == 4 || _root.redbaron._currentframe == 8 || _root.redbaron._currentframe == 3) { gotoAndStop(2); } else { stop(); } } } movieClip 2830 { } movieClip 2832 { } movieClip 2833 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 2834 { frame 1 { onEnterFrame = function () { gotoAndStop(_root.specweapon + 1); }; } } movieClip 2837 { } movieClip 2840 { frame 1 { stop(); if (_root.weapon == 4 && _parent._parent._name == 'redbaron') { gotoAndStop(3); } } } movieClip 2863 { } movieClip 2866 { frame 1 { onEnterFrame = function () { if (_root.weapon == 4 && _parent._parent._name == 'redbaron') { gotoAndStop(2); } else { gotoAndStop(1); } }; } } movieClip 2872 { frame 7 { _root.weapon < _root.cweapon ? _root.weapon++ : 1; _root.redbaron.combostarter = false; } frame 12 { _parent.gotoAndStop('idle'); } } movieClip 2890 { frame 22 { if (Math.round(Math.random() * 20) == 1 && _parent._name == 'redbaron') { _root.playSoundEffect('baron_breathe'); } } } movieClip 2893 { } movieClip 2896 { } movieClip 2899 { } movieClip 2905 { } movieClip 2912 { } movieClip 2915 { } movieClip 2918 { } movieClip 2921 { } movieClip 2924 { } movieClip 2960 { frame 1 { onEnterFrame = function () { if (_parent._name == 'redbaron') { if (_root.redbaron.nFacing == 1 && Key.isDown(_root.right)) { slide = true; } if (_root.redbaron.nFacing == -1 && Key.isDown(_root.left)) { slide = true; } if (Key.isDown(_root.up)) { upslide = true; downslide = false; } if (Key.isDown(_root.down)) { upslide = false; downslide = true; } } }; if (_parent._name == 'redbaron') { _root.looped = 0; } if (_parent._name == 'redbaron') { if (_root.weapon == 4) { if (_root.startoff == 1) { gotoAndPlay('claw'); } else { gotoAndPlay(_root.startoff); } } } } frame 2 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 2 { if (_parent._name == 'redbaron') { _parent.bShiftable = true; } else { _root.playSoundEffect('axeswing'); } } frame 3 { if (_parent._name == 'redbaron') { if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; } } frame 4 { if (_parent._name == 'redbaron') { _root.Attack(1); _parent.bShiftable = false; } else { enemyloop = false; if (_root.specHitTest(210 * _parent.nFacing, 10, _root.redbaron, _parent)) { _root.playSoundEffect('axehit'); if (_root.bShielded && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 20; _parent.nAttackWait = 50; } else { _parent.gotoAndStop('idle'); } } else { enemyloop = true; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.redbaron.baron.gotoAndPlay(1); _root.baronwaittime = 3; } } } } frame 11 { if (_parent._name == 'redbaron') { _root.atkType = 'attack'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } else { if (!enemyloop) { _parent.gotoAndStop('idle'); } } } frame 12 { if (_parent._name == 'redbaron') { _parent.bShiftable = true; } } frame 13 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 13 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; } else { _root.playSoundEffect('axeswing'); } } frame 14 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; } } frame 15 { if (_parent._name == 'redbaron') { _root.Attack(2); } else { enemyloop = false; if (_root.specHitTest(210 * _parent.nFacing, 10, _root.redbaron, _parent)) { _root.playSoundEffect('axehit'); if (_root.bShielded && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 20; _parent.nAttackWait = 50; } else { _parent.gotoAndStop('idle'); } } else { enemyloop = true; _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.redbaron.baron.gotoAndPlay(1); _root.baronwaittime = 3; } } } } frame 21 { if (_parent._name == 'redbaron') { _root.atkType = 'attack'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } else { if (!enemyloop) { _parent.gotoAndStop('idle'); } } } frame 23 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _parent.bShiftable = true; } } frame 24 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; } else { _root.playSoundEffect('axeswing'); } } frame 25 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 29 { if (_parent._name == 'redbaron') { _root.Attack(3); } else { if (_root.specHitTest(210 * _parent.nFacing, 10, _root.redbaron, _parent)) { _root.playSoundEffect('axehit'); if (_root.bShielded && _root.redbaron.nFacing != _parent.nFacing) { if (_root.lockkeys == 0) { _root.blockless = false; _parent.nSlide = -15 * _parent.nFacing; _root.redbaron.nShake = 7; _root.ssx = _root.redbaron._x; _root.sparks(_root.redbaron); _root.blockbar -= 20; _parent.nAttackWait = 50; } else { _parent.gotoAndStop('idle'); } } else { _root.health -= 1; _root.redbaron.gotoAndStop('hit'); _root.redbaron.baron.gotoAndPlay(1); _root.baronwaittime = 3; } } } } frame 37 { if (_parent._name == 'redbaron') { _root.atkType = 'combo'; _root.startoff = 1; } _parent.gotoAndStop('idle'); } frame 38 { if (_parent._name == 'redbaron') { _parent.bShiftable = true; } } frame 39 { if (_parent._name == 'redbaron') { if (!slide) { } else { _parent.nSlide = 10 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; } } frame 40 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; } } frame 41 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 45 { if (_parent._name == 'redbaron') { _root.Attack(1); } } frame 51 { if (_parent._name == 'redbaron') { _root.atkType = 'attack'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 52 { if (_parent._name == 'redbaron') { _parent.bShiftable = true; } } frame 53 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; } } frame 54 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 10 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; } } frame 56 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 58 { if (_parent._name == 'redbaron') { _root.Attack(2); } } frame 62 { if (_parent._name == 'redbaron') { _root.atkType = 'attack'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 64 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 10 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _parent.bShiftable = true; } } frame 65 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 65 { if (_parent._name == 'redbaron') { _parent.bShiftable = false; } } frame 67 { if (_parent._name == 'redbaron') { _root.Attack(3); } } frame 74 { if (_parent._name == 'redbaron') { _root.atkType = 'combo'; _root.startoff = 1; _parent.gotoAndStop('idle'); } } } movieClip 3013 { frame 1 { if (_parent._name == 'redbaron') { _root.redbaron.combostarter = false; _root.bloodSplatter(_root.redbaron); _root.addImpactHit(_root.redbaron._x, _root.redbaron._y - 75, true); if (_root.level == 6 && _root.weapon == 1 && _root.specweapon == 6 && _root.loneflagrb == undefined) { _root.attachMovie('loneflag', 'loneflagrb', _root.getNextHighestDepth()); _root.loneflagrb.eden = 'rb'; _root.loneflagrb._x = _root.redbaron._x + 100 * _root.redbaron.nFacing; _root.loneflagrb._y = _root.redbaron._y; _root.loneflagrb.dir = _root.redbaron.nFacing; _root.rb = true; _root.cweapon = 4; _root.specweapon = 0; } } else { _root.baronwaittime = 3; _root.addImpactHit(_root.redbaron._x + _root.redbaron.nFacing * _root.range / 2, _root.redbaron._y - 80); } hitframe = Math.floor(Math.random() * 4.9); if (hitframe == 0) { play(); } else { if (hitframe == 1) { gotoAndPlay(10); } else { if (hitframe == 2) { gotoAndPlay(20); } else { if (hitframe == 3) { gotoAndPlay(38); } else { gotoAndPlay(53); } } } } if (Math.round(Math.random()) == 1) { _root.playSoundEffect('baron_smacked1'); } else { _root.playSoundEffect('baron_smacked2'); } } frame 9 { _parent.gotoAndStop('idle'); } frame 19 { _parent.gotoAndStop('idle'); } frame 37 { _parent.gotoAndStop('idle'); } frame 52 { _parent.gotoAndStop('idle'); } frame 64 { _parent.gotoAndStop('idle'); } } movieClip 3027 { frame 1 { _root.playSoundEffect('baron_death'); if (_parent._name != 'redbaron') { i = 1; while (i <= 30) { _root.Coin(); ++i; } } } frame 26 { stop(); starter = 1; onEnterFrame = function () { starter += 1; if (starter > 80 && starter < 82) { if (_parent._name != 'redbaron') { if (_root.level == 1) { _root.crTime = getTimer(); if (_root.bonusEnabled) { _root.Coin1.removeMovieClip(); _root.attachMovie('bonusCoin', 'Coin1', _root.getNextHighestDepth()); } else { _root.fadeInn(); } } } else { if (_parent._name == 'redbaron') { _root.gotoAndStop('tripover'); } } } }; } } movieClip 3032 { } movieClip 3039 { } movieClip 3045 { frame 1 { if (_parent._name == 'redbaron') { _root.redbaron.combostarter = false; _root.swordloop = 1; _root.bShielded = true; blockmove = false; upped = false; timer = 10; _root.smokes = 1; func = 1; onEnterFrame = function () { if (!Key.isDown(_root.shield)) { upped = true; } if (timer > 0) { timer -= 1; } if (_currentframe < 5 && _root.combobar >= 90 && !blockmove && upped && Key.isDown(_root.shield) && timer > 0) { _root.lockkeys = 40; blockmove = true; _root.combobar -= 100; } }; } else { _parent.nFacing = -_root.redbaron.nFacing; } } frame 3 { if (_parent._name == 'redbaron') { stop(); } } instance of movieClip 3032 { onClipEvent (enterFrame) { if (_parent._parent._name == 'redbaron') { if (_root.lockkeys > 0) { if (_root.lockkeys > 10) { _root.redbaron.nSlide = 20 * _root.redbaron.nFacing; } _parent.stop(); _root.attackLevel = 30; _root.lockkeys -= 1; if (_root.lockkeys % 2 == 0) { _root.attachMovie('smoke', 'smoke' + _root.smokes, _root.getNextHighestDepth()); _root['smoke' + _root.smokes]._xscale *= _root.redbaron.nFacing; _root.smokes += 1; } if (_parent.func < 5) { _root.cam.part._xscale -= 5; _root.cam.part._yscale -= 5; _parent.func += 1; } else { if (_root.lockkeys < 5) { _root.cam.part._xscale += 5; _root.cam.part._yscale += 5; } } } else { if (!Key.isDown(_root.shield) && _parent.timer == 0) { _parent.play(); } } } } } frame 4 { onEnterFrame = function () { if (Key.isDown(_root.attack) || Key.isDown(_root.right) || Key.isDown(_root.left) || Key.isDown(_root.up) || Key.isDown(_root.down)) { _parent.gotoAndStop(1); } }; if (_root.blockbar > 0 || _parent._name != 'redbaron') { } else { _root.blockbar = -50; _root.attachMovie('shielded', 'shielded', _root.getNextHighestDepth()); _root.shielded._x = _root.redbaron._x + _root.redbaron.nFacing * 90; _root.shielded._y = _root.redbaron._y - 60; _root.shielded._xscale *= _root.redbaron.nFacing; } } instance of movieClip 3039 { onClipEvent (load) { if (_root.blockbar > 0 || _parent._name != 'redbaron') { } else { _visible = false; } } } frame 6 { if (_parent._name == 'redbaron') { _root.bShielded = false; } } frame 15 { _parent.gotoAndStop('idle'); } } movieClip 3170 { } movieClip 3200 { } movieClip 3213 { } movieClip 3217 { } movieClip 3220 { } movieClip 3223 { } movieClip 3226 { } movieClip 3229 { } movieClip 3232 { } movieClip 3241 { } movieClip 3244 { } movieClip 3250 { } movieClip 3258 { } movieClip 3265 { frame 10 { stop(); } } movieClip 3274 { frame 1 { onEnterFrame = function () { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.redbaron.nFacing == 1 && Key.isDown(_root.right)) { slide = true; } if (_root.redbaron.nFacing == -1 && Key.isDown(_root.left)) { slide = true; } if (Key.isDown(_root.up)) { upslide = true; downslide = false; } if (Key.isDown(_root.down)) { upslide = false; downslide = true; } } }; if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.startoff == 1) { sender = _root.weapon; if (sender != 2) { } else { gotoAndPlay('axe'); } null; if (sender != 3) { } else { gotoAndPlay('loop'); } null; if (sender != 4) { } else { gotoAndPlay('claw'); } null; } } if (_parent._name == 'redbaron' && _root.supercombo) { _parent.bShiftable = true; } } frame 2 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; if (!slide) { } else { _parent.nSlide = 8 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.weapon = 1; ++_root.combocounter; } if (_parent._name == 'redbaron' && _root.supercombo) { _parent.bShiftable = true; } } frame 4 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; } } frame 5 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 7 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 14 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _parent.bShiftable = true; _root.atkType = 'combo'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 16 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; ++_root.combocounter; } } frame 17 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 18 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 27 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.atkType = 'combo'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 28 { if (_parent._name == 'redbaron') { _root.playSound('loop'); } } frame 28 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; _root.swordloop = 1; } } frame 29 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.contCombo = false; _parent.bShiftable = true; ++_root.combocounter; } } frame 32 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 8 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _parent.bShiftable = false; } } frame 35 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); _root.looped += 1; } } frame 36 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.comboText(_root.looped, _root.redbaron._x, _root.redbaron._y - 150); } } frame 37 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 5) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 38 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 5) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 40 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 4) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 42 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 3) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 44 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 2) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 45 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop <= 1) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 29; } else { _root.startoff = 47; } } } } frame 46 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.gotoAndStop('idle'); } } frame 48 { if (_parent._name == 'redbaron' && !_root.supercombo) { ++_root.combocounter; _parent.bShiftable = true; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.swordloop = 1; } } frame 50 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; } } frame 57 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 68 { if (_root.cweapon == 1 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 69 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.atkType = 'combo'; if (_root.cweapon != 1) { _root.startoff = _currentframe + 1; } else { _root.startoff = 2; } _root.startoff; _parent.gotoAndStop('idle'); } if (_root.cweapon == 1 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 70 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 70 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.weapon = 2; _parent.bShiftable = true; ++_root.combocounter; } } frame 72 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; } } frame 74 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; } } frame 76 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 89 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.atkType = 'combo'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 90 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; ++_root.combocounter; } } frame 91 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 92 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; } } frame 94 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 103 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.atkType = 'combo'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 104 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; ++_root.combocounter; } } frame 105 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 106 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; } } frame 108 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 117 { if (_root.cweapon == 2 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 118 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.atkType = 'combo'; if (_root.cweapon != 2) { _root.startoff = _currentframe + 1; } else { _root.startoff = 2; } _root.startoff; _parent.gotoAndStop('idle'); } if (_root.cweapon == 2 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 119 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.swordloop = 1; } } frame 120 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 120 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.weapon = 3; _parent.bShiftable = true; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.contCombo = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; } } frame 123 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; ++_root.combocounter; } } frame 124 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); _root.looped += 1; } } frame 125 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.comboText(_root.looped, _root.redbaron._x, _root.redbaron._y - 150); } } frame 127 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 3) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 120; } else { _root.startoff = 132; } } } } frame 128 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 3) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 120; } else { _root.startoff = 132; } } } } frame 129 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 2) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 120; } else { _root.startoff = 132; } } } } frame 130 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 1) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 120; } else { _root.startoff = 132; } } } } frame 131 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.gotoAndStop('idle'); } } frame 132 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; ++_root.combocounter; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.swordloop = 1; } } frame 133 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 135 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 8 * _parent.nFacing; } null; } } frame 136 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 141 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; slide = false; upslide = false; downslide = false; _root.atkType = 'combo'; _root.startoff = _currentframe + 1; _parent.gotoAndStop('idle'); } } frame 142 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; ++_root.combocounter; } } frame 145 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = false; if (!slide) { } else { _parent.nSlide = 6 * _parent.nFacing; } null; } } frame 148 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 152 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 159 { if (_root.cweapon == 3 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 160 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.atkType = 'combo'; if (_root.cweapon != 3) { _root.startoff = _currentframe + 1; } else { _root.startoff = 2; } _root.startoff; _parent.gotoAndStop('idle'); } if (_root.cweapon == 3 && _parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 161 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; upslide = false; downslide = false; _parent.bShiftable = true; } } frame 162 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 12 * _parent.nFacing; } null; _root.weapon = 4; _parent.bShiftable = false; _root.swordloop = 1; slide = false; } } frame 163 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 163 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.contCombo = false; ++_root.combocounter; } } frame 165 { if (_parent._name == 'redbaron' && !_root.supercombov) { _root.Attack(_root.combocounter + 3); _root.looped += 1; } } frame 166 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.comboText(_root.looped, _root.redbaron._x, _root.redbaron._y - 150); } } frame 167 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 5) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 163; } else { _root.startoff = 190; } } } } frame 168 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 4) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 163; } else { _root.startoff = 190; } } } } frame 169 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 3) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 163; } else { _root.startoff = 190; } } } } frame 170 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop > 2) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 163; } else { _root.startoff = 190; } } } } frame 171 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (_root.swordloop == 1) { _root.atkType = 'combo'; if (_root.contCombo) { ++_root.swordloop; _root.startoff = 163; } else { _root.startoff = 190; } } } } frame 175 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; upslide = false; downslide = false; } } frame 177 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 12 * _parent.nFacing; } null; _parent.bShiftable = false; ++_root.combocounter; slide = false; } } frame 178 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 183 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); _root.looped += 1; } } frame 184 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.comboText(_root.looped, _root.redbaron._x, _root.redbaron._y - 150); } } frame 188 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.gotoAndStop('idle'); } } frame 189 { if (_parent._name == 'redbaron' && !_root.supercombo) { _parent.bShiftable = true; if (!upslide) { } else { _parent.nVertSlide = -4; } null; if (!downslide) { } else { _parent.nVertSlide = 4; } null; upslide = false; downslide = false; } } frame 190 { if (_parent._name == 'redbaron' && !_root.supercombo) { ++_root.combocounter; } } frame 191 { if (_parent._name == 'redbaron' && !_root.supercombo) { if (!slide) { } else { _parent.nSlide = 12 * _parent.nFacing; } null; _parent.bShiftable = false; _root.swordloop = 1; slide = false; } } frame 194 { if (_parent._name == 'redbaron') { _root.playSound('swing'); } } frame 197 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.Attack(_root.combocounter + 3); } } frame 208 { if (_parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } frame 209 { if (_parent._name == 'redbaron' && !_root.supercombo) { _root.atkType = 'combo'; _root.startoff = 2; _parent.gotoAndStop('idle'); } if (_parent._name == 'redbaron' && _root.supercombo) { _parent.gotoAndStop('idle'); } } } movieClip 3275 darkbaron { frame 1 { if (_name == 'redbaron') { bMoveable = false; bShiftable = true; stop(); _root.bAttacking = false; _root.bShielded = false; } } instance of movieClip 310 { onClipEvent (enterFrame) { _width = _width + (_parent.baron._width - _width - 10) / 3; } } frame 2 { if (_name == 'redbaron') { bMoveable = false; bShiftable = false; _root.bAttacking = false; _root.bShielded = false; } } frame 3 { if (_name == 'redbaron') { _root.bAttacking = false; _root.bShielded = false; bShiftable = true; } } frame 4 { if (_name == 'redbaron') { bMoveable = false; bShiftable = false; _root.bAttacking = false; _root.bShielded = false; } } frame 5 { if (_name == 'redbaron') { bMoveable = false; _root.bAttacking = false; _root.bShielded = false; bShiftable = false; } } frame 6 { if (_name == 'redbaron') { bMoveable = false; _root.bAttacking = false; _root.bShielded = false; bShiftable = false; } } frame 7 { if (_name == 'redbaron') { bMoveable = false; _root.bAttacking = false; _root.bShielded = false; bShiftable = false; } } frame 8 { if (_name == 'redbaron') { bMoveable = false; _root.bAttacking = false; _root.bShielded = false; bShiftable = false; } } } frame 1 { stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; } movieClip 3278 { } movieClip 3283 { } button 3284 { on (release) { getURL('http://www.newgrounds.com', 'blank'); } } button 3289 { on (release) { _root.play(); } } movieClip 3290 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop('loaded'); } } frame 2 { gotoAndPlay(1); } } movieClip 4025 __Packages.MC_scoreTable { #initclip if (!_global.MC_scoreTable) { var v1 = function (id) { this.game = id; this.table = 'scores'; this.key = 'nfraSDlo2gvln85hoFEWFLJovitl48q7tfbl'; }; _global.MC_scoreTable = v1; var v2 = v1.prototype; v2.setUser = function (u) { this.name = u; }; v2.setScore = function (s) { this.score = s; }; v2.setTable = function (t) { this.table = t; }; v2.submitScore = function () { if (this.name and this.score and this.game and this.table) { var v2 = new Object(); v2.name = this.name; v2.score = this.score; v2.game = this.game; v2.table = this.table; this.seed = Math.round(Math.random() * 999999999); v2.seed = this.seed; var v3 = JSON.stringify(v2); trace('encoded string-> ' + v3); var v4 = com.meychi.ascrypt.RC4.encrypt(v3, this.key); trace('encrypted string-> ' + v4); getURL('http://www.mindchamber.net/subScore.php?seed=' + this.seed + '&data=' + v4, '_blank'); return true; } else { return false; } }; ASSetPropFlags(_global.MC_scoreTable.prototype, null, 1); } #endinitclip } movieClip 4026 __Packages.JSON { #initclip if (!_global.JSON) { var v1 = function () {}; _global.JSON = v1; var v2 = v1.prototype; v1.stringify = function (arg) { var v3; var v2; var v6; var v1 = ''; var v4; switch (typeof arg) { return 'null'; case 'object': if (arg) { if (arg instanceof Array) { v2 = 0; while (v2 < arg.length) { v4 = JSON.stringify(arg[v2]); if (v1) { v1 += ','; } v1 += v4; ++v2; } return '[' + v1 + ']'; } else { if (typeof arg.toString != 'undefined') { for (v2 in arg) { v4 = arg[v2]; if (typeof v4 != 'undefined' && typeof v4 != 'function') { v4 = JSON.stringify(v4); if (v1) { v1 += ','; } v1 += JSON.stringify(v2) + ':' + v4; } } return '{' + v1 + '}'; } } } return 'null'; case 'number': return isFinite(arg) ? String(arg) : 'null'; case 'string': v6 = arg.length; v1 = '"'; v2 = 0; while (v2 < v6) { v3 = arg.charAt(v2); if (v3 >= ' ') { if (v3 == '\\' || v3 == '"') { v1 += '\\'; } v1 += v3; } else { switch (v3) { case '\b': v1 += '\\b'; break; case '\f': v1 += '\\f'; break; case '\n': v1 += '\\n'; break; case '\r': v1 += '\\r'; break; case '\t': v1 += '\\t'; break; default: v3 = v3.charCodeAt(); v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16); } } v2 += 1; } return v1 + '"'; case 'boolean': return String(arg); } return 'null'; }; v1.parse = function (text) { var at = 0; var ch = ' '; var _value; var _error = function (m) { throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text}; }; var _next = function () { ch = text.charAt(at); at += 1; return ch; }; var _white = function () { while (ch) { if (ch <= ' ') { _next(); } else { if (ch == '/') { switch (_next()) { case '/': for (;;) { if (!(_next() && ch != '\n' && ch != '\r')) break; } break; case '*': _next(); for (;;) { if (ch) { if (ch == '*') { if (_next() == '/') { _next(); break; } } else { _next(); } continue; } _error('Unterminated comment'); } break; default: _error('Syntax error'); } } else { break; } } } }; var _string = function () { var v4; var v1 = ''; var v3; var v2; var v5 = false; if (ch == '"') { while (_next()) { if (ch == '"') { _next(); return v1; } else { if (ch == '\\') { switch (_next()) { case 'b': v1 += '\b'; break; case 'f': v1 += '\f'; break; case 'n': v1 += '\n'; break; case 'r': v1 += '\r'; break; case 't': v1 += '\t'; break; case 'u': v2 = 0; v4 = 0; while (v4 < 4) { v3 = parseInt(_next(), 16); if (!isFinite(v3)) { v5 = true; break; } v2 = v2 * 16 + v3; v4 += 1; } if (v5) { v5 = false; } else { v1 += String.fromCharCode(v2); break; default: v1 += ch; } } } else { v1 += ch; } } } } _error('Bad string'); }; var _array = function () { var v1 = []; if (ch == '[') { _next(); _white(); if (ch == ']') { _next(); return v1; } while (ch) { v1.push(_value()); _white(); if (ch == ']') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad array'); }; var _object = function () { var v2; var v1 = {}; if (ch == '{') { _next(); _white(); if (ch == '}') { _next(); return v1; } while (ch) { v2 = _string(); _white(); if (ch != ':') { break; } _next(); v1[v2] = _value(); _white(); if (ch == '}') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad object'); }; var _number = function () { var v1 = ''; var v2; if (ch == '-') { v1 = '-'; _next(); } for (;;) { if (!(ch >= '0' && ch <= '9')) break; v1 += ch; _next(); } if (ch == '.') { v1 += '.'; for (;;) { if (!(_next() && ch >= '0' && ch <= '9')) break; v1 += ch; } } v2 = 1 * v1; if (!isFinite(v2)) { _error('Bad number'); } else { return v2; } }; var _word = function () { switch (ch) { case 't': if (_next() == 'r' && _next() == 'u' && _next() == 'e') { _next(); return true; } break; case 'f': if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') { _next(); return false; } break; case 'n': if (_next() == 'u' && _next() == 'l' && _next() == 'l') { _next(); return null; } } _error('Syntax error'); }; _value = function () { _white(); switch (ch) { case '{': return _object(); case '[': return _array(); case '"': return _string(); case '-': return _number(); } return (ch >= '0' && ch <= '9') ? _number() : _word(); }; return _value(); }; ASSetPropFlags(_global.JSON.prototype, null, 1); } #endinitclip } movieClip 4027 __Packages.com.meychi.ascrypt.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.meychi) { _global.com.meychi = new Object(); } if (!_global.com.meychi.ascrypt) { _global.com.meychi.ascrypt = new Object(); } if (!_global.com.meychi.ascrypt.RC4) { var v1 = function () {}; com.meychi.ascrypt.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.meychi.ascrypt.RC4.strToChars(src); var v1 = com.meychi.ascrypt.RC4.strToChars(key); var v2 = com.meychi.ascrypt.RC4.calculate(v3, v1); return com.meychi.ascrypt.RC4.charsToHex(v2); }; v1.decrypt = function (src, key) { var v3 = com.meychi.ascrypt.RC4.hexToChars(src); var v1 = com.meychi.ascrypt.RC4.strToChars(key); var v2 = com.meychi.ascrypt.RC4.calculate(v3, v1); return com.meychi.ascrypt.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.meychi.ascrypt.RC4.mykey[v1] = pwd[v1 % v4]; com.meychi.ascrypt.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.meychi.ascrypt.RC4.sbox[v1] + com.meychi.ascrypt.RC4.mykey[v1]) % 256; v3 = com.meychi.ascrypt.RC4.sbox[v1]; com.meychi.ascrypt.RC4.sbox[v1] = com.meychi.ascrypt.RC4.sbox[v2]; com.meychi.ascrypt.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.meychi.ascrypt.RC4.initialize(psw); var v1 = 0; var v2 = 0; var v9 = new Array(); var v7; var v5; var v6; var v3 = 0; while (v3 < plaintxt.length) { v1 = (v1 + 1) % 256; v2 = (v2 + com.meychi.ascrypt.RC4.sbox[v1]) % 256; v5 = com.meychi.ascrypt.RC4.sbox[v1]; com.meychi.ascrypt.RC4.sbox[v1] = com.meychi.ascrypt.RC4.sbox[v2]; com.meychi.ascrypt.RC4.sbox[v2] = v5; var v4 = (com.meychi.ascrypt.RC4.sbox[v1] + com.meychi.ascrypt.RC4.sbox[v2]) % 256; v7 = com.meychi.ascrypt.RC4.sbox[v4]; v6 = plaintxt[v3] ^ v7; v9.push(v6); ++v3; } return v9; }; v1.charsToHex = function (chars) { var v4 = new String(''); var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); var v1 = 0; while (v1 < chars.length) { v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15]; ++v1; } return v4; }; v1.hexToChars = function (hex) { var v3 = new Array(); var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0; while (v1 < hex.length) { v3.push(parseInt(hex.substr(v1, 2), 16)); v1 += 2; } return v3; }; v1.charsToStr = function (chars) { var v3 = new String(''); var v1 = 0; while (v1 < chars.length) { v3 += String.fromCharCode(chars[v1]); ++v1; } return v3; }; v1.strToChars = function (str) { var v3 = new Array(); var v1 = 0; while (v1 < str.length) { v3.push(str.charCodeAt(v1)); ++v1; } return v3; }; v1.sbox = new Array(255); v1.mykey = new Array(255); ASSetPropFlags(com.meychi.ascrypt.RC4.prototype, null, 1); } #endinitclip } frame 2 { function fadeOutt() { this.createEmptyMovieClip('fadeOut', 1000000); with (fadeOut) { beginFill(0); moveTo(-200, -200); lineTo(1300, -200); lineTo(1300, 800); lineTo(-200, 800); endFill(); } } function fadeInn() { fadeit = 50; this.createEmptyMovieClip('fadeIn', _root.getNextHighestDepth()); with (fadeIn) { beginFill(16777215); lineTo(0, -300); lineTo(1800, -300); lineTo(1800, 800); lineTo(0, 800); endFill(); _x = cam._x - 900; _y = cam._y; _alpha = 0; } } function clearScreen(frame) { if (objects == undefined) { objects = 0; } if (trees == undefined) { trees = 0; } if (walls == undefined) { walls = 0; } if (coins == undefined) { coins = 0; } redbaron.removeMovieClip(); cam.removeMovieClip(); i = 0; while (i <= 50) { this['Object' + i].removeMovieClip(); i += 1; } i = 0; while (i <= smokes) { this['smoke' + i].removeMovieClip(); i += 1; } i = 0; while (i <= 30) { this['basicenemy' + i].removeMovieClip(); i += 1; } i = 0; while (i <= trees) { this['Tree' + i].removeMovieClip(); i += 1; } i = 0; while (i <= 3) { this['dwall' + i].removeMovieClip(); this['brkwall' + i].removeMovieClip(); i += 1; } i = 0; while (i <= coins) { this['Coin' + i].removeMovieClip(); i += 1; } i = 0; while (i <= 10) { this['newText' + i].removeMovieClip(); i += 1; } fg.removeMovieClip(); bgWall.removeMovieClip(); defector.removeMovieClip(); darkbaron.removeMovieClip(); darksaber.removeMovieClip(); alien.removeMovieClip(); fadeOut.removeMovieClip(); tank.removeMovieClip(); loneflagrb.removeMovieClip(); loneflaglb.removeMovieClip(); bummy.removeMovieClip(); if (frame != false) { gotoAndPlay(frame); } coins = 1; smokes = 0; lockkeys = 0; stopAllSounds(); } function hud() { cash = score - spent; if (health > 0) { cam.hud.life.life.gotoAndStop(51 - health); } else { cam.hud.life.life.gotoAndStop(50); } if (blockbar > 0) { cam.hud.shield.gotoAndStop(Math.floor(101 - blockbar)); } else { cam.hud.shield.gotoAndStop(100); } if (combobarwait > 0 && (combobar < 100 || combobar > 101 && combobar < 200)) { combobarwait -= 0.5; } else { if (combobar > 0 && combobar < 100 || (combobar > 101 || combobar < 200)) { combobar -= 0.2; } } if (combobar < 100) { if (combobar > 0) { cam.hud.combo.gotoAndStop(51 - Math.ceil(combobar / 2)); } else { cam.hud.combo.gotoAndStop(50); } if (combobar > 90) { combobar = 100; } } else { if (combobar > 100) { cam.hud.combo.gotoAndStop(151 - Math.ceil(combobar / 2)); } else { cam.hud.combo.gotoAndStop(100); } if (combobar > 190) { combobar = 200; } } cam.hud.score = score; if (attackComWait > 0) { attackComWait -= 1; } else { lastAttack = 0; } } function Attack(num) { if (weapon == 2) { attackLevel = Math.round(num * 1.5); } else { attackLevel = num; if (weapon == 1) { if (specweapon == 4) { attackLevel = Math.round(num * 1.3); } else { if (specweapon == 5) { attackLevel = Math.round(num * 1.6); } else { if (specweapon == 2) { attackLevel = Math.round(num * 1.9); } else { if (specweapon == 1) { attackLevel = Math.round(num * 2.1); } else { if (specweapon == 3) { attackLevel = Math.round(num * 2.5); } } } } } } } contCombo = false; tempCombo = 0; comboHit = false; sparker = false; if (Math.round(Math.random() * 30) == 1) { playSoundEffect('baron_swingin1'); } else { if (Math.round(Math.random() * 30) == 1) { playSoundEffect('baron_swingin2'); } } } function Hit() { attackComWait = 30; if (lockkeys == 0) { if (combobar < 200) { combobar += Math.ceil(attackLevel); } } else { swordloop = 0; } if (attackLevel > 8 && weapon != 2 || attackLevel > 12 && weapon == 2) { camshake = 7; } combobarwait = 30; tempCombo = ctempCombo; playSound('hit'); if (swordloop > 1) { Coin(); } } function playMusic(music, looper) { if (looper == undefined) { looper = 99; } if (playsounds) { musicnewsound.stop(musicstopsound); musicnewsound = new Sound(this); musicnewsound.attachSound(music); musicnewsound.start(0, looper); musicstopsound = music; } } function playSound(b) { if (playsounds) { if (weapon == 1) { if (specweapon == 1) { wep = 'cat'; } else { if (specweapon == 5) { wep = 'fish'; } else { if (specweapon == 2) { wep = 'saber'; } else { wep = 'sword'; } } } } else { if (weapon == 2) { wep = 'axe'; } else { if (weapon == 3) { wep = 'sythe'; } else { wep = 'claw'; } } } ad = ''; if (b == 'hit' && (wep == 'sword' || wep == 'sythe' || wep == 'claw' || wep == 'cat' || wep == 'fish' || wep == 'saber')) { if (Math.round(Math.random()) == 0) { ad = '1'; } } if (b == 'swing' && wep == 'saber') { if (Math.round(Math.random()) == 0) { ad = '1'; } } newsound.stop(stopsound); newsound = new Sound(this); newsound.setVolume(60); newsound.attachSound(wep + b + ad); newsound.start(); stopsound = wep + b + ad; } } function playSoundEffect(link) { if (playsounds) { newsound2 = new Sound(this); newsound2.attachSound(link); newsound2.start(); } } function comboText(lvl, x, y) { _root.attachMovie('newText', 'newText' + combotexts, combotexts + 99999); sender = this['newText' + combotexts]; sender._x = x; sender._y = y; if (lvl != 'a') { if (lvl > 0) { if (lvl <= 10) { sender.gotoAndStop(lvl); } else { sender.gotoAndStop(10); } } else { sender.gotoAndStop(11); } } else { sender.gotoAndStop(12); } sender.pointer = 1; if (combotexts >= 8) { combotexts = 1; } else { combotexts += 1; } 1; } function depthCreator(tgt, y) { tgt.swapDepths(Math.round(y * 900 + tgt._x * 3)); } function specHitTest(nWidth, nHeight, target, self, adds, addz) { if (adds == undefined) { adds = 0; } if (addz == undefined) { addz = 0; } pTarget = {'x': 0, 'y': 0}; pStart = {'x': 0, 'y': 0}; target.localToGlobal(pTarget); self.localToGlobal(pStart); if (lockkeys > 0) { heightadd = 10; } else { heightadd = 0; } if (nWidth > 0) { if (pTarget.x + addz > pStart.x && pTarget.x - addz < pStart.x + nWidth && pTarget.y > pStart.y - nHeight + adds - heightadd && pTarget.y < pStart.y + nHeight + adds + heightadd) { return true; } else { return false; } } else { if (pTarget.x + addz < pStart.x && pTarget.x - addz > pStart.x + nWidth && pTarget.y > pStart.y - nHeight + adds - heightadd && pTarget.y < pStart.y + nHeight + adds + heightadd) { return true; } else { return false; } } } function scaleChar(tgt) { tgt.nScaleTime = tgt._y / 35 + 23; } function wallchip(x, y, dir) { _root.attachMovie('wallchip', 'blood' + _root.bloodSplatters, _root.bloodSplatters + 99999); sender = _root['blood' + _root.bloodSplatters]; sender._x = x; sender._y = y + Math.random() * 120 - 60; sender._xscale *= -dir; if (bloodSplatters < 10) { bloodSplatters += 1; } else { bloodSplatters = 0; } } function sparks(tgt, flip, adds, rot) { if (flip) { flip = -tgt.nFacing; } else { flip = tgt.nFacing; } if (adds == undefined) { adds = 50; } else { adds = 0; } _root['blood' + _root.bloodSplatters].removeMovieClip(); _root.attachMovie('spark3', 'blood' + _root.bloodSplatters, _root.bloodSplatters + 99999); sender = _root['blood' + _root.bloodSplatters]; sender._x = tgt._x + (adds - 50) * 3 * flip; sender._y = tgt._y - adds; if (rot != undefined) { sender._rotation = rot * flip; } sender.switcher = flip; if (bloodSplatters < 2) { bloodSplatters += 1; } else { bloodSplatters = 0; } if (tgt._name == 'redbaron') { if (Math.round(Math.random()) == 1) { playSoundEffect('shieldhit1'); } else { playSoundEffect('shieldhit2'); } } } function bloodSplatter(tgt, addon) { sub = Math.round(tgt._height / 2); if (addon == undefined) { addon = 0; } _root.attachMovie('blood3', 'blood' + _root.bloodSplatters, _root.bloodSplatters + 99999); sender = _root['blood' + _root.bloodSplatters]; sender._x = tgt._x; sender._y = tgt._y - sub + addon + Math.random() * 30 - 15; sender.addon = addon; sender.switcher = tgt.nFacing; if (bloodSplatters < 10) { bloodSplatters += 1; } else { bloodSplatters = 0; } } function addImpactHit(xx, yy, baron, def) { if (def) { this['impspark' + impspark].removeMovieClip(); attachMovie('impactspark3', 'impspark' + impspark, _root.getNextHighestDepth()); sender = this['impspark' + impspark]; sender._x = xx; sender._y = yy; if (impspark < 3) { impspark += 1; } else { impspark = 0; } } if (lockkeys == 0 && !sparker) { sparker = true; this['impspark' + impspark].removeMovieClip(); if (baron || lastAttack < 4) { attachMovie('impactspark', 'impspark' + impspark, _root.getNextHighestDepth()); } else { if (!baron && lastAttack < 6) { attachMovie('impactspark2', 'impspark' + impspark, _root.getNextHighestDepth()); } else { if (!baron && lastAttack < 8) { attachMovie('impactspark3', 'impspark' + impspark, _root.getNextHighestDepth()); } else { if (!baron && lastAttack < 10) { attachMovie('impactspark4', 'impspark' + impspark, _root.getNextHighestDepth()); } else { i = Math.ceil(Math.random() * 2.9 + 0.1); if (i == 1) { attachMovie('impactspark5', 'impspark' + impspark, _root.getNextHighestDepth()); } else { if (i == 2) { attachMovie('impactspark6', 'impspark' + impspark, _root.getNextHighestDepth()); } else { attachMovie('impactspark7', 'impspark' + impspark, _root.getNextHighestDepth()); } } this['impspark' + impspark]._xscale *= redbaron.nFacing; } } } } sender = this['impspark' + impspark]; sender._x = xx; sender._y = yy; if (baron) { sender.gotoAndStop(2); } else { impcount = 10; } if (impspark < 3) { impspark += 1; } else { impspark = 0; } } } function landCheck(tgt, scalefactor, adds) { if (adds == undefined) { adds = 0; } nY = tgt._y; nX = tgt._x; nWidth = tgt.nStartWidth * scalefactor * 1.4; nHalf = (nWidth / 2.4) * scalefactor; bRh = false; bLh = false; brk = 1; while (brk <= 2) { if (this['brkwall' + brk]._x - nX < nWidth && _root['brkwall' + brk]._x - nX > 0) { bRh = true; tgt.twall = this['dwall' + brk]; } if (this['brkwall' + brk]._x - nX > nWidth * -1 && _root['brkwall' + brk]._x - nX < 0) { bLh = true; tgt.twall = this['dwall' + brk]; } if (bRh) { tgt.bRh = true; } else { tgt.bRh = false; } if (bLh) { tgt.bLh = true; } else { tgt.bLh = false; } brk += 1; } if (nX + nHalf > righthit || bRh) { tgt.bRightHit = true; } else { tgt.bRightHit = false; } if (nX - nHalf < lefthit || bLh) { tgt.bLeftHit = true; } else { tgt.bLeftHit = false; } if (nY - 10 + adds < uphit && nY > uphit) { tgt.bUpHit = true; } else { tgt.bUpHit = false; } if (nY + 10 + adds > downhit && nY < downhit) { tgt.bDownHit = true; } else { tgt.bDownHit = false; } } function grassCheck() { p = 0; while (p <= objects) { sender = this['Object' + p]; i = 0; while (i <= walls) { if (_root['brkwall' + i]._x - 140 < sender._x && _root['brkwall' + i]._x + 60 > sender._x && sender.objectz != undefined) { floorpiece.floorpiece['Point' + sender.objectz].x += 200 + Math.random() * 100; } i += 1; } p += 1; } } function createWall(x, des) { walls += 1; attachMovie('dwall', 'dwall' + walls, _root.getNextHighestDepth()); attachMovie('dwallfloor', 'brkwall' + walls, _root.getNextHighestDepth()); wall = this['dwall' + walls]; wallfloor = this['brkwall' + walls]; wall.cacheAsBitmap = true; wall._xscale = 141.5; wall._yscale = 141.5; wallfloor._xscale = 141.5; wallfloor._yscale = 141.5; wall._y = 550; wallfloor._y = 452; wall._x = x; wallfloor._x = x - 13.7; wallfloor.swapDepths(379 + walls); wall.swapDepths(350 + walls); wall.num = walls; wall.startX = wall._x; wall.health = 150; wall.des = des; wall.tdone = 10; grassCheck(); if (_root.level == 3) { wall.filters = new Array(filter); } } function Coin() { c = 1; if (Math.round(Math.random()) == 0) { c = 2; } var v2 = {'x': redbaron._x + redbaron.nFacing * range * 0.5, 'y': redbaron._y + Math.floor(Math.random() * 20 - 10)}; floorpiece.floorpiece.globalToLocal(v2); this['Coinpoint' + coins] = {'x': v2.x, 'y': v2.y}; attachMovie('coin' + c, 'Coin' + coins, this.getNextHighestDepth()); this['Coin' + coins]._xscale = 50; this['Coin' + coins]._yscale = 50; this['Coin' + coins].dir = redbaron.nFacing; this['Coin' + coins].objectz = coins; sPoint = {'x': this['Coinpoint' + coins].x, 'y': this['Coinpoint' + coins].y}; floorpiece.floorpiece.localToGlobal(sPoint); this['Coin' + coins]._x = sPoint.x; this['Coin' + coins]._y = sPoint.y; coins += 1; } function verticleSlide() { if (redbaron.upper) { redbaron.nVertSlide = -4; } if (redbaron.downer) { redbaron.nVertSlide = 4; } } function redBaron() { if (redbaron._currentframe == 6 && redbaron.baron._currentframe < 26) { storedeadframe = redbaron.baron._currentframe; redbaron.baron.gotoAndPlay(storedeadframe); } if (combobar < 0 || combobar == undefined) { combobar = 0; } if (soundswait == 0) { if (Key.isDown(77)) { soundswait = 15; if (playsounds) { playsounds = false; stopAllSounds(); } else { playsounds = true; if (level <= 4) { if (darkbaron == undefined && defector == undefined && darksaber == undefined && alien == undefined) { playMusic('level' + level + 'music'); } else { playMusic('boss1music'); } } else { i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 5); } } } } else { soundswait -= 1; } if (camshake > 0) { camshake -= 1; if (lockkeys == 0) { cam._x += Math.random() * 12 - 6; cam._y += Math.random() * 12 - 6; } } redbaron.cweapon = cweapon; redbaron.weapon = weapon; redbaron.nStartWidth = 130; if (lockkeys == 0 && cam.part._xscale < 100) { cam.part._yscale += 5; cam.part._xscale += 5; } if (lockkeys == 1) { redbaron.nSlide = 0; } if (redbaron._currentframe < 7) { lockkeys = 0; } if (waiter == 0) { if (Key.isDown(shield) && Key.isDown(attack) && Key.isDown(sheath) && combobar == 200 && health > 0) { combobar = 0; supercombo = true; startoff = 2; weapon = 1; redbaron.gotoAndStop('combo'); redbaron.baron.gotoAndPlay(2); } if (redbaron._currentframe != 8 && supercombo) { lockkeys = 0; supercombo = false; } if (lockkeys == 0) { if (redbaron._currentframe == 1) { redbaron.upper = false; redbaron.downer = false; redbaron.vert = false; if (Key.isDown(up) && Key.isDown(down) && (Key.isDown(right) && Key.isDown(left) || !Key.isDown(right) && !Key.isDown(left)) || Key.isDown(right) && Key.isDown(left) && (Key.isDown(up) && Key.isDown(down) || !Key.isDown(up) && !Key.isDown(down))) { } else { if (Key.isDown(up) || Key.isDown(down) || Key.isDown(right) || Key.isDown(left)) { redbaron.gotoAndStop('walk'); } } if (Key.isDown(sheath) && cweapon > 1) { redbaron.gotoAndStop('sheath'); } if (Key.isDown(shield) && blockbar > 0) { redbaron.gotoAndStop('shield'); } } else { if (redbaron._currentframe == 3) { redbaron.bMoveable = true; if (!Key.isDown(up) && !Key.isDown(down) && !Key.isDown(right) && !Key.isDown(left)) { if (redbaron.vert && !redbaron.hor) { verticleSlide(); redbaron.gotoAndStop('idle'); } else { if (redbaron.hor) { verticleSlide(); redbaron.nSlide = 6 * redbaron.nFacing; redbaron.gotoAndStop('idle'); } else { verticleSlide(); redbaron.gotoAndStop('idle'); } } } if (Key.isDown(shield) && blockbar > 0) { redbaron.nSlide = 12 * redbaron.nFacing; redbaron.gotoAndStop('shield'); } if (Key.isDown(sheath) && cweapon > 1) { redbaron.nSlide = 5 * redbaron.nFacing; redbaron.gotoAndStop('sheath'); } if (Key.isDown(up) || Key.isDown(down)) { redbaron.vert = true; if (Key.isDown(up) && !Key.isDown(down)) { redbaron.upper = true; } else { redbaron.upper = false; } if (!Key.isDown(up) && Key.isDown(down)) { redbaron.downer = true; } else { redbaron.downer = false; } } else { redbaron.vert = false; } if (Key.isDown(right) || Key.isDown(left)) { redbaron.hor = true; } else { redbaron.hor = false; } if (Key.isDown(up) && Key.isDown(down) && (Key.isDown(right) && Key.isDown(left) || !Key.isDown(right) && !Key.isDown(left))) { redbaron.gotoAndStop('idle'); redbaron.bMoveable = false; } if (Key.isDown(right) && Key.isDown(left) && (Key.isDown(up) && Key.isDown(down) || !Key.isDown(up) && !Key.isDown(down))) { redbaron.gotoAndStop('idle'); redbaron.bMoveable = false; } } else { if (redbaron._currentframe == 7 && blockbar < 0) { redbaron.baron.play(); } } } } if (baronwaittime > 0) { redbaron.baron.stop(); if (baronwaittime == 1) { redbaron.baron.play(); } baronwaittime -= 1; } else { if (tempCombo == 0) { atkType = 'attack'; startoff = 1; } if (attackLevel > 0) { attackLevel = 0; } if (tempCombo > 0) { tempCombo -= 1; } if (!Key.isDown(attack)) { comboHit = true; } if (Key.isDown(attack) && comboHit && (tempCombo > 0 || startoff == 1) && (alien == undefined || alien.lockhit == 0)) { contCombo = true; } firstt.removeMovieClip(); secondd.removeMovieClip(); if (supercombo) { swordloop = 0; startoff = 2; if (cam.part._xscale > 85) { baronwaittime = 0; cam.part._xscale -= 5; cam.part._yscale -= 5; } combobar = 0; lockkeys = 5; if (supsuper == undefined) { supsuper = 0; } if (supsuper > 8) { attackLevel = 20; supsuper = 0; } else { supsuper += 1; } redbaron.nSlide = 5 * redbaron.nFacing; redbaron.baron.gotoAndPlay(redbaron.baron._currentframe + 1); } if (lockkeys > 0) { redbaron.baron.filters = [dropShadow]; var dropShadow = new flash.filters.DropShadowFilter(4, 180, 153, 0.8, 0, 0, 4, 3); var v2 = new flash.filters.DropShadowFilter(4, 180, 153, 0.6, 0, 0, 4, 3); var v1 = new flash.filters.DropShadowFilter(4, 180, 153, 0.4, 0, 0, 4, 3); dropShadow.distance = 30 * redbaron.nFacing; v2.distance = 40 * redbaron.nFacing; v1.distance = 50 * redbaron.nFacing; redbaron.baron.filters = [dropShadow, v2, v1]; } else { redbaron.baron.filters = undefined; } if (lockkeys == 0 && Key.isDown(attack) && comboHit && (tempCombo > 0 || startoff == 1) && (redbaron._currentframe == 1 || redbaron._currentframe == 3) && (alien == undefined || alien.lockhit == 0)) { redbaron.gotoAndStop(atkType); redbaron.baron.gotoAndPlay(startoff); if (atkType != 'combo') { ctempCombo = 25; } else { if (combocounter > 10) { ctempCombo = 10; } else { ctempCombo = 25 - combocounter; } } } } if (redbaron._currentframe == 4) { swordloop = 1; } if (weapon == 1) { range = 250; } else { if (weapon == 2) { range = 270; } else { if (weapon == 3) { range = 300; } else { range = 240; } } } sender = redbaron; scaleChar(sender); if (health <= 0) { depthCreator(sender, sender._y - 5); } else { depthCreator(sender, sender._y + 10); } landCheck(sender, 1); if (Key.isDown(right) && sender.bMoveable && !sender.bRightHit) { sender._x += sender.nMoveSpeed; } if (Key.isDown(left) && sender.bMoveable && !sender.bLeftHit) { sender._x -= sender.nMoveSpeed; } if (Key.isDown(right) && sender.bShiftable) { sender.nFacing = 1; } if (Key.isDown(left) && sender.bShiftable) { sender.nFacing = -1; } if (Key.isDown(up) && sender.bMoveable && !sender.bUpHit) { sender._y -= sender.nVerticleSpeed; } if (Key.isDown(down) && sender.bMoveable && !sender.bDownHit) { sender._y += sender.nVerticleSpeed; } sender._xscale = sender.nFacing * -1 * sender.nScaleTime; sender._yscale = sender.nScaleTime; if (sender.nSlide > 0) { if (!sender.bRightHit) { sender._x += sender.nSlide; } sender.nSlide -= 1; } else { if (sender.nSlide < 0) { if (!sender.bLeftHit) { sender._x += sender.nSlide; } sender.nSlide += 1; } } if (sender.nVertSlide != 0 && !sender.bUpHit && !sender.bDownHit) { sender._y += sender.nVertSlide; sender.nVertSlide += sender.nVertSlide / -Math.abs(sender.nVertSlide); } if (sender.nShake > 0) { sender._x += Math.random() * 6 - 3; sender.nShake -= 1; } if (sender.nShake == 1) { sender._x = ssx; } } else { if (!bum) { fadeOut.swapDepths(1000000); if (waiter < 30) { fadeOut._alpha -= 6.666666666666667; } if (fadeOut._alpha <= 0) { fadeOut.removeMovieClip(); } if (waiter < 15) { depthCreator(redbaron, redbaron._y - 5); } else { redbaron.swapDepths(1000001); } waiter -= 1; if (waiter > 35) { redbaron._x += 12; redbaron.gotoAndStop(3); scaleChar(redbaron); redbaron._xscale = -redbaron.nScaleTime; redbaron._yscale = redbaron.nScaleTime; } else { redbaron.gotoAndStop(1); } } else { fadeOut.swapDepths(cam.getDepth() - 1); } } redbaron.baron.weapon.gotoAndStop(weapon); } function createWave(rpeevo, lpeevo, rjayman, ljayman, rpygmy, lpygmy, rsnake, lsnake, lbtt, rbtt, rsamurai, lsamurai, rhood, lhood, rnekro, lnekro, rgit, lgit, rraid, lraid, rknight, lknight, rskullz, lskullz, rnight, lnight, rsaur, lsaur, rgolem, lgolem, rdef, ldef, rsaber, lsaber, rform, lform, rpit, lpit) { kills = 0; killsneeded = rpeevo + lpeevo + rjayman + ljayman + rpygmy + lpygmy + rsnake + lsnake + lbtt + rbtt + rsamurai + lsamurai + rhood + lhood + rnekro + lnekro + rgit + lgit + rraid + lraid + rknight + lknight + rskullz + lskullz + rnight + lnight + rsaur + lsaur + rgolem + lgolem + rdef + ldef + rsaber + lsaber + rform + lform + rpit + lpit; waveEnemy(rpeevo, lpeevo, 'Peevo'); waveEnemy(rjayman, ljayman, 'Jayman'); waveEnemy(rsnake, lsnake, 'Snake'); waveEnemy(rpygmy, lpygmy, 'Pygmy'); waveEnemy(rbtt, lbtt, 'BTT'); waveEnemy(rsamurai, lsamurai, 'Ghost'); waveEnemy(rhood, lhood, 'Hood'); waveEnemy(rnekro, lnekro, 'Nekrodin'); waveEnemy(rraid, lraid, 'Raidon'); waveEnemy(rgit, lgit, 'Git'); waveEnemy(rknight, lknight, 'Roboknight'); waveEnemy(rskullz, lskullz, 'Skullz'); waveEnemy(rnight, lnight, 'Nightling'); waveEnemy(rgolem, lgolem, 'Golem'); waveEnemy(rsaur, lsaur, 'Robosaur'); waveEnemy(rdef, ldef, 'Defector2'); waveEnemy(rsaber, lsaber, 'Darksaber2'); waveEnemy(rform, lform, 'Alien2'); } function waveEnemy(rsam, lsam, creator) { i = 1; while (i <= rsam + lsam) { if (i <= rsam) { t = 1; } else { t = -1; } this['create' + creator](t); i += 1; } } function createPeevo(t) { attachMovie('peevo', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 20 + 20; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 3; sender.nVerticleSpeed = Math.random() * 2 + 2; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createJayman(t) { attachMovie('jayman', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 100 + 50; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 3; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createPygmy(t) { attachMovie('pygmy', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 3; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createSnake(t) { attachMovie('snakebot', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 200; sender.yway = Math.random() * 6 - 3; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 2; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 12; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createBTT(t) { attachMovie('btt', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender._x += Math.random() * 300 - 150; sender.pathx = sender._x; sender._y += Math.random() * 200 - 100; sender.pathy = sender._y; sender.nStartWidth = sender._width; sender.i = Math.round(Math.random() * 20); if (redbaron._x >= sender._x) { sender.nFacing = -1; } else { sender.nFacing = 1; } -1; sender._x = cam._x + t * cam._width / 1.3; sender._y = 340 + Math.random() * 50; sender.nMoveSpeed = 5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createNekrodin(t) { attachMovie('nekrodin', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 40 + 30; sender.yway = Math.random() * 8 - 4; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 2; sender.nVerticleSpeed = Math.random() + 1; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width - 16; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createGhost(t) { attachMovie('samurai', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 30 + 20; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 4 + 3; sender.nVerticleSpeed = Math.random() * 2 + 3; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 24; sender.nStartWidth = sender._width - 16; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createHood(t) { attachMovie('blackhood', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 80 + 50; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 3; sender.nVerticleSpeed = Math.random() * 2 + 2; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 50; sender.nStartWidth = sender._width; sender.blast = 50; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createGit(t) { attachMovie('gitrobo', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 100; sender.defthrow = 50; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 1; sender.nVerticleSpeed = Math.random() * 2 + 1; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 24; sender.nStartWidth = sender._width - 16; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createRaidon(t) { attachMovie('raidon', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 4; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 40; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createRoboknight(t) { attachMovie('roboknight', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 3; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createSkullz(t) { attachMovie('skullz', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 3; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createNightling(t) { attachMovie('nightling', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 150 + 250; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 2 + 6; sender.nVerticleSpeed = Math.random() * 1 + 4; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 30; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createGolem(t) { attachMovie('golem', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 2; sender.nVerticleSpeed = 1; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 300; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createRobosaur(t) { attachMovie('robosaur', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.blast = 0; sender.deadvar = 30; sender.xway = Math.random() * 60 + 40; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width / 1.5; sender._y = 340 + Math.random() * 200; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 3 + 3; sender.nVerticleSpeed = Math.random() * 2 + 1.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 80; sender.nStartWidth = sender._width; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createDarkbaron() { attachMovie('darkbaron', 'darkbaron', _root.getNextHighestDepth()); sender = darkbaron; sender._x = cam._x + cam._width; sender.blocklevel = 3; sender._y = 400; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 8; sender.nVerticleSpeed = 3; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 150; sender.nStartWidth = 130; sender.nWait = 10; sender.nAttackWait = 50; nSlide = 0; sender.weapon = 2; sender.cweapon = 2; sender._xscale = 40; sender._yscale = 40; } function createDefector() { attachMovie('defector', 'defector', _root.getNextHighestDepth()); sender = defector; sender.stun = 0; sender._x = 7000; sender.blocklevel = 3; sender.defthrow = 100; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 5; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 225; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; } function createDarksaber() { attachMovie('darksaber', 'darksaber', _root.getNextHighestDepth()); sender = darksaber; sender.howler = false; sender.deadvar = 10; sender.xway = 40; sender.yway = -5; sender.stun = 0; sender._x = 8500; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 8; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 300; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; } function createPitbull(t) { attachMovie('pitbull', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.identifier = eden; if (eden >= 290) { eden = 100; } else { eden += 1; } 100; sender.deadvar = 30; sender.xway = Math.random() * 40 + 30; sender.yway = Math.random() * 12 - 6; sender._x = cam._x + t * cam._width; sender._y = 330; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() + 5; sender.nVerticleSpeed = Math.random() + 1; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 5; sender.nStartWidth = sender._width - 16; sender.nWait = 10; sender.nAttackWait = Math.ceil(Math.random() * 30) + 30; sender.nSlide = 0; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createAlien() { attachMovie('alien', 'alien', _root.getNextHighestDepth()); sender = alien; sender.barhard = 1; sender.bombs = 0; sender.lockhit = 0; sender.hits = 0; sender.hitter = false; sender.stun = 0; sender.form = 'man'; sender.deadvar = 10; sender.xway = 40; sender.yway = -5; sender.stun = 0; sender._x = 10000; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 5; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 600; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; } function createDefector2(t) { attachMovie('defector', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.stun = 0; sender._x = cam._x + t * cam._width / 1.5; sender.blocklevel = 3; sender.defthrow = 100; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 5; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 150; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createDarksaber2(t) { attachMovie('darksaber', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = _root['basicenemy' + basicenemy]; sender.howler = false; sender.deadvar = 10; sender.xway = 40; sender.yway = -5; sender.stun = 0; sender._x = cam._x + t * cam._width / 1.5; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 8; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 200; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createAlien2(t) { attachMovie('alien', 'alien', _root.getNextHighestDepth()); sender = alien; sender.barhard = 1; sender.bombs = 0; sender.lockhit = 0; sender.hits = 0; sender.hitter = false; sender.stun = 0; sender.form = 'man'; sender.deadvar = 10; sender.xway = 40; sender.yway = -5; sender.stun = 0; sender._x = cam._x + t * cam._width / 1.5; sender._y = Math.random() * 50 + 375; sender.bMoveable = true; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = 5; sender.nVerticleSpeed = 2.5; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 600; sender.nStartWidth = sender._width - 100; sender.nWait = 10; sender.nAttackWait = 50; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } function createDarkbaronFlag() { attachMovie('darkbaron', 'basicenemy' + basicenemy, _root.getNextHighestDepth()); sender = this['basicenemy' + basicenemy]; sender._x = cam._x + cam._width; sender.blocklevel = 3; sender._y = 400; sender.bMoveable = true; sender.nHold = 0; sender.nSlide = 0; sender.nWait = 0; sender.nMoveSpeed = Math.random() * 4 + 6; sender.nVerticleSpeed = Math.random() * 1.5 + 2; sender.nXscaled = sender._xscale; sender.nGravity = 0; sender.bDead = false; sender.nHealth = 999999; sender.nStartWidth = 130; sender.nWait = 10; sender.nAttackWait = 50; nSlide = 0; sender.weapon = 2; sender.cweapon = 2; sender._xscale = 40; sender._yscale = 40; sender.flag = false; if (basicenemy <= 30) { basicenemy += 1; } else { basicenemy = 1; } basicenemy; } score = 0; startAtBoss = false; var savefile = SharedObject.getLocal('RedBaron'); survivorunlock = savefile.data.survivor; ctfunlock = savefile.data.ctf; jaymanwep = savefile.data.jayman; sherbertwep = savefile.data.sherbert; fishwep = savefile.data.fish; dildowep = savefile.data.dildo; saberwep = savefile.data.saber; if (savefile.data.survivor == undefined) { survivorunlock = false; savefile.data.survivor = false; } if (savefile.data.ctf == undefined) { ctfunlock = false; savefile.data.ctf = false; } if (savefile.data.jayman == undefined) { jaymanwep = false; savefile.data.jayman = false; } if (savefile.data.sherbert == undefined) { sherbertwep = false; savefile.data.sherbert = false; } if (savefile.data.fish == undefined) { fishwep = false; savefile.data.fish = false; } if (savefile.data.dildo == undefined) { dildowep = false; savefile.data.dildo = false; } if (savefile.data.saber == undefined) { saberwep = false; savefile.data.saber = false; } stopAllSounds(); score = 0; specweapon = 0; _quality = 'HIGH'; var matrix = new Array(); matrix = matrix.concat([0.2, 0.2, 0.2, 0, 1]); matrix = matrix.concat([0.2, 0.2, 0.2, 0, 1]); matrix = matrix.concat([0.5, 0.5, 0.5, 0, 1]); matrix = matrix.concat([1, 1, 1, 1, 1]); var filter = new flash.filters.ColorMatrixFilter(matrix); sparker = false; playsounds = true; soundswait = 5; camshake = 0; storedeadframe = 1; eden = 100; coins = 1; smokes = 0; lockkeys = 0; var wasd = false; if (wasd) { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } else { left = 37; right = 39; up = 38; down = 40; sheath = 83; attack = 65; shield = 68; } stop(); } movieClip 3304 { } movieClip 3306 { } movieClip 3308 { } movieClip 3309 { } movieClip 3328 { } movieClip 3329 { frame 46 { stop(); } } movieClip 3330 { frame 1 { stop(); } } movieClip 3331 { frame 1 { story.onRelease = function () { _root.play(); }; survival.onRelease = function () { if (_root.survivorunlock) { _root.gotoAndStop('survival'); } }; capture.onRelease = function () { if (_root.ctfunlock) { _root.gotoAndStop('flag'); } }; credits.onRelease = function () { _root.gotoAndStop('credits'); }; howtoplay.onRelease = function () { _root.gotoAndStop('instructions'); }; morenewgroundsgames.onRelease = function () { getURL('http://newgrounds.com', '_blank'); }; } instance of movieClip 3330 { onClipEvent (load) { if (_root.survivorunlock) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 3330 { onClipEvent (load) { if (_root.ctfunlock) { gotoAndStop(2); } else { gotoAndStop(1); } } } } frame 3 { stop(); } movieClip 3344 { } movieClip 3364 { } movieClip 3366 { } movieClip 3371 { } movieClip 3375 { } movieClip 3403 { } movieClip 3425 { } movieClip 3470 { } movieClip 3503 { } movieClip 3517 { } movieClip 3555 { } movieClip 3590 { instance of movieClip 3366 { onClipEvent (load) { 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; } this._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; } } frame 2230 { _root.play(); } } movieClip 3597 { frame 242 { stop(); } } button 3599 { on (release) { _root.play(); } } frame 4 { function Waves() { switch (waves) { case 1: createWave(0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 2: createWave(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 3: createWave(0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 4: createWave(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 5: createWave(1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 6: createWave(0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 7: createWave(2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 8: createWave(0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 9: if (score >= 60) { bonusEnabled = true; } kills = 0; killsneeded = 1; createDarkbaron(); playMusic('boss1music'); } waves += 1; } stop(); fadeOutt(); _quality = 'MEDIUM'; bonusEnabled = false; enableBossStart = false; blockless = true; lastAttack = 1; lastlevelscore = 0; if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } var stTime = getTimer(); var crTime = getTimer(); var waiter = 70; var biggestCombo = 1; var level = 1; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = 1; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level1music'); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 700; camright = 340; camleft = 330; objects = 0; floorpiece.floorpiece['Point' + objects] = {'x': 2330, 'y': 20}; attachMovie('garbagecan', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; bombs = 0; legs = 1; floorpiece.floorpiece['Point' + objects] = {'x': 130, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; baronwaittime = 0; wave = false; waves = 1; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; fadeit = 0; _root.onEnterFrame = function () { if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (darkbaron != undefined) { darkbaron.filters = new Array(filter); depthCreator(darkbaron, darkbaron._y - 5); scaleChar(darkbaron); darkbaron._xscale = darkbaron.nFacing * -darkbaron.nScaleTime; darkbaron._yscale = darkbaron.nScaleTime; darkbaron.baron.weapon.gotoAndStop(2); landCheck(darkbaron, 1.2); baron = redbaron; if (!dead) { if (baronwaittime == 0) { if (darkbaron.bDead != true) { if (darkbaron.bRh && darkbaron.nSlide > 0) { darkbaron.nSlide = -10; darkbaron.twall.shake = 10; } if (darkbaron.bLh && darkbaron.nSlide < 0) { darkbaron.nSlide = 10; darkbaron.twall.shake = 10; } if (darkbaron.health < 40) { darkbaron.blocklevel = 1; } else { if (darkbaron.health < 80) { darkbaron.blocklevel = 2; } } if (specHitTest(range * redbaron.nFacing * 1.2, 26, darkbaron, redbaron) && attackLevel > 0 && Math.round(Math.random() * (darkbaron.blocklevel * 2)) == 1 && darkbaron.nWait < 40 && darkbaron.nHealth > 0) { darkbaron.gotoAndStop('shield'); attackLevel = 0; darkbaron.nWait = 10; darkbaron.bMoveable = false; redbaron.nSlide = -10 * redbaron.nFacing; darkbaron.rev = -1; sparks(this); } if (specHitTest(range * redbaron.nFacing / 1.2, 26, darkbaron, redbaron) && attackLevel > 0) { if (Math.abs(darkbaron._x - redbaron._x) < 100 && darkbaron.nHealth > 0) { darkbaron.addz = 5; } else { darkbaron.addz = 0; } darkbaron.gotoAndStop('hit'); Hit(); darkbaron.baron.gotoAndPlay(1); darkbaron.nSlide = Math.ceil(Math.random() * 3 + 5) * baron.nFacing; if (lockkeys == 0) { darkbaron.nHealth -= attackLevel; } else { darkbaron.nHealth -= 5; } darkbaron.nWait = Math.ceil(Math.random() * 10) + 20; } darkbaron.nThisXx = Math.round(darkbaron._x); darkbaron.nThisYy = Math.round(darkbaron._y); if (darkbaron.bMoveable && darkbaron._currentframe != 4) { if (!darkbaron.bLeftHit) { if (darkbaron._x > baron._x - 50) { darkbaron._x -= darkbaron.nMoveSpeed; darkbaron.nFacing = -1; } if (darkbaron._x < baron._x && darkbaron._x + 150 > baron._x) { darkbaron._x -= darkbaron.nMoveSpeed; darkbaron.nFacing = 1; } } else { if (darkbaron._x > baron._x - 50) { darkbaron.nFacing = -1; } if (darkbaron._x < baron._x && darkbaron._x + 150 > baron._x) { darkbaron.nFacing = 1; } } if (!darkbaron.bRightHit) { if (darkbaron._x < baron._x + 50) { darkbaron._x += darkbaron.nMoveSpeed; darkbaron.nFacing = 1; } if (darkbaron._x > baron._x && darkbaron._x - 150 < baron._x) { darkbaron._x += darkbaron.nMoveSpeed; darkbaron.nFacing = -1; } } else { if (darkbaron._x < baron._x + 50) { darkbaron.nFacing = 1; } if (darkbaron._x > baron._x && darkbaron._x - 150 < baron._x) { darkbaron.nFacing = -1; } } if (!darkbaron.bUpHit && darkbaron._y - 5 > baron._y) { darkbaron._y -= darkbaron.nVerticleSpeed; } if (!darkbaron.bDownHit && darkbaron._y + 5 < baron._y) { darkbaron._y += darkbaron.nVerticleSpeed; } darkbaron.nThisX = Math.round(darkbaron._x); darkbaron.nThisY = Math.round(darkbaron._y); if (darkbaron.nSlide == 0) { if (darkbaron.nThisXx == darkbaron.nThisX && darkbaron.nThisYy == darkbaron.nThisY) { darkbaron.gotoAndStop('idle'); } else { darkbaron.gotoAndStop('walk'); } } if (specHitTest(200 * darkbaron.nFacing, 5, redbaron, darkbaron) && darkbaron.nAttackWait == 0 && darkbaron.nHealth > 0) { darkbaron.gotoAndStop('attack'); darkbaron.nWait = Math.ceil(Math.random() * 5) + 10 * darkbaron.blocklevel; darkbaron.nAttackWait = Math.ceil(Math.random() * 10) + 10 * darkbaron.blocklevel; } } if (darkbaron.nWait > 0) { darkbaron.bMoveable = false; darkbaron.nWait -= 1; } else { darkbaron.bMoveable = true; } if (darkbaron.nAttackWait > 0) { darkbaron.nAttackWait -= 1; } if (!darkbaron.bRightHit && darkbaron.nSlide > 0) { darkbaron._x += darkbaron.nSlide; } if (!darkbaron.bLeftHit && darkbaron.nSlide < 0) { darkbaron._x += darkbaron.nSlide; } if (darkbaron.nSlide > 0) { --darkbaron.nSlide; } if (darkbaron.nSlide < 0) { darkbaron.nSlide += 1; } } if (darkbaron.nHealth <= 0 && darkbaron._currentframe == 1) { darkbaron.gotoAndStop('death'); darkbaron.bDead = true; } } } } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { if (weapon == 1) { lastAttack = attackLevel; if (specweapon == 4) { lastAttack = Math.round(attackLevel / 1.3); } else { if (specweapon == 5) { lastAttack = Math.round(attackLevel / 1.6); } else { if (specweapon == 2) { lastAttack = Math.round(attackLevel / 1.9); } else { if (specweapon == 1) { lastAttack = Math.round(attackLevel / 2.1); } else { if (specweapon == 3) { lastAttack = Math.round(attackLevel / 2.5); } } } } } } else { lastAttack = attackLevel; } } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } addWallNum = 400; if (redbaron._x + addWallNum > righthit && !wave && waves <= 10) { Waves(); wave = true; lefthit = righthit - 850; } if (waves > 9) { righthit = 5250; lefthit = 4000; } if (wave && killsneeded == kills) { wave = false; righthit += 500; } if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1.6 - 250; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 15)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 100; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } movieClip 3602 { } movieClip 3603 { } movieClip 3606 { } movieClip 3607 { frame 1 { stop(); } } movieClip 3610 { } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } movieClip 3612 { } movieClip 3616 { } movieClip 3630 { } movieClip 3631 { } movieClip 3636 { } movieClip 3639 { } movieClip 3642 { } movieClip 3646 { } movieClip 3647 { } movieClip 3651 { } movieClip 3652 { } movieClip 3653 { } movieClip 3658 { } movieClip 3661 { } movieClip 3662 { frame 5 { stop(); } } movieClip 3663 { frame 1 { this.cacheAsBitmap = true; } instance of movieClip 3642 { onClipEvent (enterFrame) { if (_root.combobar >= 90 && _root.combobar != 200) { _visible = true; } else { _visible = false; } } } instance of movieClip 3662 { onClipEvent (enterFrame) { if (_root.combobar < 200) { _visible = false; } else { if (_visible == false) { gotoAndPlay(1); _visible = true; } } } } } movieClip 3667 { } movieClip 3668 { } movieClip 3669 { instance of movieClip 3668 { onClipEvent (enterFrame) { if (_root.darkbaron != undefined) { if (_root.darkbaron.nHealth > 0) { gotoAndStop(76 - Math.round(_root.darkbaron.nHealth / 2)); } else { gotoAndStop(75); } } else { if (_root.defector != undefined) { if (_root.defector.nHealth > 0) { gotoAndStop(76 - Math.round(_root.defector.nHealth / 3)); } else { gotoAndStop(75); } } else { if (_root.darksaber != undefined) { if (_root.darksaber.nHealth > 0) { gotoAndStop(76 - Math.round(_root.darksaber.nHealth / 4)); } else { gotoAndStop(75); } } else { if (_root.alien != undefined) { if (_root.alien.nHealth > 0) { -800; if (_root.alien.nHealth <= 200) { gotoAndStop(76 - Math.round(_root.alien.nHealth / 2.666666666666667)); } else { if (_root.alien.nHealth <= 400) { gotoAndStop(76 - Math.round((_root.alien.nHealth - 200) / 2.666666666666667)); } else { gotoAndStop(76 - Math.round((_root.alien.nHealth - 400) / 2.666666666666667)); } } } else { gotoAndStop(75); } } } } } } } } movieClip 3672 { } movieClip 3676 { frame 1 { stop(); } } movieClip 3677 { frame 1 { this.cacheAsBitmap = true; } instance of movieClip 3676 { onClipEvent (load) { if (_root.level == 1) { this.gotoAndStop(1); } else { if (_root.level == 2) { this.gotoAndStop(2); } else { if (_root.level == 3) { this.gotoAndStop(3); } else { if (_root.level == 4) { this.gotoAndStop(4); } } } } } } } movieClip 3678 { } movieClip 3679 { } movieClip 3683 { } movieClip 3684 { instance of movieClip 3679 { onClipEvent (enterFrame) { this.gotoAndStop(Math.round(_root.alienhits / 3)); } } } movieClip 3686 { } movieClip 3688 { } movieClip 3690 { } movieClip 3693 { } movieClip 3695 { frame 1 { stop(); } frame 90 { gotoAndStop(1); } } movieClip 3703 { } movieClip 3704 { frame 1 { onEnterFrame = function () { if (_root.sherbertwep) { if (_root.specweapon == 1) { gotoAndStop(3); } else { gotoAndStop(1); } } else { gotoAndStop(2); } }; } } movieClip 3707 { } movieClip 3708 { frame 1 { onEnterFrame = function () { if (_root.specweapon == 0) { gotoAndStop(3); } else { gotoAndStop(1); } }; } } movieClip 3712 { } movieClip 3713 { frame 1 { onEnterFrame = function () { if (_root.jaymanwep) { if (_root.specweapon == 4) { gotoAndStop(3); } else { gotoAndStop(1); } } else { gotoAndStop(2); } }; } } movieClip 3716 { } movieClip 3717 { frame 1 { onEnterFrame = function () { if (_root.fishwep) { if (_root.specweapon == 5) { gotoAndStop(3); } else { gotoAndStop(1); } } else { gotoAndStop(2); } }; } } movieClip 3720 { } movieClip 3721 { frame 1 { onEnterFrame = function () { if (_root.saberwep) { if (_root.specweapon == 2) { gotoAndStop(3); } else { gotoAndStop(1); } } else { gotoAndStop(2); } }; } } movieClip 3724 { } movieClip 3725 { frame 1 { onEnterFrame = function () { if (_root.dildowep) { if (_root.specweapon == 3) { gotoAndStop(3); } else { gotoAndStop(1); } } else { gotoAndStop(2); } }; } } movieClip 3727 { } button 3729 { on (release) { _root.bum = false; } } movieClip 3731 { frame 1 { _root._quality = 'MEDIUM'; } frame 2 { _root._quality = 'HIGH'; sel.txt = ''; sel.sherbert.onRollOver = function () { if (!_root.sherbertwep && !_root.bumselect) { sel.txt = 'Yeah, I stole Tom Fulp\'s cat, what\rof it?\r$1400'; } }; sel.jay.onRollOver = function () { if (!_root.jaymanwep && !_root.bumselect) { sel.txt = 'When I\'m feeling anxious\r\r$400'; } }; sel.dildo.onRollOver = function () { if (!_root.dildowep && !_root.bumselect) { sel.txt = 'This Dilly-O was given to me\rby Angry Faic HIMSELF..\r$1800'; } }; sel.saber.onRollOver = function () { if (!_root.saberwep && !_root.bumselect) { sel.txt = 'Got this at the last comic con\r\r$1100'; } }; sel.fish.onRollOver = function () { if (!_root.fishwep && !_root.bumselect) { sel.txt = 'Fish, it\'s what\'s for dinner\r\r$800'; } }; sel.fish.onRelease = function () { if (_root.fishwep) { _root.specweapon = 5; } if (!_root.fishwep && _root.score >= 800 && !_root.bumselect) { _root.savefile.data.fish = true; _root.fishwep = true; _root.score -= 800; } }; sel.jay.onRelease = function () { if (_root.jaymanwep) { _root.specweapon = 4; } if (!_root.jaymanwep && _root.score >= 400 && !_root.bumselect) { _root.savefile.data.jayman = true; _root.jaymanwep = true; _root.score -= 400; } }; sel.saber.onRelease = function () { if (_root.saberwep) { _root.specweapon = 2; } if (!_root.saberwep && _root.score >= 1100 && !_root.bumselect) { _root.savefile.data.saber = true; _root.saberwep = true; _root.score -= 1100; } }; sel.sherbert.onRelease = function () { if (_root.sherbertwep) { _root.specweapon = 1; } if (!_root.sherbertwep && _root.score >= 1400 && !_root.bumselect) { _root.savefile.data.sherbert = true; _root.sherbertwep = true; _root.score -= 1400; } }; sel.sword.onRelease = function () { _root.specweapon = 0; }; sel.dildo.onRelease = function () { if (_root.dildowep) { _root.specweapon = 3; } if (!_root.dildowep && _root.score >= 1800 && !_root.bumselect) { _root.savefile.data.dildo = true; _root.dildowep = true; _root.score -= 1800; } }; onEnterFrame = function () { if (_root.bumselect) { scorekeeper = 'Select'; } else { scorekeeper = '$' + _root.score; } }; } } movieClip 3732 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / part._width; var v3 = sY / part._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; } part._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; } instance of movieClip 3631 { onClipEvent (enterFrame) { if (_root.wave || _root.level > 4) { _visible = false; } else { _visible = true; } } } instance of movieClip 3677 { onClipEvent (enterFrame) { if ((_root.darkbaron != undefined || _root.defector != undefined || _root.darksaber != undefined || _root.alien != undefined) && _root.level <= 4) { _visible = true; } else { _visible = false; } } } instance of movieClip 3684 { onClipEvent (enterFrame) { if (_root.alien.lockhit > 0) { _visible = true; } else { _visible = false; } } } instance of movieClip 3686 { onClipEvent (enterFrame) { if (_root.lastAttack != lastattack) { shake = 5; } if (_root.lastAttack > 0) { c = _root.lastAttack; combocounter = _root.lastAttack + 'Hits'; if (c > _root.biggestCombo) { _root.biggestCombo = c; } _visible = true; } else { _visible = false; } lastattack = _root.lastAttack; if (shake > 0) { _x = _x + (Math.random() * 8 - 4); _y = _y + (Math.random() * 8 - 4); shake -= 1; } else { _x = xx; _y = yy; } } onClipEvent (load) { xx = _x; yy = _y; shake = 0; } } instance of movieClip 3688 { onClipEvent (enterFrame) { if (_root.level < 5 || _root.level > 6) { _visible = false; } if (_root.level == 5) { combocounter = _root.killss + ' Kills'; if (_root.killss != kills) { shake = 7; } kills = _root.killss; } else { combocounter = _root.captures + ' Flags'; if (_root.captures != capts) { shake = 7; } capts = _root.captures; } if (shake > 0) { _x = _x + (Math.random() * 10 - 5); _y = _y + (Math.random() * 10 - 5); shake -= 1; } else { _x = xx; _y = yy; } } onClipEvent (load) { xx = _x; yy = _y; shake = 0; } } instance of movieClip 3690 { onClipEvent (enterFrame) { if (_root.level != 6) { _visible = false; } combocounter = _root.captures2 + ' Flags'; if (_root.captures2 != capts) { shake = 7; } capts = _root.captures2; if (shake > 0) { _x = _x + (Math.random() * 10 - 5); _y = _y + (Math.random() * 10 - 5); shake -= 1; } else { _x = xx; _y = yy; } } onClipEvent (load) { xx = _x; yy = _y; shake = 0; } } instance of movieClip 3693 { onClipEvent (enterFrame) { oTime = getTimer(); if (_root.level == 10) { if (oTime - 1000 > cTime) { timer -= 1; cTime = getTimer(); } if (timer <= 0) { _root.dwall2.removeMovieClip(); _root.level = _root.oldlevel; _root.gotoAndStop('level' + _root.oldlevel + 't'); } } else { _visible = false; } } onClipEvent (load) { timer = 25; cTime = getTimer(); } } instance of movieClip 3731 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.bum) { gotoAndStop(2); _visible = true; _root.left = null; _root.right = null; _root.up = null; _root.down = null; _root.sheath = null; _root.attack = null; _root.shield = null; _root.dead = true; } else { gotoAndStop(1); _visible = false; _root.left = 37; _root.right = 39; _root.up = 38; _root.down = 40; _root.sheath = 83; _root.attack = 65; _root.shield = 68; if (_root.health > 0) { _root.dead = false; } } } } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 15)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1.6 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 100; } } frame 5 { clearScreen(false); fadeit = 50; fadeIn._alpha = 100; fadeIn._x = 0; fadeIn._y = 0; onEnterFrame = function () { if (fadeit >= 0) { fadeIn._alpha -= 2; fadeit -= 1; if (fadeIn._alpha <= 0) { fadeIn.removeMovieClip(); } } }; stop(); } button 3744 { on (release) { if (totalcoinage > 0) { _root.play(); } } } movieClip 3751 { frame 1 { sTime = getTimer(); cTime = getTimer(); difTimer = _root.crTime - _root.stTime; origscore = _root.score; bbbb = 0; if (_root.level == 1) { tmr = 240; } else { if (_root.level == 2) { if (_root.startAtBoss) { tmr = 100; } else { tmr = 400; } } else { if (_root.level == 3) { if (_root.startAtBoss) { tmr = 300; } else { tmr = 900; } } else { if (_root.startAtBoss) { tmr = 450; } else { tmr = 1200; } } } } _root.startAtBoss = false; if (Math.round(tmr - difTimer / 1000) > 0) { timePlus = Math.round(tmr - difTimer / 1000); } else { timePlus = 0; } i = 1; totalcoinage = 0; coins = 1; time = 0; tbon = timePlus; if (_root.level == 1) { groundsgold = 0; coinage = _root.score; } else { groundsgold = _root.lastlevelscore; coinage = _root.score - _root.lastlevelscore; } cCoinage = coinage; coinager = 0; if (_root.blockless) { blockager = 250; blockage = 250; } else { blockager = 0; blockage = 0; } btn._visible = false; onEnterFrame = function () { if (_root.fadeit <= 0) { cTime = getTimer(); if (cTime - 100 > sTime) { sTime = getTimer(); if (cCoinage != 0) { coins += 1; attachMovie('completecoin', 'coin' + coins, coins); sender = this['coin' + coins]; sender._x = 110; sender._y = 110; if (cCoinage >= 10 || cCoinage <= -10) { if (cCoinage >= 10) { cCoinage -= 10; sender.val = 10; } else { cCoinage += 10; sender.val = -10; } } else { sender.val = cCoinage; cCoinage = 0; } coinager = coinage - cCoinage; } else { if (i <= _root.biggestCombo) { longestcombo = i + ' X 10'; i += 1; coins += 1; attachMovie('completecoin', 'coin' + coins, coins); sender = this['coin' + coins]; sender._x = 230; sender._y = 130; sender.val = 10; } else { if (tbon > 0) { coins += 1; attachMovie('completecoin', 'coin' + coins, coins); sender = this['coin' + coins]; sender._x = 92; sender._y = 160; if (tbon >= 10) { tbon -= 10; sender.val = 10; } else { sender.val = tbon; tbon = 0; } time = timePlus - tbon; } else { if (blockage > 0) { coins += 1; attachMovie('completecoin', 'coin' + coins, coins); sender = this['coin' + coins]; sender._x = 107; sender._y = 188; if (blockage >= 10) { blockage -= 10; sender.val = 10; } else { sender.val = blockage; blockage = 0; } bbbb = blockager - blockage; } else { btn._visible = true; if (_root.level == 1) { totalcoinage = groundsgold; } else { totalcoinage = groundsgold - origscore; } _root.lastlevelscore = groundsgold; _root.score = _root.lastlevelscore; } } } } } } }; gotoAndStop(_root.level); } } frame 6 { function Waves() { switch (waves) { case 1: createWave(0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 2: createWave(0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 3: createWave(0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 4: createWave(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 5: createWave(0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 6: pkill = -kills + 1; createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); kills = 0; killsneeded = pkill; break; case 7: createWave(0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 8: createWave(0, 0, 0, 0, 1, 1, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 9: createWave(0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 10: createWave(0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 11: createWave(0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 12: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 13: if (score - lastlevelscore >= 100) { bonusEnabled = true; } enableBossStart = true; walls = 0; brkwall1.removeMovieClip(); dwall1.removeMovieClip(); createWall(6000, false); createWall(7300, false); righthit += 1500; lefthit -= 1500; kills = 0; killsneeded = 1; createDefector(); playMusic('boss1music'); } waves += 1; } stop(); fadeOutt(); bonusEnabled = false; enableBossStart = false; if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } blockless = true; lastAttack = 1; var stTime = getTimer(); var crTime = getTimer(); var waiter = 70; var biggestCombo = 1; var level = 2; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = 2; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level2music'); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 700; camright = 340; camleft = 330; objects = 0; attachMovie('bumsketch', 'bummy', this.getNextHighestDepth()); bummy._x = 2000; bummy._y = 360; floorpiece.floorpiece['Point' + objects] = {'x': 3550, 'y': 20}; attachMovie('garbagecan', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': -900, 'y': 25}; attachMovie('mailbox', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; bombs = 2; legs = 2; floorpiece.floorpiece['Point' + objects] = {'x': -100, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i = 1; while (i <= 10) { floorpiece.floorpiece['Point' + objects] = {'x': -2000 + 120 * i + Math.random() * 100 - 50, 'y': Math.random() * 130 + 10}; attachMovie('grass', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i += 1; } trees = 0; i = 1; while (i <= 4) { attachMovie('tree1', 'Tree' + trees, i); this['Tree' + trees]._x = 500 * i + Math.random() * 400 - 550; this['Tree' + trees]._y = 350 - Math.random() * 20; trees += 1; i += 1; } baronwaittime = 0; wave = false; waves = 1; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; upwallrise = false; if (startAtBoss) { lefthit = 5850; righthit = 6700; redbaron._x += 6000; waves = 13; } _root.onEnterFrame = function () { if (attackLevel > 0 && Math.abs(redbaron._x - bummy._x) < 100 && Math.abs(redbaron._y - bummy._y) < 30 && lockkeys == 0 && cam.part._xscale == 100) { bum = true; bumselect = false; } if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (combocounter > biggestCombo) { biggestCombo = combocounter; } if (redbaron._x > 2900 && !upwallrise) { createWall(3200, true); upwallrise = true; } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { if (weapon == 1) { lastAttack = attackLevel; if (specweapon == 4) { lastAttack = Math.round(attackLevel / 1.3); } else { if (specweapon == 5) { lastAttack = Math.round(attackLevel / 1.6); } else { if (specweapon == 2) { lastAttack = Math.round(attackLevel / 1.9); } else { if (specweapon == 1) { lastAttack = Math.round(attackLevel / 2.1); } else { if (specweapon == 3) { lastAttack = Math.round(attackLevel / 2.5); } } } } } } else { lastAttack = attackLevel; } } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } if ((redbaron.bRh || dwall1.health < 150) && waves == 6 && !fwall) { fwall = true; kills = 1; lefthit += 500; killsneeded = 2; } if (fwall && kills >= 0 && dwall1.health > 0 && waves < 8) { createSnake(-1.5); kills -= 1; } if (waves == 6) { addWallNum = 120; } else { addWallNum = 400; } if (redbaron._x + addWallNum > righthit && !wave && waves <= 13) { Waves(); wave = true; lefthit = righthit - 850; } if (waves == 14) { righthit = 7250; lefthit = 5950; } if (wave && killsneeded == kills) { wave = false; righthit += 500; } if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1.6 - 250; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 15)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 100; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } movieClip 3755 { } movieClip 3756 { } movieClip 3759 { } movieClip 3760 { frame 1 { stop(); } } movieClip 3763 { } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 15)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1.6 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 100; } } frame 7 { clearScreen(false); fadeit = 50; fadeIn._alpha = 100; fadeIn._x = 0; fadeIn._y = 0; onEnterFrame = function () { if (fadeit >= 0) { fadeIn._alpha -= 2; fadeit -= 1; if (fadeIn._alpha <= 0) { fadeIn.removeMovieClip(); } } }; stop(); } frame 8 { function Waves() { switch (waves) { case 1: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 2: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 3: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 4: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 5: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 6: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 7: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 8: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 9: pkill = -kills + 2; createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); kills = 0; killsneeded = pkill; break; case 10: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 11: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 12: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 13: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 14: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 15: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 16: if (score - lastlevelscore >= 140) { bonusEnabled = true; } enableBossStart = true; walls = 0; brkwall1.removeMovieClip(); dwall1.removeMovieClip(); createWall(7500, false); createWall(8800, false); righthit += 1500; lefthit -= 1500; kills = 0; killsneeded = 1; playMusic('boss1music'); createDarksaber(); createEmptyMovieClip('hen', 461); killsneeded = 99999; } waves += 1; } stop(); fadeOutt(); bonusEnabled = false; enableBossStart = false; if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } blockless = true; lastAttack = 1; var stTime = getTimer(); var crTime = getTimer(); var waiter = 70; var biggestCombo = 1; var level = 3; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var blackhoodblast = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(300); var weapon = 1; var cweapon = 3; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level3music'); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 700; camright = 340; camleft = 330; objects = 0; upwallrise = false; floorpiece.floorpiece['Point' + objects] = {'x': 7680, 'y': 25}; attachMovie('garbagecan', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': 1000, 'y': 30}; attachMovie('mailbox', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i = 1; while (i <= 3) { floorpiece.floorpiece['Point' + objects] = {'x': -2000 + 480 * i + Math.random() * 150 - 75, 'y': Math.random() * 130 + 10}; attachMovie('grass', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i += 1; } trees = 0; i = 1; while (i <= 4) { attachMovie('tree2', 'Tree' + trees, i); this['Tree' + trees]._x = 500 * i + Math.random() * 400 - 550; this['Tree' + trees]._y = 340; trees += 1; i += 1; } bombs = 4; legs = 3; floorpiece.floorpiece['Point' + objects] = {'x': -300, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': 400, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; waves = 1; baronwaittime = 0; wave = false; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; if (startAtBoss) { lefthit = 7350; righthit = 8200; redbaron._x += 7500; waves = 16; } _root.onEnterFrame = function () { if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (combocounter > biggestCombo) { biggestCombo = combocounter; } if (redbaron._x > 4400 && !upwallrise) { createWall(4700, true); upwallrise = true; } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { if (weapon == 1) { lastAttack = attackLevel; if (specweapon == 4) { lastAttack = Math.round(attackLevel / 1.3); } else { if (specweapon == 5) { lastAttack = Math.round(attackLevel / 1.6); } else { if (specweapon == 2) { lastAttack = Math.round(attackLevel / 1.9); } else { if (specweapon == 1) { lastAttack = Math.round(attackLevel / 2.1); } else { if (specweapon == 3) { lastAttack = Math.round(attackLevel / 2.5); } } } } } } else { lastAttack = attackLevel; } } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } if ((redbaron.bRh || dwall1.health < 150) && waves == 9 && !fwall) { fwall = true; kills = 2; lefthit += 500; killsneeded = 3; } if (fwall && kills >= 0 && dwall1.health > 0 && waves < 11) { createNekrodin(-1.1); kills -= 1; } if (waves == 9) { addWallNum = 120; } else { addWallNum = 400; } if (redbaron._x + addWallNum > righthit && !wave && waves <= 16) { Waves(); wave = true; lefthit = righthit - 850; } if (waves == 17) { righthit = 8750; lefthit = 7450; } if (wave && killsneeded == kills) { wave = false; righthit += 500; } if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1.6 - 250; fg._x = cam._x + redbaron._x / -0.6; floorpiece.gotoAndStop(Math.round(redbaron._x / 15)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 100; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } movieClip 3767 { } movieClip 3768 { } movieClip 3772 { } movieClip 3773 { frame 1 { stop(); } } movieClip 3778 { } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 15)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1.6 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 100; } } frame 9 { clearScreen(false); fadeit = 50; fadeIn._alpha = 100; fadeIn._x = 0; fadeIn._y = 0; onEnterFrame = function () { if (fadeit >= 0) { fadeIn._alpha -= 2; fadeit -= 1; if (fadeIn._alpha <= 0) { fadeIn.removeMovieClip(); } } }; stop(); } frame 10 { function Waves() { switch (waves) { case 1: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 2: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 3: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 4: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 5: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 6: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 7: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 8: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); break; case 9: pkill = -kills + 2; kills = 0; killsneeded = pkill; break; case 10: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 11: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 12: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 13: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 14: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 15: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 16: fwall = false; golemdead = false; createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); break; case 17: pkill = -kills + 2; kills = 0; killsneeded = pkill; break; case 18: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 19: if (score - lastlevelscore >= 180) { bonusEnabled = true; } enableBossStart = true; walls = 0; brkwall1.removeMovieClip(); dwall1.removeMovieClip(); createWall(9000, false); createWall(10300, false); righthit += 1500; lefthit -= 1500; kills = 0; killsneeded = 1; playMusic('boss1music'); createAlien(); killsneeded = 99999; } waves += 1; } stop(); fadeOutt(); bonusEnabled = false; enableBossStart = false; if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } blockless = true; lastAttack = 1; var stTime = getTimer(); var crTime = getTimer(); var waiter = 70; var biggestCombo = 1; var level = 4; var alienhits = 0; var golemdead = false; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var blackhoodblast = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = 4; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level4music'); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 700; camright = 340; camleft = 330; objects = 0; attachMovie('bumsketch', 'bummy', this.getNextHighestDepth()); bummy._x = 3500; bummy._y = 360; floorpiece.floorpiece['Point' + objects] = {'x': 6330, 'y': 20}; attachMovie('garbagecan', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; bombs = 10; legs = 5; floorpiece.floorpiece['Point' + objects] = {'x': -600, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': -270, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': 60, 'y': 60}; attachMovie('crate', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i = 1; while (i <= 6) { floorpiece.floorpiece['Point' + objects] = {'x': -800 + 30 * i, 'y': 10 + i * 20}; attachMovie('cone', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; i += 1; } baronwaittime = 0; wave = false; waves = 1; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; if (startAtBoss) { lefthit = 8850; righthit = 9700; redbaron._x += 9000; waves = 19; } _root.onEnterFrame = function () { if (attackLevel > 0 && Math.abs(redbaron._x - bummy._x) < 100 && Math.abs(redbaron._y - bummy._y) < 30 && lockkeys == 0 && cam.part._xscale == 100) { bum = true; bumselect = false; } if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (combocounter > biggestCombo) { biggestCombo = combocounter; } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { if (weapon == 1) { lastAttack = attackLevel; if (specweapon == 4) { lastAttack = Math.round(attackLevel / 1.3); } else { if (specweapon == 5) { lastAttack = Math.round(attackLevel / 1.6); } else { if (specweapon == 2) { lastAttack = Math.round(attackLevel / 1.9); } else { if (specweapon == 1) { lastAttack = Math.round(attackLevel / 2.1); } else { if (specweapon == 3) { lastAttack = Math.round(attackLevel / 2.5); } } } } } } else { lastAttack = attackLevel; } } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } if ((waves == 9 || waves == 17) && !fwall) { fwall = true; kills = 1; if (waves != 9 && waves != 17) { lefthit += 500; } killsneeded = 2; } if (fwall && kills >= 0 && !golemdead && waves < 11) { createRoboknight(2.5 * Math.round(Math.random()) * 2 - 2.5); kills -= 1; } else { if (fwall && kills >= 0 && !golemdead && waves < 19) { createSkullz(2 * Math.round(Math.random()) * 2 - 2); kills -= 1; } } addWallNum = 400; if (redbaron._x + addWallNum > righthit && !wave && waves <= 19 && (waves != 9 || waves == 9 && golemdead) && (waves != 17 || waves == 17 && golemdead)) { Waves(); wave = true; lefthit = righthit - 850; } if (waves == 20) { righthit = 10250; lefthit = 8950; } if (wave && killsneeded <= kills) { wave = false; righthit += 500; } if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1.6 - 250; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 15)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 100; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } movieClip 3782 { } movieClip 3783 { } movieClip 3786 { } movieClip 3787 { frame 1 { stop(); } } movieClip 3790 { } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 15)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1.6 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 100; } } frame 11 { clearScreen(false); fadeit = 50; fadeIn._alpha = 100; fadeIn._x = 0; fadeIn._y = 0; onEnterFrame = function () { if (fadeit >= 0) { fadeIn._alpha -= 2; fadeit -= 1; if (fadeIn._alpha <= 0) { fadeIn.removeMovieClip(); } } }; stop(); } frame 12 { stop(); } movieClip 3812 { instance of movieClip 3366 { onClipEvent (load) { 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; } this._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; } } frame 584 { _root.play(); } } frame 13 { stop(); if (savefile.data.survivor != true) { unlocks.play(); savefile.data.survivor = true; savefile.flush(); } playerMode = 'Story'; submitted = false; playerScore = score; } movieClip 3816 { } movieClip 3817 { } button 3819 { on (release) { _root.gotoAndStop('menu'); } } movieClip 3821 { } button 3826 { on (release) { gameId = 259; var myScore = new MC_scoreTable(gameId); myScore.setUser(playerName); myScore.setScore(playerScore); myScore.setTable(playerMode); var result = myScore.submitScore(); } } movieClip 3828 { frame 1 { stop(); } } frame 14 { function Waves() { switch (waves) { case 1: createWave(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 2: createWave(2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 3: createWave(0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 4: createWave(0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 5: createWave(1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 6: createWave(0, 0, 0, 0, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 7: createWave(0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 8: createWave(0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 9: createWave(0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 10: createWave(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 11: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 12: createWave(0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 13: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 14: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 15: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 16: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 17: createWave(0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 18: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 19: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 20: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 21: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 22: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 23: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 24: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 25: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 26: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 27: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); break; case 28: createWave(0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); break; case 29: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0); break; case 30: createWave(0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0); break; case 31: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0); break; case 32: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0); break; case 33: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0); break; case 34: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0); break; case 35: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0); break; case 36: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0); break; case 37: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0); break; case 38: createWave(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0); break; waves = 35; } waves += 1; } stop(); fadeOutt(); eden = 100; score = 0; if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } lastAttack = 1; var waiter = 70; var killss = 0; var level = 5; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var blackhoodblast = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = 4; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level4music', 5); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 2000; camright = 340; camleft = 330; objects = 0; bombs = 10; legs = 5; baronwaittime = 0; wave = false; waves = 1; createEmptyMovieClip('hen', 461); fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; Waves(); killer = 0; mloop = 2500; _root.onEnterFrame = function () { if (killss >= 100 && savefile.data.ctf != true) { cam.unlocks.play(); savefile.data.ctf = true; savefile.flush(); } if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (mloop > 0) { mloop -= 1; } else { i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 5); mloop = 2500; } if (killer < kills) { killss -= killer - kills; } killer = kills; if (killsneeded == kills) { Waves(); } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { lastAttack = attackLevel; } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } addWallNum = 400; if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1 - 250; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 5)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 150; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } movieClip 3832 { } movieClip 3835 { } movieClip 3836 { frame 1 { stop(); } } movieClip 3839 { } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 5)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 150; } } frame 15 { clearScreen(false); } frame 16 { function darkBaronAI(tgt) { if (!(tgt.nSlide > -15 && tgt.nSlide < 15)) { tgt.nSlide = 0; } tgt.filters = new Array(filter); depthCreator(tgt, tgt._y - 5); scaleChar(tgt); tgt._xscale = tgt.nFacing * -tgt.nScaleTime; tgt._yscale = tgt.nScaleTime; if (!tgt.flag || loneflaglb != undefined) { tgt.baron.weapon.gotoAndStop(2); } else { tgt.baron.weapon.gotoAndStop(1); tgt.baron.weapon.blade.gotoAndStop(7); } landCheck(tgt, 1.2); if (loneflagrb != undefined) { baron = loneflagrb; tgt.xway = 5; tgt.nMoveSpeed = 10; } else { if (loneflaglb != undefined) { baron = loneflaglb; tgt.xway = 5; tgt.nMoveSpeed = 10; } else { if (!rb && (!tgt.flag || basicenemy == 2)) { baron = redbaron; tgt.xway = 50; tgt.nMoveSpeed = 14; } else { if (lb) { baron = Object0; tgt.xway = 5; tgt.nMoveSpeed = 12; } else { baron = Object1; tgt.xway = 5; tgt.nMoveSpeed = 8; } } } } if (tgt.flag) { tgt.nMoveSpeed = 8; } if (!dead) { if (loneflagrb.atLeast <= 0 && loneflagrb != undefined && Math.abs(tgt._x - loneflagrb._x) < 130 && Math.abs(tgt._y - loneflagrb._y) < 40 && loneflagrb.xspeed < 1 && loneflagrb.speed < 1) { rb = true; comboText('a', redbaron._x, redbaron._y - 100); loneflagrb.removeMovieClip(); } if (loneflaglb.atLeast <= 0 && loneflaglb != undefined && Math.abs(tgt._x - loneflaglb._x) < 130 && Math.abs(tgt._y - loneflaglb._y) < 40 && loneflaglb.xspeed < 1 && loneflaglb.speed < 1) { lb = false; tgt.flag = true; loneflaglb.removeMovieClip(); } if (lb && Math.abs(tgt._x - Object0._x) < 140 && Math.abs(tgt._y - Object0._y) < 40) { lb = false; tgt.flag = true; } else { if (!lb && Math.abs(tgt._x - Object1._x) < 140 && Math.abs(tgt._y - Object1._y) < 40 && tgt.flag && rb) { lb = true; captures2 += 1; tgt.flag = false; } } if (baronwaittime == 0) { if (tgt.bDead != true) { if (tgt.bRh && tgt.nSlide > 0) { tgt.nSlide = -10; tgt.twall.shake = 10; } if (tgt.bLh && tgt.nSlide < 0) { tgt.nSlide = 10; tgt.twall.shake = 10; } if (tgt.health < 40) { tgt.blocklevel = 1; } else { if (tgt.health < 80) { tgt.blocklevel = 2; } } if (specHitTest(range * redbaron.nFacing * 1.2, 26, tgt, redbaron) && attackLevel > 0 && Math.round(Math.random() * (tgt.blocklevel * 2)) == 1 && tgt.nWait < 40 && tgt.nHealth > 0) { tgt.gotoAndStop('shield'); attackLevel = 0; tgt.nWait = 10; tgt.bMoveable = false; redbaron.nSlide = -10 * redbaron.nFacing; tgt.rev = -1; sparks(this); } if (specHitTest(range * redbaron.nFacing / 1.2, 26, tgt, redbaron) && attackLevel > 0) { if (tgt.flag && loneflaglb == undefined) { _root.attachMovie('loneflag', 'loneflaglb', _root.getNextHighestDepth()); loneflaglb.eden = 'lb'; loneflaglb._x = redbaron._x + 100 * redbaron.nFacing; loneflaglb._y = redbaron._y; loneflaglb.dir = redbaron.nFacing; lb = true; tgt.flag = false; } if (Math.abs(tgt._x - redbaron._x) < 100 && tgt.nHealth > 0) { tgt.addz = 5; } else { tgt.addz = 0; } tgt.gotoAndStop('hit'); Hit(); tgt.baron.gotoAndPlay(1); tgt.nSlide = Math.ceil(Math.random() * 3 + 5) * redbaron.nFacing; if (lockkeys == 0) { tgt.nHealth -= attackLevel; } else { tgt.nHealth -= 5; } tgt.nWait = Math.ceil(Math.random() * 10) + 20; } tgt.nThisXx = Math.round(tgt._x); tgt.nThisYy = Math.round(tgt._y); if (tgt.bMoveable && tgt._currentframe != 4) { if (!tgt.bLeftHit) { if (tgt._x > baron._x - tgt.xway) { tgt._x -= tgt.nMoveSpeed; tgt.nFacing = -1; } if (tgt._x < baron._x && tgt._x + tgt.xway + 100 > baron._x) { tgt._x -= tgt.nMoveSpeed; tgt.nFacing = 1; } } else { if (tgt._x > baron._x - tgt.xway) { tgt.nFacing = -1; } if (tgt._x < baron._x && tgt._x + tgt.xway + 100 > baron._x) { tgt.nFacing = 1; } } if (!tgt.bRightHit) { if (tgt._x < baron._x + tgt.xway) { tgt._x += tgt.nMoveSpeed; tgt.nFacing = 1; } if (tgt._x > baron._x && tgt._x - (tgt.xway + 100) < baron._x) { tgt._x += tgt.nMoveSpeed; tgt.nFacing = -1; } } else { if (tgt._x < baron._x + tgt.xway) { tgt.nFacing = 1; } if (tgt._x > baron._x && tgt._x - (tgt.xway + 100) < baron._x) { tgt.nFacing = -1; } } if (!tgt.bUpHit && tgt._y - 5 > baron._y) { tgt._y -= tgt.nVerticleSpeed; } if (!tgt.bDownHit && tgt._y + 5 < baron._y) { tgt._y += tgt.nVerticleSpeed; } tgt.nThisX = Math.round(tgt._x); tgt.nThisY = Math.round(tgt._y); if (tgt.nSlide == 0) { if (tgt.nThisXx == tgt.nThisX && tgt.nThisYy == tgt.nThisY) { tgt.gotoAndStop('idle'); } else { tgt.gotoAndStop('walk'); } } if (specHitTest(200 * tgt.nFacing, 5, redbaron, tgt) && tgt.nAttackWait == 0 && tgt.nHealth > 0) { tgt.gotoAndStop('attack'); tgt.nWait = Math.ceil(Math.random() * 5) + 10 * tgt.blocklevel; tgt.nAttackWait = Math.ceil(Math.random() * 10) + 10 * tgt.blocklevel; } } if (tgt.nWait > 0) { tgt.bMoveable = false; tgt.nWait -= 1; } else { tgt.bMoveable = true; } if (tgt.nAttackWait > 0) { tgt.nAttackWait -= 1; } if (!tgt.bRightHit && tgt.nSlide > 0) { tgt._x += tgt.nSlide; } if (!tgt.bLeftHit && tgt.nSlide < 0) { tgt._x += tgt.nSlide; } if (tgt.nSlide > 0) { --tgt.nSlide; } if (tgt.nSlide < 0) { tgt.nSlide += 1; } } if (tgt.nHealth <= 0 && tgt._currentframe == 1) { tgt.gotoAndStop('death'); tgt.bDead = true; } } } } stop(); fadeOutt(); if (jaymanwep || sherbertwep || fishwep || dildowep || saberwep) { bum = true; bumselect = true; } else { bum = false; } score = 0; rb = true; lb = true; basicenemy = 1; lastAttack = 1; var waiter = 70; var captures = 0; var captures2 = 0; var level = 6; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var blackhoodblast = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = 4; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level4music', 5); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 5000; camright = 340; camleft = 330; objects = 0; bombs = 10; legs = 5; baronwaittime = 0; wave = false; waves = 1; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; killer = 0; mloop = 2500; objects = 0; floorpiece.floorpiece['Point' + objects] = {'x': -1600, 'y': 80}; attachMovie('stand', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; floorpiece.floorpiece['Point' + objects] = {'x': 2390, 'y': 80}; attachMovie('stand', 'Object' + objects, this.getNextHighestDepth()); this['Object' + objects].objectz = objects; objects += 1; _root.onEnterFrame = function () { if (captures2 >= 3) { health -= 50; redbaron.gotoAndStop('death'); dead = true; } if (specweapon == 6) { redbaron.nMoveSpeed = 8; } else { redbaron.nMoveSpeed = 12; } if (basicenemy == 2 && captures >= 3) { createDarkbaronFlag(); } else { if (basicenemy == 3 && captures >= 6) { createDarkbaronFlag(); } } i = 1; while (i <= basicenemy) { darkBaronAI(this['basicenemy' + i]); ++i; } if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (mloop > 0) { mloop -= 1; } else { i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 5); mloop = 2500; } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { lastAttack = attackLevel; } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } addWallNum = 400; if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -2.9 - 300; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 13)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 150; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= walls) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 5) { if (wall.health <= 25 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } if (waiter == 1) { createDarkbaronFlag(); } }; walls = 0; } movieClip 3841 { } movieClip 3842 { frame 1 { stop(); } } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 13)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -2.9 - 300; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 150; } } frame 17 { clearScreen(false); } frame 18 { clearScreen(false); stop(); st.cashhh = '$' + lastlevelscore; _quality = 'HIGH'; if (level <= 4) { playerMode = 'Story'; playerScore = score; } else { if (level == 5) { playerMode = 'Survivor'; playerScore = killss; } else { playerMode = 'Capture'; playerScore = captures; } } submitted = false; startAtBoss = false; morenewgroundsgames.onRelease = function () { getURL('http://newgrounds.com', '_blank'); }; } button 3847 { on (release) { gameId = 259; var myScore = new MC_scoreTable(gameId); myScore.setUser(playerName); myScore.setScore(playerScore); myScore.setTable(playerMode); var result = myScore.submitScore(); _root.gotoAndStop('menu'); } } button 3851 { on (release) { if (_root.lastlevelscore - 50 > 0 && _root.playerMode == 'Story') { _root.score = _root.lastlevelscore - 50; _root.lastlevelscore = _root.score; _root.gotoAndStop('level' + _root.level); } } } button 3853 { on (release) { if (_root.lastlevelscore - 100 > 0 && _parent.playerMode == 'Story' && _root.enableBossStart) { _root.score = _root.lastlevelscore - 100; _root.lastlevelscore = _root.score; _root.startAtBoss = true; _root.gotoAndStop('level' + _root.level); } } } movieClip 3855 { } instance st of movieClip 3855 { onClipEvent (load) { if (_parent.playerMode != 'Story') { _visible = false; } } } frame 19 { clearScreen(false); play(); } frame 20 { stop(); oldlevel = level; level = 10; fadeOutt(); eden = 100; var breakwall = 1; var breakwalls = 0; walls = 0; createWall(750, false); dwall1._visible = false; walls += 1; attachMovie('tank', 'dwall2', 9000); dwall2._x = 770; dwall2._y = 160; dwall2.health = 300; dwall2.tdone = 12; dwall2.startX = dwall2._x; lastAttack = 1; var waiter = 70; var killss = 0; var breakwall = 1; var breakwalls = 0; var basicenemy = 1; var blackhoodblast = 1; var atkType = 'attack'; var startoff = 1; var bloodSplatters = 1; var range = 250; var tempCombo = 0; var rev = 1; var kills = 0; var combocounter = 5; var ctempCombo = 16; var dead = false; var health = 50; var blockbar = 100; var lastAttack = 0; bgWall.swapDepths(30); var weapon = 1; var cweapon = oldlevel; sender = redbaron; sender.nSlide = 0; sender.nVertSlide = 0; sender.nXscaled = _xscale; sender.nFacing = 1; sender.nGravity = 0; sender.nMoveSpeed = 10; sender.nVerticleSpeed = 5; var impspark = 0; var attackLevel = 0; playMusic('level4music', 5); combotexts = 1; impcount = 0; uphit = 350; downhit = 580; lefthit = -150; righthit = 2000; camright = 340; camleft = 330; objects = 0; bombs = 10; legs = 5; baronwaittime = 0; wave = false; fwall = false; combostat = 0; attackPause = false; combobar = 0; combobarwait = 0; killer = 0; mloop = 2500; brk = 1; _root.onEnterFrame = function () { depthCreator(dwall2, dwall2._y); if (fadeit > 0) { fadeIn._alpha += 2; fadeit -= 1; if (fadeit == 1) { play(); } } if (mloop > 0) { mloop -= 1; } else { i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 5); mloop = 2500; } if (attackLevel > 0 && lockkeys == 0) { if (weapon == 2) { lastAttack = Math.round(attackLevel / 1.5); } else { lastAttack = attackLevel; } } else { if (attackLevel > 0) { if (lockkeys % 3 == 0) { lastAttack += 1; combocounter = lastAttack - 3; } } } hud(); if (!Key.isDown(attack)) { attackPause = false; } if (redbaron._currentframe != 8) { combostat -= 1; } else { combostat = 20; } if (combostat < 0) { combocounter = 0; } if (impcount > 0) { impcount -= 1; } addWallNum = 400; if (blockbar < 100) { blockbar += 0.1; } if (blockbar < 0 && nShake == 1) { blockbar = -50; } if (health < 0) { health = 0; dead = true; redbaron.gotoAndStop('death'); } depthCreator(fg, fg._y + 100); redBaron(); if (waiter == 0) { if (camymove) { backdrop._x = cam._x + redbaron._x / -1 - 250; fg._x = cam._x + redbaron._x / -0.6 - 200; floorpiece.gotoAndStop(Math.round(redbaron._x / 5)); } if (cammove) { backdrop._y = cam._y - redbaron._y / 1.5 - 150; } } i = 1; while (i <= 9) { sender = this['newText' + i]; if (sender != undefined) { if (sender.pointer < 40) { if (sender._xscale < 150) { sender._xscale += 5; } sender._yscale = sender._xscale; sender.pointer += 1; sender._y -= 2; if (sender.pointer > 31) { sender._alpha -= 10; } } else { sender.removeMovieClip(); } } i += 1; } if (cam.part._xscale == 100) { i = 0; while (i <= objects - 1) { floorz = floorpiece.floorpiece; mPoint = {'x': floorz['Point' + i].x, 'y': floorz['Point' + i].y}; floorz.localToGlobal(floorz['Point' + i]); this['Object' + i]._x = floorz['Point' + i].x - _x; this['Object' + i]._y = floorz['Point' + i].y - _y; floorz['Point' + i].x = mPoint.x; floorz['Point' + i].y = mPoint.y; i += 1; } } i = 1; while (i <= 2) { wall = this['dwall' + i]; ydist = Math.abs(wall._y - 60 - redbaron._y); if (wall.health > 0) { p = 0; while (p <= 8) { if (wall.health <= 35 * p && p < wall.tdone) { wall.play(); wall.health -= 1; baronwaittime = 3; wall.tdone = p; } p += 1; } } if (wall.shake == 0) { wall.shaker = true; } if (wall.shake > 0 && wall.health > 0) { wall._x = Math.random() * 8 - 4 + wall.startX; wall.shake -= 1; if (wall.shaker) { wallchip(wall._x + (-redbaron.nFacing * 40 - 40), redbaron._y - 140, -redbaron.nFacing); wall.shaker = false; } } else { wall._x = wall.startX; } i += 1; } }; walls = 0; } instance redbaron of movieClip 3275 darkbaron { onClipEvent (load) { var nSlide = 0; var nXscaled = _xscale; var nFacing = 1; var nGravity = 0; var nMoveSpeed = 10; var nVerticleSpeed = 5; var bMoveable = true; var nStartWidth = _width; if (_root.wasd != true) { left = 37; right = 39; up = 38; down = 40; sheath = 68; attack = 65; shield = 83; } else { left = 65; right = 68; up = 87; down = 83; sheath = 40; attack = 37; shield = 39; } 83; } } instance cam of movieClip 3732 { onClipEvent (enterFrame) { if (_root.waiter == 0) { if (_root.redbaron._x < _root.righthit - _root.camright && _root.redbaron._x > _root.lefthit + _root.camleft) { if (Math.abs(_root.redbaron._x - _x) < 90 || _root.righthit - _root.redbaron._x < 150) { _x = _root.redbaron._x; } else { _x = _x + (_root.redbaron._x - _x) / 4; } _root.camymove = true; } else { _root.camymove = false; } if (_root.redbaron._y < 490) { _y = _root.redbaron._y - 120; _root.cammove = true; } else { _root.cammove = false; } } } onClipEvent (load) { this.swapDepths(999999); _y = _root.redbaron._y - 120; _x = _root.redbaron._x + 408; _root.fg._x = _x + (_root.redbaron._x + 408) / -0.6 - 200; _root.floorpiece.gotoAndStop(Math.round((_root.redbaron._x + 408) / 5)); _root.backdrop._x = _x + (_root.redbaron._x + 408) / -1 - 250; _root.backdrop._y = _y - _root.redbaron._y / 1.5 - 150; } } frame 21 { clearScreen(false); } frame 22 { stop(); stopAllSounds(); _quality = 'HIGH'; i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 999); } button 3867 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=1313684', '_blank'); } } button 3872 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=900600', '_blank'); } } button 3876 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=522200', '_blank'); } } button 3883 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=571041', '_blank'); } } button 3887 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=1371838', '_blank'); } } button 3893 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=101487', '_blank'); } } button 3897 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=574448', '_blank'); } } button 3901 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=119952', '_blank'); } } button 3905 { on (release) { getURL('http://newgrounds.com/gold/profile/template.php3?id=685613', '_blank'); } } button 3909 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=28372', '_blank'); } } button 3915 { on (release) { getURL('http://www.newgrounds.com/gold/profile/template.php3?id=81981', '_blank'); } } movieClip 3917 { } movieClip 3921 { } movieClip 3922 { } movieClip 3925 { } movieClip 3929 { } movieClip 3932 { } movieClip 3933 { } movieClip 3935 { } movieClip 3936 { } button 3937 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } movieClip 3960 { } movieClip 3963 { } movieClip 3964 { instance of movieClip 3963 { onClipEvent (load) { starty = _parent.credits._y; mystarty = _y; setter = false; div = 11.46916890080429; downhit = false; } onClipEvent (enterFrame) { _parent.credits._y = -_y * div + starty; if (!setter && _y < 385) { _y = _y + 0.15; } if (this.hitTest(_root._xmouse, _root._ymouse, true)) { hitter = true; } else { hitter = false; } } onClipEvent (mouseDown) { if (hitter) { downhit = true; } } onClipEvent (mouseUp) { downhit = false; } onClipEvent (mouseMove) { if (downhit) { if (_root._ymouse < 385 && _root._ymouse > mystarty) { _y = _root._ymouse; setter = true; } } } } } frame 23 { stop(); stopAllSounds(); _quality = 'HIGH'; i = Math.ceil(Math.random() * 3.9 + 0.1); playMusic('level' + i + 'music', 999); } movieClip 3966 { } movieClip 3970 { } button 3973 { on (release) { nextFrame(); } } movieClip 3977 { } button 3980 { on (release) { prevFrame(); } } movieClip 3983 { } movieClip 3986 { } movieClip 3989 { } movieClip 3991 { } movieClip 3993 { } movieClip 3995 { } movieClip 3997 { } movieClip 4006 { } movieClip 4015 { } movieClip 4017 { } movieClip 4019 { } movieClip 4021 { } movieClip 4023 { } movieClip 4024 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } }




http://swfchan.com/27/132563/info.shtml
Created: 18/2 -2019 17:53:26 Last modified: 18/2 -2019 17:53:26 Server time: 04/05 -2024 21:29:53