Frame 1
Stage.showMenu = false;
_root._quality = "low";
stop();
bar.onEnterFrame = function () {
bt = _root.getBytesTotal();
bl = _root.getBytesLoaded();
perc = (bl / bt) * 100;
this._yscale = perc;
if (perc == 100) {
delete this.onEnterFrame;
_root.gotoAndStop(2);
}
};
Frame 2
stop();
_root.catkick = new Sound();
_root.catkick.attachSound("catkick");
_root.catkick.setVolume(50);
_root.moveit = new Sound();
_root.moveit.attachSound("move");
_root.moveit.setVolume(70);
_root.jumpsound = new Sound();
_root.jumpsound.attachSound("jump");
_root.jumpsound.setVolume(30);
_root.kicksound = new Sound();
_root.kicksound.attachSound("kick");
_root.kicksound.setVolume(30);
_root.lavasound = new Sound();
_root.lavasound.attachSound("lava");
_root.menusound = new Sound();
_root.menusound.attachSound("menu");
_root.pbounce = new Sound();
_root.pbounce.attachSound("pbounce");
_root.ropenoise = new Sound();
_root.ropenoise.attachSound("onrope");
_root.snakejump = new Sound();
_root.snakejump.attachSound("snakejump");
_root.reaphit = new Sound();
_root.reaphit.attachSound("reaperhit");
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
_root.moveit.setVolume(60);
_root.snakejump.setVolume(40);
_root.snakejump.setVolume(40);
_root.lavasound.setVolume(40);
_root.pbounce.setVolume(30);
Frame 3
function updateTime() {
if (((!_root.done) && (!_root.levelingup)) && (!_root.pausy)) {
_root.timey = _root.timey + 1;
}
}
function waitfordeath() {
clearInterval(_root.mytime);
_root.deathcv = _root.deathcv + 1;
if (_root.deathcv >= 25) {
trace("gobot after is: " + _root.gobot);
var which = (_root.gobot + 1);
clearInterval(_root.gobot);
clearInterval(which);
clearInterval(mytime);
_root.gotoAndStop("gameover");
}
}
function gameOver(num) {
stopAllSounds();
clearInterval(_root.mytime);
if (who.onrope) {
who.onrope = false;
who.jumping = false;
who.zenith = true;
}
gam.d.ducking = false;
gam.d.jumping = false;
gam.d.attacking = false;
trace("gameover" + num);
thing = eval ("gam.d.char" + num);
thing.guts.gotoAndStop("die");
thing.dead = true;
_root.done = true;
_root.deathcv = 0;
if (_root.gobot == undefined) {
_root.gobot = setInterval(waitfordeath, 100);
trace("gobot before is: " + _root.gobot);
replay._visible = false;
}
}
function diephys(who) {
if ((((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!who.jumping)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) && (!gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + who.grav;
if (who.grav < 10) {
who.grav = who.grav + _root.grav;
}
}
while ((((((((((((((((((((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true))) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true))) {
who._y = who._y - 1;
who.grav = 0;
who.jumping = false;
who.zenith = false;
}
}
function runSwitch(num) {
gam.d.jumping = false;
if ((num == 0) && (!gam.d.flashing)) {
if (_root.health == 0) {
_root.done = true;
gameOver(0);
gameOver(1);
gam.d.attacking = false;
gam.d.char0.gotoAndStop("die");
gam.d.char1.gotoAndStop("die");
}
if (_root.health == 1) {
_root.health = _root.health - 1;
gam.d.flashing = true;
gam.d.char0._visible = false;
gam.d.char0.guts.unloadMovie();
gam.d.char0.guts.removeMovieClip();
h = gam.attachMovie("char0", "deaddude0", 100);
h._x = gam.d._x + 26;
h._y = gam.d._y;
h.guts.gotoAndStop("die");
h.grav = 0;
h.onEnterFrame = function () {
diephys(this);
};
gam.d.char0.dead = true;
gam.d.tester._width = 17.6;
gam.d.tester._x = -13;
gam.d.char1._x = -2;
if (gam.d._xscale == 100) {
gam.d._x = gam.d._x - 30;
}
_root.combo = 2;
}
}
if ((num == 1) && (!gam.d.flashing)) {
if (_root.health == 0) {
_root.done = true;
gameOver(1);
gameOver(0);
gam.d.attacking = false;
gam.d.char1.gotoAndStop("die");
gam.d.char0.gotoAndStop("die");
}
if (_root.health == 1) {
_root.health = _root.health - 1;
gam.d.flashing = true;
gam.d.char1._visible = false;
gam.d.char1.guts.unloadMovie();
gam.d.char1.guts.removeMovieClip();
h = gam.attachMovie("char1", "deaddude1", 101);
h._x = gam.d._x - 26;
h._y = gam.d._y;
h.guts.gotoAndStop("die");
h.grav = 0;
h.onEnterFrame = function () {
diephys(this);
};
gam.d.char1.dead = true;
gam.d.tester._width = 17.6;
gam.d.tester._x = -15;
gam.d.char0._x = -2;
if (gam.d._xscale == 100) {
gam.d._x = gam.d._x + 30;
}
_root.combo = 1;
}
}
}
function skull(who) {
if (who.delay == undefined) {
who.delay = 0;
}
if (!who.dead) {
if (who.delaycv >= who.delay) {
who._x = who._x + who.xspeed;
who._y = who._y + who.yspeed;
if (((who._y > (Stage.height + who._height)) || ((who._x < 0) && (who.dir == -1))) || ((who._x > Stage.width) && (who.dir == 1))) {
who._y = who.starty;
who._x = who.startx;
who.delaycv = 0;
}
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea)) {
runSwitch(0);
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea)) {
runSwitch(1);
}
}
if (who.delaycv < who.delay) {
who.delaycv = who.delaycv + 1;
}
}
}
function snake(who) {
if (!who.dead) {
var dist = (who._x - gam.d._x);
var dist2 = Math.abs(dist);
if (((dist2 < 130) && (!who.inpursuit)) && (!gam.d.dead)) {
who.inpursuit = true;
who.distgotten = false;
who.chasecount = 0;
}
if (who.inpursuit) {
who.chasecount = who.chasecount + 1;
if (who.chasecount >= 75) {
who.inpursuit = false;
}
if (!who.distgotten) {
if (dist > 0) {
who.dir = -1;
} else {
who.dir = 1;
}
who.distgotten = true;
}
if ((!who.jumping) && (!who.zenith)) {
who.jumping = true;
who._y = who._y - 10;
who.temp = 10;
who.guts.play();
_root.snakejump.start();
}
}
if ((((who.deccount > who.decisioninterval) && (who.onground)) && (!who.jumping)) && (!who.zenith)) {
if (!who.inpursuit) {
var dec = random(4);
if (dec == 0) {
who.dir = 0;
who.guts.stop();
}
if (dec == 1) {
who.dir = 1;
who.guts.play();
}
if (dec == 2) {
who.dir = -1;
who.guts.play();
}
if (dec == 3) {
trace("jump");
var whicher = random(3);
if (whicher == 0) {
who.dir = -1;
}
if (whicher == 1) {
who.dir = 0;
}
if (whicher == 2) {
who.dir = 1;
}
who.jumping = true;
_root.snakejump.start();
who._y = who._y - 10;
who.temp = 10;
who.guts.play();
}
who.deccount = 0;
}
}
who.deccount = who.deccount + 1;
if (who.jumping) {
if (!who.zenith) {
if (who.temp > 0) {
who._y = who._y - who.temp;
who.temp = who.temp - 1;
} else {
who.zenith = true;
who.jumping = false;
}
}
}
if ((((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!who.jumping)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) && (!gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + who.grav;
if (who.grav < 10) {
who.grav = who.grav + _root.grav;
}
}
who.storex = who._x;
who.storey = who._y;
who.bounced = false;
who.blastcv = 0;
while (((((((((((((((((((((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.bounced)) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true) && (!who.bounced))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true) && (!who.bounced))) || ((gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || ((gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping)) && (!who.bounced))) || (gam.objs.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true) && (!who.bounced))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true) && (!who.bounced))) {
who._y = who._y - 1;
who.blastcv = who.blastcv + 1;
if (who.blastcv > 9) {
who._y = who.storey;
who.dir = who.dir * -1;
who._x = who._x + who.dir;
who.jumping = false;
who.bounced = true;
}
who.grav = 0;
who.jumping = false;
who.zenith = false;
who.onground = true;
if ((((gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 525, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (who._x > Stage.width)) {
who._x = who._x - 5;
who.inpursuit = false;
who.jumping = false;
who.dir = -1;
}
if ((((gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 25, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (who._x < 0)) {
who._x = who._x + 5;
who.inpursuit = false;
who.jumping = false;
who.dir = 1;
}
}
if ((((gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 525, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (who._x > Stage.width)) {
who._x = who._x - 5;
who.dir = -1;
}
if ((((gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 25, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (who._x < 0)) {
who._x = who._x + 5;
who.dir = 1;
}
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea)) {
runSwitch(0);
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea)) {
runSwitch(1);
}
if (who.dir == 1) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who._x = who._x + (who.dir * who.speed);
}
}
function cat(who) {
if ((!who.dead) && (!who.kicked)) {
if ((((who.deccount > who.decisioninterval) && (who.onground)) && (!who.jumping)) && (!who.zenith)) {
var dec = random(4);
if (dec == 0) {
who.dir = 0;
who.guts.stop();
}
if (dec == 1) {
who.dir = 1;
who.guts.play();
}
if (dec == 2) {
who.dir = -1;
who.guts.play();
}
if (dec == 3) {
trace("jump");
var whicher = random(3);
if (whicher == 0) {
who.dir = -1;
}
if (whicher == 1) {
who.dir = 0;
}
if (whicher == 2) {
who.dir = 1;
}
who.jumping = true;
who._y = who._y - 10;
who.temp = 10;
who.guts.play();
}
who.deccount = 0;
}
who.deccount = who.deccount + 1;
if (who.jumping) {
if (!who.zenith) {
if (who.temp > 0) {
who._y = who._y - who.temp;
who.temp = who.temp - 1;
} else {
who.zenith = true;
who.jumping = false;
}
}
}
if ((((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!who.jumping)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) && (!gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + who.grav;
if (who.grav < 10) {
who.grav = who.grav + _root.grav;
}
}
while ((((((((((((((((((((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true))) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true))) {
if (!who.jumping) {
who._y = who._y - 1;
who.grav = 0;
who.jumping = false;
who.zenith = false;
who.onground = true;
}
}
if ((((gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 525, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (who._x > Stage.width)) {
who._x = who._x - 5;
who.dir = -1;
}
if ((((gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 25, true) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 25, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (who._x < 0)) {
who._x = who._x + 5;
who.dir = 1;
}
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea)) {
runSwitch(0);
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea)) {
runSwitch(1);
}
if (who.dir == 1) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who._x = who._x + (who.dir * who.speed);
}
if (who.kicked) {
who._x = who._x + (20 * who.dir);
who._y = who._y - 20;
who._rotation = who._rotation + (25 * who.dir);
if ((who._x > Stage.width) || (who._x < 0)) {
gam.d.attacking = false;
who.unloadMovie();
who.removeMovieClip();
who.dead = true;
}
}
}
function lava(who) {
if (!gam.d.flashing) {
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea) && (!gam.d.char0.dead)) {
runSwitch(0);
_root.lavasound.start();
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea) && (!gam.d.char1.dead)) {
runSwitch(1);
_root.lavasound.start();
}
}
}
function skeleton(who) {
if (!who.dead) {
if ((((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!who.jumping)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) && (!gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + who.grav;
if (who.grav < 10) {
who.grav = who.grav + _root.grav;
}
}
while ((((((((((((((((((((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true))) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.hitarea._width / 6), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.hitarea._width / 6), who._y + offsety, true))) {
who._y = who._y - 1;
who.grav = 0;
who.jumping = false;
who.zenith = false;
}
if ((((gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (who._x > Stage.width)) {
who._x = who._x - 5;
if (!who.speedup) {
who.dir = -1;
}
}
if ((((gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (who._x < 0)) {
who._x = who._x + 5;
if (!who.speedup) {
who.dir = 1;
}
}
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea)) {
runSwitch(0);
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea)) {
runSwitch(1);
}
if (who.dir == 1) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who._x = who._x + (who.dir * who.speed);
}
}
function mummy(who) {
skeleton(who);
var dist = (who._x - gam.d._x);
var dist2 = Math.abs(dist);
if (dist2 < 130) {
who.chase = true;
who.chasecount = 0;
}
if (who.chase) {
who.chasecount = who.chasecount + 1;
if (!who.speedup) {
who.speedup = true;
who.speed = who.speed * 4;
if (!_root.done) {
if (dist > 0) {
who.dir = -1;
} else {
who.dir = 1;
}
}
}
if (who.chasecount > 30) {
who.chase = false;
who.speed = who.speed / 4;
who.speedup = false;
}
}
}
function bat(who) {
if (!who.dead) {
if ((who._x > 0) && (!who.goright)) {
who._x = who._x - who.xspeed;
}
if (who._x < 0) {
who.goright = true;
}
if (who.goright) {
if (who._x < Stage.width) {
who._x = who._x + who.xspeed;
}
if (who._x > Stage.width) {
who.goright = false;
}
}
if ((who._y > 0) && (!who.godown)) {
who._y = who._y - who.yspeed;
}
if (who._y < 0) {
who.godown = true;
}
if (who.godown) {
if (who._y < Stage.height) {
who._y = who._y + who.yspeed;
}
if (who._y > (Stage.height - 120)) {
who.godown = false;
}
}
if (who.hitarea.hitTest(gam.d.char0.guts.hitarea)) {
runSwitch(0);
}
if (who.hitarea.hitTest(gam.d.char1.guts.hitarea)) {
runSwitch(1);
}
}
}
function witch(who) {
if ((who.hitarea.hitTest(gam.d.char0.guts.hitarea) && (who._x > 45)) && (who._x < (Stage.width - 45))) {
runSwitch(0);
}
if ((who.hitarea.hitTest(gam.d.char1.guts.hitarea) && (who._x > 45)) && (who._x < (Stage.width - 45))) {
runSwitch(1);
}
if (who.go) {
if (who.dir == 0) {
who._x = who._x + who.speed;
who._xscale = 100;
if (who._x > ((Stage.width + (who._width / 2)) + 10)) {
var whichside = random(2);
if (whichside == 0) {
who.dir = 0;
who._x = -who._width;
} else {
who.dir = 1;
who._x = Stage.width + who._width;
}
who.go = false;
}
} else {
who._x = who._x - who.speed;
who._xscale = -100;
if (who._x < ((-(who._width / 2)) - 10)) {
var whichside = random(2);
if (whichside == 0) {
who.dir = 0;
who._x = -who._width;
} else {
who.dir = 1;
who._x = Stage.width + who._width;
}
who.go = false;
}
}
} else {
who.cv = who.cv + 1;
if (who.cv >= who.waittime) {
who.go = true;
who._y = gam.d._y - (who._height / 2);
who.cv = 0;
}
}
}
function spider(who, biggy) {
if (who.go) {
if ((!gam.antiwalk.hitTest(who._x + who.guts._x, (who._y + who.guts._y) + who.guts.hitarea._height, true)) && (!gam.clouds.hitTest(who._x + who.guts._x, (who._y + who.guts._y) + who.guts.hitarea._height, true))) {
if (!who.goup) {
who.guts._y = who.guts._y + who.speed;
}
} else {
who.dtime = who.dtime + 1;
if (who.dtime >= who.downwait) {
who.goup = true;
who.dtime = 0;
}
}
if (who.goup) {
who.guts._y = who.guts._y - (who.speed / 2);
if (who.guts._y <= who.starty) {
who.go = false;
who.cv = 0;
}
}
} else {
who.cv = who.cv + 1;
if (who.cv >= who.upwait) {
who.go = true;
who.goup = false;
if (biggy) {
who._x = random(500) + 80;
}
}
}
if (who._visible && (!who.dead)) {
if (!gam.d.ducking) {
if (who.guts.hitarea.hitTest(gam.d.char0.hitarea) && (!gam.d.char0.dead)) {
trace("Got killed standing up!");
runSwitch(0);
}
if (who.guts.hitarea.hitTest(gam.d.char1.hitarea) && (!gam.d.char1.dead)) {
runSwitch(1);
}
} else {
if (who.guts.hitarea.hitTest(gam.d.char0.guts.hitarea) && (!gam.d.char0.dead)) {
trace("BUUAGAGAGA");
runSwitch(0);
}
if (who.guts.hitarea.hitTest(gam.d.char1.guts.hitarea) && (!gam.d.char1.dead)) {
runSwitch(1);
}
}
}
w = who.createEmptyMovieClip("web", 1);
w.lineStyle(2, 16777215);
w.lineTo(0, who.guts._y);
}
function ghost(who) {
if ((who.hitarea.hitTest(gam.d.char0.guts.hitarea) && (who._x > 55)) && (who._x < (Stage.width - 55))) {
runSwitch(0);
}
if ((who.hitarea.hitTest(gam.d.char1.guts.hitarea) && (who._x > 55)) && (who._x < (Stage.width - 55))) {
runSwitch(1);
}
if (who.go) {
if (who.dir == 0) {
who._xscale = 100;
if (who._x < (Stage.width + who._width)) {
who._x = who._x + who.speed;
} else {
who.go = false;
}
} else {
who._xscale = -100;
if (who._x > (-who._width)) {
who._x = who._x - who.speed;
} else {
who.go = false;
}
}
} else {
who.cv = who.cv + 1;
if (who.cv == who.waittime) {
who.go = true;
who._x = who.startx;
who._y = gam.d._y - 50;
who.cv = 0;
}
}
}
function getBad(who) {
badarray.push(who);
}
function getObj(who) {
objarray.push(who);
}
function initLev() {
if (_root.lev != 25) {
trace("hello");
_root.levmuse.play();
}
_root.levelingup = false;
_root.pausy = false;
_root.done = false;
_root.gobot = undefined;
_root.replay._visible = true;
_root.gotoAndStop("lvl" + _root.lev);
gam.dir = directionarray[_root.lev];
if (_root.combo == 0) {
gam.attachMovie("combo0", "d", 999999);
_root.health = 1;
}
if (_root.combo == 1) {
gam.attachMovie("jek", "d", 999999);
_root.health = 0;
}
if (_root.combo == 2) {
gam.attachMovie("ponda", "d", 999999);
_root.health = 0;
}
if (directionarray[_root.lev] == 1) {
gam.d.char0._xscale = -100;
gam.d.char1._xscale = -100;
}
dude = gam.d;
dude.remembercombo = _root.combo;
dude.dead = false;
dude.grav = 0;
dude.speed = 6;
dude.jmpsp = 12.6;
dude.zenith = true;
dude.r = 39;
dude.l = 37;
dude.u = 38;
dude.c = 40;
dude.a = 65;
dude._x = gam.b._x;
dude._y = gam.b._y;
dude.blinkcount = 0;
gam.b._visible = false;
tranny._visible = false;
_root.pausy = false;
objarray = new Array();
badarray = new Array();
ropearray = new Array();
_root.levtotal = parseInt(_root.lev) + 1;
}
function getRope(who) {
ropearray.push(who);
}
function waiter() {
waitcv = waitcv + 1;
if (waitcv == 2) {
clearInterval(_root.trantimer);
initLev();
}
}
function changeScreen(upalev) {
if (!_root.done) {
stopAllSounds();
tranny._visible = true;
_root.levmuse.stop();
if (upalev) {
trace("restart");
} else {
var befo = parseInt(lev);
lev = befo + 1;
var afta = lev;
}
trace(lev);
waitcv = 0;
if (directionarray[befo] == directionarray[afta]) {
_root.trantimer = setInterval(waiter, 250);
} else {
trace("GO UP STAIRS SCREEN!");
trace("afta is: " + afta);
if (directionarray[afta] == 1) {
_root.gotoAndStop("stairs0");
} else {
_root.gotoAndStop("stairs1");
}
}
}
}
function ropage(who) {
if (gam.d.onrope) {
if ((!Key.isDown(gam.d.u)) && (!Key.isDown(gam.d.c))) {
gam.d.char0.guts.climber.stop();
gam.d.char1.guts.climber.stop();
}
}
if (combo == 0) {
if ((((gam.d.tester.hitTest(who) && (Key.isDown(gam.d.u))) && (gam.d._y > 90)) && (!gam.d.adown)) && (!gam.d.dead)) {
gam.d.onrope = true;
gam.d._y = gam.d._y - 5;
gam.d._x = who._x + 30;
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
if (((gam.d.tester.hitTest(who) && (Key.isDown(gam.d.c))) && (!gam.d.adown)) && (!gam.d.dead)) {
gam.d.onrope = true;
gam.d._y = gam.d._y + 5;
gam.d._x = who._x + 30;
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
} else {
if (gam.d.char0.dead && (gam.d.char0.dead)) {
var nogo = true;
} else {
var nogo = false;
}
if (!nogo) {
if ((((gam.d.tester.hitTest(who.r0) && (Key.isDown(gam.d.u))) && (gam.d._y > 90)) && (!gam.d.adown)) && (!gam.d.dead)) {
gam.d.onrope = true;
gam.d._y = gam.d._y - 5;
gam.d._x = who._x + 6;
if (!gam.d.char0.dead) {
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
}
if (!gam.d.char1.dead) {
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
}
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
if (((gam.d.tester.hitTest(who.r0) && (Key.isDown(gam.d.c))) && (!gam.d.adown)) && (!gam.d.dead)) {
gam.d.onrope = true;
gam.d._y = gam.d._y + 5;
gam.d._x = who._x + 6;
if (!gam.d.char0.dead) {
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
}
if (!gam.d.char1.dead) {
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
}
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
if (((gam.d.tester.hitTest(who.r1) && (Key.isDown(gam.d.u))) && (gam.d._y > 90)) && (!gam.d.adown)) {
gam.d.onrope = true;
gam.d._y = gam.d._y - 5;
gam.d._x = who._x + 57;
if (!gam.d.char0.dead) {
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
}
if (!gam.d.char1.dead) {
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
}
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
if ((gam.d.tester.hitTest(who.r1) && (Key.isDown(gam.d.c))) && (!gam.d.adown)) {
gam.d.onrope = true;
gam.d._y = gam.d._y + 5;
gam.d._x = who._x + 57;
if (!gam.d.char0.dead) {
gam.d.char0.guts.gotoAndStop("climb");
gam.d.char0.guts.climber.play();
}
if (!gam.d.char1.dead) {
gam.d.char1.guts.gotoAndStop("climb");
gam.d.char1.guts.climber.play();
}
gam.d.adown = false;
gam.d.attacking = false;
if ((_root.ropenoise.position > 100) || (_root.ropenoise.position == 0)) {
_root.ropenoise.start();
}
}
}
}
}
function runEnding() {
_root.pausy = true;
while (!gam.antiwalk.hitTest(gam.d._x + offsetx, gam.d._y + offsety, true)) {
gam.d._y = gam.d._y + 1;
}
gam.d.char0.guts.gotoAndStop("walk1");
gam.d.char1.guts.gotoAndStop("walk1");
gam.d.char0._xscale = -100;
gam.d.char1._xscale = -100;
delete gam.d.onEnterFrame;
gam.d.onEnterFrame = function () {
if (gam.d._x > -350) {
gam.d._x = gam.d._x - 5;
} else {
_root.gotoAndStop("theend");
delete gam.d.onEnterFrame;
}
};
}
function jackophys(who) {
if ((!who.deadcat) && (!who.jacko2)) {
if (who.bouncecount < 3) {
who._x = who._x + (who.dir * 5);
who._y = who._y - (who.ydir * 5);
} else {
who.stoppy = true;
if ((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + 5;
if ((((((((gam.antiwalk.hitTest(who._x + offsetx, (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed)) || (gam.antiwalk.hitTest((who._x + offsetx) + (who._width / 2), (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who._width / 2), (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed))) || (gam.clouds.hitTest(who._x + offsetx, (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed))) || (gam.clouds.hitTest((who._x + offsetx) + (who._width / 2), (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed))) || (gam.clouds.hitTest((who._x + offsetx) - (who._width / 2), (who._y + offsety) - (who._height / 2), true) && (!who.beenplayed))) || ((who._x > (Stage.width + offsetx)) && (!who.beenplayed))) || ((who._x < (-offsetx)) && (!who.beenplayed))) {
_root.pbounce.start();
who.beenplayed = true;
}
}
}
w = 0;
while (w < badarray.length) {
var bad = badarray[w];
if (((bad.cat && (!bad.dead)) && (!who.beenplayed)) || ((bad.snake && (!bad.dead)) && (!who.beenplayed))) {
if (who.hitTest(bad.hitarea)) {
bad._visible = false;
bad.dead = true;
s = gam.attachMovie("splosion", "splode" + splodecount, splodecount);
if (!bad.spider) {
s._x = bad._x;
s._y = bad._y;
} else {
s._x = bad._x + bad.guts._x;
s._y = bad._y + bad.guts._y;
}
splodecount = splodecount + 1;
_root.score = _root.score + bad.score;
}
}
w++;
}
if (!who.stoppy) {
w = 0;
while (w < badarray.length) {
var bad = badarray[w];
if (bad.vuln && (!bad.dead)) {
if ((who.hitTest(bad.hitarea) && (!who.beenplayed)) || (who.hitTest(bad.guts.hitarea) && (!who.beenplayed))) {
bad.hp = 0;
if (bad.hp <= 0) {
bad._visible = false;
bad.dead = true;
s = gam.attachMovie("splosion", "splode" + splodecount, splodecount);
if (!bad.spider) {
s._x = bad._x;
s._y = bad._y;
} else {
s._x = bad._x + bad.guts._x;
s._y = bad._y + bad.guts._y;
}
splodecount = splodecount + 1;
_root.score = _root.score + bad.score;
} else {
if ((gam.d.char0._xscale == 100) || (gam.d.char1._xscale == 100)) {
bad._x = bad._x + 25;
}
if ((gam.d.char0._xscale == -100) || (gam.d.char0._xscale == -100)) {
bad._x = bad._x - 25;
}
}
}
}
w++;
}
if (((((((gam.antiwalk.hitTest(who._x + offsetx, (who._y + offsety) - (who._height / 2), true) || (gam.antiwalk.hitTest((who._x + offsetx) + (who._width / 2), (who._y + offsety) - (who._height / 2), true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who._width / 2), (who._y + offsety) - (who._height / 2), true))) || (gam.clouds.hitTest(who._x + offsetx, (who._y + offsety) - (who._height / 2), true))) || (gam.clouds.hitTest((who._x + offsetx) + (who._width / 2), (who._y + offsety) - (who._height / 2), true))) || (gam.clouds.hitTest((who._x + offsetx) - (who._width / 2), (who._y + offsety) - (who._height / 2), true))) || (who._x > (Stage.width + offsetx))) || (who._x < (-offsetx))) {
_root.pbounce.start();
who.bouncecount = who.bouncecount + 1;
who.dir = who.dir * -1;
who._x = who._x + (who.dir * 5);
}
if ((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) && (_root.lev != 25)) || (gam.antiwalk.hitTest(who._x + offsetx, (who._y + offsety) - who._height, true) && (_root.lev != 25))) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (_root.lev != 25))) || (gam.clouds.hitTest(who._x + offsetx, (who._y + offsety) - who._height, true) && (_root.lev != 25))) || ((who._y < (-offsety)) && (_root.lev != 25))) || ((who._y > (Stage.height + offsety)) && (_root.lev != 25))) {
_root.pbounce.start();
who.ydir = who.ydir * -1;
who._y = who._y - (who.ydir * 5);
who.bouncecount = who.bouncecount + 1;
}
}
}
}
function scythe(who) {
who._y = who._y + 10;
if (gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
f = gam.attachMovie("scythesplode", "scy" + splodecount, splodecount);
f._x = who._x;
f._y = who._y;
splodecount = splodecount + 1;
who.unloadMovie();
who.removeMovieClip();
delete who.onEnterFrame;
}
if (who.hitter.hitTest(gam.d.char0.guts.hitarea) && (!gam.d.char0.dead)) {
runSwitch(0);
}
if (who.hitter.hitTest(gam.d.char1.guts.hitarea) && (!gam.d.char1.dead)) {
runSwitch(1);
}
}
function deadcat(who) {
if (!who.kicked) {
if ((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + 10;
}
while (gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y - 1;
}
} else {
who._x = who._x + (who.dir * 5);
who._y = who._y - 5;
who._rotation = who._rotation + who.rotspeed;
if (who.hitTest(gam.reaper.hit) && (!gam.reaper.blink)) {
gam.reaper.runHit();
_root.reaphit.start();
s = gam.attachMovie("splosion", "splode" + splodecount, splodecount);
s._x = who._x;
s._y = who._y;
splodecount = splodecount + 1;
who.unloadMovie();
who.removeMovieClip();
delete who.onEnterFrame;
}
if ((((who._x > 650) || (who._x < -100)) || (who._y < -150)) || (who._y > 700)) {
who.unloadMovie();
who.removeMovieClip();
delete who.onEnterFrame;
}
}
}
function jackophys2(who) {
if (!who.kicked) {
if ((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y + 10;
}
while (gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) {
who._y = who._y - 1;
}
} else {
who._x = who._x + (who.dir * 5);
if (who.ydir != undefined) {
who._y = who._y - 5;
}
if (who.hitTest(gam.reaper.hit) && (!gam.reaper.blink)) {
gam.reaper.runHit();
_root.reaphit.start();
s = gam.attachMovie("splosion", "splode" + splodecount, splodecount);
s._x = who._x;
s._y = who._y;
splodecount = splodecount + 1;
who.unloadMovie();
who.removeMovieClip();
delete who.onEnterFrame;
}
if ((((who._x > 650) || (who._x < -100)) || (who._y < -150)) || (who._y > 700)) {
who.unloadMovie();
who.removeMovieClip();
delete who.onEnterFrame;
}
}
}
function runKick(who, block) {
w = 0;
while (w < badarray.length) {
var bad = badarray[w];
if (bad.cat && (!bad.dead)) {
if ((bad.hitarea.hitTest(block) && (!bad.kicked)) && (!bad.dead)) {
_root.catkick.start();
bad.kicked = true;
if ((combo == 0) || (combo == 1)) {
bad.dir = gam.d.char0._xscale / 100;
} else {
bad.dir = gam.d.char1._xscale / 100;
}
_root.score = _root.score + bad.score;
}
}
w++;
}
g = 0;
while (g < objarray.length) {
thing = objarray[g];
if (block.hitTest(thing) && (!thing.kicked)) {
_root.moveit.start();
if (((thing.jacko && (!thing.kicked)) || (thing.jacko2 && (!thing.kicked))) || (thing.deadcat && (!thing.kicked))) {
if (thing.deadcat && (!thing.kicked)) {
_root.catkick.start();
if ((combo == 0) || (combo == 1)) {
thing.dir = gam.d.char0._xscale / 100;
thing.rotspeed = (gam.d.char0._xscale / 100) * 15;
} else {
thing.dir = gam.d.char1._xscale / 100;
thing.rotspeed = (gam.d.char1._xscale / 100) * 15;
}
thing.ydir = 1;
thing.kicked = true;
}
if (thing.jacko2 && (!thing.kicked)) {
trace("jacko2!!!!!");
if ((combo == 0) || (combo == 1)) {
thing.dir = gam.d.char0._xscale / 100;
} else {
thing.dir = gam.d.char1._xscale / 100;
}
thing.ydir = 1;
thing.kicked = true;
}
if (thing.jacko && (!thing.kicked)) {
if ((combo == 0) || (combo == 1)) {
thing.dir = gam.d.char0._xscale / 100;
} else {
thing.dir = gam.d.char1._xscale / 100;
}
thing.bouncecount = 0;
thing.beenplayed = false;
thing.ydir = 1;
thing.stoppy = false;
thing.onEnterFrame = function () {
jackophys(this);
};
thing.kicked = true;
}
} else {
thing.kicked = true;
if ((who.char0._xscale == 100) || (who.char1._xscale == 100)) {
if ((!gam.antiwalk.hitTest(((thing._x + (thing._width / 2)) + offsetx) + 2, thing._y + offsety, true)) && (!gam.clouds.hitTest(((thing._x + (thing._width / 2)) + offsetx) + 2, thing._y + offsety, true))) {
if (!thing.boing) {
thing._x = thing._x + 25;
}
}
} else if ((!gam.antiwalk.hitTest(((thing._x - (thing._width / 2)) + offsetx) - 2, thing._y + offsety, true)) && (!gam.clouds.hitTest(((thing._x - (thing._width / 2)) + offsetx) - 2, thing._y + offsety, true))) {
if (!thing.boing) {
thing._x = thing._x - 25;
}
}
while ((((!gam.antiwalk.hitTest(thing._x + offsetx, thing._y + offsety, true)) && (!gam.clouds.hitTest(thing._x + offsetx, thing._y + offsety, true))) && (thing._x < Stage.width)) && (thing._x > 0)) {
thing._y = thing._y + 1;
if ((who.char0._xscale == 100) || (who.char1._xscale == 100)) {
while (gam.antiwalk.hitTest((thing._x - (thing._width / 2)) + offsetx, (thing._y + offsety) - 5, true) || (gam.clouds.hitTest((thing._x - (thing._width / 2)) + offsetx, (thing._y + offsety) - 5, true))) {
thing._x = thing._x + 1;
}
} else {
while (gam.antiwalk.hitTest((thing._x + (thing._width / 2)) + offsetx, (thing._y + offsety) - 5, true) || (gam.clouds.hitTest((thing._x + (thing._width / 2)) + offsetx, (thing._y + offsety) - 5, true))) {
thing._x = thing._x - 1;
}
}
}
var storex = (thing._x - 25);
var storey = thing._y;
thing.cv = 0;
while ((gam.antiwalk.hitTest(thing._x + offsetx, thing._y + offsety, true) && (!thing.boing)) || (gam.clouds.hitTest(thing._x + offsetx, thing._y + offsety, true) && (!thing.boing))) {
thing._y = thing._y - 1;
thing.cv = thing.cv + 1;
if (thing.cv > 20) {
thing.boing = true;
thing._x = storex;
thing._y = storey;
}
}
w = 0;
while (w < badarray.length) {
var bad = badarray[w];
if (bad.vuln && (!bad.dead)) {
if (thing.hitTest(bad.hitarea)) {
bad.hp = bad.hp - 1;
if (bad.hp <= 0) {
bad._visible = false;
bad.dead = true;
s = gam.attachMovie("splosion", "splode" + splodecount, splodecount);
s._x = bad._x;
s._y = bad._y;
splodecount = splodecount + 1;
_root.score = _root.score + bad.score;
} else {
if ((who.char0._xscale == 100) || (who.char1._xscale == 100)) {
bad._x = bad._x + 25;
}
if ((who.char0._xscale == -100) || (who.char0._xscale == -100)) {
bad._x = bad._x - 25;
}
}
}
}
w++;
}
}
}
while (thing._x > (Stage.width - offsetx)) {
thing._x = thing._x - 1;
}
while (thing._x < offsetx) {
thing._x = thing._x + 1;
}
g++;
}
}
function cont(who) {
if (!who.dead) {
if (who.onrope) {
var fallen = true;
r = 0;
while (r < ropearray.length) {
var yig = eval (ropearray[r]);
if (yig.hitTest(who.tester)) {
fallen = false;
}
r++;
}
if (fallen) {
who.zenith = true;
who.jumping = false;
who.onrope = false;
}
}
if (((Key.isDown(who.a) && (!who.attacking)) && (!who.adown)) && (!who.ducking)) {
if (!who.onrope) {
_root.kicksound.start();
g = 0;
while (g < objarray.length) {
var thinger = eval (objarray[g]);
if ((!thinger.deadcat) && (!thinger.jacko2)) {
thinger.kicked = false;
}
g++;
}
if ((combo == 1) && (!who.char0.dead)) {
who.attacking = true;
}
if ((combo == 2) && (!who.char1.dead)) {
who.attacking = true;
}
if (combo == 0) {
who.attacking = true;
}
if (combo == 0) {
if ((who.char0._xscale == 100) || (who.char1._xscale == 100)) {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("kick");
}
}
if ((who.char0._xscale == -100) || (who.char1._xscale == -100)) {
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("kick");
}
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("kick");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("kick");
}
}
} else {
who.zenith = true;
who._y = who._y - 35;
who.jumping = false;
who.onrope = false;
}
who.adown = true;
}
if (!Key.isDown(who.a)) {
who.adown = false;
}
if (Key.isDown(who.r) && (!who.onrope)) {
who._x = who._x + who.speed;
if (!who.attacking) {
if (!who.ducking) {
if (combo == 0) {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("walk0");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("walk0");
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("walk0");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("walk1");
}
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("crawl");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("crawl");
}
}
}
who.char0._xscale = 100;
who.char1._xscale = 100;
if ((who._x > (Stage.width - (who.tester._width / 2))) && (!_root.done)) {
if ((gam.dir == 0) && (_root.lev != 25)) {
changeScreen();
_root.pausy = true;
} else {
who._x = Stage.width - (who.tester._width / 2);
}
}
}
if (Key.isDown(who.l) && (!who.onrope)) {
who._x = who._x - who.speed;
if (!who.attacking) {
if (!who.ducking) {
if (combo == 0) {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("walk1");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("walk1");
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("walk0");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("walk1");
}
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("crawl");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("crawl");
}
}
}
who.char0._xscale = -100;
who.char1._xscale = -100;
if ((who._x < ((who.tester._width / 2) + 25)) && (!_root.done)) {
if (gam.dir == 0) {
who._x = (who.tester._width / 2) + 25;
} else if (_root.lev != 25) {
changeScreen();
_root.pausy = true;
} else {
who._x = (who.tester._width / 2) + 25;
}
}
}
if ((((!Key.isDown(who.l)) && (!Key.isDown(who.r))) && (!who.attacking)) && (!who.onrope)) {
if (!who.ducking) {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("rest");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("rest");
}
} else {
if (!who.char0.dead) {
who.char0.guts.gotoAndStop("duck");
}
if (!who.char1.dead) {
who.char1.guts.gotoAndStop("duck");
}
}
}
if (((((Key.isDown(who.c) && (!who.attacking)) && (!who.dead)) && (!who.onrope)) && (!who.jumping)) && (!who.zenith)) {
who.ducking = true;
} else if (((!gam.antiwalk.hitTest(who._x + offsetx, (who._y + offsety) - 80, true)) && (!gam.antiwalk.hitTest((who._x + offsetx) + 30, (who._y + offsety) - 80, true))) && (!gam.antiwalk.hitTest((who._x + offsetx) - 30, (who._y + offsety) - 80, true))) {
who.ducking = false;
}
if (((((Key.isDown(who.u) && (!who.jumping)) && (!who.zenith)) && (!who.udown)) && (!who.onrope)) && (!who.ducking)) {
who.udown = true;
if (((!gam.antiwalk.hitTest((who._x + offsetx) + 20, ((who._y + offsety) - who.tester._height) - 3, true)) && (!gam.antiwalk.hitTest((who._x + offsetx) - 20, ((who._y + offsety) - who.tester._height) - 3, true))) && (!gam.antiwalk.hitTest(who._x + offsetx, ((who._y + offsety) - who.tester._height) - 3, true))) {
who.jumping = true;
who._y = who._y - who.jmpsp;
who.sp = who._y;
who.temp = who.jmpsp;
_root.jumpsound.start();
} else {
trace("Ceiling too low!");
_root.moveit.start();
}
}
if (!Key.isDown(who.u)) {
who.udown = false;
}
if (who.jumping && (!who.onrope)) {
if (!who.zenith) {
if (who.temp > 0) {
who._y = who._y - who.temp;
who.temp = who.temp - 1;
} else {
who.zenith = true;
who.jumping = false;
}
}
}
}
}
function phys(who) {
if (who.flashing) {
who.blinkcount = who.blinkcount + 1;
if (!who.char0.dead) {
if (who.char0._alpha == 100) {
who.char0._alpha = 0;
} else {
who.char0._alpha = 100;
}
}
if (!who.char1.dead) {
if (who.char1._alpha == 100) {
who.char1._alpha = 0;
} else {
who.char1._alpha = 100;
}
}
if (who.blinkcount == 30) {
who.blinkcount = 0;
who.flashing = false;
who._alpha = 100;
}
}
if ((((!gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true)) && (!who.jumping)) && (!gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true))) && (!gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) {
if (!who.onrope) {
who._y = who._y + who.grav;
who.fallcount = who.fallcount + 1;
if (who.fallcount > 3) {
who.zenith = true;
}
if (who.grav < 10) {
who.grav = who.grav + _root.grav;
}
}
}
while ((((((((((((((((((((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true))) || (gam.clouds.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.clouds.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true) && (!who.jumping))) || (gam.objs.hitTest(who._x + offsetx, who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 2), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 4), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 3), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) + (who.tester._width / 6), who._y + offsety, true))) || (gam.objs.hitTest((who._x + offsetx) - (who.tester._width / 6), who._y + offsety, true))) {
who._y = who._y - 1;
who.fallcount = 0;
who.grav = 0;
who.jumping = false;
who.zenith = false;
}
while ((((((((gam.antiwalk.hitTest(who._x + offsetx, who._y + offsety, true) && (!who.ducking)) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 2), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 4), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 4), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 3), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 3), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) + (who.tester._width / 6), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) || (gam.antiwalk.hitTest((who._x + offsetx) - (who.tester._width / 6), (who._y + offsety) - who.tester._height, true) && (!who.ducking))) {
who._y = who._y + 1;
who.jumping = false;
who.zenith = true;
trace("go down!");
}
if ((combo == 1) || (combo == 2)) {
while (((((gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.antiwalk.hitTest(who._x + (10 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x + (10 + who.speed), who._y - 15, true))) {
who._x = who._x - 0.1;
}
while (((((gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.antiwalk.hitTest(who._x - (25 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.objs.hitTest(who._x - (25 + who.speed), who._y - 15, true))) {
who._x = who._x + 0.1;
}
} else {
while (((((gam.antiwalk.hitTest(who._x + (35 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x + (35 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.antiwalk.hitTest(who._x + (35 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x + (35 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x + (35 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.objs.hitTest(who._x + (35 + who.speed), who._y - 15, true))) {
who._x = who._x - 0.1;
}
while (((((gam.antiwalk.hitTest(who._x - (50 + who.speed), who._y - 55, true) || (gam.antiwalk.hitTest(who._x - (50 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.antiwalk.hitTest(who._x - (50 + who.speed), who._y - 15, true))) || (gam.objs.hitTest(who._x - (50 + who.speed), who._y - 55, true))) || (gam.objs.hitTest(who._x - (50 + who.speed), who._y - 90, true) && (!who.ducking))) || (gam.objs.hitTest(who._x - (50 + who.speed), who._y - 15, true))) {
who._x = who._x + 0.1;
}
}
if (!_root.done) {
cont(who);
}
}
_root.lev = 0;
_root.timey = 0;
_root.score = 0;
_root.combo = 0;
_root.bonus = 0;
clearInterval(_root.mytime);
_root.mytime = setInterval(updateTime, 1000);
offsetx = -10;
offsety = -10;
grav = 3;
splodecount = 0;
_root.health = 1;
_root.levtotal = parseInt(_root.lev) + 1;
msgarray = new Array(0, 0, 0, 0, 0, "Strong is 2nd Floor. Mind what you have learned. Save you it can.", 0, 0, 0, 0, "Help me, 3rd Floor; you're my only hope!", 0, 0, 0, 0, "Hokey religions and ancient weapons are no match for a 4th Floor at your side, kid.", 0, 0, 0, 0, "When I met you I was but the learner. Now, I am the 5th Floor.", 0, 0, 0, 0, "That's no moon, it's the 6th Floor!");
directionarray = new Array(0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1);
_root.onEnterFrame = function () {
if (!pausy) {
while (gam.d._x > (Stage.width - 5)) {
gam.d._x = gam.d._x - 1;
}
while (gam.d._x < -10) {
gam.d._x = gam.d._x + 1;
}
phys(dude);
}
};
stop();
Frame 4
stop();
initLev();
Frame 5
stop();
initLev();
Frame 6
stop();
initLev();
Frame 7
stop();
initLev();
Frame 8
stop();
initLev();
Frame 9
stop();
initLev();
Frame 10
stop();
initLev();
Frame 11
stop();
initLev();
Frame 12
stop();
initLev();
Frame 13
stop();
initLev();
Frame 14
stop();
initLev();
Frame 15
stop();
initLev();
Frame 16
stop();
initLev();
Frame 17
stop();
initLev();
Frame 18
stop();
initLev();
Frame 19
stop();
initLev();
Frame 20
stop();
initLev();
Frame 21
stop();
initLev();
Frame 22
stop();
initLev();
Frame 23
stop();
initLev();
Frame 24
stop();
initLev();
Frame 25
stop();
initLev();
Frame 26
stop();
initLev();
Frame 27
stop();
initLev();
Frame 28
stop();
initLev();
Frame 29
stop();
initLev();
Frame 30
stop();
Frame 46
clearInterval(_root.mytime);
_root.levadd = parseInt(_root.lev) + 1;
_root.floorness = Math.ceil(_root.levadd / 5);
_root.bonus = Math.round((((_root.levadd * 300) / _root.timey) + (_root.floorness * 5)) * (_root.score / 10));
_root.totebag = _root.score + _root.bonus;
Symbol 38 MovieClip Frame 4
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 38 MovieClip Frame 5
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 38 MovieClip Frame 6
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 38 MovieClip Frame 7
this._parent._parent._parent.attacking = false;
Symbol 44 MovieClip Frame 10
if (_root.jekdie.position == 0) {
_root.jekdie.start();
}
Symbol 44 MovieClip Frame 13
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 3
stop();
Symbol 48 MovieClip Frame 4
stop();
Symbol 48 MovieClip Frame 5
stop();
Symbol 48 MovieClip Frame 6
stop();
Symbol 48 MovieClip Frame 7
stop();
Symbol 48 MovieClip Frame 8
stop();
Symbol 69 MovieClip Frame 4
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 69 MovieClip Frame 5
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 69 MovieClip Frame 6
_root.runKick(this._parent._parent._parent, this.kicktest);
Symbol 69 MovieClip Frame 7
this._parent._parent._parent.attacking = false;
Symbol 75 MovieClip Frame 10
if (_root.pondadie.position == 0) {
_root.pondadie.start();
}
Symbol 75 MovieClip Frame 30
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 7
stop();
Symbol 94 MovieClip [jacko2] Frame 1
_root.getObj(this);
this.jacko2 = true;
Symbol 100 MovieClip [scythe] Frame 1
this.onEnterFrame = function () {
_root.scythe(this);
};
Symbol 103 MovieClip [scythesplode] Frame 5
stop();
Symbol 105 MovieClip [deadcat] Frame 1
_root.getObj(this);
this.deadcat = true;
Symbol 111 MovieClip Frame 1
_root.getObj(this);
this.jacko = true;
Symbol 115 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 120 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.i-mockery.com", "_blank");
};
Symbol 124 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.bomtoons.com", "_blank");
};
Symbol 131 Button
on (release) {
getURL ("http://www.i-mockery.com", "_blank");
}
Symbol 137 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 142 Button
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 147 Button
on (release) {
getURL ("http://www.i-mockery.com", "_blank");
}
Symbol 151 MovieClip Frame 297
stop();
Symbol 152 Button
on (keyPress "a") {
_root.gotoAndStop("intro");
_root.stopAllSounds();
_root.menusound.start();
}
on (keyPress "A") {
_root.gotoAndStop("intro");
_root.stopAllSounds();
_root.menusound.start();
}
Symbol 179 Button
on (keyPress "a") {
_root.menusound.start();
gotoAndPlay ("goman");
}
on (keyPress "A") {
_root.menusound.start();
gotoAndPlay ("goman");
}
Symbol 223 MovieClip Frame 1101
stop();
Symbol 224 Button
on (keyPress "a") {
stopAllSounds();
_root.gotoAndStop("lvl" + _root.lev);
_root.menusound.start();
}
Symbol 225 MovieClip Frame 1
_root.pausy = true;
stop();
Symbol 225 MovieClip Frame 2
stopAllSounds();
Symbol 225 MovieClip Frame 1071
_root.gotoAndStop("lvl" + _root.lev);
Symbol 236 MovieClip Frame 1
this.onEnterFrame = function () {
_root.lava(this);
};
Symbol 251 MovieClip Frame 1
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
_root.getBad(this);
this.onEnterFrame = function () {
_root.ghost(this);
};
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
dir = 1;
speed = 9;
waittime = 30;
}
Symbol 258 Button
on (release) {
if (gam.d.remembercombo == undefined) {
_root.combo = 0;
} else {
_root.combo = gam.d.remembercombo;
}
changeScreen(true);
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
_root.gotoAndStop("wait");
}
Symbol 261 Button
on (release) {
stopAllSounds();
clearInterval(_root.mytime);
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
_root.gotoAndStop("main");
}
Symbol 271 MovieClip Frame 1
_root.getObj(this);
Symbol 273 MovieClip Frame 1
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
this.vuln = true;
this.grav = 0;
this.score = 3;
_root.getBad(this);
this.onEnterFrame = function () {
_root.skeleton(this);
};
Symbol 274 MovieClip Frame 1
this.dir = 0;
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Symbol 283 MovieClip Frame 1
this.startx = this._x;
this.starty = 0;
this.score = 5;
this.cv = 0;
this.vuln = true;
this.grav = 0;
this.hp = 2;
_root.getBad(this);
this.onEnterFrame = function () {
_root.spider(this, false);
};
Instance of Symbol 283 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 40;
upwait = 30;
}
Instance of Symbol 273 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Symbol 289 MovieClip Frame 1
_root.getObj(this);
Instance of Symbol 273 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 273 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 251 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dir = 1;
speed = 9;
waittime = 30;
}
Symbol 293 MovieClip Frame 1
this.stairs = true;
Symbol 299 MovieClip Frame 1
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
this.score = 15;
_root.getBad(this);
this.onEnterFrame = function () {
_root.witch(this);
};
Instance of Symbol 299 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
go = true;
dir = 0;
speed = 12;
waittime = 50;
}
Symbol 307 MovieClip Frame 1
_root.getRope(this);
this.onEnterFrame = function () {
_root.ropage(this);
};
Instance of Symbol 283 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 273 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 283 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Symbol 313 MovieClip Frame 1
_root.batty.start(99);
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
this.score = 5;
this.vuln = true;
_root.getBad(this);
this.onEnterFrame = function () {
_root.bat(this);
};
Symbol 313 MovieClip Frame 2
stop();
Instance of Symbol 251 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
dir = 0;
speed = 9;
waittime = 30;
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
xspeed = 5;
yspeed = 7;
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
xspeed = 5;
yspeed = 7;
}
Symbol 318 MovieClip Frame 1
this.startx = this._x;
this.starty = 0;
this.cv = 0;
this.vuln = true;
this.cat = true;
this.grav = 0;
this.deccount = 0;
_root.getBad(this);
this.onEnterFrame = function () {
_root.cat(this);
};
this.score = 5;
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 10;
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Symbol 328 MovieClip Frame 1
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
this.vuln = true;
this.grav = 0;
this.score = 5;
_root.getBad(this);
this.onEnterFrame = function () {
_root.skull(this);
};
Instance of Symbol 273 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 328 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = 2;
yspeed = 5;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 328 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -3;
yspeed = 8;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 328 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -3;
yspeed = 8;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 318 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 283 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 20;
downwait = 20;
upwait = 20;
}
Instance of Symbol 299 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
go = true;
dir = 0;
speed = 8;
waittime = 60;
}
Instance of Symbol 318 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 328 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = 2;
yspeed = 5;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 328 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -3;
yspeed = 8;
dir = 1;
decisioninterval = 50;
}
Symbol 350 MovieClip Frame 1
this.startx = this._x;
this.starty = 0;
this.cv = 0;
this.vuln = true;
this.grav = 0;
this.deccount = 0;
this.score = 15;
this.hp = 1;
_root.getBad(this);
this.onEnterFrame = function () {
_root.snake(this);
};
Instance of Symbol 328 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -3;
yspeed = 8;
dir = -1;
decisioninterval = 50;
}
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = -1;
decisioninterval = 50;
}
Symbol 355 MovieClip Frame 1
this.startx = this._x;
this.starty = this._y;
this.cv = 0;
this.vuln = true;
this.grav = 0;
_root.getBad(this);
this.onEnterFrame = function () {
_root.mummy(this);
};
this.score = 10;
Instance of Symbol 318 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 355 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
hp = 2;
speed = 1;
dir = 1;
}
Symbol 366 MovieClip Frame 1
this.startx = this._x;
this.starty = 0;
this.cv = 0;
this.vuln = true;
this.grav = 0;
this.score = 15;
this.spider = true;
_root.getBad(this);
this.onEnterFrame = function () {
_root.spider(this, true);
};
Instance of Symbol 366 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 313 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
xspeed = 5;
yspeed = 7;
}
Instance of Symbol 299 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
go = true;
dir = 0;
speed = 12;
waittime = 90;
}
Instance of Symbol 283 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 19;
downwait = 20;
upwait = 20;
}
Instance of Symbol 355 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
hp = 2;
speed = 1;
dir = 1;
}
Instance of Symbol 273 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = 1;
}
Instance of Symbol 273 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 1;
dir = -1;
}
Instance of Symbol 283 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 318 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 283 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 5;
speed = 15;
downwait = 20;
upwait = 10;
}
Instance of Symbol 283 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 10;
speed = 15;
downwait = 20;
upwait = 15;
}
Instance of Symbol 283 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 20;
speed = 15;
downwait = 20;
upwait = 25;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 15;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 10;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 5;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 0;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 25;
}
Instance of Symbol 283 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 15;
speed = 15;
downwait = 20;
upwait = 30;
}
Instance of Symbol 355 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
hp = 2;
speed = 1;
dir = 1;
}
Instance of Symbol 355 MovieClip in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
hp = 2;
speed = 1;
dir = 1;
}
Instance of Symbol 328 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -9;
yspeed = 0;
dir = -1;
decisioninterval = 50;
}
Instance of Symbol 318 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 318 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = -1;
decisioninterval = 20;
}
Instance of Symbol 318 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 318 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = -1;
decisioninterval = 20;
}
Instance of Symbol 318 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = -1;
decisioninterval = 20;
}
Instance of Symbol 283 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 283 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 20;
}
Instance of Symbol 350 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 355 MovieClip in Symbol 411 MovieClip Frame 1
onClipEvent (load) {
hp = 2;
speed = 1;
dir = 1;
}
Instance of Symbol 366 MovieClip in Symbol 411 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 60;
}
Instance of Symbol 414 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gam.d._x > 50) {
var toofar = true;
_root.gam.d.ducking = true;
_root.gam.d.udown = true;
}
if (toofar) {
while (_root.gam.d._x < 50) {
_root.gam.d._x = _root.gam.d._x + 1;
_root.gam.d.ducking = true;
}
}
}
Instance of Symbol 283 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 15;
downwait = 20;
upwait = 10;
}
Instance of Symbol 283 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 17;
downwait = 20;
upwait = 6;
}
Instance of Symbol 283 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 10;
downwait = 20;
upwait = 9;
}
Instance of Symbol 283 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 17;
downwait = 20;
upwait = 10;
}
Instance of Symbol 251 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
dir = 1;
speed = 9;
waittime = 30;
}
Instance of Symbol 328 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = 2;
yspeed = 5;
dir = -1;
decisioninterval = 50;
}
Instance of Symbol 350 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
speed = 3;
dir = 1;
decisioninterval = 50;
}
Instance of Symbol 328 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = -9;
yspeed = 0;
dir = -1;
decisioninterval = 30;
}
Instance of Symbol 328 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = 9;
yspeed = 0;
dir = 1;
decisioninterval = 20;
}
Instance of Symbol 328 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
hp = 1;
xspeed = 9;
yspeed = 0;
dir = 1;
decisioninterval = 40;
}
Instance of Symbol 283 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
go = true;
dtime = 0;
utime = 0;
speed = 17;
downwait = 20;
upwait = 6;
}
Symbol 439 MovieClip Frame 1
stop();
function runHit() {
this.hp = this.hp - 1;
if (this.hp == 1) {
this.gotoAndStop("flashing");
this.speed = this.speed + 2.5;
this.droplim = this.droplim - 1;
}
if (this.hp == 0) {
stopAllSounds();
this.gotoAndPlay("splode");
delete this.onEnterFrame;
}
this.blink = true;
this.blinkcv = 0;
trace("hit!");
p = 0;
while (p < 8) {
var thinger = eval ("this._parent.l" + p);
thinger._visible = false;
p++;
}
p = 0;
while (p < this.hp) {
var thinger = eval ("this._parent.l" + p);
thinger._visible = true;
p++;
}
this.speed = this.speed + 2.5;
this.droplim = this.droplim - 5;
}
function getYdir(cur) {
var been = false;
var rando = (random(3) - 1);
if (((cur == -1) && (rando == -1)) && (!been)) {
rando = 1;
been = true;
}
if (((cur == 1) && (rando == 1)) && (!been)) {
rando = -1;
been = true;
}
return(rando);
}
function getXdir() {
var rando = (random(3) - 1);
return(rando);
}
function makeThing() {
var rando = random(5);
if (rando == 0) {
var which = random(2);
if (which == 0) {
j = _root.gam.attachMovie("jacko2", "jack" + jackcount, jackcount);
if (this._xscale == 100) {
j._x = this._x + 100;
} else {
j._x = this._x - 100;
}
j._y = this._y + 80;
j.onEnterFrame = function () {
_root.jackophys2(this);
};
jackcount = jackcount + 1;
} else {
j = _root.gam.attachMovie("deadcat", "dc" + jackcount, jackcount);
if (this._xscale == 100) {
j._x = this._x + 100;
} else {
j._x = this._x - 100;
}
j._y = this._y + 80;
j.onEnterFrame = function () {
_root.deadcat(this);
};
jackcount = jackcount + 1;
}
}
if ((rando > 0) && (rando <= 6)) {
s = _root.gam.attachMovie("scythe", "scythe" + jackcount, jackcount);
jackcount = jackcount + 1;
if (this._xscale == 100) {
s._x = this._x + 100;
} else {
s._x = this._x - 100;
}
s._y = this._y + 55;
}
}
this.toplim = 5;
this.botlim = 156;
this.leftlim = 120;
this.rightlim = 555;
this.speed = 6;
this.dir = 1;
this.ydir = 0;
this.hp = 8;
this.xcv = 0;
this.ycv = 0;
this.xlim = 65;
this.ylim = 65;
this.jackcount = 950000 /* 0x0E7EF0 */;
this.dropcv = 0;
this.droplim = 50;
this.onEnterFrame = function () {
if (!_root.pausy) {
if (this.blink) {
this._visible = !this._visible;
this.blinkcv = this.blinkcv + 1;
if (this.blinkcv >= 40) {
this._visible = true;
this.blink = false;
}
}
this.dropcv = this.dropcv + 1;
if (this.dropcv >= this.droplim) {
this.makeThing();
this.dropcv = 0;
}
if (!this.blink) {
if (this.hit.hitTest(_root.gam.d.char0.guts.hitarea) && (!_root.gam.d.char0.dead)) {
_root.runSwitch(0);
}
if (this.hit.hitTest(_root.gam.d.char1.guts.hitarea) && (!_root.gam.d.char1.dead)) {
_root.runSwitch(1);
}
}
this.xcv = this.xcv + 1;
this.ycv = this.ycv + 1;
if (this.xcv >= this.xlim) {
this.dir = getXdir();
this.xcv = 0;
}
if (this.ycv >= this.ylim) {
this.ydir = getYdir();
this.ycv = 0;
}
if (this.dir == 1) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (this.dir == 1) {
if (this._x < this.rightlim) {
this._x = this._x + this.speed;
if (this._x >= this.rightlim) {
this.dir = -1;
}
}
} else if (this._x > this.leftlim) {
this._x = this._x - this.speed;
if (this._x <= this.leftlim) {
this.dir = 1;
}
}
if (this.ydir == 1) {
if (this._y < this.botlim) {
this._y = this._y + this.speed;
if (this._y >= this.botlim) {
this.ydir = this.getYdir(1);
}
}
}
if (this.ydir == -1) {
if (this._y > this.toplim) {
this._y = this._y - this.speed;
if (this._y <= this.toplim) {
this.ydir = this.getYdir(-1);
}
}
}
}
};
Symbol 439 MovieClip Frame 2
stop();
Symbol 439 MovieClip Frame 4
this.ream.gotoAndStop(6);
Symbol 439 MovieClip Frame 68
this._parent.melvin._visible = true;
this._parent.melvin.swapDepths(this._parent.getNextHighestDepth());
Symbol 439 MovieClip Frame 122
this._parent.melvin._visible = false;
Symbol 439 MovieClip Frame 181
stop();
_root.runEnding();
Symbol 440 Button
on (keyPress "a") {
gotoAndPlay ("fight");
_root.menusound.start();
}
on (keyPress "A") {
gotoAndPlay ("fight");
_root.menusound.start();
}
Symbol 476 MovieClip Frame 1
_root.pausy = true;
var whereto = (getDepth(_root.gam.reaper) + 165);
trace("whereto: " + whereto);
_root.gam.d.swapDepths(whereto);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
clearInterval(_root.mytime);
_root.clearInterval(_root.mytime);
Symbol 476 MovieClip Frame 79
if (_root.combo == 0) {
gotoAndPlay ("jekponda");
}
if (_root.combo == 1) {
gotoAndPlay ("jek");
}
if (_root.combo == 2) {
gotoAndPlay ("ponda");
}
Symbol 476 MovieClip Frame 564
gotoAndPlay ("fight");
Symbol 476 MovieClip Frame 983
gotoAndPlay ("fight");
Symbol 476 MovieClip Frame 1412
gotoAndPlay ("fight");
Symbol 476 MovieClip Frame 1431
melvin._visible = false;
gam.d.swapDepths(999999);
Symbol 476 MovieClip Frame 1452
_root.pausy = false;
_root.clearInterval(_root.mytime);
_root.mytime = setInterval(_root.updateTime, 1000);
stop();
Symbol 544 Button
on (release) {
clearInterval(_root.mytime);
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
_root.gotoAndStop("main");
}
Symbol 547 MovieClip Frame 1
if (_root.combo == 1) {
ponda._visible = false;
}
if (_root.combo == 2) {
jek._visible = false;
}
Symbol 547 MovieClip Frame 180
if (_root.combo == 0) {
gotoAndPlay ("pondajek");
}
if (_root.combo == 1) {
gotoAndPlay ("jek");
}
if (_root.combo == 2) {
gotoAndPlay ("ponda");
}
Symbol 547 MovieClip Frame 387
gotoAndPlay ("bothfinal");
Symbol 547 MovieClip Frame 627
gotoAndPlay ("jekfinal");
Symbol 547 MovieClip Frame 915
gotoAndPlay ("pondafinal");
Symbol 547 MovieClip Frame 1044
gotoAndPlay ("grande");
Symbol 547 MovieClip Frame 1158
gotoAndPlay ("grande");
Symbol 547 MovieClip Frame 1273
gotoAndPlay ("grande");
Symbol 547 MovieClip Frame 1292
if (_root.combo == 1) {
pondaeat._visible = false;
pondabod._visible = false;
}
if (_root.combo == 2) {
jekeat._visible = false;
jekbod._visible = false;
}
Symbol 547 MovieClip Frame 1464
_root.levadd = parseInt(_root.lev) + 1;
_root.floorness = Math.ceil(_root.levadd / 5);
_root.bonus = Math.round((((_root.levadd * 300) / _root.timey) + (_root.floorness * 5)) * (_root.score / 10));
if (_root.combo == 0) {
_root.fbonus = 200;
} else {
_root.fbonus = 0;
}
_root.totebag = (_root.score + _root.bonus) + _root.fbonus;
Symbol 547 MovieClip Frame 1466
stop();
Symbol 551 MovieClip Frame 409
stop();
Symbol 552 Button
on (release) {
stopAllSounds();
clearInterval(_root.mytime);
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
_root.gotoAndStop("main");
}
Symbol 556 Button
on (release) {
_root.lev = (_root.floorness * 5) - 5;
_root.combo = 0;
_root.score = 0;
_root.done = false;
_root.pondadie = new Sound();
_root.pondadie.attachSound("pondadie");
_root.jekdie = new Sound();
_root.jekdie.attachSound("jekdie");
clearInterval(_root.mytime);
_root.mytime = setInterval(_root.updateTime, 1000);
_root.initLev();
}
Symbol 567 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.combo == 1) {
this.ponda._visible = false;
}
if (_root.combo == 2) {
this.jek._visible = false;
}
};
stopAllSounds();
_root.levelingup = true;
_root.levadd = parseInt(_root.lev) + 1;
_root.floorness = Math.ceil(_root.levadd / 5);
_root.msg = _root.msgarray[_root.lev];
Symbol 567 MovieClip Frame 247
stop();
delete this.onEnterFrame;
_root.trantimer = setInterval(_root.waiter, 250);
Symbol 569 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.combo == 1) {
this.ponda._visible = false;
}
if (_root.combo == 2) {
this.jek._visible = false;
}
};
_root.levelingup = true;
_root.levadd = parseInt(_root.lev) + 1;
_root.floorness = Math.ceil(_root.levadd / 5);
_root.msg = _root.msgarray[_root.lev];
Symbol 569 MovieClip Frame 246
stop();
delete this.onEnterFrame;
_root.trantimer = setInterval(_root.waiter, 250);