Frame 1
_quality = "MEDIUM";
Instance of Symbol 48 MovieClip "bar" in Frame 1
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
this._xscale = PercentLoaded;
} else {
_root.play();
}
}
Instance of Symbol 50 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = _root.bar._x + _root.bar._width;
}
Frame 2
gotoAndPlay (6);
Frame 6
bgSound = new Sound(this);
Instance of Symbol 48 MovieClip "bar" in Frame 6
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
this._xscale = PercentLoaded;
} else {
_root.play();
}
}
Instance of Symbol 50 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._x = _root.bar._x + _root.bar._width;
}
Frame 56
stop();
Frame 66
stop();
stop();
Frame 73
gotoAndStop ("menu");
Frame 80
stop();
Frame 87
gotoAndStop ("menu");
Frame 131
bgSound.attachSound("intro");
bgSound.start(0, 99);
SFX = new Sound(this);
Instance of Symbol 157 MovieClip in Frame 132
on (release) {
getURL ("http://www.dfcomics.com", "_blank");
}
Frame 261
gotoAndPlay (262);
Instance of Symbol 172 MovieClip in Frame 262
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
on (release) {
_root.gotoAndPlay(880);
}
Instance of Symbol 225 MovieClip in Frame 355
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
Frame 651
_root._train0.gotoAndPlay(2);
Instance of Symbol 227 MovieClip in Frame 844
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
g = g - 2;
_root.bgSound.setVolume(g);
}
Frame 890
stop();
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.eventNumber = 1;
continue1.onRelease = function () {
gotoAndStop ("continuedTut");
};
Instance of Symbol 388 MovieClip in Frame 891
onClipEvent (load) {
page = 1;
}
onClipEvent (enterFrame) {
this.gotoAndStop(page);
if (page > 6) {
page--;
}
if (page < 1) {
page++;
}
}
Frame 892
gotoAndStop ("practice");
Frame 977
bgSound.attachSound("mountainRuins");
bgSound.start(0, 99);
_root.secret1 = false;
_root.secret2 = false;
_root.secret3 = false;
_root.secret4 = false;
_root.secret5 = false;
_root.secret6 = false;
Instance of Symbol 405 MovieClip "_bg" in Frame 977
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
}
Instance of Symbol 454 MovieClip "_text" in Frame 977
onClipEvent (enterFrame) {
this.stop();
this._x = _root._cam._x - 100;
this._y = _root._cam._y + 100;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
if (_fade == true) {
this._alpha = this._alpha - 5;
}
}
Frame 1041
_root._text._fade = true;
Frame 1101
gotoAndStop ("lowerMount");
Frame 1102
_root._text._fade = false;
Instance of Symbol 454 MovieClip "_text" in Frame 1102
onClipEvent (enterFrame) {
this.gotoAndStop(2);
this._x = _root._cam._x - 100;
this._y = _root._cam._y + 100;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
if (_fade == true) {
this._alpha = this._alpha - 5;
}
}
Frame 1144
_root._text._fade = true;
Frame 1167
gotoAndStop ("mountainMain");
_root._zeke._x = 930;
_root._zeke._y = 700;
Frame 1168
_root._text._fade = false;
Instance of Symbol 471 MovieClip in Frame 1168
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
}
Instance of Symbol 454 MovieClip "_text" in Frame 1168
onClipEvent (enterFrame) {
this.gotoAndStop(3);
this._x = _root._cam._x - 100;
this._y = _root._cam._y + 100;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
if (_fade == true) {
this._alpha = this._alpha - 5;
}
}
Frame 1227
_root._text._fade = true;
Frame 1251
gotoAndStop ("temple");
_root._zeke._x = -700;
_root._zeke._y = 590;
Frame 1252
stop();
_quality = "MEDIUM";
q = 0;
f = -50;
tDepth = -50;
Instance of Symbol 405 MovieClip "_bg" in Frame 1252
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
Instance of Symbol 482 MovieClip in Frame 1252
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret1 = true;
}
if (_root.secret1 == true) {
this._visible = false;
}
}
Instance of Symbol 482 MovieClip in Frame 1252
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret2 = true;
}
if (_root.secret2 == true) {
this._visible = false;
}
}
Instance of Symbol 446 MovieClip "_zeke" in Frame 1252
onClipEvent (load) {
xScale = _xscale;
var xfacing = 1;
var xspeed = 0;
var yfacing = 1;
var yspeed = 0;
var fromArea;
var bTimer = 0;
var moving = true;
var fightChance = 0;
var memX;
var memY;
var pushing = false;
var runSpeed = 9;
var running = false;
gotoAndStop (1252);
}
onClipEvent (enterFrame) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
if ((!Key.isDown(83)) && (!Key.isDown(87))) {
if (yspeed > 0) {
yspeed = yspeed - 1;
} else if (yspeed < 0) {
yspeed = yspeed + 1;
}
}
if (Key.isDown(87)) {
yfacing = -1;
yspeed = yspeed - 1;
}
if (Key.isDown(83)) {
yfacing = 1;
yspeed = yspeed + 1;
}
if (yspeed >= runSpeed) {
yspeed = runSpeed;
}
if (yspeed <= (-runSpeed)) {
yspeed = -runSpeed;
}
if (moving == true) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
onClipEvent (enterFrame) {
this._xscale = xScale * xfacing;
if ((xspeed != 0) or (yspeed != 0)) {
if ((xspeed > 0) and (xfacing < 0)) {
this._side.gotoAndStop(4);
this._front.gotoAndStop(4);
this._back.gotoAndStop(4);
} else if ((xspeed < 0) and (xfacing > 0)) {
this._side.gotoAndStop(4);
this._front.gotoAndStop(4);
this._back.gotoAndStop(4);
} else {
this._side.gotoAndStop(2);
this._front.gotoAndStop(2);
this._back.gotoAndStop(2);
}
} else {
this._side.gotoAndStop(1);
this._front.gotoAndStop(1);
this._back.gotoAndStop(1);
}
if (Key.isDown(65) || (Key.isDown(68))) {
this.gotoAndStop(1);
} else if (Key.isDown(83)) {
this.gotoAndStop("front");
} else if (Key.isDown(87)) {
this.gotoAndStop("back");
}
}
Instance of Symbol 484 MovieClip "_zekeScroll" in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = Math.round(_root._zeke._x);
this._y = Math.round(_root._zeke._y);
}
Instance of Symbol 487 MovieClip "_trans" in Frame 1252
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
Instance of Symbol 489 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = -770;
_root._zeke._y = 580;
_root.bgSound.stop();
_root.bgSound.attachSound("mountainMain");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("mountainMain");
if (_root.savePoint < 2) {
_root.savePoint = 2;
}
}
}
Instance of Symbol 491 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 1) {
_root.eventNumber++;
_root.gotoAndPlay("battle1Start");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 2) {
_root.eventNumber++;
_root.gotoAndPlay("battle2Start");
}
}
}
Instance of Symbol 494 MovieClip "save1" in Frame 1252
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 496 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true) and (_root._zeke.xspeed != 0)) {
_root._zeke.yspeed = Math.round(0.8 * _root._zeke.xspeed);
}
}
Instance of Symbol 498 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true)) {
_root._zeke.yspeed = Math.round(-0.6 * _root._zeke.xspeed);
}
}
Instance of Symbol 500 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true)) {
_root._zeke.yspeed = Math.round(_root._zeke.xspeed);
}
}
Instance of Symbol 174 MovieClip "_cam" in Frame 1252
onClipEvent (enterFrame) {
lowerlimit = 1500;
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
if (this._xscale < 140) {
this._xscale = this._xscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
while ((this._y + this._height) > lowerlimit) {
this._y = this._y - 1;
}
var scrollHit;
if (_root._zekeScroll.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._zekeScroll._x - this._x;
yChange = _root._zekeScroll._y - this._y;
this._x = this._x + Math.round(xChange / 13);
this._y = this._y + Math.round(yChange / 13);
}
}
Instance of Symbol 502 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y++;
}
}
Instance of Symbol 504 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y--;
}
}
Instance of Symbol 504 MovieClip in Frame 1252
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y--;
}
}
Instance of Symbol 482 MovieClip in Frame 1256
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret3 = true;
}
if (_root.secret3 == true) {
this._visible = false;
}
}
Instance of Symbol 482 MovieClip in Frame 1256
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret6 = true;
}
if (_root.secret6 == true) {
this._visible = false;
}
}
Instance of Symbol 519 MovieClip "_toFrontBottom" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = _root._mountainMain._x - 630;
_root._zeke._y = _root._mountainMain._y + 525;
_root._trans.gotoAndPlay(2);
}
}
Instance of Symbol 521 MovieClip "_toFrontMid" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = _root._mountainMain._x - 572;
_root._zeke._y = _root._mountainMain._y + 300;
_root._trans.gotoAndPlay(2);
}
}
Instance of Symbol 523 MovieClip "_toFrontTop" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true)) {
_root._zeke._x = _root._mountainMain._x - 520;
_root._zeke._y = _root._mountainMain._y - 80;
_root._trans.gotoAndPlay(2);
}
}
Instance of Symbol 524 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = 450;
_root._zeke._y = -410;
_root.bgSound.stop();
_root.bgSound.attachSound("mountainRuins");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("lowerMount");
}
}
Instance of Symbol 526 MovieClip "_toBackBottom" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = _root._bottom._x + 350;
_root._zeke._y = _root._bottom._y - 140;
_root._trans.gotoAndPlay(2);
if (_root.savePoint < 3) {
_root.savePoint = 3;
}
}
}
Instance of Symbol 527 MovieClip "_areaShop" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._trans.gotoAndPlay(2);
_root._zeke._x = 275;
_root._zeke._y = 350;
_root.gotoAndStop("shop");
}
}
Instance of Symbol 528 MovieClip "_toBackMid" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = _root._bottom._x + 300;
_root._zeke._y = _root._bottom._y - 450;
_root._trans.gotoAndPlay(2);
}
}
Instance of Symbol 529 MovieClip "_toBackTop" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = 50;
_root._zeke._y = -110;
_root._trans.gotoAndPlay(2);
}
}
Instance of Symbol 524 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = -500;
_root._zeke._y = 360;
_root.bgSound.stop();
_root.bgSound.attachSound("temple");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("cave");
}
}
Instance of Symbol 491 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke)) {
if (_root.eventNumber == 4) {
_root.eventNumber++;
_root.gotoAndStop("mountInt");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 5) {
_root.eventNumber++;
_root.gotoAndPlay("battle4Start");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 3) {
_root.eventNumber++;
_root.gotoAndPlay("battle3Start");
}
}
}
Instance of Symbol 494 MovieClip "save2" in Frame 1256
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 531 MovieClip in Frame 1256
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true) and (_root._zeke.xspeed != 0)) {
_root._zeke.yspeed = Math.round(-0.5 * _root._zeke.xspeed);
}
}
Instance of Symbol 574 MovieClip "eye" in Frame 1260
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 600 MovieClip "shopWindow" in Frame 1260
onClipEvent (load) {
this._alpha = 0;
beenHere = false;
}
onClipEvent (enterFrame) {
if (beenHere == true) {
gotoAndStop (1253);
}
this._x = _root._cam._x;
this._y = _root._cam._y;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
}
Instance of Symbol 602 MovieClip "_toMountainMain" in Frame 1260
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._trans.gotoAndPlay(2);
_root._zeke._x = 1415;
_root._zeke._y = 570;
_root.gotoAndStop("mountainMain");
}
}
Instance of Symbol 604 MovieClip in Frame 1260
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
if (_root.shopWindow._alpha < 100) {
_root.shopWindow._alpha = _root.shopWindow._alpha + 10;
}
} else if (_root.shopWindow._alpha > 0) {
_root.shopWindow._alpha = _root.shopWindow._alpha - 10;
}
}
Instance of Symbol 504 MovieClip in Frame 1260
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y++;
}
}
Instance of Symbol 504 MovieClip in Frame 1260
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._x++;
}
}
Instance of Symbol 504 MovieClip in Frame 1260
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._x--;
}
}
Frame 1264
onEnterFrame = function () {
if (_root._water.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
q++;
if (q == 3) {
_root.newObject = _root.attachMovie("splash", "newSplash" + f, f++);
_root.newObject._x = _root._zeke._x;
_root.newObject._y = _root._zeke._y;
_root.newObject._xscale = 10;
_root.newObject._yscale = 10;
_root.newObject._alpha = random(100) + 10;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 2;
this._xscale = this._xscale + 8;
this._yscale = this._yscale + 8;
if (this._alpha < 1) {
this.removeMovieClip();
}
};
q = 0;
if (f > -1) {
f = -50;
}
}
}
}
};
Instance of Symbol 482 MovieClip in Frame 1264
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret4 = true;
}
if (_root.secret4 == true) {
this._visible = false;
}
}
Instance of Symbol 619 MovieClip "_water" in Frame 1264
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 524 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = -220;
_root._zeke._y = -100;
_root.bgSound.stop();
_root.bgSound.attachSound("mountainMain");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("mountainMain");
}
}
Instance of Symbol 524 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = -820;
_root._zeke._y = 570;
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("temple");
if (_root.savePoint < 4) {
_root.savePoint = 4;
}
}
}
Instance of Symbol 624 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true) and (_root._zeke.xspeed != 0)) {
_root._zeke.yspeed = Math.round(0.93 * _root._zeke.xspeed);
}
}
Instance of Symbol 504 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._x--;
}
}
Instance of Symbol 504 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._x++;
}
}
Instance of Symbol 504 MovieClip in Frame 1264
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y--;
}
}
Frame 1268
onEnterFrame = function () {
q++;
if (q == 3) {
whichThing = random(5);
_root.newObject2 = _root.attachMovie("thingum" + whichThing, ("newThingum" + whichThing) + tDepth, tDepth++);
_root.newObject2._x = (_root._cam._x - 650) + random(650);
_root.newObject2._y = (_root._cam._y + 300) - random(600);
_root.newObject2.xSpeed = random(30) + 8;
_root.newObject2.ySpeed = random(20) - 8;
_root.newObject2._xscale = random(70) + 30;
_root.newObject2._yscale = _root.newObject2._xscale;
_root.newObject2._alpha = random(30);
_root.newObject2.onEnterFrame = function () {
if (this._alpha < 65) {
this._alpha = this._alpha + 15;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if ((this._x > (_root._cam._x + 500)) or (this._y > (_root._cam._y + 400))) {
this.removeMovieClip();
}
};
q = 0;
if (tDepth > -1) {
tDepth = -50;
}
}
};
Instance of Symbol 471 MovieClip in Frame 1268
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
Instance of Symbol 482 MovieClip in Frame 1268
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root.secret5 = true;
}
if (_root.secret5 == true) {
this._visible = false;
}
}
Instance of Symbol 524 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = 1300;
_root._zeke._y = -36;
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("cave");
}
}
Instance of Symbol 524 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = -1270;
_root._zeke._y = 230;
_root.bgSound.stop();
_root.bgSound.attachSound("temple2");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("temple2");
if (_root.savePoint < 4) {
_root.savePoint = 4;
}
}
}
Instance of Symbol 491 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke)) {
if (_root.eventNumber == 6) {
_root.eventNumber++;
_root.gotoAndStop("templeInt");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 7) {
_root.eventNumber++;
_root.gotoAndPlay("battle5Start");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber == 8) {
_root.eventNumber++;
_root.gotoAndPlay("battle6Start");
}
}
}
Instance of Symbol 494 MovieClip "save3" in Frame 1268
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 626 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll._x, _root._zekeScroll._y, true) and (_root._zeke.xspeed != 0)) {
_root._zeke.yspeed = Math.round(-0.9 * _root._zeke.xspeed);
}
}
Instance of Symbol 504 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y--;
}
}
Instance of Symbol 504 MovieClip in Frame 1268
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._cam)) {
_root._cam._y--;
}
}
Frame 1272
onEnterFrame = function () {
q++;
if (q == 3) {
whichThing = random(5);
_root.newObject2 = _root.attachMovie("thingum" + whichThing, ("newThingum" + whichThing) + tDepth, tDepth++);
_root.newObject2._x = (_root._cam._x - 650) + random(650);
_root.newObject2._y = (_root._cam._y + 300) - random(600);
_root.newObject2.xSpeed = random(30) + 8;
_root.newObject2.ySpeed = random(20) - 8;
_root.newObject2._xscale = random(70) + 30;
_root.newObject2._yscale = _root.newObject2._xscale;
_root.newObject2._alpha = random(30);
_root.newObject2.onEnterFrame = function () {
if (this._alpha < 65) {
this._alpha = this._alpha + 15;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if ((this._x > (_root._cam._x + 500)) or (this._y > (_root._cam._y + 400))) {
this.removeMovieClip();
}
};
q = 0;
if (tDepth > -1) {
tDepth = -50;
}
}
};
Instance of Symbol 646 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = _root._zeke._y;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 662 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = _root._zeke._y;
}
if (this._x < _root._zeke._x) {
this.gotoAndStop(2);
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 651 MovieClip in Frame 1272
onClipEvent (load) {
hit = false;
factor = 30 - random(60);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
hit = true;
} else if (hit == false) {
this._y = ((_root._zeke._y - (this._x - _root._zeke._x)) + (this._width / 2)) + factor;
}
}
Instance of Symbol 524 MovieClip in Frame 1272
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zekeScroll)) {
_root._zeke._x = 1750;
_root._zeke._y = -850;
_root.bgSound.stop();
_root.bgSound.attachSound("temple");
_root.bgSound.start(0, 99);
_root._trans.gotoAndPlay(2);
_root.gotoAndStop("temple");
}
}
Instance of Symbol 491 MovieClip in Frame 1272
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root.eventNumber > 7) {
_root.eventNumber++;
_root.gotoAndPlay("battle7Start");
}
}
}
Instance of Symbol 491 MovieClip in Frame 1272
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root.gotoAndPlay("bossStart");
}
}
Frame 1289
gotoAndPlay ("battle1Scene");
Frame 1292
gotoAndPlay ("battle2");
Frame 1296
gotoAndPlay ("battle3");
Frame 1299
gotoAndPlay ("battle4");
Frame 1305
gotoAndPlay ("battle5Scene");
Frame 1310
gotoAndPlay ("battle6");
Frame 1315
gotoAndPlay ("battle7");
Frame 1320
gotoAndPlay ("mountIntro");
Frame 1325
gotoAndPlay ("templeIntro");
Frame 1331
gotoAndPlay (1762);
Frame 1340
gotoAndPlay (1252);
Frame 1352
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
onEnterFrame = function () {
if ((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) {
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
}
if ((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 671 MovieClip in Frame 1352
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
if (_root["_targetMC" + i].hitTimer == 1) {
_root.SFX.attachSound("gotHit");
_root.SFX.setVolume(70);
_root.SFX.start(0, 1);
}
i++;
}
}
Instance of Symbol 405 MovieClip "_bg" in Frame 1352
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y - 150;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 679 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 683 MovieClip "level" in Frame 1352
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 692 MovieClip "_targetFP3" in Frame 1352
onClipEvent (load) {
this.gotoAndStop(2);
HP = 80;
totalHP = 80;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 692 MovieClip "_targetMC3" in Frame 1352
onClipEvent (load) {
AP = 25;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if (_root.turnOrder == this.turn) {
if (this.AP > 0) {
this.AP--;
} else {
if (partner.dead == false) {
this.AP = 25;
}
_root.turnOrder = this.turn + 1;
}
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 692 MovieClip "_targetMC1" in Frame 1352
onClipEvent (load) {
AP = 25;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if (_root.turnOrder == this.turn) {
if (this.AP > 0) {
this.AP--;
} else {
if (partner.dead == false) {
this.AP = 25;
}
_root.turnOrder = this.turn + 1;
}
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 692 MovieClip "_targetMC2" in Frame 1352
onClipEvent (load) {
AP = 25;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if (_root.turnOrder == this.turn) {
if (this.AP > 0) {
this.AP--;
} else {
if (partner.dead == false) {
this.AP = 25;
}
_root.turnOrder = this.turn + 1;
}
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 692 MovieClip "_targetFP1" in Frame 1352
onClipEvent (load) {
this.gotoAndStop(2);
HP = 80;
totalHP = 80;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 692 MovieClip "_targetFP2" in Frame 1352
onClipEvent (load) {
this.gotoAndStop(2);
HP = 80;
totalHP = 80;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1352
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1352
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1352
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1352
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1352
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1352
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1352
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1352
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 3;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1352
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 487 MovieClip "_trans" in Frame 1352
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 803 MovieClip in Frame 1352
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 806 MovieClip in Frame 1352
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1352
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1352
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Instance of Symbol 174 MovieClip "_camB" in Frame 1352
onClipEvent (load) {
e = 8;
}
onClipEvent (enterFrame) {
var scrollHit;
if (_root._scrollB.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._scrollB._x - this._x;
yChange = _root._scrollB._y - this._y;
this._x = this._x + Math.round(xChange / 8);
this._y = this._y + Math.round(yChange / 12);
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (((_root._zekeB.xspeed != 0) or (_root._zekeB.yspeed != 0)) or (_root._zekeB.charge > 0)) {
if (this._xscale < 160) {
this._xscale = this._xscale + ((Math.abs(_root._zekeB.xspeed) + Math.abs(_root._zekeB.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zekeB.xspeed) + Math.abs(_root._zekeB.yspeed)) / 5);
this._xscale = this._xscale + (_root._zekeB.charge * 8);
this._yscale = this._yscale + (_root._zekeB.charge * 8);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
} else {
camMove = 0;
}
if (_root.charHunk == true) {
if (this._xscale > 100) {
this._xscale--;
this._yscale--;
}
}
} else {
this._xscale = 120;
this._yscale = 120;
}
s = 0;
while (s < 10) {
if (_root["_targetMC" + s].hit == true) {
if (e > 0) {
e--;
}
this._x = this._x + ((random(14) - 7) * e);
this._y = this._y + ((random(14) - 7) * e);
}
if (_root["_targetMC" + s].hitTimer == 1) {
e = 8;
}
s++;
}
if (_root._bang.boom == true) {
this._x = this._x + (((random(14) - 7) * (20 - _root._bang.boomTimer)) / 1.7);
this._y = this._y + (((random(14) - 7) * (20 - _root._bang.boomTimer)) / 1.7);
}
}
Frame 1357
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 815 MovieClip in Frame 1357
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1357
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1359
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 20;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 405 MovieClip "_bg" in Frame 1359
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y - 150;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 681 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 679 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 826 MovieClip "level" in Frame 1359
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1359
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 851 MovieClip "_targetFP4" in Frame 1359
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC4;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP3" in Frame 1359
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP2" in Frame 1359
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP1" in Frame 1359
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 871 MovieClip "_targetMC1" in Frame 1359
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC2" in Frame 1359
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC3" in Frame 1359
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC4" in Frame 1359
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 4;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1359
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1359
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1359
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 4;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if ((((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) and (_root._targetFP4.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 297 MovieClip in Frame 1359
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1359
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1359
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1359
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1359
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 803 MovieClip in Frame 1359
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 877 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.turn == 2) {
this._visible = true;
} else {
this._visible = false;
}
this._x = _root._camB._x + (_root._camB._width * 0.1);
this._y = _root._camB._y + (_root._camB._height * 0.26);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1359
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1359
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1364
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 878 MovieClip in Frame 1364
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1364
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1366
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 405 MovieClip "_bg" in Frame 1366
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y - 150;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 681 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 679 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 826 MovieClip "level" in Frame 1366
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1366
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 851 MovieClip "_targetFP4" in Frame 1366
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC4;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP3" in Frame 1366
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP2" in Frame 1366
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP1" in Frame 1366
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP5" in Frame 1366
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC5;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 871 MovieClip "_targetMC5" in Frame 1366
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 5;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC1" in Frame 1366
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC2" in Frame 1366
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC3" in Frame 1366
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC4" in Frame 1366
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 4;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1366
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 5;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (((((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) and (_root._targetFP4.dead == true)) and (_root._targetFP5.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1366
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1366
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1366
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1366
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1366
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1366
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1366
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1366
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1366
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1366
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1371
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 879 MovieClip in Frame 1371
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1371
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Frame 1373
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 405 MovieClip "_bg" in Frame 1373
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y - 150;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 679 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 683 MovieClip "level" in Frame 1373
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1373
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 851 MovieClip "_targetFP1" in Frame 1373
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 888 MovieClip "_targetFP3" in Frame 1373
onClipEvent (load) {
this.gotoAndStop(1);
HP = 700;
totalHP = 700;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP2" in Frame 1373
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 871 MovieClip "_targetMC1" in Frame 1373
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 916 MovieClip "_targetMC3" in Frame 1373
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 500;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 60;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 50)) and (this._x > (attackX - 50))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 65)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 51) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 45) and (attackTimer < 52)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 65) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
}
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC2" in Frame 1373
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1373
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 3;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1373
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1373
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1373
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1373
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1373
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1373
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1373
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1373
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 919 MovieClip in Frame 1373
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1373
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1373
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1378
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 920 MovieClip in Frame 1378
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1378
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1380
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 405 MovieClip "_bg" in Frame 1380
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y - 150;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 679 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 683 MovieClip "level" in Frame 1380
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1380
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 851 MovieClip "_targetFP2" in Frame 1380
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 888 MovieClip "_targetFP4" in Frame 1380
onClipEvent (load) {
this.gotoAndStop(1);
HP = 700;
totalHP = 700;
partner = _root._targetMC4;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 888 MovieClip "_targetFP3" in Frame 1380
onClipEvent (load) {
this.gotoAndStop(1);
HP = 700;
totalHP = 700;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 851 MovieClip "_targetFP1" in Frame 1380
onClipEvent (load) {
this.gotoAndStop(1);
HP = 150;
totalHP = 150;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.dead == false) {
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 916 MovieClip "_targetMC3" in Frame 1380
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 500;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 60;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 50)) and (this._x > (attackX - 50))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 65)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 51) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 45) and (attackTimer < 52)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 65) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
}
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC1" in Frame 1380
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 916 MovieClip "_targetMC4" in Frame 1380
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 4;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 500;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 60;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 50)) and (this._x > (attackX - 50))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 65)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 51) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 45) and (attackTimer < 52)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 65) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
}
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 871 MovieClip "_targetMC2" in Frame 1380
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 400;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 40;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 10);
if ((this._x < (attackX - 5)) or (this._x > (attackX + 5))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 5)) and (this._x > (attackX - 5))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 30)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 10) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 7) and (attackTimer < 11)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 30) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 10);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1380
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 4;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if ((((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) and (_root._targetFP4.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1380
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1380
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1380
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1380
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1380
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1380
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1380
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1380
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1380
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1380
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1385
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 921 MovieClip in Frame 1385
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1385
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1387
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 471 MovieClip in Frame 1387
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 679 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 930 MovieClip "level" in Frame 1387
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 957 MovieClip "_targetFP1" in Frame 1387
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 957 MovieClip "_targetFP2" in Frame 1387
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1387
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC3" in Frame 1387
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 957 MovieClip "_targetFP3" in Frame 1387
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 1017 MovieClip "_targetMC1" in Frame 1387
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC2" in Frame 1387
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1387
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 3;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1387
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1387
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1387
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1387
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1387
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1387
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1387
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1387
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1387
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1387
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1392
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 1018 MovieClip in Frame 1392
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1392
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1394
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("battleTheme");
_root.bgSound.start(0, 99);
Instance of Symbol 471 MovieClip in Frame 1394
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 679 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 930 MovieClip "level" in Frame 1394
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 957 MovieClip "_targetFP5" in Frame 1394
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC5;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 957 MovieClip "_targetFP4" in Frame 1394
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC4;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 957 MovieClip "_targetFP2" in Frame 1394
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1394
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 957 MovieClip "_targetFP3" in Frame 1394
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC3;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 957 MovieClip "_targetFP1" in Frame 1394
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 1017 MovieClip "_targetMC1" in Frame 1394
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC5" in Frame 1394
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 5;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC4" in Frame 1394
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 4;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC2" in Frame 1394
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC3" in Frame 1394
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 3;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1394
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 5;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (((((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) and (_root._targetFP3.dead == true)) and (_root._targetFP4.dead == true)) and (_root._targetFP5.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1394
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1394
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1394
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1394
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1394
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1394
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1394
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1394
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1394
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1394
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1399
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 1019 MovieClip in Frame 1399
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Instance of Symbol 819 MovieClip in Frame 1399
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1401
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
_root.bgSound.setVolume(100);
Instance of Symbol 471 MovieClip in Frame 1401
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 679 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 930 MovieClip "level" in Frame 1401
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1401
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 957 MovieClip "_targetFP1" in Frame 1401
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 957 MovieClip "_targetFP2" in Frame 1401
onClipEvent (load) {
this.gotoAndStop(1);
HP = 300;
totalHP = 300;
partner = _root._targetMC2;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 1017 MovieClip "_targetMC2" in Frame 1401
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 2;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 1017 MovieClip "_targetMC1" in Frame 1401
onClipEvent (load) {
xOrigin = this._x;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 200;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 55;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX - 50)) or (this._x > (attackX + 50))) {
this.gotoAndStop("moving");
}
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
if ((attackTimer > 0) and (attackTimer < 20)) {
this.gotoAndStop("attacking");
}
if (attackTimer == 7) {
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 1) and (attackTimer < 8)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 20) {
this.gotoAndStop("moving");
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
if (this._x < xOrigin) {
this._xscale = -xScale;
} else {
this._xscale = xScale;
}
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 40)) and (this._x > (xOrigin - 40))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
if (hit == false) {
this.gotoAndStop(1);
} else if (hit == true) {
this.gotoAndStop(2);
}
} else if (partner.dead == true) {
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1401
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1401
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 2;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if ((_root._targetFP1.dead == true) and (_root._targetFP2.dead == true)) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 297 MovieClip in Frame 1401
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1401
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1401
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1401
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1401
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1401
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 803 MovieClip in Frame 1401
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1401
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1401
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1406
stop();
onEnterFrame = function () {
removeMovieClip(_root.newExplosion);
};
Instance of Symbol 1021 MovieClip in Frame 1406
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Frame 1408
stop();
sCount = 100;
_root.turn = 1;
_root.turnOrder = 0;
hunkPower = 25;
_root.charZeke == true;
_root.turnDone = false;
_root.turnTimer = 0;
onEnterFrame = function () {
if (((_root._zekeB.AP < 1) and (_root._hunk.AP < 1)) and (_root.turnDone == false)) {
_root.turnTimer++;
if (_root.turnTimer > 5) {
_root.turnDone = true;
_root.charHunk = false;
_root.charZeke = false;
_root.turn = 2;
_root._zekeB.AP = 6;
_root._hunk.AP = 6;
_root.turnTimer = 0;
}
}
if (((_root._zekeB.charge > 0.2) and (_root._zekeB.charging == false)) and (_root.turn == 1)) {
_root.newObject = _root.attachMovie("smoke", "newSmoke" + sCount, sCount++);
_root.newObject._x = _root._wormMain._x - (100 * _root._zekeB.xfacing);
_root.newObject._y = (_root._wormMain._y + random(60)) - 30;
_root.newObject._xscale = 20;
_root.newObject._yscale = 20;
_root.newObject.onEnterFrame = function () {
this._alpha = this._alpha - 3;
this._xscale = this._xscale + ((250 - this._xscale) / 4);
this._yscale = this._yscale + ((250 - this._yscale) / 4);
if (this._alpha < 1) {
this.removeMovieClip();
}
};
if (sCount > 150) {
sCount = 100;
}
}
};
Instance of Symbol 471 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 679 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x + 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._x = _root._zekeB._x - 1;
}
}
Instance of Symbol 679 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root._zekeB)) {
_root._zekeB._y = _root._zekeB._y + 1;
}
}
Instance of Symbol 681 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y < this._y) {
_root._hunk._y++;
}
}
Instance of Symbol 681 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._y > this._y) {
_root._hunk._y--;
}
}
Instance of Symbol 681 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x > this._x) {
_root._hunk._x--;
}
}
Instance of Symbol 681 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (_root._hunk._x < this._x) {
_root._hunk._x++;
}
}
Instance of Symbol 930 MovieClip "level" in Frame 1408
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1034 MovieClip in Frame 1408
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._targetMC1._x + (_parent._daButt._x * 3)) / 4;
averageY = (_parent._targetMC1._y + (_parent._daButt._y * 3)) / 4;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1035 MovieClip in Frame 1408
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._targetMC1._x + _parent._daButt._x) / 2;
averageY = (_parent._targetMC1._y + _parent._daButt._y) / 2;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1035 MovieClip in Frame 1408
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = ((_parent._targetMC1._x * 3) + _parent._daButt._x) / 4;
averageY = ((_parent._targetMC1._y * 3) + _parent._daButt._y) / 4;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1037 MovieClip in Frame 1408
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (((_parent._targetMC1._x * 5) + _parent._daButt._x) / 6) - 40;
averageY = (((_parent._targetMC1._y * 5) + _parent._daButt._y) / 6) - 30;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1035 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._x = this._x - ((this._x - _parent._targetFP1._x) / 8);
this._y = this._y - ((this._y - _parent._targetFP1._y) / 8);
}
Instance of Symbol 1037 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._x = this._x - ((this._x - _root._targetFP1._x) / 4);
this._y = this._y - ((this._y - _root._targetFP1._y) / 4);
}
Instance of Symbol 1052 MovieClip "_targetFP1" in Frame 1408
onClipEvent (load) {
ranX = 0;
ranY = 0;
xOrigin = this._x;
yOrigin = this._y;
ranTimer = 10;
this.gotoAndStop(1);
HP = 45000;
totalHP = 45000;
partner = _root._targetMC1;
dead = false;
bomb = false;
hitTimer = 0;
aniHit = false;
aniTimer = 0;
}
onClipEvent (enterFrame) {
ranTimer--;
if (ranTimer == 0) {
ranX = (xOrigin - random(70)) + 140;
ranY = (yOrigin - random(70)) + 140;
ranTimer = random(15) + 3;
}
this._x = this._x - ((this._x - ranX) / 7);
this._y = this._y - ((this._y - ranY) / 7);
if (hitTimer == 1) {
hitTimer = 0;
}
if (this.bomb == true) {
this._bullet._alpha = 100;
partner._bullet._alpha = 100;
} else {
this._bullet._alpha = 0;
partner._bullet._alpha = 0;
}
if (this.hitTest(_root._hunk._x, _root._hunk._y, true)) {
if ((_root.charHunk == true) and (_root._hunk.shotTimer == 1)) {
aniHit = true;
if (_root._hunk.ammoType == 1) {
this.HP = this.HP - (random(_root.hunkPower / 2) + _root.hunkPower);
hitTimer++;
} else {
this.HP = this.HP - (_root.hunkPower / 3);
this.bomb = true;
}
}
}
if (aniHit == true) {
aniTimer++;
if (aniTimer < 12) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (aniTimer > 12) {
aniHit = false;
}
}
if ((this.HP < 1) or (partner.HP < 1)) {
dead = true;
this.gotoAndStop("dead");
partner.gotoAndStop("dead");
}
}
Instance of Symbol 694 MovieClip "_bang" in Frame 1408
onClipEvent (load) {
this._visible = false;
boomTimer = 0;
boom = false;
}
onClipEvent (enterFrame) {
if (boom == true) {
boomTimer++;
if (boomTimer == 20) {
removeMovieClip(_root.newExplosion);
boomTimer = 0;
boom = false;
}
}
}
Instance of Symbol 1078 MovieClip "_targetMC1" in Frame 1408
onClipEvent (load) {
xOrigin = this._x;
yOrigin = this._y;
ranX = 0;
ranY = 0;
ranTimer = 10;
newAX = 0;
newAY = 0;
xScale = this._xscale;
stop();
AP = 5;
turn = 1;
stop();
partner = _root["_targetFP" + turn];
hit = false;
hitTimer = 0;
attackTimer = 0;
attacked = _root._zekeB;
who = 0;
attack = false;
attackDistance = 10;
attackX = 0;
chosen = false;
decided = false;
glitchTimer = 0;
strength = 70;
alreadyAttacked = false;
}
onClipEvent (enterFrame) {
this.totalHP = partner.totalHP;
this.HP = partner.HP;
if ((_root.turnOrder == this.turn) and (partner.dead == false)) {
if (this.AP > 0) {
glitchTimer++;
if (glitchTimer > 500) {
this.AP = 0;
glitchTimer = 0;
}
attack = true;
if (attack == true) {
if (chosen == false) {
chosen = true;
who = random(2) + 1;
}
if (decided == false) {
if (who == 1) {
if ((_root._zekeB.dead == true) and (attackTimer == 0)) {
attacked = _root._hunkB;
decided = true;
} else {
attacked = _root._zekeB;
decided = true;
}
}
if (who == 2) {
if ((_root._hunkB.dead == true) and (attackTimer == 0)) {
attacked = _root._zekeB;
decided = true;
} else {
attacked = _root._hunkB;
decided = true;
}
}
}
if (this._x > attacked._x) {
attackX = Math.round(this.attacked._x + attackDistance);
_xscale = xScale;
} else if (this._x < attacked._x) {
_xscale = (-xScale);
attackX = Math.round(this.attacked._x - attackDistance);
}
this._x = this._x - ((this._x - attackX) / 9);
if ((this._x < (attackX + 40)) and (this._x > (attackX - 40))) {
attackTimer++;
this.newAY = this.attacked._y - 500;
if ((attackTimer > 0) and (attackTimer < 35)) {
this._y = this._y - ((this._y - newAY) / 6);
} else if (attackTimer > 35) {
if (this._y < this.attacked._y) {
this._y = this._y + 170;
}
}
if (attackTimer == 38) {
_root.SFX.attachSound("gotHit");
_root.SFX.setVolume(70);
_root.SFX.start(0, 1);
if (this.attacked.dodge == false) {
this.attacked.hit = true;
this.attacked.HP = this.attacked.HP - this.strength;
this.attacked.partner.HP = this.attacked.partner.HP - this.strength;
}
} else {
this.attacked.hit = false;
}
if ((attackTimer > 32) and (attackTimer < 39)) {
this.attacked.dodgeOK = true;
}
}
if (attackTimer > 60) {
AP = AP - 5;
attackTimer = 0;
}
}
} else if (AP <= 0) {
decided = false;
this._x = this._x - ((this._x - xOrigin) / 9);
if ((this._x < (xOrigin + 3)) and (this._x > (xOrigin - 3))) {
if (partner.dead == false) {
this.AP = 5;
}
chosen = false;
this.gotoAndStop(1);
_root.turnOrder = this.turn + 1;
}
}
} else if ((_root.turnOrder == this.turn) and (partner.dead == true)) {
_root.turnOrder = this.turn + 1;
}
if ((_root.turn == 1) and (partner.dead == false)) {
ranTimer--;
if (ranTimer == 0) {
ranX = (xOrigin - random(70)) + 140;
ranY = (yOrigin - random(70)) + 140;
ranTimer = random(15) + 3;
}
this._x = this._x - ((this._x - ranX) / 7);
this._y = this._y - ((this._y - ranY) / 7);
}
if (partner.dead == false) {
poop = 0;
while (poop < 10) {
if ((this.hitTest(_root._zekeB["_attack" + poop]._hitter) and (hit == false)) and (_root.charZeke == true)) {
if (partner.bomb == false) {
partner.HP = partner.HP - ((random(10) + 30) + _root._zekeB.power);
hit = true;
} else {
partner.bomb = false;
_root.attachMovie("explosion", "newExplosion", 200);
_root.newExplosion._x = this._x;
_root.newExplosion._y = this._y;
_root._bang.boom = true;
partner.HP = partner.HP - (5 * ((random(10) + 30) + _root._zekeB.power));
}
}
poop++;
}
if (hit == true) {
hitTimer++;
if (hitTimer == 15) {
hitTimer = 0;
hit = false;
}
}
} else {
this.hitTimer = 0;
}
if (this.hitTest(_root.newExplosion)) {
if (_root._bang.boomTimer == 1) {
partner.HP = partner.HP - (random(10) + 50);
}
}
}
Instance of Symbol 778 MovieClip "_scrollB" in Frame 1408
onClipEvent (load) {
this._visible = false;
_root._hunkReady = false;
vTimer = 0;
enemies = 1;
}
onClipEvent (enterFrame) {
if ((_root._hunkB.dead == true) and (_root._zekeB.dead == true)) {
_root.gotoAndStop("gameOver");
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
this._x = _root._zekeB._x;
this._y = _root._zekeB._y;
} else if (_root.charHunk == true) {
_root._hunkTimer++;
this._x = _root._hunk._x;
this._y = _root._hunk._y;
}
} else {
if (_root.turnOrder == 0) {
_root.turnOrder = 1;
}
if (_root["_targetMC" + _root.turnOrder].AP > 0) {
this._x = (_root["_targetMC" + _root.turnOrder]._x + _root["_targetMC" + _root.turnOrder].attacked._x) / 2;
} else {
this._x = _root["_targetMC" + _root.turnOrder]._x;
}
this._y = _root["_targetMC" + _root.turnOrder]._y;
if (_root.turnOrder == (enemies + 1)) {
_root.turnDone = false;
if (_root._zekeB.dead == true) {
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.charHunk = false;
_root.charZeke = true;
}
_root.turn = 1;
_root.turnOrder = 0;
}
}
if (_root._hunkTimer > 20) {
_root._hunkTimer = 20;
_root._hunkReady = true;
} else if (_root._hunkTimer < 20) {
_root._hunkReady = false;
}
if (_root._targetFP1.dead == true) {
vTimer++;
if (vTimer == 60) {
_root.play();
}
}
}
Instance of Symbol 768 MovieClip "_zekeB" in Frame 1408
onClipEvent (load) {
this.stop();
var xfacing = 1;
var xspeed = 0;
var yspeed = 0;
var runSpeed = 15;
HP = 150;
oHP = 150;
dead = false;
var jump = false;
var charging = false;
var g = 0;
var charge = 0;
var recover = 0;
var mouse = false;
var chargeAnim = false;
wait = false;
waitTimer = 0;
var attack = false;
var attackT = "none";
var attackTimer = 0;
var attackOK = true;
var dodge = false;
var dodgeTimer = 0;
var dodgeOK = false;
var hit = false;
var dodged = false;
timer = 0;
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
xMouse = _root._xmouse;
yMouse = _root._ymouse;
xDis = this._x - xMouse;
yDis = this._y - yMouse;
}
onClipEvent (enterFrame) {
if (this.HP < 0) {
this.dead = true;
}
while (_root.level.hitTest(this._x, this._y, true)) {
this._y = this._y - 1;
}
this._y = this._y + (15 + g);
g = g + 2;
if (g > 50) {
g = 50;
}
if (_root.level.hitTest(this._x, this._y, true)) {
g = 0;
jump = false;
}
if (_root.turn == 1) {
if (_root.charZeke == true) {
if (this.dead == false) {
if (((Key.isDown(32) and (attack == false)) and (attackOK == true)) and (wait == false)) {
if ((charging == true) and (charge < 0.1)) {
} else {
attack = true;
}
}
if (attack == true) {
attackTimer++;
if (attackTimer == 8) {
}
if (attackTimer > 14) {
attack = false;
attackTimer = 0;
}
}
if (Key.isDown(87)) {
jump = true;
}
if (attack == false) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
if (xspeed > 0) {
xspeed = xspeed - 1;
} else if (xspeed < 0) {
xspeed = xspeed + 1;
}
}
if (Key.isDown(65)) {
xfacing = -1;
xspeed = xspeed - 1;
}
if (Key.isDown(68)) {
xfacing = 1;
xspeed = xspeed + 1;
}
}
if (xspeed >= runSpeed) {
xspeed = runSpeed;
}
if (xspeed <= (-runSpeed)) {
xspeed = -runSpeed;
}
this._x = this._x + xspeed;
this._xscale = 100 * xfacing;
if (chargeAnim == true) {
attackT = "charging";
this.gotoAndStop("charge");
} else if (((xspeed != 0) and (jump == false)) and (chargeAnim == false)) {
if (attack == false) {
attackT = "running";
}
if (attack == false) {
if ((xspeed > 0) and (xfacing > 0)) {
this.gotoAndStop(2);
} else if ((xspeed > 0) and (xfacing < 0)) {
this.gotoAndStop(3);
}
if ((xspeed < 0) and (xfacing < 0)) {
this.gotoAndStop(2);
} else if ((xspeed < 0) and (xfacing > 0)) {
this.gotoAndStop(3);
}
}
} else if (jump == true) {
if (attack == false) {
this.gotoAndStop("jump");
}
attackT = "jumping";
} else if (attack == false) {
this.gotoAndStop(1);
attackT = "standing";
}
if (attack == true) {
wait = true;
if (attackT == "standing") {
this.power = 0;
this.gotoAndStop("attackStanding");
} else if (attackT == "running") {
this.power = 0;
this.gotoAndStop("attackRunning");
} else if (attackT == "jumping") {
this.power = 4;
this.gotoAndStop("attackJumping");
} else if (attackT == "charging") {
this.power = 6;
this.gotoAndStop("attackCharging");
}
}
if (wait == true) {
waitTimer++;
if (waitTimer > 9) {
wait = false;
waitTimer = 0;
}
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
attackTimer = 0;
}
if (dead == false) {
if (jump == true) {
this._y = this._y - 40;
}
if (_root.charZeke == true) {
if ((mouse == true) and (recover == 0)) {
charging = true;
} else {
charging = false;
}
}
if (charging == true) {
charge = charge + 0.1;
if (charge > 1) {
charge = 1;
}
}
if ((charging != true) and (charge > 0)) {
this._x = this._x - ((0.3 * charge) * xDis);
this._y = this._y - ((0.3 * charge) * yDis);
charge = charge - 0.1;
recover = 12;
chargeAnim = true;
} else {
chargeAnim = false;
}
if (recover > 0) {
recover = recover - 1;
}
} else {
this.gotoAndStop("dead");
}
} else {
attack = false;
if (dead == false) {
if (dodge == false) {
this.gotoAndStop(1);
}
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
dodged = true;
}
if (dodge == true) {
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 24) {
dodged = false;
timer = 0;
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 297 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 300 MovieClip "_wormMain" in Frame 1408
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
this._xscale = (_root._zekeB.charge * 100) + 40;
this._yscale = (_root._zekeB.charge * 100) + 40;
}
Instance of Symbol 297 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._y = _root._zekeB._y - 77;
this._x = _root._zekeB._x - (20 * _root._zekeB.xfacing);
}
Instance of Symbol 774 MovieClip "_wormHead" in Frame 1408
onClipEvent (load) {
this.stop();
k = 0;
zeke = _root._zekeB;
}
onClipEvent (enterFrame) {
this._xscale = 100 * zeke.xfacing;
this._x = zeke._x - (20 * zeke.xfacing);
this._y = zeke._y - 78;
if ((zeke.charge > 0.3) and (zeke.charging == true)) {
this.gotoAndStop(2);
} else if ((zeke.charging == false) and (zeke.charge > 0)) {
this.gotoAndStop(3);
} else if ((zeke.charge < 0.1) and (zeke.charging == false)) {
this.gotoAndStop(1);
}
if (((zeke.xfacing == -1) and (k == 0)) or (k == 2)) {
this.swapDepths(zeke);
k = 1;
} else if ((zeke.xfacing == 1) and (k == 1)) {
k = 0;
this.swapDepths(zeke);
}
mouseX = _root._xmouse - this._x;
mouseY = _root._ymouse - this._y;
radians = Math.atan2(mouseY, mouseX);
degrees = (radians * 180) / Math.PI;
this._rotation = degrees + 90;
}
Instance of Symbol 349 MovieClip "_hunk" in Frame 1408
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 788 MovieClip "_hunkB" in Frame 1408
onClipEvent (load) {
dodge = false;
dead = false;
dodgeTimer = 0;
dodgeOK = false;
dodged = false;
timer = 0;
partner = _root._hunk;
oHP = partner.oHP;
HP = partner.HP;
stop();
}
onClipEvent (enterFrame) {
this.oHP = partner.oHP;
this.HP = partner.HP;
if (this.HP < 0) {
this.dead = true;
partner.dead = true;
}
if (this.dead == true) {
gotoAndStop ("dead");
}
if (_root.turn == 1) {
dodged = false;
}
if (_root.turn == 2) {
if (dead == false) {
if (((Key.isDown(32) and (dodge == false)) and (dodgeOK == true)) and (dodged == false)) {
this.dodge = true;
}
if (dodge == true) {
dodged = true;
dodgeTimer++;
this.gotoAndStop("dodge");
if (dodgeTimer == 10) {
dodge = false;
dodgeTimer = 0;
this.gotoAndStop(1);
}
}
if (dodged == true) {
timer++;
}
if (timer > 30) {
dodged = false;
timer = 0;
}
if (dodge == false) {
this.gotoAndStop(1);
}
} else {
gotoAndStop ("dead");
}
}
}
Instance of Symbol 1087 MovieClip "_clock" in Frame 1408
onClipEvent (load) {
timer = 200;
rot = 180;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
rot = random(180);
timer = random(300) + 20;
}
_rotation = (_rotation + ((rot - _rotation) / 3));
}
Instance of Symbol 803 MovieClip in Frame 1408
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.48);
this._y = _root._camB._y + (_root._camB._height * 0.35);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
this.gotoAndStop(_root.turn);
}
Instance of Symbol 1089 MovieClip in Frame 1408
onClipEvent (load) {
this._alpha = 0;
dark = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
dark = 45000 - _root._targetMC1.HP;
if (_root._targetMC1.HP > 42700) {
this._alpha = dark / 40;
_root.bgSound.setVolume(100 - (dark / 25));
}
if (_root._targetMC1.HP < 42700) {
this._alpha = this._alpha + 2;
_root.bgSound.stop();
_root.bgSound.setVolume(100);
}
if (this._alpha > 99) {
_root.gotoAndPlay("bossDone");
}
}
Instance of Symbol 252 MovieClip "_charChange" in Frame 1408
onClipEvent (load) {
_root.charZeke = true;
_root.charHunk = false;
this._alpha = 0;
_root._hunkTimer = 0;
}
onClipEvent (enterFrame) {
this._x = _root._camB._x - (_root._camB._width * 0.3);
this._y = _root._camB._y - (_root._camB._height * 0.3);
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
if (_root.turn == 1) {
if (Key.isDown(90) or Key.isDown(88)) {
this._alpha = 100;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(90)) {
this._selection._x = this._hunkFace._x;
}
if (Key.isDown(88)) {
this._selection._x = this._zekeFace._x;
}
if (Key.isDown(90) and (_root.charHunk == false)) {
if (_root._hunkB.dead == false) {
_root._trans.gotoAndPlay(2);
_root.charHunk = true;
_root.charZeke = false;
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
if (Key.isDown(88) and (_root.charZeke == false)) {
if (_root._zekeB.dead == false) {
if (_root._hunk.shotTime == false) {
_root._trans.gotoAndPlay(2);
_root._hunkTimer = 0;
_root._hunkReady = false;
_root.charHunk = false;
_root.charZeke = true;
}
} else {
_root.SFX.attachSound("not");
_root.SFX.setVolume(80);
_root.SFX.start(0, 1);
}
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
if (_root.charHunk == true) {
if (this._hunkFace._alpha < 100) {
this._hunkFace._alpha = this._hunkFace._alpha + 20;
}
if (this._zekeFace._alpha > 30) {
this._zekeFace._alpha = this._zekeFace._alpha - 20;
}
} else if (_root.charZeke == true) {
if (this._zekeFace._alpha < 100) {
this._zekeFace._alpha = this._zekeFace._alpha + 20;
}
if (this._hunkFace._alpha > 30) {
this._hunkFace._alpha = this._hunkFace._alpha - 20;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charZeke == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x + (_root._camB._width / 2)) > this._x) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x--;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.charHunk == false) {
while (this.hitTest(_root._camB)) {
_root._camB._x++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._y - (_root._camB._height / 2)) < this._y) {
_root._camB._y++;
}
}
}
Instance of Symbol 504 MovieClip in Frame 1408
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.charZeke == false) and (_root.turn == 1)) {
while ((_root._camB._x - (_root._camB._width / 2)) < this._x) {
_root._camB._x++;
}
}
}
Frame 1425
_root.bgSound.stop();
_root.bgSound.setVolume(100);
gotoAndPlay (893);
Frame 1432
battle1Done = false;
onEnterFrame = function () {
if (battle1Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainRuins");
_root.bgSound.start(0, 99);
gotoAndStop ("lowerMount");
_root._zeke._x = 970;
_root._zeke._y = 650;
battle1Done = true;
}
};
Frame 1438
battle2Done = false;
onEnterFrame = function () {
if (battle2Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainRuins");
_root.bgSound.start(0, 99);
gotoAndStop ("lowerMount");
_root._zeke._x = -170;
_root._zeke._y = 260;
battle2Done = true;
}
};
Frame 1445
battle3Done = false;
onEnterFrame = function () {
if (battle3Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainMain");
_root.bgSound.start(0, 99);
gotoAndStop ("mountainMain");
_root._zeke._x = -100;
_root._zeke._y = 750;
battle3Done = true;
}
};
Frame 1452
battle4Done = false;
onEnterFrame = function () {
if (battle4Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainMain");
_root.bgSound.start(0, 99);
gotoAndStop ("mountainMain");
_root._zeke._x = -160;
_root._zeke._y = 350;
battle4Done = true;
}
};
Frame 1460
battle5Done = false;
onEnterFrame = function () {
if (battle5Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("temple");
_root.bgSound.start(0, 99);
gotoAndStop ("temple");
_root._zeke._x = -300;
_root._zeke._y = 600;
battle5Done = true;
}
};
Frame 1468
battle6Done = false;
onEnterFrame = function () {
if (battle6Done == false) {
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("temple");
_root.bgSound.start(0, 99);
gotoAndStop ("temple");
_root._zeke._x = 2200;
_root._zeke._y = 630;
battle6Done = true;
}
};
Frame 1476
battle7Done = false;
onEnterFrame = function () {
if (battle7Done == false) {
gotoAndStop ("temple2");
_root._zeke._x = 1200;
_root._zeke._y = 230;
battle7Done = true;
}
};
Frame 1511
bossDone = false;
onEnterFrame = function () {
if (bossDone == false) {
removeMovieClip(_root.newExplosion);
gotoAndPlay (2069);
bossDone = true;
}
};
Instance of Symbol 819 MovieClip in Frame 1518
onClipEvent (load) {
this._visible = false;
g = 100;
}
onClipEvent (enterFrame) {
if (g > 0) {
g = g - 7;
} else {
g = 0;
}
_root.bgSound.setVolume(g);
}
Frame 1525
gotoAndStop ("menu");
Frame 1532
contDone = false;
onEnterFrame = function () {
if (contDone == false) {
if (_root.eventNumber < 5) {
eventNumber--;
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainRuins");
_root.bgSound.start(0, 99);
gotoAndStop ("lowerMount");
_root._zeke._x = _root.save1._x;
_root._zeke._y = _root.save1._y;
contDone = true;
} else if ((_root.eventNumber >= 5) and (_root.eventNumber <= 7)) {
eventNumber--;
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("mountainMain");
_root.bgSound.start(0, 99);
gotoAndStop ("mountainMain");
_root._zeke._x = _root.save2._x;
_root._zeke._y = _root.save2._y;
contDone = true;
} else if (_root.eventNumber > 7) {
eventNumber--;
_root.bgSound.stop();
_root.bgSound.setVolume(100);
_root.bgSound.attachSound("temple");
_root.bgSound.start(0, 99);
gotoAndStop ("temple");
_root._zeke._x = _root.save3._x;
_root._zeke._y = _root.save3._y;
contDone = true;
}
}
};
Instance of Symbol 405 MovieClip "_bg" in Frame 1541
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y - 150;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
}
Instance of Symbol 174 MovieClip "_cam" in Frame 1541
onClipEvent (enterFrame) {
lowerlimit = 1500;
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
if (this._xscale < 140) {
this._xscale = this._xscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
while ((this._y + this._height) > lowerlimit) {
this._y = this._y - 1;
}
var scrollHit;
if (_root._zekeScroll.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._zekeScroll._x - this._x;
yChange = _root._zekeScroll._y - this._y;
this._x = this._x + Math.round(xChange / 13);
this._y = this._y + Math.round(yChange / 13);
}
}
Instance of Symbol 1106 MovieClip in Frame 1603
onClipEvent (load) {
page = 1;
}
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y + (0.3 * _root._cam.height);
this.gotoAndStop(page);
}
Frame 1604
stop();
Frame 1677
stop();
Frame 1678
gotoAndStop ("battle1");
Instance of Symbol 471 MovieClip in Frame 1679
onClipEvent (enterFrame) {
this._x = _root._cam._x;
this._y = _root._cam._y;
}
Frame 1760
stop();
Instance of Symbol 1111 MovieClip in Frame 1760
onClipEvent (load) {
page = 1;
}
onClipEvent (enterFrame) {
this.gotoAndStop(page);
}
Frame 1761
gotoAndStop ("battle5");
Instance of Symbol 471 MovieClip in Frame 1762
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Frame 1838
_root._theGuys.gotoAndStop("hand");
Instance of Symbol 1034 MovieClip in Frame 1934
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._daHead._x + (_parent._daButt._x * 3)) / 4;
averageY = (_parent._daHead._y + (_parent._daButt._y * 3)) / 4;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1035 MovieClip in Frame 1934
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._daHead._x + _parent._daButt._x) / 2;
averageY = (_parent._daHead._y + _parent._daButt._y) / 2;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1037 MovieClip in Frame 1934
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (((_parent._daHead._x * 3) + _parent._daButt._x) / 4) - 40;
averageY = (((_parent._daHead._y * 3) + _parent._daButt._y) / 4) - 30;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 471 MovieClip in Frame 1939
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 1034 MovieClip in Frame 1939
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._daHead._x + (_parent._daButt._x * 3)) / 4;
averageY = (_parent._daHead._y + (_parent._daButt._y * 3)) / 4;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1035 MovieClip in Frame 1939
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (_parent._daHead._x + _parent._daButt._x) / 2;
averageY = (_parent._daHead._y + _parent._daButt._y) / 2;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1037 MovieClip in Frame 1939
onClipEvent (load) {
averageX = 0;
averageY = 0;
}
onClipEvent (enterFrame) {
averageX = (((_parent._daHead._x * 3) + _parent._daButt._x) / 4) - 40;
averageY = (((_parent._daHead._y * 3) + _parent._daButt._y) / 4) - 30;
this._x = this._x - ((this._x - averageX) / 5);
this._y = this._y - ((this._y - averageY) / 5);
}
Instance of Symbol 1078 MovieClip "_daHead" in Frame 1939
onClipEvent (enterFrame) {
this._bullet._visible = false;
}
Frame 1985
bgSound.stop();
bgSound.setVolume(100);
bgSound.attachSound("bossTheme");
bgSound.start(0, 99);
Instance of Symbol 174 MovieClip "_camB" in Frame 1991
onClipEvent (enterFrame) {
this._x = this._x + (random(20) - 10);
this._y = this._y + (random(20) - 10);
}
Frame 2068
gotoAndStop ("boss");
Instance of Symbol 471 MovieClip in Frame 2069
onClipEvent (enterFrame) {
this._x = _root._camB._x;
this._y = _root._camB._y;
}
Instance of Symbol 174 MovieClip "_cam" in Frame 2428
onClipEvent (enterFrame) {
lowerlimit = 1500;
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
if (this._xscale < 140) {
this._xscale = this._xscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
while ((this._y + this._height) > lowerlimit) {
this._y = this._y - 1;
}
var scrollHit;
if (_root._zekeScroll.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._zekeScroll._x - this._x;
yChange = _root._zekeScroll._y - this._y;
this._x = this._x + Math.round(xChange / 13);
this._y = this._y + Math.round(yChange / 13);
}
}
Instance of Symbol 174 MovieClip "_cam" in Frame 2499
onClipEvent (enterFrame) {
lowerlimit = 1500;
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
if (this._xscale < 140) {
this._xscale = this._xscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
while ((this._y + this._height) > lowerlimit) {
this._y = this._y - 1;
}
var scrollHit;
if (_root._zekeScroll.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._zekeScroll._x - this._x;
yChange = _root._zekeScroll._y - this._y;
this._x = this._x + Math.round(xChange / 13);
this._y = this._y + Math.round(yChange / 13);
}
}
Frame 3103
_root.bigOlBox.play();
Instance of Symbol 174 MovieClip "_cam" in Frame 3186
onClipEvent (enterFrame) {
lowerlimit = 1500;
if ((_root._zeke.xspeed != 0) or (_root._zeke.yspeed != 0)) {
if (this._xscale < 140) {
this._xscale = this._xscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
this._yscale = this._yscale + ((Math.abs(_root._zeke.xspeed) + Math.abs(_root._zeke.yspeed)) / 5);
}
} else if (this._xscale > 100) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
}
while ((this._y + this._height) > lowerlimit) {
this._y = this._y - 1;
}
var scrollHit;
if (_root._zekeScroll.hitTest(_root._cam._x, _root._cam._y, true)) {
scrollHit = true;
} else {
scrollHit = false;
}
if (scrollHit == false) {
xChange = _root._zekeScroll._x - this._x;
yChange = _root._zekeScroll._y - this._y;
this._x = this._x + Math.round(xChange / 13);
this._y = this._y + Math.round(yChange / 13);
}
}
Frame 4258
stop();
Instance of Symbol 134 MovieClip "scroller" in Frame 4258
onClipEvent (enterFrame) {
while (this._y > 0) {
this._y = this._y - 1;
}
while (this._y < ((-1 * this._height) + 200)) {
this._y = this._y + 1;
}
if (_root._xmouse > 105) {
if (_root._ymouse < 100) {
this._y = this._y + Math.round((100 - _root._ymouse) / 4);
} else if (_root._ymouse > 300) {
this._y = this._y - Math.round((_root._ymouse - 300) / 4);
}
}
}
Frame 4263
gotoAndStop ("menu");
Frame 4264
gotoAndStop (4265);
Frame 4265
stop();
Instance of Symbol 1397 MovieClip in Frame 4265
onClipEvent (load) {
page = 1;
}
onClipEvent (enterFrame) {
stop();
this.gotoAndStop(page);
if (page < 1) {
page++;
}
if (page > 12) {
page--;
}
}
Frame 4277
gotoAndStop (4258);
Symbol 41 MovieClip [explosion] Frame 25
_root.removeMovieClip(_parent);
Symbol 73 MovieClip Frame 31
stop();
Instance of Symbol 86 MovieClip in Symbol 91 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("play");
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("credits");
}
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("options");
}
Instance of Symbol 100 MovieClip in Symbol 103 MovieClip Frame 1
on (release) {
_root.page = "home";
_root._sidebar._selected = _root._sidebar._home;
}
Instance of Symbol 103 MovieClip in Symbol 134 MovieClip Frame 1
on (release) {
getURL ("http://www.dfcomics.com", "_blank");
}
Instance of Symbol 109 MovieClip in Symbol 134 MovieClip Frame 1
on (release) {
getURL ("http://www.ericmoran.net", "_blank");
}
Instance of Symbol 134 MovieClip "scroller" in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
while (this._y > -200) {
this._y = this._y - 1;
}
while (this._y < ((-1 * this._height) + 200)) {
this._y = this._y + 1;
}
if (_root._xmouse > 105) {
if (_root._ymouse < 100) {
this._y = this._y + Math.round((100 - _root._ymouse) / 4);
} else if (_root._ymouse > 300) {
this._y = this._y - Math.round((_root._ymouse - 300) / 4);
}
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 1
on (release) {
_root.play();
}
Instance of Symbol 148 MovieClip in Symbol 153 MovieClip Frame 1
on (release) {
_root._quality = "HIGH";
}
Instance of Symbol 150 MovieClip in Symbol 153 MovieClip Frame 1
on (release) {
_root._quality = "MEDIUM";
}
Instance of Symbol 152 MovieClip in Symbol 153 MovieClip Frame 1
on (release) {
_root._quality = "LOW";
}
Instance of Symbol 137 MovieClip in Symbol 153 MovieClip Frame 1
on (release) {
_root.play();
}
Symbol 162 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 168 MovieClip Frame 90
stop();
Symbol 174 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 187 MovieClip "introC6" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -600) {
this._x = 600;
}
}
Instance of Symbol 187 MovieClip "introC4" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -600) {
this._x = 600;
}
}
Instance of Symbol 189 MovieClip "introC5" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -600) {
this._x = 600;
}
}
Instance of Symbol 191 MovieClip "introC3" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -600) {
this._x = 600;
}
}
Instance of Symbol 193 MovieClip "introC2" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -800) {
this._x = 800;
}
}
Instance of Symbol 195 MovieClip "introC1" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (this._width / 150);
if (this._x < -800) {
this._x = 800;
}
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 75
stop();
Instance of Symbol 200 MovieClip in Symbol 203 MovieClip Frame 75
onClipEvent (load) {
timer = 9;
}
onClipEvent (enterFrame) {
timer++;
if (timer == 10) {
this.newX = (6 - random(12)) + this._x;
this.newY = (6 - random(12)) + this._y;
timer = 0;
}
this._x = this._x - ((this._x - this.newX) / 6);
this._y = this._y - ((this._y - this.newY) / 6);
while (this._x > 115) {
this._x--;
}
}
Symbol 208 MovieClip Frame 98
gotoAndPlay (1);
Symbol 214 MovieClip Frame 174
stop();
Symbol 220 MovieClip Frame 31
stop();
Symbol 225 MovieClip Frame 319
stop();
Instance of Symbol 248 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._zekeB.dead == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 248 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._hunkB.dead == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if ((_root._hunk.shotTime == true) and (_root.charHunk == true)) {
this._visible = true;
} else {
this._visible = false;
}
} else {
this._visible = false;
}
}
Symbol 323 MovieClip Frame 18
stop();
Symbol 348 MovieClip Frame 70
stop();
Symbol 349 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 388 MovieClip Frame 1
on (release) {
_parent.page++;
}
Instance of Symbol 260 MovieClip in Symbol 388 MovieClip Frame 1
on (release) {
_parent.page--;
}
Instance of Symbol 349 MovieClip "_hunk" in Symbol 388 MovieClip Frame 4
onClipEvent (load) {
dead = false;
HP = 170;
oHP = 170;
var shotTime = false;
var shotTimer = 0;
var ammoType = 1;
}
onClipEvent (mouseDown) {
if (_root.turn == 1) {
if (_root.charHunk == true) {
if (ammoType == 1) {
if (shotTime == false) {
shoot = true;
}
} else if (ammoType == 2) {
if (shotTime == false) {
shoot = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.turn == 1) {
if (this._y < 800) {
this._y = this._y + 5;
}
if ((_root.charHunk == true) and (_root._hunkReady == true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (shoot == true) {
if (ammoType == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
shoot = false;
shotTime = true;
}
if (shotTime == true) {
shotTimer++;
if (ammoType == 1) {
if (shotTimer > 20) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
} else if (shotTimer > 60) {
shotTimer = 0;
shotTime = false;
this.gotoAndStop(1);
}
}
if (shotTime == false) {
if (Key.isDown(65)) {
this.ammoType = 1;
} else if (Key.isDown(68)) {
this.ammoType = 2;
}
}
}
} else {
shotTimer = 0;
shoot = false;
shotTime = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 6
on (release) {
_root.play();
}
Instance of Symbol 392 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 398 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 33;
if (this._y > 233) {
this._y = -200;
}
}
Instance of Symbol 402 MovieClip "_cloud2" in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
a = Math.random();
}
onClipEvent (enterFrame) {
this._x = this._x + a;
if (this._x > (570 + (this._width / 2))) {
this._x = -this._width;
}
}
Instance of Symbol 404 MovieClip "_cloud1" in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
a = Math.random();
}
onClipEvent (enterFrame) {
this._x = this._x + a;
if (this._x > (570 + (this._width / 2))) {
this._x = -this._width;
}
}
Instance of Symbol 418 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_root.hold = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root.hold = true;
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
} else {
_root.hold = false;
}
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 1
stop();
Instance of Symbol 458 MovieClip "_walls" in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Instance of Symbol 460 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_root._floatFloor._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true) or _root._floatFloor.hitTest(_root._zeke._x, _root._zeke._y, true)) {
if (_root._floatFloor._alpha < 100) {
_root._floatFloor._alpha = _root._floatFloor._alpha + 10;
}
} else if (_root._floatFloor._alpha > 0) {
_root._floatFloor._alpha = _root._floatFloor._alpha - 10;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 43 MovieClip [block] in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.xSpeed = 3 - random(7);
this.ySpeed = 2 - random(5);
this._xscale = random(80) + 20;
this._yscale = random(80) + 20;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._x > 400) {
this._x = -400;
}
if (this._x < -400) {
this._x = 400;
}
if (this._y > 400) {
this._y = -400;
}
if (this._y < -400) {
this._y = 400;
}
}
Instance of Symbol 475 MovieClip in Symbol 479 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root._cam._x - 970;
this._y = _root._cam._y;
this._xscale = _root._cam._xscale;
this._yscale = _root._cam._yscale;
}
Instance of Symbol 478 MovieClip in Symbol 479 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Symbol 482 MovieClip Frame 20
gotoAndPlay (1);
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 2
_root._zeke.moving = false;
Symbol 487 MovieClip Frame 26
_root._zeke.moving = true;
gotoAndStop (1);
Instance of Symbol 508 MovieClip "_wallsB" in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Symbol 539 MovieClip Frame 1
stop();
Instance of Symbol 538 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._zeke._x < _root.eye._x) {
this._x = this._x - ((this._x + 40) / 10);
} else {
this._x = this._x + ((25 - this._x) / 10);
}
if (_root._zeke._y < _root.eye._y) {
this._y = this._y - ((this._y + 15) / 10);
} else {
this._y = this._y + ((15 - this._y) / 10);
}
}
Instance of Symbol 571 MovieClip "_wallsS" in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Symbol 590 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 590 MovieClip Frame 1
on (release) {
_parent.page++;
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret1 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret2 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret3 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret4 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret5 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 597 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.secret6 == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 600 MovieClip Frame 1
stop();
Instance of Symbol 590 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
page = 1;
}
onClipEvent (enterFrame) {
this.gotoAndStop(page);
if (page > 6) {
_parent.gotoAndStop("getIt");
}
}
Symbol 600 MovieClip Frame 2
stop();
onEnterFrame = function () {
_parent.beenHere = true;
};
Instance of Symbol 612 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Instance of Symbol 650 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Symbol 661 MovieClip Frame 24
stop();
Symbol 662 MovieClip Frame 1
stop();
Instance of Symbol 657 MovieClip in Symbol 662 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Instance of Symbol 659 MovieClip in Symbol 662 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
thru = true;
}
onClipEvent (enterFrame) {
if (_root._zeke._x > 1200) {
thru = false;
}
if (thru == false) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
}
Instance of Symbol 667 MovieClip in Symbol 668 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._zeke._x, _root._zeke._y, true)) {
_root._zeke._x = _root._zeke._x - (_root._zeke.xspeed * 1.1);
_root._zeke._y = _root._zeke._y - (_root._zeke.yspeed * 1.1);
}
}
Instance of Symbol 689 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _parent._parent.HP * (100 / _parent._parent.totalHP);
}
Symbol 691 MovieClip Frame 7
stop();
Instance of Symbol 690 MovieClip in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 697 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = (_parent._parent.HP / _parent._parent.oHP) * 100;
}
Symbol 728 MovieClip Frame 12
stop();
Instance of Symbol 732 MovieClip "_hitter" in Symbol 733 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
Symbol 733 MovieClip Frame 7
stop();
Instance of Symbol 732 MovieClip "_hitter" in Symbol 750 MovieClip Frame 6
onClipEvent (load) {
this._visible = false;
}
Symbol 750 MovieClip Frame 13
stop();
Instance of Symbol 732 MovieClip "_hitter" in Symbol 753 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 753 MovieClip Frame 11
stop();
Instance of Symbol 732 MovieClip "_hitter" in Symbol 755 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 767 MovieClip Frame 20
stop();
Instance of Symbol 699 MovieClip in Symbol 768 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 20;
}
onClipEvent (enterFrame) {
if (this._alpha > 20) {
this._alpha = this._alpha - 4;
}
if (_parent.hit == true) {
this._alpha = 100;
}
}
Symbol 773 MovieClip Frame 8
stop();
Symbol 787 MovieClip Frame 14
stop();
Instance of Symbol 699 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 20;
}
onClipEvent (enterFrame) {
if (this._alpha > 20) {
this._alpha = this._alpha - 4;
}
if (_parent.hit == true) {
this._alpha = 100;
}
}
Instance of Symbol 792 MovieClip "timeBar1" in Symbol 798 MovieClip Frame 1
onClipEvent (load) {
originTime = 300;
time = 300;
}
onClipEvent (enterFrame) {
time--;
this._yscale = (time / originTime) * 100;
if (time < 0) {
_root.turn = 2;
time = originTime;
}
if (_root.turn == 2) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
Instance of Symbol 797 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = _parent.timeBar1._y - _parent.timeBar1._height;
}
Instance of Symbol 800 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._hunk.ammoType == 1) {
this._x = -60;
} else {
this._x = 25;
}
}
Symbol 803 MovieClip Frame 1
stop();
Instance of Symbol 801 MovieClip in Symbol 803 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 40;
}
onClipEvent (enterFrame) {
if (_root.charHunk == true) {
if (Key.isDown(65) or Key.isDown(68)) {
if (_alpha < 100) {
this._alpha = this._alpha + 20;
}
} else if (_alpha > 40) {
this._alpha = this._alpha - 20;
}
} else {
this._alpha = 0;
}
}
Instance of Symbol 810 MovieClip in Symbol 815 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("practiceCont");
}
Symbol 850 MovieClip Frame 51
stop();
Instance of Symbol 690 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 20;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 20) {
this._alpha = this._alpha - 2;
}
}
Symbol 853 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 9
stop();
Symbol 863 MovieClip Frame 39
gotoAndPlay (21);
Symbol 870 MovieClip Frame 30
stop();
Symbol 871 MovieClip Frame 1
stop();
Instance of Symbol 690 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 20;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 20) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 856 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.turnOrder != _parent.turn) {
_parent._xscale = _parent.xScale;
}
}
Instance of Symbol 810 MovieClip in Symbol 878 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle1Cont");
}
Instance of Symbol 810 MovieClip in Symbol 879 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle2Cont");
}
Symbol 887 MovieClip Frame 10
stop();
Instance of Symbol 690 MovieClip in Symbol 888 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Symbol 914 MovieClip Frame 65
stop();
Symbol 915 MovieClip Frame 24
stop();
Instance of Symbol 690 MovieClip in Symbol 916 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 856 MovieClip in Symbol 916 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.turnOrder != _parent.turn) {
_parent._xscale = _parent.xScale;
}
}
Instance of Symbol 810 MovieClip in Symbol 920 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle3Cont");
}
Instance of Symbol 810 MovieClip in Symbol 921 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle4Cont");
}
Instance of Symbol 475 MovieClip in Symbol 924 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root._camB._x - 866;
this._y = _root._camB._y - 750;
this._xscale = _root._camB._xscale;
this._yscale = _root._camB._yscale;
}
Symbol 948 MovieClip Frame 10
stop();
Symbol 956 MovieClip Frame 13
stop();
Instance of Symbol 690 MovieClip in Symbol 957 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Symbol 1009 MovieClip Frame 50
gotoAndPlay (40);
Symbol 1016 MovieClip Frame 12
stop();
Instance of Symbol 690 MovieClip in Symbol 1017 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 856 MovieClip in Symbol 1017 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.turnOrder != _parent.turn) {
_parent._xscale = _parent.xScale;
}
}
Instance of Symbol 810 MovieClip in Symbol 1018 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle5Cont");
}
Instance of Symbol 810 MovieClip in Symbol 1019 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle6Cont");
}
Instance of Symbol 810 MovieClip in Symbol 1021 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("battle7Cont");
}
Instance of Symbol 1030 MovieClip in Symbol 1033 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1032 MovieClip in Symbol 1033 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1032 MovieClip in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1030 MovieClip in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1032 MovieClip in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1030 MovieClip in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1030 MovieClip in Symbol 1035 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1032 MovieClip in Symbol 1035 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1030 MovieClip in Symbol 1035 MovieClip Frame 1
onClipEvent (load) {
timer = random(10) + 2;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
thing = 40 - random(80);
timer = random(10) + 2;
}
_rotation = (_rotation + ((thing - _rotation) / 3));
}
Instance of Symbol 1048 MovieClip in Symbol 1049 MovieClip Frame 1
onClipEvent (load) {
timer = 10;
Nrotation = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
this.Nrotation = random(360);
timer = random(10) + 5;
}
this._rotation = this._rotation - ((this._rotation - Nrotation) / 4);
}
Instance of Symbol 1048 MovieClip in Symbol 1049 MovieClip Frame 1
onClipEvent (load) {
timer = 10;
Nrotation = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
this.Nrotation = random(360);
timer = random(10) + 5;
}
this._rotation = this._rotation - ((this._rotation - Nrotation) / 4);
}
Instance of Symbol 690 MovieClip in Symbol 1052 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 1048 MovieClip in Symbol 1068 MovieClip Frame 1
onClipEvent (load) {
timer = 10;
Nrotation = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
this.Nrotation = random(360);
timer = random(10) + 5;
}
this._rotation = this._rotation - ((this._rotation - Nrotation) / 4);
}
Symbol 1077 MovieClip Frame 25
stop();
Instance of Symbol 690 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((_parent.hitTimer == 1) or (_root._bang.boomTimer == 1)) {
this._alpha = 100;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
}
}
Instance of Symbol 1081 MovieClip in Symbol 1087 MovieClip Frame 1
onClipEvent (load) {
rotTimer = 15;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 3;
if (_alpha < 0) {
_alpha = (random(50) + 50);
}
rotTimer--;
if (rotTimer == 0) {
this._rotation = this._rotation + 6;
rotTimer = 15;
}
}
Instance of Symbol 1083 MovieClip in Symbol 1087 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2;
if (_alpha < 0) {
_alpha = (random(50) + 50);
}
_rotation = (_rotation+1);
}
Instance of Symbol 1085 MovieClip in Symbol 1087 MovieClip Frame 1
onClipEvent (load) {
rotTimer = 24;
}
onClipEvent (enterFrame) {
this._alpha--;
if (_alpha < 0) {
_alpha = 100;
}
rotTimer--;
if (rotTimer == 0) {
this._rotation = this._rotation - 12;
rotTimer = 24;
}
}
Symbol 1098 MovieClip Frame 1
stop();
Instance of Symbol 1095 MovieClip in Symbol 1098 MovieClip Frame 1
on (release) {
_root.gotoAndStop("titleCont");
}
Instance of Symbol 1097 MovieClip in Symbol 1098 MovieClip Frame 1
on (release) {
_root.gotoAndStop("continueGame");
}
Symbol 1099 MovieClip Frame 15
stop();
Symbol 1106 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 1106 MovieClip Frame 1
on (release) {
_parent.page++;
if (_parent.page == 3) {
_root.play();
}
if (_parent.page > 4) {
_root.gotoAndStop("eventGoto1");
}
}
Symbol 1111 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 1111 MovieClip Frame 1
on (release) {
_parent.page++;
if (_parent.page > 3) {
_root.play();
}
}
Symbol 1129 MovieClip Frame 55
stop();
Symbol 1140 MovieClip Frame 58
stop();
Symbol 1175 MovieClip Frame 24
stop();
Symbol 1176 MovieClip Frame 61
stop();
Symbol 1213 MovieClip Frame 12
stop();
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 42
stop();
Symbol 1274 MovieClip Frame 38
stop();
Instance of Symbol 1310 MovieClip in Symbol 1316 MovieClip Frame 1
on (release) {
_root.gotoAndStop("replay");
}
Instance of Symbol 1313 MovieClip in Symbol 1316 MovieClip Frame 1
on (release) {
getURL ("http://www.dfcomics.com", "_blank");
}
Instance of Symbol 1315 MovieClip in Symbol 1316 MovieClip Frame 1
on (release) {
_root.gotoAndStop("getArt1");
}
onClipEvent (enterFrame) {
if ((((((_root.secret1 == true) and (_root.secret2 == true)) and (_root.secret3 == true)) and (_root.secret4 == true)) and (_root.secret5 == true)) and (_root.secret6 == true)) {
} else {
this._x = 1000;
}
}
Symbol 1397 MovieClip Frame 1
stop();
Instance of Symbol 1320 MovieClip in Symbol 1397 MovieClip Frame 1
onClipEvent (enterFrame) {
while ((this._y - (this._height / 2)) > 0) {
this._y--;
}
while ((this._y + (this._height / 2)) < 400) {
this._y++;
}
}
on (press) {
startDrag (this, false, 0, 0, 550, 400);
}
on (release) {
stopDrag();
}
Instance of Symbol 260 MovieClip in Symbol 1397 MovieClip Frame 1
on (release) {
_parent.page++;
}
Instance of Symbol 260 MovieClip in Symbol 1397 MovieClip Frame 1
on (release) {
_parent.page--;
}
Instance of Symbol 1323 MovieClip in Symbol 1397 MovieClip Frame 1
on (release) {
_root.play();
}
Instance of Symbol 1335 MovieClip in Symbol 1397 MovieClip Frame 4
onClipEvent (enterFrame) {
while ((this._y - (this._height / 2)) > 0) {
this._y--;
}
while ((this._y + (this._height / 2)) < 400) {
this._y++;
}
}
on (press) {
startDrag (this, false, 0, 0, 550, 400);
}
on (release) {
stopDrag();
}
Instance of Symbol 1338 MovieClip in Symbol 1397 MovieClip Frame 5
onClipEvent (enterFrame) {
while ((this._y - (this._height / 2)) > 0) {
this._y--;
}
while ((this._y + (this._height / 2)) < 400) {
this._y++;
}
}
on (press) {
startDrag (this, false, 0, 0, 550, 400);
}
on (release) {
stopDrag();
}
Instance of Symbol 1341 MovieClip in Symbol 1397 MovieClip Frame 6
onClipEvent (enterFrame) {
while ((this._y - (this._height / 2)) > 0) {
this._y--;
}
while ((this._y + (this._height / 2)) < 400) {
this._y++;
}
}
on (press) {
startDrag (this, false, 0, 0, 550, 400);
}
on (release) {
stopDrag();
}
Instance of Symbol 1396 MovieClip in Symbol 1397 MovieClip Frame 12
onClipEvent (enterFrame) {
while ((this._y - (this._height / 2)) > 0) {
this._y--;
}
while ((this._y + (this._height / 2)) < 400) {
this._y++;
}
}
on (press) {
startDrag (this, false, 0, 0, 550, 400);
}
on (release) {
stopDrag();
}