Frame 76
estatusLoader = "loading";
Frame 77
num = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if ((_root.getBytesLoaded() == _root.getBytesTotal()) && (estatusLoader == "loading")) {
estatusLoader = "loaded";
loading.gotoAndPlay(8);
}
loadingBar.loadText = num + " %";
loadingBar.gotoAndStop(num);
if (playgame == 1) {
playgame = 0;
gotoAndPlay (79);
}
Frame 78
gotoAndPlay (77);
Frame 79
stopAllSounds();
introTheme = new Sound();
introTheme.attachSound("intro_theme");
introTheme.start(0, 10000);
Frame 128
gotoAndPlay (80);
Frame 131
stop();
Frame 132
Frame 133
function generaSold01() {
sold01.duplicateMovieClip("sold01" + enemyCounter, enemyCounter);
_root["sold01" + enemyCounter]._x = 100 + random(500);
_root["sold01" + enemyCounter]._y = -random(300);
if (level <= 4) {
_root["sold01" + enemyCounter].ySpeed = level;
} else {
_root["sold01" + enemyCounter].ySpeed = 4;
}
enemyCounter++;
enemiesOnStage++;
sold01_alive++;
}
function helicoptero() {
chopter._x = 967.75;
chopter._y = 20.65;
chopter.tntCounter = 10000;
chopter.estatus = "onAir";
chopter.throwTNT = 0;
chopter.avanza = 1;
chopter.maxTNT = 3;
chopter.minTNT = 0;
chopter.activate = 1;
chopter.yaActivo = "no";
chopter.gotoAndPlay(1);
}
levelBonus = 0;
mainTheme.start(0, 100000);
pause = "off";
playAgainButton._visible = false;
playerEstatus = "alive";
removeAllEnemies = 0;
newx = "none";
generaEnemy = 1;
enemyCounter = 0;
levelEnemyCounter = 0;
shotCounter = 500;
cuantos = 2;
enemiesOnStage = 0;
sold01_alive = 0;
sold01Kills = 0;
activaHelicoptero = 0;
sharkSide = "right";
activaDelfin = 0;
gameover = 0;
activateLancha = 0;
bossActive = "no";
pause = "off";
pauseScreen._visible = false;
dupLanchaFire = 0;
lanchaFireYFactor = 0;
activaJet = 0;
copterPerLevel = 0;
jetActivo = 0;
i = 0;
while (i < cuantos) {
generaSold01();
i++;
}
Instance of Symbol 170 MovieClip "lancha" in Frame 133
onClipEvent (load) {
estatus = "stopped";
avanza = 1;
shooting = "false";
lanchaFireCount = 5000;
xLimit = -_width;
shootCounter = 0;
lanchaDir = "backward";
speed = 7;
alarm = "off";
}
onClipEvent (enterFrame) {
if (_root.removeAllEnemies == 0) {
if (_root.dupLanchaFire == 1) {
_root.dupLanchaFire = 0;
_root.lanchaFire.duplicateMovieClip("lanchaFire" + lanchaFireCount, lanchaFireCount);
_root["lanchaFire" + lanchaFireCount].side = lanchaSide;
if (lanchaSide == "left") {
setProperty(_root["lanchaFire" + lanchaFireCount], _x , _x - (_width / 2));
setProperty(_root["lanchaFire" + lanchaFireCount], _y , _y - (_height / shootFY));
} else if (lanchaSide == "right") {
setProperty(_root["lanchaFire" + lanchaFireCount], _x , _x + (_width / 2));
setProperty(_root["lanchaFire" + lanchaFireCount], _y , _y - (_height / shootFY));
}
_root["lanchaFire" + lanchaFireCount].YFactor = _root.lanchaFireYFactor;
lanchaFireCount++;
}
if (_root.activateLancha == 1) {
_root.activateLancha = 2;
estatus = "onWater";
}
if (estatus == "onWater") {
if (avanza == 1) {
_x = (_x - speed);
if (_x <= xLimit) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
_y = (_y + 5);
this.gotoAndStop(2);
avanza = 2;
xLimit = 700 + _width;
speed = 12;
}
}
if (avanza == 2) {
_x = (_x + speed);
if (_x >= xLimit) {
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
_y = (_y - (_height / 4));
this.gotoAndStop(1);
avanza = 3;
xLimit = 700 - (_width / 3);
speed = 10;
}
}
if ((_root.bossActive == "si") && (avanza == 3)) {
_root.bossActive = "onStage";
}
if ((avanza == 3) && (_root.bossActive == "onStage")) {
_x = (_x - speed);
if (_x <= xLimit) {
avanza = 4;
}
}
if ((avanza == 4) && (shootCounter < 5)) {
if (alarm == "off") {
_root.warning.gotoAndPlay(2);
alarm = "on";
}
if (shooting == "false") {
if (lanchaSide == "left") {
if (_root.shark._x > (_x - _width)) {
this.lanchaFeatures.lanchaGun.gotoAndStop(2);
shooting = "true";
shootDir = "down";
} else if (_root.shark._x <= (_x - _width)) {
this.lanchaFeatures.lanchaGun.gotoAndStop(1);
shooting = "true";
shootDir = "up";
}
} else if (lanchaSide == "right") {
if (_root.shark._x > (_x + _width)) {
this.lanchaFeatures.lanchaGun.gotoAndStop(1);
shooting = "true";
shootDir = "up";
} else if (_root.shark._x <= (_x + _width)) {
this.lanchaFeatures.lanchaGun.gotoAndStop(2);
shooting = "true";
shootDir = "down";
}
}
} else if (shooting == "true") {
if (shootDir == "up") {
this.lanchaFeatures.lanchaGun.shotUp.gotoAndPlay(2);
shooting = "idle";
shootDir = "idle";
} else if (shootDir == "down") {
this.lanchaFeatures.lanchaGun.shotDown.gotoAndPlay(2);
shooting = "idle";
shootDir = "idle";
}
}
}
if (avanza == 5) {
if (lanchaDir == "forward") {
_x = (_x - speed);
if (_x <= xLimit) {
this.gotoAndStop(2);
avanza = 6;
xLimit = 0 + (_width / 3);
}
} else if (lanchaDir == "backward") {
_x = (_x + speed);
if (_x >= xLimit) {
this.gotoAndStop(1);
estatus = "stopped";
avanza = 1;
shooting = "false";
xLimit = -_width;
lanchaDir = "backward";
speed = 7;
_root.bossActive = "no";
alarm = "off";
_root.warning.gotoAndStop(1);
i = 0;
while (i < 3) {
_root.generaSold01();
i++;
}
}
}
}
if (avanza == 6) {
if (lanchaDir == "forward") {
_x = (_x + speed);
if (_x >= xLimit) {
avanza = 4;
}
} else if (lanchaDir == "backward") {
_x = (_x - speed);
if (_x <= xLimit) {
avanza = 4;
}
}
}
if (shootCounter == 5) {
shootCounter = 0;
avanza = 5;
if (lanchaDir == "backward") {
xLimit = -_width;
lanchaDir = "forward";
} else if (lanchaDir == "forward") {
xLimit = 700 + _width;
lanchaDir = "backward";
}
}
}
}
}
Instance of Symbol 182 MovieClip "lanchaFire" in Frame 133
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (_name != "lanchaFire") {
if ((side == "right") && (hit == 0)) {
_x = (_x + 20);
_y = (_y + YFactor);
if (_y > 352.75) {
hit = 1;
this.gotoAndPlay(2);
} else if (_x < 0) {
hit = 1;
this.gotoAndPlay(2);
}
} else if ((side == "left") && (hit == 0)) {
_x = (_x - 20);
_y = (_y + YFactor);
if (_y > 352.75) {
hit = 1;
this.gotoAndPlay(2);
} else if (_x > 750) {
hit = 1;
this.gotoAndPlay(2);
}
}
if (removethis == 1) {
this.removeMovieClip();
}
if (_root.removeAllEnemies == 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 189 MovieClip "jet" in Frame 133
onClipEvent (load) {
startX = _x;
startY = _y;
dropBomb = 0;
dupBomb = 0;
jetBombCounter = 15000;
ciclo = 0;
}
onClipEvent (enterFrame) {
if (dupBomb == 1) {
dupBomb = 0;
this.bomb01._visible = false;
_root.jetBomb.duplicateMovieClip("jetBomb" + jetBombCounter, jetBombCounter);
setProperty(_root["jetBomb" + jetBombCounter], _x , _x);
setProperty(_root["jetBomb" + jetBombCounter], _y , _y + (_height / 2));
if (jetDir == "right") {
setProperty(_root["jetBomb" + jetBombCounter], _rotation , _root["jetBomb" + jetBombCounter]._rotation + 180);
_root["jetBomb" + jetBombCounter].jetBombDir = "right";
}
jetBombCounter++;
}
if ((_root.activaJet == 1) && (ciclo < 3)) {
if (jetDir == "left") {
_x = (_x - 20);
if ((_x <= (700 - (_width * 1.5))) && (dropBomb == 0)) {
dropBomb = 1;
dupBomb = 1;
}
if (_x < (-_width)) {
this.gotoAndStop(2);
jetDir == "right";
dropBomb = 0;
this.bomb01._visible = true;
}
} else if (jetDir == "right") {
_x = (_x + 20);
if ((_x >= (0 + (_width * 1.5))) && (dropBomb == 0)) {
dropBomb = 1;
dupBomb = 1;
}
if (_x > (700 + _width)) {
this.gotoAndStop(1);
jetDir == "left";
dropBomb = 0;
this.bomb01._visible = true;
ciclo++;
}
}
if (ciclo == 3) {
_root.activaJet = 0;
}
}
}
Instance of Symbol 211 MovieClip "jetBomb" in Frame 133
onClipEvent (load) {
dir = "down";
explode = "false";
removethis = 0;
estatus = "onAir";
startDegree = _rotation;
hitShark = "false";
landOnWater = 0;
}
onClipEvent (enterFrame) {
if (_name != "jetBomb") {
if (_root.removeAllEnemies == 1) {
this.removeMovieClip();
} else if (removethis == 1) {
this.removeMovieClip();
}
if ((this._y >= 350) && (estatus == "onAir")) {
estatus = "onWater";
}
if (estatus == "onWater") {
seekX = _root.shark._x;
if (jetBombDir == "right") {
_rotation = (startDegree - 180);
} else {
_rotation = startDegree;
}
this.gotoAndPlay("land");
estatus = "seek";
} else if (((estatus == "seek") && (hitShark == "false")) && (landOnWater == 1)) {
if (((_x > seekX) && (hitShark == "false")) && (landOnWater == 1)) {
_x = (_x - 20);
if (this.jbhp.hitTest(_root.shark)) {
explode = "true";
hitShark = "true";
estatus = "none";
this.gotoAndPlay("explodeOnAir");
}
} else if (((_x < seekX) && (hitShark == "false")) && (landOnWater == 1)) {
_x = (_x + 20);
if (this.jbhp.hitTest(_root.shark)) {
explode = "true";
hitShark = "true";
estatus = "none";
this.gotoAndPlay("explodeOnAir");
}
}
} else if (((dir == "down") && (explode == "false")) && (estatus == "onAir")) {
_y = (_y + 8);
if (jetBombDir == "right") {
_rotation = (_rotation + 2);
} else {
_rotation = (_rotation - 2);
}
xFactor = random(5);
if (this.jbhp.hitTest(_root.shark.sharkAttack.sharkOnWater) || (this.jbhp.hitTest(_root.shark.sharkAttack.sharkAttacking.sharkAttackingTntHp))) {
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
this.gotoAndPlay("explodeOnAir");
explode = "true";
}
i = 0;
while (i < _root.sold01_alive) {
if (this.hitTest(_root["sold01" + ((_root.enemyCounter - 1) - i)]) && (_root["sold01" + ((_root.enemyCounter - 1) - i)].condition == "alive")) {
this.gotoAndPlay("explodeOnAir");
_root["sold01" + ((_root.enemyCounter - 1) - i)].sold01Actions.gotoAndPlay("die03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].condition = "dead";
explode = "true";
}
i++;
}
if (this.hitTest(_root.shark.sharkAttack.sharkAttacking.aletaHit)) {
if (_root.shark.jumpSide == "right") {
xFactor = xFactor * -1;
}
dir = "up";
}
} else if (((dir == "up") && (explode == "false")) && (estatus == "onAir")) {
_y = (_y - 15);
_x = (_x + xFactor);
_rotation = (_rotation + 65);
if (this.hitTest(_root.chopter.hp)) {
this.gotoAndPlay("explodeOnAir");
_root.chopter.estatus = "explode";
explode = "true";
}
i = 0;
while (i < _root.sold01_alive) {
if (this.hitTest(_root["sold01" + ((_root.enemyCounter - 1) - i)]) && (_root["sold01" + ((_root.enemyCounter - 1) - i)].condition == "alive")) {
this.gotoAndPlay("explodeOnAir");
_root["sold01" + ((_root.enemyCounter - 1) - i)].sold01Actions.gotoAndPlay("die03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].condition = "dead";
explode = "true";
}
i++;
}
}
}
}
Instance of Symbol 315 MovieClip "shark" in Frame 133
onClipEvent (load) {
maxX = 745;
minX = 100;
action = "none";
speedUp = 0;
}
onClipEvent (enterFrame) {
if (_root.playerEstatus == "alive") {
if (action == "none") {
if ((this.sharkAttack.sharkOnWater.parentDir == "left") && (action == "none")) {
this.gotoAndStop(2);
this.water.gotoAndStop(2);
side = "left";
_x = (_x - (10 + speedUp));
if (_x < minX) {
_x = minX;
}
} else if ((this.sharkAttack.sharkOnWater.parentDir == "right") && (action == "none")) {
this.gotoAndStop(1);
this.water.gotoAndStop(2);
side = "right";
_x = (_x + (10 + speedUp));
if (_x > maxX) {
_x = maxX;
}
} else {
this.water.gotoAndStop(1);
side = "none";
}
} else if (action == "attack") {
action = "attacking";
this.sharkAttack.sharkAttacking.gotoAndPlay("attack01");
} else if (((action != "attack") && (action != "attacking")) && (action != "jumping")) {
action = "none";
}
}
}
Instance of Symbol 379 MovieClip "sold01" in Frame 133
onClipEvent (load) {
maxY = 290;
estatus = "onAir";
dupShot = 0;
removethis = 0;
condition = "alive";
}
onClipEvent (enterFrame) {
if (_root.pause == "off") {
if (_name != "sold01") {
if (_y > maxY) {
if (estatus == "onAir") {
_y = maxY;
this.sold01Actions.gotoAndPlay("onWater");
estatus = "enagua";
if ((_root.enemiesOnStage != _root.maxEnemies) && (_root.bossActive == "no")) {
_root.generaSold01();
}
}
} else {
_y = (_y + ((5 * ySpeed) / 2));
}
if ((this.sold01Actions.hitTest(_root.shark.sharkAttack.mouth) && (condition == "alive")) && (_root.shark.sharkAttack.sharkAttacking.framePos == 1)) {
condition = "dead";
this.gotoAndStop(3);
_root.shark.action = "attack";
_root.enemiesOnStage--;
_root.sold01_alive--;
_root.sold01Kills++;
_root.score = _root.score + (2 * _root.level);
if ((_root.enemiesOnStage != _root.maxEnemies) && (_root.bossActive == "no")) {
_root.generaSold01();
}
this.removeMovieClip();
}
if (estatus == "enagua") {
if (_x > (_root.shark._x + shark._width)) {
side = "left";
} else if (_x < (_root.shark._x - _root.shark._width)) {
side = "right";
}
if (side == "left") {
this.gotoAndStop(2);
} else if (side == "right") {
this.gotoAndStop(1);
}
}
if (dupShot == 1) {
dupShot = 0;
_root.sold01Shot.duplicateMovieClip("thisShot" + _root.shotCounter, _root.shotCounter);
if (side == "left") {
_root["thisShot" + _root.shotCounter]._x = _x - _width;
_root["thisShot" + _root.shotCounter]._rotation = _root["thisShot" + _root.shotCounter]._rotation + 180;
_root["thisShot" + _root.shotCounter]._y = _y + (_height * 1.5);
}
if (side == "right") {
_root["thisShot" + _root.shotCounter]._x = _x + _width;
_root["thisShot" + _root.shotCounter]._y = _y + _height;
}
_root["thisShot" + _root.shotCounter].side = side;
_root.shotCounter++;
}
if (this.sold01Actions.hpss.hitTest(_root.shark.sharkAttack.sharkAttacking.attack02_hp) && (estatus == "enagua")) {
condition = "dead";
this.sold01Actions.gotoAndPlay("die02");
}
if (removethis == 1) {
_root.enemiesOnStage--;
if ((_root.enemiesOnStage != _root.maxEnemies) && (_root.bossActive == "no")) {
_root.generaSold01();
}
this.removeMovieClip();
}
if (_root.removeAllEnemies == 1) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 385 MovieClip "sold01Shot" in Frame 133
onClipEvent (load) {
removethis = 0;
}
onClipEvent (enterFrame) {
if (_name != "sold01Shot") {
if (_root.removeAllEnemies == 1) {
this.removeMovieClip();
}
if (removethis == 0) {
if (side == "left") {
_x = (_x - 15);
}
if (side == "right") {
_x = (_x + 15);
}
}
if (this.hp.hitTest(_root.shark.sharkAttack.hp)) {
_root.healthBar.bar.nextFrame();
this.gotoAndPlay(2);
}
}
if (removethis == 1) {
this.removeMovieClip();
}
}
Instance of Symbol 466 MovieClip "chopter" in Frame 133
onClipEvent (load) {
tntCounter = 10000;
estatus = "onAir";
throwTNT = 0;
avanza = 1;
maxTNT = 3;
minTNT = 0;
activate = 1;
yaActivo = "no";
}
onClipEvent (enterFrame) {
if (_root.pause == "off") {
if (estatus == "onAir") {
if ((minTNT == maxTNT) && (avanza == 0)) {
avanza = 2;
} else if (avanza == 2) {
_x = (_x - 6);
if (_x < (-_width)) {
avanza = 3;
}
} else if ((avanza == 3) || (avanza == 5)) {
if (activate == 0) {
throwTNT = 1;
activate = 1;
}
if ((_x > (0 + (_width / 2))) && (yaActivo == "no")) {
activate = 0;
yaActivo = "si";
}
_x = (_x + 6);
if (_x > 700) {
avanza = 5;
}
if (_x > (700 + _width)) {
avanza = 1;
minTNT = 0;
activate = 1;
yaActivo = "no";
}
} else if (avanza == 1) {
_x = (_x - 6);
if (_x <= _root.shark._x) {
avanza = 0;
throwTNT = 1;
}
}
if (throwTNT == 1) {
throwTNT = 0;
this.gotoAndPlay(2);
}
if (dupTNT == 1) {
dupTNT = 0;
_root.tnt.duplicateMovieClip("tnt" + tntCounter, tntCounter);
_root["tnt" + tntCounter]._y = _root.tnt;
_root["tnt" + tntCounter]._x = _x - (_width / 5);
tntCounter++;
minTNT++;
}
} else if (estatus == "explode") {
this.gotoAndPlay("explode");
estatus = "falling";
}
}
}
Instance of Symbol 401 MovieClip "tnt" in Frame 133
onClipEvent (load) {
levelSpeed = 4;
explode = "false";
direction = "down";
yaActivo = "no";
}
onClipEvent (enterFrame) {
if (_root.pause == "off") {
if (_name != "tnt") {
if (_root.removeAllEnemies == 1) {
this.removeMovieClip();
}
if ((explode == "false") && (direction == "down")) {
if (((_root.chopter.avanza == 3) && (_y > 100)) && (yaActivo == "no")) {
_root.chopter.activate = 0;
yaActivo = "si";
}
_y = (_y + (3 + levelSpeed));
if (this.hitTest(_root.shark.sharkAttack.sharkOnWater) || (this.hitTest(_root.shark.sharkAttack.sharkAttacking.sharkAttackingTntHp))) {
this.gotoAndPlay("explosion03");
explode = "true";
} else if (_y >= 350) {
this.gotoAndPlay("explosion01");
explode = "true";
} else if (this.hitTest(_root.shark.sharkAttack.sharkAttacking.aletaHit)) {
direction = "up";
}
i = 0;
while (i < _root.sold01_alive) {
if (this.hitTest(_root["sold01" + ((_root.enemyCounter - 1) - i)]) && (_root["sold01" + ((_root.enemyCounter - 1) - i)].condition == "alive")) {
this.gotoAndPlay("explosion03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].sold01Actions.gotoAndPlay("die03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].condition = "dead";
explode = "true";
}
i++;
}
}
if ((direction == "up") && (explode == "false")) {
_y = (_y - 10);
_rotation = (_rotation + 65);
if (this.hitTest(_root.chopter.hp)) {
this.gotoAndPlay("explosion02");
_root.chopter.estatus = "explode";
explode = "true";
}
i = 0;
while (i < _root.sold01_alive) {
if (this.hitTest(_root["sold01" + ((_root.enemyCounter - 1) - i)]) && (_root["sold01" + ((_root.enemyCounter - 1) - i)].condition == "alive")) {
this.gotoAndPlay("explosion03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].sold01Actions.gotoAndPlay("die03");
_root["sold01" + ((_root.enemyCounter - 1) - i)].condition = "dead";
explode = "true";
}
i++;
}
}
}
}
}
Instance of Symbol 504 MovieClip "delfin" in Frame 133
onClipEvent (enterFrame) {
if (_root.activaDelfin == 1) {
_root.activaDelfin = 0;
newX = random(700) + 20;
setProperty(this, _x , newX);
newX = 0;
this.gotoAndPlay(2);
}
}
Instance of Symbol 530 MovieClip "bonusBoy" in Frame 133
onClipEvent (load) {
startx = _x;
removethis = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if (_root.showBonusBoy01 == 1) {
this.gotoAndStop(2);
_root.showBonusBoy01 = 2;
}
if ((_root.showBonusBoy01 == 2) && (removethis == 0)) {
_x = (_x - 2);
if (_x <= -10) {
this.gotoAndStop(1);
removethis = 1;
}
}
if (removethis == 1) {
_root.showBonusBoy01 = 0;
this.gotoAndStop(1);
setProperty(this, _x , startx);
removethis = 0;
flag = 1;
}
}
Frame 134
if ((levelBonus == 0) && (level > 1)) {
if (sold01Kills > int((maxPerLevel / 2) + 2)) {
showBonusBoy01 = 1;
levelBonus = 1;
}
}
if ((level > 2) && (activateLancha == 0)) {
activateLancha = 1;
}
if (((level == 1) && (sold01Kills > 2)) && (copterPerLevel == 0)) {
if (activaHelicoptero == 1) {
helicoptero();
activaHelicoptero = 0;
copterPerLevel = 1;
}
}
if (((level == 2) && (sold01Kills > 5)) && (copterPerLevel == 0)) {
if (activaHelicoptero == 1) {
helicoptero();
activaHelicoptero = 0;
copterPerLevel = 1;
}
}
if (((((level == 4) or (level == 6)) or (level == 8)) && (sold01Kills > 10)) && (jetActivo == 0)) {
activaJet = 1;
jet.ciclo = 0;
jetActivo = 1;
}
if ((level >= 5) && (copterPerLevel == 0)) {
if (activaHelicoptero == 1) {
helicoptero();
activaHelicoptero = 0;
copterPerLevel = 1;
}
}
levelBoard.levelText = level;
scoreBoard.scoreText = score;
maxPerLevel = int(((20 * level) / (level * 2)) * (level * 0.5));
maxPerLevelText = maxPerLevel;
killsText = sold01Kills + " / ";
killsRateText = killsText + maxPerLevelText;
maxPoints = (level * 2) * maxPerLevel;
if (sold01Kills >= maxPerLevel) {
level++;
sold01Kills = 0;
levelChange.gotoAndPlay(2);
activaDelfin = 1;
levelBonus = 0;
copterPerLevel = 0;
jetActivo = 0;
}
if (level <= 2) {
maxEnemies = 3;
} else if ((level >= 3) and (level <= 5)) {
maxEnemies = 3;
} else if (level > 5) {
maxEnemies = 4;
}
if ((shark.action == "jumping") && (playerEstatus == "alive")) {
if (sharkSide == "right") {
if (shark._x < 750) {
shark._x = shark._x + 10;
}
}
if (sharkSide == "left") {
if (shark._x > 50) {
shark._x = shark._x - 10;
}
}
}
if (playerEstatus == "dead") {
playerEstatus = "none";
shark.sharkAttack.gotoAndPlay("dieshark");
shark.water._visible = false;
}
if (shark.sharkAttack.sharkAttacking.attack02_hp.hitTest(delfin.hp)) {
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
delfin.gotoAndPlay("die");
}
if (shark.sharkAttack.sharkAttacking.attack02_hp.hitTest(_root.bonusBoy.hp)) {
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.healthBar.bar.prevFrame();
_root.bonusBoy.gotoAndPlay(3);
}
if (gameover == 1) {
removeAllEnemies = 1;
gameover = 2;
stopAllSounds();
continues--;
if (continues > 0) {
gotoAndPlay (136);
} else {
gotoAndPlay (143);
}
}
if (((level == 4) && (bossActive == "no")) && (activateLancha == 2)) {
activateLancha = 3;
bossActive = "si";
}
Frame 135
gotoAndPlay (134);
Frame 136
texto01 = "You have " + continues;
continuesLeft = texto01 + " continues left ";
Frame 142
texto01 = "You have " + continues;
continuesLeft = texto01 + " continues left ";
stop();
Frame 143
texto01 = "You have " + continues;
continuesLeft = texto01 + " continues left ";
Frame 149
texto01 = "You have " + continues;
continuesLeft = texto01 + " continues left ";
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 10
gotoAndPlay (2);
Symbol 19 MovieClip Frame 16
gotoAndPlay (11);
Symbol 40 MovieClip Frame 10
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 100
stop();
Symbol 69 Button
on (release) {
_root.playgame = 1;
}
Symbol 70 MovieClip Frame 7
gotoAndPlay (1);
Symbol 70 MovieClip Frame 14
stop();
Symbol 90 Button
on (release) {
stopAllSounds();
_root.score = 0;
_root.level = 1;
_root.continues = 3;
mainTheme = new Sound();
mainTheme.attachSound("main_theme");
gotoAndPlay (133);
}
Symbol 92 Button
on (release) {
stopAllSounds();
gotoAndStop (129);
}
Symbol 94 Button
on (release) {
stopAllSounds();
gotoAndPlay (131);
}
Symbol 103 Button
on (release) {
nextFrame();
}
Symbol 107 Button
on (release) {
gotoAndPlay (79);
}
Symbol 131 Button
on (release) {
gotoAndPlay (79);
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 4
_root.dupLanchaFire = 1;
if (_root.lancha.lanchaSide == "left") {
_root.lanchaFireYFactor = 10 + ((_root.lancha._x - ((_root.shark.maxX * 1.2) - _root.shark._x)) * 0.05);
} else if (_root.lancha.lanchaSide == "right") {
_root.lanchaFireYFactor = (((_root.shark.maxX * 1.2) - _root.shark._x) - _root.lancha._x) * 0.03;
}
_parent._parent._parent.shootCounter++;
Symbol 153 MovieClip Frame 12
_parent._parent._parent.shooting = "false";
gotoAndStop (1);
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 4
_root.dupLanchaFire = 1;
if (_root.lancha.lanchaSide == "left") {
_root.lanchaFireYFactor = 10 + ((_root.lancha._x - ((_root.shark.maxX * 1.2) - _root.shark._x)) * 0.05);
} else if (_root.lancha.lanchaSide == "right") {
_root.lanchaFireYFactor = (((_root.shark.maxX * 1.2) - _root.shark._x) - _root.lancha._x) * 0.03;
}
_parent._parent._parent.shootCounter++;
Symbol 162 MovieClip Frame 12
_parent._parent._parent.shooting = "false";
gotoAndStop (1);
Symbol 163 MovieClip Frame 1
_parent._parent.shootFY = 5;
stop();
Symbol 163 MovieClip Frame 2
_parent._parent.shootFY = 10;
stop();
Symbol 170 MovieClip Frame 1
lanchaSide = "left";
stop();
Symbol 170 MovieClip Frame 2
lanchaSide = "right";
stop();
Symbol 182 MovieClip Frame 1
stop();
Instance of Symbol 173 MovieClip "hp" in Symbol 182 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.shark)) {
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
}
}
Symbol 182 MovieClip Frame 11
removethis = 1;
Symbol 189 MovieClip Frame 1
jetDir = "left";
stop();
Symbol 189 MovieClip Frame 2
jetDir = "right";
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 11
removethis = 1;
stop();
Symbol 211 MovieClip Frame 17
landOnWater = 1;
Symbol 211 MovieClip Frame 19
if (_x < seekX) {
nextFrame();
} else {
stop();
}
Symbol 211 MovieClip Frame 20
stop();
Symbol 213 Button
on (keyPress "s") {
gotoAndStop (2);
_root.sharkPosition = "attacking";
}
Symbol 223 MovieClip Frame 1
stop();
Instance of Symbol 217 MovieClip "sharkOnWaterSpeedUp" in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_parent._parent._parent.speedUp = 5;
} else {
_parent._parent._parent.speedUp = 0;
}
}
Symbol 226 Button
on (keyPress "s") {
if (_root.shark.sharkAttack.sharkAttacking.framePos == 1) {
gotoAndStop (1);
_root.sharkPosition = "movement";
}
}
Symbol 229 Button
on (keyPress "a") {
if (_parent._parent.action == "none") {
gotoAndPlay (18);
_parent._parent.action = "jumping";
}
}
Symbol 282 MovieClip Frame 1
framePos = 1;
stop();
Symbol 282 MovieClip Frame 2
framePos = 2;
Symbol 282 MovieClip Frame 17
_parent._parent.action = "none";
gotoAndPlay (1);
Symbol 282 MovieClip Frame 18
framePos = 2;
Symbol 282 MovieClip Frame 26
Symbol 282 MovieClip Frame 29
Symbol 282 MovieClip Frame 30
_root.newx = _parent._parent.jumpSide;
_parent._parent.jumpSide = "none";
_parent._parent.action = "none";
gotoAndPlay (1);
Symbol 303 MovieClip Frame 1
stop();
Instance of Symbol 223 MovieClip "sharkOnWater" in Symbol 303 MovieClip Frame 1
onClipEvent (load) {
parentDir = "none";
}
onClipEvent (enterFrame) {
if (_root.playerEstatus == "alive") {
if (Key.isDown(37) && (_root.shark.action == "none")) {
parentDir = "left";
_root.sharkSide = "left";
} else if (Key.isDown(39) && (_root.shark.action == "none")) {
parentDir = "right";
_root.sharkSide = "right";
} else {
parentDir = "none";
}
}
}
Symbol 303 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 41
_root.gameover = 1;
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 1
jumpSide = "right";
stop();
Symbol 315 MovieClip Frame 2
jumpSide = "left";
stop();
Instance of Symbol 303 MovieClip "sharkAttack" in Symbol 315 MovieClip Frame 2
/* no clip actions */
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 41
_root.playerEstatus = "dead";
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 8
gotoAndPlay (1);
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 30
gotoAndStop (1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 5
Symbol 378 MovieClip Frame 10
_parent.dupShot = 1;
Symbol 378 MovieClip Frame 37
gotoAndPlay (5);
Symbol 378 MovieClip Frame 38
_root.sold01Kills++;
_root.score = _root.score + (2 * _root.level);
Symbol 378 MovieClip Frame 39
_root.sold01_alive--;
Symbol 378 MovieClip Frame 55
stop();
_parent.removethis = 1;
Symbol 378 MovieClip Frame 56
_root.sold01Kills++;
_root.score = _root.score + (2 * _root.level);
Symbol 378 MovieClip Frame 57
_root.sold01_alive--;
Symbol 378 MovieClip Frame 60
_parent.removethis = 1;
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 2
stop();
Symbol 379 MovieClip Frame 3
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 5
removethis = 1;
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
Instance of Symbol 391 MovieClip in Symbol 401 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.shark)) {
_root.healthBar.bar.nextFrame();
}
}
Symbol 401 MovieClip Frame 10
if (_root.chopter.minTNT < _root.chopter.maxTNT) {
_root.chopter.throwTNT = 1;
}
Symbol 401 MovieClip Frame 27
removeMovieClip(this);
stop();
Symbol 401 MovieClip Frame 28
Symbol 401 MovieClip Frame 36
removeMovieClip(this);
stop();
Symbol 401 MovieClip Frame 37
Instance of Symbol 391 MovieClip in Symbol 401 MovieClip Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.shark)) {
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
_root.healthBar.bar.nextFrame();
}
}
Symbol 401 MovieClip Frame 45
if (_root.chopter.minTNT < _root.chopter.maxTNT) {
_root.chopter.throwTNT = 1;
}
removeMovieClip(this);
stop();
Symbol 466 MovieClip Frame 1
explota = new Sound();
explota.attachSound("explota");
copterSound = new Sound();
copterSound.attachSound("copterSound");
copterSound.start(0, 10000);
copter_low = new Sound();
copter_low.attachSound("copter_low");
stop();
Symbol 466 MovieClip Frame 3
dupTNT = 1;
Symbol 466 MovieClip Frame 20
gotoAndPlay (1);
Symbol 466 MovieClip Frame 21
copterSound.stop(["copterSound"]);
copter_low.start(0, 1000);
_root.score = _root.score + (5 * _root.level);
Symbol 466 MovieClip Frame 73
copter_low.stop(["copter_low"]);
Symbol 466 MovieClip Frame 82
_root.activaHelicoptero = 1;
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 47
gotoAndStop (1);
Symbol 504 MovieClip Frame 48
_root.score = _root.score + 5;
Symbol 504 MovieClip Frame 65
gotoAndStop (1);
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 2
stop();
Symbol 530 MovieClip Frame 3
_root.score = _root.score + 5;
Symbol 530 MovieClip Frame 17
removethis = 1;
stop();
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 21
gotoAndPlay (2);
Symbol 554 Button
on (release) {
gotoAndPlay (133);
}
Symbol 555 Button
on (release) {
gotoAndStop (131);
}
Symbol 557 Button
on (release) {
if (_root.continues > 0) {
_root.score = 0;
gotoAndPlay (132);
}
}
Symbol 562 Button
on (release) {
if (_root.continues == 0) {
gotoAndPlay (79);
}
}