Frame 1
function damageGuy(dmg) {
_root.guyHealth = _root.guyHealth - dmg;
}
Stage.showMenu = false;
var guyMaxHealth = 100;
var guyHealth = guyMaxHealth;
setClown = function (name) {
_root[name].mobFacing = 1;
_root[name].mobAnimation = 1;
_root[name].getHitWait = 0;
_root[name].hp = 40;
_root[name].onEnterFrame = function () {
this.hitGuyRight = this._parent.guyCont.guyHitRight.hitTest(this._x + (30 * this.mobFacing), this._y + 12, true);
this.hitGuyLeft = this._parent.guyCont.guyHitLeft.hitTest(this._x + (30 * this.mobFacing), this._y + 12, true);
this.getHit = this._parent.guyCont.guy.atkChar.hammerHit.hitTest(this);
if ((this.hp > 0) && (this.getHitWait > 0)) {
this.getHitWait--;
if (this.getHitWait == 0) {
this.mobAnimation = 2;
}
} else if (this.getHit) {
this.hp = this.hp - this._parent.guyCont.damage;
this.gotoAndStop("hitRight");
this.mobAnimation = 3;
this.getHitWait = 10;
if (this.hp <= 0) {
this.gotoAndStop("deathRight");
}
}
if (this.hitGuyLeft && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(10);
this._parent.guyCont._x = this._parent.guyCont._x + 20;
this._parent.guyCont.guyHurt = 1;
} else if (this.hitGuyRight && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(10);
this._parent.guyCont._x = this._parent.guyCont._x - 20;
this._parent.guyCont.guyHurt = 1;
}
this.rightWall = (((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 33, true);
this.leftWall = (((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 33, true);
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 50, true);
if (this.stopRight._currentFrame == 15) {
this.gotoAndStop("walkRight");
this.mobFacing = this.mobFacing * -1;
this._xscale = this.mobFacing * 100;
this.mobAnimation = 2;
}
if (this.mobAnimation == 2) {
if (this.ledgeCheck) {
i = 4;
while (i > 0) {
this._x = this._x + this.mobFacing;
if (this.mobFacing == 1) {
this.wallCheck = (((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 33, true);
} else if (this.mobFacing == -1) {
this.wallCheck = (((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 33, true);
}
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 50, true);
if ((!this.ledgeCheck) or this.wallCheck) {
i = 1;
this._xscale = this.mobFacing * 100;
this.gotoAndStop("stopRight");
this.mobAnimation = 1;
}
i--;
}
}
}
};
};
setGhost = function (name) {
_root[name].mobFacing = 1;
_root[name].mobAnimation = 1;
_root[name].getHitWait = 0;
_root[name].hp = 60;
_root[name].onEnterFrame = function () {
this.hitGuyRight = this._parent.guyCont.guyHitRight.hitTest(this._x + (25 * this.mobFacing), this._y + 12, true);
this.hitGuyLeft = this._parent.guyCont.guyHitLeft.hitTest(this._x + (25 * this.mobFacing), this._y + 12, true);
this.getHit = this._parent.guyCont.guy.atkChar.hammerHit.hitTest(this);
if ((this.hp > 0) && (this.getHitWait > 0)) {
this.getHitWait--;
if (this.getHitWait == 0) {
this.mobAnimation = 2;
}
} else if (this.getHit) {
this.hp = this.hp - this._parent.guyCont.damage;
this.gotoAndStop("hitRight");
this.mobAnimation = 3;
this.getHitWait = 10;
if (this.hp <= 0) {
this.gotoAndStop("deathRight");
}
}
if (this.hitGuyLeft && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(15);
this._parent.guyCont._x = this._parent.guyCont._x + 20;
this._parent.guyCont.guyHurt = 1;
} else if (this.hitGuyRight && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(15);
this._parent.guyCont._x = this._parent.guyCont._x - 20;
this._parent.guyCont.guyHurt = 1;
}
this.rightWall = (((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 33, true);
this.leftWall = (((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 33, true);
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 70, true);
if (this.stopRight._currentFrame == 15) {
this.gotoAndStop("walkRight");
this.mobFacing = this.mobFacing * -1;
this._xscale = this.mobFacing * 100;
this.mobAnimation = 2;
}
if (this.mobAnimation == 2) {
if (this.ledgeCheck) {
i = 4;
while (i > 0) {
this._x = this._x + this.mobFacing;
if (this.mobFacing == 1) {
this.wallCheck = (((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 33, true);
} else if (this.mobFacing == -1) {
this.wallCheck = (((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 33, true);
}
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 70, true);
if ((!this.ledgeCheck) or this.wallCheck) {
i = 1;
this._xscale = this.mobFacing * 100;
this.gotoAndStop("stopRight");
this.mobAnimation = 1;
}
i--;
}
}
}
};
};
setFlame = function (name) {
_root[name].mobFacing = 1;
_root[name].mobAnimation = 1;
_root[name].getHitWait = 0;
_root[name].hp = 1;
_root[name].onEnterFrame = function () {
this.hitGuyRight = this._parent.guyCont.guyHitRight.hitTest(this._x + (8 * this.mobFacing), this._y + 12, true);
this.hitGuyLeft = this._parent.guyCont.guyHitLeft.hitTest(this._x + (8 * this.mobFacing), this._y + 12, true);
this.getHit = this._parent.guyCont.guy.atkChar.hammerHit.hitTest(this);
if ((this.hp > 0) && (this.getHitWait > 0)) {
this.getHitWait--;
if (this.getHitWait == 0) {
this.mobAnimation = 2;
}
} else if (this.getHit) {
this.hp = this.hp - this._parent.guyCont.damage;
this.gotoAndStop("hitRight");
this.mobAnimation = 3;
this.getHitWait = 10;
if (this.hp <= 0) {
this.gotoAndStop("deathRight");
}
}
if (this.hitGuyLeft && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(5);
this._parent.guyCont._x = this._parent.guyCont._x + 20;
this._parent.guyCont.guyHurt = 1;
} else if (this.hitGuyRight && (this._parent.guyCont.guyHurt != 1)) {
this._parent.damageGuy(5);
this._parent.guyCont._x = this._parent.guyCont._x - 20;
this._parent.guyCont.guyHurt = 1;
}
this.rightWall = ((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true);
this.leftWall = ((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true);
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 50, true);
((this.frameNo == undefined) ? ((this.frameNo = random(14) + 2)) : ((this.frameNo = this.frameNo * 1)));
if (this.stopRight._currentFrame == this.frameNo) {
this.gotoAndStop("walkRight");
this.mobFacing = this.mobFacing * -1;
this._xscale = this.mobFacing * 100;
this.mobAnimation = 2;
}
if (this.mobAnimation == 2) {
if (this.ledgeCheck) {
i = 4;
while (i > 0) {
this._x = this._x + this.mobFacing;
if (this.mobFacing == 1) {
this.wallCheck = ((((((this._parent.ground.hitTest(this._x + 22, this._y - 50, true) or this._parent.ground.hitTest(this._x + 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x + 22, this._y - 10, true)) or this._parent.ground.hitTest(this._x + 11, this._y, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x + 11, this._y + 22, true);
} else if (this.mobFacing == -1) {
this.wallCheck = ((((((this._parent.ground.hitTest(this._x - 22, this._y - 50, true) or this._parent.ground.hitTest(this._x - 22, this._y - 40, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 30, true)) or this._parent.ground.hitTest(this._x - 22, this._y - 20, true)) or this._parent.ground.hitTest(this._x - 11, this._y - 10, true)) or this._parent.ground.hitTest(this._x - 11, this._y, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 11, true)) or this._parent.ground.hitTest(this._x - 11, this._y + 22, true);
}
this.ledgeCheck = this._parent.ground.hitTest(this._x + (2 * this.mobFacing), this._y + 50, true);
if ((!this.ledgeCheck) or this.wallCheck) {
i = 1;
this._xscale = this.mobFacing * 100;
this.gotoAndStop("stopRight");
this.mobAnimation = 1;
}
i--;
}
}
}
};
};
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("58dbb3b6", this, 10301);
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 32 MovieClip in Frame 3
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Frame 4
stop();
stopAllSounds();
Frame 8
stop();
coinNo = 1;
duplicateMovieClip (enemyClown, "clown1", 2000);
setClown("clown1");
clown1._x = 100;
clown1._y = 170;
duplicateMovieClip (enemyClown, "clown2", 1999);
setClown("clown2");
clown2._x = 325;
clown2._y = 105;
area1Top.swapDepths(9999);
guyCont.swapDepths(9998);
guyHealth = 100;
Instance of Symbol 104 MovieClip "area1" in Frame 8
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Instance of Symbol 171 MovieClip "guyCont" in Frame 8
onClipEvent (load) {
var guyFacing = 1;
var guyAnimation = 1;
var guyAttacking = 0;
var guyHurt = 0;
var guyHurtWait = 0;
var guyJumping = 0;
var guyJumpHeight = 22;
var guyJumpSpeed = 0;
var damage = 20;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Jump = Key.isDown(38);
Attack = Key.isDown(32);
rightWall = (((((((_root.ground.hitTest(this._x + 22, this._y - 50, true) or _root.ground.hitTest(this._x + 22, this._y - 40, true)) or _root.ground.hitTest(this._x + 22, this._y - 30, true)) or _root.ground.hitTest(this._x + 22, this._y - 20, true)) or _root.ground.hitTest(this._x + 22, this._y - 10, true)) or _root.ground.hitTest(this._x + 22, this._y, true)) or _root.ground.hitTest(this._x + 22, this._y + 11, true)) or _root.ground.hitTest(this._x + 22, this._y + 22, true)) or _root.ground.hitTest(this._x + 22, this._y + 27, true);
leftWall = (((((((_root.ground.hitTest(this._x - 22, this._y - 50, true) or _root.ground.hitTest(this._x - 22, this._y - 40, true)) or _root.ground.hitTest(this._x - 22, this._y - 30, true)) or _root.ground.hitTest(this._x - 22, this._y - 20, true)) or _root.ground.hitTest(this._x - 22, this._y - 10, true)) or _root.ground.hitTest(this._x - 22, this._y, true)) or _root.ground.hitTest(this._x - 22, this._y + 11, true)) or _root.ground.hitTest(this._x - 22, this._y + 22, true)) or _root.ground.hitTest(this._x - 22, this._y + 27, true);
inGround = _root.ground.hitTest(this._x, this._y + 33, true);
onGround = _root.ground.hitTest(this._x, this._y + 35, true);
nearGround = _root.ground.hitTest(this._x, this._y + 39, true);
offBottom = (this._y - 45) > 500;
if (offBottom) {
this._x = _root.startX;
this._y = _root.startY;
guyHurt = 1;
_root.damageGuy(20);
}
if ((guyHurt == 1) && (guyHurtWait == 0)) {
guyHurtWait = 25;
gotoAndPlay ("invincible");
} else if ((guyHurt == 1) && (guyHurtWait > 0)) {
guyHurtWait--;
if (guyHurtWait == 0) {
guyHurt = 0;
gotoAndStop (1);
}
}
if (((!onGround) && (guyJumping == 0)) && (!nearGround)) {
guyJumping = 1;
guyJumpSpeed = 0;
} else if (Jump && (nearGround)) {
if ((guyJumping == 0) && (guyAttacking == 0)) {
guyJumping = 1;
guyJumpSpeed = guyJumpHeight;
}
}
if (guyJumping == 1) {
if (Right && (!Left)) {
i = 7;
while (i > 0) {
rightWall = (((((((_root.ground.hitTest(this._x + 22, this._y - 50, true) or _root.ground.hitTest(this._x + 22, this._y - 40, true)) or _root.ground.hitTest(this._x + 22, this._y - 30, true)) or _root.ground.hitTest(this._x + 22, this._y - 20, true)) or _root.ground.hitTest(this._x + 22, this._y - 10, true)) or _root.ground.hitTest(this._x + 22, this._y, true)) or _root.ground.hitTest(this._x + 22, this._y + 11, true)) or _root.ground.hitTest(this._x + 22, this._y + 22, true)) or _root.ground.hitTest(this._x + 22, this._y + 27, true);
if (!rightWall) {
this._x = this._x + 1;
} else {
i = 1;
}
i--;
}
guyFacing = 1;
} else if (Left && (!Right)) {
i = 7;
while (i > 0) {
leftWall = (((((((_root.ground.hitTest(this._x - 22, this._y - 50, true) or _root.ground.hitTest(this._x - 22, this._y - 40, true)) or _root.ground.hitTest(this._x - 22, this._y - 30, true)) or _root.ground.hitTest(this._x - 22, this._y - 20, true)) or _root.ground.hitTest(this._x - 22, this._y - 10, true)) or _root.ground.hitTest(this._x - 22, this._y, true)) or _root.ground.hitTest(this._x - 22, this._y + 11, true)) or _root.ground.hitTest(this._x - 22, this._y + 22, true)) or _root.ground.hitTest(this._x - 22, this._y + 27, true);
if (!leftWall) {
this._x = this._x - 1;
} else {
i = 1;
}
i--;
}
guyFacing = -1;
} else if (Left && (Right)) {
if (guyFacing == 1) {
i = 7;
while (i > 0) {
rightWall = (((((((_root.ground.hitTest(this._x + 22, this._y - 50, true) or _root.ground.hitTest(this._x + 22, this._y - 40, true)) or _root.ground.hitTest(this._x + 22, this._y - 30, true)) or _root.ground.hitTest(this._x + 22, this._y - 20, true)) or _root.ground.hitTest(this._x + 22, this._y - 10, true)) or _root.ground.hitTest(this._x + 11, this._y, true)) or _root.ground.hitTest(this._x + 11, this._y + 11, true)) or _root.ground.hitTest(this._x + 11, this._y + 22, true)) or _root.ground.hitTest(this._x + 11, this._y + 27, true);
if (!rightWall) {
this._x = this._x + 1;
} else {
i = 1;
}
i--;
}
} else if (guyFacing == -1) {
i = 7;
while (i > 0) {
leftWall = (((((((_root.ground.hitTest(this._x - 22, this._y - 50, true) or _root.ground.hitTest(this._x - 22, this._y - 40, true)) or _root.ground.hitTest(this._x - 22, this._y - 30, true)) or _root.ground.hitTest(this._x - 22, this._y - 20, true)) or _root.ground.hitTest(this._x - 11, this._y - 10, true)) or _root.ground.hitTest(this._x - 11, this._y, true)) or _root.ground.hitTest(this._x - 11, this._y + 11, true)) or _root.ground.hitTest(this._x - 11, this._y + 22, true)) or _root.ground.hitTest(this._x - 11, this._y + 27, true);
if (!leftWall) {
this._x = this._x - 1;
} else {
i = 1;
}
i--;
}
}
}
if ((guyFacing == 1) && (guyAttacking != 1)) {
_root.guyCont.guy.gotoAndStop("jumpRight");
guyAnimation = 4;
}
if ((guyFacing == -1) && (guyAttacking != 1)) {
_root.guyCont.guy.gotoAndStop("jumpLeft");
guyAnimation = -4;
}
if (guyJumpSpeed > 0) {
guyJumpSpeedAbs = guyJumpSpeed;
} else if (guyJumpSpeed < 0) {
guyJumpSpeedAbs = -guyJumpSpeed;
} else if ((guyJumpSpeed = 0)) {
guyJumpSpeedAbs = 0;
}
i = guyJumpSpeedAbs;
while (i > 0) {
jumpLand = _root.ground.hitTest(this._x, this._y + 36, true);
if (jumpLand && (guyJumpSpeed < 0)) {
this._y++;
i = 1;
guyJumpSpeed = 0;
guyJumping = 0;
if ((guyFacing == 1) && (guyAttacking != 1)) {
_root.guyCont.guy.gotoAndStop("stopRight");
} else if ((guyFacing == -1) && (guyAttacking != 1)) {
_root.guyCont.guy.gotoAndStop("stopLeft");
}
} else if (guyJumpSpeed > 0) {
this._y--;
} else if (guyJumpSpeed < 0) {
this._y++;
}
i--;
}
if (guyJumping == 1) {
guyJumpSpeed = guyJumpSpeed - 2;
}
}
if (Attack) {
if (guyAttacking == 0) {
if (guyFacing == 1) {
_root.guyCont.guy.gotoAndStop("atkRight");
guyAnimation = 3;
} else if (guyFacing == -1) {
_root.guyCont.guy.gotoAndStop("atkLeft");
guyAnimation = -3;
}
guyAttacking = 1;
}
} else if (guyAttacking == 1) {
} else if ((Right && (!Left)) && (nearGround)) {
i = 7;
while (i > 0) {
rightWall = (((((((_root.ground.hitTest(this._x + 22, this._y - 50, true) or _root.ground.hitTest(this._x + 22, this._y - 40, true)) or _root.ground.hitTest(this._x + 22, this._y - 30, true)) or _root.ground.hitTest(this._x + 22, this._y - 20, true)) or _root.ground.hitTest(this._x + 22, this._y - 10, true)) or _root.ground.hitTest(this._x + 11, this._y, true)) or _root.ground.hitTest(this._x + 11, this._y + 11, true)) or _root.ground.hitTest(this._x + 11, this._y + 22, true)) or _root.ground.hitTest(this._x + 11, this._y + 27, true);
inGround = _root.ground.hitTest(this._x, this._y + 33, true);
if (inGround) {
this._y--;
}
onGround = _root.ground.hitTest(this._x, this._y + 35, true);
nearGround = _root.ground.hitTest(this._x, this._y + 39, true);
if ((!onGround) && (nearGround)) {
this._y++;
}
if (!nearGround) {
i = 1;
}
if (!rightWall) {
this._x = this._x + 1;
} else {
i = 1;
}
i--;
}
if (((!onGround) && (guyJumping == 0)) && (!nearGround)) {
guyJumping = 1;
guyJumpSpeed = 0;
}
if (guyFacing == -1) {
guyFacing = 1;
}
if (guyAnimation != 2) {
_root.guyCont.guy.gotoAndStop("walkRight");
guyAnimation = 2;
}
} else if ((Left && (!Right)) && (nearGround)) {
i = 7;
while (i > 0) {
leftWall = (((((((_root.ground.hitTest(this._x - 22, this._y - 50, true) or _root.ground.hitTest(this._x - 22, this._y - 40, true)) or _root.ground.hitTest(this._x - 22, this._y - 30, true)) or _root.ground.hitTest(this._x - 22, this._y - 20, true)) or _root.ground.hitTest(this._x - 11, this._y - 10, true)) or _root.ground.hitTest(this._x - 11, this._y, true)) or _root.ground.hitTest(this._x - 11, this._y + 11, true)) or _root.ground.hitTest(this._x - 11, this._y + 22, true)) or _root.ground.hitTest(this._x - 11, this._y + 27, true);
inGround = _root.ground.hitTest(this._x, this._y + 33, true);
if (inGround) {
this._y--;
}
onGround = _root.ground.hitTest(this._x, this._y + 35, true);
nearGround = _root.ground.hitTest(this._x, this._y + 39, true);
if ((!onGround) && (nearGround)) {
this._y++;
}
if (!nearGround) {
i = 1;
}
if (!leftWall) {
this._x = this._x - 1;
} else {
i = 1;
}
i--;
}
if (((!onGround) && (guyJumping == 0)) && (!nearGround)) {
guyJumping = 1;
guyJumpSpeed = 0;
}
if (guyFacing == 1) {
guyFacing = -1;
}
if (guyAnimation != -2) {
_root.guyCont.guy.gotoAndStop("walkLeft");
guyAnimation = -2;
}
} else if ((Right && (Left)) && (nearGround)) {
if (guyFacing == 1) {
i = 7;
while (i > 0) {
rightWall = (((((((_root.ground.hitTest(this._x + 22, this._y - 50, true) or _root.ground.hitTest(this._x + 22, this._y - 40, true)) or _root.ground.hitTest(this._x + 22, this._y - 30, true)) or _root.ground.hitTest(this._x + 22, this._y - 20, true)) or _root.ground.hitTest(this._x + 22, this._y - 10, true)) or _root.ground.hitTest(this._x + 11, this._y, true)) or _root.ground.hitTest(this._x + 11, this._y + 11, true)) or _root.ground.hitTest(this._x + 11, this._y + 22, true)) or _root.ground.hitTest(this._x + 11, this._y + 27, true);
inGround = _root.ground.hitTest(this._x, this._y + 33, true);
if (inGround) {
this._y--;
}
onGround = _root.ground.hitTest(this._x, this._y + 35, true);
nearGround = _root.ground.hitTest(this._x, this._y + 39, true);
if ((!onGround) && (nearGround)) {
this._y++;
}
if (!nearGround) {
i = 1;
}
if (!rightWall) {
this._x = this._x + 1;
} else {
i = 1;
}
i--;
}
if (((!onGround) && (guyJumping == 0)) && (!nearGround)) {
guyJumping = 1;
guyJumpSpeed = 0;
}
} else if ((guyFacing == -1) && (nearGround)) {
i = 7;
while (i > 0) {
leftWall = (((((((_root.ground.hitTest(this._x - 22, this._y - 50, true) or _root.ground.hitTest(this._x - 22, this._y - 40, true)) or _root.ground.hitTest(this._x - 22, this._y - 30, true)) or _root.ground.hitTest(this._x - 22, this._y - 20, true)) or _root.ground.hitTest(this._x - 11, this._y - 10, true)) or _root.ground.hitTest(this._x - 11, this._y, true)) or _root.ground.hitTest(this._x - 11, this._y + 11, true)) or _root.ground.hitTest(this._x - 11, this._y + 22, true)) or _root.ground.hitTest(this._x - 11, this._y + 27, true);
inGround = _root.ground.hitTest(this._x, this._y + 33, true);
if (inGround) {
this._y--;
}
onGround = _root.ground.hitTest(this._x, this._y + 35, true);
nearGround = _root.ground.hitTest(this._x, this._y + 39, true);
if ((!onGround) && (nearGround)) {
this._y++;
}
if (!nearGround) {
i = 1;
}
if (!leftWall) {
this._x = this._x - 1;
} else {
i = 1;
}
i--;
}
if (((!onGround) && (guyJumping == 0)) && (!nearGround)) {
guyJumping = 1;
guyJumpSpeed = 0;
}
}
} else if ((((!Right) && (!Left)) && (nearGround)) && (guyAttacking != 1)) {
if ((guyAnimation != 1) && (guyFacing == 1)) {
_root.guyCont.guy.gotoAndStop("stopRight");
guyAnimation = 1;
} else if ((guyAnimation != -1) && (guyFacing == -1)) {
_root.guyCont.guy.gotoAndStop("stopLeft");
guyAnimation = -1;
}
}
}
Instance of Symbol 178 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.healthBar._height = _root.guyHealth / 2;
if (_root.guyHealth < 0) {
_root.guyCont.removeMovieClip();
_root.area1Top.removeMovieClip();
_root.area3Top.removeMovieClip();
_root.area9Top.removeMovieClip();
_root.area11Top.removeMovieClip();
_root.clown1.removeMovieClip();
_root.clown2.removeMovieClip();
_root.clown3.removeMovieClip();
_root.ghost1.removeMovieClip();
_root.flame1.removeMovieClip();
_root.flame2.removeMovieClip();
_root.flame3.removeMovieClip();
_root.flame4.removeMovieClip();
_root.flame5.removeMovieClip();
_root.flame6.removeMovieClip();
_root.flame7.removeMovieClip();
_root.gotoAndStop("credits");
}
}
Frame 9
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
area1Top.removeMovieClip();
clown1.removeMovieClip();
clown2.removeMovieClip();
ground.gotoAndStop("area2");
startX = 15;
startY = 380;
guyCont._x = 15;
guyCont._y = 380;
duplicateMovieClip (enemyClown, "clown3", 2000);
setClown("clown3");
clown3._x = 335;
clown3._y = 435;
Instance of Symbol 181 MovieClip "area2" in Frame 9
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 10
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
clown3.removeMovieClip();
startX = 15;
startY = 373;
guyCont._x = 15;
guyCont._y = 373;
ground.gotoAndStop("area3");
area3Top.swapDepths(9999);
Instance of Symbol 183 MovieClip "area3" in Frame 10
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 11
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
area3Top.removeMovieClip();
ground.gotoAndStop("area4");
startX = 15;
startY = 340;
guyCont._x = 15;
guyCont._y = 340;
Instance of Symbol 187 MovieClip "area4" in Frame 11
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 12
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area5");
startX = 15;
startY = 338;
guyCont._x = 15;
guyCont._y = 338;
Instance of Symbol 189 MovieClip "area5" in Frame 12
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 13
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area6");
startX = 15;
startY = 151;
guyCont._x = 15;
guyCont._y = 151;
Instance of Symbol 200 MovieClip "area6" in Frame 13
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 14
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area7");
startX = 15;
startY = 413;
guyCont._x = 15;
guyCont._y = 413;
Instance of Symbol 203 MovieClip "area7" in Frame 14
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 15
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area8");
startX = 15;
startY = 337;
guyCont._x = 15;
guyCont._y = 337;
Instance of Symbol 205 MovieClip "area8" in Frame 15
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 16
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area9");
startX = 15;
startY = 431;
guyCont._x = 15;
guyCont._y = 431;
area9Top.swapDepths(9999);
Instance of Symbol 207 MovieClip "area9" in Frame 16
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 17
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
area9Top.removeMovieClip();
ground.gotoAndStop("area10");
startX = 15;
startY = 397;
guyCont._x = 15;
guyCont._y = 397;
Instance of Symbol 218 MovieClip in Frame 17
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 18
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area11");
startX = 15;
startY = 411;
guyCont._x = 15;
guyCont._y = 411;
area11Top.swapDepths(9999);
Instance of Symbol 229 MovieClip in Frame 18
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 19
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
area11Top.removeMovieClip();
ground.gotoAndStop("area12");
startX = 15;
startY = 385;
guyCont._x = 15;
guyCont._y = 385;
duplicateMovieClip (enemyGhost, "ghost1", 2000);
setGhost("ghost1");
ghost1._x = 400;
ghost1._y = 260;
Instance of Symbol 250 MovieClip in Frame 19
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 20
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ghost1.removeMovieClip();
ground.gotoAndStop("area13");
startX = 15;
startY = 167;
guyCont._x = 15;
guyCont._y = 167;
duplicateMovieClip (enemyGhost, "ghost1", 2000);
setGhost("ghost1");
ghost1._x = 500;
ghost1._y = 355;
Instance of Symbol 269 MovieClip in Frame 20
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 21
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ghost1.removeMovieClip();
ground.gotoAndStop("area14");
startX = 15;
startY = 370;
guyCont._x = 15;
guyCont._y = 370;
duplicateMovieClip (enemyGhost, "ghost1", 2000);
setGhost("ghost1");
ghost1._x = 480;
ghost1._y = 300;
Instance of Symbol 271 MovieClip in Frame 21
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 22
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ghost1.removeMovieClip();
ground.gotoAndStop("area15");
startX = 15;
startY = 317;
guyCont._x = 15;
guyCont._y = 317;
Instance of Symbol 273 MovieClip in Frame 22
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 23
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area16");
startX = 15;
startY = 322;
guyCont._x = 15;
guyCont._y = 322;
Instance of Symbol 276 MovieClip in Frame 23
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 24
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area17");
startX = 15;
startY = 397;
guyCont._x = 15;
guyCont._y = 397;
duplicateMovieClip (enemyFlame, "flame1", 2000);
setFlame("flame1");
flame1._x = 300;
flame1._y = 390;
duplicateMovieClip (enemyFlame, "flame2", 1999);
setFlame("flame2");
flame2._x = 300;
flame2._y = 390;
duplicateMovieClip (enemyFlame, "flame3", 1998);
setFlame("flame3");
flame3._x = 300;
flame3._y = 390;
duplicateMovieClip (enemyFlame, "flame4", 1997);
setFlame("flame4");
flame4._x = 300;
flame4._y = 390;
duplicateMovieClip (enemyFlame, "flame5", 1996);
setFlame("flame5");
flame5._x = 300;
flame5._y = 390;
Instance of Symbol 279 MovieClip in Frame 24
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 25
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
flame1.removeMovieClip();
flame2.removeMovieClip();
flame3.removeMovieClip();
flame4.removeMovieClip();
flame5.removeMovieClip();
ground.gotoAndStop("area18");
startX = 15;
startY = 389;
guyCont._x = 15;
guyCont._y = 389;
Instance of Symbol 288 MovieClip in Frame 25
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 26
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area19");
startX = 15;
startY = 323;
guyCont._x = 15;
guyCont._y = 323;
duplicateMovieClip (enemyFlame, "flame1", 2000);
setFlame("flame1");
flame1._x = 307;
flame1._y = 320;
duplicateMovieClip (enemyFlame, "flame2", 1999);
setFlame("flame2");
flame2._x = 310;
flame2._y = 320;
duplicateMovieClip (enemyFlame, "flame3", 1998);
setFlame("flame3");
flame3._x = 315;
flame3._y = 320;
duplicateMovieClip (enemyFlame, "flame4", 1997);
setFlame("flame4");
flame4._x = 321;
flame4._y = 320;
duplicateMovieClip (enemyFlame, "flame5", 1996);
setFlame("flame5");
flame5._x = 325;
flame5._y = 320;
duplicateMovieClip (enemyFlame, "flame6", 1995);
setFlame("flame6");
flame6._x = 330;
flame6._y = 320;
duplicateMovieClip (enemyFlame, "flame7", 1994);
setFlame("flame7");
flame7._x = 334;
flame7._y = 320;
duplicateMovieClip (enemyGhost, "ghost1", 1993);
setGhost("ghost1");
ghost1._x = 635;
ghost1._y = 380;
Instance of Symbol 290 MovieClip in Frame 26
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Frame 27
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ghost1.removeMovieClip();
flame1.removeMovieClip();
flame2.removeMovieClip();
flame3.removeMovieClip();
flame4.removeMovieClip();
flame5.removeMovieClip();
flame6.removeMovieClip();
flame7.removeMovieClip();
ground.gotoAndStop("area20");
startX = 15;
startY = 393;
guyCont._x = 15;
guyCont._y = 393;
Instance of Symbol 292 MovieClip in Frame 27
onClipEvent (enterFrame) {
var nextArea = (_root.guyCont._x > 610);
if (nextArea) {
_root.play();
}
}
Instance of Symbol 358 MovieClip "drag" in Frame 27
onClipEvent (load) {
hp = 120;
action = 1;
aTimer = 0;
gotoAndStop ("walk");
}
onClipEvent (enterFrame) {
if (this._currentFrame < 14) {
if (action == 1) {
this._x = this._x - 4;
aTimer++;
if (aTimer > 40) {
action = 2;
aTimer = 0;
gotoAndStop ("stomp");
}
} else if (action == 2) {
aTimer++;
if (aTimer > 94) {
action = 3;
aTimer = 0;
gotoAndStop ("walk");
_xscale = (_xscale * -1);
}
} else {
this._x = this._x + 4;
aTimer++;
if (aTimer > 40) {
action = 1;
aTimer = 0;
_xscale = (_xscale * -1);
}
}
}
}
Frame 28
stop();
coinNo = 1;
i = 8;
while (i > 0) {
_root["coin" + i].removeMovieClip();
i--;
}
ground.gotoAndStop("area21");
startX = 15;
startY = 393;
guyCont._x = 15;
guyCont._y = 393;
Instance of Symbol 380 MovieClip "area21" in Frame 28
onClipEvent (enterFrame) {
var nextArea = _root.guyCont.hitTest(522, 116, true);
if (nextArea) {
_root.guyCont.removeMovieClip();
this.portal.gotoAndPlay("warp");
}
}
Frame 225
stop();
Symbol 7 MovieClip Frame 1
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loadBar._width = getPercent * 384;
loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.play();
}
Symbol 7 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 MovieClip Frame 115
_root.play();
Symbol 37 Button
on (release) {
_root.startX = 30;
_root.startY = 360;
gotoAndStop ("level1");
}
Symbol 38 Button
on (release) {
gotoAndStop ("controls");
}
Symbol 39 Button
on (release) {
gotoAndStop ("story");
}
Symbol 40 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 47 Button
on (release) {
gotoAndStop ("title");
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 22
stop();
this._x = -1999;
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 4
stop();
Symbol 86 MovieClip Frame 5
stop();
Symbol 86 MovieClip Frame 6
stop();
Symbol 86 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 8
stop();
Symbol 86 MovieClip Frame 9
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 11
stop();
Symbol 86 MovieClip Frame 12
stop();
Symbol 86 MovieClip Frame 13
stop();
Symbol 86 MovieClip Frame 14
stop();
Symbol 86 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 16
stop();
Symbol 86 MovieClip Frame 17
stop();
Symbol 86 MovieClip Frame 18
stop();
Symbol 86 MovieClip Frame 19
stop();
Symbol 86 MovieClip Frame 20
stop();
Symbol 86 MovieClip Frame 21
stop();
Symbol 96 MovieClip Frame 8
gotoAndPlay (1);
Symbol 96 MovieClip Frame 49
stop();
Symbol 102 MovieClip Frame 19
gotoAndPlay (1);
Symbol 124 MovieClip Frame 5
this._parent.gotoAndStop("walkRight");
this._parent.mobAnimation = 2;
Symbol 132 MovieClip Frame 1
delete this._parent.onEnterFrame;
Symbol 132 MovieClip Frame 15
stop();
this.chance = random(2);
if (this.chance == 0) {
duplicateMovieClip (_root.coin, "coin" + _root.coinNo, 1000 + _root.coinNo);
_root["coin" + _root.coinNo]._x = this._parent._x;
_root["coin" + _root.coinNo]._y = this._parent._y + 10;
_root["coin" + _root.coinNo].onEnterFrame = function () {
this.collect = (this._parent.guyCont.hitTest(this._x, this._y, true) or this._parent.guyCont.hitTest(this._x + 5, this._y, true)) or this._parent.guyCont.hitTest(this._x - 5, this._y, true);
if (this.collect) {
_root.guyHealth = _root.guyHealth + 10;
if (_root.guyHealth > 100) {
_root.guyHealth = 100;
}
this._x = -1000;
this.gotoAndPlay("collect");
}
};
_root.coinNo++;
}
this._parent._x = -1000;
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 9
stop();
Symbol 133 MovieClip Frame 17
stop();
Symbol 133 MovieClip Frame 23
stop();
Symbol 167 MovieClip Frame 9
if (!_root.guyCont.Attack) {
_root.guyCont.guyAttacking = 0;
}
gotoAndPlay (8);
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 9
stop();
Symbol 170 MovieClip Frame 17
stop();
walkRight.gotoAndPlay(1);
Symbol 170 MovieClip Frame 25
stop();
walkLeft.gotoAndPlay(1);
Symbol 170 MovieClip Frame 33
stop();
Symbol 170 MovieClip Frame 41
stop();
Symbol 170 MovieClip Frame 49
stop();
Symbol 170 MovieClip Frame 57
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 4
gotoAndPlay ("invincible");
Instance of Symbol 192 MovieClip "spike" in Symbol 193 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuyRight = _root.guyCont.guyHitRight.hitTest((this._x + this._parent._x) + this._parent._parent._x, ((this._y + this._parent._y) + this._parent._parent._y) + 20, true);
hitGuyLeft = _root.guyCont.guyHitLeft.hitTest((this._x + this._parent._x) + this._parent._parent._x, ((this._y + this._parent._y) + this._parent._parent._y) + 20, true);
if (((hitGuyLeft && (_root.guyCont.guyHurt != 1)) && (this._parent._currentframe > 1)) && (this._parent._currentframe < 30)) {
_root.damageGuy(15);
_root.guyCont._x = _root.guyCont._x + 20;
_root.guyCont.guyHurt = 1;
} else if (((hitGuyRight && (_root.guyCont.guyHurt != 1)) && (this._parent._currentframe > 1)) && (this._parent._currentframe < 30)) {
_root.damageGuy(15);
_root.guyCont._x = _root.guyCont._x - 20;
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 192 MovieClip "spike" in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuyRight = _root.guyCont.guyHitRight.hitTest((this._x + this._parent._x) + this._parent._parent._x, ((this._y + this._parent._y) + this._parent._parent._y) - 20, true);
hitGuyLeft = _root.guyCont.guyHitLeft.hitTest((this._x + this._parent._x) + this._parent._parent._x, ((this._y + this._parent._y) + this._parent._parent._y) - 20, true);
if (((hitGuyLeft && (_root.guyCont.guyHurt != 1)) && (this._parent._currentframe > 1)) && (this._parent._currentframe < 30)) {
_root.damageGuy(15);
_root.guyCont._x = _root.guyCont._x + 20;
_root.guyCont.guyHurt = 1;
} else if (((hitGuyRight && (_root.guyCont.guyHurt != 1)) && (this._parent._currentframe > 1)) && (this._parent._currentframe < 30)) {
_root.damageGuy(15);
_root.guyCont._x = _root.guyCont._x - 20;
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 248 MovieClip "tent" in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = ((((this.hitTest(_root.guyCont._x, _root.guyCont._y, true) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y + 15, true);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont._y = _root.guyCont._y - 10;
_root.guyCont.guyHurt = 1;
}
}
Symbol 261 MovieClip Frame 4
this._parent.gotoAndStop("walkRight");
this._parent.mobAnimation = 2;
Symbol 266 MovieClip Frame 1
delete this._parent.onEnterFrame;
Symbol 266 MovieClip Frame 18
stop();
this.chance = random(2);
if (this.chance == 0) {
duplicateMovieClip (_root.coin, "coin" + _root.coinNo, 1000 + _root.coinNo);
_root["coin" + _root.coinNo]._x = this._parent._x;
_root["coin" + _root.coinNo]._y = this._parent._y + 15;
_root["coin" + _root.coinNo].onEnterFrame = function () {
this.collect = (this._parent.guyCont.hitTest(this._x, this._y, true) or this._parent.guyCont.hitTest(this._x + 5, this._y, true)) or this._parent.guyCont.hitTest(this._x - 5, this._y, true);
if (this.collect) {
_root.guyHealth = _root.guyHealth + 10;
if (_root.guyHealth > 100) {
_root.guyHealth = 100;
}
this._x = -1000;
this.gotoAndPlay("collect");
}
};
_root.coinNo++;
}
this._parent._x = -1000;
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 9
stop();
Symbol 267 MovieClip Frame 17
stop();
Symbol 267 MovieClip Frame 23
stop();
Instance of Symbol 248 MovieClip "tent" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = ((((this.hitTest(_root.guyCont._x, _root.guyCont._y, true) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y + 15, true);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont._y = _root.guyCont._y - 10;
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 248 MovieClip "tent" in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = ((((this.hitTest(_root.guyCont._x, _root.guyCont._y, true) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y + 15, true);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont._y = _root.guyCont._y - 10;
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 248 MovieClip "tent2" in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = ((((this.hitTest(_root.guyCont._x, _root.guyCont._y, true) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y + 15, true);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont._y = _root.guyCont._y - 10;
_root.guyCont.guyHurt = 1;
}
}
Symbol 281 MovieClip Frame 15
stop();
Symbol 285 MovieClip Frame 1
delete this._parent.onEnterFrame;
Symbol 285 MovieClip Frame 16
stop();
this.chance = random(3);
if (this.chance == 3) {
duplicateMovieClip (_root.coin, "coin" + _root.coinNo, 1000 + _root.coinNo);
_root["coin" + _root.coinNo]._x = this._parent._x;
_root["coin" + _root.coinNo]._y = this._parent._y + 10;
_root["coin" + _root.coinNo].onEnterFrame = function () {
this.collect = (this._parent.guyCont.hitTest(this._x, this._y, true) or this._parent.guyCont.hitTest(this._x + 5, this._y, true)) or this._parent.guyCont.hitTest(this._x - 5, this._y, true);
if (this.collect) {
_root.guyHealth = _root.guyHealth + 10;
if (_root.guyHealth > 100) {
_root.guyHealth = 100;
}
this._x = -1000;
this.gotoAndPlay("collect");
}
};
_root.coinNo++;
}
this._parent._x = -1000;
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 9
stop();
Symbol 286 MovieClip Frame 17
stop();
Symbol 286 MovieClip Frame 23
stop();
Instance of Symbol 248 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = ((((this.hitTest(_root.guyCont._x, _root.guyCont._y, true) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y, true)) or this.hitTest(_root.guyCont._x, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x + 6, _root.guyCont._y + 15, true)) or this.hitTest(_root.guyCont._x - 6, _root.guyCont._y + 15, true);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont._y = _root.guyCont._y - 10;
_root.guyCont.guyHurt = 1;
}
}
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 323 MovieClip in Symbol 329 MovieClip Frame 12
onClipEvent (enterFrame) {
hitGuy = this.hitTest(_root.guyCont);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 323 MovieClip in Symbol 329 MovieClip Frame 12
onClipEvent (enterFrame) {
hitGuy = this.hitTest(_root.guyCont);
if (hitGuy && (_root.guyCont.guyHurt != 1)) {
_root.damageGuy(15);
_root.guyCont.guyHurt = 1;
}
}
Instance of Symbol 328 MovieClip "dragTailHit" in Symbol 329 MovieClip Frame 33
onClipEvent (load) {
_root.drag.getHitWait = 0;
}
onClipEvent (enterFrame) {
this.getHit = _root.guyCont.guy.atkChar.hammerHit.hitTest(this);
if ((_root.drag.hp > 0) && (_root.drag.getHitWait > 0)) {
_root.drag.getHitWait--;
} else if (this.getHit) {
_root.drag.hp = _root.drag.hp - 10;
_root.drag.hurt.gotoAndPlay(2);
_root.drag.getHitWait = 6;
if (_root.drag.hp <= 0) {
_root.drag.gotoAndStop("deathRight");
}
}
}
Symbol 357 MovieClip Frame 68
stop();
this._parent._x = -1000;
_root.ground.barrier.gotoAndPlay(2);
Symbol 358 MovieClip Frame 1
stop();
Instance of Symbol 309 MovieClip "dragHit" in Symbol 358 MovieClip Frame 1
onClipEvent (enterFrame) {
hitGuy = _root.guyCont.guyHitRight.hitTest(this) or _root.guyCont.guyHitLeft.hitTest(this);
if (hitGuy) {
if (_root.guyCont._x > _root.drag._x) {
_root.guyCont._x = _root.guyCont._x + 20;
if (_root.guyCont._x > 554) {
_root.guyCont._x = 554;
}
} else {
_root.guyCont._x = _root.guyCont._x - 20;
}
if (_root.guyCont.guyHurt != 1) {
_root.damageGuy(10);
_root.guyCont.guyHurt = 1;
}
}
}
Symbol 358 MovieClip Frame 7
stop();
Symbol 358 MovieClip Frame 14
stop();
stopAllSounds();
_root.bossMusic.gotoAndPlay("boom");
Symbol 361 MovieClip Frame 1
stopAllSounds();
Symbol 361 MovieClip Frame 2
stop();
Symbol 361 MovieClip Frame 59
stop();
Symbol 379 MovieClip Frame 5
gotoAndPlay (1);
Symbol 379 MovieClip Frame 48
stop();
_root.play();
Symbol 414 Button
on (release) {
getURL ("http://snapester.deviantart.com", "_blank");
}
Symbol 418 Button
on (release) {
getURL ("http://www.shinki.co.uk", "_blank");
}
Symbol 422 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 428 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}