Frame 1
level = 1;
Mouse.hide();
_root.onLoad = function () {
cartGo = false;
cartRocketGo = false;
donkeyGo = false;
vehicleHeight = 560;
kill = false;
play = false;
score = 0;
kills = 0;
farmerCounter = 1;
manGo = false;
upgradeCounter = 0;
upgradespeed = 2;
life = 10;
backgroundChooser = random(3) + 1;
tribombmiss = 0;
clustertribombmiss = 0;
nightDay = random(2) + 1;
};
_root.onEnterFrame = function () {
if (life <= 0) {
gotoAndStop (3);
}
if (kill) {
kills++;
score = score + (level + 10);
kill = false;
farmerCounter++;
}
if ((farmerCounter == 15) && (!(upgradeCounter === 3))) {
farmerCounter = 1;
manGo = true;
}
if (farmerCounter > 15) {
farmerCounter = 1;
}
if (upgradeCounter <= 0) {
upgradeCounter = 0;
}
if (score < 0) {
score = 0;
}
if (play == false) {
gotoAndPlay (2);
}
if ((hitTest(hit1) && (hitTest(hit2))) && (cartGo == false)) {
cartChooser = Math.round(Math.random()) + 1;
cartGo = true;
}
if ((hitTest(hit1) && (hitTest(hit2))) && (cartRocketGo == false)) {
cartRocketChooser = Math.round(Math.random()) + 1;
cartRocketGo = true;
}
if ((hitTest(hit1) && (hitTest(hit2))) && (donkeyGo == false)) {
donkeyChooser = Math.round(Math.random()) + 1;
donkeyGo = true;
}
X = _root._xmouse;
Y = _root._ymouse;
};
stop();
Stage.showMenu = false;
Instance of Symbol 3 MovieClip "background" in Frame 1
onClipEvent (enterFrame) {
if (_root.nightDay == 1) {
gotoAndStop (1);
}
if (_root.nightDay == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 5 MovieClip "hills" in Frame 1
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 2) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 9 MovieClip "ice" in Frame 1
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 14 MovieClip "island" in Frame 1
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 3) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 19 MovieClip "cloud1" in Frame 1
onClipEvent (load) {
cloud1Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud1Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 19 MovieClip "cloud2" in Frame 1
onClipEvent (load) {
cloud2Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud2Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 19 MovieClip "cloud3" in Frame 1
onClipEvent (load) {
cloud3Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud3Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 34 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.life);
}
Instance of Symbol 45 MovieClip "helicopter" in Frame 1
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = 100;
}
Instance of Symbol 49 MovieClip "bomb" in Frame 1
onClipEvent (load) {
bombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 0) {
if (bombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse);
this.gotoAndPlay(2);
}
bombFall = true;
}
}
onClipEvent (enterFrame) {
fallspeed = 10;
if (bombFall == true) {
this._y = this._y + fallspeed;
}
if (this._y >= 600) {
bombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.explode1.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 61 MovieClip "bombTarget" in Frame 1
onClipEvent (enterFrame) {
startDrag (this, true);
if (_root.upgradeCounter == 0) {
this.gotoAndStop(1);
}
if (_root.upgradeCounter == 1) {
this.gotoAndStop(2);
}
if (_root.upgradeCounter == 2) {
this.gotoAndStop(3);
}
if (_root.upgradeCounter == 3) {
this.gotoAndStop(4);
}
}
Instance of Symbol 74 MovieClip "laser" in Frame 1
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
setProperty(this, _y , 590);
setProperty(this, _x , _root._xmouse);
} else if (_root.upgradeCounter == 0) {
setProperty(this, _y , 590);
setProperty(this, _x , _root._xmouse);
}
}
Instance of Symbol 76 MovieClip "cartdonkeyrocket" in Frame 1
onClipEvent (load) {
rocketLaunch = false;
timer = 0;
}
onClipEvent (enterFrame) {
if ((this._x < 0) || (this._x > 800)) {
this._x = -200;
}
if (!rocketLaunch) {
this._y = -100;
}
if (_root.level < 10) {
rocketLaunch = false;
this._y = this._y - rocketspeed;
}
if (_root.level >= 10) {
timer = timer + 1;
time = 600 - (_root.level * 15);
if ((timer > time) && (rocketLaunch == false)) {
if (((_root.cartRocketChooser == 1) && (_root.cartRocket._x > 0)) && (_root.cartRocket._x < 800)) {
setProperty(this, _x , _root.cartRocket._x + 22);
} else if (((_root.cartRocketChooser == 2) && (_root.cartRocket2._x > 0)) && (_root.cartRocket._x < 800)) {
setProperty(this, _x , _root.cartRocket2._x - 22);
}
setProperty(this, _y , 570);
rocketLaunch = true;
aim_y = getProperty(_root.helicopter, _y);
aim_x = getProperty(_root.helicopter, _x);
this.gotoAndPlay(2);
}
rocketspeed = _root.level / 8;
if (rocketLaunch == true) {
this._y = this._y - rocketspeed;
timer = 0;
}
if (this._y > 121) {
myRadians = Math.atan2(aim_y - this._y, aim_x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
} else if (this._y <= 120) {
if ((this.rotation > 10) && (this.rotation < 90)) {
this._rotation = this._rotation - 10;
}
if ((this.rotation < 350) && (this.rotation > 270)) {
this._rotation = this._rotation + 10;
}
if ((this.rotation > 350) && (this.rotation < 10)) {
this._rotation = 0;
}
}
if (this._x < aim_x) {
this._x = this._x + rocketspeed;
}
if (this._x > aim_x) {
this._x = this._x - rocketspeed;
}
if (this._y <= -150) {
rocketLaunch = false;
this.gotoAndPlay(1);
this._x = -50;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
rocketLaunch = false;
_root.explode1._x = this._x;
_root.explode1._y = 100;
_root.explode1.gotoAndPlay(2);
_root.helicopter._y = -100;
_root.level = _root.level - 10;
_root.flash.gotoAndPlay(2);
_root.upgradeCounter--;
_root.life--;
}
}
}
Instance of Symbol 81 MovieClip "tribomb1" in Frame 1
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse - 40);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.laser._y = 1000;
_root.explode2.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 82 MovieClip "trackBomb" in Frame 1
onClipEvent (load) {
trackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 1) {
if (trackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
trackFall = true;
}
}
onClipEvent (enterFrame) {
trackSpeed = 15;
if (trackFall == true) {
this._y = this._y + trackSpeed;
if (this._x < _root._xmouse) {
this._x = this._x + 10;
this._rotation = this._rotation - 2;
}
if (this._x > _root._xmouse) {
this._x = this._x - 10;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
trackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode1.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb2" in Frame 1
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < _root._xmouse) {
this._x = this._x + 10;
this._rotation = this._rotation - 2;
}
if (this._x > _root._xmouse) {
this._x = this._x - 10;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode1.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 84 MovieClip "donkey" in Frame 1
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.donkeyGo = false;
}
if (_root.level < 25) {
this._x = -100;
}
this._y = _root.vehicleHeight;
if ((_root.donkeyChooser == 1) && (_root.level >= 25)) {
donkeySpeed = _root.level / 6;
this._x = this._x + donkeySpeed;
}
}
Instance of Symbol 84 MovieClip "donkey2" in Frame 1
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.donkeyGo = false;
}
if (_root.level < 25) {
this._x = 900;
}
if ((_root.donkeyChooser == 2) && (_root.level >= 25)) {
donkeySpeed = _root.level / 6;
this._x = this._x - donkeySpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 90 MovieClip "cartRocket" in Frame 1
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.cartRocketGo = false;
}
this._y = _root.vehicleHeight;
if (_root.level < 10) {
this._x = -100;
}
if ((_root.cartRocketChooser == 1) && (_root.level >= 10)) {
cartRocketSpeed = _root.level / 9;
this._x = this._x + cartRocketSpeed;
}
}
Instance of Symbol 90 MovieClip "cartRocket2" in Frame 1
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.cartRocketGo = false;
}
if (_root.level < 10) {
this._x = 900;
}
if ((_root.cartRocketChooser == 2) && (_root.level >= 10)) {
cartRocketSpeed = _root.level / 9;
this._x = this._x - cartRocketSpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 96 MovieClip "cart" in Frame 1
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.cartGo = false;
}
this._y = _root.vehicleHeight;
if (_root.cartChooser == 1) {
cartSpeed = 1 + (_root.level / 12);
this._x = this._x + cartSpeed;
}
}
Instance of Symbol 96 MovieClip "cart2" in Frame 1
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.cartGo = false;
}
if (_root.cartChooser == 2) {
cartSpeed = 1 + (_root.level / 12);
this._x = this._x - cartSpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 76 MovieClip "donkeyrocket" in Frame 1
onClipEvent (load) {
donkeyLaunch = false;
timer = 0;
}
onClipEvent (enterFrame) {
if ((this._x < 0) || (this._x > 800)) {
this._x = -200;
}
if (!donkeyLaunch) {
this._y = -100;
}
if (_root.level < 25) {
donkeyLaunch = false;
this._y = this._y - rocketspeed;
}
if (_root.level >= 25) {
timer = timer + 1;
time = 600 - (_root.level * 20);
if ((timer > time) && (donkeyLaunch == false)) {
if (((_root.donkeyChooser == 1) && (_root.donkey._x >= 0)) && (_root.donkey._x < 800)) {
setProperty(this, _x , _root.donkey._x + 22);
} else if (((_root.donkeyChooser == 2) && (_root.donkey2._x >= 0)) && (_root.donkey2._x < 800)) {
setProperty(this, _x , _root.donkey2._x - 22);
}
setProperty(this, _y , 570);
donkeyLaunch = true;
aim_y = getProperty(_root.helicopter, _y);
aim_x = getProperty(_root.helicopter, _x);
this.gotoAndPlay(2);
}
rocketspeed = _root.level / 6;
if (donkeyLaunch == true) {
this._y = this._y - rocketspeed;
timer = 0;
}
if (this._y > 121) {
myRadians = Math.atan2(aim_y - this._y, aim_x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
} else if (this._y <= 120) {
if ((this.rotation > 10) && (this.rotation < 90)) {
this._rotation = this._rotation - 10;
}
if ((this.rotation < 350) && (this.rotation > 270)) {
this._rotation = this._rotation + 10;
}
if ((this.rotation > 350) && (this.rotation < 10)) {
this._rotation = 0;
}
}
if (this._x < aim_x) {
this._x = this._x + rocketspeed;
}
if (this._x > aim_x) {
this._x = this._x - rocketspeed;
}
if (this._y <= -150) {
donkeyLaunch = false;
this.gotoAndPlay(1);
this._x = -50;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
donkeyLaunch = false;
_root.explode1._x = this._x;
_root.explode1._y = 100;
_root.explode1.gotoAndPlay(2);
_root.helicopter._y = -100;
_root.level = _root.level - 10;
_root.flash.gotoAndPlay(2);
_root.upgradeCounter--;
_root.life--;
}
}
}
Instance of Symbol 101 MovieClip "farmer" in Frame 1
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.manGo = false;
}
if (_root.manGo) {
this._x = this._x - 3;
this._y = _root.vehicleHeight;
}
}
Instance of Symbol 105 MovieClip "trackingClusterU" in Frame 1
onClipEvent (load) {
upgradeLaunch2 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch2 == false)) && (_root.upgradeCounter == 2)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch2 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch2 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch2 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch2 = false;
_root.upgradeCounter = 3;
}
}
Instance of Symbol 111 MovieClip "trackingU" in Frame 1
onClipEvent (load) {
upgradeLaunch1 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch1 == false)) && (_root.upgradeCounter == 0)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch1 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch1 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch1 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch1 = false;
_root.upgradeCounter = 1;
}
}
Instance of Symbol 115 MovieClip "clusterU" in Frame 1
onClipEvent (load) {
upgradeLaunch3 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch3 == false)) && (_root.upgradeCounter == 1)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch3 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch3 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch3 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch3 = false;
_root.upgradeCounter = 2;
}
}
Instance of Symbol 81 MovieClip "tribomb2" in Frame 1
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.explode1.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 81 MovieClip "tribomb3" in Frame 1
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse + 40);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode3._x = this._x;
_root.explode3._y = 580;
_root.laser._y = 1000;
_root.explode3.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb1" in Frame 1
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < (_root._xmouse - 40)) {
this._x = this._x + 30;
this._rotation = this._rotation - 2;
}
if (this._x > (_root._xmouse - 40)) {
this._x = this._x - 30;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode2.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb3" in Frame 1
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < (_root._xmouse + 40)) {
this._x = this._x + 30;
this._rotation = this._rotation - 2;
}
if (this._x > (_root._xmouse + 40)) {
this._x = this._x - 30;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode3._x = this._x;
_root.explode3._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode3.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Frame 2
stop();
Mouse.show();
stop();
Frame 3
stop();
_root.onLoad = function () {
cartGo = false;
cartRocketGo = false;
donkeyGo = false;
lives = 3;
vehicleHeight = 560;
kill = false;
play = false;
score = 0;
kills = 0;
farmerCounter = 1;
manGo = false;
upgradeCounter = 0;
upgradespeed = 2;
life = 10;
backgroundChooser = random(3) + 1;
};
stop();
Instance of Symbol 61 MovieClip "bombTarget" in Frame 3
onClipEvent (enterFrame) {
startDrag (this, true);
if (_root.upgradeCounter == 0) {
this.gotoAndStop(1);
}
if (_root.upgradeCounter == 1) {
this.gotoAndStop(2);
}
if (_root.upgradeCounter == 2) {
this.gotoAndStop(3);
}
if (_root.upgradeCounter == 3) {
this.gotoAndStop(4);
}
}
Frame 5
level = 1;
Mouse.hide();
_root.onLoad = function () {
cartGo = false;
cartRocketGo = false;
donkeyGo = false;
vehicleHeight = 560;
kill = false;
play = false;
score = 0;
kills = 0;
farmerCounter = 1;
manGo = false;
upgradeCounter = 0;
upgradespeed = 2;
life = 10;
backgroundChooser = random(3) + 1;
tribombmiss = 0;
clustertribombmiss = 0;
nightDay = random(2) + 1;
};
_root.onEnterFrame = function () {
if (life <= 0) {
gotoAndStop (3);
}
if (kill) {
kills++;
score = score + (level + 10);
kill = false;
farmerCounter++;
}
if ((farmerCounter == 15) && (!(upgradeCounter === 3))) {
farmerCounter = 1;
manGo = true;
}
if (farmerCounter > 15) {
farmerCounter = 1;
}
if (upgradeCounter <= 0) {
upgradeCounter = 0;
}
if (score < 0) {
score = 0;
}
if (play == false) {
gotoAndPlay (2);
}
if ((hitTest(hit1) && (hitTest(hit2))) && (cartRocketGo == false)) {
cartRocketChooser = Math.round(Math.random()) + 1;
cartRocketGo = true;
}
if ((hitTest(hit1) && (hitTest(hit2))) && (donkeyGo == false)) {
donkeyChooser = Math.round(Math.random()) + 1;
donkeyGo = true;
}
if ((hitTest(hit1) && (hitTest(hit2))) && (cartGo == false)) {
cartChooser = Math.round(Math.random()) + 1;
cartGo = true;
}
X = _root._xmouse;
Y = _root._ymouse;
};
stop();
Instance of Symbol 3 MovieClip "background" in Frame 5
onClipEvent (enterFrame) {
if (_root.nightDay == 1) {
gotoAndStop (1);
}
if (_root.nightDay == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 5 MovieClip "hills" in Frame 5
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 2) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 9 MovieClip "ice" in Frame 5
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 14 MovieClip "island" in Frame 5
onClipEvent (enterFrame) {
if (_root.backgroundChooser == 3) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 19 MovieClip "cloud1" in Frame 5
onClipEvent (load) {
cloud1Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud1Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 19 MovieClip "cloud2" in Frame 5
onClipEvent (load) {
cloud2Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud2Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 19 MovieClip "cloud3" in Frame 5
onClipEvent (load) {
cloud3Speed = (random(5) + 1) / 5;
setProperty(this, _y , random(200) + 50);
setProperty(this, _xscale , random(50) + 50);
setProperty(this, _yscale , random(50) + 50);
setProperty(this, _alpha , random(50) + 50);
}
onClipEvent (enterFrame) {
this._x = this._x + cloud3Speed;
if (this._x > 900) {
this._x = -100;
}
}
Instance of Symbol 34 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(_root.life);
}
Instance of Symbol 45 MovieClip "helicopter" in Frame 5
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = 100;
}
Instance of Symbol 49 MovieClip "bomb" in Frame 5
onClipEvent (load) {
bombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 0) {
if (bombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse);
this.gotoAndPlay(2);
}
bombFall = true;
}
}
onClipEvent (enterFrame) {
fallspeed = 10;
if (bombFall == true) {
this._y = this._y + fallspeed;
}
if (this._y >= 600) {
bombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.explode1.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
bombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 61 MovieClip "bombTarget" in Frame 5
onClipEvent (enterFrame) {
startDrag (this, true);
if (_root.upgradeCounter == 0) {
this.gotoAndStop(1);
}
if (_root.upgradeCounter == 1) {
this.gotoAndStop(2);
}
if (_root.upgradeCounter == 2) {
this.gotoAndStop(3);
}
if (_root.upgradeCounter == 3) {
this.gotoAndStop(4);
}
}
Instance of Symbol 74 MovieClip "laser" in Frame 5
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
setProperty(this, _y , 590);
setProperty(this, _x , _root._xmouse);
} else if (_root.upgradeCounter == 0) {
setProperty(this, _y , 590);
setProperty(this, _x , _root._xmouse);
}
}
Instance of Symbol 76 MovieClip "cartdonkeyrocket" in Frame 5
onClipEvent (load) {
rocketLaunch = false;
timer = 0;
}
onClipEvent (enterFrame) {
if ((this._x < 0) || (this._x > 800)) {
this._x = -200;
}
if (!rocketLaunch) {
this._y = -100;
}
if (_root.level < 15) {
rocketLaunch = false;
this._y = this._y - rocketspeed;
}
if (_root.level >= 15) {
timer = timer + 1;
time = 600 - (_root.level * 40);
if ((timer > time) && (rocketLaunch == false)) {
if (((_root.cartRocketChooser == 1) && (_root.cartRocket._x > 0)) && (_root.cartRocket._x < 800)) {
setProperty(this, _x , _root.cartRocket._x + 22);
} else if (((_root.cartRocketChooser == 2) && (_root.cartRocket2._x > 0)) && (_root.cartRocket2._x < 800)) {
setProperty(this, _x , _root.cartRocket2._x - 22);
}
setProperty(this, _y , 570);
rocketLaunch = true;
aim_y = getProperty(_root.helicopter, _y);
aim_x = getProperty(_root.helicopter, _x);
this.gotoAndPlay(2);
}
rocketspeed = 10 + (_root.level / 30);
if (rocketLaunch == true) {
this._y = this._y - rocketspeed;
timer = 0;
}
if (this._y > 121) {
myRadians = Math.atan2(aim_y - this._y, aim_x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
} else if (this._y <= 120) {
if ((this.rotation > 10) && (this.rotation < 90)) {
this._rotation = this._rotation - 10;
}
if ((this.rotation < 350) && (this.rotation > 270)) {
this._rotation = this._rotation + 10;
}
if ((this.rotation > 350) && (this.rotation < 10)) {
this._rotation = 0;
}
}
if (this._x < aim_x) {
this._x = this._x + rocketspeed;
}
if (this._x > aim_x) {
this._x = this._x - rocketspeed;
}
if (this._y <= -150) {
rocketLaunch = false;
this.gotoAndPlay(1);
this._x = -50;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
rocketLaunch = false;
_root.explode1._x = this._x;
_root.explode1._y = 100;
_root.explode1.gotoAndPlay(2);
_root.helicopter._y = -100;
_root.level = _root.level - 5;
_root.flash.gotoAndPlay(2);
_root.upgradeCounter--;
_root.life--;
}
}
}
Instance of Symbol 81 MovieClip "tribomb1" in Frame 5
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse - 40);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.laser._y = 1000;
_root.explode2.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 82 MovieClip "trackBomb" in Frame 5
onClipEvent (load) {
trackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 1) {
if (trackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
trackFall = true;
}
}
onClipEvent (enterFrame) {
trackSpeed = 15;
if (trackFall == true) {
this._y = this._y + trackSpeed;
if (this._x < _root._xmouse) {
this._x = this._x + 10;
this._rotation = this._rotation - 2;
}
if (this._x > _root._xmouse) {
this._x = this._x - 10;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
trackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode1.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
trackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb2" in Frame 5
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < _root._xmouse) {
this._x = this._x + 10;
this._rotation = this._rotation - 2;
}
if (this._x > _root._xmouse) {
this._x = this._x - 10;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode1.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 84 MovieClip "donkey" in Frame 5
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.donkeyGo = false;
}
if (_root.level < 10) {
this._x = -100;
}
this._y = _root.vehicleHeight;
if ((_root.donkeyChooser == 1) && (_root.level >= 10)) {
donkeySpeed = _root.level / 6;
this._x = this._x + donkeySpeed;
}
}
Instance of Symbol 84 MovieClip "donkey2" in Frame 5
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.donkeyGo = false;
}
if (_root.level < 10) {
this._x = 900;
}
if ((_root.donkeyChooser == 2) && (_root.level >= 10)) {
donkeySpeed = _root.level / 6;
this._x = this._x - donkeySpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 90 MovieClip "cartRocket" in Frame 5
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.cartRocketGo = false;
}
this._y = _root.vehicleHeight;
if ((_root.level < 15) && (this._x > 0)) {
cartRocketSpeed = 1 + (_root.level / 9);
this._x = this._x + cartRocketSpeed;
}
if ((_root.cartRocketChooser == 1) && (_root.level >= 15)) {
cartRocketSpeed = 1 + (_root.level / 9);
this._x = this._x + cartRocketSpeed;
}
}
Instance of Symbol 90 MovieClip "cartRocket2" in Frame 5
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.cartRocketGo = false;
}
if ((_root.cartRocketChooser == 2) && (_root.level >= 15)) {
cartRocketSpeed = 1 + (_root.level / 9);
this._x = this._x - cartRocketSpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 76 MovieClip "donkeyrocket" in Frame 5
onClipEvent (load) {
donkeyLaunch = false;
timer = 0;
}
onClipEvent (enterFrame) {
if ((this._x < 0) || (this._x > 800)) {
this._x = -200;
}
if (!donkeyLaunch) {
this._y = -100;
}
if (_root.level < 10) {
donkeyLaunch = false;
this._y = this._y - rocketspeed;
}
if (_root.level >= 10) {
timer = timer + 1;
time = 600 - (_root.level * 40);
if ((timer > time) && (donkeyLaunch == false)) {
if (((_root.donkeyChooser == 1) && (_root.donkey._x >= 0)) && (_root.donkey._x < 800)) {
setProperty(this, _x , _root.donkey._x + 22);
} else if (((_root.donkeyChooser == 2) && (_root.donkey2._x >= 0)) && (_root.donkey2._x < 800)) {
setProperty(this, _x , _root.donkey2._x - 22);
} else {
_root.donkeyLaunch = true;
}
setProperty(this, _y , 570);
donkeyLaunch = true;
aim_y = getProperty(_root.helicopter, _y);
aim_x = getProperty(_root.helicopter, _x);
this.gotoAndPlay(2);
}
rocketspeed = 10 + (_root.level / 30);
if (donkeyLaunch == true) {
this._y = this._y - rocketspeed;
timer = 0;
}
if (this._y > 121) {
myRadians = Math.atan2(aim_y - this._y, aim_x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
} else if (this._y <= 120) {
if ((this.rotation > 10) && (this.rotation < 90)) {
this._rotation = this._rotation - 10;
}
if ((this.rotation < 350) && (this.rotation > 270)) {
this._rotation = this._rotation + 10;
}
if ((this.rotation > 350) && (this.rotation < 10)) {
this._rotation = 0;
}
}
if (this._x < aim_x) {
this._x = this._x + rocketspeed;
}
if (this._x > aim_x) {
this._x = this._x - rocketspeed;
}
if (this._y <= -150) {
donkeyLaunch = false;
this.gotoAndPlay(1);
this._x = -50;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
donkeyLaunch = false;
_root.explode1._x = this._x;
_root.explode1._y = 100;
_root.explode1.gotoAndPlay(2);
_root.helicopter._y = -100;
_root.level = _root.level - 5;
_root.flash.gotoAndPlay(2);
_root.upgradeCounter--;
_root.life--;
}
}
}
Instance of Symbol 101 MovieClip "farmer" in Frame 5
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.manGo = false;
}
if (_root.manGo) {
this._x = this._x - 3;
this._y = _root.vehicleHeight;
}
}
Instance of Symbol 105 MovieClip "trackingClusterU" in Frame 5
onClipEvent (load) {
upgradeLaunch2 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch2 == false)) && (_root.upgradeCounter == 2)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch2 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch2 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch2 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch2 = false;
_root.upgradeCounter = 3;
}
}
Instance of Symbol 111 MovieClip "trackingU" in Frame 5
onClipEvent (load) {
upgradeLaunch1 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch1 == false)) && (_root.upgradeCounter == 0)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch1 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch1 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch1 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch1 = false;
_root.upgradeCounter = 1;
}
}
Instance of Symbol 115 MovieClip "clusterU" in Frame 5
onClipEvent (load) {
upgradeLaunch3 = false;
}
onClipEvent (enterFrame) {
if (((_root.farmer._x <= 400) && (upgradeLaunch3 == false)) && (_root.upgradeCounter == 1)) {
setProperty(this, _x , _root.farmer._x);
upgradeLaunch3 = true;
setProperty(this, _y , 570);
}
if (upgradeLaunch3 == true) {
this.gotoAndPlay(2);
this._y = this._y - _root.upgradespeed;
}
if (this._y <= -150) {
upgradeLaunch3 = false;
this.gotoAndPlay(1);
this._x = -50;
this._y = -100;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
upgradeLaunch3 = false;
_root.upgradeCounter = 2;
}
}
Instance of Symbol 81 MovieClip "tribomb2" in Frame 5
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.laser._y = 1000;
_root.explode1.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 81 MovieClip "tribomb3" in Frame 5
onClipEvent (load) {
tribombFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 2) {
if (tribombFall == false) {
setProperty(this, _y , 100);
setProperty(this, _x , _root._xmouse + 40);
this.gotoAndPlay(2);
}
tribombFall = true;
}
}
onClipEvent (enterFrame) {
tribombspeed = 10;
if (tribombFall == true) {
this._y = this._y + tribombspeed;
}
if (this._y >= 600) {
tribombFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode3._x = this._x;
_root.explode3._y = 580;
_root.laser._y = 1000;
_root.explode3.gotoAndPlay(2);
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
tribombFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode1._x = this._x;
_root.explode1._y = 580;
_root.explode1.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb1" in Frame 5
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < (_root._xmouse - 40)) {
this._x = this._x + 30;
this._rotation = this._rotation - 2;
}
if (this._x > (_root._xmouse - 40)) {
this._x = this._x - 30;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode2.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 83 MovieClip "clusterTrackbomb3" in Frame 5
onClipEvent (load) {
clustertrackFall = false;
}
onClipEvent (mouseDown) {
if (_root.upgradeCounter == 3) {
if (clustertrackFall == false) {
setProperty(this, _x , _root._xmouse);
setProperty(this, _y , 100);
this.gotoAndPlay(2);
}
clustertrackFall = true;
}
}
onClipEvent (enterFrame) {
clustertrackSpeed = 15;
if (clustertrackFall == true) {
this._y = this._y + clustertrackSpeed;
if (this._x < (_root._xmouse + 40)) {
this._x = this._x + 30;
this._rotation = this._rotation - 2;
}
if (this._x > (_root._xmouse + 40)) {
this._x = this._x - 30;
this._rotation = this._rotation + 2;
}
}
if (this._y >= 650) {
clustertrackFall = false;
this.gotoAndPlay(1);
this._y = -100;
_root.explode3._x = this._x;
_root.explode3._y = 580;
_root.laser._y = 1000;
_root.laser._x = _root._xmouse;
_root.explode3.gotoAndPlay(2);
this._rotation = 0;
}
if (hitTest(_root.cart)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat1, _x , _root.cart._x);
setProperty(_root.splat1, _y , 580);
_root.splat1.gotoAndPlay(2);
_root.cart._x = -100;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cart2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat2, _x , _root.cart2._x);
setProperty(_root.splat2, _y , 580);
_root.splat2.gotoAndPlay(2);
_root.cart2._x = 900;
_root.cartGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat3, _x , _root.cartRocket._x);
setProperty(_root.splat3, _y , 580);
_root.splat3.gotoAndPlay(2);
_root.cartRocket._x = -100;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.cartRocket2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat4, _x , _root.cartRocket2._x);
setProperty(_root.splat4, _y , 580);
_root.splat4.gotoAndPlay(2);
_root.cartRocket2._x = 900;
_root.cartRocketGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat5, _x , _root.donkey._x);
setProperty(_root.splat5, _y , 580);
_root.splat5.gotoAndPlay(2);
_root.donkey._x = -100;
_root.donkeyGo = false;
this._rotation = 0;
_root.kill = true;
}
if (hitTest(_root.donkey2)) {
this._y = -100;
this.gotoAndPlay(1);
clustertrackFall = false;
_root.laser._y = 1000;
_root.level++;
_root.explode2._x = this._x;
_root.explode2._y = 580;
_root.explode2.gotoAndPlay(2);
setProperty(_root.splat6, _x , _root.donkey2._x);
setProperty(_root.splat6, _y , 580);
_root.splat6.gotoAndPlay(2);
_root.donkey2._x = 900;
_root.donkeyGo = false;
_root.kill = true;
this._rotation = 0;
}
}
Instance of Symbol 84 MovieClip "cart" in Frame 5
onClipEvent (enterFrame) {
if (this._x >= 900) {
this._x = -100;
_root.cartGo = false;
}
this._y = _root.vehicleHeight;
if (_root.cartChooser == 1) {
cartSpeed = 1 + (_root.level / 12);
this._x = this._x + cartSpeed;
}
}
Instance of Symbol 84 MovieClip "cart2" in Frame 5
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = 900;
_root.cartGo = false;
}
if (_root.cartChooser == 2) {
cartSpeed = 1 + (_root.level / 12);
this._x = this._x - cartSpeed;
}
this._y = _root.vehicleHeight;
}
Instance of Symbol 76 MovieClip "donkeyrocket2" in Frame 5
onClipEvent (load) {
donkey2Launch = false;
timer = 0;
}
onClipEvent (enterFrame) {
if ((this._x < 0) || (this._x > 800)) {
this._x = -200;
}
if (!donkey2Launch) {
this._y = -100;
}
if (_root.level >= 0) {
timer = timer + 1;
time = 600 - (_root.level * 40);
if ((timer > time) && (donkey2Launch == false)) {
if (((_root.cartChooser == 1) && (_root.cart._x >= 0)) && (_root.cart._x <= 800)) {
setProperty(this, _x , _root.cart._x);
} else if (((_root.cartChooser == 2) && (_root.cart2._x >= 0)) && (_root.cart2._x <= 800)) {
setProperty(this, _x , _root.cart2._x);
} else {
_root.donkey2Launch = true;
}
setProperty(this, _y , 570);
donkey2Launch = true;
aim_y = getProperty(_root.helicopter, _y);
aim_x = getProperty(_root.helicopter, _x);
this.gotoAndPlay(2);
}
rocketspeed = 10 + (_root.level / 30);
if (donkey2Launch == true) {
this._y = this._y - rocketspeed;
timer = 0;
}
if (this._y > 121) {
myRadians = Math.atan2(aim_y - this._y, aim_x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
} else if (this._y <= 120) {
if ((this.rotation > 10) && (this.rotation < 90)) {
this._rotation = this._rotation - 10;
}
if ((this.rotation < 350) && (this.rotation > 270)) {
this._rotation = this._rotation + 10;
}
if ((this.rotation > 350) && (this.rotation < 10)) {
this._rotation = 0;
}
}
if (this._x < aim_x) {
this._x = this._x + rocketspeed;
}
if (this._x > aim_x) {
this._x = this._x - rocketspeed;
}
if (this._y <= -150) {
donkey2Launch = false;
this.gotoAndPlay(1);
this._x = -50;
}
if (hitTest(_root.helicopter)) {
this._y = -100;
this.gotoAndPlay(1);
donkey2Launch = false;
_root.explode1._x = this._x;
_root.explode1._y = 100;
_root.explode1.gotoAndPlay(2);
_root.helicopter._y = -100;
if (_root.level > 5) {
_root.level = _root.level - 5;
} else if (_root.level > 0) {
_root.level--;
}
_root.flash.gotoAndPlay(2);
_root.upgradeCounter--;
_root.life--;
}
}
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 5 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 2
stop();
Symbol 3 MovieClip Frame 1
stop();
Symbol 3 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 3
stop();
Symbol 34 MovieClip Frame 4
stop();
Symbol 34 MovieClip Frame 5
stop();
Symbol 34 MovieClip Frame 6
stop();
Symbol 34 MovieClip Frame 7
stop();
Symbol 34 MovieClip Frame 8
stop();
Symbol 34 MovieClip Frame 9
stop();
Symbol 34 MovieClip Frame 10
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 6
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 3
stop();
Symbol 61 MovieClip Frame 4
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
play();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 10
gotoAndPlay (2);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 10
gotoAndPlay (2);
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 10
gotoAndPlay (2);
Symbol 119 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "donkeyrocket";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 130 Button
on (release) {
play = true;
gotoAndPlay (1);
}
Symbol 141 Button
on (press) {
_root.backgroundChooser = 2;
}
Symbol 145 Button
on (press) {
_root.nightDay = 1;
}
Symbol 148 Button
on (press) {
_root.nightDay = 2;
}
Symbol 151 Button
on (press) {
_root.backgroundChooser = 1;
}
Symbol 154 Button
on (press) {
_root.backgroundChooser = 3;
}
Symbol 158 Button
on (release) {
play = true;
gotoAndPlay (5);
}
Symbol 162 Button
on (release) {
play = true;
gotoAndPlay (1);
}
Symbol 167 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}
Symbol 171 Button
on (press) {
_root.backgroundChooser = 2;
}
Symbol 172 Button
on (press) {
_root.nightDay = 1;
}
Symbol 173 Button
on (press) {
_root.nightDay = 2;
}
Symbol 174 Button
on (press) {
_root.backgroundChooser = 1;
}
Symbol 175 Button
on (press) {
_root.backgroundChooser = 3;
}
Symbol 176 Button
on (release) {
play = true;
gotoAndPlay (5);
}
Symbol 177 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}