Frame 1
stop();
Frame 2
stop();
Instance of Symbol 72 MovieClip in Frame 2
on (release) {
_root.gotoAndPlay(12);
}
Frame 3
var life = "100";
var score = "0";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 88 MovieClip "crab1" in Frame 3
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 3);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab3" in Frame 3
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 1);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab2" in Frame 3
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 90 MovieClip "laser" in Frame 3
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x + 150;
this._y = _root.player._y + 63;
}
onClipEvent (enterFrame) {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1)) {
if (_root.crabhealth1 != 0) {
_root.crabhealth1 = _root.crabhealth1 - "1";
}
}
if (_root.crabhealth1 == "0") {
_root.crab1.play();
_root.crabCanWalk1 = "no";
_root.crabAlive1 = false;
}
if (this.hitTest(_root.crab2)) {
if (_root.crabhealth2 != 0) {
_root.crabhealth2 = _root.crabhealth2 - "1";
}
}
if (_root.crabhealth2 == "0") {
_root.crab2.play();
_root.crabCanWalk2 = "no";
_root.crabAlive2 = false;
}
if (this.hitTest(_root.crab3)) {
if (_root.crabhealth3 != 0) {
_root.crabhealth3 = _root.crabhealth3 - "1";
}
}
if (_root.crabhealth3 == "0") {
_root.crab3.play();
_root.crabCanWalk3 = "no";
_root.crabAlive3 = false;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 3
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
setInterval(laserCounter, 1000);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 3
onClipEvent (enterFrame) {
if (_root.score == "3") {
_x = 394.6;
_y = 141.6;
}
}
Frame 4
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 88 MovieClip "crab1" in Frame 4
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab3" in Frame 4
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 6);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab2" in Frame 4
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 4
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 90 MovieClip "laser" in Frame 4
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x + 150;
this._y = _root.player._y + 63;
}
onClipEvent (enterFrame) {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1)) {
if (_root.crabhealth1 != 0) {
_root.crabhealth1 = _root.crabhealth1 - "1";
}
}
if (_root.crabhealth1 == "0") {
_root.crab1.play();
_root.crabCanWalk1 = "no";
_root.crabAlive1 = false;
}
if (this.hitTest(_root.crab2)) {
if (_root.crabhealth2 != 0) {
_root.crabhealth2 = _root.crabhealth2 - "1";
}
}
if (_root.crabhealth2 == "0") {
_root.crab2.play();
_root.crabCanWalk2 = "no";
_root.crabAlive2 = false;
}
if (this.hitTest(_root.crab3)) {
if (_root.crabhealth3 != 0) {
_root.crabhealth3 = _root.crabhealth3 - "1";
}
}
if (_root.crabhealth3 == "0") {
_root.crab3.play();
_root.crabCanWalk3 = "no";
_root.crabAlive3 = false;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 4
onClipEvent (enterFrame) {
if (_root.score == "7") {
_x = 394.6;
_y = 141.6;
}
}
Frame 5
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 88 MovieClip "crab1" in Frame 5
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 6);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab2" in Frame 5
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 7);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 88 MovieClip "crab3" in Frame 5
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 8);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 5
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 5
onClipEvent (enterFrame) {
if (_root.score == "11") {
_x = 394.6;
_y = 141.6;
}
}
Frame 6
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var bossCrabCanWalk = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var bossCrabHealth = "2200";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
bosscrabAlive = true;
stop();
Instance of Symbol 88 MovieClip "crab3" in Frame 6
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 148 MovieClip "bosscrab" in Frame 6
onClipEvent (enterFrame) {
var crabhealth = _root.bossCrabHealth;
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x > _x) {
_x = (_x + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x < _x) {
_x = (_x - 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y > _y) {
_y = (_y + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y < _y) {
_y = (_y - 2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 6
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.bosscrab) && (_root.bosscrabAlive == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.bosscrab.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 90 MovieClip "laser" in Frame 6
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x + 150;
this._y = _root.player._y + 63;
}
onClipEvent (enterFrame) {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bosscrab)) {
if (_root.bossCrabHealth != 0) {
_root.bossCrabHealth = _root.bossCrabHealth - "1";
}
}
if (_root.bossCrabHealth == "0") {
_root.bosscrab.play();
_root.bossCrabCanWalk = "no";
_root.bosscrabAlive = false;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 6
onClipEvent (enterFrame) {
if (_root.score == "15") {
_x = 394.6;
_y = 141.6;
}
}
Frame 7
stop();
Instance of Symbol 103 MovieClip "nextstage" in Frame 7
onClipEvent (enterFrame) {
if (_root.score == "10") {
_x = 394.6;
_y = 141.6;
}
}
Frame 8
var life = "100";
var score = "0";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 186 MovieClip "crab2" in Frame 8
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab1" in Frame 8
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 3);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab3" in Frame 8
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 1);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 8
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
setInterval(laserCounter, 1000);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 190 MovieClip "laser" in Frame 8
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x + 150;
this._y = _root.player._y + 63;
}
onClipEvent (enterFrame) {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1)) {
if (_root.crabhealth1 != 0) {
_root.crabhealth1 = _root.crabhealth1 - "1";
}
}
if (_root.crabhealth1 == "0") {
_root.crab1.play();
_root.crabCanWalk1 = "no";
_root.crabAlive1 = false;
}
if (this.hitTest(_root.crab2)) {
if (_root.crabhealth2 != 0) {
_root.crabhealth2 = _root.crabhealth2 - "1";
}
}
if (_root.crabhealth2 == "0") {
_root.crab2.play();
_root.crabCanWalk2 = "no";
_root.crabAlive2 = false;
}
if (this.hitTest(_root.crab3)) {
if (_root.crabhealth3 != 0) {
_root.crabhealth3 = _root.crabhealth3 - "1";
}
}
if (_root.crabhealth3 == "0") {
_root.crab3.play();
_root.crabCanWalk3 = "no";
_root.crabAlive3 = false;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 8
onClipEvent (enterFrame) {
if (_root.score == "3") {
_x = 394.6;
_y = 141.6;
}
}
Frame 9
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 186 MovieClip "crab2" in Frame 9
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 3);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 3);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab1" in Frame 9
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 5);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 5);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab3" in Frame 9
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 9
onClipEvent (enterFrame) {
if (_root.score == "6") {
_x = 394.6;
_y = 141.6;
}
}
Frame 10
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 186 MovieClip "crab2" in Frame 10
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth2;
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 6);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk2 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 6);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab1" in Frame 10
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth1;
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk1 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 8);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 186 MovieClip "crab3" in Frame 10
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 7);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 10
onClipEvent (enterFrame) {
if (_root.score == "11") {
_x = 394.6;
_y = 141.6;
}
}
Frame 11
stop();
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var bossCrabCanWalk = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var bossCrabHealth = "2500";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
bosscrabAlive = true;
stop();
Instance of Symbol 88 MovieClip "crab3" in Frame 11
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 223 MovieClip "bosscrab" in Frame 11
onClipEvent (enterFrame) {
var crabhealth = _root.bossCrabHealth;
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x > _x) {
_x = (_x + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x < _x) {
_x = (_x - 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y > _y) {
_y = (_y + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y < _y) {
_y = (_y - 1);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 11
onClipEvent (enterFrame) {
if (_root.score == "12") {
_x = 394.6;
_y = 141.6;
}
}
Frame 12
stop();
Frame 13
var life = "100";
var score = "0";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 26 MovieClip "crab1" in Frame 13
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 7);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip "crab2" in Frame 13
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 7);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip "crab3" in Frame 13
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 7);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 7);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 13
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 90 MovieClip "laser" in Frame 13
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x + 150;
this._y = _root.player._y + 63;
}
onClipEvent (enterFrame) {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1)) {
if (_root.crabhealth1 != 0) {
_root.crabhealth1 = _root.crabhealth1 - "1";
}
}
if (_root.crabhealth1 == "0") {
_root.crab1.play();
_root.crabCanWalk1 = "no";
_root.crabAlive1 = false;
}
if (this.hitTest(_root.crab2)) {
if (_root.crabhealth2 != 0) {
_root.crabhealth2 = _root.crabhealth2 - "1";
}
}
if (_root.crabhealth2 == "0") {
_root.crab2.play();
_root.crabCanWalk2 = "no";
_root.crabAlive2 = false;
}
if (this.hitTest(_root.crab3)) {
if (_root.crabhealth3 != 0) {
_root.crabhealth3 = _root.crabhealth3 - "1";
}
}
if (_root.crabhealth3 == "0") {
_root.crab3.play();
_root.crabCanWalk3 = "no";
_root.crabAlive3 = false;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 13
onClipEvent (enterFrame) {
if (_root.score == "3") {
_x = 394.6;
_y = 141.6;
}
}
Frame 14
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 26 MovieClip "crab1" in Frame 14
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 8);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip in Frame 14
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 8);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip in Frame 14
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 8);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 8);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 14
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 14
onClipEvent (enterFrame) {
if (_root.score == "5") {
_x = 394.6;
_y = 141.6;
}
}
Frame 15
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var crabhealth3 = "100";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 26 MovieClip "crab1" in Frame 15
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 9);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip "crab2" in Frame 15
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 26 MovieClip "crab3" in Frame 15
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 9);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 9);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 98 MovieClip "player" in Frame 15
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(38)) {
_y = (_y - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(40)) {
_y = (_y - -10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(37)) {
_x = (_x - 10);
}
}
}
onClipEvent (enterFrame) {
if (_root.canWalk == "yes") {
if (Key.isDown(39)) {
_x = (_x - -10);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crab1) && (_root.crabAlive1 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab2) && (_root.crabAlive2 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (this.hitTest(_root.crab3) && (_root.crabAlive3 == true)) {
if (_root.life != 0) {
_root.life = _root.life - "1";
}
}
if (_root.life == "0") {
_root.player.play();
_root.canWalk = "no";
}
}
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
_root["laser" + laserCounter]._visible = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall2)) {
this._x = this._x - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall4)) {
this._y = this._y - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nextstage)) {
_root.nextstage._x = -394.6;
_root.nextstage._y = -141.6;
_root.crab1._x = 778.8;
_root.crab1._y = 0;
_root.crab2._x = 878.6;
_root.crab2._y = 191.1;
_root.crab3._x = 687.5;
_root.crab3._y = 281.2;
_root.crab1.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.crab3.gotoAndPlay(1);
_root.crab2.gotoAndPlay(1);
_root.score++;
_root.nextFrame();
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 15
onClipEvent (enterFrame) {
if (_root.score == "7") {
_x = 394.6;
_y = 141.6;
}
}
Frame 16
var life = "100";
var canWalk = "yes";
var crabCanWalk1 = "yes";
var crabCanWalk2 = "yes";
var crabCanWalk3 = "yes";
var crabhealth1 = "100";
var crabhealth2 = "100";
var bossCrabHealth = "9.99999e-10";
crabAlive1 = true;
crabAlive2 = true;
crabAlive3 = true;
stop();
Instance of Symbol 88 MovieClip "crab3" in Frame 16
onClipEvent (enterFrame) {
var crabhealth = _root.crabhealth3;
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x > _x) {
_x = (_x + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._x < _x) {
_x = (_x - 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y > _y) {
_y = (_y + 4);
}
}
}
onClipEvent (enterFrame) {
if (_root.crabCanWalk3 == "yes") {
if (_root.player._y < _y) {
_y = (_y - 4);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 253 MovieClip "crab1" in Frame 16
onClipEvent (enterFrame) {
var crabhealth = _root.bossCrabHealth;
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x > _x) {
_x = (_x + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._x < _x) {
_x = (_x - 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y > _y) {
_y = (_y + 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.bossCrabCanWalk == "yes") {
if (_root.player._y < _y) {
_y = (_y - 2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
this._x = this._x - -10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall3)) {
this._y = this._y - 10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall5)) {
this._y = this._y - -10;
}
}
Instance of Symbol 103 MovieClip "nextstage" in Frame 16
onClipEvent (enterFrame) {
if (_root.score == "10") {
_x = 394.6;
_y = 141.6;
}
}
Frame 17
stop();
Frame 18
stop();
Symbol 4 Button
on (release) {
_root.nextFrame();
}
Symbol 26 MovieClip Frame 2
_root.score++;
Symbol 26 MovieClip Frame 10
gotoAndStop (9);
stop();
Symbol 34 MovieClip Frame 20
stop();
Symbol 41 Button
on (release) {
gotoAndPlay (36);
}
Symbol 44 Button
on (press) {
gotoAndPlay (1);
}
Symbol 69 MovieClip Frame 35
stop();
Symbol 69 MovieClip Frame 296
_root.play();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
_root.score++;
Symbol 88 MovieClip Frame 10
gotoAndStop (9);
stop();
Symbol 97 MovieClip Frame 9
gotoAndStop (9);
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 11
gotoAndPlay (9);
stop();
Symbol 147 MovieClip Frame 28
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 6
_root.score++;
Symbol 148 MovieClip Frame 27
stop();
Symbol 148 MovieClip Frame 28
stop();
Symbol 148 MovieClip Frame 29
stop();
gotoAndStop (29);
stop();
Symbol 176 MovieClip Frame 540
_root.play();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
_root.score++;
Symbol 186 MovieClip Frame 29
stop();
stop();
stop();
Symbol 186 MovieClip Frame 30
gotoAndStop (29);
gotoAndStop (29);
stop();
Symbol 223 MovieClip Frame 56
stop();
Symbol 223 MovieClip Frame 57
stop();
Symbol 223 MovieClip Frame 58
stop();
gotoAndStop (58);
stop();
Symbol 237 MovieClip Frame 293
_root.play();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
_root.score++;
Symbol 253 MovieClip Frame 106
_x = 394.6;
_y = 141.6;
Instance of Symbol 103 MovieClip "nextstage" in Symbol 253 MovieClip Frame 106
onClipEvent (enterFrame) {
if (_root.score == "10") {
_x = 394.6;
_y = 141.6;
}
}
Symbol 253 MovieClip Frame 108
gotoAndStop (9);
_x = 44394.6;
_y = 44141.6;
stop();
stop();
stop();
Symbol 294 MovieClip Frame 646
_root.play();