Frame 1
_root.kongregateServices.connect();
Stage.showMenu = false;
stop();
Frame 2
stop();
Frame 3
function gotoLevel() {
game.firstRun = true;
game.cStatus = 1;
switch (checkPoint) {
case 1 :
game.gotoAndPlay(nebraskaStart);
break;
case 2 :
game.gotoAndPlay(newYorkStart);
break;
case 3 :
game.gotoAndPlay(planeStart);
break;
case 4 :
game.gotoAndPlay(londonStart);
break;
case 5 :
game.gotoAndPlay(greeceStart);
break;
case 6 :
game.gotoAndPlay(africaStart);
}
for (i in game) {
if (typeof(game[i]) == "movieclip") {
game[i].removeMovieClip();
}
}
death.removeMovieClip();
}
function triggerDeath() {
game.elephant.gotoAndStop(2);
game.stop();
game.cStatus = 0;
lives++;
_root.attachMovie("death", "death", k++);
}
function timeStop(mov) {
if (game.cStatus == 1) {
mov.play();
} else {
mov.stop();
}
}
function restartGame() {
game.firstRun = true;
game.cStatus = 1;
for (i in game) {
if (typeof(game[i]) == "movieclip") {
game[i].removeMovieClip();
}
}
_root.gotoAndStop(2);
death.removeMovieClip();
}
stop();
game.firstRun = true;
game.cStatus = 1;
game.k = 1;
var lives = 0;
var continues = 3;
var gameStartingFrame = 1;
var startingFrame = 1;
var raveStart = 1562;
var nebraskaStart = 1950;
var newYorkStart = 2330;
var planeStart = 2715;
var londonStart = 3473;
var greeceStart = 3865;
var africaStart = 4245;
var checkPoint = 0;
var k = 1;
game.gotoAndPlay(gameStartingFrame);
if (diff == "easy") {
var difficultyDisp = "Easy";
}
if (diff == "medium") {
var difficultyDisp = "Moderate";
}
if (diff == "hard") {
var difficultyDisp = "Insane";
}
trace(difficultyDisp);
Symbol 9 MovieClip [clock] Frame 1
gotoAndStop(random(5) + 2);
st = (random(20) + 10) * 0.01;
_xscale = (random(150) + 50);
_yscale = _xscale;
counter = 0;
_rotation = (random(180) - 90);
temp = random(6);
if (temp == 0) {
tap = Math.round(Math.random() * 16777215);
} else if (temp == 1) {
tap = 16711680 /* 0xFF0000 */;
} else if (temp == 2) {
tap = 65280;
} else if (temp == 3) {
tap = 255;
} else if (temp == 4) {
tap = 16776960 /* 0xFFFF00 */;
} else if (temp == 5) {
tap = 6749952 /* 0x66FF00 */;
}
var my_color = new Color(this);
my_color.setRGB(tap);
for (var i in this) {
if (typeof(this[i]) == "movieclip") {
this[i].aa._x = (this[i].aa._x - _parent._x) - this[i]._x;
this[i].aa._y = (this[i].aa._y - _parent._x) - this[i]._y;
}
}
onEnterFrame = function () {
counter++;
if (counter < 50) {
for (var _local2 in this) {
if (typeof(this[_local2]) == "movieclip") {
this[_local2].aa._x = this[_local2].aa._x - (st * ((this[_local2].aa._x - 0) / 2));
this[_local2].aa._y = this[_local2].aa._y - (st * ((this[_local2].aa._y - random(4)) / 2));
}
}
}
if (counter >= 50) {
for (var _local2 in this) {
if (typeof(this[_local2]) == "movieclip") {
this[_local2].aa._alpha = this[_local2].aa._alpha - 12;
}
}
}
if (counter > 70) {
this.removeMovieClip();
}
};
Symbol 11 MovieClip [shrinkDown] Frame 9
this.removeMovieClip();
Symbol 15 MovieClip [zip] Frame 1
speed = random(8) + 5;
counter = 0;
onEnterFrame = function () {
counter++;
zipper._y = zipper._y - speed;
i = 0;
while (i < 5) {
shel = _parent.attachMovie("shrinkDown", "s" + _root.game.k, _root.game.k++);
shel._x = (((this._x + this.zipper._x) + this.zipper.zipInd._x) + random(5)) - 2;
shel._y = (((this._y + this.zipper._y) + this.zipper.zipInd._y) + random(5)) - 2;
shel._rotation = random(180) - 90;
i++;
}
if (counter >= 30) {
shel = _parent.attachMovie("clock", "clock" + _root.game.k, _root.game.k++);
shel._x = this._x + zipper._x;
shel._y = this._y + zipper._y;
this.removeMovieClip();
}
};
Symbol 31 Button
on (release, keyPress "<Space>") {
_root.gotoLevel();
}
Symbol 34 Button
on (release) {
_root.restartGame();
}
Symbol 38 Button
on (release) {
getURL ("http://armorgames.com/", "_blank");
}
Symbol 79 Button
on (release) {
_parent.play();
}
Symbol 80 MovieClip Frame 100
stop();
Symbol 89 Button
on (release) {
getURL ("http://armorgames.com/", "_blank");
}
Symbol 94 MovieClip Frame 1
stop();
Instance of Symbol 80 MovieClip in Symbol 94 MovieClip Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
}
Symbol 94 MovieClip Frame 30
_root.play();
Symbol 99 Button
on (release) {
_root.diff = "hard";
}
Symbol 107 Button
on (release) {
_root.diff = "easy";
}
Symbol 114 Button
on (release) {
_root.diff = "medium";
}
Symbol 123 MovieClip Frame 1
_root.diff = "notChosen";
Symbol 123 MovieClip Frame 36
stop();
onEnterFrame = function () {
if (_root.diff == "notChosen") {
stop();
} else {
play();
onEnterFrame = null;
}
};
Symbol 123 MovieClip Frame 73
_root.play();
Symbol 143 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 148 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 148 MovieClip Frame 161
stop();
Symbol 158 Button
on (release) {
gotoAndPlay(_root.raveStart);
}
Symbol 194 MovieClip Frame 1
onEnterFrame = function () {
_root.timeStop(this);
};
Symbol 199 MovieClip Frame 1
onEnterFrame = function () {
if (_root.game.cStatus == 1) {
cameraFlash._x = random(500) - 200;
cameraFlash._rotation = random(360);
cameraFlash._y = (saveY + random(30)) - 15;
}
};
saveY = cameraFlash._y;
Symbol 212 MovieClip Frame 20
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 7
stop();
Symbol 216 Button
on (release) {
gotoAndPlay(_root.nebraskaStart);
}
Symbol 218 MovieClip Frame 5
stop();
Symbol 225 MovieClip Frame 5
stop();
Symbol 235 MovieClip Frame 1
onEnterFrame = function () {
if (_root.game.cStatus == 1) {
play();
} else {
stop();
}
};
Symbol 266 MovieClip Frame 1
onEnterFrame = function () {
_root.timeStop(this);
};
Symbol 292 MovieClip Frame 1
onEnterFrame = function () {
_root.timeStop(this);
};
Symbol 302 MovieClip Frame 1
onEnterFrame = function () {
_root.timeStop(this);
};
Symbol 344 Button
on (release) {
_root.restartGame();
}
Symbol 348 Button
on (release) {
getURL ("http://armorgames.com/", "_blank");
}
Symbol 354 MovieClip Frame 1562
function runnaphant() {
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = 180;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(1);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
xVel = 14;
yVel = -5;
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
xSpeed = 5;
drag = -10;
upKeyDown = false;
onEnterFrame = function () {
runnaphant();
};
Symbol 354 MovieClip Frame 1951
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
shel = attachMovie("starIn", "starIn" + k, k++);
shel.xVel = -5 - random(5);
shel.yVel = -random(20);
shel._x = dropPoint._x;
shel._y = dropPoint._y;
shel._rotation = random(360);
shel.onEnterFrame = function () {
if (_root.game.cStatus == 1) {
this.yVel = this.yVel + _root.game.grav;
this._x = this._x + this.xVel;
this._y = this._y + this.yVel;
if (this._y > _root.game.baseLine) {
this._y = _root.game.baseLine;
}
if (this.hitTest(_root.game._x + _root.game.elephant._x, _root.game._y + _root.game.elephant._y)) {
_root.triggerDeath();
}
if (this._x < -100) {
this.removeMovieClip();
}
}
};
}
}
function setCarGoal() {
if (_root.diff == "easy") {
carGoal = random(20) + 25;
}
if (_root.diff == "medium") {
carGoal = random(20) + 14;
}
if (_root.diff == "hard") {
carGoal = random(10) + 5;
}
}
function runnaphant() {
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = 180;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(1);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
_root.checkPoint = 1;
xSpeed = 5;
drag = -10;
upKeyDown = false;
setCarGoal();
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 1980
okayToDrop = true;
Symbol 354 MovieClip Frame 2285
okayToDrop = false;
Symbol 354 MovieClip Frame 2330
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
shel = attachMovie("dollar", "dollar" + k, k++);
shel._x = 375;
shel._y = random(200);
shel.xVel = (-random(10)) - 5;
shel.yVel = 2 - random(4);
shel.rotSpeed = random(6) - 3;
shel._rotation = random(360);
shel.onEnterFrame = function () {
if (_root.game.cStatus == 1) {
this._rotation = this._rotation + this.rotSpeed;
this._x = this._x + this.xVel;
this._y = this._y + this.yVel;
if (this._y > (_root.game.baseLine - 10)) {
this._y = _root.game.baseLine - 10;
}
if (_root.game.elephant.hitTest(this)) {
cash++;
trace(cash);
this.removeMovieClip();
}
if (this._x < -100) {
this.removeMovieClip();
}
}
};
}
}
function setCarGoal() {
if (_root.diff == "easy") {
carGoal = 4;
}
if (_root.diff == "medium") {
carGoal = 8;
}
if (_root.diff == "hard") {
carGoal = 11;
}
}
function runnaphant() {
if (cash >= 20) {
moneyNeeded = "You're good";
} else {
moneyNeeded = ("$" + (1000 - (cash * 50))) + " needed";
}
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = 180;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(1);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
cash = 0;
moneyNeeded = "$1000 needed";
_root.checkPoint = 2;
xSpeed = 5;
drag = -10;
okayToDrop = true;
upKeyDown = false;
setCarGoal();
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 2635
okayToDrop = false;
Symbol 354 MovieClip Frame 2678
if (cash < 20) {
_root.triggerDeath();
}
Symbol 354 MovieClip Frame 2715
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
shel = attachMovie("goose", "goose" + k, k++);
shel.xVel = -5;
shel._x = 400;
shel._y = random(200) + 25;
shel.onEnterFrame = function () {
if (_root.game.cStatus == 1) {
this._x = this._x + this.xVel;
if (this.hitA.hitTest(_root.game._x + _root.game.elephant._x, _root.game._y + _root.game.elephant._y)) {
_root.triggerDeath();
}
if (this._x < -100) {
this.removeMovieClip();
}
}
};
}
}
function setCarGoal() {
if (_root.diff == "easy") {
carGoal = random(20) + 20;
}
if (_root.diff == "medium") {
carGoal = random(20) + 10;
}
if (_root.diff == "hard") {
carGoal = random(10) + 6;
}
}
function runnaphant() {
plane._x = elephant._x;
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = 180;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(2);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
_root.checkPoint = 3;
xSpeed = 5;
drag = -10;
upKeyDown = false;
okayToDrop = true;
setCarGoal();
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 3361
okayToDrop = false;
Symbol 354 MovieClip Frame 3473
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
shel = attachMovie("beachBall", "beachBall" + k, k++);
shel.xVel = -5;
shel.yVel = random(20) - 10;
shel._rotation = shel._rotation - 2;
shel._x = 400;
shel._y = random(175);
shel.onEnterFrame = function () {
if (_root.game.cStatus == 1) {
this.yVel = this.yVel + 0.7;
this._x = this._x + this.xVel;
this._y = this._y + this.yVel;
if (this._y > baseLine) {
this._y = baseLine;
this.yVel = this.yVel * -1;
}
if (this.hitTest(_root.game._x + _root.game.elephant._x, _root.game._y + _root.game.elephant._y)) {
_root.triggerDeath();
}
if (this._x < -100) {
this.removeMovieClip();
}
}
};
}
}
function setCarGoal() {
if (_root.diff == "easy") {
carGoal = random(20) + 60;
}
if (_root.diff == "medium") {
carGoal = random(20) + 30;
}
if (_root.diff == "hard") {
carGoal = random(20) + 18;
}
}
function runnaphant() {
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = baseLine;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(1);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
_root.checkPoint = 4;
xSpeed = 5;
drag = -10;
upKeyDown = false;
okayToDrop = true;
setCarGoal();
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 3756
okayToDrop = false;
Symbol 354 MovieClip Frame 3865
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
switch (random(3)) {
case 0 :
shel = attachMovie("column", "column" + k, k++);
shel._x = 400;
shel._y = 100 + random(50);
break;
case 1 :
shel = attachMovie("column", "column" + k, k++);
shel._x = 400;
shel._y = 100 + random(50);
break;
case 2 :
shel = attachMovie("column2", "column" + k, k++);
shel._x = 400;
shel._y = random(150);
}
shel.xVel = -5;
shel.onEnterFrame = function () {
if (_root.game.cStatus == 1) {
this._x = this._x + this.xVel;
if (this.hitA.hitTest(_root.game._x + _root.game.elephant._x, _root.game._y + _root.game.elephant._y)) {
_root.triggerDeath();
}
if (this._x < -100) {
this.removeMovieClip();
}
}
};
}
}
function setCarGoal() {
if (_root.diff == "easy") {
carGoal = random(20) + 30;
}
if (_root.diff == "medium") {
carGoal = random(20) + 20;
}
if (_root.diff == "hard") {
carGoal = random(10) + 12;
}
}
function runnaphant() {
dolphin._x = elephant._x;
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = baseLine;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(2);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
_root.checkPoint = 5;
xSpeed = 5;
drag = -10;
upKeyDown = false;
okayToDrop = true;
setCarGoal();
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 4169
okayToDrop = false;
Symbol 354 MovieClip Frame 4245
function dropBombs() {
carCounter++;
if (carCounter >= carGoal) {
setCarGoal();
carCounter = 0;
}
}
function setCarGoal() {
carGoal = random(20) + 20;
}
function runnaphant() {
dolphin._x = elephant._x;
yVel = yVel + grav;
elephant._y = elephant._y + yVel;
if (elephant._y > baseLine) {
elephant._y = baseLine;
yVel = 0;
jumping = false;
jumps = 0;
firstDrop = false;
}
if ((((jumps == 0) && (Key.isDown(38))) && (!jumping)) && (!upKeyDown)) {
upKeyDown = true;
jumping = true;
yVel = yVel - jumpSpeed;
jumps++;
} else if (((jumps == 1) && (Key.isDown(38))) && (!upKeyDown)) {
upKeyDown = true;
yVel = yVel - jumpSpeed;
jumps++;
}
if ((!Key.isDown(38)) && (upKeyDown)) {
upKeyDown = false;
}
if (Key.isDown(39)) {
xVel = xSpeed;
} else if (Key.isDown(37)) {
xVel = -xSpeed;
} else {
xVel = drag;
}
if (!firstDrop) {
if (xVel < -10) {
xVel = -10;
} else if (xVel > 10) {
xVel = 10;
}
}
elephant._x = elephant._x + xVel;
if (jumping) {
if (jumps == 2) {
elephant.gotoAndStop(3);
} else {
elephant.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
elephant.gotoAndStop(1);
} else {
elephant.gotoAndStop(2);
}
if (elephant._x > 350) {
elephant._x = 350;
}
if (elephant._x < 0) {
elephant._x = 0;
}
}
function fireworks() {
fcounter++;
if (fcounter == fgoal) {
fcounter = 0;
fgoal = random(15) + 8;
shel = loadFireworksHere.attachMovie("zip", "zip" + k, k++);
shel._x = random(350);
shel._y = 200 + random(250);
}
}
if (firstRun) {
xVel = 0;
yVel = 0;
}
grav = 0.7;
baseLine = 180;
jumping = true;
jumpSpeed = 8;
jumps = 0;
firstDrop = true;
firstRun = false;
carCounter = 0;
carGoal = 0;
_root.checkPoint = 6;
xSpeed = 5;
drag = -10;
upKeyDown = false;
okayToDrop = true;
setCarGoal();
fcounter = 0;
fgoal = 20;
onEnterFrame = function () {
if (cStatus == 1) {
runnaphant();
fireworks();
if (okayToDrop) {
dropBombs();
}
}
};
Symbol 354 MovieClip Frame 5394
if (_root.diff == "easy") {
_root.kongregateStats.submit("Easy", _root.lives);
}
if (_root.diff == "medium") {
_root.kongregateStats.submit("Moderate", _root.lives);
}
if (_root.diff == "hard") {
_root.kongregateStats.submit("Insane", _root.lives);
}
Symbol 354 MovieClip Frame 5567
stop();