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

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

The Fighting game Collab.swf

This is the info page for
Flash #47157

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


ActionScript [AS1/AS2]
Combined Code
movieClip 6 bullet { } movieClip 11 fireBall { } movieClip 16 bulleta { } frame 1 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; Mouse.show(); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 23 { } movieClip 26 { } movieClip 30 { } movieClip 32 { } movieClip 34 { } movieClip 36 { } movieClip 38 { } movieClip 66 { } movieClip 86 { } movieClip 87 { } movieClip 89 { } movieClip 91 { } movieClip 93 { } movieClip 95 { } movieClip 97 { } movieClip 103 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } frame 37 { startMovie(); } } frame 2 { stopAllSounds(); nextFrame(); } // unknown tag 88 length 63 frame 3 { stop(); var moved = false; _root.char._x = 243; } movieClip 110 { frame 1 { stop(); } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { _root.gotoAndStop('games'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { _root.gotoAndStop('authors'); } } } movieClip 121 { } movieClip 122 { frame 1 { stop(); } } instance char of movieClip 122 { onClipEvent (load) { speed = 0; } onClipEvent (enterFrame) { _x = _x + speed; if (_x > Stage.width + 20) { _x = -20; } if (_x < -20) { _x = Stage.width + 20; } if (speed > 10) { speed = 10; } if (speed < -10) { speed = -10; } if (!(Key.isDown(39) || Key.isDown(37))) { this.gotoAndStop(1); if (speed < 0) { ++speed; } if (speed > 0) { --speed; } } if (Key.isDown(39)) { _root.moved = true; ++speed; this.gotoAndStop(2); _xscale = 100; } if (Key.isDown(37)) { _root.moved = true; --speed; this.gotoAndStop(2); _xscale = -100; } } } frame 4 { stop(); _root.char._x = 243; } // unknown tag 88 length 103 movieClip 134 { instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('jakk22'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('cMenu'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('Mdojo'); } } } instance time1 of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('menu'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('keilarei'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('urbanBrawl'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop('vmen'); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true and Key.isDown(32)) { _root.gotoAndStop(3); } } } } instance of movieClip 134 { onClipEvent (load) { speed = 0; } onClipEvent (enterFrame) { _x = _x + speed; if (_x > 853) { _x = 853; speed = 0; } if (_x < -216) { _x = -216; speed = 0; } if (speed > 20) { speed = 20; } if (speed < -20) { speed = -20; } if (!(Key.isDown(39) || Key.isDown(37))) { if (speed < 0) { ++speed; } if (speed > 0) { --speed; } } if (Key.isDown(39)) { --speed; } if (Key.isDown(37)) { ++speed; } } } frame 5 { stop(); _root.char._x = 243; } movieClip 138 { } movieClip 139 { } movieClip 141 { } movieClip 143 { } movieClip 144 { } // unknown tag 88 length 103 movieClip 170 { } movieClip 179 { } movieClip 180 { frame 40 { if (_root.countDown == false) { _root.player1.State = 'normal'; } else { gotoAndPlay(1); } } } movieClip 193 { frame 1 { stop(); } } movieClip 202 { } movieClip 203 { } movieClip 205 { } movieClip 210 { instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { _root.gotoAndStop(3); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://jakk22.newgrounds.com/', blank); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://xxflareknightxx.newgrounds.com/', blank); } } } instance Mick of movieClip 179 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://arcansi.newgrounds.com/', blank); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://zrb.newgrounds.com/', blank); } } } instance head of movieClip 193 { onClipEvent (enterFrame) { if (_root.greenLives._width < 70) { this.gotoAndStop(2); } if (_root.greenLives._width < 55) { this.gotoAndStop(3); } if (_root.greenLives._width < 30) { this.gotoAndStop(4); } if (_root.greenLives._width < 15) { this.gotoAndStop(5); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://octoflash.newgrounds.com/', blank); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://virusn.newgrounds.com/', blank); } } } instance of movieClip 110 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _currentframe == 1) { this.gotoAndStop(2); _visible = true; } if (!_root.char.hitTest(this)) { this.gotoAndStop(1); _visible = false; } if (this._visible == true && Key.isDown(32)) { getURL('http://chunkycheese12.newgrounds.com/', blank); } } } } instance of movieClip 210 { onClipEvent (load) { speed = 0; } onClipEvent (enterFrame) { _x = _x + speed; if (_x > 782) { _x = 783; speed = 0; } if (_x < -293) { _x = -293; speed = 0; } if (speed > 20) { speed = 20; } if (speed < -20) { speed = -20; } if (!(Key.isDown(39) || Key.isDown(37))) { if (speed < 0) { ++speed; } if (speed > 0) { --speed; } } if (Key.isDown(39)) { --speed; } if (Key.isDown(37)) { ++speed; } } } frame 6 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); play(); stopAllSounds(); } movieClip 211 { } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } frame 7 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 7 { title.stop(); } movieClip 218 { } movieClip 220 { } movieClip 221 { } movieClip 223 { } movieClip 225 { } movieClip 230 { } movieClip 233 { } movieClip 241 { } movieClip 243 { instance of movieClip 241 { onClipEvent (load) { _root.ninja1.av = 100; _root.ninja1.gotoAndStop('walk'); } } } movieClip 250 { frame 55 { stop(); } } movieClip 253 { } movieClip 254 { frame 1 { stop(); } instance ninja of movieClip 230 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } instance ninja of movieClip 243 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } instance ninja of movieClip 250 { onClipEvent (load) { hurttimer = 100; stumbletimer = 20; _root.ninja1.canmove = false; --_root.health.hpn; if (_root.player.kickdir == 2) { dirpush = 2; } if (_root.player.kickdir == 1) { dirpush = 1; } } onClipEvent (enterFrame) { if (stumbletimer == 0) { _root.ninja1.canmove = true; _root.ninja1.gotoAndStop(1); } if (dirpush == 1) { _root.ninja1._xscale = _root.player.xscale * -1; _root.ninja1._x += 10; } if (dirpush == 2) { _root.ninja1._xscale = _root.player.xscale; _root.ninja1._x -= 10; } y += 3; --stumbletimer; } } instance ninja of movieClip 253 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } } instance ninja1 of movieClip 254 { onClipEvent (load) { hp = 100; dmg = 5; xscale = _xscale; timer = 6; jumping = false; jumper = 5; gravity = 0; canmove = true; } onClipEvent (enterFrame) { ++gravity; if (this.hitTest(_root.land)) { --y; gravity = 0; } _y = _y + gravity; a = int(Math.random() * 15); j = int(Math.random() * 20); b = int(Math.random() * 4); canturn = int(Math.random() * 5); if (j == 4) { jumping = true; jumper = 5; } if (jumping == true) { --jumper; _y = _y - 5 * jumper; if (jumper == 0) { jumping = false; } } distance = _x - _root.player._x; if (canmove == true) { if (distance < 75 && distance > -75) { if (a == 4) { gotoAndStop('slice'); } } distance = _x - _root.bullet._x; if (distance < 75 && distance > -75) { if (b == 4) { gotoAndStop('slice'); } } } } onClipEvent (enterFrame) { if (_root.player._x > this._x) { _root.dirhit = 2; if (!a == 4) { gotoAndStop('walk'); } _xscale = xscale; _x = _x + 2; } else { if (_root.player._x < this._x) { _root.dirhit = 1; if (!a == 4) { gotoAndStop('walk'); } _xscale = -xscale; _x = _x - 2; } } } } instance bullet of movieClip 16 bulleta { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.ninja1.ninja.sword)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; } if (dir == 2) { _x = _x - 10; } if (_root.health.ki > 0) { if (Key.isDown(32)) { if (shotcheck == true) { if (canpush == true) { --_root.health.ki; canpush = false; timer = 30; shotcheck = false; _x = _root.player._x; _y = _root.player._y; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } movieClip 257 { } instance Mick of movieClip 179 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } } } movieClip 278 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } parentColor.setTransform(camColor.getTransform()); 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; } } // unknown tag 88 length 75 button 283 { on (release) { _root.gotoAndStop('difficultyselectohyeah'); } } frame 315 { title.stop(); } movieClip 376 { } movieClip 381 { } movieClip 385 { } movieClip 394 { } movieClip 401 { } movieClip 405 { frame 3 { gotoAndPlay(1); } } movieClip 407 { } movieClip 408 { frame 6 { stop(); } instance of movieClip 407 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.land)) { _root.player.kickaccel = 0; } if (!_root.player.hitTest(_root.land)) { if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(3); } } if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(1); } } } } movieClip 410 { } movieClip 414 { } movieClip 416 { } movieClip 421 { frame 4 { stop(); } } movieClip 423 { } movieClip 424 { frame 1 { stop(); } instance Mick of movieClip 179 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 376 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance of movieClip 381 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(1); } if (Key.isDown(87)) { _root.player._gravity -= _root.player.jumpheight; _root.player.gotoAndStop(8); } if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 385 { onClipEvent (enterFrame) { if (_root.player.accel == 0) { _root.player.gotoAndStop(1); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } } onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 401 { onClipEvent (enterFrame) { if (!Key.isDown(83)) { _root.player.gotoAndStop(1); } if (_root.player.hitTest(_root.ninja1.ninja.sword && _root.health.ki == 0)) { _root.player.gotoAndStop(9); } } } instance of movieClip 405 { onClipEvent (enterFrame) { if (this.hitTest(_root.ninja1.ninja.sword && _root.health.ki > 0)) { _root.player.gotoAndStop(9); } if (_root.health.ki < 1) { gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); } --_root.shieldtimer; if (_root.shieldtimer < 0) { _root.health.ki -= 1; _root.shieldtimer = 30; } if (_root.health.ki < 1) { gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); gotoAndStop(4); } } } instance Mick of movieClip 408 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance ki of movieClip 416 { onClipEvent (enterFrame) { if (!Key.isDown(32)) { _root.player.canmove = true; _root.player.gotoAndStop(1); --_root.kibar.ki; } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } } onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 421 { onClipEvent (enterFrame) { if (this.hitTest(_root.land)) { _root.player.gotoAndStop(1); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } } } instance of movieClip 423 { onClipEvent (load) { hurttimer = 100; stumbletimer = 10; _root.player.mastercontrol = false; --_root.health.hp; } onClipEvent (enterFrame) { if (stumbletimer == 0) { _root.player.mastercontrol = true; _root.player.gotoAndStop(1); } if (_root.dirhit == 2) { _root.player._xscale = _root.player.xscale * -1; _root.player._x += 10; } if (_root.dirhit == 1) { _root.player._xscale = _root.player.xscale; _root.player._x -= 10; } --stumbletimer; } } } instance player of movieClip 424 { onClipEvent (load) { _x = _root.startp._x; _y = _root.startp._y; w = _width / 2; h = _height / 2; jumping = true; speed = 0; accel = 0; dir = 1; speedinc = 0; airspeedinc = 1; lanspeedinc = 2; gravity = 0; jump = 15; friction = 0; airfric = 0; lanfric = 1; xscale = _xscale; fell = 0; soundtrigger = 0; var jumpsound = new Sound(); jumpsound.attachSound('jumping'); canmove = true; kicking = false; _root.bullet.dir = 1; mastercontrol = true; } onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (dir == 2) { if (_root.bullet.canpush == true) { _root.bullet.dir = 2; } } if (dir == 1) { if (_root.bullet.canpush == true) { _root.bullet.dir = 1; } } if (_y > 1156) { if (_root.lives == 0) { _root.gotoAndStop(4); } if (!_root.lives == 0) { --_root.lives; _x = _root.startp._x; _y = _root.startp._y; } } if (this.hitTest(_root.win)) { _root.timekeeper.asdf = 0; _root.gotoAndStop(3); } if (!accel == 0) { if (accel > 10) { accel = 10; } if (accel < -10) { accel = -10; } } if (mastercontrol == true) { if (!Key.isDown(65)) { if (!Key.isDown(68)) { if (!accel == 0) { if (kicking == false) { this.gotoAndStop(4); } } } } speed = accel / 2; if (canmove == true) { if (Key.isDown(65)) { accel -= speedinc; dir = 2; if (jumping == true) { if (fell == 1) { this.gotoAndStop(2); } } if (_xscale == xscale) { _xscale = -xscale; } } if (Key.isDown(68)) { accel += speedinc; dir = 1; if (jumping == true) { if (fell == 1) { this.gotoAndStop(2); } } if (_xscale == -xscale) { _xscale = xscale; } } } if (accel > 0) { accel -= friction; } if (accel < 0) { accel += friction; } if (Math.round(accel) == 0) { accel = 0; } if (Key.isDown(87)) { _root.player.soundtrigger = 0; } if (!Key.isDown(87)) { _root.player.soundtrigger = 1; } ++gravity; _y = _y + gravity; if (jumping) { if (Key.isDown(87)) { _y = _y - 1; gravity = -jump; } } if (accel == 0) { if (kicking == false) { if (Key.isDown(83)) { gotoAndStop(5); speed = 0; } } } if (Key.isDown(81)) { if (kicking == false) { canmove = false; kicking = true; _y = _y - 30; if (dir == 1) { kickaccel = 30; } if (dir == 2) { kickaccel = -30; } gotoAndStop(6); } } if (kicking == true) { if (kickaccel > 0) { kickaccel -= 0.5; } if (kickaccel < 0) { kickaccel += 0.5; } speed = kickaccel / 2; } if (this.hitTest(_root.land)) { if (Key.isDown(32)) { canmove = false; this.gotoAndStop(7); } } _x = _x + speed; } while (_root.land.hitTest(_x, _y, true)) { jumping = true; speedinc = lanspeedinc; fell = 1; friction = lanfric; gravity = 0; _y = _y - 1; } if (!_root.land.hitTest(_x, _y + 1, true)) { jumping = false; speedinc = airspeedinc; friction = airfric; if (kicking == false) { this.gotoAndStop(3); } } while (_root.land.hitTest(_x, _y - h * 2, true)) { gravity = 0; _y = _y + 1; } while (_root.land.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.land.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _x = _root.ninja._x; _y = _root.ninja._y; } } movieClip 428 { } instance of movieClip 428 { onClipEvent (enterFrame) { _x = _root.vcam._x; _y = _root.vcam._y; } } movieClip 430 { } movieClip 486 { frame 10 { gotoAndPlay(4); } } frame 397 { stop(); } button 506 { on (press) { _root.difficulty = 1; _root.gotoAndStop('battle'); } } button 509 { on (press) { if (_root.hardmode == 1) { _root.difficulty = 3; _root.gotoAndStop('battle'); } } } button 512 { on (press) { if (_root.impossiblemode == 1) { _root.difficulty = 4; _root.gotoAndStop('battle'); } } } button 515 { on (press) { _root.difficulty = 2; _root.gotoAndStop('battle'); } } button 518 { on (press) { if (_root.ninjamode == 1) { _root.difficulty = 2; _root.gotoAndStop('playasninja'); } } } button 521 { on (press) { if (_root.nimpossiblemode == 1) { _root.difficulty = 4; _root.gotoAndStop('playasninja'); } } } button 524 { on (press) { if (_root.ultimatemode == 1) { _root.difficulty = 5; _root.gotoAndStop('playasninja'); } } } movieClip 527 { frame 1 { stop(); } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.hardmode == 1) { this.gotoAndStop(2); } } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.impossiblemode == 1) { this.gotoAndStop(2); } } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.ninjamode == 1) { this.gotoAndStop(2); } } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.nimpossiblemode == 1) { this.gotoAndStop(2); } } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.ultimatemode == 1) { this.gotoAndStop(2); } } } button 530 { on (press) { if (_root.srbmode == 1) { _root.difficulty = 3; _root.gotoAndStop('superrainbowball'); } } } instance of movieClip 527 { onClipEvent (enterFrame) { if (_root.srbmode == 1) { this.gotoAndStop(2); } } } movieClip 534 { } movieClip 535 { } movieClip 536 { } movieClip 539 { } // unknown tag 88 length 68 movieClip 543 { } button 545 { on (press) { _root.gotoAndStop('MainMenu'); } } frame 398 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 398 { stop(); } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _y = _y + (_root.player._y - _y) / 4; _x = _x + (_root.player._x - _x) / 4; if (this._x < 100) { this._x = 100; } if (this._x > 510) { this._x = 510; } if (this._y > 310) { this._y = 310; } if (this._y < 12) { this._y = 12; } } } movieClip 588 { } movieClip 594 { } movieClip 595 { instance of movieClip 588 { onClipEvent (enterFrame) { if (_root.health.hp == 21) { this.gotoAndStop(22); } if (_root.health.hp == 20) { this.gotoAndStop(21); } if (_root.health.hp == 19) { this.gotoAndStop(20); } if (_root.health.hp == 18) { this.gotoAndStop(19); } if (_root.health.hp == 17) { this.gotoAndStop(18); } if (_root.health.hp == 16) { this.gotoAndStop(17); } if (_root.health.hp == 15) { this.gotoAndStop(16); } if (_root.health.hp == 14) { this.gotoAndStop(15); } if (_root.health.hp == 13) { this.gotoAndStop(14); } if (_root.health.hp == 12) { this.gotoAndStop(13); } if (_root.health.hp == 11) { this.gotoAndStop(12); } if (_root.health.hp == 10) { this.gotoAndStop(11); } if (_root.health.hp == 9) { this.gotoAndStop(10); } if (_root.health.hp == 8) { this.gotoAndStop(9); } if (_root.health.hp == 7) { this.gotoAndStop(8); } if (_root.health.hp == 6) { this.gotoAndStop(7); } if (_root.health.hp == 5) { this.gotoAndStop(6); } if (_root.health.hp == 4) { this.gotoAndStop(5); } if (_root.health.hp == 3) { this.gotoAndStop(4); } if (_root.health.hp == 2) { this.gotoAndStop(3); } if (_root.health.hp == 1) { this.gotoAndStop(2); } if (_root.health.hp == 0) { this.gotoAndStop(1); } } } instance of movieClip 594 { onClipEvent (enterFrame) { if (_root.health.ki == 5) { this.gotoAndStop(6); } if (_root.health.ki == 4) { this.gotoAndStop(5); } if (_root.health.ki == 3) { this.gotoAndStop(4); } if (_root.health.ki == 2) { this.gotoAndStop(3); } if (_root.health.ki == 1) { this.gotoAndStop(2); } if (_root.health.ki == 0) { this.gotoAndStop(1); } } } } movieClip 597 { } movieClip 599 { instance health of movieClip 595 { onClipEvent (load) { hp = 7; ki = 5; } } instance of movieClip 588 { onClipEvent (enterFrame) { if (_root.health.hpn == 21) { this.gotoAndStop(22); } if (_root.health.hpn == 20) { this.gotoAndStop(21); } if (_root.health.hpn == 19) { this.gotoAndStop(20); } if (_root.health.hpn == 18) { this.gotoAndStop(19); } if (_root.health.hpn == 17) { this.gotoAndStop(18); } if (_root.health.hpn == 16) { this.gotoAndStop(17); } if (_root.health.hpn == 15) { this.gotoAndStop(16); } if (_root.health.hpn == 14) { this.gotoAndStop(15); } if (_root.health.hpn == 13) { this.gotoAndStop(14); } if (_root.health.hpn == 12) { this.gotoAndStop(13); } if (_root.health.hpn == 11) { this.gotoAndStop(12); } if (_root.health.hpn == 10) { this.gotoAndStop(11); } if (_root.health.hpn == 9) { this.gotoAndStop(10); } if (_root.health.hpn == 8) { this.gotoAndStop(9); } if (_root.health.hpn == 7) { this.gotoAndStop(8); } if (_root.health.hpn == 6) { this.gotoAndStop(7); } if (_root.health.hpn == 5) { this.gotoAndStop(6); } if (_root.health.hpn == 4) { this.gotoAndStop(5); } if (_root.health.hpn == 3) { this.gotoAndStop(4); } if (_root.health.hpn == 2) { this.gotoAndStop(3); } if (_root.health.hpn == 1) { this.gotoAndStop(2); } if (_root.health.hpn == 0) { this.gotoAndStop(1); } } } instance of movieClip 594 { onClipEvent (enterFrame) { if (_root.health.kin == 5) { this.gotoAndStop(6); } if (_root.health.kin == 4) { this.gotoAndStop(5); } if (_root.health.kin == 3) { this.gotoAndStop(4); } if (_root.health.kin == 2) { this.gotoAndStop(3); } if (_root.health.kin == 1) { this.gotoAndStop(2); } if (_root.health.kin == 0) { this.gotoAndStop(1); } } } } instance health of movieClip 599 { onClipEvent (load) { if (_root.difficulty == 2) { hp = 7; ki = 5; hpn = 7; kin = 5; } if (_root.difficulty == 3) { hp = 7; ki = 5; hpn = 14; kin = 5; } if (_root.difficulty == 1) { hp = 7; ki = 5; hpn = 7; kin = 0; } if (_root.difficulty == 4) { hp = 3; ki = 5; hpn = 21; kin = 5; } } onClipEvent (enterFrame) { _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); if (hp == 0) { _root.gotoAndStop('loser'); } if (hpn == 0) { _root.gotoAndStop('winner'); } } } instance ninja1 of movieClip 254 { onClipEvent (load) { hp = 100; dmg = 5; xscale = _xscale; timer = 6; jumping = false; jumper = 5; gravity = 0; canmove = true; } onClipEvent (enterFrame) { ++gravity; if (_root.health.hpn == 0) { if (_root.difficulty == 2) { _root.hardmode = 1; } if (_root.difficulty == 3) { _root.impossiblemode = 1; } if (_root.difficulty == 4) { _root.ninjamode = 1; } _root.gotoAndStop('nanites'); } if (this.hitTest(_root.land)) { --y; gravity = 0; } _y = _y + gravity; a = int(Math.random() * 10); j = int(Math.random() * 20); b = int(Math.random() * 2); kiblaster = int(Math.random() * 50); canturn = int(Math.random() * 5); if (j == 1) { jumping = true; jumper = 5; } if (jumping == true) { --jumper; _y = _y - 5 * jumper; if (jumper == 0) { jumping = false; } } distance = _x - _root.player._x; if (canmove == true) { if (distance < 75 && distance > -75) { if (a == 4) { gotoAndStop('slice'); } } distancea = _x - _root.bulleta._x; if (distancea < 100 && distancea > -100) { if (b == 2) { gotoAndStop('slice'); } } } } onClipEvent (enterFrame) { if (_root.player._x > this._x) { _root.dirhit = 2; _root.bulletb.dir = 1; if (!a == 4) { gotoAndStop('walk'); } _xscale = xscale; _x = _x + 2; } if (_root.player._x < this._x) { _root.dirhit = 1; _root.bulletb.dir = 2; if (!a == 4) { gotoAndStop('walk'); } _xscale = -xscale; _x = _x - 2; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } instance player of movieClip 424 { onClipEvent (load) { _x = _root.startp._x; _y = _root.startp._y; w = _width / 2; h = _height / 2; jumping = true; speed = 0; accel = 0; dir = 1; speedinc = 0; airspeedinc = 1; lanspeedinc = 2; gravity = 0; jump = 15; friction = 0; airfric = 0; lanfric = 1; xscale = _xscale; fell = 0; soundtrigger = 0; var jumpsound = new Sound(); jumpsound.attachSound('jumping'); canmove = true; kicking = false; _root.bulleta.dir = 1; mastercontrol = true; } onClipEvent (enterFrame) { if (_root.health.hp == 0) { _root.gotoAndStop('deadasmick'); } if (dir == 2) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 2; } } if (dir == 1) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 1; } } if (_y > 1156) { if (_root.lives == 0) { _root.gotoAndStop(4); } if (!_root.lives == 0) { --_root.lives; _x = _root.startp._x; _y = _root.startp._y; } } if (this.hitTest(_root.win)) { _root.timekeeper.asdf = 0; _root.gotoAndStop(3); } if (!accel == 0) { if (accel > 10) { accel = 10; } if (accel < -10) { accel = -10; } } if (mastercontrol == true) { if (!Key.isDown(65)) { if (!Key.isDown(68)) { if (!accel == 0) { if (kicking == false) { this.gotoAndStop(4); } } } } speed = accel / 2; if (canmove == true) { if (Key.isDown(65)) { accel -= speedinc; dir = 2; if (jumping == true) { if (!_root.player.hitTest(_root.ninja1.ninja.sword)) { if (fell == 1) { this.gotoAndStop(2); } } } if (_xscale == xscale) { _xscale = -xscale; } } if (Key.isDown(68)) { accel += speedinc; dir = 1; if (jumping == true) { if (!_root.player.hitTest(_root.ninja1.ninja.sword)) { if (fell == 1) { this.gotoAndStop(2); } } } if (_xscale == -xscale) { _xscale = xscale; } } } if (accel > 0) { accel -= friction; } if (accel < 0) { accel += friction; } if (Math.round(accel) == 0) { accel = 0; } if (Key.isDown(87)) { _root.player.soundtrigger = 0; } if (!Key.isDown(87)) { _root.player.soundtrigger = 1; } ++gravity; _y = _y + gravity; if (jumping) { if (Key.isDown(87)) { _y = _y - 1; gravity = -jump; } } if (accel == 0) { if (kicking == false) { if (Key.isDown(83)) { gotoAndStop(5); speed = 0; } } } if (Key.isDown(69)) { if (kicking == false) { canmove = false; kicking = true; _y = _y - 30; if (dir == 1) { kickdir = 1; kickaccel = 30; } if (dir == 2) { kickdir = 2; kickaccel = -30; } gotoAndStop(6); } } if (kicking == true) { if (this.hitpoint.hitTest(_root.ninja1.ninja)) { if (kickaccel > 0) { kickaccel -= 20; } if (kickaccel < 0) { kickaccel += 20; } } if (kickaccel > 0) { kickaccel -= 0.5; } if (kickaccel < 0) { kickaccel += 0.5; } speed = kickaccel / 2; } if (this.hitTest(_root.land)) { if (Key.isDown(32)) { canmove = false; this.gotoAndStop(7); } } _x = _x + speed; } while (_root.land.hitTest(_x, _y, true)) { jumping = true; speedinc = lanspeedinc; fell = 1; friction = lanfric; gravity = 0; _y = _y - 1; } if (!_root.land.hitTest(_x, _y + 1, true)) { jumping = false; speedinc = airspeedinc; friction = airfric; if (kicking == false && mastercontrol == true) { this.gotoAndStop(3); } } while (_root.land.hitTest(_x, _y - h * 2, true)) { gravity = 0; _y = _y + 1; } while (_root.land.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.land.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } while (_root.ninja1.ninja.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.ninja1.ninja.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } instance bulleta of movieClip 16 bulleta { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.ninja1.ninja.sword)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; _root.player.kickdir = 1; } if (dir == 2) { _root.player.kickdir = 2; _x = _x - 10; } if (_root.health.ki > 0) { if (Key.isDown(32)) { if (shotcheck == true) { if (canpush == true) { --_root.health.ki; canpush = false; timer = 30; shotcheck = false; _x = _root.player._x; _y = _root.player._y; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } movieClip 605 { } instance bulletb of movieClip 605 { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hitpoint)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (this.hitTest(_root.player.blockpoint)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; } if (dir == 2) { _x = _x - 10; } if (_root.health.kin > 0) { if (_root.ninja1.kiblaster == 5) { if (shotcheck == true) { if (canpush == true) { --_root.health.kin; canpush = false; timer = 30; shotcheck = false; _x = _root.ninja1._x; _y = _root.ninja1._y - 10; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } movieClip 612 { } movieClip 619 { frame 10 { stop(); } } button 623 { on (release) { _root.gotoAndPlay('restartasdf'); } } frame 400 { stop(); } frame 400 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 400 { stop(); } movieClip 629 { } movieClip 630 { } movieClip 647 { } movieClip 649 { } movieClip 650 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 652 { frame 6 { stop(); } instance of movieClip 407 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.land)) { _root.player.kickaccel = 0; } if (!_root.player.hitTest(_root.land)) { if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(3); } } if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(1); } } } } movieClip 660 { frame 55 { stop(); } } movieClip 662 { frame 212 { _root.gotoAndStop('winneronmicks'); } } movieClip 666 { } movieClip 670 { frame 50 { stop(); } } frame 402 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 402 { stop(); } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _y = _y + (_root.player._y - _y) / 4; _x = _x + (_root.player._x - _x) / 4; if (this._x < 100) { this._x = 100; } if (this._x > 510) { this._x = 510; } if (this._y > 310) { this._y = 310; } if (this._y < 12) { this._y = 12; } } } movieClip 687 { instance health of movieClip 595 { onClipEvent (load) { hp = 7; ki = 5; } } instance of movieClip 588 { onClipEvent (enterFrame) { if (_root.health.hpn == 21) { this.gotoAndStop(22); } if (_root.health.hpn == 20) { this.gotoAndStop(21); } if (_root.health.hpn == 19) { this.gotoAndStop(20); } if (_root.health.hpn == 18) { this.gotoAndStop(19); } if (_root.health.hpn == 17) { this.gotoAndStop(18); } if (_root.health.hpn == 16) { this.gotoAndStop(17); } if (_root.health.hpn == 15) { this.gotoAndStop(16); } if (_root.health.hpn == 14) { this.gotoAndStop(15); } if (_root.health.hpn == 13) { this.gotoAndStop(14); } if (_root.health.hpn == 12) { this.gotoAndStop(13); } if (_root.health.hpn == 11) { this.gotoAndStop(12); } if (_root.health.hpn == 10) { this.gotoAndStop(11); } if (_root.health.hpn == 9) { this.gotoAndStop(10); } if (_root.health.hpn == 8) { this.gotoAndStop(9); } if (_root.health.hpn == 7) { this.gotoAndStop(8); } if (_root.health.hpn == 6) { this.gotoAndStop(7); } if (_root.health.hpn == 5) { this.gotoAndStop(6); } if (_root.health.hpn == 4) { this.gotoAndStop(5); } if (_root.health.hpn == 3) { this.gotoAndStop(4); } if (_root.health.hpn == 2) { this.gotoAndStop(3); } if (_root.health.hpn == 1) { this.gotoAndStop(2); } if (_root.health.hpn == 0) { this.gotoAndStop(1); } } } instance of movieClip 594 { onClipEvent (enterFrame) { if (_root.health.kin == 5) { this.gotoAndStop(6); } if (_root.health.kin == 4) { this.gotoAndStop(5); } if (_root.health.kin == 3) { this.gotoAndStop(4); } if (_root.health.kin == 2) { this.gotoAndStop(3); } if (_root.health.kin == 1) { this.gotoAndStop(2); } if (_root.health.kin == 0) { this.gotoAndStop(1); } } } } instance health of movieClip 687 { onClipEvent (load) { if (_root.difficulty == 2) { hp = 7; ki = 5; hpn = 7; kin = 5; } if (_root.difficulty == 1) { hp = 7; ki = 5; hpn = 7; kin = 0; } if (_root.difficulty == 3) { hp = 7; ki = 5; hpn = 14; kin = 5; } if (_root.difficulty == 4) { hp = 3; ki = 5; hpn = 21; kin = 5; } if (_root.difficulty == 5) { hp = 14; ki = 5; hpn = 21; kin = 5; } } onClipEvent (enterFrame) { _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); if (hp == 0) { _root.gotoAndStop('loser'); } if (hpn == 0) { _root.gotoAndStop('winner'); } } } movieClip 689 { } movieClip 691 { } movieClip 693 { } movieClip 695 { } movieClip 696 { } movieClip 703 { frame 55 { stop(); } } movieClip 704 { } movieClip 705 { frame 1 { stop(); } instance ninja of movieClip 696 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.ninja.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } instance ninja of movieClip 243 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.ninja.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } instance ninja of movieClip 703 { onClipEvent (load) { hurttimer = 100; stumbletimer = 20; _root.ninja1.canmove = false; --_root.health.hpn; if (_root.player.kickdir == 2) { dirpush = 2; } if (_root.player.kickdir == 1) { dirpush = 1; } } onClipEvent (enterFrame) { if (stumbletimer == 0) { _root.ninja1.canmove = true; _root.ninja1.gotoAndStop(1); } if (dirpush == 1) { _root.ninja1._xscale = _root.player.xscale * -1; _root.ninja1._x += 10; } if (dirpush == 2) { _root.ninja1._xscale = _root.player.xscale; _root.ninja1._x -= 10; } y += 3; --stumbletimer; } } instance ninja of movieClip 704 { onClipEvent (enterFrame) { if (_root.ninja1.hitTest(_root.player.ninja.hitpoint)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } if (_root.ninja1.hitTest(_root.bulleta)) { _root.ninja1.gotoAndStop(3); _root.ninja1.canmove = false; } } } } instance ninja1 of movieClip 705 { onClipEvent (load) { hp = 100; dmg = 5; timer = 6; jumping = false; jumper = 5; gravity = 0; canmove = true; xscaleforthis = _xscale; yscaleforthis = _yscale; speed = 2; xscale = _xscale; if (_root.difficulty == 5) { speed += 4; xscale += 80; _yscale = _yscale + 80; } } onClipEvent (enterFrame) { ++gravity; if (_root.health.hpn == 0) { if (_root.difficulty == 2) { _root.nimpossiblemode = 1; } if (_root.difficulty == 4) { _root.ultimatemode = 1; } if (_root.difficulty == 5) { _root.srbmode = 1; } if (_root.difficulty == 5) { _root.gotoAndStop('winonultimateshowdown'); } _root.gotoAndStop('nanitesb'); } if (this.hitTest(_root.land)) { --y; gravity = 0; } _y = _y + gravity; a = int(Math.random() * 10); randomthing = int(Math.random() * 80); randomthingb = int(Math.random() * 80); j = int(Math.random() * 20); b = int(Math.random() * 2); sss = int(Math.random() * 10); kiblaster = int(Math.random() * 50); canturn = int(Math.random() * 5); if (_root.difficulty == 5) { if (sss == 1) { _x = _x + 0; } if (sss == 2) { _x = _x - 0; } } if (j == 1) { jumping = true; jumper = 5; } if (jumping == true) { --jumper; _y = _y - 5 * jumper; if (jumper == 0) { jumping = false; } } distance = _x - _root.player._x; if (canmove == true) { if (distance < 75 && distance > -75) { if (a == 4) { gotoAndStop('slice'); } } distancea = _x - _root.bulleta._x; if (distancea < 100 && distancea > -100) { if (b == 2) { gotoAndStop('slice'); } } } } onClipEvent (enterFrame) { if (_root.player._x > this._x) { _root.dirhit = 2; _root.bulletb.dir = 1; if (!a == 4) { gotoAndStop('walk'); } _xscale = xscale; _x = _x + speed; } if (_root.player._x < this._x) { _root.dirhit = 1; _root.bulletb.dir = 2; if (!a == 4) { gotoAndStop('walk'); } _xscale = -xscale; _x = _x - speed; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } instance bulleta of movieClip 16 bulleta { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.ninja1.ninja.sword)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; _root.player.kickdir = 1; } if (dir == 2) { _root.player.kickdir = 2; _x = _x - 10; } if (_root.health.ki > 0) { if (Key.isDown(32)) { if (shotcheck == true) { if (canpush == true) { --_root.health.ki; canpush = false; timer = 30; shotcheck = false; _x = _root.player._x; _y = _root.player._y; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } instance bulletb of movieClip 605 { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.ninja.hitpoint)) { if (dir == 1) { _y = -9999; } if (dir == 2) { _y = -9999; } } if (this.hitTest(_root.player.blockpoint)) { if (dir == 1) { shotcheck = false; _y = -9999; } if (dir == 2) { timer = 0; shotcheck = false; _y = -9999; } } if (dir == 1) { _x = _x + 10; } if (dir == 2) { _x = _x - 10; } if (_root.health.kin > 0) { if (_root.ninja1.kiblaster == 5) { if (shotcheck == true) { if (canpush == true) { --_root.health.kin; canpush = false; timer = 30; shotcheck = false; _x = _root.ninja1._x; _y = _root.ninja1._y - 10; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } movieClip 706 { } movieClip 709 { frame 20 { stop(); _root.player.canswing = true; } } movieClip 710 { frame 5 { _root.player.canmove = true; _root.player.gotoAndStop(1); } instance of movieClip 241 { onClipEvent (load) { _root.ninja1.av = 100; _root.ninja1.gotoAndStop('walk'); } } } movieClip 711 { instance ninja of movieClip 706 { onClipEvent (enterFrame) { if (_root.player.ninja.hitTest(_root.ninja1.ninja.sword)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } if (_root.player.ninja.hitTest(_root.bulletb)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } if (_root.difficulty == 5) { if (_root.player.ninja.hitTest(_root.ninja1.ninja.legs)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } } } } frame 2 { stop(); } instance ninja of movieClip 230 { onClipEvent (enterFrame) { if (_root.player.ninja.hitTest(_root.ninja1.ninja.sword)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } if (_root.player.ninja.hitTest(_root.bulletb)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } if (_root.difficulty == 5) { if (_root.player.ninja.hitTest(_root.ninja1.ninja.legs)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } } } } instance ninja of movieClip 250 { onClipEvent (load) { hurttimer = 100; stumbletimer = 10; _root.player.mastercontrol = false; --_root.health.hp; } onClipEvent (enterFrame) { if (stumbletimer == 0) { _root.player.mastercontrol = true; _root.player.canmove = true; _root.player.canswing = true; _root.player.gotoAndStop(1); } if (_root.dirhit == 2) { _root.player._xscale = _root.player.xscale * -1; _root.player._x += 10; } if (_root.dirhit == 1) { _root.player._xscale = _root.player.xscale; _root.player._x -= 10; } --stumbletimer; } } instance ninja of movieClip 710 { onClipEvent (enterFrame) { if (_root.player.ninja.hitTest(_root.ninja1.ninja.sword)) { _root.player.canmove = false; _root.player.gotoAndStop(3); } } } } instance player of movieClip 711 { onClipEvent (load) { w = _width / 2; h = _height / 2; jumping = true; speed = 0; accel = 0; dir = 1; speedinc = 0; airspeedinc = 1; lanspeedinc = 2; gravity = 0; jump = 15; friction = 0; airfric = 0; lanfric = 1; xscale = _xscale; fell = 0; soundtrigger = 0; canmove = true; _root.bulleta.dir = 1; mastercontrol = true; canswing = true; canswingb = true; } onClipEvent (enterFrame) { if (_root.health.hp == 0) { if (_root.difficulty == 5) { _root.gotoAndStop('deadonultimateshowdown'); } _root.gotoAndStop('deathasninja'); } if (dir == 2) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 2; } } if (dir == 1) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 1; } } if (_y > 1156) { if (_root.lives == 0) { _root.gotoAndStop(4); } if (!_root.lives == 0) { --_root.lives; _x = _root.startp._x; _y = _root.startp._y; } } if (this.hitTest(_root.win)) { _root.timekeeper.asdf = 0; _root.gotoAndStop(3); } if (!accel == 0) { if (accel > 10) { accel = 10; } if (accel < -10) { accel = -10; } } if (mastercontrol == true) { if (canmove == true) { if (!Key.isDown(69) && canswing == true) { canswingb = true; } if (!Key.isDown(65)) { if (!Key.isDown(68)) { gotoAndStop(1); } } if (Key.isDown(65)) { accel -= speedinc; dir = 2; this.gotoAndStop(2); if (_xscale == xscale) { _xscale = -xscale; } } if (Key.isDown(68)) { accel += speedinc; dir = 1; this.gotoAndStop(2); if (_xscale == -xscale) { _xscale = xscale; } } } if (accel > 0) { accel -= friction; } if (accel < 0) { accel += friction; } if (Math.round(accel) == 0) { accel = 0; } if (Key.isDown(87)) { _root.player.soundtrigger = 0; } if (!Key.isDown(87)) { _root.player.soundtrigger = 1; } ++gravity; _y = _y + gravity; if (jumping) { if (Key.isDown(87)) { _y = _y - 1; gravity = -jump; } } if (Key.isDown(69) && canswingb == true && canswing == true) { canswing = false; canswingb = false; canmove = false; this.gotoAndStop(4); } speed = accel / 2; _x = _x + speed; } while (_root.land.hitTest(_x, _y, true)) { jumping = true; speedinc = lanspeedinc; fell = 1; friction = lanfric; gravity = 0; _y = _y - 1; } if (!_root.land.hitTest(_x, _y + 1, true)) { jumping = false; speedinc = airspeedinc; friction = airfric; } while (_root.land.hitTest(_x, _y - h * 2, true)) { gravity = 0; _y = _y + 1; } while (_root.land.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.land.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } while (_root.ninja1.ninja.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.ninja1.ninja.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } frame 403 { stop(); } frame 403 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 403 { stop(); } movieClip 713 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 715 { frame 212 { _root.gotoAndStop('winneronmicks'); } } frame 404 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 404 { stop(); } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _y = _y + (_root.player._y - _y) / 4; _x = _x + (_root.player._x - _x) / 4; if (this._x < 100) { this._x = 100; } if (this._x > 510) { this._x = 510; } if (this._y > 310) { this._y = 310; } if (this._y < 12) { this._y = 12; } } } movieClip 733 { instance health of movieClip 595 { onClipEvent (load) { hp = 7; ki = 5; } } instance of movieClip 588 { onClipEvent (enterFrame) { if (_root.health.hpn == 21) { this.gotoAndStop(22); } if (_root.health.hpn == 20) { this.gotoAndStop(21); } if (_root.health.hpn == 19) { this.gotoAndStop(20); } if (_root.health.hpn == 18) { this.gotoAndStop(19); } if (_root.health.hpn == 17) { this.gotoAndStop(18); } if (_root.health.hpn == 16) { this.gotoAndStop(17); } if (_root.health.hpn == 15) { this.gotoAndStop(16); } if (_root.health.hpn == 14) { this.gotoAndStop(15); } if (_root.health.hpn == 13) { this.gotoAndStop(14); } if (_root.health.hpn == 12) { this.gotoAndStop(13); } if (_root.health.hpn == 11) { this.gotoAndStop(12); } if (_root.health.hpn == 10) { this.gotoAndStop(11); } if (_root.health.hpn == 9) { this.gotoAndStop(10); } if (_root.health.hpn == 8) { this.gotoAndStop(9); } if (_root.health.hpn == 7) { this.gotoAndStop(8); } if (_root.health.hpn == 6) { this.gotoAndStop(7); } if (_root.health.hpn == 5) { this.gotoAndStop(6); } if (_root.health.hpn == 4) { this.gotoAndStop(5); } if (_root.health.hpn == 3) { this.gotoAndStop(4); } if (_root.health.hpn == 2) { this.gotoAndStop(3); } if (_root.health.hpn == 1) { this.gotoAndStop(2); } if (_root.health.hpn == 0) { this.gotoAndStop(1); } } } instance of movieClip 594 { onClipEvent (enterFrame) { if (_root.health.kin == 5) { this.gotoAndStop(6); } if (_root.health.kin == 4) { this.gotoAndStop(5); } if (_root.health.kin == 3) { this.gotoAndStop(4); } if (_root.health.kin == 2) { this.gotoAndStop(3); } if (_root.health.kin == 1) { this.gotoAndStop(2); } if (_root.health.kin == 0) { this.gotoAndStop(1); } } } } instance health of movieClip 733 { onClipEvent (load) { if (_root.difficulty == 2) { hp = 7; ki = 5; hpn = 7; kin = 5; } if (_root.difficulty == 3) { hp = 7; ki = 5; hpn = 14; kin = 5; } if (_root.difficulty == 1) { hp = 7; ki = 5; hpn = 7; kin = 0; } if (_root.difficulty == 4) { hp = 3; ki = 5; hpn = 21; kin = 5; } } onClipEvent (enterFrame) { _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); _y = _y + (_root.vcam._y - _y); _x = _x + (_root.vcam._x - _x); if (hp == 0) { _root.gotoAndStop('loser'); } if (hpn == 0) { _root.gotoAndStop('winner'); } } } instance ninja1 of movieClip 254 { onClipEvent (load) { hp = 100; dmg = 5; xscale = _xscale; timer = 6; jumping = false; jumper = 5; gravity = 0; canmove = true; } onClipEvent (enterFrame) { ++gravity; if (_root.health.hpn == 0) { if (_root.difficulty == 2) { _root.hardmode = 1; } if (_root.difficulty == 3) { _root.impossiblemode = 1; } if (_root.difficulty == 4) { _root.ninjamode = 1; } _root.gotoAndStop('nanitesc'); } if (this.hitTest(_root.land)) { --y; gravity = 0; } _y = _y + gravity; a = int(Math.random() * 10); j = int(Math.random() * 20); b = int(Math.random() * 2); kiblaster = int(Math.random() * 50); canturn = int(Math.random() * 5); if (j == 1) { jumping = true; jumper = 5; } if (jumping == true) { --jumper; _y = _y - 5 * jumper; if (jumper == 0) { jumping = false; } } distance = _x - _root.player._x; if (canmove == true) { if (distance < 75 && distance > -75) { if (a == 4) { gotoAndStop('slice'); } } distancea = _x - _root.bulleta._x; if (distancea < 100 && distancea > -100) { if (b == 2) { gotoAndStop('slice'); } } } } onClipEvent (enterFrame) { if (_root.player._x > this._x) { _root.dirhit = 2; _root.bulletb.dir = 1; if (!a == 4) { gotoAndStop('walk'); } _xscale = xscale; _x = _x + 2; } if (_root.player._x < this._x) { _root.dirhit = 1; _root.bulletb.dir = 2; if (!a == 4) { gotoAndStop('walk'); } _xscale = -xscale; _x = _x - 2; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } movieClip 735 { } movieClip 736 { } movieClip 741 { } movieClip 742 { } movieClip 743 { frame 7 { stop(); } instance of movieClip 742 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.land)) { _root.player.kickaccel = 0; } if (!_root.player.hitTest(_root.land)) { if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(3); } } if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(1); } } } instance of movieClip 741 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.land)) { _root.player.kickaccel = 0; } if (!_root.player.hitTest(_root.land)) { if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(3); } } if (_root.player.kickaccel == 0) { _root.player.gotoAndStop(1); } } } } movieClip 744 { frame 1 { stop(); } instance Mick of movieClip 735 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance of movieClip 735 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } if (_root.player.dir == 1) { this.rotation += 1; } if (_root.player.dir == 2) { this.rotation += 2; } } } instance Mick of movieClip 735 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 736 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 743 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 735 { onClipEvent (enterFrame) { if (!Key.isDown(81)) { _root.player.kicking = false; _root.player.canmove = true; } if (!_root.player.hitTest(_root.land)) { _root.player.gotoAndStop(3); } if (_root.player.hitTest(_root.ninja1.ninja.sword)) { _root.player.gotoAndStop(9); } if (_root.player.hitTest(_root.bulletb)) { _root.player.gotoAndStop(9); } } } instance Mick of movieClip 735 { onClipEvent (load) { hurttimer = 100; stumbletimer = 10; _root.player.mastercontrol = false; --_root.health.hp; } onClipEvent (enterFrame) { if (stumbletimer == 0) { _root.player.mastercontrol = true; _root.player.gotoAndStop(1); } if (_root.dirhit == 2) { _root.player._xscale = _root.player.xscale * -1; _root.player._x += 10; } if (_root.dirhit == 1) { _root.player._xscale = _root.player.xscale; _root.player._x -= 10; } --stumbletimer; } } } instance player of movieClip 744 { onClipEvent (load) { _x = _root.startp._x; _y = _root.startp._y; w = _width / 2; h = _height / 2; jumping = true; speed = 0; accel = 0; dir = 1; speedinc = 0; airspeedinc = 1; lanspeedinc = 2; gravity = 0; jump = 15; friction = 0; airfric = 0; lanfric = 1; xscale = _xscale; fell = 0; soundtrigger = 0; var jumpsound = new Sound(); jumpsound.attachSound('jumping'); canmove = true; kicking = false; _root.bulleta.dir = 1; mastercontrol = true; } onClipEvent (enterFrame) { if (_root.health.hp == 0) { _root.gotoAndStop('arcansidead'); } this._rotation += _root.player.accel; if (dir == 2) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 2; } } if (dir == 1) { if (_root.bulleta.canpush == true) { _root.bulleta.dir = 1; } } if (_y > 1156) { if (_root.lives == 0) { _root.gotoAndStop(4); } if (!_root.lives == 0) { --_root.lives; _x = _root.startp._x; _y = _root.startp._y; } } if (this.hitTest(_root.win)) { _root.timekeeper.asdf = 0; _root.gotoAndStop(3); } if (!accel == 0) { if (accel > 10) { accel = 10; } if (accel < -10) { accel = -10; } } if (mastercontrol == true) { if (!Key.isDown(65)) { if (!Key.isDown(68)) { if (!accel == 0) { if (kicking == false) { this.gotoAndStop(4); } } } } speed = accel / 2; if (canmove == true) { if (Key.isDown(65)) { accel -= speedinc; dir = 2; if (jumping == true) { if (!_root.player.hitTest(_root.ninja1.ninja.sword)) { if (fell == 1) { this.gotoAndStop(2); } } } if (_xscale == xscale) { _xscale = -xscale; } } if (Key.isDown(68)) { accel += speedinc; dir = 1; if (jumping == true) { if (!_root.player.hitTest(_root.ninja1.ninja.sword)) { if (fell == 1) { this.gotoAndStop(2); } } } if (_xscale == -xscale) { _xscale = xscale; } } } if (accel > 0) { accel -= friction; } if (accel < 0) { accel += friction; } if (Math.round(accel) == 0) { accel = 0; } if (Key.isDown(87)) { _root.player.soundtrigger = 0; } if (!Key.isDown(87)) { _root.player.soundtrigger = 1; } ++gravity; _y = _y + gravity; if (jumping) { if (Key.isDown(87)) { _y = _y - 1; gravity = -jump; } } if (accel == 0) { if (kicking == false) { if (Key.isDown(83)) { gotoAndStop(5); speed = 0; } } } if (Key.isDown(69)) { if (kicking == false) { canmove = false; kicking = true; _y = _y - 30; if (dir == 1) { kickdir = 1; kickaccel = 30; } if (dir == 2) { kickdir = 2; kickaccel = -30; } gotoAndStop(6); } } if (kicking == true) { if (this.hitpoint.hitTest(_root.ninja1.ninja)) { if (kickaccel > 0) { kickaccel -= 20; } if (kickaccel < 0) { kickaccel += 20; } } if (kickaccel > 0) { kickaccel -= 0.5; } if (kickaccel < 0) { kickaccel += 0.5; } speed = kickaccel / 2; } if (this.hitTest(_root.land)) { if (Key.isDown(32)) { canmove = false; this.gotoAndStop(7); } } _x = _x + speed; } while (_root.land.hitTest(_x, _y, true)) { jumping = true; speedinc = lanspeedinc; fell = 1; friction = lanfric; gravity = 0; _y = _y - 1; } if (!_root.land.hitTest(_x, _y + 1, true)) { jumping = false; speedinc = airspeedinc; friction = airfric; if (kicking == false && mastercontrol == true) { this.gotoAndStop(3); } } while (_root.land.hitTest(_x, _y - h * 2, true)) { gravity = 0; _y = _y + 1; } while (_root.land.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.land.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } while (_root.ninja1.ninja.hitTest(_x + w, _y - h, true)) { accel = 0; _x = _x - 10; } while (_root.ninja1.ninja.hitTest(_x - w, _y - h, true)) { accel = 0; _x = _x + 10; } if (this._x > 539) { this._x = 539; } if (this._x < 27.3) { this._x = 27.3; } } } instance bulleta of movieClip 16 bulleta { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.ninja1.ninja.sword)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; _root.player.kickdir = 1; } if (dir == 2) { _root.player.kickdir = 2; _x = _x - 10; } if (_root.health.ki > 0) { if (Key.isDown(32)) { if (shotcheck == true) { if (canpush == true) { --_root.health.ki; canpush = false; timer = 30; shotcheck = false; _x = _root.player._x; _y = _root.player._y; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } instance bulletb of movieClip 605 { onClipEvent (load) { timer = 20; shotcheck = true; canpush = true; timerb = 5; } onClipEvent (enterFrame) { if (this.hitTest(_root.player.hitpoint)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (this.hitTest(_root.player.blockpoint)) { if (dir == 1) { dir = 2; } if (dir == 2) { dir = 1; } } if (dir == 1) { _x = _x + 10; } if (dir == 2) { _x = _x - 10; } if (_root.health.kin > 0) { if (_root.ninja1.kiblaster == 5) { if (shotcheck == true) { if (canpush == true) { --_root.health.kin; canpush = false; timer = 30; shotcheck = false; _x = _root.ninja1._x; _y = _root.ninja1._y - 10; } } } } if (shotcheck == false) { --timer; if (timer == 0) { timerb = 5; canpush = true; shotcheck = true; _y = -9999; } } } } frame 405 { stop(); } frame 405 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 405 { stop(); } movieClip 752 { frame 212 { _root.gotoAndStop('winneronmicks'); } } frame 406 { stop(); } frame 406 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 406 { stop(); } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _y = _y + (_root.box._y - _y) / 4; _x = _x + (_root.box._x - _x) / 4; } } movieClip 756 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 759 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 761 { } movieClip 767 { instance box of movieClip 761 { onClipEvent (load) { timer = 1; } onClipEvent (enterFrame) { canpush = true; if (timer == 1) { _root.box._y -= 5; _root.box._x += 5; timer = 2; canpush = false; } if (timer == 2 && canpush == true) { _root.box._x -= 5; timer = 1; _root.box._y += 5; timer = 1; } } } frame 331 { _root.gotoAndStop('arcansidead'); } } frame 407 { stop(); } frame 407 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 407 { stop(); } movieClip 775 { } movieClip 782 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } frame 60 { stop(); } } movieClip 783 { } movieClip 785 { frame 301 { _root.gotoAndStop('arcansidead'); } } frame 408 { stop(); } frame 408 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 408 { stop(); } movieClip 790 { } movieClip 791 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 792 { instance of movieClip 241 { onClipEvent (load) { _root.ninja1.av = 100; _root.ninja1.gotoAndStop('walk'); } } } movieClip 793 { instance sword of movieClip 233 { onClipEvent (enterFrame) { if (_root.player.hitTest(_root.player)) { _root.player.gotoAndStop(9); } if (this.hitTest(_root.player)) { _root.player.gotoAndStop(9); } } } } movieClip 800 { frame 55 { stop(); } } movieClip 802 { frame 129 { _root.gotoAndStop('arcansidead'); } } frame 409 { stop(); } frame 409 { dirhit = 2; var title = new Sound(); title.attachSound('song'); title.start(0, 100000); var shieldtimer = 30; } frame 409 { stop(); } instance vcam of movieClip 278 { onClipEvent (enterFrame) { _y = _y + (_root.box._y - _y) / 4; _x = _x + (_root.box._x - _x) / 4; } } movieClip 804 { instance box of movieClip 761 { onClipEvent (load) { timer = 1; } onClipEvent (enterFrame) { canpush = true; if (timer == 1) { _root.box._y -= 10; _root.box._x += 10; timer = 2; canpush = false; } if (timer == 2 && canpush == true) { _root.box._x -= 10; timer = 1; _root.box._y += 10; timer = 1; } } } frame 135 { _root.gotoAndStop('winneronmicks'); } } frame 410 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } frame 410 { stopAllSounds(); nextFrame(); } movieClip 806 { } movieClip 808 { } movieClip 810 { } movieClip 815 { } movieClip 816 { } movieClip 817 { } movieClip 818 { instance of movieClip 808 { onClipEvent (enterFrame) { this._rotation += 1; } } instance walls of movieClip 810 { onClipEvent (enterFrame) { this._rotation += 2; } } instance of movieClip 817 { onClipEvent (enterFrame) { this._rotation += 2; } } } movieClip 821 { } button 825 { on (release) { play(); } } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } frame 411 { stop(); } frame 411 { deads = 0; } frame 411 { function itemHandler5(obj, item) { _quality = 'high'; } function itemHandler6(obj, item) { _quality = 'medium'; } function itemHandler7(obj, item) { _quality = 'low'; } root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); eee_cmi = new ContextMenuItem('High Quality', itemHandler5); fff_cmi = new ContextMenuItem('Mid Quality', itemHandler6); ggg_cmi = new ContextMenuItem('Low Quality', itemHandler7); ccc_cmi.separatorBefore = true; eee_cmi.separatorBefore = true; root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi, fff_cmi, ggg_cmi); _root.menu = root_cm; } button 827 { on (press) { _root.gotoAndStop('MainMenu'); } } frame 412 { stop(); _root.deads = 0; } instance of movieClip 808 { onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 1; } if (Key.isDown(39)) { this._rotation -= 1; } } } instance walls of movieClip 810 { onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 2; } if (Key.isDown(39)) { this._rotation -= 2; } } } instance of movieClip 817 { onClipEvent (enterFrame) { this._rotation = _root.walls._rotation; if (this.hitTest(_root.player._x, _root.player._y + 25, true)) { _root.flashy.play(); } } } movieClip 833 { frame 1 { stop(); } } movieClip 835 { frame 1 { stop(); } instance of movieClip 833 { onClipEvent (enterFrame) { if (_root.jump._currentframe == 2) { this.play(); } } } } instance player of movieClip 835 { onClipEvent (load) { this.stop(); radius = _width / 2 - 1; gravity = 10; startJumpHeight = 22; jumpHeight = 0; jumping = false; this._xscale = 100; this._yscale = 100; } onClipEvent (enterFrame) { _y = _y + gravity; if (Key.isDown(65)) { this.play(); } if (jumping) { _y = _y - jumpHeight; --jumpHeight; } if (Key.isDown(37)) { this._xscale = -100; } if (Key.isDown(39)) { this._xscale = 100; } if (Key.isDown(38) && !jumping) { if (_root.jump._currentframe == 1) { _root.jump.play(); _y = _y - 10; jumping = true; jumpHeight = startJumpHeight; } } while (_root.walls.hitTest(_x, _y + 20, true)) { _y = _y - 1; jumping = false; } while (_root.walls.hitTest(_x, _y - 20, true)) { _y = _y + 1; } while (_root.walls.hitTest(_x - 20, _y, true)) { _x = _x + 1; } while (_root.walls.hitTest(_x + 20, _y, true)) { _x = _x - 1; } } } movieClip 840 { frame 1 { stop(); } } movieClip 843 { } movieClip 844 { } movieClip 857 { } movieClip 860 { frame 1 { stop(); } frame 30 { stop(); ++_root.deads; _root.onEnterFrame = function () { if (_root.deads == 4) { _root.gotoAndStop('vWin'); } }; } frame 31 { --this.life; } frame 52 { if (this.life == 0) { this.gotoAndPlay(3); } } frame 54 { } frame 75 { this.gotoAndPlay(1); } } instance of movieClip 860 { onClipEvent (load) { this._x = _root.walls._x; this._y = _root.walls._y; this._rotation = 170; this.life = 5; } onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 2; } if (Key.isDown(39)) { this._rotation -= 2; } if (this._currentframe == 60) { if (this.hitTest(_root.player._x, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x, _root.player._y + 20, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x - 15, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x + 15, _root.player._y, true)) { _root.flashy.play(); } } if (this._currentframe == 1) { this._rotation += this._xscale / 100; if (this.hitTest(_root.player._x, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x + 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x - 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (_root.player._currentframe == 6) { if (this.hitTest(_root.player._x + _root.player._xscale / 2, _root.player._y + 10, true)) { this.gotoAndPlay(31); } } if (this._rotation > 0) { this._xscale = -100; } else { this._xscale = 100; } } } } movieClip 863 { frame 1 { stop(); } frame 2 { _root.lifebar.play(); } } movieClip 874 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); _root.nextFrame(); } } instance lifebar of movieClip 874 { onClipEvent (enterFrame) { if (_root.deads == 4) { _root.gotoAndStop('winv'); } } } instance bicho1 of movieClip 860 { onClipEvent (load) { this._x = _root.walls._x; this._y = _root.walls._y; this._rotation = 110; this.life = 5; } onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 2; } if (Key.isDown(39)) { this._rotation -= 2; } if (this._currentframe == 60) { if (this.hitTest(_root.player._x, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x, _root.player._y + 20, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x - 15, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x + 15, _root.player._y, true)) { _root.flashy.play(); } } if (this._currentframe == 1) { this._rotation += this._xscale / 93; if (this.hitTest(_root.player._x, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x + 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x - 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (_root.player._currentframe == 6) { if (this.hitTest(_root.player._x + _root.player._xscale / 2, _root.player._y + 10, true)) { this.gotoAndPlay(31); } } if (this._rotation > 0) { this._xscale = -100; } else { this._xscale = 100; } } } } instance bicho4 of movieClip 860 { onClipEvent (load) { this._x = _root.walls._x; this._y = _root.walls._y; this._rotation = 135; this.life = 5; } onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 2; } if (Key.isDown(39)) { this._rotation -= 2; } if (this._currentframe == 60) { if (this.hitTest(_root.player._x, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x, _root.player._y + 20, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x - 15, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x + 15, _root.player._y, true)) { _root.flashy.play(); } } if (this._currentframe == 1) { this._rotation += (this._xscale / 100) * 0.8; if (this.hitTest(_root.player._x, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x + 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x - 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (_root.player._currentframe == 6) { if (this.hitTest(_root.player._x + _root.player._xscale / 2, _root.player._y + 10, true)) { this.gotoAndPlay(31); } } if (this._rotation > 0) { this._xscale = -100; } else { this._xscale = 100; } } } } instance bicho5 of movieClip 860 { onClipEvent (load) { this._x = _root.walls._x; this._y = _root.walls._y; this._rotation = -170; this.life = 5; } onClipEvent (enterFrame) { if (Key.isDown(37)) { this._rotation += 2; } if (Key.isDown(39)) { this._rotation -= 2; } if (this._currentframe == 60) { if (this.hitTest(_root.player._x, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x, _root.player._y + 20, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x - 15, _root.player._y, true)) { _root.flashy.play(); } if (this.hitTest(_root.player._x + 15, _root.player._y, true)) { _root.flashy.play(); } } if (this._currentframe == 1) { this._rotation += (this._xscale / 100) * 1.3; if (this.hitTest(_root.player._x, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x + 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (this.hitTest(_root.player._x - 20, _root.player._y, true)) { this.gotoAndPlay(53); } if (_root.player._currentframe == 6) { if (this.hitTest(_root.player._x + _root.player._xscale / 2, _root.player._y + 10, true)) { this.gotoAndPlay(31); } } if (this._rotation > 0) { this._xscale = -100; } else { this._xscale = 100; } } } } frame 413 { stop(); } instance of movieClip 833 { onClipEvent (enterFrame) { if (_root.jump._currentframe == 2) { this.play(); } } } button 883 { on (release) { _root.gotoAndPlay('vmen'); stopAllSounds(); } } frame 414 { stop(); } frame 415 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 415 { Stage.showMenu = false; stop(); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 893 { frame 7 { stop(); } } button 896 { on (release) { _root.play(); } } button 900 { on (release) { _root.instr.play(); } } movieClip 903 { } button 908 { on (release) { play(); } } movieClip 910 { frame 1 { stop(); _root.play_BTN.enabled = true; _root.instr_BTN.enabled = true; } frame 2 { _root.instr_BTN.enabled = false; _root.play_BTN.enabled = false; } frame 15 { stop(); } frame 30 { gotoAndStop(1); } } button 913 { on (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } frame 416 { stop(); stopAllSounds(); allowall = false; addperc = 0; percent = 0; power = 1; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 920 { frame 1 { stop(); } frame 11 { gotoAndStop(1); } frame 22 { gotoAndStop(1); } } movieClip 921 { instance head of movieClip 193 { onClipEvent (enterFrame) { if (_root.greenLives._width < 70) { this.gotoAndStop(2); } if (_root.greenLives._width < 55) { this.gotoAndStop(3); } if (_root.greenLives._width < 30) { this.gotoAndStop(4); } if (_root.greenLives._width < 15) { this.gotoAndStop(5); } } } instance sword of movieClip 920 { onClipEvent (enterFrame) { if (_root.allowall == true) { if (Key.isDown(65) && _currentframe == 1) { this.gotoAndPlay('attack_one'); } if (Key.isDown(83) && _currentframe == 1 && _root.player._y <= 200) { this.gotoAndPlay('airstrike'); } } if (_root.allowall == false) { this.stop(); } } } } instance player of movieClip 921 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _root.addperc = _root.greenLives._width * 100 / 82; _x = _x + runspeed; _y = _y - jump; if (Key.isDown(39) && jump == 0) { runspeed += 2; } if (Key.isDown(37) && jump == 0) { runspeed -= 2; } if (Key.isDown(38) && jump == 0) { jump = 20; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = 45; } if (runspeed < 0) { _xscale = -45; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.enemy.keule.hitTest(this) && _root.enemy.keule._currentframe != 1) { _root.greenLives._width -= _root.power; _root.ef.play(); } } } } movieClip 928 { frame 1 { stop(); } } movieClip 931 { frame 1 { stop(); } frame 2 { play(); } frame 15 { gotoAndStop(1); } } movieClip 932 { instance head of movieClip 928 { onClipEvent (enterFrame) { if (_root.yellowLives._width < 70) { this.gotoAndStop(2); } if (_root.yellowLives._width < 55) { this.gotoAndStop(3); } if (_root.yellowLives._width < 30) { this.gotoAndStop(4); } if (_root.yellowLives._width < 15) { this.gotoAndStop(5); } } } instance keule of movieClip 931 { onClipEvent (enterFrame) { if (_root.allowall == false) { this.stop(); } } } } instance enemy of movieClip 932 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _x = _x + runspeed / 2; _y = _y - jump; if (_x < _root.player._x - 100 && jump == 0) { runspeed += 2; } if (_x < _root.player._x + 100 && _x > _root.player._x - 100 && jump == 0 && this.keule._currentframe == 1) { this.keule.gotoAndPlay('attack_one'); } if (_x > _root.player._x + 100 && jump == 0) { runspeed -= 2; } if (_root.player._y < maxY / 2 && jump == 0) { jump = 15; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 0.3; } if (runspeed < 0 && jump == 0) { runspeed += 0.3; } if (runspeed > 0) { runspeed -= 1; } if (runspeed < 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = -20; } if (runspeed < 0) { _xscale = 20; } if (_root.player._x > _x) { _xscale = -20; } if (_root.player._x < _x) { _xscale = 20; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.player.sword.hitTest(this) && _root.player.sword._currentframe != 1) { _root.yellowLives._width -= _root.power / 1.5; _root.ef.play(); } } } } movieClip 935 { } instance greenLives of movieClip 935 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } movieClip 936 { } instance yellowLives of movieClip 936 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } movieClip 977 { frame 44 { stop(); } } movieClip 978 { frame 1 { stop(); } frame 27 { if (_root.greenLives._width <= 2) { _root.player._visible = false; } else { if (_root.redLives._width <= 2) { _root.enemy._visible = false; } } } frame 75 { if (_root.greenLives._width <= 2) { _root.gotoAndStop('dead'); } else { if (_root.redLives._width <= 2) { _root.nextFrame(); } } } } instance of movieClip 978 { onClipEvent (load) { walk = true; this.stop(); } onClipEvent (enterFrame) { if (_root.greenLives._width <= 2 && _x < _root.player._x + _root.player._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.player._x + _root.player._width / 2) { walk = false; this.play(); } } if (_root.yellowLives._width <= 2 && _x < _root.enemy._x + _root.enemy._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.enemy._x + _root.enemy._width / 2) { walk = false; this.play(); } } } } movieClip 985 { frame 116 { stop(); _root.allowall = true; } } movieClip 987 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } frame 417 { stop(); _root.percent += Math.round(_root.addperc); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 989 { } button 992 { on (release) { _root.nextFrame(); } } frame 418 { stop(); stopAllSounds(); allowall = false; power = 1; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } instance player of movieClip 921 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _root.addperc = _root.greenLives._width * 100 / 82; _x = _x + runspeed; _y = _y - jump; if (Key.isDown(39) && jump == 0) { runspeed += 2; } if (Key.isDown(37) && jump == 0) { runspeed -= 2; } if (Key.isDown(38) && jump == 0) { jump = 20; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = 45; } if (runspeed < 0) { _xscale = -45; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.enemy.dreizack.hitTest(this) && _root.enemy.dreizack._currentframe != 1) { _root.greenLives._width -= _root.power; _root.ef.play(); } } } } movieClip 1000 { frame 1 { stop(); } } movieClip 1003 { frame 1 { stop(); } frame 2 { play(); } frame 15 { gotoAndStop(1); } } movieClip 1004 { instance head of movieClip 1000 { onClipEvent (enterFrame) { if (_root.redLives._width < 70) { this.gotoAndStop(2); } if (_root.redLives._width < 55) { this.gotoAndStop(3); } if (_root.redLives._width < 30) { this.gotoAndStop(4); } if (_root.redLives._width < 15) { this.gotoAndStop(5); } } } } instance enemy of movieClip 1004 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _x = _x + runspeed; _y = _y - jump; if (_x < _root.player._x - 120 && jump == 0) { runspeed += 2; } if (_x < _root.player._x + 120 && _x > _root.player._x - 120 && jump == 0 && this.dreizack._currentframe == 1) { this.dreizack.gotoAndPlay('attack_one'); } if (_x > _root.player._x + 120 && jump == 0) { runspeed -= 2; } if (_root.player._y < maxY / 2 && jump == 0) { jump = 20; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = -20; } if (runspeed < 0) { _xscale = 20; } if (jump == 0 && _root.player._x > _x) { _xscale = -20; } if (jump == 0 && _root.player._x < _x) { _xscale = 20; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.player.sword.hitTest(this) && _root.player.sword._currentframe != 1) { _root.redLives._width -= _root.power / 1.5; _root.ef.play(); } } } } instance greenLives of movieClip 935 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance redLives of movieClip 936 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance of movieClip 978 { onClipEvent (load) { walk = true; this.stop(); } onClipEvent (enterFrame) { if (_root.greenLives._width <= 2 && _x < _root.player._x + _root.player._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.player._x + _root.player._width / 2) { walk = false; this.play(); } } if (_root.redLives._width <= 2 && _x < _root.enemy._x + _root.enemy._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.enemy._x + _root.enemy._width / 2) { walk = false; this.play(); } } } } frame 419 { stop(); _root.percent += Math.round(_root.addperc); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } frame 420 { stop(); stopAllSounds(); allowall = false; power = 2; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } instance player of movieClip 921 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _root.addperc = _root.greenLives._width * 100 / 82; _x = _x + runspeed; _y = _y - jump; if (Key.isDown(39) && jump == 0) { runspeed += 2; } if (Key.isDown(37) && jump == 0) { runspeed -= 2; } if (Key.isDown(38) && jump == 0) { jump = 20; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = 45; } if (runspeed < 0) { _xscale = -45; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.enemy.alge.hitTest(this) && _root.enemy.alge._currentframe != 1) { _root.greenLives._width -= _root.power / 2; _root.ef.play(); } } } } movieClip 1013 { frame 1 { stop(); } } movieClip 1016 { frame 1 { stop(); } frame 2 { play(); } frame 5 { play(); } frame 30 { gotoAndStop(1); } frame 31 { play(); } frame 34 { play(); } frame 43 { gotoAndStop(1); } } movieClip 1017 { instance head of movieClip 1013 { onClipEvent (enterFrame) { if (_root.blueLives._width < 70) { this.gotoAndStop(2); } if (_root.blueLives._width < 55) { this.gotoAndStop(3); } if (_root.blueLives._width < 30) { this.gotoAndStop(4); } if (_root.blueLives._width < 15) { this.gotoAndStop(5); } } } instance alge of movieClip 1016 { onClipEvent (enterFrame) { if (_root.allowall == false) { this.stop(); } } } } instance enemy of movieClip 1017 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _x = _x + runspeed; _y = _y - jump; if (_x < _root.player._x - 120 && jump == 0) { runspeed += 2; } if (_x < _root.player._x + 120 && _x > _root.player._x - 120 && jump == 0 && this.alge._currentframe == 1) { this.alge.gotoAndPlay('attack_one'); } else { if (_x < _root.player._x + 120 && _x > _root.player._x - 120 && jump != 0 && this.alge._currentframe == 1) { this.alge.gotoAndPlay('attack_two'); } } if (_x > _root.player._x + 120 && jump == 0) { runspeed -= 2; } if (_root.player._y < maxY / 2 && jump == 0) { jump = 25; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = -20; } if (runspeed < 0) { _xscale = 20; } if (jump == 0 && _root.player._x > _x) { _xscale = -20; } if (jump == 0 && _root.player._x < _x) { _xscale = 20; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.player.sword.hitTest(this) && _root.player.sword._currentframe != 1) { _root.blueLives._width -= _root.power / 1.5; _root.ef.play(); } } } } instance greenLives of movieClip 935 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance blueLives of movieClip 936 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance of movieClip 978 { onClipEvent (load) { walk = true; this.stop(); } onClipEvent (enterFrame) { if (_root.greenLives._width <= 2 && _x < _root.player._x + _root.player._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.player._x + _root.player._width / 2) { walk = false; this.play(); } } if (_root.blueLives._width <= 2 && _x < _root.enemy._x + _root.enemy._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.enemy._x + _root.enemy._width / 2) { walk = false; this.play(); } } } } frame 421 { stop(); _root.percent += Math.round(_root.addperc); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } frame 422 { stop(); stopAllSounds(); allowall = false; power = 1; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } instance player of movieClip 921 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _root.addperc = _root.greenLives._width * 100 / 82; _x = _x + runspeed; _y = _y - jump; if (Key.isDown(39) && jump == 0) { runspeed += 2; } if (Key.isDown(37) && jump == 0) { runspeed -= 2; } if (Key.isDown(38) && jump == 0) { jump = 20; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = 45; } if (runspeed < 0) { _xscale = -45; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.enemy.flasche.hitTest(this) && _root.enemy.flasche._currentframe != 2) { _root.greenLives._width -= _root.power / 1.5; _root.ef.play(); } } } } movieClip 1026 { frame 1 { stop(); } } movieClip 1030 { frame 1 { stop(); } } movieClip 1033 { frame 1 { flHin = false; } frame 2 { stop(); } instance of movieClip 1030 { onClipEvent (enterFrame) { if (_root.enemy.flasche.flHin == true) { this.gotoAndStop(2); } } } frame 3 { play(); } frame 12 { flHin = true; } frame 18 { gotoAndStop(2); } frame 19 { play(); } frame 30 { gotoAndStop(2); } } movieClip 1034 { instance head of movieClip 1026 { onClipEvent (enterFrame) { if (_root.grayLives._width < 70) { this.gotoAndStop(2); } if (_root.grayLives._width < 55) { this.gotoAndStop(3); } if (_root.grayLives._width < 30) { this.gotoAndStop(4); } if (_root.grayLives._width < 15) { this.gotoAndStop(5); } } } instance flasche of movieClip 1033 { onClipEvent (enterFrame) { if (_root.allowall == false) { this.stop(); } } } } instance enemy of movieClip 1034 { onClipEvent (load) { runspeed = 0; jump = 0; maxY = 250; _y = maxY; } onClipEvent (enterFrame) { if (_root.allowall == true) { _x = _x + runspeed; _y = _y - jump; if (_x < _root.player._x - 120 && jump == 0) { runspeed += 2; } if (_x < _root.player._x + 120 && _x > _root.player._x - 120 && jump == 0 && this.flasche._currentframe == 2) { this.flasche.gotoAndPlay('attack_one'); } else { if (_x < _root.player._x + 120 && _x > _root.player._x - 120 && jump != 0 && this.flasche._currentframe == 2) { this.flasche.gotoAndPlay('attack_two'); } } if (_x > _root.player._x + 120 && jump == 0) { runspeed -= 2; } if (_root.player._y < maxY / 2 && jump == 0) { jump = 25; } if (jump != 0) { jump -= 1.1; _x = _x + runspeed / 3; } if (_y > maxY) { jump = 0; _y = maxY; } if (runspeed > 0 && jump == 0) { runspeed -= 1; } if (runspeed < 0 && jump == 0) { runspeed += 1; } if (runspeed > 10) { runspeed = 10; } if (runspeed < -10) { runspeed = -10; } if (runspeed > 0) { _xscale = -20; } if (runspeed < 0) { _xscale = 20; } if (jump == 0 && _root.player._x > _x) { _xscale = -20; } if (jump == 0 && _root.player._x < _x) { _xscale = 20; } if (_x < -(_width / 2)) { _x = 500 + _width / 2; } if (_x > 500 + _width / 2) { _x = -(_width / 2); } if (_root.player.sword.hitTest(this) && _root.player.sword._currentframe != 1) { _root.grayLives._width -= _root.power / 1.1; _root.ef.play(); } } } } instance greenLives of movieClip 935 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance grayLives of movieClip 936 { onClipEvent (enterFrame) { if (_width <= 2) { _root.allowall = false; } } } instance of movieClip 978 { onClipEvent (load) { walk = true; this.stop(); } onClipEvent (enterFrame) { if (_root.greenLives._width <= 2 && _x < _root.player._x + _root.player._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.player._x + _root.player._width / 2) { walk = false; this.play(); } } if (_root.grayLives._width <= 2 && _x < _root.enemy._x + _root.enemy._width / 2 && walk == true) { _x = _x + 7; } else { if (_x >= _root.enemy._x + _root.enemy._width / 2) { walk = false; this.play(); } } } } frame 423 { stop(); _root.percent += Math.round(_root.addperc); finalpercent = percent * 100 / 400; howGood = 'You played to ' + finalpercent + '% like a master!'; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 1040 { } movieClip 1042 { } instance of movieClip 1042 { onClipEvent (load) { this.gotoAndPlay(random(_totalframes)); } } button 1044 { on (release) { stopAllSounds(); gotoAndStop(415); } } frame 424 { stop(); _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } }; Key.addListener(myListener); } movieClip 1049 { } movieClip 1051 { } frame 425 { function item1() { _root.gotoAndStop(); } function musicOff() { if (counting >= 1) { counting = 0; bgm.stop(); } } function musicOn() { counting = 1; bgm.start(0, 99); } function nothing() {} var bgm = new Sound(this); var lool = false; if (!lool) { bgm.attachSound('bgm'); lool = true; } Mouse.show(); var counting = 1; var Playing = false; bgm.setVolume(100); id = setInterval(function () { if (counting == 0) { menuItem4.enabled = true; menuItem3.enabled = false; bgm.stop(); } if (counting >= 1) { menuItem3.enabled = true; menuItem4.enabled = false; } if (count == 1) { ++counting; } }, 10); bgm.start(0, 99); var cMenu = new ContextMenu(); cMenu.builtInItems.quality = true; cMenu.builtInItems.forward_back = false; cMenu.builtInItems.print = false; cMenu.builtInItems.save = false; cMenu.builtInItems.zoom = false; cMenu.builtInItems.rewind = false; cMenu.builtInItems.play = false; cMenu.builtInItems.loop = false; var menuItem3 = new ContextMenuItem('Music Off', musicOff); var menuItem4 = new ContextMenuItem('Music On', musicOn); var menuItem2 = new ContextMenuItem('Zrb - All Rights Reserved', nothing); menuItem2.enabled = false; menuItem2.separatorBefore = true; menuItem4.separatorBefore = true; _root.menu = cMenu; cMenu.customItems.push(menuItem1, menuItem4, menuItem3, menuItem2); _focusrect = false; onEnterFrame = function () { if (_currentframe < 7) { Mouse.show(); } }; } frame 425 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 425 { stop(); } movieClip 1055 { } // unknown tag 88 length 75 // unknown tag 88 length 75 movieClip 1098 { frame 1 { if (_name == 'wateri') { gotoAndStop(2); } else { gotoAndStop(1); } } } instance wateri of movieClip 1098 { onClipEvent (load) { _visible = false; gotoAndStop(426); } } instance firei of movieClip 1098 { onClipEvent (load) { _visible = false; gotoAndStop(425); } } movieClip 1100 { } movieClip 1101 { frame 1 { stop(); } } instance of movieClip 1101 { onClipEvent (rollOver) { gotoAndStop(426); this.useHandCursor = false; } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('game'); } } movieClip 1104 { frame 1 { onEnterFrame = function () { if (!_root.wateri._visible) { gotoAndStop(1); } else { gotoAndStop(2); } }; } frame 1 { stop(); } } instance of movieClip 1104 { onClipEvent (rollOver) { this.useHandCursor = false; } onClipEvent (press) { if (_root.wateri._visible == false) { _root.wateri._visible = true; _y = 25; gotoAndStop(426); } else { _root.wateri._visible = false; _y = 150; gotoAndStop(425); } } onClipEvent (load) { stop(); } } movieClip 1107 { frame 1 { onEnterFrame = function () { if (!_root.firei._visible) { gotoAndStop(1); } else { gotoAndStop(2); } }; } } instance of movieClip 1107 { onClipEvent (rollOver) { this.useHandCursor = false; } onClipEvent (press) { if (_root.firei._visible == false) { _root.firei._visible = true; _y = 25; gotoAndStop(425); } else { _root.firei._visible = false; _y = 150; gotoAndStop(426); } } onClipEvent (enterFrame) { if (_y > 25) { gotoAndStop(425); } else { gotoAndStop(426); } } } // unknown tag 88 length 75 movieClip 1124 { } instance of movieClip 1124 { onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } frame 431 { var fighting = true; var p1sp = 0; var p2sp = 0; var fireShoot = 0; var fCount = 1; var waterShoot = 0; var wCount = 1; var spikeShoot = 0; var spkCount = 1; var spbShoot = 0; var wsbCount = 1; var Pause = false; var kHeld = 0; var sDeath = 0; var sdDelay = 3; var music = false; var countDown = true; pausing._visible = false; sd._visible = false; Mouse.show(); coutDown = true; onEnterFrame = function () { if (Key.isDown(2)) { Mouse.show(); } else { if (Pause == false) { Mouse.hide(); } } if (countDown == true) { player1.State = 'respawn2'; player2.State = 'respawn2'; } if (countDown == false) { if (sDeath == 1) { player1.State = 'respawn2'; player2.State = 'respawn2'; hud.p1spb.gotoAndStop(5); hud.p1hp.gotoAndStop(96); hud.p2spb.gotoAndStop(5); hud.p2hp.gotoAndStop(96); } if (hud.p1spb._currentframe > 1) { p1sp = 1; } if (hud.p1spb._currentframe == 1) { p1sp = 0; } if (hud.p1spb._currentframe == 101) { p1sp = 2; } if (hud.p2spb._currentframe > 1) { p2sp = 1; } if (hud.p2spb._currentframe == 1) { p2sp = 0; } if (hud.p2spb._currentframe == 101) { p2sp = 2; } if (hud.p2hp._currentframe >= 101) { player2.State = 'death'; } if (hud.p1hp._currentframe >= 101) { player1.State = 'death'; } if (Key.isDown(80) && kHeld == 0) { ++kHeld; if (Pause == false) { Pause = true; pausing._visible = true; Mouse.show(); } else { Mouse.hide(); Pause = false; pausing._visible = false; } } if (!Key.isDown(80)) { kHeld = 0; } if (fCount > 100) { fCount = 1; } if (fireShoot == 1) { duplicateMovieClip(fBall, 'fBall' + fCount, fCount); ++fCount; } if (wCount > 100) { wCount = 1; } if (waterShoot == 1) { duplicateMovieClip(wBall, 'wBall' + wCount, wCount); ++wCount; } if (spkCount > 100) { spkCount = 1; } if (spikeShoot == 1) { duplicateMovieClip(fSpikes, 'fSpikes' + spkCount, spkCount); ++spkCount; } if (wsbCountt > 100) { wsbCount = 1; } if (spbShoot == 1) { duplicateMovieClip(wSpBall, 'wSpBall' + wsbCount, wsbCount); ++wsbCount; } } }; stop(); timing = setInterval(function () { if (Pause == false && countDown == false) { if (tima.text > 0) { tima.text -= 1; } else { if (tima.text == 0) { sd._visible = true; sd.play(); ++sDeath; } } } }, 1000); } movieClip 1127 { } movieClip 1129 { } movieClip 1131 { } movieClip 1133 { } movieClip 1134 { frame 22 { _root.player2.State = 'normal'; } } movieClip 1135 { frame 40 { if (_root.countDown == false) { _root.player2.State = 'normal'; } else { gotoAndPlay(1); } } } movieClip 1136 { } movieClip 1137 { frame 6 { stop(); } } movieClip 1138 { frame 6 { stop(); } } movieClip 1140 { } movieClip 1142 { } movieClip 1143 { frame 9 { sound = new Sound(this); sound.attachSound('woosh'); sound.start(0.1, 0); sound.setVolume(100); } instance b of movieClip 1142 { onClipEvent (enterFrame) { if (this.hitTest(_root.player1)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2.Face == 'left') { _root.player1.State = 'hit'; } } } } frame 13 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 21 { if (Key.isDown(74)) { _root.player2.State = 'punch2'; } if (Key.isDown(75)) { _root.player2.State = 'kick2'; } } frame 25 { _root.player2.State = 'normal'; } } movieClip 1145 { frame 11 { stop(); } } movieClip 1146 { frame 5 { sound = new Sound(this); sound.attachSound('woosh2'); sound.start(0.05, 0); sound.setVolume(100); } frame 8 { onEnterFrame = function () { if (b.hitTest(_root.player1)) { if (_root.player2.Face == 'right' && _root.player2._x < _root.player1._x || _root.player2.Face == 'left' && _root.player1._x < _root.player2._x) { _root.player1.State = 'hit'; } } }; } frame 9 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 17 { if (Key.isDown(74)) { _root.player2.State = 'punch3'; } if (Key.isDown(75)) { _root.player2.State = 'kick3'; } } frame 21 { _root.player2.State = 'normal'; } } movieClip 1147 { frame 4 { sound = new Sound(this); sound.attachSound('woosh1'); sound.start(0.05, 0); sound.setVolume(100); } frame 5 { b.onEnterFrame = function () { if (b.hitTest(_root.player1)) { if (_root.player2.Face == 'right' && _root.player1._x > _root.player2._x || _root.player2.Face == 'left' && _root.player1._x > _root.player2._x) { _root.player1.State = 'hit'; _root.player1._y -= 3; } } }; } frame 7 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 8 { b.onEnterFrame = function () { if (b.hitTest(_root.player1)) { if (_root.player2.Face == 'right' && _root.player1._x > _root.player2._x || _root.player2.Face == 'left' && _root.player1._x < _root.player2._x) { _root.player1.State = 'hit'; _root.player1._y -= 3; } } }; } frame 14 { if (Key.isDown(74)) { _root.player2.State = 'punch3'; } if (Key.isDown(75)) { _root.player2.State = 'kick3'; } } frame 15 { _root.player2.State = 'normal'; } } movieClip 1148 { frame 5 { sound = new Sound(this); sound.attachSound('woosh'); sound.start(0.1, 0); sound.setVolume(100); } instance of movieClip 1129 { onClipEvent (enterFrame) { if (this.hitTest(_root.player1)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x < _root.player1._x) { _root.player1.State = 'hit'; } } } } frame 9 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 17 { if (Key.isDown(74)) { _root.player2.State = 'punch2'; } if (Key.isDown(75)) { _root.player2.State = 'kick2'; } } frame 20 { _root.player2.State = 'normal'; } } movieClip 1149 { frame 5 { sound = new Sound(this); sound.attachSound('woosh2'); sound.start(0.05, 0); sound.setVolume(100); } instance of movieClip 1127 { onClipEvent (enterFrame) { if (this.hitTest(_root.player1)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x < _root.player1._x) { _root.player1.State = 'hit'; } } } } frame 9 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 16 { if (Key.isDown(74)) { _root.player2.State = 'punch3'; } if (Key.isDown(75)) { _root.player2.State = 'kick3'; } } frame 20 { _root.player2.State = 'normal'; } } movieClip 1150 { frame 3 { sound = new Sound(this); sound.attachSound('woosh1'); sound.start(0.05, 0); sound.setVolume(100); } instance of movieClip 1127 { onClipEvent (enterFrame) { if (this.hitTest(_root.player1)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x < _root.player1._x) { _root.player1.State = 'hit'; } } } } instance of movieClip 1129 { onClipEvent (enterFrame) { if (this.hitTest(_root.player1)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x < _root.player1._x) { _root.player1.State = 'hit'; } } } } frame 15 { _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5); } frame 21 { _root.player2.State = 'normal'; } } movieClip 1152 { frame 11 { stop(); } } movieClip 1154 { frame 11 { stop(); } } movieClip 1155 { } movieClip 1156 { } movieClip 1157 { frame 1 { if (_root.p2sp >= 1) { play(); } else { _root.player2.State = 'normal'; } } frame 9 { sound = new Sound(this); sound.attachSound('shoot'); sound.start(0.05, 0); sound.setVolume(100); } frame 16 { _root.waterShoot = 1; _root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe - 5); } frame 17 { _root.waterShoot = 0; } frame 21 { if (!Key.isDown(76)) { _root.player2.State = 'normal'; } else { gotoAndPlay(1); } } } movieClip 1158 { frame 9 { stop(); } } movieClip 1159 { } movieClip 1161 { } movieClip 1162 { frame 9 { sound = new Sound(this); sound.attachSound('special'); sound.start(0.1, 0); sound.setVolume(100); } frame 19 { _root.spbShoot = 1; _root.hud.p2spb.gotoAndStop(1); } frame 20 { _root.spbShoot = 0; } frame 25 { _root.player2.State = 'normal'; } frame 26 { _root.ctrl2.gotoAndStop('main'); } } movieClip 1163 { frame 1 { if (_root.player2.State == 'hit' || _root.player2.State == 'hit3') { sound = new Sound(this); sound.attachSound('hit'); sound.start(0.3, 0); sound.setVolume(100); } } frame 11 { _root.player2.State = 'normal'; } } movieClip 1164 { frame 1 { if (_root.player2.State == 'hit2') { sound = new Sound(this); sound.attachSound('stab'); sound.start(0, 0); sound.setVolume(100); } } frame 13 { _root.player2.State = 'normal'; } } movieClip 1165 { frame 1 { _root.player2._name = 'loser'; } frame 23 { _root.go2.play(); stop(); } } movieClip 1166 { frame 1 { stop(); } } instance player2 of movieClip 1166 { onClipEvent (load) { var ground = _root.ground; var enemy = _root.player1; var grav = 0; var gravity = 2; var speed = 7; var jHeight = 18; var jSpeed = 5; var fall = jSpeed; var kDown = Key.isDown; var rKey = 68; var lKey = 65; var uKey = 87; var pKey = 74; var kKey = 75; var sKey = 76; var spKey = 32; var Face = 'left'; var scale = 100; var State = 'normal'; var count = 0; var count2 = 0; } onClipEvent (enterFrame) { if (!_root.Pause) { if (_y > Stage.height + 20) { State = 'respawn'; } if (Face == 'right') { _xscale = scale; } if (Face == 'left') { _xscale = -scale; } if (State == 'normal') { _alpha = 100; count = 0; count2 = 0; _y = _y + grav; grav += gravity; while (ground.hitTest(_x, _y, true)) { _y = _y - gravity; grav = 0; } if (kDown(rKey)) { Face = 'right'; _x = _x + speed; if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('run'); } } else { if (kDown(lKey)) { Face = 'left'; _x = _x - speed; if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('run'); } } } if (!kDown(rKey) && !kDown(lKey)) { if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('idle'); } } if (kDown(uKey) && ground.hitTest(_x, _y + 3, true)) { _y = _y - jSpeed; grav = -jHeight; } if (grav < 0) { gotoAndStop('jump'); } if (grav > fall && !ground.hitTest(_x, _y + 3, true)) { gotoAndStop('fall'); } if (kDown(pKey) && ground.hitTest(_x, _y + 3, true)) { State = 'punch'; } if (kDown(kKey) && ground.hitTest(_x, _y + 3, true)) { State = 'kick'; } if (kDown(sKey)) { if (_root.p2sp > 0 && ground.hitTest(_x, _y + 3, true) && _root.player1.State != 'death') { State = 'shoot'; } } if (kDown(spKey)) { if (_root.p2sp == 2) { State = 'special'; } } } if (State == 'punch') { gotoAndStop('punch1'); } if (State == 'respawn') { if (count < 1) { _root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 5); ++count; } _x = 430; _y = 178; gotoAndStop('idle'); _alpha = 70; Face = 'left'; } if (State == 'respawn2') { _x = 430; _y = 160; gotoAndStop('idle2'); _alpha = 100; Face = 'left'; } if (State == 'punch2') { gotoAndStop('punch2'); } if (State == 'punch3') { gotoAndStop('punch3'); } if (State == 'kick') { gotoAndStop('kick1'); } if (State == 'kick2') { gotoAndStop('kick2'); } if (State == 'kick3') { gotoAndStop('kick3'); } if (State == 'shoot') { gotoAndStop('shoot'); } if (State == 'special') { gotoAndStop('special'); } if (State == 'hit') { if (enemy._x > _x) { _x = _x - 0.5; Face = 'right'; } if (enemy._x < _x) { _x = _x + 0.5; Face = 'left'; } gotoAndStop('hit'); if (count < 1) { _root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 1); ++count; } } if (State == 'hit3') { if (enemy._x > _x) { _x = _x - 2; Face = 'right'; } if (enemy._x < _x) { _x = _x + 2; Face = 'left'; } if (!ground.hitTest(_x, _y + 3, true)) { _y = _y + grav; grav += 1; } while (ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } gotoAndStop('hit'); if (count < 1) { _root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 5); ++count; } } if (State == 'hit2') { if (enemy._x > _x) { _x = _x - 5; Face = 'right'; } if (enemy._x < _x) { _x = _x + 5; Face = 'left'; } if (!ground.hitTest(_x, _y + 3, true)) { _y = _y + grav; grav += 1; } while (ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } gotoAndStop('hit2'); if (count == 0) { _root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 20); ++count; } } if (State == 'death') { gotoAndStop('death'); } } if (_root.Pause == true) { if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('idle'); } } } } movieClip 1167 { frame 23 { _root.player1.State = 'normal'; } } movieClip 1168 { } movieClip 1169 { frame 6 { stop(); } } movieClip 1170 { frame 6 { stop(); } } movieClip 1172 { } movieClip 1173 { frame 9 { sound = new Sound(this); sound.attachSound('woosh'); sound.start(0.1, 0); sound.setVolume(100); } instance of movieClip 1172 { onClipEvent (enterFrame) { if (this.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } } } frame 13 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 21 { onEnterFrame = function () { if (Key.isDown(97)) { _root.player1.State = 'punch2'; } if (Key.isDown(98)) { _root.player1.State = 'kick2'; } }; } frame 25 { _root.player1.State = 'normal'; } } movieClip 1175 { frame 11 { stop(); } } movieClip 1176 { frame 5 { sound = new Sound(this); sound.attachSound('woosh2'); sound.start(0.05, 0); sound.setVolume(100); } frame 8 { b.onEnterFrame = function () { if (b.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } }; } frame 9 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 17 { if (Key.isDown(97)) { _root.player1.State = 'punch3'; } if (Key.isDown(98)) { _root.player1.State = 'kick3'; } } frame 21 { _root.player1.State = 'normal'; } } movieClip 1177 { frame 4 { sound = new Sound(this); sound.attachSound('woosh1'); sound.start(0.05, 0); sound.setVolume(100); } frame 5 { b.onEnterFrame = function () { if (b.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; _root.player2._y -= 3; } } }; } frame 7 { b.onEnterFrame = function () { if (b.hitTest(_root.player2)) { _root.player2.State = 'hit'; _root.player2._y -= 2; } }; } frame 7 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 15 { _root.player1.State = 'normal'; } } movieClip 1178 { frame 5 { sound = new Sound(this); sound.attachSound('woosh'); sound.start(0.1, 0); sound.setVolume(100); } instance foot of movieClip 32 { onClipEvent (enterFrame) { if (this.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } } } frame 9 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 17 { if (Key.isDown(97)) { _root.player1.State = 'punch2'; } if (Key.isDown(98)) { _root.player1.State = 'kick2'; } } frame 21 { _root.player1.State = 'normal'; } } movieClip 1179 { frame 5 { sound = new Sound(this); sound.attachSound('woosh2'); sound.start(0.05, 0); sound.setVolume(100); } instance foot of movieClip 30 { onClipEvent (enterFrame) { if (this.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } } } frame 9 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 16 { if (Key.isDown(97)) { _root.player1.State = 'punch3'; } if (Key.isDown(98)) { _root.player1.State = 'kick3'; } } frame 20 { _root.player1.State = 'normal'; } } movieClip 1180 { frame 3 { sound = new Sound(this); sound.attachSound('woosh1'); sound.start(0.05, 0); sound.setVolume(100); } instance foot of movieClip 30 { onClipEvent (enterFrame) { if (this.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } } } instance foot2 of movieClip 32 { onClipEvent (enterFrame) { if (this.hitTest(_root.player2)) { if (_root.player1.Face == 'right' && _root.player2._x > _root.player1._x || _root.player1.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player2.State = 'hit'; } } } } frame 11 { _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5); } frame 21 { _root.player1.State = 'normal'; } } movieClip 1181 { frame 1 { if (_root.p1sp > 0) { play(); } else { _root.player1.State = 'normal'; } } frame 9 { sound = new Sound(this); sound.attachSound('shoot'); sound.start(0.05, 0); sound.setVolume(100); } frame 16 { if (_root.p1sp > 0 && _root.Pause == false) { _root.fireShoot = 1; _root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe - 5); } } frame 17 { _root.fireShoot = 0; } frame 21 { if (Key.isDown(99)) { gotoAndPlay(1); } else { _root.player1.State = 'normal'; } } } movieClip 1182 { frame 11 { sound = new Sound(this); sound.attachSound('special'); sound.start(0.1, 0); sound.setVolume(100); } frame 19 { _root.spikeShoot = 1; _root.hud.p1spb.gotoAndStop(1); } frame 20 { _root.spikeShoot = 0; } frame 31 { _root.player1.State = 'normal'; } } movieClip 1183 { frame 1 { if (_root.player1.State == 'hit' || _root.player1.State == 'hit3') { sound = new Sound(this); sound.attachSound('hit'); sound.start(0.3, 0); sound.setVolume(100); } } frame 11 { _root.player1.State = 'normal'; } } movieClip 1184 { frame 1 { if (_root.player1.State == 'hit2') { sound = new Sound(this); sound.attachSound('fwhit'); sound.start(0.1, 0); sound.setVolume(100); } } frame 13 { _root.player1.State = 'normal'; } } movieClip 1185 { frame 1 { _root.player1._name = 'loserr'; } frame 23 { _root.go1.play(); stop(); } } movieClip 1186 { frame 1 { stop(); } } instance player1 of movieClip 1186 { onClipEvent (load) { var ground = _root.ground; var enemy = _root.player2; var grav = 0; var gravity = 2; var speed = 7; var jHeight = 18; var jSpeed = 5; var fall = jSpeed; var kDown = Key.isDown; var rKey = 39; var lKey = 37; var uKey = 38; var pKey = 49; var kKey = 50; var sKey = 51; var spKey = 52; var Face = 'right'; var scale = 100; var State = 'normal'; var count = 0; } onClipEvent (enterFrame) { if (!_root.Pause) { if (_y > Stage.height + 20) { State = 'respawn'; } if (Face == 'right') { _xscale = scale; } if (Face == 'left') { _xscale = -scale; } if (State == 'normal') { _alpha = 100; count = 0; _y = _y + grav; grav += gravity; while (ground.hitTest(_x, _y, true)) { _y = _y - gravity; grav = 0; } if (kDown(rKey)) { Face = 'right'; _x = _x + speed; if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('run'); } } else { if (kDown(lKey)) { Face = 'left'; _x = _x - speed; if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('run'); } } } if (!kDown(rKey) && !kDown(lKey)) { if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('idle'); } } if (kDown(uKey) && ground.hitTest(_x, _y + 3, true)) { _y = _y - jSpeed; grav = -jHeight; } if (grav < 0) { gotoAndStop('jump'); } if (grav > fall && !ground.hitTest(_x, _y + 3, true)) { gotoAndStop('fall'); } if (kDown(pKey) && ground.hitTest(_x, _y + 3, true)) { State = 'punch'; } if (kDown(kKey) && ground.hitTest(_x, _y + 3, true)) { State = 'kick'; } if (kDown(sKey)) { if (_root.p1sp > 0 && ground.hitTest(_x, _y + 3, true)) { State = 'shoot'; } } if (kDown(spKey)) { if (_root.p1sp == 2) { State = 'special'; } } } if (State == 'death') { gotoAndStop('death'); } if (State == 'punch') { gotoAndStop('punch1'); } if (State == 'punch2') { gotoAndStop('punch2'); } if (State == 'punch3') { gotoAndStop('punch3'); } if (State == 'kick') { gotoAndStop('kick1'); } if (State == 'kick2') { gotoAndStop('kick2'); } if (State == 'respawn') { _x = 120; _y = 178; if (count == 0) { _root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 1); ++count; } gotoAndStop('idle'); _alpha = 70; Face = 'right'; } if (State == 'respawn2') { _x = 120; _y = 160; gotoAndStop('idle2'); _alpha = 100; Face = 'right'; } if (State == 'kick3') { gotoAndStop('kick3'); } if (State == 'shoot') { gotoAndStop('shoot'); } if (State == 'special') { gotoAndStop('special'); } if (State == 'hit') { if (enemy._x > _x) { _x = _x - 0.5; Face = 'right'; } if (enemy._x < _x) { _x = _x + 0.5; Face = 'left'; } if (!ground.hitTest(_x, _y + 3, true)) { _y = _y + grav; grav += 1; } while (ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } gotoAndStop('hit'); if (count == 0) { _root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 1); ++count; } } if (State == 'hit3') { if (enemy._x > _x) { _x = _x - 2; Face = 'right'; } if (enemy._x < _x) { _x = _x + 2; Face = 'left'; } if (!ground.hitTest(_x, _y + 3, true)) { _y = _y + grav; grav += 1; } while (ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } gotoAndStop('hit'); if (count == 0) { _root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 5); ++count; } } if (State == 'hit2') { if (enemy._x > _x) { _x = _x - 5; Face = 'right'; } if (enemy._x < _x) { _x = _x + 5; Face = 'left'; } gotoAndStop('hit2'); if (count == 0) { _root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 10); ++count; } } } if (_root.Pause == true) { if (ground.hitTest(_x, _y + 3, true)) { gotoAndStop('idle'); } } } } movieClip 1188 { } instance ground of movieClip 1188 { onClipEvent (load) { _alpha = 0; } } movieClip 1191 { frame 1 { stop(); } frame 101 { _root.player2.State = 'death'; } frame 102 { _root.player2.State = 'death'; } } movieClip 1194 { frame 1 { _root.p2sp = 0; } frame 1 { stop(); } frame 2 { _root.p2sp = 1; } frame 101 { _root.p2sp = 2; } frame 101 { stop(); } } movieClip 1196 { frame 1 { stop(); } frame 101 { _root.player1.State = 'death'; } frame 102 { _root.player1.State = 'death'; } } movieClip 1198 { frame 1 { _root.p1sp = 0; } frame 1 { stop(); } frame 2 { _root.p1sp = 1; } frame 101 { _root.p1sp = 2; } frame 101 { stop(); } } movieClip 1200 { } movieClip 1205 { } instance wBall of movieClip 1205 { onClipEvent (load) { if (_root.player2.Face == 'right') { _x = _root.player2._x + 25; _rotation = 90; } if (_root.player2.Face == 'left') { _x = _root.player2._x - 25; _rotation = -90; } _y = _root.player2._y - 22; var speed = 15; var Check = 0; if (_name == 'wBall') { _visible = false; } } onClipEvent (enterFrame) { if (this._x > Stage.width + 50 || this._x < -50) { removeMovieClip(this); } if (_name == 'wBall') { _y = 1000; } else { if (this.hitTest(_root.player1) && _root.player1.State != 'respawn') { _root.player1.State = 'hit3'; if (_root.player1.State == 'hit3') { removeMovieClip(this); } } if (_root.Pause == false) { if (_root.player2.Face == 'right' && Check == 0) { Check = 1; } if (_root.player2.Face == 'left' && Check == 0) { Check = 2; } if (Check == 1) { _x = _x + speed; _rotation = 90; } if (Check == 2) { _x = _x - speed; _rotation = -90; } } } } } movieClip 1208 { } instance wSpBall of movieClip 1208 { onClipEvent (load) { if (_name == 'wSpBall') { _visible = false; } if (_root.player2.Face == 'right') { _x = _root.player2._x + 25; _rotation = 90; } if (_root.player2.Face == 'left') { _x = _root.player2._x - 25; _rotation = -90; } _y = _root.player2._y - 22; var speed = 15; var a = 0.5; var Check = 0; } onClipEvent (enterFrame) { if (this._x > Stage.width + 50 || this._x < -50) { removeMovieClip(this); } if (_name == 'wSpBall') { _visible = false; } else { if (_root.Pause == false) { if (this.hitTest(_root.player1) && _root.player1.State != 'special' && _root.player1.State != 'respawn') { if (_root.player2.Face == 'right' && _root.player1._x > _root.player2._x || _root.player2.Face == 'left' && _root.player2._x > _root.player1._x) { _root.player1.State = 'hit2'; removeMovieClip(this); } } if (_root.player2.Face == 'right' && Check == 0) { Check = 1; } if (_root.player2.Face == 'left' && Check == 0) { Check = 2; } if (Check == 1) { _x = _x + speed; speed += a; _rotation = 90; } if (Check == 2) { _x = _x - speed; speed += a; _rotation = -90; } } } } } movieClip 1210 { } movieClip 1211 { instance of movieClip 1210 { onClipEvent (load) { a = 2; speed = 5; _x = _root.gun._x; _y = _root.gun._y; _rotation = 0; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + speed * Math.cos(0.0174532925199433 * _rotation); _x = _x - speed * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - speed * Math.cos(0.0174532925199433 * _rotation); _x = _x + speed * Math.sin(0.0174532925199433 * _rotation); } speed += a; if (_root.player2.hitTest(this) && _parent._name != 'fSpikes' && _root.player2.State != 'respawn' && _root.player2.State != 'special') { _visible = false; _root.player2.State = 'hit2'; } } } instance of movieClip 1210 { onClipEvent (load) { a = 2; speed = 5; _x = _root.gun._x; _y = _root.gun._y; _rotation = 30; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + speed * Math.cos(0.0174532925199433 * _rotation); _x = _x - speed * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - speed * Math.cos(0.0174532925199433 * _rotation); _x = _x + speed * Math.sin(0.0174532925199433 * _rotation); } if (_root.player2.hitTest(this) && _parent._name != 'fSpikes' && _root.player2.State != 'respawn' && _root.player2.State != 'special') { _visible = false; _root.player2.State = 'hit2'; } speed += a; } } instance of movieClip 1210 { onClipEvent (load) { a = 2; speed = 5; _x = _root.gun._x; _y = _root.gun._y; _rotation = 90; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + speed * Math.cos(0.0174532925199433 * _rotation); _x = _x - speed * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - speed * Math.cos(0.0174532925199433 * _rotation); _x = _x + speed * Math.sin(0.0174532925199433 * _rotation); } if (_root.player2.hitTest(this) && _parent._name != 'fSpikes' && _root.player2.State != 'special' && _root.player2.State != 'respawn') { _visible = false; _root.player2.State = 'hit2'; } speed += a; } } instance of movieClip 1210 { onClipEvent (load) { a = 2; speed = 5; _x = _root.gun._x; _y = _root.gun._y; _rotation = -30; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + speed * Math.cos(0.0174532925199433 * _rotation); _x = _x - speed * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - speed * Math.cos(0.0174532925199433 * _rotation); _x = _x + speed * Math.sin(0.0174532925199433 * _rotation); } if (_root.player2.hitTest(this) && _parent._name != 'fSpikes' && _root.player2.State != 'respawn' && _root.player2.State != 'special') { _visible = false; _root.player2.State = 'hit2'; } speed += a; } } instance of movieClip 1210 { onClipEvent (load) { a = 2; speed = 5; _x = _root.gun._x; _y = _root.gun._y; _rotation = -90; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + speed * Math.cos(0.0174532925199433 * _rotation); _x = _x - speed * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - speed * Math.cos(0.0174532925199433 * _rotation); _x = _x + speed * Math.sin(0.0174532925199433 * _rotation); } if (_root.player2.hitTest(this) && _parent._name != 'fSpikes' && _root.player2.State != 'respawn' && _root.player2.State != 'special') { _visible = false; _root.player2.State = 'hit2'; } speed += a; } } } instance fSpikes of movieClip 1211 { onClipEvent (load) { _x = _root.player1._x; _y = _root.player1._y - 75; if (_name == 'fSpikes') { _visible = false; } } onClipEvent (enterFrame) { if (_name == 'fSpikes' || _root.fighting == false) { _visible = false; } } } instance fBall of movieClip 11 fireBall { onClipEvent (load) { if (_root.player1.Face == 'right') { _x = _root.player1._x + 25; _rotation = 90; } if (_root.player1.Face == 'left') { _x = _root.player1._x - 25; _rotation = -90; } _y = _root.player1._y - 22; var speed = 15; var Check = 0; if (_name == 'fBall') { _visible = false; } } onClipEvent (enterFrame) { if (this._x > Stage.width + 50 || this._x < -50) { removeMovieClip(this); } if (_name == 'fBall') { _y = 1000; } else { if (this.hitTest(_root.player2) && _root.player2.State != 'respawn') { _root.player2.State = 'hit3'; if (_root.player2.State == 'hit3') { removeMovieClip(this); } } if (_root.Pause == false) { if (_root.player1.Face == 'right' && Check == 0) { Check = 1; } if (_root.player1.Face == 'left' && Check == 0) { Check = 2; } if (Check == 1) { _x = _x + speed; _rotation = 90; } if (Check == 2) { _x = _x - speed; _rotation = -90; } } } } } movieClip 1215 { } movieClip 1217 { frame 1 { stop(); } frame 2 { sound = new Sound(this); sound.attachSound('various'); sound.start(0.05, 0); sound.setVolume(100); } frame 41 { stop(); loadMovie('', this); } } movieClip 1219 { } movieClip 1221 { } movieClip 1223 { } movieClip 1225 { } movieClip 1226 { frame 1 { sounda = new Sound(this); sounda.attachSound('woosh1'); sounda.start(0.05, 0); sounda.setVolume(100); } frame 31 { sounda = new Sound(this); sounda.attachSound('woosh1'); sounda.start(0.05, 0); sounda.setVolume(100); } frame 63 { sounda = new Sound(this); sounda.attachSound('woosh1'); sounda.start(0.05, 0); sounda.setVolume(100); } frame 94 { sound = new Sound(this); sound.attachSound('other'); sound.start(0.05, 0); sound.setVolume(100); } frame 110 { _root.countDown = false; } frame 111 { loadMovie('', this); } } movieClip 1228 { frame 1 { stop(); } frame 2 { _visible = true; sound = new Sound(this); sound.attachSound('various'); sound.start(0.05, 0); sound.setVolume(100); } frame 37 { if (_parent.name == 'go1') { _root.gotoAndStop('p2win'); } else { _root.gotoAndStop('p1win'); } } } instance go1 of movieClip 1228 { onClipEvent (enterFrame) { if (_currentframe == 36) { _root.gotoAndStop('p2win'); } } } instance go2 of movieClip 1228 { onClipEvent (enterFrame) { if (_currentframe == 36) { _root.gotoAndStop('p1win'); } } } movieClip 1230 { } // unknown tag 88 length 75 // unknown tag 88 length 75 // unknown tag 88 length 75 movieClip 1251 { } instance pausing of movieClip 1251 { onClipEvent (enterFrame) { this.swapDepths(0); if (_root.fighting == false) { loadMovie('', this); } } } frame 437 { _root.fighting = false; delete _root.onEnterFrame; Mouse.show(); } frame 437 { stop(); _root.bgm.stop(); _root.counting = 0; Mouse.show(); } movieClip 1253 { } movieClip 1255 { } instance of movieClip 1255 { onClipEvent (press) { _root.gotoAndStop('menu'); } } frame 443 { stop(); _root.bgm.stop(); _root.counting = 0; Mouse.show(); } instance of movieClip 1255 { onClipEvent (press) { _root.gotoAndStop('menu'); _root.bgm.stop(); } } movieClip 1257 { } frame 449 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 449 { stop(); } movieClip 1260 { } movieClip 1263 { } movieClip 1265 { } movieClip 1267 { } button 1269 { on (press) { nextFrame(); } } button 1271 { on (press) { _root.howto.gotoAndPlay(2); } } button 1273 { on (press) { gotoAndStop('MainMenu'); } } button 1280 { on (press) { _root.howto.gotoAndPlay(31); } } movieClip 1281 { frame 1 { stop(); } frame 30 { stop(); } } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } button 1283 { on (press) { prevFrame(); } } button 1286 { on (press) { nextFrame(); } } button 1288 { on (press) { gotoAndStop('load2'); } } button 1290 { on (press) { gotoAndStop('load3'); } } frame 451 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 226.4; } movieClip 1292 { } movieClip 1294 { } movieClip 1295 { } movieClip 1296 { instance of movieClip 1292 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1297 { instance of movieClip 87 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1311 { frame 27 { stop(); _root.hero.unloadMovie(); } } movieClip 1312 { frame 1 { stop(); } frame 2 { stop(); } } // unknown tag 88 length 248 movieClip 1318 { frame 125 { _root.gotoAndStop('1play'); } } button 1319 { on (press) { gotoAndStop('cMenu'); } } movieClip 1320 { } movieClip 1322 { } movieClip 1324 { } movieClip 1326 { } frame 452 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 224.6; hero3._x = 254.6; hero3._y = 224.6; } movieClip 1327 { frame 125 { _root.gotoAndStop('2play'); } } movieClip 1328 { } movieClip 1330 { } frame 453 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 224.6; hero3._x = 254.6; hero3._y = 224.6; hero4._x = 363.9; hero4._y = 226.4; } movieClip 1331 { frame 125 { _root.gotoAndStop('3play'); } } movieClip 1332 { } movieClip 1334 { } frame 454 { _root.hp = 100; _root.hp2 = 100; } frame 454 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 226.4; } instance hero of movieClip 1312 { onClipEvent (load) { scale = _xscale; speed = 5; } onClipEvent (enterFrame) { if (Key.isDown(65)) { this._x = _x - speed; this.gotoAndStop(2); _xscale = -scale; } } onClipEvent (enterFrame) { if (Key.isDown(68)) { this._x = _x + speed; this.gotoAndStop(2); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(32)) { this.gotoAndStop(3); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(69)) { this.gotoAndStop(4); _xscale = -scale; } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (load) { var falls = 0; var jmpd = false; } onClipEvent (enterFrame) { if (jmpd) { falls += 0.5; _y = _y + falls; if (this.hitTest(_root.floor)) { jmpd = false; } } else { if (Key.isDown(87)) { jmpd = true; falls = -10; this.gotoAndStop(3); } } } onClipEvent (enterFrame) { if (this._x + _width / 2 < 0) { this._x = +(_width / 2); } if (this._x - _width / 2 > 550) { this._x = 550 - _width / 2; } } } movieClip 1335 { instance of movieClip 1292 { onClipEvent (load) { if (this.hitTest(_root.hero)) { _root.hp -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1336 { instance of movieClip 87 { onClipEvent (load) { if (this.hitTest(_root.hero)) { _root.hp -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1337 { frame 1 { stop(); } frame 2 { stop(); } } instance hero2 of movieClip 1337 { onClipEvent (load) { scale = _xscale; } onClipEvent (enterFrame) { if (Key.isDown(70)) { this._x = _x - 5; this.gotoAndStop(2); _xscale = -scale; } } onClipEvent (enterFrame) { if (Key.isDown(72)) { this._x = _x + 5; this.gotoAndStop(2); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(82)) { this.gotoAndStop(3); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(89)) { this.gotoAndStop(4); _xscale = -scale; } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (load) { var falls = 0; var jmpd = false; } onClipEvent (enterFrame) { if (jmpd) { falls += 0.5; _y = _y + falls; if (this.hitTest(_root.floor)) { jmpd = false; } } else { if (Key.isDown(84)) { jmpd = true; falls = -10; this.gotoAndStop(3); } } } onClipEvent (enterFrame) { if (this._x + _width / 2 < 0) { this._x = +(_width / 2); } if (this._x - _width / 2 > 550) { this._x = 550 - _width / 2; } } } instance hp of movieClip 1320 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp <= 0) { _root.hp = 0; _root.hero.gotoAndStop('die'); } if (_root.hp2 <= 0) { _root.hp2 = 0; _root.hero2.gotoAndStop('die'); } if (_root.hp2 == 0 and _root.hp > 0) { _root.gotoAndStop('1p1win'); } else { if (_root.hp == 0 and _root.hp2 > 0) { _root.gotoAndStop('1p2win'); } } } } instance hp2 of movieClip 1324 { onClipEvent (enterFrame) { this._xscale = _root.hp2; if (_root.hp2 <= 0) { _root.hp2 = 0; } } } frame 455 { _root.hp = 100; _root.hp2 = 100; _root.hp3 = 100; } frame 455 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 224.6; hero3._x = 254.6; hero3._y = 224.6; } movieClip 1338 { instance of movieClip 1292 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero)) { _root.hp -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1339 { instance of movieClip 87 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero)) { _root.hp -= 5; } if (this.hitTest(_root.hero4)) { _root.hp4 -= 5; } } } } movieClip 1340 { frame 1 { stop(); } frame 2 { stop(); } } instance hero3 of movieClip 1340 { onClipEvent (load) { scale = _xscale; } onClipEvent (enterFrame) { if (Key.isDown(74)) { this._x = _x - 5; this.gotoAndStop(2); _xscale = -scale; } } onClipEvent (enterFrame) { if (Key.isDown(76)) { this._x = _x + 5; this.gotoAndStop(2); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(85)) { this.gotoAndStop(3); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(79)) { this.gotoAndStop(4); _xscale = -scale; } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (load) { var falls = 0; var jmpd = false; } onClipEvent (enterFrame) { if (jmpd) { falls += 0.5; _y = _y + falls; if (this.hitTest(_root.floor)) { jmpd = false; } } else { if (Key.isDown(73)) { jmpd = true; falls = -10; this.gotoAndStop(3); } } } onClipEvent (enterFrame) { if (this._x + _width / 2 < 0) { this._x = +(_width / 2); } if (this._x - _width / 2 > 550) { this._x = 550 - _width / 2; } } } instance hp of movieClip 1320 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp <= 0) { _root.hp = 0; _root.hero.gotoAndStop('die'); } if (_root.hp2 <= 0) { _root.hp2 = 0; _root.hero2.gotoAndStop('die'); } if (_root.hp3 <= 0) { _root.hp3 = 0; _root.hero3.gotoAndStop('die'); } if (_root.hp4 <= 0) { _root.hp4 = 0; _root.hero4.gotoAndStop('die'); } if (_root.hp2 == 0 and _root.hp3 == 0 and _root.hp > 0 and _root.hp4 == 0) { _root.gotoAndStop('1p1win'); } else { if (_root.hp == 0 and _root.hp3 == 0 and _root.hp2 > 0 and _root.hp4 == 0) { _root.gotoAndStop('1p2win'); } else { if (_root.hp == 0 and _root.hp2 == 0 and _root.hp3 > 0 and _root.hp == 0) { _root.gotoAndStop('p3win'); } } } } } instance hp3 of movieClip 1328 { onClipEvent (enterFrame) { this._xscale = _root.hp3; if (_root.hp3 <= 0) { _root.hp3 = 0; } } } frame 456 { _root.hp = 100; _root.hp2 = 100; _root.hp3 = 100; _root.hp4 = 100; } frame 456 { hero._x = 60.1; hero._y = 224.6; hero2._x = 161.8; hero2._y = 224.6; hero3._x = 254.6; hero3._y = 224.6; hero4._x = 363.9; hero4._y = 226.4; } movieClip 1341 { instance of movieClip 1292 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero)) { _root.hp4 -= 5; } } } } movieClip 1342 { instance of movieClip 87 { onClipEvent (load) { if (this.hitTest(_root.hero2)) { _root.hp2 -= 5; } if (this.hitTest(_root.hero3)) { _root.hp3 -= 5; } if (this.hitTest(_root.hero)) { _root.hp -= 5; } } } } movieClip 1343 { frame 1 { stop(); } frame 2 { stop(); } } instance hero4 of movieClip 1343 { onClipEvent (load) { scale = _xscale; } onClipEvent (enterFrame) { if (Key.isDown(37)) { this._x = _x - 5; this.gotoAndStop(2); _xscale = -scale; } } onClipEvent (enterFrame) { if (Key.isDown(39)) { this._x = _x + 5; this.gotoAndStop(2); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(17)) { this.gotoAndStop(3); _xscale = scale; } } onClipEvent (enterFrame) { if (Key.isDown(16)) { this.gotoAndStop(4); _xscale = -scale; } } onClipEvent (keyUp) { this.gotoAndStop(1); } onClipEvent (load) { var falls = 0; var jmpd = false; } onClipEvent (enterFrame) { if (jmpd) { falls += 0.5; _y = _y + falls; if (this.hitTest(_root.floor)) { jmpd = false; } } else { if (Key.isDown(38)) { jmpd = true; falls = -10; this.gotoAndStop(3); } } } onClipEvent (enterFrame) { if (this._x + _width / 2 < 0) { this._x = +(_width / 2); } if (this._x - _width / 2 > 550) { this._x = 550 - _width / 2; } } } instance hp of movieClip 1320 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp <= 0) { _root.hp = 0; _root.hero.gotoAndStop('die'); } if (_root.hp2 <= 0) { _root.hp2 = 0; _root.hero2.gotoAndStop('die'); } if (_root.hp3 <= 0) { _root.hp3 = 0; _root.hero3.gotoAndStop('die'); } if (_root.hp4 <= 0) { _root.hp4 = 0; _root.hero4.gotoAndStop('die'); } if (_root.hp2 == 0 and _root.hp3 == 0 and _root.hp > 0 and _root.hp4 == 0) { _root.gotoAndStop('1p1win'); } else { if (_root.hp == 0 and _root.hp3 == 0 and _root.hp2 > 0 and _root.hp4 == 0) { _root.gotoAndStop('1p2win'); } else { if (_root.hp == 0 and _root.hp2 == 0 and _root.hp3 > 0 and _root.hp == 0) { _root.gotoAndStop('p3win'); } else { if (_root.hp == 0 and _root.hp2 == 0 and _root.hp3 == 0 and _root.hp4 > 0) { _root.gotoAndStop('p4win'); } } } } } } instance hp2 of movieClip 1324 { onClipEvent (enterFrame) { this._xscale = _root.hp2; if (_root.hp2 <= 0) { _root.hp2 = 0; } } } instance hp3 of movieClip 1328 { onClipEvent (enterFrame) { this._xscale = _root.hp3; if (_root.hp3 <= 0) { _root.hp3 = 0; } } } instance hp4 of movieClip 1332 { onClipEvent (enterFrame) { this._xscale = _root.hp4; if (_root.hp4 <= 0) { _root.hp4 = 0; } } } movieClip 1345 { } frame 461 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 461 { hp1 = 100; mp1 = 42; hp2 = 100; turn = 'player'; onEnterFrame = function () { ehit = random(5) + 5; phit = random(4) + 4; manahit = random(4) + 4; }; } movieClip 1351 { } instance of movieClip 1351 { onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } movieClip 1352 { frame 28 { _root.player.gotoAndStop(4); _root.hp1 -= _root.ehit; } frame 45 { _root.turn = 'player'; _root.enemy.gotoAndStop(1); } } movieClip 1353 { frame 20 { _root.enemy.gotoAndStop(2); } } movieClip 1355 { frame 35 { stop(); _root.turn = 'win'; } } movieClip 1356 { frame 1 { stop(); } } movieClip 1357 { } movieClip 1359 { instance lifebar of movieClip 1357 { onClipEvent (enterFrame) { _root.life.lifebar._width = _root.hp1; if (_root.hp1 <= 0) { _root.player.gotoAndStop(5); } } } } movieClip 1372 { } movieClip 1373 { instance manabar of movieClip 1372 { onClipEvent (enterFrame) { _root.mana.manabar._height = _root.mp1; if (_root.mp1 <= 0) { _root.mp1 = 0; } } } } movieClip 1375 { } movieClip 1377 { } movieClip 1379 { } movieClip 1381 { } movieClip 1382 { } movieClip 1384 { } movieClip 1385 { frame 33 { _root.enemy.gotoAndStop(3); _root.hp2 -= _root.phit; } frame 45 { _root.turn = 'enemy'; _root.player.gotoAndStop(1); } } movieClip 1386 { frame 40 { _root.enemy.gotoAndStop(3); _root.phit += _root.manahit; _root.hp2 -= _root.phit; } frame 60 { _root.turn = 'enemy'; _root.player.gotoAndStop(1); } } movieClip 1387 { frame 11 { _root.player.gotoAndStop(1); } } movieClip 1388 { frame 21 { stop(); _root.gotoAndStop('gamemenu'); } } movieClip 1389 { frame 1 { stop(); } } movieClip 1391 { } instance badlife of movieClip 1391 { onClipEvent (enterFrame) { _root.badlife._width = _root.hp2; if (_root.hp2 <= 0) { _root.enemy.gotoAndStop(4); } } } movieClip 1393 { frame 1 { stop(); } } instance of movieClip 1393 { onClipEvent (press) { _root.player.gotoAndStop(2); _root.turn = 'enemy'; } onClipEvent (enterFrame) { if (_root.turn == 'win') { this.gotoAndStop(2); } if (_root.turn == 'enemy') { this._visible = false; } else { this._visible = true; } } } movieClip 1395 { frame 1 { stop(); } } instance of movieClip 1395 { onClipEvent (press) { if (_root.mp1 <= 5) { } else { _root.turn = 'enemy'; _root.player.gotoAndStop(3); _root.mp1 -= 5; } } onClipEvent (enterFrame) { if (_root.turn == 'win') { this.gotoAndStop(2); } if (_root.turn == 'enemy') { this._visible = false; } else { this._visible = true; } } } movieClip 1405 { } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } frame 462 { var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _quality = 'LOW'; _quality = 'MEDIUM'; _quality = 'HIGH'; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 81) { if (i++ >= 2) { i = 0; } _quality = ['HIGH', 'MEDIUM', 'LOW'][i]; } if (Key.getCode() == 77) { _root.gotoAndStop('MainMenu'); } }; Key.addListener(myListener); } frame 462 { stop(); } button 1415 { on (release) { gotoAndStop('instructions'); } } button 1420 { on (release) { gotoAndStop('selection'); } } button 1422 { on (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 211 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _root.gotoAndStop('MainMenu'); } } } movieClip 1424 { } frame 463 { stop(); } movieClip 1430 { } movieClip 1433 { } movieClip 1436 { } movieClip 1439 { } movieClip 1444 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1446 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1449 { } instance playersel of movieClip 1449 { onClipEvent (press) { this.startDrag(true); } onClipEvent (release) { this.stopDrag(); } onClipEvent (enterFrame) { if (this.hitTest(_root.cappsel)) { _root.playsel.gotoAndStop(2); } if (this.hitTest(_root.bussel)) { _root.playsel.gotoAndStop(3); } if (this.hitTest(_root.busisel)) { _root.playsel.gotoAndStop(4); } if (this.hitTest(_root.gansel)) { _root.playsel.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(32) && _root.playsel._currentframe == 2 && _root.enesel._currentframe == 2) { _root.gotoAndStop('battle1'); } if (Key.isDown(32) && _root.playsel._currentframe == 3 && _root.enesel._currentframe == 2) { _root.gotoAndStop('battle2'); } if (Key.isDown(32) && _root.playsel._currentframe == 4 && _root.enesel._currentframe == 2) { _root.gotoAndStop('battle3'); } if (Key.isDown(32) && _root.playsel._currentframe == 5 && _root.enesel._currentframe == 2) { _root.gotoAndStop('battle4'); } if (Key.isDown(32) && _root.playsel._currentframe == 2 && _root.enesel._currentframe == 3) { _root.gotoAndStop('battle5'); } if (Key.isDown(32) && _root.playsel._currentframe == 3 && _root.enesel._currentframe == 3) { _root.gotoAndStop('battle6'); } if (Key.isDown(32) && _root.playsel._currentframe == 4 && _root.enesel._currentframe == 3) { _root.gotoAndStop('battle7'); } if (Key.isDown(32) && _root.playsel._currentframe == 5 && _root.enesel._currentframe == 3) { _root.gotoAndStop('battle8'); } if (Key.isDown(32) && _root.playsel._currentframe == 2 && _root.enesel._currentframe == 4) { _root.gotoAndStop('battle9'); } if (Key.isDown(32) && _root.playsel._currentframe == 3 && _root.enesel._currentframe == 4) { _root.gotoAndStop('battle10'); } if (Key.isDown(32) && _root.playsel._currentframe == 4 && _root.enesel._currentframe == 4) { _root.gotoAndStop('battle11'); } if (Key.isDown(32) && _root.playsel._currentframe == 5 && _root.enesel._currentframe == 4) { _root.gotoAndStop('battle12'); } if (Key.isDown(32) && _root.playsel._currentframe == 2 && _root.enesel._currentframe == 5) { _root.gotoAndStop('battle13'); } if (Key.isDown(32) && _root.playsel._currentframe == 3 && _root.enesel._currentframe == 5) { _root.gotoAndStop('battle14'); } if (Key.isDown(32) && _root.playsel._currentframe == 4 && _root.enesel._currentframe == 5) { _root.gotoAndStop('battle15'); } if (Key.isDown(32) && _root.playsel._currentframe == 5 && _root.enesel._currentframe == 5) { _root.gotoAndStop('battle16'); } } } movieClip 1452 { } instance enemysel of movieClip 1452 { onClipEvent (press) { this.startDrag(true); } onClipEvent (release) { this.stopDrag(); } onClipEvent (enterFrame) { if (this.hitTest(_root.cappsel)) { _root.enesel.gotoAndStop(2); } if (this.hitTest(_root.bussel)) { _root.enesel.gotoAndStop(3); } if (this.hitTest(_root.busisel)) { _root.enesel.gotoAndStop(4); } if (this.hitTest(_root.gansel)) { _root.enesel.gotoAndStop(5); } } } frame 464 { stop(); } instance ground of movieClip 1188 { onClipEvent (enterFrame) { if (_currentframe == 1 && Key.isDown(32)) { this.gotoAndPlay('Attack frame'); } if (_root.player.hitTest(_root.enemy) && _currentframe == 4) { } } } movieClip 1454 { } movieClip 1462 { } movieClip 1470 { } movieClip 1471 { } movieClip 1477 { } movieClip 1478 { } movieClip 1479 { frame 1 { stop(); } frame 5 { stop(); } } instance enemy of movieClip 1479 { onClipEvent (enterFrame) { if (_root.player._x > _x) { _x = _x + 2; _xscale = -52; } } onClipEvent (enterFrame) { if (_root.player._x < _x) { _xscale = 52; _x = _x - 2; } } } instance player of movieClip 1479 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } movieClip 1481 { } movieClip 1486 { frame 1 { stop(); } frame 131 { _root.gotoAndStop('loser'); } } movieClip 1494 { frame 1 { stop(); } frame 117 { _root.player.gotoAndPlay(5); } frame 118 { _root.player.gotoAndPlay(5); } frame 119 { _root.player.gotoAndPlay(5); } frame 120 { _root.player.gotoAndPlay(5); } frame 121 { _root.player.gotoAndPlay(5); } frame 122 { _root.gotoAndStop('winner'); } } frame 465 { stop(); } movieClip 1501 { } movieClip 1508 { } movieClip 1516 { } movieClip 1517 { frame 1 { stop(); } frame 5 { stop(); } } instance player of movieClip 1517 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } frame 466 { stop(); } movieClip 1529 { } movieClip 1539 { } movieClip 1544 { } movieClip 1545 { frame 1 { stop(); } frame 5 { stop(); } } instance player of movieClip 1545 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } movieClip 1549 { } movieClip 1566 { } movieClip 1577 { } movieClip 1586 { } movieClip 1589 { } movieClip 1591 { } movieClip 1592 { frame 1 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance player of movieClip 1592 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance enemy of movieClip 1517 { onClipEvent (enterFrame) { if (_root.player._x > _x) { _x = _x + 2; _xscale = -52; } } onClipEvent (enterFrame) { if (_root.player._x < _x) { _xscale = 52; _x = _x - 2; } } } instance player of movieClip 1479 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1517 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1545 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1592 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance enemy of movieClip 1545 { onClipEvent (enterFrame) { if (_root.player._x > _x) { _x = _x + 2; _xscale = -52; } } onClipEvent (enterFrame) { if (_root.player._x < _x) { _xscale = 52; _x = _x - 2; } } } instance player of movieClip 1479 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1517 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1545 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1592 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance enemy of movieClip 1592 { onClipEvent (enterFrame) { if (_root.player._x > _x) { _x = _x + 2; _xscale = -52; } } onClipEvent (enterFrame) { if (_root.player._x < _x) { _xscale = 52; _x = _x - 2; } } } instance player of movieClip 1479 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1517 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1545 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } instance player of movieClip 1592 { onClipEvent (load) { grav = 0; speed = 8; jumpHeight = 18; scale = _xscale; slowfall = 0.8; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(1); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(32)) { this.gotoAndStop(2); } } } if (Key.isDown(40)) { grav *= slowfall; } if (Key.isDown(32) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(39) && this._currentframe != 5) { this.gotoAndStop(4); } if (Key.isDown(38) && Key.isDown(32)) { this.gotoAndStop(5); } if (_root.enemy.hta.hitTest(this) && Key.isDown(32)) { _root.enemy._visible = false; } if (Key.isDown(38) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(3); } if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(3); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (keyUp) { this.gotoAndStop(2); } onClipEvent (enterFrame) { if (_root.enemy.hitTest(_root.player.attack.hta)) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player) && this._currentframe == 5) { _root.enhp.nextFrame(); } if (_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(4); } if (!_root.enemy.hitTest(_root.player)) { _root.enemy.gotoAndStop(1); } if (_root.enemy.attack.hta.hitTest(_root.player)) { _root.hp.nextFrame(); } if (_x < 0) { _x = _x + speed; } if (_x > 500) { _x = _x - speed; } } } frame 480 { stop(); } button 1595 { on (release) { gotoAndStop('urbanBrawl'); } } frame 481 { stop(); } button 1603 { on (release) { gotoAndStop('urbanBrawl'); } }




http://swfchan.com/10/47157/info.shtml
Created: 2/5 -2019 09:49:56 Last modified: 2/5 -2019 09:49:56 Server time: 22/12 -2024 20:27:12