Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"660a914bd2c70c50", res:"550x400"});
_global.mute = false;
stop();
Frame 2
stopAllSounds();
Frame 3
stop();
Stage.showMenu = false;
this.createEmptyMovieClip("mTitleMusic", this.getNextHighestDepth());
var sTitleMusic = new Sound(mTitleMusic);
sTitleMusic.attachSound("titlemusic");
sTitleMusic.start(0, 99);
Frame 4
stop();
_global.lives = 3;
_global.level = 1;
_global.HP = 5;
sitebutton.onRelease = function () {
_root.getURL("http://www.hellfang.co.uk");
};
Frame 5
stop();
stopAllSounds();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Frame 6
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
apple1.gotoAndPlay(1);
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
_root.gotoAndStop(7);
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bDead = false;
var nLivesIn = _global.lives;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
onEnterFrame = function () {
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if (!_root.ground.hitTest(guy._x, guy._y + 1, true)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach2)) {
camera.achievebar.gotoAndStop(4);
_global.ach2 = true;
}
endlevel = setInterval(endleveler, 3000);
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -59) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -59) {
guy._x = -59;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
guy.gotoAndStop("jump");
jumpSound.start();
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
var _local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Instance of Symbol 437 MovieClip "camera" in Frame 6
onClipEvent (enterFrame) {
while (_root.guy._y > (this._y + 140)) {
if (this._y < 400) {
_y = (_y+1);
_y = (_y+1);
} else {
break;
}
}
while (_root.guy._y < (this._y - 20)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.guy._x > (this._x + 20)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.guy._x < (this._x - 20)) {
if (this._x > 200) {
_x = (_x-1);
_x = (_x-1);
} else {
break;
}
}
}
Frame 7
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
apple1.gotoAndPlay(1);
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
_root.gotoAndStop(8);
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var nLivesIn = _global.lives;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
_global.lev2 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
onEnterFrame = function () {
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if (!_root.ground.hitTest(guy._x, guy._y + 1, true)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach2)) {
camera.achievebar.gotoAndStop(4);
_global.ach2 = true;
}
endlevel = setInterval(endleveler, 3000);
}
if ((guy.hitTest(this.button1.butt) && (bGrounded)) && (isFat)) {
button1.gotoAndStop(2);
ground.gotoAndStop(2);
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -59) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -59) {
guy._x = -59;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
hitSound.start();
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
var _local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 8
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
apple1.gotoAndPlay(1);
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
_root.gotoAndStop(9);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
clearInterval(deathtimer);
}
stop();
_global.HP = 5;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var sDir = "left";
var bHit = false;
var nLivesIn = _global.lives;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
this.createEmptyMovieClip("mCatSound", this.getNextHighestDepth());
var sCatDeath = new Sound(mCatSound);
sCatDeath.attachSound("catdeath");
_global.lev3 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
bounce.onEnterFrame = function () {
if ((guy.hitTest(bounce) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
bounce.gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
};
cat1.onEnterFrame = function () {
if (!dead) {
cat1.gotoAndStop(1);
}
if ((((guy.hitTest(cat1) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
sCatDeath.start();
cat1.gotoAndStop(2);
dead = true;
nGravity = -14;
if (!_global.ach3) {
camera.achievebar.gotoAndStop(5);
_global.ach3 = true;
}
if ((!_global.ach11) && (isFat)) {
camera.achievebar.gotoAndStop(13);
_global.ach11 = true;
}
} else if ((((guy.hitTest(cat1) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
cat1._x--;
} else if (sDir == "left") {
cat1._x++;
}
}
if ((sDir == "left") && (!dead)) {
cat1._x = cat1._x - 3;
cat1._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
cat1._x = cat1._x + 3;
cat1._xscale = -100;
}
if (_root.ground.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
};
onEnterFrame = function () {
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if (!_root.ground.hitTest(guy._x, guy._y + 1, true)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach2)) {
camera.achievebar.gotoAndStop(4);
_global.ach2 = true;
}
endlevel = setInterval(endleveler, 3000);
}
if ((guy.hitTest(this.button1.butt) && (bGrounded)) && (isFat)) {
button1.gotoAndStop(2);
ground.gotoAndStop(2);
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -59) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -59) {
guy._x = -59;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
var _local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 9
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
_root.gotoAndStop(10);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var sDir = "left";
var bHit = false;
var bDead = false;
var nLivesIn = _global.lives;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
this.createEmptyMovieClip("mCatSound", this.getNextHighestDepth());
var sCatDeath = new Sound(mCatSound);
sCatDeath.attachSound("catdeath");
_global.lev4 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
spikes1.onEnterFrame = function () {
if ((guy.hitTest(spikes1) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
shuri.onEnterFrame = function () {
if (((guy.hitTest(shuri.shurihitbox.shurihit) || (guy.hitTest(axe.axespin.hitbox))) && (!bHit)) && (!bDead)) {
if (((guy.hitTest(axe.axespin.hitbox) && (!bGrounded)) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat2.onEnterFrame = function () {
if (!dead) {
cat2.gotoAndStop(1);
}
if (((((guy.hitTest(cat2) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) && (!bDead)) {
sCatDeath.start();
cat2.gotoAndStop(2);
dead = true;
nGravity = -14;
if (!_global.ach3) {
camera.achievebar.gotoAndStop(5);
_global.ach3 = true;
}
if ((!_global.ach11) && (isFat)) {
camera.achievebar.gotoAndStop(13);
_global.ach11 = true;
}
} else if (((((guy.hitTest(cat2) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
cat2._x--;
} else if (sDir == "left") {
cat2._x++;
}
}
if ((sDir == "left") && (!dead)) {
cat2._x = cat2._x - 3;
cat2._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
cat2._x = cat2._x + 3;
cat2._xscale = -100;
}
if (_root.ground.hitTest(cat2._x - 16, cat2._y - 30, true)) {
sDir = "right";
}
if (_root.ground.hitTest(cat2._x + 16, cat2._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat2._x + 350)) || (guy._x < (cat2._x - 350))) {
dead = false;
}
};
onEnterFrame = function () {
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if (!_root.ground.hitTest(guy._x, guy._y + 1, true)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach2)) {
camera.achievebar.gotoAndStop(4);
_global.ach2 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 3) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
ground.gotoAndStop(_local4 + 1);
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -59) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -59) {
guy._x = -59;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 10
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
guy._x = 2492.2;
guy._y = -599.9;
stopAllSounds();
sLevel2Music.start(0, 99);
_root.gotoAndStop(11);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var nLivesIn = _global.lives;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
this.createEmptyMovieClip("mSlimeSound", this.getNextHighestDepth());
var sSlime = new Sound(mSlimeSound);
sSlime.attachSound("hitslime");
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
_global.lev5 = true;
var aResetPositions = new Array();
aResetPositions[0] = 196;
aResetPositions[1] = 152.9;
var sDir = new Array();
sDir[0] = eval("NULL");
sDir[1] = "left";
sDir[2] = "right";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
box.onEnterFrame = function () {
if (box._x > 1417) {
if (box._y < -376) {
box._y = box._y + 15;
} else if (box._y >= -376) {
box.unloadMovie();
ground.gotoAndStop(4);
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
if ((guy.hitTest(spikes1) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
slimecat1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 4) {
if ((((guy.hitTest(_root["slimecat" + _local2]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
sSlime.start();
_root["slimecat" + _local2].walkanimsparent.walkMC.gotoAndStop(2);
_root["slimecat" + _local2].walkanimsparent.walkanims.gotoAndStop(2);
nGravity = -14;
if (guy._currentframe == 13) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
_global.secretlife1 = true;
if (!_global.ach6) {
_global.ach6 = true;
camera.achievebar.gotoAndStop(8);
}
}
};
onEnterFrame = function () {
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach2)) {
camera.achievebar.gotoAndStop(5);
_global.ach2 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 3) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
ground.gotoAndStop(_local4 + 1);
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -59) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -59) {
guy._x = -59;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 11
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
_root.gotoAndStop(12);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
}
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
guy._x = -2492.2;
guy._y = -599.9;
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
_global.lev6 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var sDir = new Array();
sDir[0] = eval("NULL");
sDir[1] = "left";
sDir[2] = "right";
var aRightStop = new Array();
aRightStop[0] = eval("NULL");
aRightStop[1] = -50;
aRightStop[2] = 300;
var aFallLev = new Array();
aFallLev[0] = eval("NULL");
aFallLev[1] = 83;
aFallLev[2] = -20;
var aFallen = new Array();
aFallen[0] = eval("NULL");
aFallen[1] = false;
aFallen[2] = false;
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
box1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if (_root["box" + _local2]._x < -856) {
if (_root["box" + _local2]._y < aFallLev[_local2]) {
_root["box" + _local2]._y = _root["box" + _local2]._y + 15;
} else if (_root["box" + _local2]._y >= aFallLev[_local2]) {
_root["box" + _local2]._y = aFallLev[_local2];
if (aFallen[1] == false) {
ground.gotoAndStop(2);
aFallen[1] = true;
}
if (((ground._currentframe > 2) && (aFallen[2] == false)) && (_local2 == 2)) {
ground.gotoAndStop(5);
aFallen[2] = true;
}
}
} else if (((Key.isDown(32) && (guy.hitTest(_root["box" + _local2]))) && (isFat)) && (bGrounded)) {
if ((guy._x < _root["box" + _local2]._x) && (_root["box" + _local2]._x < aRightStop[_local2])) {
_root["box" + _local2]._x = _root["box" + _local2]._x + 3.5;
} else if (guy._x > _root["box" + _local2]._x) {
_root["box" + _local2]._x = _root["box" + _local2]._x - 3.5;
}
}
_local2++;
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 6) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes2.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
slimecat1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 4) {
if ((((guy.hitTest(_root["slimecat" + _local2]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
_root["slimecat" + _local2].walkanimsparent.walkMC.gotoAndStop(2);
_root["slimecat" + _local2].walkanimsparent.walkanims.gotoAndStop(2);
nGravity = -14;
if (guy._currentframe == 13) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
onEnterFrame = function () {
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
camera.achievebar.gotoAndStop(10);
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
camera.achievebar.gotoAndStop(11);
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 3) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
ground.gotoAndStop(_local4 + 2);
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Instance of Symbol 437 MovieClip "camera" in Frame 11
onClipEvent (enterFrame) {
while (_root.guy._y > (this._y + 140)) {
if (this._y < 400) {
_y = (_y+1);
_y = (_y+1);
} else {
break;
}
}
while (_root.guy._y < (this._y - 20)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.guy._x > (this._x + 20)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.guy._x < (this._x - 20)) {
if (this._x > -6000) {
_x = (_x-1);
_x = (_x-1);
} else {
break;
}
}
}
Frame 12
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
guy._x = 2492.2;
guy._y = -599.9;
_root.gotoAndStop(13);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
var _local3 = 0;
while (_local3 < 2) {
aStartedMoving[_local3] = false;
_root.ground["mover" + _local3]._x = aLeftMost[_local3];
_local3++;
}
_local3 = 2;
while (_local3 < 4) {
aStartedMoving[_local3] = false;
_local3++;
}
_root.ground.vertmover2._y = aRightMost[2];
_root.ground.vertmover3._y = aLeftMost[3];
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var sDir = "left";
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
this.createEmptyMovieClip("mCatSound", this.getNextHighestDepth());
var sCatDeath = new Sound(mCatSound);
sCatDeath.attachSound("catdeath");
_global.lev7 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var aStartedMoving = new Array();
aStartedMoving[0] = false;
aStartedMoving[1] = false;
aStartedMoving[3] = false;
aStartedMoving[4] = false;
var aRightMost = new Array();
aRightMost[0] = 969;
aRightMost[1] = 2700;
aRightMost[2] = 14;
aRightMost[3] = 306;
var aLeftMost = new Array();
aLeftMost[0] = 460;
aLeftMost[1] = 1698.4;
aLeftMost[2] = -424;
aLeftMost[3] = -222;
var aBlockDir = new Array();
aBlockDir[0] = "right";
aBlockDir[1] = "right";
aBlockDir[2] = "left";
aBlockDir[3] = "right";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
_global.secretlife2 = true;
if (!_global.ach6) {
_global.ach6 = true;
camera.achievebar.gotoAndStop(8);
}
}
};
ground.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 2) {
if (guy.hitTest(_root.ground["mover" + _local2].hitbox)) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._x = guy._x + 3;
} else {
guy._x = guy._x - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground["mover" + _local2]._x = _root.ground["mover" + _local2]._x + 3;
if (_root.ground["mover" + _local2]._x >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground["mover" + _local2]._x = _root.ground["mover" + _local2]._x - 3;
if (_root.ground["mover" + _local2]._x <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
_local2 = 2;
while (_local2 < 4) {
if (guy.hitTest(_root.ground["vertmover" + _local2])) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._y = guy._y + 8;
} else {
guy._y = guy._y - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground["vertmover" + _local2]._y = _root.ground["vertmover" + _local2]._y + 8;
if (_root.ground["vertmover" + _local2]._y >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground["vertmover" + _local2]._y = _root.ground["vertmover" + _local2]._y - 3;
if (_root.ground["vertmover" + _local2]._y <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
};
box.onEnterFrame = function () {
if (ground._currentframe == 3) {
droppoint = 1583;
} else {
droppoint = 1374;
}
if (box._x > droppoint) {
if (ground._currentframe == 3) {
ground.gotoAndStop(5);
}
if ((ground._currentframe == 1) || (ground._currentframe == 2)) {
ground.gotoAndStop(2);
}
if (box._y < 280) {
box._y = box._y + 20;
} else if (box._y >= 280) {
box.unloadMovie();
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 6) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 10) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
if ((guy.hitTest(shuri1.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
if ((guy.hitTest(shuri2.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat1.onEnterFrame = function () {
if (!dead) {
cat1.gotoAndStop(1);
}
if ((((guy.hitTest(cat1) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
sCatDeath.start();
cat1.gotoAndStop(2);
dead = true;
nGravity = -14;
if (!_global.ach3) {
camera.achievebar.gotoAndStop(5);
_global.ach3 = true;
}
if ((!_global.ach11) && (isFat)) {
camera.achievebar.gotoAndStop(13);
_global.ach11 = true;
}
} else if ((((guy.hitTest(cat1) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
cat1._x--;
} else if (sDir == "left") {
cat1._x++;
}
}
if ((sDir == "left") && (!dead)) {
cat1._x = cat1._x - 3;
cat1._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
cat1._x = cat1._x + 3;
cat1._xscale = -100;
}
if (_root.ground.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
};
onEnterFrame = function () {
if (_global.lives == 5) {
this.camera.lives.gotoAndStop(5);
}
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
var _local4 = 0;
while (_local4 < 2) {
aStartedMoving[_local4] = false;
_root.ground["mover" + _local4]._x = aLeftMost[_local4];
_local4++;
}
_local4 = 2;
while (_local4 < 4) {
aStartedMoving[_local4] = false;
_local4++;
}
_root.ground.vertmover2._y = aRightMost[2];
_root.ground.vertmover3._y = aLeftMost[3];
}
while (_root.ground.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
camera.achievebar.gotoAndStop(10);
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
camera.achievebar.gotoAndStop(11);
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 2;
while (_local4 < 4) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
if (ground._currentframe == 1) {
ground.gotoAndStop(3);
} else if (ground._currentframe == 2) {
ground.gotoAndStop(4);
} else if (ground._currentframe == 5) {
ground.gotoAndStop(6);
}
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 13
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
guy._x = 2492.2;
guy._y = -599.9;
_root.gotoAndStop(14);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
var _local3 = 0;
while (_local3 < 2) {
aStartedMoving[_local3] = false;
_root.ground4["mover" + _local3]._x = aLeftMost[_local3];
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
aStartedMoving[_local3] = false;
_local3++;
}
_root.ground4.vertmover2._y = 73;
aBlockDir[2] = "right";
_root.ground4.vertmover3._y = aLeftMost[3];
_root.ground4.vertmover4._y = aRightMost[4];
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var sDir = "left";
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
_global.lev8 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var aStartedMoving = new Array();
aStartedMoving[0] = false;
aStartedMoving[1] = false;
aStartedMoving[3] = false;
aStartedMoving[4] = false;
aStartedMoving[5] = false;
var aRightMost = new Array();
aRightMost[0] = 2850;
aRightMost[1] = 2700;
aRightMost[2] = 420;
aRightMost[3] = 422;
aRightMost[4] = 660;
var aLeftMost = new Array();
aLeftMost[0] = 2500;
aLeftMost[1] = 1698.4;
aLeftMost[2] = 50;
aLeftMost[3] = 120;
aLeftMost[4] = -100;
var aBlockDir = new Array();
aBlockDir[0] = "right";
aBlockDir[1] = "right";
aBlockDir[2] = "right";
aBlockDir[3] = "right";
aBlockDir[4] = "left";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
ground4.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 2) {
if (guy.hitTest(_root.ground4["mover" + _local2].hitbox)) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._x = guy._x + 3;
} else {
guy._x = guy._x - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground4["mover" + _local2]._x = _root.ground4["mover" + _local2]._x + 3;
if (_root.ground4["mover" + _local2]._x >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground4["mover" + _local2]._x = _root.ground4["mover" + _local2]._x - 3;
if (_root.ground4["mover" + _local2]._x <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
_local2 = 2;
while (_local2 < 5) {
if (guy.hitTest(_root.ground4["vertmover" + _local2])) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._y = guy._y + 8;
} else {
guy._y = guy._y - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground4["vertmover" + _local2]._y = _root.ground4["vertmover" + _local2]._y + 8;
if (_root.ground4["vertmover" + _local2]._y >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground4["vertmover" + _local2]._y = _root.ground4["vertmover" + _local2]._y - 3;
if (_root.ground4["vertmover" + _local2]._y <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
};
box.onEnterFrame = function () {
if (ground4._currentframe == 3) {
droppoint = 1583;
} else {
droppoint = 1374;
}
if (box._x > droppoint) {
if (ground4._currentframe == 3) {
ground4.gotoAndStop(5);
}
if ((ground4._currentframe == 1) || (ground4._currentframe == 2)) {
ground4.gotoAndStop(2);
}
if (box._y < 280) {
box._y = box._y + 20;
} else if (box._y >= 280) {
box.unloadMovie();
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 6) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 12) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
if ((guy.hitTest(shuri1.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
if ((guy.hitTest(shuri2.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat1.onEnterFrame = function () {
if (!dead) {
cat1.gotoAndStop(1);
}
if ((((guy.hitTest(cat1) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
cat1.gotoAndStop(2);
dead = true;
nGravity = -14;
} else if ((((guy.hitTest(cat1) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
cat1._x--;
} else if (sDir == "left") {
cat1._x++;
}
}
if ((sDir == "left") && (!dead)) {
cat1._x = cat1._x - 3;
cat1._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
cat1._x = cat1._x + 3;
cat1._xscale = -100;
}
if (_root.ground4.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground4.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
onEnterFrame = function () {
if (_global.lives == 5) {
this.camera.lives.gotoAndStop(5);
}
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
var _local4 = 0;
while (_local4 < 2) {
aStartedMoving[_local4] = false;
_root.ground4["mover" + _local4]._x = aLeftMost[_local4];
_local4++;
}
_local4 = 2;
while (_local4 < 5) {
aStartedMoving[_local4] = false;
_local4++;
}
_root.ground4.vertmover2._y = 73;
aBlockDir[2] = "right";
_root.ground4.vertmover3._y = aLeftMost[3];
_root.ground4.vertmover4._y = aRightMost[4];
}
while (_root.ground4.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground4.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground4.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground4.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground4.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
camera.achievebar.gotoAndStop(10);
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
camera.achievebar.gotoAndStop(11);
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 3) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
ground4.gotoAndStop(2);
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 14
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 3) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
guy._x = 2492.2;
guy._y = -599.9;
_root.gotoAndStop(15);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
roof.gotoAndStop(1);
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
var _local3 = 0;
while (_local3 < 2) {
aStartedMoving[_local3] = false;
_root.ground4["mover" + _local3]._x = aLeftMost[_local3];
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
aStartedMoving[_local3] = false;
_local3++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var sDir = "left";
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
_global.lev9 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var aStartedMoving = new Array();
aStartedMoving[0] = false;
aStartedMoving[1] = false;
aStartedMoving[3] = false;
aStartedMoving[4] = false;
aStartedMoving[5] = false;
var aRightMost = new Array();
aRightMost[0] = 2850;
aRightMost[1] = 2700;
aRightMost[2] = ground4.vertmover2._y;
aRightMost[3] = 422;
aRightMost[4] = 735;
var aLeftMost = new Array();
aLeftMost[0] = 2500;
aLeftMost[1] = 1698.4;
aLeftMost[2] = -600;
aLeftMost[3] = 120;
aLeftMost[4] = -100;
var aBlockDir = new Array();
aBlockDir[0] = "right";
aBlockDir[1] = "right";
aBlockDir[2] = "left";
aBlockDir[3] = "right";
aBlockDir[4] = "left";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
activator.onEnterFrame = function () {
activator._visible = false;
if (guy.hitTest(activator)) {
roof.gotoAndStop(2);
}
};
roof.onEnterFrame = function () {
if (guy.hitTest(roof.faller.hitbox) && (!bDead)) {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
ground4.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 2) {
if (guy.hitTest(_root.ground4["mover" + _local2].hitbox)) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._x = guy._x + 3;
} else {
guy._x = guy._x - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground4["mover" + _local2]._x = _root.ground4["mover" + _local2]._x + 3;
if (_root.ground4["mover" + _local2]._x >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground4["mover" + _local2]._x = _root.ground4["mover" + _local2]._x - 3;
if (_root.ground4["mover" + _local2]._x <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
_local2 = 2;
while (_local2 < 5) {
if (guy.hitTest(_root.ground4["vertmover" + _local2])) {
aStartedMoving[_local2] = true;
if (aBlockDir[_local2] == "right") {
guy._y = guy._y + 8;
} else {
guy._y = guy._y - 3;
}
}
if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "right")) {
_root.ground4["vertmover" + _local2]._y = _root.ground4["vertmover" + _local2]._y + 8;
if (_root.ground4["vertmover" + _local2]._y >= aRightMost[_local2]) {
aBlockDir[_local2] = "left";
}
} else if ((aStartedMoving[_local2] == true) && (aBlockDir[_local2] == "left")) {
_root.ground4["vertmover" + _local2]._y = _root.ground4["vertmover" + _local2]._y - 3;
if (_root.ground4["vertmover" + _local2]._y <= aLeftMost[_local2]) {
aBlockDir[_local2] = "right";
}
}
_local2++;
}
};
box.onEnterFrame = function () {
if (ground4._currentframe == 3) {
droppoint = 1583;
} else {
droppoint = 1374;
}
if (box._x > droppoint) {
if (ground4._currentframe == 3) {
ground4.gotoAndStop(5);
}
if ((ground4._currentframe == 1) || (ground4._currentframe == 2)) {
ground4.gotoAndStop(2);
}
if (box._y < 280) {
box._y = box._y + 20;
} else if (box._y >= 280) {
box.unloadMovie();
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 10) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 12) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 6) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
if ((guy.hitTest(shuri1.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
if ((guy.hitTest(shuri2.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat1.onEnterFrame = function () {
if (!dead) {
cat1.gotoAndStop(1);
}
if ((((guy.hitTest(cat1) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
cat1.gotoAndStop(2);
dead = true;
nGravity = -14;
} else if ((((guy.hitTest(cat1) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
cat1._x--;
} else if (sDir == "left") {
cat1._x++;
}
}
if ((sDir == "left") && (!dead)) {
cat1._x = cat1._x - 3;
cat1._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
cat1._x = cat1._x + 3;
cat1._xscale = -100;
}
if (_root.ground4.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground4.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
onEnterFrame = function () {
if (_global.lives == 5) {
this.camera.lives.gotoAndStop(5);
}
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
roof.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
var _local4 = 0;
while (_local4 < 2) {
aStartedMoving[_local4] = false;
_root.ground4["mover" + _local4]._x = aLeftMost[_local4];
_local4++;
}
_local4 = 2;
while (_local4 < 5) {
aStartedMoving[_local4] = false;
_local4++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
while (_root.ground4.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground4.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground4.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground4.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground4.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
camera.achievebar.gotoAndStop(10);
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
camera.achievebar.gotoAndStop(11);
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 3) {
if ((guy.hitTest(_root["button" + _local4].butt) && (bGrounded)) && (isFat)) {
_root["button" + _local4].gotoAndStop(_local4 + 1);
ground4.gotoAndStop(_local4 + 1);
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 3) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 15
function morphfinished() {
bStopInput = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 4) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function endleveler() {
clearInterval(endlevel);
stopAllSounds();
_root.gotoAndStop(16);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
roof.gotoAndStop(1);
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
var _local3 = 0;
while (_local3 < 2) {
aStartedMoving[_local3] = false;
_root.ground4["mover" + _local3]._x = aLeftMost[_local3];
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
aStartedMoving[_local3] = false;
_local3++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
stop();
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var sDir = "left";
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
this.createEmptyMovieClip("mCatSound", this.getNextHighestDepth());
var sCatDeath = new Sound(mCatSound);
sCatDeath.attachSound("catdeath");
this.createEmptyMovieClip("mSlimeSound", this.getNextHighestDepth());
var sSlime = new Sound(mSlimeSound);
sSlime.attachSound("hitslime");
_global.lev10 = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var aStartedMoving = new Array();
aStartedMoving[0] = false;
aStartedMoving[1] = false;
aStartedMoving[3] = false;
aStartedMoving[4] = false;
aStartedMoving[5] = false;
var aRightMost = new Array();
aRightMost[0] = 2850;
aRightMost[1] = 2700;
aRightMost[2] = ground4.vertmover2._y;
aRightMost[3] = 422;
aRightMost[4] = 735;
var aLeftMost = new Array();
aLeftMost[0] = 2500;
aLeftMost[1] = 1698.4;
aLeftMost[2] = -600;
aLeftMost[3] = 120;
aLeftMost[4] = -100;
var aBlockDir = new Array();
aBlockDir[0] = "right";
aBlockDir[1] = "right";
aBlockDir[2] = "left";
aBlockDir[3] = "right";
aBlockDir[4] = "left";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
flag.gotoAndStop("flap");
activator.onEnterFrame = function () {
activator._visible = false;
if (guy.hitTest(activator)) {
roof.gotoAndStop(2);
}
};
roof.onEnterFrame = function () {
if (guy.hitTest(roof.faller.hitbox) && (!bDead)) {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
};
ground4.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root.ground4["spikemover" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
_local3 = 0;
while (_local3 < 2) {
if (guy.hitTest(_root.ground4["mover" + _local3].hitbox)) {
aStartedMoving[_local3] = true;
if (aBlockDir[_local3] == "right") {
guy._x = guy._x + 3;
} else {
guy._x = guy._x - 3;
}
}
if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "right")) {
_root.ground4["mover" + _local3]._x = _root.ground4["mover" + _local3]._x + 3;
if (_root.ground4["mover" + _local3]._x >= aRightMost[_local3]) {
aBlockDir[_local3] = "left";
}
} else if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "left")) {
_root.ground4["mover" + _local3]._x = _root.ground4["mover" + _local3]._x - 3;
if (_root.ground4["mover" + _local3]._x <= aLeftMost[_local3]) {
aBlockDir[_local3] = "right";
}
}
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
if (guy.hitTest(_root.ground4["vertmover" + _local3])) {
aStartedMoving[_local3] = true;
if (aBlockDir[_local3] == "right") {
guy._y = guy._y + 8;
} else {
guy._y = guy._y - 3;
}
}
if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "right")) {
_root.ground4["vertmover" + _local3]._y = _root.ground4["vertmover" + _local3]._y + 8;
if (_root.ground4["vertmover" + _local3]._y >= aRightMost[_local3]) {
aBlockDir[_local3] = "left";
}
} else if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "left")) {
_root.ground4["vertmover" + _local3]._y = _root.ground4["vertmover" + _local3]._y - 3;
if (_root.ground4["vertmover" + _local3]._y <= aLeftMost[_local3]) {
aBlockDir[_local3] = "right";
}
}
_local3++;
}
};
box.onEnterFrame = function () {
if (ground4._currentframe == 3) {
droppoint = 1583;
} else {
droppoint = 1374;
}
if (box._x > droppoint) {
if (ground4._currentframe == 3) {
ground4.gotoAndStop(5);
}
if ((ground4._currentframe == 1) || (ground4._currentframe == 2)) {
ground4.gotoAndStop(2);
}
if (box._y < 280) {
box._y = box._y + 20;
} else if (box._y >= 280) {
box.unloadMovie();
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 10) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 30) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (isFat && (!_global.ach4)) {
camera.achievebar.gotoAndStop(6);
_global.ach4 = true;
}
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 9) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
camera.achievebar.gotoAndStop(12);
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
if ((guy.hitTest(shuri1.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
if ((guy.hitTest(shuri2.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 5) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
goldbounce.onEnterFrame = function () {
if ((guy.hitTest(goldbounce) && (!bGrounded)) && (!bStopInput)) {
goldbounce.gotoAndStop(2);
nGravity = -50;
if (!isFat) {
guy.gotoAndStop("jump");
}
if (!_global.ach12) {
camera.achievebar.gotoAndStop(14);
_global.ach12 = true;
}
}
};
slimecat1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((((guy.hitTest(_root["slimecat" + _local2]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
sSlime.start();
_root["slimecat" + _local2].gotoAndStop(2);
nGravity = -14;
if (guy._currentframe == 13) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 3) {
if (!dead) {
_root["cat" + _local3].gotoAndStop(1);
}
if ((((guy.hitTest(_root["cat" + _local3]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
sCatDeath.start();
_root["cat" + _local3].gotoAndStop(2);
dead = true;
nGravity = -14;
if (!_global.ach3) {
camera.achievebar.gotoAndStop(5);
_global.ach3 = true;
}
if ((!_global.ach11) && (isFat)) {
camera.achievebar.gotoAndStop(13);
_global.ach11 = true;
}
} else if ((((guy.hitTest(_root["cat" + _local3]) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
} else if (sDir == "left") {
}
}
if ((sDir == "left") && (!dead)) {
_root["cat" + _local3]._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
_root["cat" + _local3]._xscale = -100;
}
if (_root.ground4.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground4.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
_local3++;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
if (!_global.ach6) {
_global.ach6 = true;
camera.achievebar.gotoAndStop(8);
} else if (((_global.secretlife1 == true) && (_global.secretlife2 == true)) && (!_global.ach7)) {
_global.ach7 = true;
camera.achievebar.gotoAndStop(9);
}
}
};
onEnterFrame = function () {
if (_global.lives == 6) {
this.camera.lives.gotoAndStop(6);
}
if (_global.lives == 5) {
this.camera.lives.gotoAndStop(5);
}
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
roof.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
var _local4 = 0;
while (_local4 < 2) {
aStartedMoving[_local4] = false;
_root.ground4["mover" + _local4]._x = aLeftMost[_local4];
_local4++;
}
_local4 = 2;
while (_local4 < 5) {
aStartedMoving[_local4] = false;
_local4++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
while (_root.ground4.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground4.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground4.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground4.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground4.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag.hitbox) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (isFat && (!_global.ach13)) {
_global.ach13 = true;
camera.achievebar.gotoAndStop(15);
}
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
camera.achievebar.gotoAndStop(10);
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
camera.achievebar.gotoAndStop(11);
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 4) {
if (guy.hitTest(_root["abutton" + _local4].butt) && (isFat)) {
_root["abutton" + _local4].gotoAndStop(2);
if ((ground4._currentframe == 1) && (_local4 == 1)) {
ground4.gotoAndStop(2);
} else if ((ground4._currentframe == 1) && (_local4 == 2)) {
ground4.gotoAndStop(4);
} else if ((ground4._currentframe > 1) && (_local4 == 1)) {
ground4.gotoAndStop(3);
} else if ((ground4._currentframe > 1) && (_local4 == 2)) {
ground4.gotoAndStop(3);
} else if (_local4 == 3) {
ground4.gotoAndStop(5);
}
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
camera.achievebar.gotoAndStop(3);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 4) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Frame 16
function morphfinished() {
bStopInput = false;
bTransforming = false;
clearInterval(morphtimer);
var _local2 = 1;
while (_local2 < 4) {
if (_root["apple" + _local2]._currentframe == 2) {
_root["apple" + _local2].gotoAndPlay(1);
}
_local2++;
}
}
function pukefinished() {
bStopInput = false;
clearInterval(puketimer);
}
function BEGIN() {
bStopInput = false;
clearInterval(begintimer);
}
function catcount() {
clearInterval(cat1timer);
}
function cat2count() {
bStopInput = false;
activator2stop = true;
_global.missilecounter = 0;
kingcat.gotoAndStop(3);
clearInterval(cat2timer);
}
function finishfunc() {
clearInterval(pausetimer);
}
function endleveler() {
clearInterval(endlevel);
guy._x = 2492.2;
guy._y = -599.9;
_root.gotoAndStop(17);
}
function hitdone() {
clearInterval(hittimer);
bHit = false;
_global.HP--;
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
}
function cutscene1finish() {
clearInterval(cutscene1timer);
bStopInput = false;
_global.followball = false;
camera.achievebar.lifebaranim.gotoAndStop(2);
bAttackPattern2 = true;
kingcat.gotoAndStop(6);
}
function cutscene2finish() {
clearInterval(cutscene2timer);
bStopInput = false;
_global.followball2 = false;
camera.achievebar.lifebaranim.gotoAndStop(3);
bAttackPattern3 = true;
kingcat.gotoAndStop(8);
}
function cutscene3finish() {
clearInterval(cutscene3timer);
bStopInput = false;
_global.followball3 = false;
camera.achievebar.lifebaranim.gotoAndStop(4);
_global.ach14 = true;
crown.gotoAndStop(2);
}
function crownready() {
clearInterval(crowngotimer);
crown.gotoAndStop(3);
endgametimer = setInterval(endgame, 7100);
}
function endgame() {
clearInterval(endgametimer);
_root.gotoAndStop(17);
}
function deathdone() {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
roof.gotoAndStop(1);
_global.lives--;
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
bHit = false;
bStopInput = false;
bDead = false;
clearInterval(deathtimer);
var _local3 = 0;
while (_local3 < 2) {
aStartedMoving[_local3] = false;
_root.ground4["mover" + _local3]._x = aLeftMost[_local3];
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
aStartedMoving[_local3] = false;
_local3++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
stop();
_root.camera.lifebar.gotoAndStop(6 - _global.HP);
_global.followball = false;
_global.followball2 = false;
_global.followball3 = false;
var bAttackPattern2 = false;
var bAttackPattern3 = false;
var bTransforming = false;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var bGrounded = false;
var isFat = false;
var bHit = false;
var bDead = false;
var bGotLife = false;
var bTouchBox = false;
var sDir = "left";
var activatorstop = false;
var activator2stop = false;
var activator3stop = false;
var nLivesIn = _global.lives;
var nHPIn = _global.HP;
this.createEmptyMovieClip("mJumpSound", this.getNextHighestDepth());
var jumpSound = new Sound(mJumpSound);
jumpSound.attachSound("jumpsound");
this.createEmptyMovieClip("mHitSound", this.getNextHighestDepth());
var hitSound = new Sound(mHitSound);
hitSound.attachSound("hitsound");
this.createEmptyMovieClip("mBossMusic", this.getNextHighestDepth());
var sBossMusic = new Sound(mBossMusic);
sBossMusic.attachSound("crafty");
this.createEmptyMovieClip("mBoss2Music", this.getNextHighestDepth());
var sBoss2Music = new Sound(mBoss2Music);
sBoss2Music.attachSound("victory");
this.createEmptyMovieClip("mBounceSound", this.getNextHighestDepth());
var sBounce = new Sound(mBounceSound);
sBounce.attachSound("bouncejump");
_global.BOSSlev = true;
var aResetPositions = new Array();
aResetPositions[0] = guy._y;
aResetPositions[1] = guy._x;
var aStartedMoving = new Array();
aStartedMoving[0] = false;
aStartedMoving[1] = false;
aStartedMoving[3] = false;
aStartedMoving[4] = false;
aStartedMoving[5] = false;
var aRightMost = new Array();
aRightMost[0] = 2850;
aRightMost[1] = 2700;
aRightMost[2] = ground4.vertmover2._y;
aRightMost[3] = 422;
aRightMost[4] = 735;
var aLeftMost = new Array();
aLeftMost[0] = 2500;
aLeftMost[1] = 1698.4;
aLeftMost[2] = -600;
aLeftMost[3] = 120;
aLeftMost[4] = -100;
var aBlockDir = new Array();
aBlockDir[0] = "right";
aBlockDir[1] = "right";
aBlockDir[2] = "left";
aBlockDir[3] = "right";
aBlockDir[4] = "left";
begintimer = setInterval(BEGIN, 2400);
bStopInput = true;
activator.onEnterFrame = function () {
activator._visible = false;
if (guy.hitTest(activator) && (!activatorstop)) {
catface.gotoAndStop(2);
cat1timer = setInterval(catcount, 6500);
activatorstop = true;
}
};
activator3.onEnterFrame = function () {
activator3._visible = false;
if (guy.hitTest(activator3) && (!activator3stop)) {
sBoss2Music.start();
bStopInput = true;
if (!isFat) {
guy.gotoAndStop("princessget");
crown.gotoAndStop(3);
endgametimer = setInterval(endgame, 7100);
} else {
guy.gotoAndStop("fatprincessget");
camera.achievebar.gotoAndStop(7);
_global.ach5 = true;
crowngotimer = setInterval(crownready, 600);
}
activator3stop = true;
}
};
kingcat.onEnterFrame = function () {
if ((bAttackPattern2 == false) && (bAttackPattern3 == false)) {
var _local3 = 0;
while (_local3 < _global.missilecounter) {
if (guy.hitTest(_root.kingcat.attackMC["missile" + _local3].missiledirectMC.missileanim.hitbox)) {
_root.kingcat.attackMC["missile" + _local3].missiledirectMC.gotoAndStop(2);
if (((!bHit) && (!bDead)) && (!bTransforming)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
}
_local3++;
}
} else if ((bAttackPattern2 == true) && (bAttackPattern3 == false)) {
var _local3 = 0;
while (_local3 < _global.missilecounter) {
if (guy.hitTest(_root.kingcat.attack2MC["missile" + _local3].missiledirectMC.missileanim.hitbox)) {
_root.kingcat.attack2MC["missile" + _local3].missiledirectMC.gotoAndStop(2);
if (((!bHit) && (!bDead)) && (!bTransforming)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _global.missilecounter) {
if (guy.hitTest(_root.kingcat.attack3MC["missile" + _local3].missiledirectMC.missileanim.hitbox)) {
_root.kingcat.attack3MC["missile" + _local3].missiledirectMC.gotoAndStop(2);
if (((!bHit) && (!bDead)) && (!bTransforming)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
}
_local3++;
}
}
};
activator2.onEnterFrame = function () {
activator2._visible = false;
if (guy.hitTest(activator2) && (!activator2stop)) {
sBossMusic.start(0, 99);
bStopInput = true;
guy.gotoAndStop("idle");
kingcat.gotoAndStop(2);
activator2.gotoAndStop(2);
ground4.gotoAndStop(3);
camera.achievebar.gotoAndStop(2);
cat2timer = setInterval(cat2count, 8100);
}
};
roof.onEnterFrame = function () {
if (guy.hitTest(roof.faller.hitbox) && (!bDead)) {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
ground4.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 4) {
if ((guy.hitTest(_root.ground4["spikemover" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
_local3 = 0;
while (_local3 < 2) {
if (guy.hitTest(_root.ground4["mover" + _local3].hitbox)) {
aStartedMoving[_local3] = true;
if (aBlockDir[_local3] == "right") {
guy._x = guy._x + 3;
} else {
guy._x = guy._x - 3;
}
}
if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "right")) {
_root.ground4["mover" + _local3]._x = _root.ground4["mover" + _local3]._x + 3;
if (_root.ground4["mover" + _local3]._x >= aRightMost[_local3]) {
aBlockDir[_local3] = "left";
}
} else if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "left")) {
_root.ground4["mover" + _local3]._x = _root.ground4["mover" + _local3]._x - 3;
if (_root.ground4["mover" + _local3]._x <= aLeftMost[_local3]) {
aBlockDir[_local3] = "right";
}
}
_local3++;
}
_local3 = 2;
while (_local3 < 5) {
if (guy.hitTest(_root.ground4["vertmover" + _local3])) {
aStartedMoving[_local3] = true;
if (aBlockDir[_local3] == "right") {
guy._y = guy._y + 8;
} else {
guy._y = guy._y - 3;
}
}
if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "right")) {
_root.ground4["vertmover" + _local3]._y = _root.ground4["vertmover" + _local3]._y + 8;
if (_root.ground4["vertmover" + _local3]._y >= aRightMost[_local3]) {
aBlockDir[_local3] = "left";
}
} else if ((aStartedMoving[_local3] == true) && (aBlockDir[_local3] == "left")) {
_root.ground4["vertmover" + _local3]._y = _root.ground4["vertmover" + _local3]._y - 3;
if (_root.ground4["vertmover" + _local3]._y <= aLeftMost[_local3]) {
aBlockDir[_local3] = "right";
}
}
_local3++;
}
};
box.onEnterFrame = function () {
if (ground4._currentframe == 3) {
droppoint = 1583;
} else {
droppoint = 1374;
}
if (box._x > droppoint) {
if (ground4._currentframe == 3) {
ground4.gotoAndStop(5);
}
if ((ground4._currentframe == 1) || (ground4._currentframe == 2)) {
ground4.gotoAndStop(2);
}
if (box._y < 280) {
box._y = box._y + 20;
} else if (box._y >= 280) {
box.unloadMovie();
}
} else if (((Key.isDown(32) && (guy.hitTest(box))) && (isFat)) && (bGrounded)) {
if (guy._x < box._x) {
box._x = box._x + 3.5;
} else if ((guy._x > box._x) && (box._x > 560)) {
box._x = box._x - 3.5;
}
}
};
SLAM1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 10) {
if ((guy.hitTest(_root["SLAM" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
spikes1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 30) {
if ((guy.hitTest(_root["spikes" + _local3].hitbox) && (!bHit)) && (!bDead)) {
if (!(_global.HP === 0)) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
};
axe1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 9) {
if ((guy.hitTest(_root["axe" + _local3].axespin.hitbox) && (!bHit)) && (!bDead)) {
if (((!bGrounded) && (_global.HP <= 0)) && (!_global.ach10)) {
_global.ach10 = true;
}
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
_local3++;
}
if ((guy.hitTest(shuri1.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
if ((guy.hitTest(shuri2.shurihitbox.shurihit) && (!bHit)) && (!bDead)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bDead = true;
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
}
};
bounce1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 5) {
if ((guy.hitTest(_root["bounce" + _local2]) && (!bGrounded)) && (!bStopInput)) {
sBounce.start();
_root["bounce" + _local2].gotoAndStop(2);
nGravity = -25;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
goldbounce.onEnterFrame = function () {
if ((guy.hitTest(goldbounce) && (!bGrounded)) && (!bStopInput)) {
goldbounce.gotoAndStop(2);
nGravity = -50;
if (!isFat) {
guy.gotoAndStop("jump");
}
}
};
slimecat1.onEnterFrame = function () {
var _local2 = 1;
while (_local2 < 3) {
if ((((guy.hitTest(_root["slimecat" + _local2]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
_root["slimecat" + _local2].gotoAndStop(2);
nGravity = -14;
if (guy._currentframe == 13) {
guy.gotoAndStop("jump");
}
}
_local2++;
}
};
cat1.onEnterFrame = function () {
var _local3 = 1;
while (_local3 < 3) {
if (!dead) {
_root["cat" + _local3].gotoAndStop(1);
}
if ((((guy.hitTest(_root["cat" + _local3]) && (!bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
_root["cat" + _local3].gotoAndStop(2);
dead = true;
nGravity = -14;
} else if ((((guy.hitTest(_root["cat" + _local3]) && (bGrounded)) && (!bStopInput)) && (!dead)) && (!bHit)) {
if (_global.HP > 0) {
if (!isFat) {
guy.gotoAndStop("hit");
} else if (isFat) {
guy.gotoAndStop("fatHit");
}
bHit = true;
hitSound.start();
hittimer = setInterval(hitdone, 500);
} else {
bHit = true;
hitSound.start();
if (!isFat) {
guy.gotoAndStop("death");
} else if (isFat) {
guy.gotoAndStop("fatdeath");
}
bStopInput = true;
deathtimer = setInterval(deathdone, 1500);
}
if (sDir == "right") {
} else if (sDir == "left") {
}
}
if ((sDir == "left") && (!dead)) {
_root["cat" + _local3]._xscale = 100;
}
if ((sDir == "right") && (!dead)) {
_root["cat" + _local3]._xscale = -100;
}
if (_root.ground4.hitTest(cat1._x - 16, cat1._y - 30, true)) {
sDir = "right";
}
if (_root.ground4.hitTest(cat1._x + 16, cat1._y - 30, true)) {
sDir = "left";
}
if ((guy._x > (cat1._x + 350)) || (guy._x < (cat1._x - 350))) {
dead = false;
}
_local3++;
}
};
oneup.onEnterFrame = function () {
if (guy.hitTest(oneup) && (!bGotLife)) {
oneup.gotoAndStop(2);
_global.lives++;
bGotLife = true;
}
};
onEnterFrame = function () {
if (_global.lives == 6) {
this.camera.lives.gotoAndStop(6);
}
if (_global.lives == 5) {
this.camera.lives.gotoAndStop(5);
}
if (_global.lives == 4) {
this.camera.lives.gotoAndStop(4);
}
if (_global.lives == 3) {
this.camera.lives.gotoAndStop(1);
}
if (_global.lives == 2) {
this.camera.lives.gotoAndStop(2);
} else if (_global.lives == 1) {
this.camera.lives.gotoAndStop(3);
} else if (_global.lives == 0) {
_root.gotoAndStop(5);
}
guy._y = guy._y + nGravity;
nGravity++;
if (guy._y > 650) {
isFat = false;
nMaxmove = 15;
guy.gotoAndStop("idle");
if ((_global.HP > -1) && (!bDead)) {
_global.lives--;
}
_global.HP = 5;
_root.camera.lifebar.gotoAndStop(1);
roof.gotoAndStop(1);
nSpeed = 0;
guy._y = aResetPositions[0];
guy._x = aResetPositions[1];
var _local4 = 0;
while (_local4 < 2) {
aStartedMoving[_local4] = false;
_root.ground4["mover" + _local4]._x = aLeftMost[_local4];
_local4++;
}
_local4 = 2;
while (_local4 < 5) {
aStartedMoving[_local4] = false;
_local4++;
}
_root.ground4.vertmover2._y = -118;
aBlockDir[2] = "left";
}
while (_root.ground4.hitTest(guy._x, guy._y, true)) {
nGravity = 0;
guy._y--;
bGrounded = true;
}
if ((!_root.ground4.hitTest(guy._x, guy._y + 1, true)) && (!bTouchBox)) {
bGrounded = false;
}
while (_root.ground4.hitTest(guy._x, guy._y - 52, true)) {
guy._y++;
}
while (_root.ground4.hitTest(guy._x - 16, guy._y - 30, true)) {
guy._x++;
}
while (_root.ground4.hitTest(guy._x + 16, guy._y - 30, true)) {
guy._x--;
}
if ((guy.hitTest(flag2) && (bGrounded)) && (!bStopInput)) {
nSpeed = 0;
if (!isFat) {
guy.gotoAndStop("celebrate");
} else {
guy.gotoAndStop("fatidle");
}
flag2.gotoAndPlay("complete");
_global.level++;
clearInterval(deathtimer);
bStopInput = true;
if ((nLivesIn == _global.lives) && (!_global.ach8)) {
_global.ach8 = true;
}
if (((nHPIn == _global.HP) && (_global.lives == nLivesIn)) && (!_global.ach9)) {
_global.ach9 = true;
}
endlevel = setInterval(endleveler, 3000);
}
var _local4 = 1;
while (_local4 < 4) {
if (guy.hitTest(_root["button" + _local4].butt) && (isFat)) {
_root["button" + _local4].gotoAndStop(2);
bStopInput = true;
if (_local4 == 1) {
guy.gotoAndStop("fatidle");
kingcat.gotoAndStop(5);
cannon1.gotoAndStop(2);
ground4.gotoAndStop(4);
_global.followball = true;
cutscene1timer = setInterval(cutscene1finish, 5300);
} else if (_local4 == 2) {
guy.gotoAndStop("fatidle");
kingcat.gotoAndStop(7);
cannon2.gotoAndStop(2);
ground4.gotoAndStop(5);
_global.followball2 = true;
cutscene2timer = setInterval(cutscene2finish, 3600);
} else if (_local4 == 3) {
guy.gotoAndStop("fatidle");
kingcat.gotoAndStop(9);
bigrock.gotoAndStop(2);
ground4.gotoAndStop(6);
_global.followball3 = true;
cutscene3timer = setInterval(cutscene3finish, 7700);
}
}
_local4++;
}
nSpeed = nSpeed * 0.85;
if (guy._x >= -3000) {
guy._x = guy._x + nSpeed;
}
if (guy._x < -3000) {
guy._x = -3000;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!bStopInput)) {
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
guy._xscale = -100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((Key.isDown(39) || (Key.isDown(68))) && (!bStopInput)) {
if (nSpeed <= nMaxmove) {
nSpeed++;
}
guy._xscale = 100;
if (bGrounded == true) {
if (!isFat) {
if (!bHit) {
guy.gotoAndStop("run");
} else {
guy.gotoAndStop("hit");
}
} else if (!bHit) {
guy.gotoAndStop("fatwalk");
} else {
guy.gotoAndStop("fatHit");
}
}
} else if ((nSpeed < 1) && (nSpeed > -1)) {
nSpeed = 0;
if ((bGrounded && (!bStopInput)) && (!isFat)) {
if (!bHit) {
guy.gotoAndStop("idle");
} else {
guy.gotoAndStop("hit");
}
} else if ((bGrounded && (!bStopInput)) && (isFat)) {
if (!bHit) {
guy.gotoAndStop("fatidle");
} else {
guy.gotoAndStop("fatHit");
}
}
}
if ((((Key.isDown(38) || (Key.isDown(87))) && (bGrounded == true)) && (!bStopInput)) && (!isFat)) {
nGravity = -14;
jumpSound.start();
guy.gotoAndStop("jump");
} else if ((((((Key.isDown(38) || (Key.isDown(87))) && (!bGrounded)) && (!bStopInput)) && (!isFat)) && (!_global.ach1)) && (nGravity > -1)) {
_global.ach1 = true;
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!bStopInput)) {
if (!isFat) {
_local4 = 1;
while (_local4 < 4) {
if (guy.hitTest(_root["apple" + _local4]) && (bGrounded)) {
nSpeed = 0;
morphtimer = setInterval(morphfinished, 2600);
bTransforming = true;
bStopInput = true;
_root["apple" + _local4].gotoAndStop(2);
guy.gotoAndPlay("getfat");
isFat = true;
nMaxmove = 3;
}
_local4++;
}
} else {
guy.gotoAndPlay("puke");
isFat = false;
bStopInput = true;
nMaxmove = 15;
puketimer = setInterval(pukefinished, 800);
}
}
};
Instance of Symbol 437 MovieClip "camera" in Frame 16
onClipEvent (enterFrame) {
if ((_global.followball == false) && (_global.followball2 == false)) {
while (_root.guy._y > (this._y + 140)) {
if (this._y < 400) {
_y = (_y+1);
_y = (_y+1);
} else {
break;
}
}
while (_root.guy._y < (this._y - 20)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.guy._x > (this._x + 20)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.guy._x < (this._x - 20)) {
if (this._x > -6000) {
_x = (_x-1);
_x = (_x-1);
} else {
break;
}
}
} else if (_global.followball == true) {
while (_root.cannon1.cannonanim.cannonball1._y > (this._y + 1)) {
_y = (_y+1);
_y = (_y+1);
}
while (_root.cannon1.cannonanim.cannonball1._y < (this._y - 1)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.cannon1.cannonanim.cannonball1._x > (this._x + 600)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.cannon1.cannonanim.cannonball1._x < (this._x - 1)) {
_x = (_x-1);
_x = (_x-1);
}
} else if (_global.followball2 == true) {
while (_root.cannon2.cannon2anim.cannonball2._y > (this._y + 1)) {
_y = (_y+1);
_y = (_y+1);
}
while (_root.cannon2.cannon2anim.cannonball2._y < (this._y - 1000)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.cannon2.cannon2anim.cannonball2._x > (this._x + 1)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.cannon2.cannon2anim.cannonball2._x < (this._x - 250)) {
_x = (_x-1);
_x = (_x-1);
}
}
if (_global.followball3 == true) {
while (_root.bigrock.rockmove.followrock._y > (this._y + 1)) {
_y = (_y+1);
_y = (_y+1);
}
while (_root.bigrock.rockmove.followrock._y < (this._y - 1200)) {
_y = (_y-1);
_y = (_y-1);
}
while (_root.bigrock.rockmove.followrock._x > (this._x + 200)) {
_x = (_x+1);
_x = (_x+1);
}
while (_root.bigrock.rockmove.followrock._x < (this._x - 1)) {
_x = (_x-1);
_x = (_x-1);
}
}
}
Frame 17
stop();
this.createEmptyMovieClip("mTitleMusic", this.getNextHighestDepth());
var sTitleMusic = new Sound(mTitleMusic);
sTitleMusic.attachSound("titlemusic");
sTitleMusic.start();
creditsMC.applezup.ef.onRelease = function () {
_root.getURL("http://eliteferrex.newgrounds.com/", "_blank");
};
creditsMC.applezup.wf.onRelease = function () {
_root.getURL("http://waterflame.newgrounds.com/", "_blank");
};
creditsMC.applezup.kez.onRelease = function () {
_root.getURL("http://www.myspace.com/kezziebeat", "_blank");
};
creditsMC.applezup.nick.onRelease = function () {
_root.getURL("http://www.freewebs.com/nickperrin/", "_blank");
};
Frame 18
stop();
if (_global.ach1 == true) {
ach1button.gotoAndStop(2);
}
if (_global.ach2 == true) {
ach2button.gotoAndStop(2);
}
if (_global.ach3 == true) {
ach3button.gotoAndStop(2);
}
if (_global.ach4 == true) {
ach4button.gotoAndStop(2);
}
if (_global.ach5 == true) {
ach5button.gotoAndStop(2);
}
if (_global.ach6 == true) {
ach6button.gotoAndStop(2);
}
if (_global.ach7 == true) {
ach7button.gotoAndStop(2);
}
if (_global.ach8 == true) {
ach8button.gotoAndStop(2);
}
if (_global.ach9 == true) {
ach9button.gotoAndStop(2);
}
if (_global.ach10 == true) {
ach10button.gotoAndStop(2);
}
if (_global.ach11 == true) {
ach11button.gotoAndStop(2);
}
if (_global.ach12 == true) {
ach12button.gotoAndStop(2);
}
if (_global.ach13 == true) {
ach13button.gotoAndStop(2);
}
if (_global.ach14 == true) {
ach14button.gotoAndStop(2);
}
Frame 19
stop();
if (_global.lev2 == true) {
lev2.gotoAndStop(2);
}
if (_global.lev3 == true) {
lev3.gotoAndStop(2);
}
if (_global.lev4 == true) {
lev4.gotoAndStop(2);
}
if (_global.lev5 == true) {
lev5.gotoAndStop(2);
}
if (_global.lev6 == true) {
lev6.gotoAndStop(2);
}
if (_global.lev7 == true) {
lev7.gotoAndStop(2);
}
if (_global.lev8 == true) {
lev8.gotoAndStop(2);
}
if (_global.lev9 == true) {
lev9.gotoAndStop(2);
}
if (_global.lev10 == true) {
lev10.gotoAndStop(2);
}
if (_global.BOSSlev == true) {
BOSSlev.gotoAndStop(2);
}
Symbol 9 MovieClip Frame 33
stop();
Symbol 1108 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local10 + ".swf", "POST");
}
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1109 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1110 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.7 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1111 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1112 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1113 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 13 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 15 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 17 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 19 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 21 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 37 MovieClip Frame 215
stop();
this._parent.gotoAndStop(4);
Symbol 39 MovieClip Frame 1
this._visible = false;
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 1
function Control() {
parentCol.setTransform(camCol.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function reset() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentCol.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var old = Stage.scaleMode;
Stage.scaleMode = "exactFit";
cX = Stage.width / 2;
cY = Stage.height / 2;
sX = Stage.width;
sY = Stage.height;
Stage.scaleMode = old;
var camCol = new Color(this);
var parentCol = new Color(_parent);
this.onEnterFrame = Control;
Control();
this.onUnload = reset;
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.mute == false) {
this.gotoAndStop(1);
} else if (_global.mute == true) {
this.gotoAndStop(2);
}
}
on (press) {
s = new Sound();
if (_global.mute == false) {
s.setVolume(0);
_global.mute = true;
this.gotoAndStop(2);
} else if (_global.mute == true) {
s.setVolume(100);
_global.mute = false;
this.gotoAndStop(1);
}
}
Symbol 76 MovieClip Frame 400
stop();
Symbol 82 Button
on (press) {
_root.gotoAndStop(19);
}
Symbol 87 Button
on (press) {
_root.gotoAndStop(18);
}
Symbol 92 Button
on (press) {
stopAllSounds();
_root.gotoAndStop(17);
}
Symbol 105 Button
on (press) {
_global.lives = 3;
if (_global.level < 6) {
sLevel1Music.start(0, 99);
} else if (_global.level < 11) {
sLevel2Music.start(0, 99);
}
_root.gotoAndStop(_global.level + 5);
}
Symbol 154 MovieClip Frame 33
stop();
Symbol 160 MovieClip Frame 1
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 160 MovieClip Frame 92
stop();
Symbol 161 MovieClip Frame 1
stop();
this.gotoAndStop("flap");
Instance of Symbol 150 MovieClip "hitbox" in Symbol 161 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 161 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 36
stop();
Symbol 258 MovieClip Frame 25
stop();
Symbol 259 MovieClip Frame 7
stop();
Symbol 296 MovieClip Frame 24
stop();
Symbol 301 MovieClip Frame 7
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 22
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 37
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 43
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 72
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 90
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 301 MovieClip Frame 213
stop();
Symbol 306 MovieClip Frame 30
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 55
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 75
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 90
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 120
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 206
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 306 MovieClip Frame 208
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Symbol 307 MovieClip Frame 3
stop();
Symbol 307 MovieClip Frame 4
stop();
Symbol 307 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 6
stop();
Symbol 307 MovieClip Frame 7
stop();
Symbol 307 MovieClip Frame 8
stop();
Symbol 307 MovieClip Frame 9
stop();
Symbol 307 MovieClip Frame 10
stop();
Symbol 307 MovieClip Frame 11
stop();
Symbol 307 MovieClip Frame 12
stop();
Symbol 307 MovieClip Frame 13
stop();
Symbol 307 MovieClip Frame 14
stop();
Symbol 307 MovieClip Frame 15
stop();
Symbol 307 MovieClip Frame 16
stop();
Symbol 307 MovieClip Frame 17
stop();
Symbol 311 MovieClip Frame 75
stop();
Symbol 312 MovieClip Frame 1
this._visible = false;
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 4
stop();
Symbol 325 MovieClip Frame 5
stop();
Symbol 325 MovieClip Frame 6
stop();
Symbol 330 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 333 Button
on (press) {
_parent.gotoAndStop(1);
}
Symbol 334 Button
on (press) {
clearInterval(endlevel);
clearInterval(begintimer);
clearInterval(puketimer);
clearInterval(morphtimer);
clearInterval(endgametimer);
clearInterval(deathtimer);
clearInterval(crowngotimer);
clearInterval(cutscene3timer);
clearInterval(cutscene2timer);
clearInterval(cutscene1timer);
clearInterval(cat2timer);
clearInterval(pausetimer);
clearInterval(cat1timer);
_root.gotoAndStop(18);
}
Symbol 339 Button
on (press) {
clearInterval(endlevel);
clearInterval(begintimer);
clearInterval(puketimer);
clearInterval(morphtimer);
clearInterval(endgametimer);
clearInterval(deathtimer);
clearInterval(crowngotimer);
clearInterval(cutscene3timer);
clearInterval(cutscene2timer);
clearInterval(cutscene1timer);
clearInterval(cat2timer);
clearInterval(pausetimer);
clearInterval(cat1timer);
sLevel1Music.stop();
sLevel2Music.stop();
sBoss1Music.stop();
sBoss2Music.stop();
_root.gotoAndStop(19);
}
Symbol 342 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 195
stop();
Symbol 358 MovieClip Frame 25
stop();
Symbol 361 MovieClip Frame 25
stop();
Symbol 369 MovieClip Frame 194
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Symbol 374 MovieClip Frame 130
stop();
Symbol 378 MovieClip Frame 130
stop();
Symbol 382 MovieClip Frame 130
stop();
Symbol 386 MovieClip Frame 130
stop();
Symbol 390 MovieClip Frame 130
stop();
Symbol 394 MovieClip Frame 130
stop();
Symbol 398 MovieClip Frame 130
stop();
Symbol 402 MovieClip Frame 130
stop();
Symbol 406 MovieClip Frame 130
stop();
Symbol 410 MovieClip Frame 130
stop();
Symbol 414 MovieClip Frame 130
stop();
Symbol 418 MovieClip Frame 130
stop();
Symbol 422 MovieClip Frame 130
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 2
stop();
Symbol 423 MovieClip Frame 3
stop();
Symbol 423 MovieClip Frame 4
stop();
Symbol 423 MovieClip Frame 5
stop();
Symbol 423 MovieClip Frame 6
stop();
Symbol 423 MovieClip Frame 7
stop();
Symbol 423 MovieClip Frame 8
stop();
Symbol 423 MovieClip Frame 9
stop();
Symbol 423 MovieClip Frame 10
stop();
Symbol 423 MovieClip Frame 11
stop();
Symbol 423 MovieClip Frame 12
stop();
Symbol 423 MovieClip Frame 13
stop();
Symbol 423 MovieClip Frame 14
stop();
Symbol 423 MovieClip Frame 15
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 3
stop();
Symbol 436 MovieClip Frame 4
stop();
Symbol 436 MovieClip Frame 5
stop();
Symbol 436 MovieClip Frame 6
stop();
Symbol 437 MovieClip Frame 1
function Control() {
parentCol.setTransform(camCol.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function reset() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentCol.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var old = Stage.scaleMode;
Stage.scaleMode = "exactFit";
cX = Stage.width / 2;
cY = Stage.height / 2;
sX = Stage.width;
sY = Stage.height;
Stage.scaleMode = old;
var camCol = new Color(this);
var parentCol = new Color(_parent);
this.onEnterFrame = Control;
Control();
this.onUnload = reset;
Instance of Symbol 44 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.mute == false) {
this.gotoAndStop(1);
} else if (_global.mute == true) {
this.gotoAndStop(2);
}
}
on (press) {
s = new Sound();
if (_global.mute == false) {
s.setVolume(0);
_global.mute = true;
this.gotoAndStop(2);
} else if (_global.mute == true) {
s.setVolume(100);
_global.mute = false;
this.gotoAndStop(1);
}
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 1
n = 8;
while (n < 50) {
duplicateMovieClip ("particle", "particle" + n, 100 + n);
setProperty("particle" + n, _rotation , Math.random() * 360);
setProperty("particle" + n, _alpha , Math.random() * 80);
setProperty("particle" + n, _xscale , Math.random() * 60);
setProperty("particle" + n, _yscale , Math.random() * 60);
tellTarget ("particle" + n) {
gotoAndPlay(Math.random() * 5);
};
n++;
}
Symbol 469 MovieClip Frame 92
stop();
Symbol 470 MovieClip Frame 1
stop();
this.gotoAndStop("flap");
Instance of Symbol 468 MovieClip "hitbox" in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 470 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 98
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 32
stop();
_parent.gotoAndStop(1);
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Instance of Symbol 524 MovieClip "shurihit" in Symbol 525 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 2
stop();
Symbol 530 MovieClip Frame 3
stop();
Instance of Symbol 535 MovieClip "hitbox" in Symbol 536 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 549 MovieClip "hitbox" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 549 MovieClip "hitbox" in Symbol 551 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 3
stop();
Symbol 561 MovieClip Frame 4
stop();
Symbol 573 MovieClip Frame 20
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
stop();
Instance of Symbol 599 MovieClip "hitbox" in Symbol 601 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
stop();
Symbol 617 MovieClip Frame 3
stop();
Symbol 617 MovieClip Frame 4
stop();
Symbol 617 MovieClip Frame 5
stop();
Instance of Symbol 619 MovieClip "hitbox" in Symbol 620 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 624 MovieClip "hitbox" in Symbol 625 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 632 MovieClip "shurihit" in Symbol 633 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 638 MovieClip "hitbox" in Symbol 639 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 638 MovieClip "hitbox" in Symbol 642 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 638 MovieClip "hitbox" in Symbol 647 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 659 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 2
stop();
Symbol 659 MovieClip Frame 3
stop();
Symbol 659 MovieClip Frame 4
stop();
Symbol 659 MovieClip Frame 5
stop();
Symbol 659 MovieClip Frame 6
stop();
Instance of Symbol 661 MovieClip "hitbox" in Symbol 662 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 667 MovieClip "hitbox" in Symbol 668 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
stop();
Symbol 705 MovieClip Frame 3
stop();
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 2
stop();
Instance of Symbol 713 MovieClip "hitbox" in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 2
stop();
Instance of Symbol 719 MovieClip "hitbox" in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 724 MovieClip "hitbox" in Symbol 727 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 731 MovieClip "hitbox" in Symbol 733 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 742 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 2
stop();
Symbol 742 MovieClip Frame 3
stop();
Symbol 742 MovieClip Frame 4
stop();
Symbol 742 MovieClip Frame 5
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 2
stop();
Symbol 748 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 749 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 2
stop();
Symbol 761 MovieClip Frame 32
stop();
_parent.gotoAndStop(1);
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 2
stop();
Symbol 771 MovieClip Frame 185
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 2
stop();
Symbol 776 MovieClip Frame 160
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 3
stop();
Symbol 786 MovieClip Frame 4
stop();
Symbol 786 MovieClip Frame 5
stop();
Symbol 786 MovieClip Frame 6
stop();
Symbol 799 MovieClip Frame 78
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 27
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 2
stop();
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 2
stop();
Symbol 810 MovieClip Frame 3
stop();
Symbol 820 MovieClip Frame 198
stop();
Symbol 820 MovieClip Frame 242
stop();
Instance of Symbol 821 MovieClip "hitbox" in Symbol 828 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 842 MovieClip Frame 13
stop();
Symbol 843 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 2
stop();
Instance of Symbol 843 MovieClip in Symbol 844 MovieClip Frame 425
/* no clip actions */
Symbol 844 MovieClip Frame 426
stop();
Symbol 846 MovieClip Frame 42
var firstmissile = true;
n = 0;
while (n < 4) {
duplicateMovieClip ("missile", "missile" + _global.missilecounter, 10000 + _global.missilecounter);
if (firstmissile == false) {
setProperty("missile" + _global.missilecounter, _rotation , Math.random() * 110);
}
_global.missilecounter++;
firstmissile = false;
n++;
}
firstmissile = true;
Symbol 858 MovieClip Frame 159
stop();
Symbol 859 MovieClip Frame 42
var firstmissile = true;
n = 0;
while (n < 10) {
duplicateMovieClip ("missile", "missile" + _global.missilecounter, 10000 + _global.missilecounter);
if (firstmissile == false) {
setProperty("missile" + _global.missilecounter, _rotation , Math.random() * 360);
}
_global.missilecounter++;
firstmissile = false;
n++;
}
firstmissile = true;
Symbol 860 MovieClip Frame 108
stop();
Symbol 861 MovieClip Frame 42
var firstmissile = true;
n = 0;
while (n < 10) {
duplicateMovieClip ("missile", "missile" + _global.missilecounter, 10000 + _global.missilecounter);
if (firstmissile == false) {
setProperty("missile" + _global.missilecounter, _rotation , Math.random() * 360);
}
_global.missilecounter++;
firstmissile = false;
n++;
}
firstmissile = true;
Symbol 872 MovieClip Frame 51
stopAllSounds();
Symbol 872 MovieClip Frame 232
stop();
Symbol 873 MovieClip Frame 1
stop();
Symbol 873 MovieClip Frame 2
stop();
Symbol 873 MovieClip Frame 3
stop();
Symbol 873 MovieClip Frame 4
stop();
Symbol 873 MovieClip Frame 5
stop();
Symbol 873 MovieClip Frame 6
stop();
Symbol 873 MovieClip Frame 7
stop();
Symbol 873 MovieClip Frame 8
stop();
Symbol 873 MovieClip Frame 9
stop();
Symbol 881 Button
on (press) {
stopAllSounds();
_root.gotoAndStop(3);
}
Instance of Symbol 960 MovieClip "nick" in Symbol 967 MovieClip Frame 1
on (release) {
getURL ("http://www.freewebs.com/nickperrin/");
}
Instance of Symbol 962 MovieClip "kez" in Symbol 967 MovieClip Frame 1
on (release) {
getURL ("http://www.myspace.com/kezziebeat");
}
Instance of Symbol 964 MovieClip "wf" in Symbol 967 MovieClip Frame 1
on (release) {
getURL ("http://waterflame.newgrounds.com/");
}
Instance of Symbol 966 MovieClip "ef" in Symbol 967 MovieClip Frame 1
on (release) {
getURL ("http://eliteferrex.newgrounds.com/");
}
Symbol 968 MovieClip Frame 1792
stop();
stopAllSounds();
_root.gotoAndStop(3);
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
stop();
Symbol 976 MovieClip Frame 1
stop();
Symbol 976 MovieClip Frame 2
stop();
Symbol 979 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 2
stop();
Symbol 982 MovieClip Frame 1
stop();
Symbol 982 MovieClip Frame 2
stop();
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 2
stop();
Symbol 988 MovieClip Frame 1
stop();
Symbol 988 MovieClip Frame 2
stop();
Symbol 991 MovieClip Frame 1
stop();
Symbol 991 MovieClip Frame 2
stop();
Symbol 994 MovieClip Frame 1
stop();
Symbol 994 MovieClip Frame 2
stop();
Symbol 997 MovieClip Frame 1
stop();
Symbol 997 MovieClip Frame 2
stop();
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1000 MovieClip Frame 2
stop();
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1003 MovieClip Frame 2
stop();
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 2
stop();
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 2
stop();
Symbol 1012 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 2
stop();
Symbol 1013 Button
on (press) {
_root.gotoAndStop(19);
}
Symbol 1015 MovieClip Frame 30
stop();
Symbol 1019 Button
on (press) {
_root.gotoAndStop(18);
}
Symbol 1026 Button
on (press) {
stopAllSounds();
sLevel1Music.start(0, 99);
_global.level = 1;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(6);
}
Symbol 1027 MovieClip Frame 1
stop();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
Symbol 1034 Button
on (press) {
stopAllSounds();
sLevel1Music.start(0, 99);
_global.level = 2;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(7);
}
Symbol 1035 MovieClip Frame 1
stop();
Symbol 1035 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
Symbol 1042 Button
on (press) {
stopAllSounds();
sLevel1Music.start(0, 99);
_global.level = 3;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(8);
}
Symbol 1043 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
Symbol 1050 Button
on (press) {
stopAllSounds();
sLevel1Music.start(0, 99);
_global.level = 4;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(9);
}
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
Symbol 1058 Button
on (press) {
stopAllSounds();
sLevel1Music.start(0, 99);
_global.level = 5;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(10);
}
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel1Music", this.getNextHighestDepth());
var sLevel1Music = new Sound(mLevel1Music);
sLevel1Music.attachSound("twothreethree");
Symbol 1066 Button
on (press) {
stopAllSounds();
sLevel2Music.start(0, 99);
_global.level = 6;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(11);
}
Symbol 1067 MovieClip Frame 1
stop();
Symbol 1067 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Symbol 1074 Button
on (press) {
stopAllSounds();
sLevel2Music.start(0, 99);
_global.level = 7;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(12);
}
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1075 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Symbol 1082 Button
on (press) {
stopAllSounds();
sLevel2Music.start(0, 99);
_global.level = 8;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(13);
}
Symbol 1083 MovieClip Frame 1
stop();
Symbol 1083 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Symbol 1090 Button
on (press) {
stopAllSounds();
sLevel2Music.start(0, 99);
_global.level = 9;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(14);
}
Symbol 1091 MovieClip Frame 1
stop();
Symbol 1091 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Symbol 1098 Button
on (press) {
stopAllSounds();
sLevel2Music.start(0, 99);
_global.level = 10;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(15);
}
Symbol 1099 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 2
stop();
this.createEmptyMovieClip("mLevel2Music", this.getNextHighestDepth());
var sLevel2Music = new Sound(mLevel2Music);
sLevel2Music.attachSound("clouds");
Symbol 1106 Button
on (press) {
stopAllSounds();
_global.level = 11;
_global.HP = 5;
_global.lives = 3;
_root.gotoAndStop(16);
}
Symbol 1107 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 2
stop();