Frame 1
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iSHOTBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Frame 2
_root._x = 0;
_root._y = 0;
stop();
Frame 3
_root._x = 0;
_root._y = 0;
stop();
_root.cutscene.play();
Frame 4
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
_root._x = 0;
_root._y = 0;
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 30;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.bossHealth = 100;
_root.bossMusic = new Sound(this);
_root.bossMusic.attachSound("bossMusic");
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Frame 5
_root.totalBerryCountFinal = 0;
_root.totalDeathsFinal = 0;
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.bossHealth = 100;
_root.bossMusic1 = new Sound(this);
_root.bossMusic1.attachSound("lvl1boss");
_root.lvl1Music = new Sound(this);
_root.lvl1Music.attachSound("xmas song");
_root.lvl1Music.setVolume(40);
_root.lvl1Music.start(0, 99);
_root.mcMUSIC = false;
_root.bossLevel = false;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iSHOTBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1100;
_root.leftPos = 550;
if (_root.mcMUSIC == false) {
_root.lvl1Music.stop();
_root.lvl1Music.start(0, 99);
_root.mcMUSIC = true;
}
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1650;
_root.leftPos = 1100;
_root.screenX = -1100;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 2200;
_root.leftPos = 1650;
_root.screenX = -1650;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.LEVEL_SCORE._x = 1880;
_root.LEVEL_BERRY._x = 2080;
_root.rightPos = 2750;
_root.leftPos = 2200;
_root.screenX = -2200;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.LEVEL_SCORE._x = 2350;
_root.LEVEL_BERRY._x = 2600;
_root.rightPos = 3300;
_root.leftPos = 2750;
_root.screenX = -2750;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = 0;
_root.screenY = -485;
_root._x = 750;
_root._y = -520;
_root.mcPLAYER._x = -500;
_root.mcPLAYER._y = 830;
_root.SRM._y = 580;
_root.SRM._x = -500;
_root.berryDepth = 950;
_root.scoreBoard._y = 535;
_root.scoreBoard._x = -270;
}
}
Instance of Symbol 323 MovieClip "hitter1" in Frame 5
onClipEvent (enterFrame) {
if ((_root.mcPLAYER.hitTest(this) == true) && (_root.isDead == false)) {
_root.logInfo.text = _root.logInfo.text + "Trace One";
_root.playerDeath();
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -550;
_root.screenY = -505;
_root.rightPos = 1100;
_root.leftPos = 550;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -1100;
_root.screenY = -505;
_root.rightPos = 1650;
_root.leftPos = 1100;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -1650;
_root.screenY = -505;
_root.rightPos = 2200;
_root.leftPos = 1650;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -2200;
_root.screenY = -505;
_root.rightPos = 2750;
_root.leftPos = 2200;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -2750;
_root.screenY = -505;
_root.rightPos = 3300;
_root.leftPos = 2750;
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 75.8;
_root.mcPLAYER._y = -373.4;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl1Music.stop();
_root.bossMusic1.start(0, 99);
}
}
Instance of Symbol 333 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.myy = _root.mcPLAYER._y;
_root.myx = _root.mcPLAYER._x;
_root.bats.text = "Hitler's Y is " + _root.myy;
}
Instance of Symbol 335 MovieClip "SRM" in Frame 5
onClipEvent (load) {
_root.moveDirection = "Left";
_root.leftPos = 0;
_root.rightPos = 550;
_root.berryDepth = 410;
}
onClipEvent (enterFrame) {
_root.moveTimer--;
_root.halk.text = (((((this._x + newline) + _root.moveDirection) + newline) + _root.rightPos) + newline) + _root.leftPos;
if (_root.moveDirection == "Left") {
this._x = this._x - 10;
} else if (_root.moveDirection == "Right") {
this._x = this._x + 10;
}
if (_root.SRM._x > _root.rightPos) {
_root.moveDirection = "Left";
setProperty(_root.SRM, _xscale , 60);
} else if (_root.SRM._x < _root.leftPos) {
_root.moveDirection = "Right";
setProperty(_root.SRM, _xscale , -60);
}
}
Instance of Symbol 197 MovieClip "LEVEL_BERRY" in Frame 5
onClipEvent (load) {
this._visible = true;
if (_root.berryFire == 1) {
this._x = _root.SRM._x;
this._y = _root.SRM._y;
}
}
onClipEvent (enterFrame) {
if (_root.timer == _root.timerMet) {
_root.timer = 0;
_root.timerMet = Math.round(Math.random() * 20) + 30;
_root.berryFire = 1;
_root.iBerry = _root.iBerry + 1;
duplicateMovieClip (_root.LEVEL_BERRY, "LEVEL_BERRY" + _root.iBerry, _root.iBerry);
_root["LEVEL_BERRY" + _root.iBerry].swapDepths(1000 + _root.iBerry);
}
if (this != _root.LEVEL_BERRY) {
if (_root.berryFire == 1) {
this._y = this._y + 5;
this._visible = true;
}
if (this._y >= _root.berryDepth) {
_root.iBerry--;
this.removeMovieClip();
}
}
if (this.hitTest(_root.mcPLAYER) == true) {
_root.iBerry--;
_root.mcBERRYCOUNT++;
_root.totalBerryCountFinal++;
this.removeMovieClip();
}
}
Instance of Symbol 379 MovieClip "boss1" in Frame 5
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.bossHealth <= 0) {
_root.bossHealth = -10;
_root.bossMusic1.stop();
_root.gotoAndStop(14);
}
}
Instance of Symbol 323 MovieClip "hitter3" in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 197 MovieClip "BERRY_SHOT" in Frame 5
onClipEvent (load) {
this._visible = true;
if (_root.berrySHOTFire == 1) {
this._x = _root.mcPLAYER._x;
this._y = _root.mcPLAYER._y;
}
if (_root.mcPLAYER.DIRECTION == "R") {
berryDirection = "Right";
_root.logInfo.text = _root.logInfo.text + "\nBullet Right";
}
if (_root.mcPLAYER.DIRECTION == "L") {
berryDirection = "Left";
_root.logInfo.text = _root.logInfo.text + "\nBullet Left";
}
}
onClipEvent (enterFrame) {
if (this != _root.BERRY_SHOT) {
if (berryDirection == "Right") {
this._x = this._x + 18;
this._visible = true;
}
if (berryDirection == "Left") {
this._x = this._x - 18;
this._visible = true;
}
}
if (this.hitTest(_root.boss1)) {
_root.bossHealth = _root.bossHealth - 10;
this.removeMovieClip();
}
if (this.hitTest(_root.peng_boss)) {
_root.boss2Health = _root.boss2Health - 10;
this.removeMovieClip();
}
if (this.hitTest(_root.space1)) {
_root.space1.health = _root.space1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.space2)) {
_root.space2.health = _root.space2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.space3)) {
_root.space3.health = _root.space3.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree1)) {
_root.tree1.health = _root.tree1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree2)) {
_root.tree2.health = _root.tree2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree3)) {
_root.tree3.health = _root.tree3.health - 1;
this.removeMovieClip();
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -550;
_root.screenY = -505;
_root.rightPos = 550;
_root.leftPos = -90;
}
}
Instance of Symbol 390 MovieClip "bossHealth" in Frame 5
onClipEvent (enterFrame) {
this._width = (_root.bossHealth / 100) * 100;
}
Instance of Symbol 398 MovieClip "tree2" in Frame 5
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree1" in Frame 5
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 400 MovieClip "space2" in Frame 5
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree3" in Frame 5
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 400 MovieClip "space1" in Frame 5
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 400 MovieClip "space2" in Frame 5
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Frame 6
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.bossHealth = 100;
_root.boss2Health = 100;
_root.bossMusic1 = new Sound(this);
_root.bossMusic1.attachSound("lvl2boss");
_root.lvl2Music = new Sound(this);
_root.lvl2Music.attachSound("lvl2");
_root.lvl2Music.setVolume(40);
_root.lvl2Music.start(0, 99);
_root.mcMUSIC = false;
_root.deadTimer = 100;
_root.bossLevel = false;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iSHOTBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Instance of Symbol 433 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.death_fake.gotoAndPlay(2);
}
}
Instance of Symbol 437 MovieClip "bear1" in Frame 6
onClipEvent (load) {
health = 5;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 437 MovieClip "bear2" in Frame 6
onClipEvent (load) {
health = 5;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu1" in Frame 6
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu3" in Frame 6
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu2" in Frame 6
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1100;
_root.leftPos = 550;
if (_root.mcMUSIC == false) {
_root.lvl2Music.stop();
_root.lvl2Music.start(0, 99);
_root.mcMUSIC = true;
}
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1650;
_root.leftPos = 1100;
_root.screenX = -1100;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 2200;
_root.leftPos = 1650;
_root.screenX = -1650;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 2750;
_root.leftPos = 2200;
_root.screenX = -2200;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 3300;
_root.leftPos = 2750;
_root.screenX = -2750;
_root.screenY = 0;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = 0;
_root.screenY = -485;
_root._x = 750;
_root._y = -520;
_root.mcPLAYER._x = -500;
_root.mcPLAYER._y = 730;
_root.SRM._y = 580;
_root.SRM._x = -500;
_root.berryDepth = 950;
_root.scoreBoard._y = 535;
_root.scoreBoard._x = -270;
}
}
Instance of Symbol 323 MovieClip "hitter1" in Frame 6
onClipEvent (enterFrame) {
if ((_root.mcPLAYER.hitTest(this) == true) && (_root.isDead == false)) {
_root.logInfo.text = _root.logInfo.text + "Trace One";
_root.playerDeath();
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -550;
_root.screenY = -505;
_root.rightPos = 1100;
_root.leftPos = 550;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -1100;
_root.screenY = -505;
_root.rightPos = 1650;
_root.leftPos = 1100;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -1650;
_root.screenY = -505;
_root.rightPos = 2200;
_root.leftPos = 1650;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -2200;
_root.screenY = -505;
_root.rightPos = 2750;
_root.leftPos = 2200;
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -2750;
_root.screenY = -505;
_root.rightPos = 3300;
_root.leftPos = 2750;
_root.bossMusic.start(0, 99);
_root.lvl2Music.stop();
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 59.1;
_root.mcPLAYER._y = -440.9;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl2Music.stop();
_root.bossMusic1.start(0, 99);
}
}
Instance of Symbol 335 MovieClip "SRM" in Frame 6
onClipEvent (load) {
_root.moveDirection = "Left";
_root.leftPos = 0;
_root.rightPos = 550;
_root.berryDepth = 410;
}
onClipEvent (enterFrame) {
_root.moveTimer--;
_root.halk.text = (((((this._x + newline) + _root.moveDirection) + newline) + _root.rightPos) + newline) + _root.leftPos;
if (_root.moveDirection == "Left") {
this._x = this._x - 10;
} else if (_root.moveDirection == "Right") {
this._x = this._x + 10;
}
if (_root.SRM._x > _root.rightPos) {
_root.moveDirection = "Left";
setProperty(_root.SRM, _xscale , 60);
} else if (_root.SRM._x < _root.leftPos) {
_root.moveDirection = "Right";
setProperty(_root.SRM, _xscale , -60);
}
}
Instance of Symbol 197 MovieClip "LEVEL_BERRY" in Frame 6
onClipEvent (load) {
this._visible = true;
if (_root.berryFire == 1) {
this._x = _root.SRM._x;
this._y = _root.SRM._y;
}
}
onClipEvent (enterFrame) {
if (_root.timer == _root.timerMet) {
_root.timer = 0;
_root.timerMet = Math.round(Math.random() * 20) + 30;
_root.berryFire = 1;
_root.iBerry = _root.iBerry + 1;
duplicateMovieClip (_root.LEVEL_BERRY, "LEVEL_BERRY" + _root.iBerry, _root.iBerry);
_root["LEVEL_BERRY" + _root.iBerry].swapDepths(1000 + _root.iBerry);
}
if (this != _root.LEVEL_BERRY) {
if (_root.berryFire == 1) {
this._y = this._y + 5;
this._visible = true;
}
if (this._y >= _root.berryDepth) {
_root.iBerry--;
this.removeMovieClip();
}
}
if (this.hitTest(_root.mcPLAYER) == true) {
_root.iBerry--;
_root.mcBERRYCOUNT++;
_root.totalBerryCountFinal++;
this.removeMovieClip();
}
}
Instance of Symbol 323 MovieClip "hitter3" in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.SRM._y = 575.6;
_root.SRM._x = 69.4;
_root.playerDeath();
}
}
Instance of Symbol 197 MovieClip "BERRY_SHOT" in Frame 6
onClipEvent (load) {
this._visible = true;
if (_root.berrySHOTFire == 1) {
this._x = _root.mcPLAYER._x;
this._y = _root.mcPLAYER._y;
}
if (_root.mcPLAYER.DIRECTION == "R") {
berryDirection = "Right";
_root.logInfo.text = _root.logInfo.text + "\nBullet Right";
}
if (_root.mcPLAYER.DIRECTION == "L") {
berryDirection = "Left";
_root.logInfo.text = _root.logInfo.text + "\nBullet Left";
}
}
onClipEvent (enterFrame) {
if (this != _root.BERRY_SHOT) {
if (berryDirection == "Right") {
this._x = this._x + 18;
this._visible = true;
}
if (berryDirection == "Left") {
this._x = this._x - 18;
this._visible = true;
}
}
if (this.hitTest(_root.peng_boss)) {
_root.boss2Health = _root.boss2Health - 10;
this.removeMovieClip();
}
if (this.hitTest(_root.mu1)) {
_root.mu1.health = _root.mu1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.mu2)) {
_root.mu2.health = _root.mu2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.mu3)) {
_root.mu3.health = _root.mu3.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.bear1)) {
_root.bear1.health = _root.bear1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.bear2)) {
_root.bear2.health = _root.bear2.health - 1;
this.removeMovieClip();
}
}
Instance of Symbol 321 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.screenX = -550;
_root.screenY = -505;
_root.rightPos = 550;
_root.leftPos = -90;
}
}
Instance of Symbol 390 MovieClip "bossHealth" in Frame 6
onClipEvent (enterFrame) {
this._width = (_root.boss2Health / 100) * 100;
}
Instance of Symbol 490 MovieClip "peng_boss" in Frame 6
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.boss2Health <= 0) {
_root.boss2Health = -10;
_root.bossMusic1.stop();
_root.gotoAndStop(13);
}
}
Frame 7
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.boss3Health = 100;
_root.bossMusic3 = new Sound(this);
_root.bossMusic3.attachSound("lvl3boss");
_root.lvl3Music = new Sound(this);
_root.lvl3Music.attachSound("lvl3");
_root.lvl3Music.setVolume(40);
_root.lvl3Music.start(0, 99);
_root.mcMUSIC = false;
_root.bossLevel = false;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Instance of Symbol 508 MovieClip "heads" in Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.gotoAndStop(12);
}
}
Instance of Symbol 512 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root._x = -545;
_root._y = 700;
_root.mcPLAYER._x = 590;
_root.mcPLAYER._y = -500;
_root.scrolling = false;
_root.screenX = 500;
_root.screenY = -700;
_root.bossMusic3.stop();
_root.boss3.gotoAndStop(5);
}
}
Instance of Symbol 568 MovieClip "boss3" in Frame 7
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.boss3Health <= 0) {
_root.boss3Health = -10;
_root.bossMusic3.stop();
this.gotoAndStop(5);
}
}
Instance of Symbol 321 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1100;
_root.leftPos = 550;
if (_root.mcMUSIC == false) {
_root.lvl3Music.stop();
_root.lvl3Music.start(0, 99);
_root.mcMUSIC = true;
}
}
}
Instance of Symbol 321 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 77.7;
_root.mcPLAYER._y = -476.8;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl3Music.stop();
_root.bossMusic3.start(0, 99);
}
}
Instance of Symbol 321 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 81;
_root.mcPLAYER._y = -500;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.bossMusic.start(0, 99);
}
}
Instance of Symbol 197 MovieClip "BERRY_SHOT" in Frame 7
onClipEvent (load) {
this._visible = true;
if (_root.berrySHOTFire == 1) {
this._x = _root.mcPLAYER._x;
this._y = _root.mcPLAYER._y;
}
if (_root.mcPLAYER.DIRECTION == "R") {
berryDirection = "Right";
_root.logInfo.text = _root.logInfo.text + "\nBullet Right";
}
if (_root.mcPLAYER.DIRECTION == "L") {
berryDirection = "Left";
_root.logInfo.text = _root.logInfo.text + "\nBullet Left";
}
}
onClipEvent (enterFrame) {
if (this != _root.BERRY_SHOT) {
if (berryDirection == "Right") {
this._x = this._x + 18;
this._visible = true;
}
if (berryDirection == "Left") {
this._x = this._x - 18;
this._visible = true;
}
}
if (this.hitTest(_root.boss1)) {
_root.bossHealth = _root.bossHealth - 10;
this.removeMovieClip();
}
if (this.hitTest(_root.wind1)) {
_root.wind1.health = _root.wind1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.wind2)) {
_root.wind2.health = _root.wind2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.cat1)) {
_root.cat1.health = _root.cat1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.cat2)) {
_root.cat2.health = _root.cat2.health - 1;
this.removeMovieClip();
}
}
Instance of Symbol 591 MovieClip "cat1" in Frame 7
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 591 MovieClip "cat2" in Frame 7
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 604 MovieClip "wind1" in Frame 7
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 604 MovieClip "wind2" in Frame 7
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Frame 8
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.3;
_root.mcPLAYER.INVERSEGRAVITY = 0.85;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.boss3Health = 100;
_root.bossMusic4 = new Sound(this);
_root.bossMusic4.attachSound("lvl4boss");
_root.lvl4Music = new Sound(this);
_root.lvl4Music.attachSound("lvl4");
_root.lvl4Music.setVolume(40);
_root.lvl4Music.start(0, 99);
_root.mcMUSIC = false;
_root.bossLevel = false;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Instance of Symbol 609 MovieClip "LEVEL_PLATFORM1" in Frame 8
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.mcPLAYER.GRAVITY = 1.3;
_root.mcPLAYER.INVERSEGRAVITY = 0.85;
}
}
Instance of Symbol 321 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.rightPos = 1100;
_root.leftPos = 550;
if (_root.mcMUSIC == false) {
_root.lvl4Music.stop();
_root.lvl4Music.start(0, 99);
_root.mcMUSIC = true;
}
}
}
Instance of Symbol 197 MovieClip "BERRY_SHOT" in Frame 8
onClipEvent (load) {
this._visible = true;
if (_root.berrySHOTFire == 1) {
this._x = _root.mcPLAYER._x;
this._y = _root.mcPLAYER._y;
}
if (_root.mcPLAYER.DIRECTION == "R") {
berryDirection = "Right";
_root.logInfo.text = _root.logInfo.text + "\nBullet Right";
}
if (_root.mcPLAYER.DIRECTION == "L") {
berryDirection = "Left";
_root.logInfo.text = _root.logInfo.text + "\nBullet Left";
}
}
onClipEvent (enterFrame) {
if (this != _root.BERRY_SHOT) {
if (berryDirection == "Right") {
this._x = this._x + 18;
this._visible = true;
}
if (berryDirection == "Left") {
this._x = this._x - 18;
this._visible = true;
}
}
if (this.hitTest(_root.boss1)) {
_root.bossHealth = _root.bossHealth - 10;
this.removeMovieClip();
}
if (this.hitTest(_root.wind1)) {
_root.wind1.health = _root.wind1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.wind2)) {
_root.wind2.health = _root.wind2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.cat1)) {
_root.cat1.health = _root.cat1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.cat2)) {
_root.cat2.health = _root.cat2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree1)) {
_root.tree1.health = _root.tree1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree2)) {
_root.tree2.health = _root.tree2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree3)) {
_root.tree3.health = _root.tree3.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.tree4)) {
_root.tree4.health = _root.tree4.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.bear1)) {
_root.bear1.health = _root.bear1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.bear2)) {
_root.bear2.health = _root.bear2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.space1)) {
_root.space1.health = _root.space1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.space2)) {
_root.space2.health = _root.space2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.space3)) {
_root.space3.health = _root.space3.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.mu1)) {
_root.mu1.health = _root.mu1.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.mu2)) {
_root.mu2.health = _root.mu2.health - 1;
this.removeMovieClip();
}
if (this.hitTest(_root.mu3)) {
_root.mu3.health = _root.mu3.health - 1;
this.removeMovieClip();
}
}
Instance of Symbol 400 MovieClip "space1" in Frame 8
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 400 MovieClip "space3" in Frame 8
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 400 MovieClip "space2" in Frame 8
onClipEvent (load) {
health = 3;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree4" in Frame 8
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree3" in Frame 8
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree2" in Frame 8
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 398 MovieClip "tree1" in Frame 8
onClipEvent (load) {
health = 1;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu2" in Frame 8
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu1" in Frame 8
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 444 MovieClip "mu3" in Frame 8
onClipEvent (load) {
health = 2;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 437 MovieClip "bear1" in Frame 8
onClipEvent (load) {
health = 5;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 437 MovieClip "bear2" in Frame 8
onClipEvent (load) {
health = 5;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 323 MovieClip "LEVEL_PLATFORM8" in Frame 8
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.mcPLAYER._x = 126;
_root.mcPLAYER._y = 330.7;
_root._x = 0;
_root._y = 0;
_root.lvl4Music.stop();
_root.bossMusic4.start(0, 99);
_root.gotoAndStop("level five");
}
}
Instance of Symbol 604 MovieClip "wind1" in Frame 8
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Instance of Symbol 604 MovieClip "wind2" in Frame 8
onClipEvent (load) {
health = 4;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.unloadMovie();
}
}
Frame 9
function playerDeath() {
if (_root.isDead == false) {
_root.logInfo.text = _root.logInfo.text + "\nTrace Two";
_root.isDead = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Three";
_root.death_sign.gotoAndPlay(2);
}
}
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 21;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.3;
_root.mcPLAYER.INVERSEGRAVITY = 0.85;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
_root.SHOOTKEY = 32;
_root.TRANSFORM = 84;
_root.TRANSFORMED = false;
_root.mcBERRYCOUNT = 0;
_root.mcBERRYSPEED = 9;
_root.berryFire = 0;
_root.timer = 0;
_root.timerMet = 40;
_root.iBerry = 0;
_root.berrySHOTFire = 0;
_root.iSHOTBerry = 0;
_root.SRMx;
_root.SRMy;
_root.isDead = false;
_root.scrolling = true;
_root.gunTimer = 0;
_root.screenX = 0;
_root.screenY = 0;
_root.boss4Health = 100;
_root.lvl4Music.stop();
_root.bossMusic4 = new Sound(this);
_root.bossMusic4.attachSound("lvl4boss");
_root.lvl4Music = new Sound(this);
_root.lvl4Music.attachSound("lvl4");
_root.bossMusic4.start(0, 99);
_root.bossMusic4.setVolume(40);
_root.mcMUSIC = false;
onEnterFrame = function () {
_root.timer++;
_root.gunTimer--;
_root.halk.text = (((((((((((((((((((((((((((((("GAME STATS\nBerryStart: " + _root.berryFire) + "\nTimer: ") + _root.timer) + "\nTimerMet: ") + _root.timerMet) + "\nCurrent I: ") + _root.iBerry) + "\nSRM X: ") + _root.SRM._x) + "\nSRM Y: ") + _root.SRM._y) + "\nMove Timer: ") + _root.moveTimer) + "\nMove Direction: ") + _root.moveDirection) + "\nBerry Count: ") + _root.mcBERRYCOUNT) + newline) + _root.mcPLAYER.GRAVITY) + newline) + _root.mcPLAYER.INVERSEGRAVITY) + "\nIs Dead: ") + _root.isDead) + "\nScrolling: ") + _root.scrolling) + "\nPLAYER X: ") + _root.mcPLAYER._x) + "\nPLAYER Y: ") + _root.mcPLAYER._y) + "\nY MOVE: ") + _root.mcPLAYER.YMOVEMENT;
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if ((_root.mcPLAYER.GROUNDED == false) && (_root.isDead == false)) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
if (_root.isDead != true) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
if (_root.scrolling == true) {
_root._x = _root._x - _root.mcPLAYER.XMOVEMENT;
_root.scoreBoard._x = _root.scoreBoard._x + _root.mcPLAYER.XMOVEMENT;
}
}
a = 1;
while (a <= 15) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_WALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_CEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 92) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["LEVEL_PLATFORM" + a]._y - 45;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 92) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["LEVEL_PLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((0 != (_root.mcPLAYER.XMOVEMENT < 0.5)) & (0 != (_root.mcPLAYER.XMOVEMENT > -0.5))) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("idle");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.FALLING == false) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("jump");
setProperty(_root.mcPLAYER, _xscale , -220);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , 220);
} else {
_root.mcPLAYER.gotoAndStop("run");
setProperty(_root.mcPLAYER, _xscale , -220);
}
}
return(undefined);
}
if (Key.isDown(_root.RUNRIGHTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "R";
}
}
if (Key.isDown(_root.RUNLEFTKEY)) {
if (_root.isDead == false) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
}
if (_root.mcPLAYER.DIRECTION == "T") {
_root.mcPLAYER.DIRECTION = "T";
} else {
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isToggled(_root.TRANSFORM)) {
if (_root.TRANSFORMED == false) {
_root.TRANSFORMED = true;
_root.mcPLAYER.gotoAndStop("transform");
_root.mcPLAYER.DIRECTION = "T";
}
if (_root.TRANSFORMED == true) {
_root.TRANSFORMED = false;
_root.mcPLAYER.gotoAndStop("untransform");
_root.mcPLAYER.DIRECTION = "L";
}
}
if (Key.isDown(32)) {
if ((_root.mcBERRYCOUNT > 0) && (_root.gunTimer <= 0)) {
_root.berrySHOTFire = 1;
_root.iSHOTBerry = _root.iSHOTBerry + 1;
duplicateMovieClip (_root.BERRY_SHOT, "BERRY_SHOT" + _root.iBerry, _root.iSHOTBerry);
root["BERRY_SHOT" + _root.iSHOTBerry].swapDepths(1000 + _root.iSHOTBerry);
_root.mcBERRYCOUNT--;
_root.gunTimer = 7;
}
}
};
Instance of Symbol 335 MovieClip "SRM" in Frame 9
onClipEvent (load) {
_root.moveDirection = "Left";
_root.leftPos = -320;
_root.rightPos = 935;
_root.berryDepth = 410;
}
onClipEvent (enterFrame) {
_root.moveTimer--;
_root.halk.text = (((((this._x + newline) + _root.moveDirection) + newline) + _root.rightPos) + newline) + _root.leftPos;
if (_root.moveDirection == "Left") {
this._x = this._x - 10;
} else if (_root.moveDirection == "Right") {
this._x = this._x + 10;
}
if (_root.SRM._x > _root.rightPos) {
_root.moveDirection = "Left";
setProperty(_root.SRM, _xscale , 60);
} else if (_root.SRM._x < _root.leftPos) {
_root.moveDirection = "Right";
setProperty(_root.SRM, _xscale , -60);
}
}
Instance of Symbol 197 MovieClip "LEVEL_BERRY" in Frame 9
onClipEvent (load) {
this._visible = true;
if (_root.berryFire == 1) {
this._x = _root.SRM._x;
this._y = _root.SRM._y;
}
}
onClipEvent (enterFrame) {
if (_root.timer == _root.timerMet) {
_root.timer = 0;
_root.timerMet = Math.round(Math.random() * 20) + 30;
_root.berryFire = 1;
_root.iBerry = _root.iBerry + 1;
duplicateMovieClip (_root.LEVEL_BERRY, "LEVEL_BERRY" + _root.iBerry, _root.iBerry);
_root["LEVEL_BERRY" + _root.iBerry].swapDepths(1000 + _root.iBerry);
}
if (this != _root.LEVEL_BERRY) {
if (_root.berryFire == 1) {
this._y = this._y + 5;
this._visible = true;
}
if (this._y >= _root.berryDepth) {
_root.iBerry--;
this.removeMovieClip();
}
}
if (this.hitTest(_root.mcPLAYER) == true) {
_root.iBerry--;
_root.mcBERRYCOUNT++;
_root.totalBerryCountFinal++;
this.removeMovieClip();
}
}
Instance of Symbol 197 MovieClip "BERRY_SHOT" in Frame 9
onClipEvent (load) {
this._visible = true;
if (_root.berrySHOTFire == 1) {
this._x = _root.mcPLAYER._x;
this._y = _root.mcPLAYER._y;
}
if (_root.mcPLAYER.DIRECTION == "R") {
berryDirection = "Right";
_root.logInfo.text = _root.logInfo.text + "\nBullet Right";
}
if (_root.mcPLAYER.DIRECTION == "L") {
berryDirection = "Left";
_root.logInfo.text = _root.logInfo.text + "\nBullet Left";
}
}
onClipEvent (enterFrame) {
if (this != _root.BERRY_SHOT) {
if (berryDirection == "Right") {
this._x = this._x + 18;
this._visible = true;
}
if (berryDirection == "Left") {
this._x = this._x - 18;
this._visible = true;
}
}
if (this.hitTest(_root.boss4)) {
_root.boss4Health = _root.boss4Health - 10;
this.removeMovieClip();
}
}
Instance of Symbol 323 MovieClip "LEVEL_PLATFORM1" in Frame 9
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
if (_root.mcMUSIC == false) {
_root.bossMusic4.stop();
_root.bossMusic4.start(0, 99);
_root.mcMUSIC = true;
}
_root.mcPLAYER.GRAVITY = 1.3;
_root.mcPLAYER.INVERSEGRAVITY = 0.85;
}
}
Instance of Symbol 820 MovieClip "boss4" in Frame 9
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.boss4Health <= 0) {
_root.boss4Health = -10;
_root.bossMusic4.stop();
_root.gotoAndStop(10);
}
}
Instance of Symbol 390 MovieClip "bossHealth" in Frame 9
onClipEvent (enterFrame) {
this._width = (_root.boss4Health / 100) * 200;
}
Frame 10
_root._x = 0;
_root._y = 0;
_root.cut56.play();
Frame 11
_root._x = 0;
_root._y = 0;
_root.cut94.play();
Frame 12
_root._x = 0;
_root._y = 0;
_root.cut48.play();
Frame 13
_root._x = 0;
_root._y = 0;
_root.cut8728.play();
Frame 14
_root._x = 0;
_root._y = 0;
_root.cut9489.play();
Frame 15
_root._x = 0;
_root._y = 0;
_root.randomSCORELOL = _root.totalBerryCountFinal * _root.totalDeathsFinal;
Symbol 31 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 36 Button
on (release) {
_root.play();
}
Symbol 37 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 37 MovieClip Frame 2
gotoAndPlay (1);
Symbol 98 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 10
_root.mcPLAYER.gotoAndStop("idle");
Symbol 103 MovieClip Frame 1
mcCOLLIDER._visible = false;
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Symbol 103 MovieClip Frame 5
stop();
Symbol 135 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 139 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 143 Button
on (release) {
nextFrame();
gotoAndStop;
}
Symbol 257 MovieClip Frame 835
_root.gotoAndStop(5);
Symbol 266 Button
on (release) {
_root.cutscene.stop();
gotoAndStop (5);
}
Symbol 269 Button
on (release) {
_root.cutscene.gotoAndPlay(1);
}
Symbol 273 Button
on (release) {
_root.mcPLAYER._x = 260;
_root.mcPLAYER._y = 330;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
gotoAndStop ("level one");
}
Symbol 277 Button
on (release) {
_root.mcPLAYER._x = 260;
_root.mcPLAYER._y = 330;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
gotoAndStop ("level two");
}
Symbol 281 Button
on (release) {
_root.mcPLAYER._x = 260;
_root.mcPLAYER._y = 330;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
gotoAndStop ("level three");
}
Symbol 285 Button
on (release) {
_root.mcPLAYER._x = 260;
_root.mcPLAYER._y = 330;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
gotoAndStop ("level four");
}
Symbol 286 Button
on (release) {
_root.mcPLAYER._x = 260;
_root.mcPLAYER._y = 330;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
gotoAndStop (10);
}
Instance of Symbol 317 MovieClip "hitter" in Symbol 319 MovieClip Frame 35
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 355 MovieClip Frame 52
_root.boss1.gotoAndStop(3);
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 360 MovieClip Frame 45
_root.boss1.gotoAndStop(4);
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 378 MovieClip Frame 81
_root.boss1.stageAttack = 1;
_root.boss1.bossTimer = 50;
_root.boss1.gotoAndStop(1);
Symbol 379 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 2
_root.logInfo.text = _root.logInfo.text + "\nTrace Four";
this._y = _root.mcPLAYER._y - 270;
_root.logInfo.text = _root.logInfo.text + "\nTrace Five";
this._x = _root.mcPLAYER._x - 80;
_root.logInfo.text = _root.logInfo.text + "\nTrace Six";
Symbol 382 MovieClip Frame 25
if (_root.bossLevel == true) {
if (_root._currentframe == 5) {
_root.totalDeathsFinal++;
_root.isDead = false;
this._x = 743.5;
this._y = -581.1;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.YMOVEMENT = 4;
_root.mcBERRYCOUNT = 5;
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 75.8;
_root.mcPLAYER._y = -373.4;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl1Music.stop();
_root.bossMusic1.start(0, 99);
}
if (_root._currentframe == 6) {
_root.totalDeathsFinal++;
_root.isDead = false;
this._x = 743.5;
this._y = -581.1;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.YMOVEMENT = 4;
_root.mcBERRYCOUNT = 5;
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 59.1;
_root.mcPLAYER._y = -440.9;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl2Music.stop();
_root.bossMusic1.start(0, 99);
}
if (_root._currentframe == 7) {
_root.totalDeathsFinal++;
_root.isDead = false;
this._x = 743.5;
this._y = -581.1;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.mcPLAYER.YMOVEMENT = 4;
_root.mcBERRYCOUNT = 5;
_root.bossLevel = true;
_root._x = 0;
_root._y = 700;
_root.mcPLAYER._x = 77.7;
_root.mcPLAYER._y = -476.8;
_root.scrolling = false;
_root.screenX = 0;
_root.screenY = -700;
_root.lvl3Music.stop();
_root.bossMusic3.start(0, 99);
}
} else if (_root.bossLevel == false) {
_root.totalDeathsFinal++;
_root.mcPLAYER._x = 128;
_root.mcPLAYER._y = 198;
_root.isDead = false;
_root.scrolling = true;
_root.logInfo.text = _root.logInfo.text + "\nTrace Seven";
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.75;
_root.logInfo.text = _root.logInfo.text + "\nTrace Eight";
_root.rightPos = 550;
_root.leftPos = 0;
_root._x = 0;
_root._y = 0;
_root.logInfo.text = _root.logInfo.text + "\nTrace Nine";
_root.scoreBoard._x = 481.3;
_root.scoreBoard._y = 14.4;
_root.SRM._y = 70;
_root.SRM._x = 69.4;
this._x = 743.5;
this._y = -581.1;
_root.logInfo.text = _root.logInfo.text + "\nTrace Ten";
_root.mcPLAYER.YMOVEMENT = 4;
_root.bossMusic.stop();
_root.mcMUSIC = false;
}
Instance of Symbol 443 MovieClip in Symbol 444 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
_root.logInfo.text = _root.logInfo.text + "\nTrace Four";
this._y = _root.mcPLAYER._y - 270;
_root.logInfo.text = _root.logInfo.text + "\nTrace Five";
this._x = _root.mcPLAYER._x - 80;
_root.logInfo.text = _root.logInfo.text + "\nTrace Six";
Symbol 451 MovieClip Frame 17
this._x = 1433.7;
this._y = -576;
Symbol 465 MovieClip Frame 46
_root.peng_boss.gotoAndStop(3);
Symbol 469 MovieClip Frame 37
_root.peng_boss.gotoAndStop(4);
Instance of Symbol 458 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.boss2Health <= 0) {
_root.boss2Health = -10;
_root.bossMusic.stop();
this.gotoAndStop(5);
}
}
Symbol 477 MovieClip Frame 22
_root.peng_boss.stageAttack = 1;
_root.peng_boss.bossTimer = 50;
_root.peng_boss.gotoAndStop(1);
Symbol 490 MovieClip Frame 1
stop();
Instance of Symbol 458 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
stageAttack = 1;
bossTimer = 50;
}
onClipEvent (enterFrame) {
if (stageAttack == 1) {
bossTimer--;
if (bossTimer <= 0) {
stageAttack = 2;
this.gotoAndStop(2);
}
}
if (_root.boss2Health <= 0) {
_root.boss2Health = -10;
_root.bossMusic.stop();
this.gotoAndStop(5);
}
}
Instance of Symbol 465 MovieClip "ram" in Symbol 490 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 469 MovieClip in Symbol 490 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 477 MovieClip in Symbol 490 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 490 MovieClip Frame 5
onEnterFrame = function () {
_root.deadTimer = _root.deadTimer - 1;
if (_root.deadTimer <= 0) {
_root.peng_boss.gotoAndStop(6);
}
};
Symbol 534 MovieClip Frame 59
_root.boss3.gotoAndStop("blender");
Symbol 552 MovieClip Frame 45
_root.boss3.gotoAndStop("BSOD");
Symbol 567 MovieClip Frame 30
_root.boss3.stageAttack = 1;
_root.boss3.bossTimer = 50;
_root.boss3.gotoAndStop(1);
Instance of Symbol 534 MovieClip in Symbol 568 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 567 MovieClip "BSOD" in Symbol 568 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 593 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 603 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 680 MovieClip Frame 22
_root.boss4.gotoAndStop("laser");
Instance of Symbol 694 MovieClip in Symbol 701 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 694 MovieClip in Symbol 701 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 698 MovieClip in Symbol 701 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 701 MovieClip Frame 25
_root.boss4.gotoAndStop(4);
Symbol 709 MovieClip Frame 35
_root.boss4.gotoAndStop(5);
Symbol 715 MovieClip Frame 51
_root.boss4.gotoAndStop(6);
Symbol 806 MovieClip Frame 87
_root.boss4.gotoAndStop(7);
Symbol 819 MovieClip Frame 102
_root.boss4.stageAttack = 1;
_root.boss4.bossTimer = 50;
_root.boss4.gotoAndStop(1);
Instance of Symbol 677 MovieClip "idle" in Symbol 820 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 680 MovieClip "punch" in Symbol 820 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 709 MovieClip in Symbol 820 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 715 MovieClip in Symbol 820 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 806 MovieClip in Symbol 820 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Instance of Symbol 819 MovieClip in Symbol 820 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.mcPLAYER.hitTest(this) == true) {
_root.playerDeath();
}
}
Symbol 1055 MovieClip Frame 565
_root.gotoAndStop(11);
Symbol 1089 MovieClip Frame 909
_root.gotoAndStop(15);
Symbol 1165 MovieClip Frame 371
_root.mcPLAYER._x = 126;
_root.mcPLAYER._y = 330.7;
_root._x = 0;
_root._y = 0;
_root.gotoAndStop("level four");
Symbol 1174 MovieClip Frame 1
play();
Symbol 1174 MovieClip Frame 130
_root.mcPLAYER._x = 126;
_root.mcPLAYER._y = 330.7;
_root._x = 0;
_root._y = 0;
_root.gotoAndStop("level three");
Symbol 1241 MovieClip Frame 178
stop();
_root.mcPLAYER._x = 133.8;
_root.mcPLAYER._y = 308.1;
_root._x = 0;
_root._y = 0;
_root.gotoAndStop("level two");
Symbol 1248 Button
on (release) {
gotoAndStop (2);
}