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

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

Nameless, The Game.swf

This is the info page for
Flash #25269

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


ActionScript [AS1/AS2]
Combined Code
movieClip 11 { } movieClip 14 { frame 11 { stop(); this._parent.removeMovieClip(); } } movieClip 15 fish { frame 1 { stop(); if (!setVars) { startFrame = _root._currentframe; setVars = true; } var onEnterFrame = function () { if (_root._currentframe != startFrame) { removeMovieClip(this); } moveSpeed = 6; if (_y < -50) { removeMovieClip(this); } else { _rotation = _rotation + moveSpeed; _y = _y - moveSpeed; } if (_root.cm.hit.hitTest(this)) { if (_currentframe == 1) { _root.health -= 10; gotoAndStop(2); } } }; } } movieClip 17 bullet { frame 1 { if (!setVars) { var xScale = _xscale; var moveSpeed = 5; var setVars = true; } var onEnterFrame = function () { if (_root.cm.hitTest(this) && _root.cm.ducking == false) { _root.health -= 5; _root.cm.hit = true; removeMovieClip(this); } if (!_root.cam.hitTest(this)) { removeMovieClip(this); } if (dir == 'left') { _x = _x - moveSpeed; _xscale = xScale; } else { _x = _x + moveSpeed; _xscale = -xScale; } }; } } movieClip 26 { } movieClip 28 { } movieClip 30 { } movieClip 32 { } movieClip 33 { frame 31 { stop(); } } movieClip 35 { } movieClip 36 { frame 18 { stop(); } } movieClip 38 { } movieClip 39 { frame 21 { stop(); } } movieClip 41 { frame 3 { stop(); } } movieClip 42 { } movieClip 44 missile { frame 1 { stop(); if (!setVars) { var dropSpeed = 0; var maxDropSpeed = 18; var airSpeed = 1; var setVars = true; } var onEnterFrame = function () { if (_root.pauseMode == false) { if (_root.cm.hitTest(this)) { if (_currentframe == 1) { gotoAndStop('explode'); } else { if (_currentframe == 2 && !took && _root.cm.hitTest(g.hitter)) { took = true; if (_root.cm.hit == false) { _root.cm.hit = true; _root.health -= 5; } } } } if (_root.bound.hitTest(_x, _y, true)) { gotoAndStop(2); } if (_currentframe == 1) { _y = _y + dropSpeed; if (dropSpeed < maxDropSpeed) { dropSpeed += airSpeed; } } g.play(); } else { g.stop(); } }; } } movieClip 47 { } movieClip 54 { } movieClip 55 bomb { frame 1 { stop(); if (!setVars) { var dropSpeed = 0; var maxDropSpeed = 8; var airSpeed = 0.5; var xSpeed = random(18) + random(5); _x = _x - 60; _y = _y - 45; var setVars = true; } var onEnterFrame = function () { if (_root.pauseMode == false) { if (_root.cm.hitTest(this)) { if (_currentframe == 1) { gotoAndStop('explode'); } else { if (_currentframe == 2 && !took && _root.cm.hitTest(g.hitter)) { took = true; if (_root.cm.hit == false) { if (_root.cm.invis <= 0) { _root.cm.hit = true; _root.health -= 6; } } } } } if (_root.bound.hitTest(_x, _y, true)) { gotoAndStop(2); } if (_currentframe == 1) { _y = _y + dropSpeed; _x = _x - xSpeed; _rotation = _rotation + dropSpeed; if (xSpeed > 0) { xSpeed -= airSpeed; } if (dropSpeed < maxDropSpeed) { dropSpeed += airSpeed; } } else { _rotation = 0; } g.play(); } else { g.stop(); } }; } } movieClip 57 { } movieClip 59 { } movieClip 60 healthbox { frame 1 { onEnterFrame = function () { if (_root.cm.hitTest(_x, _y - 15, true)) { _root.health += 15; removeMovieClip(this); } }; } } movieClip 62 mc_cam { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v5 = sX / this._width; var v4 = sY / this._height; _parent._x = cX - this._x * v5; _parent._y = cY - this._y * v4; _parent._xscale = 100 * v5; _parent._yscale = 100 * v4; friction = 10; if (!setVars) { xPlus = 0; maxPlus = 120; xSpeed = 10; setVars = true; } if (_root.cm.die == false) { if (Key.isDown(39)) { xPlus += xSpeed; } else { if (Key.isDown(37)) { if (_root.level != 6) { xPlus -= xSpeed; } } } } else { xPlus = 0; } if (xPlus > maxPlus) { xPlus = maxPlus; } else { if (xPlus < -maxPlus) { xPlus = -maxPlus; } } if (_root.level != 2) { _x = _x + ((_root.cm._x + xPlus - _x) / friction + shakeX); _y = _y + ((_root.cm._y - 120 - _y) / friction + shakeY); } } 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; } shakeX = 0; shakeY = 0; _visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } frame 1 { stop(); _quality = 'BEST'; q = 'BEST'; _root.createEmptyMovieClip('qualitySet', 0); qualitySet.onEnterFrame = function () { if (_root._currentframe != 5) { _root._quality = _root.q; } else { _root._quality = 'LOW'; } }; menu = new ContextMenu(); menu.hideBuiltInItems(); _root.menu = menu; if (!_root.cont) { _root.cont = 0; } _root.gameover = false; } movieClip 65 { } button 71 { on (release) { this._parent.play(); } } movieClip 72 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { eval(bar)._xscale = PercentLoaded; } else { gotoAndStop('loaded'); } } frame 2 { gotoAndPlay(1); } } movieClip 74 { } movieClip 76 { } button 77 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } movieClip 81 { } button 82 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } movieClip 83 { } button 87 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } movieClip 94 { } movieClip 97 { } movieClip 100 { } movieClip 101 { } button 107 { on (release) { _root.stopAllSounds(); stopAllSounds(); _root.gotoAndPlay('level1Cut'); } } button 112 { on (release) { play(); } } button 117 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } button 125 { on (release) { _root.cont -= 1; _root.gotoAndStop(_root.contLevel); } } button 129 { on (release) { _root.cont -= 1; _root.gotoAndStop(_root.contLevel); } } button 133 { on (release) { _root.cont -= 1; _root.gotoAndStop(_root.contLevel); } } movieClip 134 { frame 1 { var onEnterFrame = function () { if (_root.cont == 0) { gotoAndStop(1); } else { if (_root.cont == 1) { gotoAndStop(2); } else { if (_root.cont == 2) { gotoAndStop(3); } else { if (_root.cont == 3) { gotoAndStop(4); } } } } }; } } movieClip 142 { } movieClip 147 { } button 149 { on (release) { gotoAndPlay(175); } } movieClip 151 { frame 1 { stop(); } frame 175 { play(); } frame 183 { stop(); } frame 197 { stop(); } } instance menuThing of movieClip 151 { onClipEvent (load) { if (_root.pmenu == true) { this.gotoAndPlay(175); _root.pmenu = false; } } } frame 2 { _root.stopAllSounds(); _root.music.stop(); _root.health = 100; _root.lives = 3; _root.score = 0; _root.magic = 100; if (!_root.cont) { _root.cont = 3; _root.contLevel = _currentframe; } dropNum = 0; var checkVis = function (which) { if (which.hitTest(_root.cam)) { which._visible = true; } else { which._visible = false; } }; _root.stopAllSounds(); music.stop(); _root.pauseMode = false; _root.remake = false; stop(); } movieClip 154 { } movieClip 156 { } movieClip 159 { 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; } } movieClip 252 { } movieClip 705 { } movieClip 788 { } movieClip 790 { } movieClip 812 { } movieClip 814 { } movieClip 947 { } movieClip 948 { frame 1471 { _root.gotoAndStop('level1'); } } button 951 { on (release) { _root.gotoAndStop('level1'); } } frame 3 { stop(); _root.level = 1; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level1'); music.start(); music.onSoundComplete = function () { music.start(); }; item1 = false; item2 = false; item3 = false; item4 = false; _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 953 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 955 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 957 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 959 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 970 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 17 { stop(); } } movieClip 981 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 2 { _root.roomFade.gotoAndPlay(2); _root.roomFade.placeX = _root.door6._x + 30; _root.roomFade.placeY = _root.door6._y + 100; _root.roomFade.tar = _root.door6; } } movieClip 983 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 985 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1026 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1028 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1030 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1034 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 16 { stop(); } } movieClip 1045 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 2 { _root.music.stop(); _root.stopAllSounds(); _root.gotoLevel2.play(); } frame 15 { stop(); } } movieClip 1047 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1049 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1051 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1053 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1055 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1057 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1059 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1061 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1063 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1065 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1067 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1070 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 17 { stop(); } } movieClip 1073 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 2 { _root.roomFade.gotoAndPlay(2); _root.roomFade.placeX = _root.door4._x + 30; _root.roomFade.placeY = _root.door4._y + 100; _root.roomFade.tar = _root.door4; } } movieClip 1086 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } frame 1 { stop(); } frame 2 { _root.roomFade.gotoAndPlay(2); _root.roomFade.placeX = _root.door2._x + 30; _root.roomFade.placeY = _root.door2._y + 100; _root.roomFade.tar = _root.door2; } } movieClip 1088 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1107 { } movieClip 1108 { frame 1 { var onEnterFrame = function () { _root.checkVis(this); }; } } movieClip 1110 { frame 1 { _visible = false; var onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.item1 == true) { _root.door1.play(); } } }; } } movieClip 1111 { frame 1 { _visible = false; var onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.item2 == true) { _root.door3.play(); } } }; } } movieClip 1112 { frame 1 { _visible = false; var onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.item3 == true) { _root.door5.play(); } } }; } } movieClip 1113 { frame 1 { _visible = false; var onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.item4 == true && _root.door7._currentframe == 1) { _root.door7.play(); } } }; } } movieClip 1115 { frame 1 { startW = _xscale; startH = _yscale; startA = _alpha; var onEnterFrame = function () { this.setMask(_root.bound2); _x = _root.cm._x; _y = _root.cm._y + 3; _xscale = startW; _yscale = startH; _alpha = startA; for (;;) { if (!(_y < _root.cam._y + _root.cam._height / 2 + 50 && !_root.bound.hitTest(_x, _y - 5, true))) break; _y = _y + 1; _alpha = _alpha - 0.5; _xscale = _xscale - 1; _yscale = _yscale - 1; } }; } } movieClip 1118 { } movieClip 1148 { frame 1 { var onEnterFrame = function () { if (_root.cm.hitTest(_x, _y, true)) { if (_root.item1 == false) { gotoAndPlay('found'); _root.item1 = true; } } _root.checkVis(this); }; } frame 42 { if (!_root.cm.hitTest(_x, _y, true)) { gotoAndPlay(1); } } frame 50 { stop(); } } movieClip 1150 { } movieClip 1180 { frame 1 { var onEnterFrame = function () { if (_root.cm.hitTest(_x, _y, true)) { if (_root.item2 == false) { gotoAndPlay('found'); _root.item2 = true; } } _root.checkVis(this); }; } frame 42 { if (!_root.cm.hitTest(_x, _y, true)) { gotoAndPlay(1); } } frame 51 { stop(); } } movieClip 1182 { } movieClip 1213 { frame 1 { var onEnterFrame = function () { if (_root.cm.hitTest(_x, _y, true)) { if (_root.item3 == false) { gotoAndPlay('found'); _root.item3 = true; } } _root.checkVis(this); }; } frame 42 { if (!_root.cm.hitTest(_x, _y, true)) { gotoAndPlay(1); } } frame 52 { stop(); } } movieClip 1215 { } movieClip 1245 { frame 1 { var onEnterFrame = function () { if (_root.cm.hitTest(_x, _y, true)) { if (_root.item4 == false) { gotoAndPlay('found'); _root.item4 = true; } } _root.checkVis(this); }; } frame 42 { if (!_root.cm.hitTest(_x, _y, true)) { gotoAndPlay(1); } } frame 51 { stop(); } } movieClip 1247 { frame 1 { _visible = false; } } movieClip 1297 { } movieClip 1306 { } movieClip 1308 { } movieClip 1310 { } movieClip 1312 { } movieClip 1314 { } movieClip 1315 { frame 1 { gotoAndStop(random(_totalframes - 1) + 1); } } movieClip 1337 { frame 19 { if (this._parent._xscale == this._parent.xscale) { _root.candy._x = this._parent._x + 90; _root.candy._y = this._parent._y - 100; _root.candy.dir = 'right'; } else { _root.candy._x = this._parent._x - 90; _root.candy._y = this._parent._y - 100; _root.candy.dir = 'left'; } _root.candy._visible = true; _root.candy._alpha = 100; _root.candy.gotoAndStop(candy._currentframe); _root.candy.ready = true; } frame 26 { this._parent.throwing = false; } } movieClip 1357 { } movieClip 1370 { } movieClip 1377 { frame 23 { this._parent.punching = false; } } movieClip 1384 { frame 1 { if (this._parent.falling == true) { gotoAndStop(_totalframes); } } frame 6 { this._parent.jumping = true; this._parent.jump = false; stop(); } } movieClip 1397 { frame 3 { gruntSound = new Sound(); numSound = random(3); if (numSound == 0) { numSound = 3; } gruntSound.attachSound('grunt' + numSound); gruntSound.start(); } frame 12 { this._parent.hit = false; } } movieClip 1414 { frame 16 { this._parent.kicking = false; } } movieClip 1436 { frame 36 { stop(); _root.deadFade.play(); } } movieClip 1447 { } movieClip 1449 { } movieClip 1451 { } movieClip 1453 { } movieClip 1455 { } movieClip 1457 { } movieClip 1459 { } movieClip 1461 { } movieClip 1463 { } movieClip 1464 { } movieClip 1468 { } movieClip 1472 { frame 23 { this._parent.sparkle = false; } } movieClip 1477 { } movieClip 1480 { } movieClip 1490 { frame 8 { stop(); var onEnterFrame = function () { if (!Key.isDown(40)) { play(); } if (_currentframe >= 9) { play(); } }; } frame 13 { this._parent.ducking = false; } } movieClip 1494 { } movieClip 1499 { } movieClip 1534 { frame 19 { this._parent.plungTar.g.gotoAndPlay('after'); this._parent.plunger = false; } } movieClip 1535 { frame 1 { stop(); if (!setVars) { var moveSpeed = 5; var gravity = 0; var airSpeed = 1; var maxGravity = 20; var jumpSpeed = 15; var ojumpSpeed = jumpSpeed; var leftPress = false; var rightPress = false; var tarX = 0; var amtX = 0.5; var xBound = 60; var running = false; var xscale = _xscale; var jumping = false; var falling = false; var punching = false; var throwing = false; var kicking = false; var jump = false; var hit = false; var die = false; var sparkle = false; var ducking = false; var startX = _x; var startY = _y; var invis = 0; var aNum = 0; var plunger = false; var setVars = true; } var setFrame = function () { if (die == false) { if (hit == false && plunger == false) { if (jumping == false && falling == false && jump == false) { if (ducking == false) { if (running == false && punching == false && throwing == false && kicking == false && sparkle == false) { frame = 'stand'; } else { if (running == true && punching == false && kicking == false && throwing == false && sparkle == false) { frame = 'run'; } else { if (punching == true) { frame = 'punch'; } else { if (kicking == true) { frame = 'kick'; } else { if (throwing == true) { frame = 'throw'; } else { if (sparkle == true) { frame = 'sprinkle'; } } } } } } } else { frame = 'duck'; } } else { frame = 'jump'; } } else { if (hit == true) { frame = 'hit'; } else { if (plunger == true) { frame = 'plunger'; } } } } else { if (plunger == false) { frame = 'die'; } } if (plunger == true) { frame = 'plunger'; } gotoAndStop(frame); }; var moveX = function () { if (punching == true or kicking == true or throwing == true or sparkle == true or die == true or hit == true or plunger == true) { tarX = 0; } if (running == false) { if (tarX > 0) { tarX -= amtX; } else { if (tarX < 0) { tarX += amtX; } } } else { if (tarX > moveSpeed) { tarX = moveSpeed; } else { if (tarX < -moveSpeed) { tarX = -moveSpeed; } } } _x = _x + tarX; }; var onEnterFrame = function () { if (_root.pauseMode != true) { if (_root.health <= 0) { die = true; } if (invis > 0) { invis -= 1; if (aNum == 0) { if (_alpha >= 80) { aNum = 1; } else { _alpha = _alpha + 5; } } else { if (aNum == 1) { if (_alpha <= 50) { aNum = 0; } else { _alpha = _alpha - 5; } } } } else { _alpha = 100; } if (Key.isDown(37)) { leftPress = true; } else { leftPress = false; } if (Key.isDown(39)) { rightPress = true; } else { rightPress = false; } if (hit == true) { punching = false; throwing = false; kicking = false; sparkle = false; } if (punching == false && throwing == false && kicking == false && jump == false && sparkle == false && ducking == false && hit == false && plunger == false && die == false) { if (rightPress == true) { _xscale = xscale; } else { if (leftPress == true) { _xscale = -xscale; } } } leftMove = true; rightMove = true; i = 0; while (i < xBound) { if (_root.bound.hitTest(_x + i, _y - 30, true)) { rightMove = false; } ++i; } i = 0; while (i < xBound) { if (_root.bound.hitTest(_x - i, _y - 30, true)) { leftMove = false; } ++i; } if (punching == false && throwing == false && kicking == false && jump == false && sparkle == false && ducking == false && hit == false && plunger == false) { if (rightPress == true && rightMove == true) { tarX += amtX; running = true; } else { if (leftPress == true && leftMove == true) { tarX -= amtX; running = true; } else { running = false; } } } else { running = false; } if (falling == false && jumping == false) { if (punching == false && throwing == false && kicking == false && jump == false && sparkle == false && ducking == false && hit == false && plunger == false) { if (Key.isDown(65)) { if (punchPress == false) { punchPress = true; punching = true; } } else { punchPress = false; } if (Key.isDown(83)) { if (kickPress == false) { kickPress = true; kicking = true; } } else { kickPress = false; } if (Key.isDown(68)) { if (throwPress == false) { throwPress = true; if (_root.candy.ready == false) { throwing = true; } } } else { throwPress = false; } if (Key.isDown(32)) { if (spacePress == false) { spacePress = true; if (_root.magic >= 33) { sparkle = true; _root.magic -= 33; } else { _root.hud.magic.bar.play(); } } } else { spacePress = false; } } } if (falling == false && jumping == false && jump == false && punching == false && throwing == false && kicking == false && ducking == false && sparkle == false && hit == false && plunger == false) { if (Key.isDown(38)) { if (jumpPress == false) { jumpPress = true; jump = true; } } else { jumpPress = false; } } if (jumping == false && jump == false) { if (!_root.bound.hitTest(_x, _y + 4, true) && !_root.bound.hitTest(_x, _y + 3, true) && !_root.bound.hitTest(_x, _y + 2, true) && !_root.bound.hitTest(_x, _y + 1, true)) { if (falling == false) { falling = true; jump = false; } } else { if (falling == true) { falling = false; jump = false; } } } else { if (falling == true) { falling = false; } } if (falling == true) { jump = false; changed = false; grav = 0; i = 0; while (i < gravity) { if (changed == false) { if (!_root.bound.hitTest(_x, _y + i, true)) { grav = i; } else { changed = true; } } ++i; } _y = _y + grav; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } if (jumping == true) { jump = false; if (shifted == false) { if (Key.isDown(38)) { } else { shifted = true; jumpSpeed *= 0.5; } } if (jumpSpeed > 0) { _y = _y - jumpSpeed; if (shifted == false) { jumpSpeed -= airSpeed; } else { jumpSpeed -= airSpeed * 2; } } else { jumping = false; falling = true; } } else { shifted = false; jumpSpeed = ojumpSpeed; } if (jumping == false && jump == false && falling == false && punching == false && throwing == false && kicking == false && sparkle == false && hit == false && plunger == false) { if (Key.isDown(40)) { ducking = true; } } moveX(); setFrame(); if (falling == false && jumping == false && jump == false) { while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } } if (die == true && g._currentframe == g._totalframes) { g.stop(); } else { if (jumping == true or jump == true or falling == true) { if (g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } else { if (ducking == true && g._currentframe == 8) { if (!Key.isDown(40)) { g.gotoAndPlay(9); } else { g.stop(); } } else { g.play(); } } } } else { stop(); g.stop(); } }; } } movieClip 1553 { frame 1 { var onEnterFrame = function () { if (_root.cam.hitTest(this)) { if (_root.cm._y <= _y + 5) { _visible = true; } else { _visible = false; } } else { _visible = false; } }; } } movieClip 1554 { } movieClip 1555 { } movieClip 1559 { } movieClip 1576 { } movieClip 1587 { } movieClip 1599 { frame 9 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 10; } } } frame 20 { this._parent.attacking = false; } } movieClip 1612 { frame 12 { stop(); } } movieClip 1630 { frame 21 { stop(); } } movieClip 1631 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'fall'; } else { if (running == true) { frame = 'run'; } else { if (attacking == true) { frame = 'attack'; } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; _visible = true; _alpha = 100; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); die = true; } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); die = true; } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } if (!mNum) { var mNum = 1; } else { ++mNum; } num = random(50); if ((num == 1 or mNum == 30) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } movieClip 1632 { } movieClip 1633 { } movieClip 1651 { } movieClip 1663 { } movieClip 1675 { frame 11 { if (_root.cm.ducking == false && _root.cm.falling == false && _root.cm.jumping == false && _root.cm.jump == false) { if (_root.cm.hitTest(hit)) { gotoAndStop('on'); } else { gotoAndPlay('after'); } } else { gotoAndPlay('after'); } } frame 12 { _root.cm.hit = false; _root.cm.running = false; _root.cm.jumping = false; _root.cm.jump = false; _root.cm.falling = false; _root.cm.throwing = false; _root.cm.punching = false; _root.cm.kicking = false; _root.cm.sparkle = false; _root.cm.ducking = false; _root.cm.plunger = true; _root.cm.plungTar = this._parent; _root.health -= 20; } frame 23 { this._parent.attacking = false; } } movieClip 1677 { } movieClip 1691 { frame 16 { stop(); } } movieClip 1710 { } movieClip 1712 { } movieClip 1718 { frame 10 { this._parent.hit = false; this._parent.health -= 1; } } movieClip 1719 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var attackRate = 60; var madeAttack = 0; var attacking = false; var die = false; var melt = false; var hit = false; var health = 2; var startHealth = health; var gravity = 0; var maxGravity = 8; var removeNum = 100; var airSpeed = 0.5; var active = false; var xTar = 0; var startX = _x; var startY = _y; var xscale = _xscale; var hitSound = new Sound(); hitSound.attachSound('punch5'); var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (hit == true) { frame = 'hit'; } else { if (running == false && attacking == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (running == true) { frame = 'run'; } else { if (attacking == true) { frame = 'attack'; } } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; hit = false; health = startHealth; _x = startX; _y = startY; active = false; _visible = true; _alpha = 100; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false) { if (hit == false) { if (_root.candy.hitTest(hitter)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); if (health > 0) { hit = true; } else { die = true; } } else { if (_root.cm.g.hit.hitTest(hitter)) { hitSound.start(); if (health > 0) { hit = true; } else { die = true; } } else { if (_root.cm.g.sparkle.hitTest(hitter)) { die = false; melt = true; } } } } if (attacking == false && hit == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false && hit == false && melt == false && die == false) { if (running == true && g._currentframe >= 8) { if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } running = true; } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } num = random(attackRate); ++madeAttack; if ((num == 1 or madeAttack >= attackRate) && attacking == false && falling == false && running == false) { if (hit == false) { madeAttack = 0; attacking = true; } } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; getFrame(); if ((die == true or melt == true) && g._currentframe == g._totalframes or attacking == true && g._currentframe == 12) { g.stop(); } else { g.play(); } } else { if (_root.cam.hitTest(this)) { active = true; } } } else { stop(); g.stop(); } }; } } movieClip 1720 { } movieClip 1721 { } movieClip 1741 { frame 12 { if (this._parent._xscale == -this._parent.xscale) { this._parent.bull._x = this._parent._x + 40; this._parent.bull.dir = 'right'; } else { this._parent.bull._x = this._parent._x - 40; this._parent.bull.dir = 'left'; } this._parent.bull._y = this._parent._y - 75; this._parent.bull.ready = false; } frame 18 { this._parent.attacking = false; } } movieClip 1752 { frame 10 { this._parent.hit = false; this._parent.health -= 1; } } movieClip 1770 { frame 16 { stop(); } } movieClip 1793 { frame 21 { stop(); } } movieClip 1794 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var health = 3; var setVars = true; } stop(); var getFrame = function () { if (hit == false) { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (attacking == false or falling == true) { frame = 'stand'; } else { if (attacking == true) { frame = 'attack'; } } } } } else { frame = 'hit'; } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; _visible = true; _alpha = 100; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false) { if (_root.candy.hitTest(hitter)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); if (health > 0) { hit = true; } else { die = true; } } else { if (_root.cm.g.hit.hitTest(hitter)) { hitSound.start(); if (health > 0) { hit = true; } else { die = true; } } else { if (_root.cm.g.sparkle.hitTest(hitter)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (bound.hitTest(_root.cm)) { num = random(50); if (num == 1 && attacking == false && falling == false && bull.ready == true) { attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } instance of movieClip 1794 { onClipEvent (load) { bull = _root.cbullet1; } } movieClip 1796 { frame 1 { if (!setVars) { var moveSpeed = 8; var ready = true; _visible = false; var dir = 'left'; var startX = _x; var startY = _y; var xscale = _xscale; var setVars = true; } var onEnterFrame = function () { if (_root.pauseMode == false) { if (!_root.cam.hitTest(this)) { ready = true; } if (ready == true) { _x = startX; _y = startY; _visible = false; } else { _visible = true; if (dir == 'left') { _xscale = -xscale; changed = false; mspeed = 0; i = 0; while (i < moveSpeed) { if (changed == false) { if (_root.cm.hitTest(_x - i, _y, true) && _root.cm.ducking == false) { _root.cm.hit = true; _root.health -= 10; changed = true; ready = true; } else { if (_root.bound.hitTest(_x - i, _y, true)) { changed = true; } else { mspeed = i; } } } ++i; } _x = _x - mspeed; } else { if (dir == 'right') { _xscale = xscale; changed = false; mspeed = 0; i = 0; while (i < moveSpeed) { if (changed == false) { if (_root.cm.hitTest(_x + i, _y, true) && _root.cm.ducking == false) { _root.cm.hit = true; _root.health -= 10; changed = true; ready = true; } else { if (_root.bound.hitTest(_x + i, _y, true)) { changed = true; } else { mspeed = i; } } } ++i; } _x = _x + mspeed; } } } } }; } } movieClip 1797 { frame 1 { stop(); if (!setVars) { ready = false; dir = 'right'; startX = _x; startY = _y; gaveSpeed = false; gravity = 0; fallTime = 0; fade = false; var setVars = true; } var onEnterFrame = function () { if (_root.pauseMode == false) { if (!_root.cam.hitTest(this)) { ready = false; } if (ready == true) { fallTime += 0.5; if (_root.bound.hitTest(_x + 1, _y, true) or _root.bound.hitTest(_x - 1, _y, true)) { if (bounce == false) { bounce = true; if (dir == 'left') { dir = 'right'; } else { dir = 'left'; } } } else { bounce = false; } if (gaveSpeed == false) { gaveSpeed = true; moveSpeed = 20; } _visible = true; if (dir == 'right') { vSpeed = 0; changed = false; i = 0; while (i < moveSpeed) { if (!_root.bound.hitTest(_x + i, _y, true)) { if (changed == false) { vSpeed = i; } } else { changed = true; } ++i; } _x = _x + vSpeed; _rotation = _rotation + moveSpeed; } else { vSpeed = 0; changed = false; i = 0; while (i < moveSpeed) { if (!_root.bound.hitTest(_x - i, _y, true)) { if (changed == false) { vSpeed = i; } } else { changed = true; } ++i; } _x = _x - vSpeed; _rotation = _rotation - moveSpeed; } if (moveSpeed > 0) { moveSpeed -= 0.5; } if (_root.bound.hitTest(_x, _y + 1, true)) { fade = true; } else { changed = false; grav = 0; i = 0; while (i < gravity) { if (changed == false) { if (_root.bound.hitTest(_x, _y + i, true)) { changed = true; } else { grav = i; } } ++i; } _y = _y + grav; gravity += 1; } if (fade == true) { if (_alpha > 0) { _alpha = _alpha - 5; } else { ready = false; } } } else { fade = false; _alpha = 100; gravity = 0; _rotation = 0; gaveSpeed = false; _visible = false; _x = startX; _y = startY; } } }; } } movieClip 1799 { } movieClip 1803 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 14 { _root.cm._x = placeX; _root.cm._y = placeY; _root.cam._x = _root.cm._x; _root.cam._y = _root.cm._y - 120; _root.hud._x = _root.cam._x; _root.hud._y = _root.cam._y; _x = _root.cam._x; _y = _root.cam._y; _root.shad._x = _root.cm._x; _root.shad._y = _root.cm._y; tar.play(); } } movieClip 1805 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 14 { _root.gotoAndStop('level2Cut'); } } movieClip 1808 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 14 { _root.cm._x = _root.cm.startX; _root.cm._y = _root.cm.startY; _root.health = 100; _root.lives -= 1; if (_root.lives <= 0) { _root.stopAllSounds(); _root.gotoAndStop('gameover'); } _root.cm.hit = false; _root.cm.die = false; _root.cm.invis = 110; _root.cam._x = _root.cm._x; _root.cam._y = _root.cm._y - 120; _root.hud._x = _root.cam._x; _root.hud._y = _root.cam._y; _x = _root.cam._x; _y = _root.cam._y; _root.shad._x = _root.cm._x; _root.shad._y = _root.cm._y; if (_root.level == 1) { _root.door1.gotoAndStop(1); _root.door2.gotoAndStop(1); _root.door3.gotoAndStop(1); _root.door4.gotoAndStop(1); _root.door5.gotoAndStop(1); _root.door6.gotoAndStop(1); _root.door7.gotoAndStop(1); } _root.remake = true; } frame 15 { _root.remake = false; } } movieClip 1810 { } button 1815 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } button 1817 { on (release) { _root.stopAllSounds(); stopAllSounds(); _root.pmenu = true; _root.gotoAndStop(1); } } movieClip 1819 { } movieClip 1820 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; _height = _root.cam._height; _width = _root.cam._width; }; } } movieClip 1822 { } movieClip 1837 { frame 1 { if (!setVars) { var health = 100; var setVars = true; } var onEnterFrame = function () { if (health > _root.health) { health -= 1; } else { if (health < _root.health) { health += 1; } } gotoAndStop(101 - health); }; } } movieClip 1840 { frame 1 { stop(); } frame 1 { if (!setVars) { var startWidth = _width; var mm = 100; var setVars = true; } var onEnterFrame = function () { if (_root.magic > 100) { _root.magic = 100; } else { if (_root.magic < 0) { _root.magic = 0; } } mm += (_root.magic - mm) / 10; _width = mm * startWidth / 100; }; } frame 2 { this._parent.border.play(); } } movieClip 1844 { frame 1 { stop(); } } movieClip 1846 { } movieClip 1850 { frame 1 { var onEnterFrame = function () { if (_root.lives > 3) { _root.lives = 3; } else { if (_root.lives <= 0) { if (_root.gameover._currentframe == 1) { _root.gameover.play(); } } } gotoAndStop(_root.lives); }; } } movieClip 1854 { } movieClip 1856 { } movieClip 1858 { } movieClip 1860 { } movieClip 1861 { frame 1 { var onEnterFrame = function () { gotoAndStop(_root.level); }; } } movieClip 1864 { } movieClip 1865 { frame 1 { startWidth = hp._width; onEnterFrame = function () { hp._width = startWidth * _root.boss.health / 100; }; } } button 1870 { on (release) { if (_root.level != 2) { if (_root.q == 'BEST' or _root.q == 'HIGH') { _root.q = 'LOW'; } else { if (_root.q == 'LOW') { _root.q = 'MED'; } else { if (_root.q == 'MED') { _root.q = 'BEST'; } } } } else { _quality = 'LOW'; } } } button 1871 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } movieClip 1872 { frame 1 { _x = _root.cam._x; _y = _root.cam._y; _height = _root.cam._height; _width = _root.cam._width; var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; if (_root.level == 1) { sublevel = 'LET\'S BUILD THINGS!'; } level = 'Level ' + _root.level; if (_root.level == 6) { bosshp._visible = true; } else { bosshp._visible = false; } }; } } movieClip 1874 { frame 1 { _x = _root.cam._x; _y = _root.cam._y; var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 20 { stop(); } } movieClip 1875 { } movieClip 1877 { } button 1879 { on (release) { _root.stopAllSounds(); stopAllSounds(); _root.gotoAndStop(1); _root.menuThing.gotoAndStop('men'); } } button 1880 { on (release) { getURL('http://www.maxgames.com/', ''); } } movieClip 1881 { frame 1 { _x = _root.cam._x; _y = _root.cam._y; stop(); var onEnterFrame = function () { if (_root.lives <= 0) { _root.cm._visible = false; if (_currentframe == 1) { _root.stopAllSounds(); stopAllSounds(); _root.music.stop(); play(); } } _x = _root.cam._x; _y = _root.cam._y; }; } frame 2 { _root.stopAllSounds(); stopAllSounds(); _root.music.stop(); } frame 190 { stop(); } } frame 4 { _root.stopAllSounds(); _root.music.stop(); stop(); _root.contLevel = _currentframe; } movieClip 1915 { } movieClip 2015 { } movieClip 2024 { } movieClip 2027 { } movieClip 2091 { } movieClip 2105 { } movieClip 2106 { frame 603 { _root.gotoAndStop('level2'); } } button 2107 { on (release) { _root.gotoAndStop('level2'); } } frame 5 { stop(); _root.level = 2; _quality = 'LOW'; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level2'); music.start(); timesPlayed = 0; music.onSoundComplete = function () { if (timesPlayed == 0) { _root.stopAllSounds(); _root.music.stop(); _root.level3trans.play(); } else { timesPlayed += 1; music.start(); } }; gameGo = false; diff = 3000; Fnum = 0; _root.health = 100; _root.magic = 100; _root.createEmptyMovieClip('diffMove', 1); diffMove.onEnterFrame = function () { numnum = random(2); if (numnum == 1) { _root.diff -= 1; } if (_root.diff <= 0 && _root.gotoLevel3._currentframe == 1) { _root.gotoLevel3.play(); } }; pauseMC.removeMovieClip(); _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 2110 { } movieClip 2112 { } movieClip 2113 { } movieClip 2114 { } movieClip 2115 { } movieClip 2117 { } movieClip 2121 { } movieClip 2122 { frame 15 { stop(); _visible = false; _root.cm._visible = true; _root.gameStart.play(); } } movieClip 2123 { } movieClip 2127 { } movieClip 2130 { frame 1 { if (!setVars) { _visible = false; var moveSpeed = 6; var friction = 10; var xTar = _x; var setVars = true; } var onEnterFrame = function () { if (_root.gameGo == true && _visible == true) { if (_root.pauseMode == false) { if (Key.isDown(37) && !_root.bound.hitTest(xTar - _width / 2 + 10, _y, true)) { xTar -= moveSpeed; } if (Key.isDown(39) && !_root.bound.hitTest(xTar + _width / 2 - 10, _y, true)) { xTar += moveSpeed; } _x = _x + (xTar - _x) / friction; play(); } else { stop(); } } }; } instance of movieClip 2127 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100 && _root.gameGo == true) { _alpha = _alpha + 5; } if (Key.isDown(37)) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 2127 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha < 100 && _root.gameGo == true) { _alpha = _alpha + 5; } if (Key.isDown(39)) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 2141 { } movieClip 2143 { frame 6 { stop(); this._parent.go = false; this._parent.gotoAndStop(1); } } movieClip 2144 { frame 1 { if (!setVars) { startY = _y; gg = 0; setVars = true; } stop(); onEnterFrame = function () { if (_root.diff > 2000) { moveSpeed = 4; } else { if (_root.diff > 1500) { moveSpeed = 5; } else { if (_root.diff > 1000) { moveSpeed = 6; } else { if (_root.diff > 500) { moveSpeed = 7; } } } } if (_root.pauseMode == false) { if (_root.gameGo == true) { g.play(); if (go == false) { gotoAndStop(1); _x = random(Stage.width); _y = startY; maxNum = _root.diff / 20; num = random(_root.diff / 20); if (num == 1 or gg >= maxNum) { gg = 0; go = true; } ++gg; } else { if (_root.diff > 0) { if (_root.cm.hit.hitTest(this) && _currentframe == 1) { gotoAndStop(2); _root.health -= 15; } } if (_currentframe == 1) { if (_y > -50) { _y = _y - moveSpeed; } else { go = false; } } } } } else { g.stop(); } }; } } instance clock1 of movieClip 2144 { onClipEvent (load) { go = false; } } instance clock2 of movieClip 2144 { onClipEvent (load) { go = true; } } movieClip 2146 { } movieClip 2158 { frame 12 { ++_root.Fnum; _root.attachMovie('fish', 'fish' + _root.Fnum, _root.Fnum); if (this._parent.dir == 'left') { (eval('_root.fish' + _root.Fnum))._x = this._parent._x - 35; } else { (eval('_root.fish' + _root.Fnum))._x = this._parent._x + 35; } (eval('_root.fish' + _root.Fnum))._y = this._parent._y - 18; } frame 30 { this._parent.gotoAndStop(1); } } movieClip 2159 { frame 1 { stop(); if (!setVars) { gg = 0; go = false; xScale = _xscale; dir = 'left'; timePlay = 0; ssNum = 0; setVars = true; } onEnterFrame = function () { if (_root.diff > 2000) { moveSpeed = 5; } else { if (_root.diff > 1500) { moveSpeed = 4; } else { if (_root.diff > 1000) { moveSpeed = 3; } else { if (_root.diff > 500) { moveSpeed = 2; } } } } if (_root.pauseMode == false) { if (_root.gameGo == true) { g.play(); if (go == false) { if (_x > 600) { dir = 'left'; _x = _x - 5; } else { if (_x < -50) { _x = _x + 5; dir = 'right'; } } gotoAndStop(1); maxNum = _root.diff / 5; rnum = random(_root.diff / 5); ++timePlay; if ((rnum == 1 or gg >= maxNum) && timePlay > 400) { gg = 0; go = true; } ++gg; } else { if (_x > 600 or _x < -50) { go = false; } if (_currentframe == 1) { ggNum = random(50); ++ssNum; if (ssNum >= 50 or ggNum == 1) { gotoAndStop(2); ssNum = 0; } } if (dir == 'left') { _xscale = xScale; _x = _x - moveSpeed; } else { if (dir == 'right') { _xscale = -xScale; _x = _x + moveSpeed; } } } } } else { g.stop(); } }; } } movieClip 2161 { } movieClip 2164 { frame 6 { stop(); this._parent.go = false; this._parent.gotoAndStop(1); } } movieClip 2165 { frame 1 { if (!setVars) { startY = _y; gg = 0; setVars = true; } stop(); onEnterFrame = function () { if (_root.diff > 2000) { moveSpeed = 3; } else { if (_root.diff > 1500) { moveSpeed = 4; } else { if (_root.diff > 1000) { moveSpeed = 5; } else { if (_root.diff > 500) { moveSpeed = 6; } } } } if (_root.pauseMode == false) { if (_root.gameGo == true) { if (_currentframe == 1) { _rotation = _rotation + moveSpeed; } else { _rotation = 0; } g.play(); if (go == false) { gotoAndStop(1); _x = random(Stage.width); _y = startY; maxNum = _root.diff / 18; num = random(_root.diff / 18); if (num == 1 or gg >= maxNum) { gg = 0; go = true; } ++gg; } else { if (_root.diff > 0) { if (_root.cm.hit.hitTest(this) && _currentframe == 1) { gotoAndStop(2); _root.health -= 15; } } if (_currentframe == 1) { if (_y > -50) { _y = _y - moveSpeed; } else { go = false; } } } } } else { g.stop(); } }; } } instance pizza of movieClip 2165 { onClipEvent (load) { go = false; } } movieClip 2167 { } movieClip 2168 { frame 1 { stop(); } frame 52 { stop(); _root.gameGo = true; } } movieClip 2170 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 30 { _root.gotoAndStop('level3Cut'); } } frame 6 { _root.stopAllSounds(); _root.music.stop(); stop(); _quality = 'BEST'; _root.contLevel = _currentframe; } movieClip 2172 { } movieClip 2173 { } movieClip 2181 { } movieClip 2184 { } movieClip 2186 { } movieClip 2189 { } movieClip 2219 { } movieClip 2401 { frame 635 { _root.gotoAndStop('level3'); } } button 2402 { on (release) { _root.gotoAndStop('level3'); } } frame 7 { stop(); _root.level = 3; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level3'); music.start(); music.onSoundComplete = function () { music.start(); }; _root.health = 100; _root.magic = 100; pauseMC.removeMovieClip(); _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 2406 { } movieClip 2408 { } movieClip 2410 { } movieClip 2412 { } movieClip 2414 { } movieClip 2416 { } movieClip 2418 { frame 1 { var onEnterFrame = function () { if (_root.cam.hitTest(this)) { _visible = true; } else { _visible = false; } }; } } movieClip 2420 { frame 1 { _visible = false; } } movieClip 2421 { } movieClip 2424 { } movieClip 2427 { } movieClip 2430 { } movieClip 2461 { } movieClip 2478 { } movieClip 2513 { frame 8 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 5; } } } frame 25 { this._parent.attacking = false; } } movieClip 2534 { frame 10 { this._parent.bat = false; } } movieClip 2552 { frame 10 { stop(); } } movieClip 2569 { frame 19 { stop(); } } movieClip 2570 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 2; var mNum = 0; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (running == true) { frame = 'run'; } else { if (attacking == true) { frame = 'attack'; } } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; health = 2; } if (_root.pauseMode == false) { if (active == true) { if (die == true && dropped == false) { if (_root.health < 100) { dropNum = random(5); if (dropNum == 1) { _root.dropNum += 1; _root.attachMovie('healthbox', 'healthbox' + _root.dropNum, _root.dropNum); (eval('_root.healthbox' + _root.dropNum))._x = _x; (eval('_root.healthbox' + _root.dropNum))._y = _y; } } dropped = true; } if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(50); if ((num == 1 or mNum == 30) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } movieClip 2574 { } movieClip 2575 { frame 1 { stop(); pb = false; } frame 2 { onEnterFrame = function () { if (_root.cm.hitTest(gg) && _root.cm.ducking == false) { if (pb == false) { pb = true; _root.cm.hit = true; _root.health -= 2; gotoAndStop(1); } } }; } frame 26 { onEnterFrame = function () { pb = false; }; } } movieClip 2576 { } movieClip 2594 { frame 9 { this._parent.arr.play(); } frame 17 { this._parent.attacking = false; } } movieClip 2602 { frame 7 { this._parent.bat = false; } } movieClip 2614 { frame 11 { stop(); } } movieClip 2632 { frame 21 { stop(); } } movieClip 2633 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 2; var mNum = 0; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (attacking == true) { frame = 'attack'; } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; health = 2; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(90); if (arr._currentframe == 1 && (num == 1 or mNum == 55) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } movieClip 2635 { } movieClip 2639 { frame 1 { onEnterFrame = function () { if (this._parent.health > 0 && this._parent.die == false && this._parent.melt == false) { _visible = true; } else { _visible = false; } }; } } movieClip 2647 { } movieClip 2653 { frame 6 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 5; } } } frame 11 { this._parent.attacking = false; } } movieClip 2672 { frame 19 { stop(); } } movieClip 2678 { frame 5 { this._parent.bat = false; } } movieClip 2696 { frame 22 { stop(); } } movieClip 2697 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 1; var mNum = 0; var bat = false; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (attacking == true) { frame = 'attack'; } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; health = 1; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health < 1) { die = true; } else { bat = true; health -= 1; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health < 1) { die = true; } else { bat = true; health -= 1; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(50); if (arr._currentframe == 1 && (num == 1 or mNum == 30) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } movieClip 2698 { frame 1 { onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.gotoLevel4._currentframe == 1) { stopAllSounds(); _root.stopAllSounds(); _root.music.stop(); _root.gotoLevel4.play(); } } }; } } movieClip 2700 { frame 1 { var onEnterFrame = function () { if (_root.cam.hitTest(this)) { _visible = true; } else { _visible = false; } }; } } movieClip 2702 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 30 { _root.gotoAndStop('level4Cut'); } } frame 8 { _root.stopAllSounds(); _root.music.stop(); stop(); _root.contLevel = _currentframe; } movieClip 2703 { } movieClip 2705 { } movieClip 2805 { } movieClip 2806 { } movieClip 2809 { } movieClip 2811 { } movieClip 2812 { } movieClip 2914 { frame 500 { _root.gotoAndStop('level4'); } } button 2915 { on (release) { _root.gotoAndStop('level4'); } } frame 9 { stop(); _root.level = 4; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level4'); music.start(); music.onSoundComplete = function () { music.start(); }; bNum = 0; _root.health = 100; _root.magic = 100; pauseMC.removeMovieClip(); _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 2918 { } movieClip 2920 { } movieClip 2922 { frame 1 { var onEnterFrame = function () { if (_root.cam.hitTest(this)) { _visible = true; } else { _visible = false; } }; } } movieClip 2925 { frame 1 { var onEnterFrame = function () { if (_root.cam.hitTest(this)) { _visible = true; } else { _visible = false; } }; } } movieClip 2929 { } movieClip 2930 { } movieClip 2931 { } movieClip 2933 { frame 1 { _visible = false; } } movieClip 2934 { } movieClip 2969 { } movieClip 2975 { } movieClip 3002 { frame 5 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 2; } } } frame 14 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 2; } } } frame 22 { this._parent._parent.attacking = false; } } movieClip 3005 { } movieClip 3019 { frame 2 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 3; } } } frame 11 { this._parent._parent.attacking = false; } } movieClip 3020 { } movieClip 3031 { frame 10 { this._parent.bat = false; } } movieClip 3051 { frame 16 { stop(); } } movieClip 3071 { frame 25 { stop(); } } movieClip 3072 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var dropped = false; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 2; var mNum = 0; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (running == true) { frame = 'run'; } else { if (attacking == true) { frame = 'attack'; g.stop(); } } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; dropped = false; health = 2; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(60); if ((num == 1 or mNum == 40) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } if (die == true && dropped == false) { if (_root.health < 100) { dropNum = random(5); if (dropNum == 1) { _root.dropNum += 1; _root.attachMovie('healthbox', 'healthbox' + _root.dropNum, _root.dropNum); (eval('_root.healthbox' + _root.dropNum))._x = _x; (eval('_root.healthbox' + _root.dropNum))._y = _y; } } dropped = true; } } else { stop(); g.stop(); } getFrame(); }; } instance g of movieClip 3020 { onClipEvent (load) { num = random(2); this.gotoAndStop(num + 1); } } } movieClip 3074 { } movieClip 3085 { frame 3 { _root.bNum += 1; _root.attachMovie('bullet', 'bullet' + _root.bNum, _root.bNum); (eval('_root.bullet' + _root.bNum)).dir = this._parent.dir; if (this._parent.dir == 'left') { (eval('_root.bullet' + _root.bNum))._x = this._parent._x - 40; } else { (eval('_root.bullet' + _root.bNum))._x = this._parent._x + 40; } (eval('_root.bullet' + _root.bNum))._y = this._parent._y - 80; } frame 9 { this._parent.attacking = false; } } movieClip 3097 { frame 10 { this._parent.bat = false; } } movieClip 3128 { frame 21 { stop(); } } movieClip 3149 { frame 25 { stop(); } } movieClip 3150 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 2; var mNum = 0; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (attacking == true) { frame = 'attack'; } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; health = 2; } if (_root.pauseMode == false) { if (active == true) { if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { dir = 'right'; _xscale = -xscale; } else { if (_root.cm._x < _x) { dir = 'left'; _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(200); if ((num == 1 or mNum == 60) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } } movieClip 3152 { } movieClip 3161 { } movieClip 3172 { } movieClip 3180 { frame 10 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 5; } } } frame 16 { this._parent._parent.attacking = false; } } movieClip 3198 { frame 8 { if (_root.cm.hitTest(this.hit)) { if (_root.cm.ducking == false && _root.cm.invis <= 0) { this._parent.hitSound.start(); _root.cm.hit = true; _root.health -= 5; } } } frame 16 { this._parent._parent.attacking = false; } } movieClip 3199 { } movieClip 3211 { frame 11 { this._parent.bat = false; } } movieClip 3224 { frame 12 { stop(); } } movieClip 3242 { frame 25 { stop(); } } movieClip 3243 { frame 1 { if (!setVars) { var moveSpeed = 3; var addSpeed = 0.5; var gravity = 0; var maxGravity = 8; var airSpeed = 0.5; var active = false; var xTar = 0; xscale = _xscale; var attacking = false; var hitSound = new Sound(); var die = false; hitSound.attachSound('punch5'); var removeNum = 100; var melt = false; var startX = _x; var startY = _y; var bat = false; var health = 2; var mNum = 0; var setVars = true; } stop(); var getFrame = function () { if (die == true) { frame = 'die'; } else { if (melt == true) { frame = 'melt'; } else { if (bat == true) { frame = 'hit'; } else { if (running == false && attacking == false && falling == false) { frame = 'stand'; } else { if (falling == true) { frame = 'stand'; } else { if (running == true) { frame = 'run'; } else { if (attacking == true) { frame = 'attack'; g.stop(); } } } } } } } gotoAndStop(frame); }; var onEnterFrame = function () { _root.checkVis(this); if (_root.remake == true) { die = false; melt = false; removeNum = 100; _x = startX; _y = startY; active = false; bat = false; _visible = true; _alpha = 100; health = 2; } if (_root.pauseMode == false) { if (active == true) { if (die == true && dropped == false) { if (_root.health < 100) { dropNum = random(3); if (dropNum == 1) { _root.dropNum += 1; _root.attachMovie('healthbox', 'healthbox' + _root.dropNum, _root.dropNum); (eval('_root.healthbox' + _root.dropNum))._x = _x; (eval('_root.healthbox' + _root.dropNum))._y = _y; } } dropped = true; } if (die == false && melt == false && bat == false) { if (_root.candy.hitTest(hit)) { if (_root.candy.dir == 'left') { _root.candy.dir = 'right'; } else { _root.candy.dir = 'left'; } hitSound.start(); hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); if (health <= 0) { die = true; } else { health -= 1; bat = true; } } else { if (_root.cm.g.sparkle.hitTest(hit)) { melt = true; } } } if (attacking == false) { if (_root.cm._x > _x) { _xscale = -xscale; } else { if (_root.cm._x < _x) { _xscale = xscale; } } } if (!bound.hitTest(_root.cm)) { if (attacking == false) { running = true; if (_root.cm._x > _x) { if (!_root.bound.hitTest(_x + xTar + addSpeed, _y - 10, true)) { xTar += addSpeed; } } else { if (_root.cm._x < _x) { if (!_root.bound.hitTest(_x - xTar - addSpeed, _y - 10, true)) { xTar -= addSpeed; } } } } } else { running = false; if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } ++mNum; num = random(60); if ((num == 1 or mNum == 40) && attacking == false && falling == false && running == false) { mNum = 0; attacking = true; } } } else { if (removeNum < 0) { if (_alpha > 0) { _alpha = _alpha - 1; } else { _visible = false; } } else { removeNum -= 1; } if (xTar > 0) { xTar -= addSpeed; } else { if (xTar < 0) { xTar += addSpeed; } } } if (xTar > moveSpeed) { xTar = moveSpeed; } else { if (xTar < -moveSpeed) { xTar = -moveSpeed; } } if (_root.bound.hitTest(_x, _y + 1, true)) { falling = false; } else { falling = true; } if (falling == true) { grav = 0; switched = false; i = 0; while (i < gravity) { if (switched == false) { if (_root.bound.hitTest(_x, _y + i, true)) { switched = true; } else { grav = i; } } ++i; } _y = _y + i; if (gravity < maxGravity) { gravity += airSpeed; } } else { gravity = 0; } while (_root.bound.hitTest(_x, _y - 0.5, true)) { _y = _y - 0.5; } _x = _x + xTar; if ((die == true or melt == true) && g._currentframe == g._totalframes) { g.stop(); } else { g.play(); } } if (_root.cam.hitTest(this)) { active = true; } } else { stop(); g.stop(); } getFrame(); }; } instance g of movieClip 3199 { onClipEvent (load) { num = random(2); this.gotoAndStop(num + 1); } } } movieClip 3244 { frame 1 { onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.gotoLevel5._currentframe == 1) { _root.stopAllSounds(); stopAllSounds(); _root.music.stop(); _root.gotoLevel5.play(); } } }; } } movieClip 3247 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 30 { _root.gotoAndStop('level5Cut'); } } movieClip 3249 { } frame 10 { _root.stopAllSounds(); _root.music.stop(); stop(); _root.contLevel = _currentframe; } movieClip 3251 { } movieClip 3425 { frame 513 { _root.gotoAndStop('level5'); } } button 3426 { on (release) { _root.gotoAndStop('level5'); } } frame 11 { stop(); _root.level = 5; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level3'); music.start(); music.onSoundComplete = function () { music.start(); }; bNum = 0; _root.health = 100; _root.magic = 100; pauseMC.removeMovieClip(); _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 3428 { frame 1 { _visible = false; } } movieClip 3429 { frame 1 { onEnterFrame = function () { if (_root.cm.hitTest(this)) { if (_root.gotoLevelboss._currentframe == 1) { _root.stopAllSounds(); stopAllSounds(); _root.music.stop(); _root.gotoLevelboss.play(); } } }; } } movieClip 3431 { frame 1 { var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 30 { _root.gotoAndStop('bossCut'); } } frame 12 { _root.stopAllSounds(); _root.music.stop(); stop(); _root.contLevel = _currentframe; } movieClip 3436 { } movieClip 3442 { } movieClip 3443 { } movieClip 3450 { } movieClip 3492 { } movieClip 3495 { } movieClip 3498 { } movieClip 3500 { } movieClip 3524 { } movieClip 3543 { } movieClip 3642 { } movieClip 3683 { } movieClip 3726 { } movieClip 3728 { } movieClip 3730 { } movieClip 3732 { frame 915 { _root.gotoAndStop('boss'); } } button 3733 { on (release) { _root.gotoAndStop('boss'); } } frame 13 { stop(); _root.level = 6; _root.stopAllSounds(); _root.music.stop(); music = new Sound(); music.attachSound('level6'); music.start(); music.onSoundComplete = function () { music.start(); }; missileNum = 0; bNum = 0; _root.health = 100; _root.magic = 100; pauseMC.removeMovieClip(); _root.createEmptyMovieClip('pauseMC', 0); pview._visible = false; pauseMC.onEnterFrame = function () { if (Key.isDown(80)) { if (pausePress == false) { if (_root.pauseMode == false) { _root.pauseMode = true; } else { _root.pauseMode = false; } pausePress = true; } } else { pausePress = false; } if (_root.pauseMode == true) { pview._visible = true; _root.music.setVolume(40); } else { pview._visible = false; _root.music.setVolume(100); } }; } movieClip 3735 { frame 1 { _visible = false; } } movieClip 3736 { } movieClip 3739 { } movieClip 3741 { } movieClip 3765 { } movieClip 3782 { } movieClip 3784 { } movieClip 3785 { } movieClip 3808 { frame 1 { stop(); nhit = false; onEnterFrame = function () {}; } frame 2 { _root.camshake.gotoAndPlay(2); onEnterFrame = function () { if (_root.cm.hitTest(this) && _root.cm.hit == false && nhit == false) { if (_root.cm.invis <= 0) { _root.health -= 6; _root.cm.hit = true; nhit = true; } } }; } } movieClip 3812 { } movieClip 3813 { } movieClip 3846 { } movieClip 3855 { frame 30 { this._parent.kicker.gotoAndPlay(2); } frame 43 { this._parent.kicking = false; } } movieClip 3895 { frame 30 { this._parent.kicker.gotoAndPlay(2); } frame 43 { this._parent.kicking = false; } } movieClip 3919 { frame 25 { ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 100; ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x - 250; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 200; ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x + 250; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 300; } frame 33 { this._parent.missfire = false; } } movieClip 3942 { frame 25 { ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 100; ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x - 250; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 200; ++_root.missileNum; _root.attachMovie('missile', 'missile' + _root.missileNum, _root.missileNum); (eval('_root.missile' + _root.missileNum))._x = _root.cm._x + 250; (eval('_root.missile' + _root.missileNum))._y = _root.cam._y - _root.cam._height / 2 - 300; } frame 33 { this._parent.missfire = false; } } movieClip 3958 { frame 1 { this._parent.rest = false; this._parent.hittable = false; } frame 55 { this._parent.helbreak = false; this._parent.pha = 1; } } movieClip 3961 { } movieClip 3963 { } movieClip 3991 { } movieClip 4003 { frame 17 { this._parent.hittable = true; } frame 153 { this._parent.hittable = false; } frame 173 { this._parent.rest = false; } } movieClip 4007 { } movieClip 4034 { } movieClip 4046 { frame 17 { this._parent.hittable = true; } frame 139 { this._parent.hittable = false; } frame 162 { this._parent.rest = false; } } movieClip 4050 { } movieClip 4093 { } movieClip 4095 { } movieClip 4109 { frame 1 { nu = 0; } frame 84 { _root.gotoEnd.play(); } frame 85 { ++nu; prevFrame(); } } movieClip 4157 { frame 17 { ++_root.missileNum; _root.attachMovie('bomb', 'bomb' + _root.missileNum, _root.missileNum); (eval('_root.bomb' + _root.missileNum))._x = this._parent._x - 135; (eval('_root.bomb' + _root.missileNum))._y = this._parent._y - 190; } frame 32 { this._parent.bombing = false; } } movieClip 4222 { frame 17 { ++_root.missileNum; _root.attachMovie('bomb', 'bomb' + _root.missileNum, _root.missileNum); (eval('_root.bomb' + _root.missileNum))._x = this._parent._x - 135; (eval('_root.bomb' + _root.missileNum))._y = this._parent._y - 190; } frame 33 { ++_root.missileNum; _root.attachMovie('bomb', 'bomb' + _root.missileNum, _root.missileNum); (eval('_root.bomb' + _root.missileNum))._x = this._parent._x - 135; (eval('_root.bomb' + _root.missileNum))._y = this._parent._y - 190; } frame 48 { this._parent.bombing = false; } } movieClip 4237 { frame 19 { stop(); this._parent.shadowMode = true; this._parent.flyAway = false; } } movieClip 4252 { frame 19 { stop(); this._parent.fallBack = false; } } movieClip 4253 { frame 1 { if (!setVars) { var pha = 0; var helbreak = false; var kicking = false; var missfire = false; var totalTilBreak = 2; var timeLeft = totalTilBreak; var maxTimeAtt = 100; var timeBetweenAttacks = 75; var redColor = new Color(this); var rest = false; var standFrame; var kickFrame; var missFrame; var dieFrame; var die = false; var health = 100; var hittable = false; var anum = 0; var hitSound = new Sound(); hitSound.attachSound('punch5'); var bombing = false; var crash = false; var flyAway = false; var shadowMode = false; var fallBack = false; var setVars = true; } var onEnterFrame = function () { if (_root.pauseMode == false) { if (health <= 0) { health = 0; die = true; } if (die == false) { if (pha == 2) { if (kicking == false && bombing == false && missfire == false && crash == false) { if (timeBetweenAttacks >= maxTimeAtt) { attackNum = random(2); if (attackNum == 1) { flyAway = true; } timeLeft -= 1; if (maxTimeAtt > 40) { maxTimeAtt -= 5; timeBetweenAttacks = 0; } } } } if (pha == 0) { if (health <= 66) { helbreak = true; } standFrame = 'stand'; kickFrame = 'kick'; missFrame = 'miss'; restFrame = 'rest'; } if (pha == 1) { if (health <= 33) { pha = 2; } bombFrame = 'bomb'; } else { if (pha == 2) { bombFrame = 'bomb2'; } } if (pha == 1 or pha == 2) { standFrame = 'stand_break'; kickFrame = 'kick_break'; missFrame = 'miss_break'; restFrame = 'rest_break'; } dieFrame = 'die'; if (pha == 1) { if (kicking == false && bombing == false && missfire == false && crash == false) { if (timeBetweenAttacks >= maxTimeAtt) { attackNum = random(2); if (attackNum == 1) { bombing = true; } timeLeft -= 1; if (maxTimeAtt > 40) { maxTimeAtt -= 5; timeBetweenAttacks = 0; } } } } if (totalTilBreak > 5) { totalTilBreak = 5; } if (missfire == false && kicking == false && bombing == false && crash == false) { if (mc == true) { if (totalTilBreak < 5) { ++totalTilBreak; } mc = false; } if (timeLeft <= 0) { timeLeft = totalTilBreak; rest = true; } ++timeBetweenAttacks; } else { mc = true; } if (timeBetweenAttacks >= maxTimeAtt && kicking == false && missfire == false && bombing == false && crash == false) { attackNum = random(2); if (attackNum == 1) { missfire = true; } else { kicking = true; } timeLeft -= 1; if (maxTimeAtt > 40) { maxTimeAtt -= 5; timeBetweenAttacks = 0; } } if (maxTimeAtt < 40) { maxTimeAtt = 40; } if (hittable == true) { if (_root.candy.hitTest(hit)) { _root.candy.ready = false; hitSound.start(); health -= 1; anum = 255; } else { if (_root.cm.g.hit.hitTest(hit)) { hitSound.start(); health -= 3; anum = 255; } } } if (die == false) { if (helbreak == false) { if (rest == false) { if (flyAway == true) { frame = 'fly'; _visible = true; } else { if (shadowMode == true) { _visible = false; _root.shadowPlayer.play(); } else { if (fallBack == true) { _visible = true; frame = 'fallback'; } else { if (kicking == true) { frame = kickFrame; _visible = true; } else { if (missfire == true) { frame = missFrame; _visible = true; } else { if (bombing == true) { frame = bombFrame; _visible = true; } else { frame = standFrame; _visible = true; } } } } } } } else { frame = restFrame; _visible = true; } } else { frame = 'helmet_break'; _visible = true; } } else { frame = dieFrame; _visible = true; } gotoAndStop(frame); stop(); g.play(); } else { if (!ppp) { ppp = true; _root.stopAllSounds(); stopAllSounds(); _root.music.stop(); } gotoAndStop('die'); } redColor.setTransform({'rb': anum}); if (anum > 0) { anum -= 25; } } else { stop(); g.stop(); } }; } } movieClip 4254 { frame 1 { _root.cam.shakeX = 0; _root.cam.shakeY = 0; stop(); } frame 2 { _root.cam.shakeX = 10; _root.cam.shakeY = 10; } frame 3 { _root.cam.shakeX = -10; _root.cam.shakeY = -10; } frame 4 { _root.cam.shakeX = 9; _root.cam.shakeY = 9; } frame 5 { _root.cam.shakeX = 8; _root.cam.shakeY = -8; } frame 6 { _root.cam.shakeX = -7; _root.cam.shakeY = 7; } frame 7 { _root.cam.shakeX = 6; _root.cam.shakeY = 6; } frame 8 { _root.cam.shakeX = 5; _root.cam.shakeY = -5; } frame 9 { _root.cam.shakeX = 4; _root.cam.shakeY = 0; } frame 10 { _root.cam.shakeX = 0; _root.cam.shakeY = 3; } frame 11 { _root.cam.shakeX = -2; _root.cam.shakeY = 2; } frame 12 { _root.cam.shakeX = 1; _root.cam.shakeY = -1; } } movieClip 4256 { } movieClip 4258 { } movieClip 4259 { frame 20 { stop(); } } movieClip 4260 { } movieClip 4262 { frame 1 { stop(); xTar = 0; if (!setVars) { startX = _x; startY = _y; setVars = true; } _x = startX; _y = startY; onEnterFrame = function () {}; } frame 2 { onEnterFrame = function () { if (_root.cm._x > xTar) { xTar += 6; } else { if (_root.cm._x < xTar) { xTar -= 6; } } _x = _x + (xTar - _x) / 10; }; } frame 81 { onEnterFrame = function () {}; } frame 82 { if (_root.cm.hitTest(hitter)) { _root.cm.hit = true; _root.health -= 15; } } frame 82 { _root.camshake.gotoAndPlay(2); } frame 119 { _root.boss.fallBack = true; _root.boss.shadowMode = false; } } movieClip 4264 { frame 1 { _x = _root.cam._x; _y = _root.cam._y; var onEnterFrame = function () { _x = _root.cam._x; _y = _root.cam._y; }; } frame 1 { stop(); } frame 20 { _root.gotoAndStop('end'); stop(); } } frame 14 { _root.stopAllSounds(); _root.music.stop(); stop(); } movieClip 4281 { } movieClip 4282 { } movieClip 4290 { } movieClip 4300 { } movieClip 4395 { } movieClip 4410 { } movieClip 4411 { } movieClip 4418 { } movieClip 4450 { } movieClip 4460 { } movieClip 4468 { } movieClip 4479 { } movieClip 4484 { } movieClip 4489 { } movieClip 4502 { } movieClip 4504 { } movieClip 4535 { } movieClip 4536 { frame 1236 { _root.gotoAndStop(1); } }




http://swfchan.com/6/25269/info.shtml
Created: 23/5 -2019 21:25:28 Last modified: 23/5 -2019 21:25:28 Server time: 13/05 -2024 22:10:28