Frame 1
function doSomething() {
}
function doSomething2() {
getURL ("http://www.armorgames.com", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Tree Trucker!", doSomething);
Functioned2 = new ContextMenuItem("Visit Armor Games", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay ("anim");
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
_root.savegame = SharedObject.getLocal("treetrucker");
_root.difficulty = _root.savegame.data.DIFF;
_root.trees = _root.savegame.data.TREE;
_root.permtrees = _root.savegame.data.PERM;
_root.accel = _root.savegame.data.ACCL;
_root.decel = _root.savegame.data.DCCL;
_root.axeupgrade = _root.savegame.data.AXEU;
_root.axelevel = _root.savegame.data.AXEL;
_root.axespeedupgrade = _root.savegame.data.AXSU;
_root.axespeedlevel = _root.savegame.data.AXSL;
_root.truckupgrade = _root.savegame.data.TRKU;
_root.trucklevel = _root.savegame.data.TRKL;
_root.engineupgrade = _root.savegame.data.EGNU;
_root.enginelevel = _root.savegame.data.EGNL;
_root.handleupgrade = _root.savegame.data.HNDU;
_root.handlelevel = _root.savegame.data.HNDL;
_root.exhaustupgrade = _root.savegame.data.EXSU;
_root.exhaustlevel = _root.savegame.data.EXSL;
_root.money = _root.savegame.data.MONY;
_root.bspeed = _root.savegame.data.AXSP;
_root.singleAxe = _root.savegame.data.SGLA;
_root.singleAxeupgrade = _root.savegame.data.SGLU;
_root.doubleAxe = _root.savegame.data.DBLA;
_root.doubleaxeupgrade = _root.savegame.data.DBLU;
_root.tripleaxeupgrade = _root.savegame.data.TPLU;
_root.tripleAxe = _root.savegame.data.TPLA;
_root.level = _root.savegame.data.LEVL;
_root.damage = _root.savegame.data.DAMG;
_root.damageMax = _root.savegame.data.DMGM;
_root.fuel = _root.savegame.data.FEUL;
_root.axedamage = _root.savegame.data.AXSD;
_root.archerKills = _root.savegame.data.ARCK;
_root.chainsawKills = _root.savegame.data.CHNK;
_root.houseKills = _root.savegame.data.HOSK;
_root.truckKills = _root.savegame.data.TRKK;
_root.spruce = _root.savegame.data.SPRU;
_root.palm = _root.savegame.data.PALM;
_root.maple = _root.savegame.data.MAPL;
_root.oak = _root.savegame.data.OAKT;
_root.birch = _root.savegame.data.BIRC;
_root.locate = _root.savegame.data.LCAT;
_root.chase.speed = _root.savegame.data.TRKS;
_root.chase.rspeed = _root.savegame.data.TRKR;
_root.chase.speedlimit = _root.savegame.data.TKSL;
_root.chase._xscale = _root.savegame.data.TRKX;
_root.chase._yscale = _root.savegame.data.TKSY;
_root.hud.damage._width = _root.savegame.data.DAMW;
_root.hud.fuel._width = _root.savegame.data.FEUW;
_root.completed = _root.savegame.data.COMP;
_root.survivalLevel = _root.savegame.data.SVLVL;
_root.survivalTrucksKilled = _root.savegame.data.SVTRK;
_root.survivalArchersKilled = _root.savegame.data.SVARCH;
_root.survivalChainsawKilled = _root.savegame.data.SVCHAIN;
_root.unlock = _root.savegame.data.UNLK;
_root.fire = false;
_root.new_location_x = 0;
_root.new_location_y = 0;
_root.treetype = "";
_root.quantity = 0;
_root.bc = 1;
stop();
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (load) {
_root.unlock = _root.savegame.data.UNLK;
_root.survive._visible = false;
_root.instructions._visible = false;
}
onClipEvent (enterFrame) {
if (_root.savegame.data.UNLK == true) {
_root.survive._visible = true;
}
}
Frame 5
stop();
Instance of Symbol 489 MovieClip "chase" in Frame 5
onClipEvent (load) {
death = 0;
speed = 0;
rspeed = 5;
rotationspeed = rspeed;
speedlimit = 5.5;
Mpi = (Math.PI/180);
blah = new Sound();
blah.attachSound("swing");
blah2 = new Sound();
blah2.attachSound("swing2");
blah3 = new Sound();
blah3.attachSound("swing3");
blah4 = new Sound();
blah4.attachSound("waterrun");
blah5 = new Sound();
blah5.attachSound("wrench");
blah6 = new Sound();
blah6.attachSound("engine");
blah7 = new Sound();
blah7.attachSound("drill");
blah8 = new Sound();
blah8.attachSound("crash");
blah9 = new Sound();
blah9.attachSound("crunch");
blah10 = new Sound();
blah10.attachSound("drip");
blah11 = new Sound();
blah11.attachSound("house_crash");
blah12 = new Sound();
blah12.attachSound("agh12");
blah13 = new Sound();
blah13.attachSound("wrench2");
blah14 = new Sound();
blah14.attachSound("music");
axeCounter = 1;
maxAxes = 5;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (_root.hud.damage._width < 6) {
death++;
}
if (death == 1) {
_root.attachMovie("explosion", "explosion", 2347, {_x:_x, _y:_y});
_visible = false;
_name = "chasedead";
_root.died._visible = true;
}
speed = speed * _root.decel;
_x = (_x + (Math.sin(_rotation * Mpi) * speed));
_y = (_y + ((Math.cos(_rotation * Mpi) * speed) * -1));
if ((((Key.isDown(38) & (!_root.land.hitTest(_x, _y, true))) & (!_root.shop._visible)) & (_root.hud.fuel._width > 1)) & (!_root.bosspeech._visible)) {
speed = speed + _root.accel;
if (!(speed === 0)) {
_root.hud.fuel._width = _root.hud.fuel._width - 0.1;
_root.fuel = _root.fuel - 0.1;
}
}
if ((((Key.isDown(40) & (!_root.land.hitTest(_x, _y, true))) & (!_root.shop._visible)) & (_root.hud.fuel._width > 1)) & (!_root.bosspeech._visible)) {
speed = speed - _root.accel;
if (!(speed === 0)) {
_root.hud.fuel._width = _root.hud.fuel._width - 0.1;
_root.fuel = _root.fuel - 0.1;
}
}
if (Math.abs(speed) > speedlimit) {
speed = speed * 0.9;
}
if ((speed < 1) && (speed > 0)) {
speed = 0;
}
if ((speed > -1) && (speed < 0)) {
speed = 0;
}
if (speed < -5) {
speed = speed * 0.7;
rotationspeed = rspeed - 4;
}
if (speed == 0) {
rotationspeed = rspeed - 4;
}
if (rotationspeed < -5) {
rotationspeed = rotationspeed * 0.25;
}
if (rotationspeed > 25) {
rotationspeed = rotationspeed * 0.25;
}
if (((Key.isDown(37) & (!_root.land.hitTest(_x, _y, true))) & (!_root.shop._visible)) & (!_root.bosspeech._visible)) {
_rotation = (_rotation - rotationspeed);
}
if (((Key.isDown(39) & (!_root.land.hitTest(_x, _y, true))) & (!_root.shop._visible)) & (!_root.bosspeech._visible)) {
_rotation = (_rotation + rotationspeed);
}
if (_root.land.hitTest(_x, _y, true)) {
if (speed > 6) {
_root.hud.damage._width = _root.hud.damage._width - 15;
_root.damage = _root.damage + 15;
if (_root.hud.damage._width < 15) {
_root.hud.damage._width = _root.hud.damage._width - 5;
_root.damage = _root.damage + 5;
if (_root.hud.damage._width < 5) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
}
}
blah8.start();
}
if (speed < 0) {
speed = speed * 1.25;
}
speed = speed * -1.25;
} else {
speed = speed * 1;
}
if (_root.water.hitTest(_x, _y, true)) {
speed = speed * 0.85;
if (speed > 3) {
_rotation = (_rotation + (random(6) + 10));
_rotation = (_rotation - (random(6) + 10));
splash._visible = true;
blah4.start();
}
if (speed < 3) {
splash._visible = false;
}
} else {
speed = speed * 1;
rotationspeed = rspeed;
splash._visible = false;
}
if (_root.ice.hitTest(_x, _y, true)) {
speed = speed * 1.015;
_rotation = (_rotation + (random(6) + 15));
_rotation = (_rotation - (random(6) + 15));
if (speed > 3) {
_rotation = (_rotation + (random(6) + 20));
_rotation = (_rotation - (random(6) + 20));
}
} else {
rotationspeed = rspeed;
speed = speed * 1;
}
if (_root.water.water2.hitTest(_x, _y, true)) {
_rotation = (_rotation + (random(6) + 15));
_rotation = (_rotation - (random(6) + 15));
speed = speed * 0.6;
if (!_root.shop._visible) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
}
} else {
rotationspeed = rspeed;
speed = speed * 1;
}
if ((((Key.isDown(32) & (!_root.fire)) & (!_root.shop._visible)) & (axeCounter < maxAxes)) & (!_root.bosspeech._visible)) {
if ((_root.singleAxe | _root.doubleAxe) | _root.tripleAxe) {
_root.fire = true;
if (axeCounter < maxAxes) {
n = "bomb" + depthCounter;
axeCounter++;
_root.attachMovie("bomb", n, depthCounter);
depthCounter++;
}
if (depthCounter > maxAxes) {
depthCounter = 1;
}
rand = random(3) + 1;
if (rand == 1) {
blah.start();
}
if (rand == 2) {
blah2.start();
}
if (rand == 3) {
blah3.start();
}
}
}
if (!Key.isDown(32)) {
_root.fire = false;
}
for (i in _root.tree_container) {
if (i.substring(0, 4) == "tree") {
if (this.hitTest(_root.tree_container[i])) {
_root.tree_container[i].die.die2();
speed = speed * 0.82;
}
}
}
}
Instance of Symbol 491 MovieClip "land" in Frame 5
onClipEvent (load) {
_visible = true;
_x = -20;
_y = -20;
}
Instance of Symbol 494 MovieClip "timeup" in Frame 5
onClipEvent (enterFrame) {
if (_root.hud.funkytimer.timer == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 499 MovieClip "died" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 489 MovieClip "chase" in Frame 6
onClipEvent (load) {
_root.shop._visible = false;
accel = 1;
decel = 0.96;
death = 0;
speed = 0;
rspeed = 12;
rotationspeed = rspeed;
speedlimit = 7;
Mpi = (Math.PI/180);
axeCounter = 1;
maxAxes = 6;
depthCounter = 1;
blah = new Sound();
blah.attachSound("swing");
blah2 = new Sound();
blah2.attachSound("swing2");
blah3 = new Sound();
blah3.attachSound("swing3");
blah4 = new Sound();
blah4.attachSound("waterrun");
blah5 = new Sound();
blah5.attachSound("wrench");
blah6 = new Sound();
blah6.attachSound("engine");
blah7 = new Sound();
blah7.attachSound("drill");
blah8 = new Sound();
blah8.attachSound("crash");
blah9 = new Sound();
blah9.attachSound("crunch");
blah10 = new Sound();
blah10.attachSound("drip");
blah11 = new Sound();
blah11.attachSound("house_crash");
blah12 = new Sound();
blah12.attachSound("agh12");
blah13 = new Sound();
blah13.attachSound("wrench2");
blah14 = new Sound();
blah14.attachSound("music");
}
onClipEvent (enterFrame) {
if (_root.hud.damage._width < 6) {
death++;
}
if (death == 1) {
_root.attachMovie("explosion", "explosion", 2347, {_x:_x, _y:_y});
_visible = false;
_name = "chasedead";
_root.died2._visible = true;
}
speed = speed * decel;
_x = (_x + (Math.sin(_rotation * Mpi) * speed));
_y = (_y + ((Math.cos(_rotation * Mpi) * speed) * -1));
if (Key.isDown(38) & (!_root.land.hitTest(_x, _y, true))) {
speed = speed + accel;
if (!(speed === 0)) {
_root.hud.fuel._width = _root.hud.fuel._width - 0.1;
_root.fuel = _root.fuel - 0.1;
}
}
if (Key.isDown(40) & (!_root.land.hitTest(_x, _y, true))) {
speed = speed - accel;
if (!(speed === 0)) {
_root.hud.fuel._width = _root.hud.fuel._width - 0.1;
_root.fuel = _root.fuel - 0.1;
}
}
if (Math.abs(speed) > speedlimit) {
speed = speed * 0.9;
}
if ((speed < 1) && (speed > 0)) {
speed = 0;
}
if ((speed > -1) && (speed < 0)) {
speed = 0;
}
if (speed < -5) {
speed = speed * 0.7;
rotationspeed = rspeed - 4;
}
if (speed == 0) {
rotationspeed = rspeed - 4;
}
if (rotationspeed < -5) {
rotationspeed = rotationspeed * 0.25;
}
if (rotationspeed > 25) {
rotationspeed = rotationspeed * 0.25;
}
if (Key.isDown(37) & (!_root.land.hitTest(_x, _y, true))) {
_rotation = (_rotation - rotationspeed);
}
if (Key.isDown(39) & (!_root.land.hitTest(_x, _y, true))) {
_rotation = (_rotation + rotationspeed);
}
if (_root.land.hitTest(_x, _y, true)) {
if (speed > 6) {
_root.hud.damage._width = _root.hud.damage._width - 15;
_root.damage = _root.damage + 15;
if (_root.hud.damage._width < 15) {
_root.hud.damage._width = _root.hud.damage._width - 5;
_root.damage = _root.damage + 5;
if (_root.hud.damage._width < 5) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
}
}
blah8.start();
}
if (speed < 0) {
speed = speed * 1.25;
}
speed = speed * -1.25;
} else {
speed = speed * 1;
}
if ((((Key.isDown(32) & (!_root.fire)) & (!_root.shop._visible)) & (axeCounter < maxAxes)) & (!_root.bosspeech._visible)) {
_root.fire = true;
if (axeCounter < maxAxes) {
n = "axe_alt" + depthCounter;
axeCounter++;
_root.attachMovie("axe_alt", n, depthCounter);
depthCounter++;
}
if (depthCounter > maxAxes) {
depthCounter = 1;
}
rand = random(3) + 1;
if (rand == 1) {
blah.start();
}
if (rand == 2) {
blah2.start();
}
if (rand == 3) {
blah3.start();
}
}
if (!Key.isDown(32)) {
_root.fire = false;
}
}
Instance of Symbol 773 MovieClip "survivalstats" in Frame 6
onClipEvent (load) {
_root.survivalLevel = 0;
_root.survivalTrucksKilled = 0;
_root.survivalArchersKilled = 0;
_root.survivalChainsawKilled = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 774 MovieClip "enemycontainer" in Frame 6
onClipEvent (enterFrame) {
if ((_width == 0) & (_height == 0)) {
_root.survivalstats._visible = true;
}
}
Instance of Symbol 775 MovieClip "died2" in Frame 6
onClipEvent (load) {
_visible = false;
}
Frame 871
_root.shop.gotoAndStop(4);
gotoAndStop ("game");
Frame 872
if (_root.difficulty == "Easy") {
higherdifficulty = "Now try Medium Difficulty!";
}
if (_root.difficulty == "Medium") {
higherdifficulty = "Now try Hard Difficulty!";
}
if (_root.difficulty == "Hard") {
higherdifficulty = "Dude you are the Tree Master!";
}
_root.bass = new Sound();
_root.bass.attachSound("creditsmusic");
_root.bass.start();
_root.unlock = true;
stop();
Instance of Symbol 27 MovieClip in Symbol 31 MovieClip [flame] Frame 1
onClipEvent (load) {
size = 1;
string = _parent._name.substring(5, _parent._name.length);
flameID = parseInt(string);
ID = flameID + 1;
if (_root.water.hitTest(_parent._x, _parent._y, true)) {
_parent.removeMovieClip();
}
if (_root.land.hitTest(_parent._x, _parent._y, true)) {
_parent.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (size < 250) {
_parent._xscale = _parent._xscale + 0.5;
_parent._yscale = _parent._yscale + 0.5;
_parent._x = _parent._x - 0.075;
_parent._y = _parent._y - 0.075;
size++;
}
if (_root.shop._visible == true) {
_parent.removeMovieClip();
}
if (size == 250) {
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.chase)) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
}
for (i in _root.tree_container) {
if (i.substring(0, 4) == "tree") {
if (_parent.hitTest(_root.tree_container[i])) {
_root.attachMovie("flame", "flame" + ID, 6500 + ID, {_x:_root.tree_container[i]._x, _y:_root.tree_container[i]._y});
_root.tree_container[i].die.die();
}
}
}
}
Symbol 33 MovieClip [treepalm] Frame 1
stop();
Instance of Symbol 27 MovieClip "die" in Symbol 33 MovieClip [treepalm] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
function die2() {
_root.attachMovie("palmboom", "palmboom" + ID, 1400 + ID, {_x:_parent._x, _y:_parent._y});
_root.palm++;
_root.trees++;
_root.permtrees++;
removeMovieClip(_parent);
}
string = _parent._name.substring(4, _parent._name.length);
ID = parseInt(string);
if (_root.land.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
}
onClipEvent (enterFrame) {
if (_root.shop._visible) {
die();
}
}
Symbol 35 MovieClip [treebirch] Frame 1
stop();
Instance of Symbol 27 MovieClip "die" in Symbol 35 MovieClip [treebirch] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
function die2() {
_root.attachMovie("birchboom", "birchboom" + ID, 1400 + ID, {_x:_parent._x, _y:_parent._y});
_root.birch++;
_root.trees++;
_root.permtrees++;
removeMovieClip(_parent);
}
string = _parent._name.substring(4, _parent._name.length);
ID = parseInt(string);
if (_root.land.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
}
onClipEvent (enterFrame) {
if (_root.shop._visible) {
die();
}
}
Symbol 37 MovieClip [treespruce] Frame 1
stop();
Instance of Symbol 27 MovieClip "die" in Symbol 37 MovieClip [treespruce] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
function die2() {
_root.attachMovie("spruceboom", "spruceboom" + ID, 1400 + ID, {_x:_parent._x, _y:_parent._y});
_root.spruce++;
_root.trees++;
_root.permtrees++;
removeMovieClip(_parent);
}
string = _parent._name.substring(4, _parent._name.length);
ID = parseInt(string);
if (_root.land.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
}
onClipEvent (enterFrame) {
if (_root.shop._visible) {
die();
}
}
Symbol 39 MovieClip [treemaple] Frame 1
stop();
Instance of Symbol 27 MovieClip "die" in Symbol 39 MovieClip [treemaple] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
function die2() {
_root.attachMovie("mapleboom", "mapleboom" + ID, 1400 + ID, {_x:_parent._x, _y:_parent._y});
_root.maple++;
_root.trees++;
_root.permtrees++;
removeMovieClip(_parent);
}
string = _parent._name.substring(4, _parent._name.length);
ID = parseInt(string);
if (_root.land.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
}
onClipEvent (enterFrame) {
if (_root.shop._visible) {
die();
}
}
Symbol 41 MovieClip [treeoak] Frame 1
stop();
Instance of Symbol 27 MovieClip "die" in Symbol 41 MovieClip [treeoak] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
function die2() {
_root.attachMovie("oakboom", "oakboom" + ID, 1400 + ID, {_x:_parent._x, _y:_parent._y});
_root.oak++;
_root.trees++;
_root.permtrees++;
removeMovieClip(_parent);
}
string = _parent._name.substring(4, _parent._name.length);
ID = parseInt(string);
if (_root.land.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 5, true)) {
die();
}
}
onClipEvent (enterFrame) {
if (_root.shop._visible) {
die();
}
}
Symbol 46 MovieClip [bad_boss] Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 46 MovieClip [bad_boss] Frame 1
onClipEvent (load) {
speed = 0;
speedlimit = 6;
Mpi = (Math.PI/180);
_parent.health = 300 + random(51);
if (_root.difficulty == "Medium") {
_parent.health = 500 + random(21);
}
if (_root.difficulty == "Hard") {
_parent.health = 800 + random(21);
speedlimit = 8;
}
_parent.string = _parent._name.substring(8, _parent._name.length);
_parent.bad_bossID = parseInt(_parent.string);
_parent.death = 0;
_parent.fake = 0;
}
onClipEvent (enterFrame) {
if (!_root.bosspeech._visible) {
speed = speed + 0.5;
}
if (speed >= speedlimit) {
speed = speed * 0.9;
}
if (_root._currentframe == 1) {
_parent.fake++;
}
rotation = (Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI;
if ((rotation - _parent._rotation) < 0) {
_parent._rotation = _parent._rotation - 4;
}
if ((rotation - _parent._rotation) > 0) {
_parent._rotation = _parent._rotation + 4;
}
if ((((rotation - _parent._rotation) > -5) & ((rotation - _parent._rotation) < 5)) & (!_root.bosspeech._visible)) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
_parent._x = _parent._x + (Math.cos(_parent._rotation * Mpi) * speed);
_parent._y = _parent._y - ((Math.sin(_parent._rotation * Mpi) * speed) * -1);
if (_parent.hitTest(_root.chase)) {
if (_root.chase.speed != 0) {
_root.chase.speed = _root.chase.speed * -1.25;
_root.chase._x = _root.chase._x + (Math.cos(_parent._rotation * Mpi) * (speed - 1));
_root.chase._y = _root.chase._y - ((Math.sin(_parent._rotation * Mpi) * (speed - 1)) * -1);
}
if (_root.chase.speed == 0) {
_root.chase.speed = _root.chase.speed + 5;
_root.chase._x = _root.chase._x + (Math.cos(_parent._rotation * Mpi) * (speed - 1));
_root.chase._y = _root.chase._y - ((Math.sin(_parent._rotation * Mpi) * (speed - 1)) * -1);
}
_root.chase.blah8.start("crash");
_parent.health = _parent.health - (1 * _root.trucklevel);
speed = speed * -1.25;
_parent._x = _parent._x + (Math.cos(_root.chase._rotation * Mpi) * (_root.chase.speed + 1));
_parent._y = _parent._y - ((Math.sin(_root.chase._rotation * Mpi) * (_root.chase.speed + 1)) * -1);
}
if (_root.land.hitTest(_parent._x, _parent._y, true)) {
speed = speed * -1.25;
}
if (_parent.health < 1) {
_parent.death++;
}
if (_root.shop._visible == true) {
_parent.fake++;
}
if (_parent.death == 1) {
_root.completed = true;
_parent._root.attachMovie("explosion", "explosion", 23570, {_x:_parent._x, _y:_parent._y});
_parent._root.attachMovie("bossdie", "bossdie", 23571, {_x:_parent._x, _y:_parent._y});
removeMovieClip(_parent);
}
if (_parent.fake == 1) {
removeMovieClip(_parent);
}
if (_parent.hitTest(_root.bomb)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb5)) {
_parent.health = _parent.health - _root.axedamage;
}
}
Instance of Symbol 45 MovieClip in Symbol 46 MovieClip [bad_boss] Frame 2
onClipEvent (load) {
var n;
b = _parent.bad_bossID;
a = 0;
}
onClipEvent (enterFrame) {
if (_currentframe == 9) {
n = "bad_axe" + b;
_root.attachMovie("bad_axe", n, (1011 + (2 * b)) + a, {_x:this._parent._x, _y:this._parent._y});
a++;
}
}
Symbol 49 MovieClip [bad_truck] Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 49 MovieClip [bad_truck] Frame 1
onClipEvent (load) {
speed = 0;
speedlimit = 5;
Mpi = (Math.PI/180);
_parent.health = 100 + random(21);
if (_root.difficulty == "Medium") {
_parent.health = 150 + random(21);
}
if (_root.difficulty == "Hard") {
_parent.health = 200 + random(21);
speedlimit = 6;
}
_parent.string = _parent._name.substring(9, _parent._name.length);
_parent.bad_truckID = parseInt(_parent.string);
_parent.death = 0;
_parent.fake = 0;
}
onClipEvent (enterFrame) {
if ((_root.level >= 100) & (_root.completed == false)) {
_parent.fake++;
}
speed = speed + 0.5;
if (speed >= speedlimit) {
speed = speed * 0.9;
}
if (_root._currentframe == 1) {
_parent.fake++;
}
rotation = (Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI;
if ((rotation - _parent._rotation) < 0) {
_parent._rotation = _parent._rotation - 4;
}
if ((rotation - _parent._rotation) > 0) {
_parent._rotation = _parent._rotation + 4;
}
if (((rotation - _parent._rotation) > -5) & ((rotation - _parent._rotation) < 5)) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
_parent._x = _parent._x + (Math.cos(_parent._rotation * Mpi) * speed);
_parent._y = _parent._y - ((Math.sin(_parent._rotation * Mpi) * speed) * -1);
if (_parent.hitTest(_root.chase)) {
if (_root.chase.speed != 0) {
_root.chase._x = _root.chase._x + (Math.cos(_parent._rotation * Mpi) * speed);
_root.chase._y = _root.chase._y - ((Math.sin(_parent._rotation * Mpi) * speed) * -1);
}
if (_root.chase.speed == 0) {
_root.chase._x = _root.chase._x + (Math.cos(_parent._rotation * Mpi) * speed);
_root.chase._y = _root.chase._y - ((Math.sin(_parent._rotation * Mpi) * speed) * -1);
}
_root.chase.blah8.start("crash");
_parent.health = _parent.health - (1 * _root.trucklevel);
speed = speed * -1.25;
_parent._x = _parent._x + (Math.cos(_root.chase._rotation * Mpi) * (_root.chase.speed + 1));
_parent._y = _parent._y - ((Math.sin(_root.chase._rotation * Mpi) * (_root.chase.speed + 1)) * -1);
}
if (_root.land.hitTest(_parent._x, _parent._y, true)) {
speed = speed * -1.25;
}
if (_parent.health < 1) {
_parent.death++;
}
if (_root.shop._visible == true) {
_parent.fake++;
}
if (_parent.death == 1) {
_parent._root.attachMovie("explosion", "explosion", 2347, {_x:_parent._x, _y:_parent._y});
_root.survivalTrucksKilled++;
_root.truckKills++;
removeMovieClip(_parent);
}
if (_parent.fake == 1) {
removeMovieClip(_parent);
}
if (_parent.hitTest(_root.bomb)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt6)) {
_parent.health = _parent.health - _root.axedamage;
}
}
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip [bad_truck] Frame 2
onClipEvent (load) {
var n;
b = _parent.bad_truckID;
}
onClipEvent (enterFrame) {
if (_currentframe == 10) {
n = "bad_axe" + b;
_root.attachMovie("bad_axe", n, 1001 + (2 * b), {_x:this._parent._x, _y:this._parent._y});
a++;
}
}
Symbol 52 MovieClip [palmboom] Frame 1
_root.chase.blah9.start();
Symbol 52 MovieClip [palmboom] Frame 3
this.removeMovieClip();
Symbol 55 MovieClip [birchboom] Frame 1
_root.chase.blah9.start();
Symbol 55 MovieClip [birchboom] Frame 3
this.removeMovieClip();
Symbol 58 MovieClip [spruceboom] Frame 1
_root.chase.blah9.start();
Symbol 58 MovieClip [spruceboom] Frame 3
this.removeMovieClip();
Symbol 61 MovieClip [mapleboom] Frame 1
_root.chase.blah9.start();
Symbol 61 MovieClip [mapleboom] Frame 3
this.removeMovieClip();
Symbol 64 MovieClip [oakboom] Frame 1
_root.chase.blah9.start();
Symbol 64 MovieClip [oakboom] Frame 3
this.removeMovieClip();
Instance of Symbol 27 MovieClip in Symbol 73 MovieClip [bad_axe] Frame 1
onClipEvent (load) {
Mpi = (Math.PI/180);
if (_root.difficulty == "Easy") {
bulletspeed = 16;
}
if (_root.difficulty == "Medium") {
bulletspeed = 18;
}
if (_root.difficulty == "Hard") {
bulletspeed = 20;
}
direct = ((Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI) + 90;
_parent._rotation = direct;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (Math.sin(direct * Mpi) * bulletspeed);
_parent._y = _parent._y + ((Math.cos(direct * Mpi) * bulletspeed) * -1);
if (bulletspeed < 3.5) {
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.chase)) {
if (_root.hud.damage._width < 5) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
} else {
_root.hud.damage._width = _root.hud.damage._width - 5;
_root.damage = _root.damage + 5;
}
_parent.removeMovieClip();
}
bulletspeed = bulletspeed * 0.96;
}
Symbol 73 MovieClip [bad_axe] Frame 9
gotoAndPlay (1);
Instance of Symbol 27 MovieClip in Symbol 82 MovieClip [axe_alt] Frame 1
onClipEvent (load) {
function die() {
_root.chase.axeCounter--;
_parent.removeMovieClip();
}
_parent._x = _root.chase._x;
_parent._y = _root.chase._y;
direct = _root.chase._rotation;
_parent._rotation = direct;
bulletspeed = 20;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (Math.sin(direct * (Math.PI/180)) * bulletspeed);
_parent._y = _parent._y + ((Math.cos(direct * (Math.PI/180)) * bulletspeed) * -1);
if (bulletspeed < 3.5) {
die();
}
bulletspeed = bulletspeed * 0.92;
}
Symbol 82 MovieClip [axe_alt] Frame 9
gotoAndPlay (1);
Instance of Symbol 27 MovieClip in Symbol 91 MovieClip [bomb] Frame 1
onClipEvent (load) {
function die() {
if (_root.water.hitTest(_x, _y, true)) {
blah5 = new Sound();
blah5.attachSound("axesplash");
blah5.start();
}
_root.chase.axeCounter--;
_parent.removeMovieClip();
}
_parent._x = _root.chase._x;
_parent._y = _root.chase._y;
direct = _root.chase._rotation;
_parent._rotation = direct;
bulletspeed = _root.bspeed;
}
onClipEvent (enterFrame) {
if (_root.doubleAxe & _parent.hitTest(_root.chase)) {
_parent.attachMovie("bomb2", "bomb2", _parent.getDepth);
_parent.bomb2._x = -25;
}
if (_root.tripleAxe & _parent.hitTest(_root.chase)) {
_parent.attachMovie("bomb3", "bomb3", _parent.getDepth);
}
_parent._x = _parent._x + (Math.sin(direct * (Math.PI/180)) * bulletspeed);
_parent._y = _parent._y + ((Math.cos(direct * (Math.PI/180)) * bulletspeed) * -1);
if (bulletspeed < 3.5) {
die();
}
for (i in _root.tree_container) {
if (i.substring(0, 4) == "tree") {
if (_parent.hitTest(_root.tree_container[i])) {
bulletspeed = bulletspeed * 0.78;
_root.tree_container[i].die.die2();
}
}
}
bulletspeed = bulletspeed * 0.92;
}
Symbol 91 MovieClip [bomb] Frame 9
gotoAndPlay (1);
Instance of Symbol 27 MovieClip "action" in Symbol 118 MovieClip [car] Frame 1
onClipEvent (load) {
k = 0.6;
_parent.n = "car" + _root.numCars;
}
onClipEvent (enterFrame) {
_parent._rotation = _root.chase._rotation;
if (_root.shop._visible) {
_visible = false;
} else {
_visible = true;
}
ax = (_root.chase._x - _parent._x) * k;
_parent._x = _parent._x + ax;
ay = (_root.chase._y - _parent._y) * k;
_parent._y = _parent._y + ay;
}
Symbol 127 MovieClip [chainsaw] Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 127 MovieClip [chainsaw] Frame 1
onClipEvent (load) {
function walk(speed) {
_parent.follow = (Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI;
_parent._x = _parent._x + (Math.cos(_parent.follow * (Math.PI/180)) * speed);
_parent._y = _parent._y - ((Math.sin(_parent.follow * (Math.PI/180)) * speed) * -1);
}
_parent.health = 35 + random(30);
if (_root.difficulty == "Medium") {
_parent.health = 50 + random(21);
}
if (_root.difficulty == "Hard") {
_parent.health = 75 + random(21);
}
_parent.string = _parent._name.substring(8, _parent._name.length);
_parent.chainsawID = parseInt(_parent.string);
_parent.death = 0;
_parent.fake = 0;
}
onClipEvent (enterFrame) {
if ((_root.level >= 100) & (_root.completed == false)) {
_parent.fake++;
}
if (_root._currentframe == 1) {
_parent.fake++;
}
_parent.xDist = _root.chase._x - _parent._x;
_parent.yDist = _root.chase._y - _parent._y;
_parent.dist = Math.sqrt((Math.abs(_parent.xDist) * Math.abs(_parent.xDist)) + (Math.abs(_parent.yDist) * Math.abs(_parent.yDist)));
if ((_parent.xDist > 0) & (_parent.death == 0)) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
if ((((_parent.dist > 0) & (_parent.dist < 20)) & (_parent.death == 0)) & (_root.hud.damage._width > 0)) {
_parent.gotoAndStop(2);
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
}
if ((_parent.dist >= 20) & (_parent.death == 0)) {
_parent.gotoAndStop(1);
if (_root.difficulty == "Easy") {
walk(1);
}
if (_root.difficulty == "Medium") {
walk(1.5);
}
if (_root.difficulty == "Hard") {
walk(2);
}
}
if (_parent.hitTest(_root.chase) & (_root.chase.speed > 4)) {
_parent.health = _parent.health - (1 * _root.trucklevel);
}
if (_parent.health < 1) {
_parent.death++;
}
if (_root.shop._visible == true) {
_parent.fake++;
}
if (_parent.death == 1) {
_parent._root.attachMovie("chainsaw_die", "chainsaw_die" + chainsawID, 1001, {_x:_parent._x, _y:_parent._y});
_root.survivalChainsawKilled++;
_root.chainsawKills++;
removeMovieClip(_parent);
}
if (_parent.fake == 1) {
removeMovieClip(_parent);
}
if (_parent.hitTest(_root.bomb)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt6)) {
_parent.health = _parent.health - _root.axedamage;
}
}
Symbol 127 MovieClip [chainsaw] Frame 2
stop();
Symbol 141 MovieClip [archer] Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 141 MovieClip [archer] Frame 1
onClipEvent (load) {
function walk(speed) {
_parent.follow = (Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI;
_parent._x = _parent._x + (Math.cos(_parent.follow * (Math.PI/180)) * speed);
_parent._y = _parent._y - ((Math.sin(_parent.follow * (Math.PI/180)) * speed) * -1);
}
_parent.health = 25 + random(21);
if (_root.difficulty == "Medium") {
_parent.health = 40 + random(21);
}
if (_root.difficulty == "Hard") {
_parent.health = 50 + random(21);
}
_parent.string = _parent._name.substring(6, _parent._name.length);
_parent.archerID = parseInt(_parent.string);
_parent.death = 0;
_parent.fake = 0;
}
onClipEvent (enterFrame) {
if ((_root.level >= 100) & (_root.completed == false)) {
_parent.fake++;
}
if (_root._currentframe == 1) {
_parent.fake++;
}
_parent.xDist = _root.chase._x - _parent._x;
_parent.yDist = _root.chase._y - _parent._y;
_parent.dist = Math.sqrt((Math.abs(_parent.xDist) * Math.abs(_parent.xDist)) + (Math.abs(_parent.yDist) * Math.abs(_parent.yDist)));
if ((_parent.xDist > 0) & (_parent.death == 0)) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
if (((_parent.dist > 75) & (_parent.dist < 250)) & (_parent.death == 0)) {
_parent.gotoAndStop(2);
}
if ((_parent.dist < 75) & (_parent.death == 0)) {
_parent.gotoAndStop(1);
walk(-2);
}
if ((_parent.dist >= 250) & (_parent.death == 0)) {
_parent.gotoAndStop(1);
walk(2);
}
if (_parent.hitTest(_root.chase)) {
_parent.health = _parent.health - (1 * _root.trucklevel);
}
if (_parent.health < 1) {
_parent.death++;
}
if (_root.shop._visible == true) {
_parent.fake++;
}
if (_parent.death == 1) {
_parent._root.attachMovie("archer_die", "archer_die" + archerID, 1000, {_x:_parent._x, _y:_parent._y});
_root.survivalArchersKilled++;
_root.archerKills++;
removeMovieClip(_parent);
}
if (_parent.fake == 1) {
removeMovieClip(_parent);
}
if (_parent.hitTest(_root.bomb)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.axe_alt6)) {
_parent.health = _parent.health - _root.axedamage;
}
}
Symbol 141 MovieClip [archer] Frame 2
stop();
Instance of Symbol 140 MovieClip "shoot" in Symbol 141 MovieClip [archer] Frame 2
onClipEvent (load) {
a = 0;
var n;
b = this._parent.archerID;
}
onClipEvent (enterFrame) {
if (this._currentframe == 31) {
n = (b + "archer_arrow") + a;
_root.attachMovie("archer_arrow", n, (1000 + a) + (8 * b), {_x:this._parent._x, _y:this._parent._y});
a++;
}
}
Instance of Symbol 27 MovieClip "action" in Symbol 143 MovieClip [archer_arrow] Frame 1
onClipEvent (load) {
Mpi = (Math.PI/180);
if (_root.difficulty == "Easy") {
speed = 8;
}
if (_root.difficulty == "Medium") {
speed = 10;
}
if (_root.difficulty == "Hard") {
speed = 12;
}
direct = ((Math.atan2(_root.chase._y - _parent._y, _root.chase._x - _parent._x) * 180) / Math.PI) + (random(18) - 8);
_parent._rotation = direct;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (Math.cos(direct * Mpi) * speed);
_parent._y = _parent._y + (Math.sin(direct * Mpi) * speed);
if (_root.land.hitTest(_parent._x, _parent._y, true)) {
removeMovieClip(_parent);
}
if (_root.chase.hitTest(_parent) & (_root.hud.damage._width > 0)) {
if (_root.hud.damage._width < 5) {
_root.hud.damage._width = _root.hud.damage._width - 1;
_root.damage = _root.damage + 1;
} else {
_root.hud.damage._width = _root.hud.damage._width - 5;
_root.damage = _root.damage + 5;
}
removeMovieClip(_parent);
}
}
Symbol 155 MovieClip [chainsaw_die] Frame 1
_root.chase.blah12.start();
Symbol 155 MovieClip [chainsaw_die] Frame 11
removeMovieClip(this);
Symbol 169 MovieClip [archer_die] Frame 1
_root.chase.blah12.start();
Symbol 169 MovieClip [archer_die] Frame 13
removeMovieClip(this);
Symbol 182 MovieClip Frame 1
_root.chase.blah11.start();
_root.hud.funkytimer.timerS = _root.hud.funkytimer.timerS + 5000;
Symbol 182 MovieClip Frame 11
this.removeMovieClip();
this._parent.removeMovieClip();
Symbol 183 MovieClip [house] Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 183 MovieClip [house] Frame 1
onClipEvent (load) {
function die() {
removeMovieClip(_parent);
}
_parent.health = 75 + random(50);
if (_root.difficulty == "Medium") {
_parent.health = 100 + random(50);
}
if (_root.difficulty == "Hard") {
_parent.health = 150 + random(50);
}
_parent.death = 0;
_parent.fake = 0;
if (_root.land.hitTest(_parent._x, _parent._y + 20, true)) {
die();
}
if (_root.water.hitTest(_parent._x, _parent._y + 20, true)) {
die();
}
if (_root.chase.hitTest(this)) {
die();
}
if (_root.water2.hitTest(_parent._x, _parent._y + 20, true)) {
die();
}
if (_root.ice.hitTest(_parent._x, _parent._y + 20, true)) {
die();
}
if (_root.shop._visible) {
die();
}
}
onClipEvent (enterFrame) {
sp = Math.round(_root.chase.speed / 4);
if (_parent.hitTest(_root.bomb)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb1)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb2)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb3)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb4)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.bomb5)) {
_parent.health = _parent.health - _root.axedamage;
}
if (_parent.hitTest(_root.chase) & (_root.chase.speed > 4)) {
_parent.health = _parent.health - ((1 * _root.trucklevel) * sp);
}
if (_parent.health < 0) {
_parent.death++;
}
if (_root.shop._visible) {
_parent.fake++;
}
if (_parent.death == 1) {
_root.houseKills++;
_parent.gotoAndStop(2);
}
if (_parent.fake == 1) {
removeMovieClip(_parent);
}
}
Symbol 183 MovieClip [house] Frame 2
stop();
Symbol 188 Button
on (release) {
part = "front";
}
Symbol 191 Button
on (release) {
part = "back";
}
Symbol 193 Button
on (release) {
part = "middle";
}
Symbol 195 Button
on (release) {
part = "edges";
}
Symbol 199 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16711680);
my_color2.setRGB(16711680);
}
}
Symbol 201 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(255);
my_color2.setRGB(255);
}
}
Symbol 203 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(65280);
my_color2.setRGB(65280);
}
}
Symbol 205 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16776960);
my_color2.setRGB(16776960);
}
}
Symbol 207 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(0);
my_color2.setRGB(0);
}
}
Symbol 209 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16777215);
my_color2.setRGB(16777215);
}
}
Symbol 211 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(13421772);
my_color2.setRGB(13421772);
}
}
Symbol 213 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(6710886);
my_color2.setRGB(6710886);
}
}
Symbol 215 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(10027008);
my_color2.setRGB(10027008);
}
}
Symbol 217 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(153);
my_color2.setRGB(153);
}
}
Symbol 219 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(39168);
my_color2.setRGB(39168);
}
}
Symbol 221 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(10066176);
my_color2.setRGB(10066176);
}
}
Symbol 223 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(10053120);
my_color2.setRGB(10053120);
}
}
Symbol 225 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16711935);
my_color2.setRGB(16711935);
}
}
Symbol 227 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16751103);
my_color2.setRGB(16751103);
}
}
Symbol 229 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(3394815);
my_color2.setRGB(3394815);
}
}
Symbol 231 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16737792);
my_color2.setRGB(16737792);
}
}
Symbol 233 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(3368601);
my_color2.setRGB(3368601);
}
}
Symbol 235 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(21760);
my_color2.setRGB(21760);
}
}
Symbol 237 Button
on (release) {
if (part != "Click a section") {
n = part;
var my_color = new Color(_root.chase[n]);
var my_color2 = new Color(_root.shop.truckshop.paint_interface[n]);
my_color.setRGB(16764159);
my_color2.setRGB(16764159);
}
}
Instance of Symbol 189 MovieClip "front" in Symbol 244 MovieClip [paint_interface] Frame 1
onClipEvent (load) {
var my_color = new Color(_root.chase.front);
var my_color2 = new Color(_root.shop.truckshop.paint_interface.front);
my_color2.setRGB(my_color.getRGB());
}
Instance of Symbol 238 MovieClip "middle" in Symbol 244 MovieClip [paint_interface] Frame 1
onClipEvent (load) {
var my_color = new Color(_root.chase.middle);
var my_color2 = new Color(_root.shop.truckshop.paint_interface.middle);
my_color2.setRGB(my_color.getRGB());
}
Instance of Symbol 240 MovieClip "edges" in Symbol 244 MovieClip [paint_interface] Frame 1
onClipEvent (load) {
var my_color = new Color(_root.chase.edges);
var my_color2 = new Color(_root.shop.truckshop.paint_interface.edges);
my_color2.setRGB(my_color.getRGB());
}
Instance of Symbol 241 MovieClip "back" in Symbol 244 MovieClip [paint_interface] Frame 1
onClipEvent (load) {
var my_color = new Color(_root.chase.back);
var my_color2 = new Color(_root.shop.truckshop.paint_interface.back);
my_color2.setRGB(my_color.getRGB());
}
Symbol 251 Button
on (release) {
_root.gotoAndPlay("intro");
_root.difficulty = "Easy";
_root.trees = 0;
_root.permtrees = 0;
_root.accel = 1;
_root.decel = 0;
_root.remainder = 0;
_root.axeupgrade = 4500;
_root.axelevel = 1;
_root.axespeedupgrade = 3500;
_root.axespeedlevel = 1;
_root.truckupgrade = 12000;
_root.trucklevel = 1;
_root.engineupgrade = 6000;
_root.enginelevel = 1;
_root.handleupgrade = 3000;
_root.handlelevel = 1;
_root.exhaustupgrade = 5000;
_root.exhaustlevel = 1;
_root.bc = 1;
_root.money = 1000;
_root.levelmoney = 0;
_root.bspeed = 18;
_root.singleAxe = false;
_root.singleAxeupgrade = 10000;
_root.doubleAxe = false;
_root.doubleaxeupgrade = 20000;
_root.tripleaxeupgrade = 50000;
_root.tripleAxe = false;
_root.treelimit = random(100) + 300;
_root.fire = false;
_root.level = 1;
_root.grass = random(11) + 7;
_root.forest = random(12) + 15;
_root.desert = random(6) + 1;
_root.damage = 0;
_root.damageMax = 250;
_root.fuel = 250;
_root.axedamage = 5;
_root.archerKills = 0;
_root.chainsawKills = 0;
_root.houseKills = 0;
_root.truckKills = 0;
_root.numCars = 0;
_root.spruce = 0;
_root.palm = 0;
_root.maple = 0;
_root.oak = 0;
_root.birch = 0;
_root.locate = 1;
_root.new_location_x = 0;
_root.new_location_y = 0;
_root.treetype = "";
_root.quantity = 0;
_root.completed = false;
removeMovieClip(this);
}
Symbol 255 Button
on (release) {
_root.gotoAndPlay("intro");
_root.difficulty = "Medium";
_root.trees = 0;
_root.permtrees = 0;
_root.accel = 1;
_root.decel = 0;
_root.remainder = 0;
_root.axeupgrade = 5000;
_root.axelevel = 1;
_root.axespeedupgrade = 5000;
_root.axespeedlevel = 1;
_root.truckupgrade = 15000;
_root.trucklevel = 1;
_root.engineupgrade = 8000;
_root.enginelevel = 1;
_root.handleupgrade = 5000;
_root.handlelevel = 1;
_root.exhaustupgrade = 7000;
_root.exhaustlevel = 1;
_root.bc = 1;
_root.money = 0;
_root.levelmoney = 0;
_root.bspeed = 17;
_root.singleAxe = false;
_root.singleAxeupgrade = 30000;
_root.doubleAxe = false;
_root.doubleaxeupgrade = 75000 /* 0x0124F8 */;
_root.tripleaxeupgrade = 100000 /* 0x0186A0 */;
_root.tripleAxe = false;
_root.treelimit = random(100) + 300;
_root.fire = false;
_root.level = 1;
_root.grass = random(11) + 7;
_root.forest = random(12) + 15;
_root.desert = random(6) + 1;
_root.damage = 0;
_root.damageMax = 200;
_root.fuel = 250;
_root.axedamage = 3;
_root.archerKills = 0;
_root.chainsawKills = 0;
_root.houseKills = 0;
_root.truckKills = 0;
_root.numCars = 0;
_root.spruce = 0;
_root.palm = 0;
_root.maple = 0;
_root.oak = 0;
_root.birch = 0;
_root.locate = 1;
_root.new_location_x = 0;
_root.new_location_y = 0;
_root.treetype = "";
_root.quantity = 0;
_root.completed = false;
removeMovieClip(this);
}
Symbol 259 Button
on (release) {
_root.gotoAndPlay("intro");
_root.difficulty = "Hard";
_root.trees = 0;
_root.permtrees = 0;
_root.accel = 1;
_root.decel = 0;
_root.remainder = 0;
_root.axeupgrade = 8000;
_root.axelevel = 1;
_root.axespeedupgrade = 8000;
_root.axespeedlevel = 1;
_root.truckupgrade = 19000;
_root.trucklevel = 1;
_root.engineupgrade = 14000;
_root.enginelevel = 1;
_root.handleupgrade = 9000;
_root.handlelevel = 1;
_root.exhaustupgrade = 10000;
_root.exhaustlevel = 1;
_root.bc = 1;
_root.money = 0;
_root.levelmoney = 0;
_root.bspeed = 17;
_root.singleAxe = false;
_root.singleAxeupgrade = 30000;
_root.doubleAxe = false;
_root.doubleaxeupgrade = 100000 /* 0x0186A0 */;
_root.tripleaxeupgrade = 200000 /* 0x030D40 */;
_root.tripleAxe = false;
_root.treelimit = random(100) + 300;
_root.fire = false;
_root.level = 1;
_root.grass = random(11) + 7;
_root.forest = random(12) + 15;
_root.desert = random(6) + 1;
_root.damage = 0;
_root.damageMax = 100;
_root.fuel = 250;
_root.axedamage = 3;
_root.archerKills = 0;
_root.chainsawKills = 0;
_root.houseKills = 0;
_root.truckKills = 0;
_root.numCars = 0;
_root.spruce = 0;
_root.palm = 0;
_root.maple = 0;
_root.oak = 0;
_root.birch = 0;
_root.locate = 1;
_root.new_location_x = 0;
_root.new_location_y = 0;
_root.treetype = "";
_root.quantity = 0;
_root.completed = false;
removeMovieClip(this);
}
Symbol 268 Button
on (release) {
if (((_x == 467) & (_y == 407)) & (_root.locate != 1)) {
_root.attachMovie("truck_move", "truck_move", 16550, {_x:11, _y:145});
_root.locate = 1;
_root.level = _root.level + _parent.dist;
removeMovieClip(this);
}
if (((_x == 381) & (_y == 218)) & (_root.locate != 2)) {
if (((_root.singleAxe == true) | (_root.doubleAxe == true)) | (_root.tripleAxe == true)) {
_root.attachMovie("truck_move", "truck_move", 16550, {_x:11, _y:145});
_root.locate = 2;
_root.level = _root.level + _parent.dist;
removeMovieClip(this);
} else {
removeMovieClip(this);
_root.attachMovie("axeRequirement", "axeRequirement", 16551, {_x:381, _y:218});
}
}
if (((_x == 112) & (_y == 316)) & (_root.locate != 3)) {
_root.attachMovie("truck_move", "truck_move", 16550, {_x:11, _y:145});
_root.locate = 3;
_root.level = _root.level + _parent.dist;
removeMovieClip(this);
}
if (((_x == 0) & (_y == 424)) & (_root.locate != 4)) {
_root.attachMovie("truck_move", "truck_move", 16550, {_x:11, _y:145});
_root.locate = 4;
_root.level = _root.level + _parent.dist;
removeMovieClip(this);
}
if (((_x == 90) & (_y == 30)) & (_root.locate != 5)) {
if (_root.handlelevel >= 3) {
_root.attachMovie("truck_move", "truck_move", 16550, {_x:11, _y:145});
_root.locate = 5;
_root.level = _root.level + _parent.dist;
removeMovieClip(this);
} else {
removeMovieClip(this);
_root.attachMovie("handleRequirement", "handleRequirement", 16552, {_x:90, _y:30});
}
}
}
Symbol 271 Button
on (release) {
removeMovieClip(this);
}
Symbol 277 Button
on (release) {
_root.shop.gotoAndStop(2);
}
Symbol 281 Button
on (release) {
function addArcher(numArchers) {
while (archerCount < numArchers) {
_root.attachMovie("archer", "archer" + archerCount, 1500 + archerCount, {_x:random(598), _y:random(449) + 35});
archerCount++;
}
}
function addChainsaw(numChainsaw) {
while (chainsawCount < numChainsaw) {
_root.attachMovie("chainsaw", "chainsaw" + chainsawCount, 1850 + chainsawCount, {_x:random(598), _y:random(449) + 35});
chainsawCount++;
}
}
function addHouse(numHouse) {
while (houseCount < numHouse) {
_root.land.attachMovie("house", "house" + houseCount, 600 + houseCount, {_x:random(560) + 40, _y:random(450) + 40});
houseCount++;
}
}
function addFlames(numFlames) {
while (flameCount < numFlames) {
_root.attachMovie("flame", "flame" + flameCount, 5600 + flameCount, {_x:random(598), _y:random(449) + 35});
flameCount++;
}
}
function addTrucks(numTrucks) {
while (truckCount < numTrucks) {
_root.attachMovie("bad_truck", "bad_truck" + truckCount, 5780 + truckCount, {_x:random(598), _y:random(449) + 35});
truckCount++;
}
}
function addBoss(numBoss) {
while (bossCount < numBoss) {
_root.attachMovie("bad_boss", "bad_boss" + bossCount, 5998 + bossCount, {_x:random(598), _y:random(449) + 35});
bossCount++;
}
}
count = 1;
archerCount = 0;
chainsawCount = 0;
houseCount = 0;
flameCount = 0;
truckCount = 0;
bossCount = 0;
if (_root.locate == 1) {
_root.treelimit = random(101) + 300;
}
if (_root.locate == 2) {
_root.treelimit = random(101) + 350;
}
if (_root.locate == 3) {
_root.treelimit = random(51) + 150;
}
if (_root.locate == 4) {
_root.treelimit = random(51) + 100;
}
if (_root.locate == 5) {
_root.treelimit = random(101) + 250;
}
while (count < _root.treelimit) {
if (_root.locate == 1) {
_root.tree_container.attachMovie("treeoak", "treeoak" + count, 800 + count, {_x:random(598), _y:random(449) + 35});
_root.tree_container["treeoak" + count]._xscale = random(26) + 125;
_root.tree_container["treeoak" + count]._yscale = random(31) + 100;
count++;
}
if (_root.locate == 2) {
_root.tree_container.attachMovie("treemaple", "treemaple" + count, 800 + count, {_x:random(598), _y:random(449) + 35});
_root.tree_container["treemaple" + count]._xscale = random(26) + 125;
_root.tree_container["treemaple" + count]._yscale = random(31) + 100;
count++;
}
if (_root.locate == 3) {
_root.tree_container.attachMovie("treebirch", "treebirch" + count, 800 + count, {_x:random(598), _y:random(449) + 35});
_root.tree_container["treebirch" + count]._xscale = random(26) + 125;
_root.tree_container["treebirch" + count]._yscale = random(31) + 100;
count++;
}
if (_root.locate == 4) {
_root.tree_container.attachMovie("treepalm", "treepalm" + count, 800 + count, {_x:random(598), _y:random(449) + 35});
_root.tree_container["treepalm" + count]._xscale = random(26) + 125;
_root.tree_container["treepalm" + count]._yscale = random(31) + 100;
count++;
}
if (_root.locate == 5) {
_root.tree_container.attachMovie("treespruce", "treespruce" + count, 800 + count, {_x:random(598), _y:random(449) + 35});
_root.tree_container["treespruce" + count]._xscale = random(26) + 125;
_root.tree_container["treespruce" + count]._yscale = random(31) + 100;
count++;
}
}
_root.remainder = _root.money;
_root.trees = 0;
_root.levelmoney = 0;
_root.grass = random(11) + 7;
_root.forest = random(12) + 15;
_root.desert = random(6) + 1;
_root.chase._x = random(598);
_root.chase._y = random(449) + 35;
if (_root.locate == 1) {
_root.backgrounds.gotoAndStop("grass");
_root.water.gotoAndStop(_root.grass);
addHouse(random(3));
if (_root.difficulty == "Hard") {
addChainsaw(random(3));
}
if (_root.level > 20) {
addChainsaw(random(3));
}
}
if (_root.locate == 2) {
_root.backgrounds.gotoAndStop("forest");
_root.water.gotoAndStop(_root.forest);
addArcher(random(3) + 1);
if (_root.difficulty == "Hard") {
addArcher(random(3));
addChainsaw(random(3));
}
if (_root.level > 40) {
addArcher(random(3));
}
}
if (_root.locate == 3) {
_root.backgrounds.gotoAndStop("plains");
if (_root.level == 45) {
addTrucks(10);
}
_root.water.gotoAndStop(1);
addHouse(random(2));
}
if (_root.locate == 4) {
_root.backgrounds.gotoAndStop("desert");
addFlames(random(2));
_root.water.gotoAndStop(_root.desert);
if (_root.level > 35) {
addFlames(random(2));
}
}
if (_root.locate == 5) {
_root.backgrounds.gotoAndStop("tundra");
_root.water.gotoAndStop(1);
addArcher(random(2) + 1);
addHouse(random(3));
if (_root.difficulty == "Hard") {
addArcher(random(3));
addChainsaw(random(4));
}
if (_root.level > 40) {
addChainsaw(random(5));
}
}
if (_root.level == 50) {
addTrucks(1);
}
if ((_root.level >= 100) & (_root.completed == false)) {
addBoss(1);
boss = true;
_root.attachMovie("bosspeech", "bosspeech", 32340, {_x:235, _y:218});
}
if (_root.level == (random(150) + 1)) {
addTrucks(1);
}
stopAllSounds();
musicrand = random(2) + 1;
if (musicrand == 1) {
_root.shop._visible = false;
_root.chase.blah14.setVolume(60);
_root.chase.blah14.start(0, 2);
} else {
_root.secondsong = new Sound();
_root.secondsong.attachSound("secondsong");
_root.secondsong.start(0, 2);
}
if (boss == true) {
stopAllSounds();
_root.bass = new Sound();
_root.bass.attachSound("bossmusic");
_root.bass.start(0, 4);
_root.hud.funkytimer.timerS = _root.hud.funkytimer.timerS + 0;
} else {
_root.hud.funkytimer.timerS = _root.hud.funkytimer.timerS + 30000;
}
_root.shop._visible = false;
}
Symbol 285 Button
on (release) {
_root.shop.gotoAndStop(3);
}
Symbol 289 Button
on (release) {
_root.shop.gotoAndStop(5);
}
Symbol 293 Button
on (release) {
_root.savegame = SharedObject.getLocal("treetrucker");
_root.savegame.data.DIFF = _root.difficulty;
_root.savegame.data.TREE = _root.trees;
_root.savegame.data.PERM = _root.permtrees;
_root.savegame.data.ACCL = _root.accel;
_root.savegame.data.DCCL = _root.decel;
_root.savegame.data.AXEU = _root.axeupgrade;
_root.savegame.data.AXEL = _root.axelevel;
_root.savegame.data.AXSU = _root.axespeedupgrade;
_root.savegame.data.AXSL = _root.axespeedlevel;
_root.savegame.data.TRKU = _root.truckupgrade;
_root.savegame.data.TRKL = _root.trucklevel;
_root.savegame.data.EGNU = _root.engineupgrade;
_root.savegame.data.EGNL = _root.enginelevel;
_root.savegame.data.HNDU = _root.handleupgrade;
_root.savegame.data.HNDL = _root.handlelevel;
_root.savegame.data.EXSU = _root.exhaustupgrade;
_root.savegame.data.EXSL = _root.exhaustlevel;
_root.savegame.data.MONY = _root.money;
_root.savegame.data.AXSP = _root.bspeed;
_root.savegame.data.SGLA = _root.singleAxe;
_root.savegame.data.SGLU = _root.singleAxeupgrade;
_root.savegame.data.DBLA = _root.doubleAxe;
_root.savegame.data.DBLU = _root.doubleaxeupgrade;
_root.savegame.data.TPLU = _root.tripleaxeupgrade;
_root.savegame.data.TPLA = _root.tripleAxe;
_root.savegame.data.LEVL = _root.level;
_root.savegame.data.DAMG = _root.damage;
_root.savegame.data.DMGM = _root.damageMax;
_root.savegame.data.FEUL = _root.fuel;
_root.savegame.data.AXSD = _root.axedamage;
_root.savegame.data.ARCK = _root.archerKills;
_root.savegame.data.CHNK = _root.chainsawKills;
_root.savegame.data.HOSK = _root.houseKills;
_root.savegame.data.TRKK = _root.truckKills;
_root.savegame.data.SPRU = _root.spruce;
_root.savegame.data.PALM = _root.palm;
_root.savegame.data.MAPL = _root.maple;
_root.savegame.data.OAKT = _root.oak;
_root.savegame.data.BIRC = _root.birch;
_root.savegame.data.LCAT = _root.locate;
_root.savegame.data.TRKS = _root.chase.speed;
_root.savegame.data.TRKR = _root.chase.rspeed;
_root.savegame.data.TKSL = _root.chase.speedlimit;
_root.savegame.data.DAMW = _root.hud.damage._width;
_root.savegame.data.FEUW = _root.hud.fuel._width;
_root.savegame.data.TRKX = _root.chase._xscale;
_root.savegame.data.TKSY = _root.chase._yscale;
_root.savegame.data.COMP = _root.completed;
_root.savegame.data.UNLK = _root.unlock;
saved.gotoAndPlay(2);
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 298 Button
on (release) {
stopAllSounds();
_visible = false;
_root.chase._visible = true;
_root.gotoAndStop("start");
}
Symbol 330 MovieClip [truck_move] Frame 97
removeMovieClip(this);
Symbol 361 MovieClip [explosion] Frame 16
removeMovieClip(this);
Symbol 365 MovieClip [handleRequirement] Frame 55
removeMovieClip(this);
Symbol 368 MovieClip [axeRequirement] Frame 55
removeMovieClip(this);
Symbol 372 MovieClip [bossdie] Frame 1
stopAllSounds();
Symbol 372 MovieClip [bossdie] Frame 95
_root.gotoAndPlay("end");
removeMovieClip(this);
Symbol 376 MovieClip [bosspeech] Frame 240
removeMovieClip(this);
Instance of Symbol 27 MovieClip in Symbol 378 MovieClip [healthup] Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.chase)) {
_root.hud.damage._width = _root.hud.damage._width + 50;
removeMovieClip(_parent);
}
if ((_root._currentframe == 4) | (_root._currentframe == 5)) {
removeMovieClip(_parent);
}
}
Symbol 409 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 416 MovieClip Frame 81
_root.play();
_root.play();
Symbol 420 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 424 Button
on (release) {
if (_root.SinglePlayerMenu._visible == true) {
removeMovieClip(_root.SinglePlayerMenu);
} else {
_root.attachMovie("SinglePlayerMenu", "SinglePlayerMenu", 90, {_x:_x + 150, _y:_y});
}
}
Symbol 427 Button
on (release) {
_root.savegame = SharedObject.getLocal("treetrucker");
_root.difficulty = _root.savegame.data.DIFF;
_root.trees = _root.savegame.data.TREE;
_root.permtrees = _root.savegame.data.PERM;
_root.accel = _root.savegame.data.ACCL;
_root.decel = _root.savegame.data.DCCL;
_root.axeupgrade = _root.savegame.data.AXEU;
_root.axelevel = _root.savegame.data.AXEL;
_root.axespeedupgrade = _root.savegame.data.AXSU;
_root.axespeedlevel = _root.savegame.data.AXSL;
_root.truckupgrade = _root.savegame.data.TRKU;
_root.trucklevel = _root.savegame.data.TRKL;
_root.engineupgrade = _root.savegame.data.EGNU;
_root.enginelevel = _root.savegame.data.EGNL;
_root.handleupgrade = _root.savegame.data.HNDU;
_root.handlelevel = _root.savegame.data.HNDL;
_root.exhaustupgrade = _root.savegame.data.EXSU;
_root.exhaustlevel = _root.savegame.data.EXSL;
_root.money = _root.savegame.data.MONY;
_root.bspeed = _root.savegame.data.AXSP;
_root.singleAxe = _root.savegame.data.SGLA;
_root.singleAxeupgrade = _root.savegame.data.SGLU;
_root.doubleAxe = _root.savegame.data.DBLA;
_root.doubleaxeupgrade = _root.savegame.data.DBLU;
_root.tripleaxeupgrade = _root.savegame.data.TPLU;
_root.tripleAxe = _root.savegame.data.TPLA;
_root.level = _root.savegame.data.LEVL;
_root.damage = _root.savegame.data.DAMG;
_root.damageMax = _root.savegame.data.DMGM;
_root.fuel = _root.savegame.data.FEUL;
_root.axedamage = _root.savegame.data.AXSD;
_root.archerKills = _root.savegame.data.ARCK;
_root.chainsawKills = _root.savegame.data.CHNK;
_root.houseKills = _root.savegame.data.HOSK;
_root.truckKills = _root.savegame.data.TRKK;
_root.spruce = _root.savegame.data.SPRU;
_root.palm = _root.savegame.data.PALM;
_root.maple = _root.savegame.data.MAPL;
_root.oak = _root.savegame.data.OAKT;
_root.birch = _root.savegame.data.BIRC;
_root.locate = _root.savegame.data.LCAT;
_root.chase.speed = _root.savegame.data.TRKS;
_root.chase.rspeed = _root.savegame.data.TRKR;
_root.chase.speedlimit = _root.savegame.data.TKSL;
_root.chase._xscale = _root.savegame.data.TRKX;
_root.chase._yscale = _root.savegame.data.TKSY;
_root.hud.damage._width = _root.savegame.data.DAMW;
_root.hud.fuel._width = _root.savegame.data.FEUW;
_root.completed = _root.savegame.data.COMP;
_root.fire = false;
_root.new_location_x = 0;
_root.new_location_y = 0;
_root.treetype = "";
_root.quantity = 0;
_root.bc = 1;
if (_root.savegame.data.DIFF == undefined) {
_root.gotoAndStop("start");
} else {
removeMovieClip(_root.SinglePlayerMenu);
_root.gotoAndStop("game");
}
}
Symbol 430 Button
on (release) {
_root.instructions._visible = true;
}
Symbol 433 MovieClip Frame 16
stop();
Symbol 437 Button
on (release) {
_root.difficulty = "Easy";
_root.axedamage = 10;
_root.fire = false;
_root.bc = 1;
_root.trucklevel = 1;
_root.survivalLevel = 0;
_root.survivalTrucksKilled = 0;
_root.survivalArchersKilled = 0;
_root.survivalChainsawKilled = 0;
_root.surr = new Sound();
_root.surr.attachSound("survivalmusic");
_root.surr.setVolume(50);
_root.surr.start(0, 90);
gotoAndStop ("survival");
}
Symbol 442 Button
on (release) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
Symbol 445 Button
on (release) {
_visible = false;
}
Symbol 452 MovieClip Frame 1
_root.decel = 0.98;
stop();
Symbol 452 MovieClip Frame 2
_root.decel = 0.95;
stop();
Symbol 452 MovieClip Frame 3
_root.decel = 0.96;
stop();
Symbol 452 MovieClip Frame 4
_root.decel = 0.945;
stop();
Symbol 452 MovieClip Frame 5
_root.decel = 0.92;
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 3
stop();
Symbol 486 MovieClip Frame 4
stop();
Symbol 486 MovieClip Frame 5
stop();
stop();
Symbol 486 MovieClip Frame 6
stop();
stop();
Symbol 486 MovieClip Frame 7
stop();
stop();
Symbol 486 MovieClip Frame 8
stop();
stop();
Symbol 486 MovieClip Frame 9
stop();
stop();
Symbol 486 MovieClip Frame 10
stop();
stop();
Symbol 486 MovieClip Frame 11
stop();
stop();
Symbol 486 MovieClip Frame 12
stop();
Symbol 486 MovieClip Frame 13
stop();
Symbol 486 MovieClip Frame 14
stop();
Symbol 486 MovieClip Frame 15
stop();
Symbol 486 MovieClip Frame 16
stop();
Symbol 486 MovieClip Frame 17
stop();
Symbol 486 MovieClip Frame 18
stop();
Symbol 486 MovieClip Frame 19
stop();
Symbol 486 MovieClip Frame 20
stop();
Symbol 486 MovieClip Frame 21
stop();
Symbol 486 MovieClip Frame 22
stop();
Symbol 486 MovieClip Frame 23
stop();
Symbol 486 MovieClip Frame 24
stop();
stop();
Symbol 486 MovieClip Frame 25
stop();
Symbol 486 MovieClip Frame 26
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 85
stopAllSounds();
_root.shop.gotoAndStop(1);
_root.chase.axeCounter = 0;
_root.level = _root.level + 1;
_root.shop._visible = true;
_root.timeup.gotoAndStop(1);
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 498 Button
on (release) {
stopAllSounds();
_visible = false;
_root.chasedead._name = "chase";
_root.chase._visible = true;
_root.gotoAndStop("start");
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
stop();
Instance of Symbol 383 MovieClip [funkytimer] "funkytimer" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
var timerS = (getTimer() + 0);
}
onClipEvent (enterFrame) {
timer = Math.floor((timerS - getTimer()) / 1000);
while (timer < 0) {
timerS = timerS + 1000;
timer = timer + 1;
}
if (timer != 0) {
_root.shop._visible = false;
}
}
Instance of Symbol 504 MovieClip "damage" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
if (_root.savegame.data.DAMW == undefined) {
_width = 250;
}
}
Instance of Symbol 506 MovieClip "fuel" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
if (_root.savegame.data.FEUW == undefined) {
_width = 250;
} else {
_width = _root.savegame.data.FEUW;
}
}
Instance of Symbol 511 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.damage._width < 60) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 516 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.fuel._width < 60) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 554 MovieClip Frame 1
error = new Sound();
error.attachSound("engine3");
error.start();
Symbol 554 MovieClip Frame 15
stop();
Symbol 560 Button
on (release) {
_root.repaircost = Math.abs(_root.damage) * 5;
if ((_root.money >= _root.repaircost) & (!(_root.hud.damage._width === 250))) {
_root.damage = 0;
_root.hud.damage._width = _root.damageMax;
_root.money = _root.money - _root.repaircost;
_root.shop.truckshop.cost = _root.repaircost;
_root.chase.blah13.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Repairs Truck To Full Health";
_root.shop.truckshop.cost = Math.abs(_root.damage) * 5;
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 566 Button
on (release) {
_root.shop.gotoAndStop(4);
}
Symbol 571 Button
on (release) {
if (_root.money >= _root.engineupgrade) {
_root.accel = _root.accel + 0.01;
_root.speedlimit = _root.speedlimit + 0.4;
_root.money = _root.money - _root.engineupgrade;
_root.engineupgrade = Math.floor(_root.engineupgrade * 1.75);
_root.enginelevel = _root.enginelevel + 1;
_root.shop.truckshop.cost = _root.engineupgrade;
_root.shop.truckshop.level = _root.enginelevel;
_root.chase.blah6.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Engine - Improves top speed and some acceleration.";
_root.shop.truckshop.cost = _root.engineupgrade;
_root.shop.truckshop.level = _root.enginelevel;
}
on (rollOut) {
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
_root.shop.truckshop.info = "";
}
Symbol 580 Button
on (release) {
if (_root.money >= _root.exhaustupgrade) {
_root.accel = _root.accel + 0.02;
_root.speedlimit = _root.speedlimit + 0.2;
_root.money = _root.money - _root.exhaustupgrade;
_root.exhaustupgrade = Math.floor(_root.exhaustupgrade * 1.75);
_root.exhaustlevel = _root.exhaustlevel + 1;
_root.shop.truckshop.cost = _root.exhaustupgrade;
_root.shop.truckshop.level = _root.exhaustlevel;
_root.chase.blah6.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Exhaust - Improves acceleration.";
_root.shop.truckshop.cost = _root.exhaustupgrade;
_root.shop.truckshop.level = _root.exhaustlevel;
}
on (rollOut) {
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
_root.shop.truckshop.info = "";
}
Symbol 583 Button
on (release) {
if (_root.money >= _root.handleupgrade) {
_root.chase.rspeed = _root.chase.rspeed + 0.75;
_root.money = _root.money - _root.handleupgrade;
_root.handleupgrade = Math.floor(_root.handleupgrade * 1.75);
_root.handlelevel = _root.handlelevel + 1;
_root.shop.truckshop.cost = _root.handleupgrade;
_root.shop.truckshop.level = _root.handlelevel;
_root.chase.blah7.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Handling - Upgrades your turning ability.";
_root.shop.truckshop.cost = _root.handleupgrade;
_root.shop.truckshop.level = _root.handlelevel;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 587 Button
on (release) {
if ((_root.money >= Math.floor(250 - Math.abs(_root.fuel))) & (!(_root.hud.fuel._width === 250))) {
_root.hud.fuel._width = 250;
_root.fuel = 250;
_root.money = _root.money - _root.shop.truckshop.cost;
_root.chase.blah10.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Refills Your Gas Tank To Full";
_root.shop.truckshop.cost = Math.floor(250 - Math.abs(_root.fuel));
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 589 Button
on (release) {
if (paint_interface._visible == true) {
removeMovieClip(paint_interface);
} else {
attachMovie("paint_interface", "paint_interface", 16000, {_x:400, _y:325});
}
}
Symbol 593 Button
on (release) {
_root.repaircost = Math.abs(_root.damage) * 4;
if ((_root.money >= _root.repaircost) & (!(_root.hud.damage._width === 250))) {
_root.damage = 0;
_root.hud.damage._width = _root.damageMax;
_root.money = _root.money - _root.repaircost;
_root.shop.truckshop.cost = _root.repaircost;
_root.chase.blah5.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Repairs Truck To Full Health";
_root.shop.truckshop.cost = Math.abs(_root.damage) * 4;
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 598 Button
on (release) {
if (_root.money >= _root.truckupgrade) {
_root.chase._xscale = Math.floor(_root.chase._xscale) * 1.1;
_root.chase._yscale = Math.floor(_root.chase._yscale) * 1.1;
_root.money = _root.money - _root.truckupgrade;
_root.truckupgrade = Math.floor(_root.truckupgrade * 1.75);
_root.trucklevel = _root.trucklevel + 1;
_root.shop.truckshop.cost = _root.truckupgrade;
_root.shop.truckshop.level = _root.trucklevel;
_root.chase.blah5.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Frame - Enlarges your truck's size.";
_root.shop.truckshop.cost = _root.truckupgrade;
_root.shop.truckshop.level = _root.trucklevel;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 603 Button
on (release) {
if (_root.money >= _root.exhaustupgrade) {
_root.accel = _root.accel + 0.02;
_root.speedlimit = _root.speedlimit + 0.2;
_root.money = _root.money - _root.exhaustupgrade;
_root.exhaustupgrade = Math.floor(_root.exhaustupgrade * 1.75);
_root.exhaustlevel = _root.exhaustlevel + 1;
_root.shop.truckshop.cost = _root.exhaustupgrade;
_root.shop.truckshop.level = _root.exhaustlevel;
_root.chase.blah6.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Exhaust - Improves acceleration.";
_root.shop.truckshop.cost = _root.exhaustupgrade;
_root.shop.truckshop.level = _root.exhaustlevel;
}
on (rollOut) {
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
_root.shop.truckshop.info = "";
}
Symbol 604 Button
on (release) {
if ((_root.money >= Math.floor(250 - Math.abs(_root.fuel))) & (!(_root.hud.fuel._width === 250))) {
_root.hud.fuel._width = 250;
_root.fuel = 250;
_root.money = _root.money - Math.floor(250 - Math.abs(_root.fuel));
_root.shop.truckshop.cost = Math.floor(250 - Math.abs(_root.fuel));
_root.chase.blah10.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Refills Your Gas Tank To Full";
_root.shop.truckshop.cost = Math.floor(250 - Math.abs(_root.fuel));
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 605 Button
on (release) {
_root.repaircost = Math.abs(_root.damage) * 6;
if ((_root.money >= _root.repaircost) & (!(_root.hud.damage._width === 250))) {
_root.damage = 0;
_root.hud.damage._width = _root.damageMax;
_root.money = _root.money - _root.repaircost;
_root.shop.truckshop.cost = _root.repaircost;
_root.chase.blah5.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Repairs Truck To Full Health";
_root.shop.truckshop.cost = Math.abs(_root.damage) * 6;
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 611 Button
on (release) {
if (_root.money >= _root.handleupgrade) {
_root.chase.rspeed = _root.chase.rspeed + 1;
_root.money = _root.money - _root.handleupgrade;
_root.handleupgrade = Math.floor(_root.handleupgrade * 1.79);
_root.handlelevel = _root.handlelevel + 1;
_root.shop.truckshop.cost = _root.handleupgrade;
_root.shop.truckshop.level = _root.handlelevel;
_root.chase.blah7.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Handling - Upgrades your turning ability.";
_root.shop.truckshop.cost = _root.handleupgrade;
_root.shop.truckshop.level = _root.handlelevel;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 612 Button
on (release) {
_root.repaircost = Math.abs(_root.damage) * 2;
if ((_root.money >= _root.repaircost) & (!(_root.hud.damage._width === 250))) {
_root.damage = 0;
_root.hud.damage._width = _root.damageMax;
_root.money = _root.money - _root.repaircost;
_root.shop.truckshop.cost = _root.repaircost;
_root.chase.blah5.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Repairs Truck To Full Health";
_root.shop.truckshop.cost = Math.abs(_root.damage) * 2;
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 618 Button
on (release) {
_root.repaircost = Math.abs(_root.damage) * 5;
if ((_root.money >= _root.repaircost) & (!(_root.hud.damage._width === 250))) {
_root.damage = 0;
_root.hud.damage._width = _root.damageMax;
_root.money = _root.money - _root.repaircost;
_root.shop.truckshop.cost = _root.repaircost;
_root.chase.blah5.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Repairs Truck To Full Health";
_root.shop.truckshop.cost = Math.abs(_root.damage) * 5;
_root.shop.truckshop.level = 0;
}
on (rollOut) {
_root.shop.truckshop.info = "";
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
}
Symbol 620 Button
on (release) {
if (_root.money >= _root.engineupgrade) {
_root.accel = _root.accel + 0.01;
_root.speedlimit = _root.speedlimit + 0.25;
_root.money = _root.money - _root.engineupgrade;
_root.engineupgrade = Math.floor(_root.engineupgrade * 1.75);
_root.enginelevel = _root.enginelevel + 1;
_root.shop.truckshop.cost = _root.engineupgrade;
_root.shop.truckshop.level = _root.enginelevel;
_root.chase.blah6.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.truckshop.info = "Engine - Improves top speed and some acceleration.";
_root.shop.truckshop.cost = _root.engineupgrade;
_root.shop.truckshop.level = _root.enginelevel;
}
on (rollOut) {
_root.shop.truckshop.cost = 0;
_root.shop.truckshop.level = 0;
_root.shop.truckshop.info = "";
}
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 3
stop();
Symbol 625 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 5
stop();
Symbol 636 Button
on (release) {
if (_root.money >= _root.axeupgrade) {
if (_root.doubleAxe) {
_root.axedamage = _root.axedamage + 2;
} else if (_root.tripleAxe) {
_root.axedamage = _root.axedamage + 3;
} else {
_root.axedamage++;
}
_root.money = _root.money - _root.axeupgrade;
_root.axeupgrade = Math.floor(_root.axeupgrade * 1.75);
_root.axelevel++;
_root.shop.axeshop.cost = _root.axeupgrade;
_root.shop.axeshop.level = _root.axelevel;
_root.chase.blah.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Sharpen - Increase damage of sharp projectiles.";
_root.shop.axeshop.cost = _root.axeupgrade;
_root.shop.axeshop.level = _root.axelevel;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 640 Button
on (release) {
if (_root.money >= _root.doubleaxeupgrade) {
if (!_root.doubleAxe) {
_root.axeDamage = _root.axeDamage * 2;
_root.doubleAxe = true;
_root.money = _root.money - _root.doubleaxeupgrade;
_root.shop.axeshop.cost = _root.doubleaxeupgrade;
_root.shop.axeshop.level = 0;
_root.chase.blah.start();
}
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Double Axes - Shoot two axes at a time. Chops trees easy! Great weapon for defence.";
_root.shop.axeshop.cost = _root.doubleaxeupgrade;
_root.shop.axeshop.level = 0;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 644 Button
on (release) {
if (_root.money >= _root.axespeedupgrade) {
_root.bspeed++;
_root.money = _root.money - _root.axespeedupgrade;
_root.axespeedupgrade = Math.floor(_root.axespeedupgrade * 1.752);
_root.axespeedlevel++;
_root.shop.axeshop.cost = _root.axespeedupgrade;
_root.shop.axeshop.level = _root.axespeedlevel;
_root.chase.blah.start();
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Speed - Increase speed of sharp projectiles.";
_root.shop.axeshop.cost = _root.axespeedupgrade;
_root.shop.axeshop.level = _root.axespeedlevel;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 646 Button
on (release) {
if (_root.money >= _root.singleAxeupgrade) {
if (!_root.singleAxe) {
_root.singleAxe = true;
_root.money = _root.money - _root.singleAxeupgrade;
_root.shop.axeshop.cost = _root.singleAxeupgrade;
_root.shop.axeshop.level = 0;
_root.chase.blah.start();
}
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Single Axe - Shoot one axe at a time. Great for chopping trees!";
_root.shop.axeshop.cost = _root.singleAxeupgrade;
_root.shop.axeshop.level = 0;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 665 Button
on (release) {
if (_root.money >= _root.tripleaxeupgrade) {
if (_root.doubleAxe) {
_root.doubleAxe = false;
}
if (!_root.tripleAxe) {
_root.axeDamage = _root.axeDamage * 3;
_root.tripleAxe = true;
_root.money = _root.money - _root.tripleaxeupgrade;
_root.shop.axeshop.cost = _root.tripleaxeupgrade;
_root.shop.axeshop.level = 0;
_root.chase.blah.start();
}
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Triple Axes - Shoot three axes at a time. Chops trees like buttah!";
_root.shop.axeshop.cost = _root.tripleaxeupgrade;
_root.shop.axeshop.level = 0;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 671 Button
on (release) {
if (_root.money >= _root.tripleaxeupgrade) {
if (_root.doubleAxe) {
_root.doubleAxe = false;
}
if (!_root.tripleAxe) {
_root.axeDamage = _root.axeDamage * 3;
_root.tripleAxe = true;
_root.money = _root.money - _root.tripleaxeupgrade;
_root.shop.axeshop.cost = _root.tripleaxeupgrade;
_root.shop.axeshop.level = 0;
_root.chase.blah.start();
}
} else {
error = new Sound();
error.attachSound("error");
error.start();
}
}
on (rollOver) {
_root.shop.axeshop.info = "Triple Axes - Shoot three axes at a time. Chops trees like buttah! Seriously!";
_root.shop.axeshop.cost = _root.tripleaxeupgrade;
_root.shop.axeshop.level = 0;
}
on (rollOut) {
_root.shop.axeshop.cost = 0;
_root.shop.axeshop.level = 0;
_root.shop.axeshop.info = "";
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
stop();
Symbol 673 MovieClip Frame 3
stop();
Symbol 673 MovieClip Frame 4
stop();
Symbol 673 MovieClip Frame 5
stop();
Symbol 679 Button
on (release) {
_root.new_location_x = 487;
_root.new_location_y = 382;
if (move_confirm._visible == true) {
removeMovieClip(move_confirm);
} else {
attachMovie("move_confirm", "move_confirm", 16500, {_x:467, _y:407});
}
}
Symbol 680 Button
on (release) {
_root.new_location_x = 401;
_root.new_location_y = 170;
if (move_confirm._visible == true) {
removeMovieClip(move_confirm);
} else {
attachMovie("move_confirm", "move_confirm", 16500, {_x:381, _y:218});
}
}
Symbol 681 Button
on (release) {
_root.new_location_x = 132;
_root.new_location_y = 291;
if (move_confirm._visible == true) {
removeMovieClip(move_confirm);
} else {
attachMovie("move_confirm", "move_confirm", 16500, {_x:112, _y:316});
}
}
Symbol 682 Button
on (release) {
_root.new_location_x = 18;
_root.new_location_y = 399;
if (move_confirm._visible == true) {
removeMovieClip(move_confirm);
} else {
attachMovie("move_confirm", "move_confirm", 16500, {_x:0, _y:424});
}
}
Symbol 683 Button
on (release) {
_root.new_location_x = 110;
_root.new_location_y = 5;
if (move_confirm._visible == true) {
removeMovieClip(move_confirm);
} else {
attachMovie("move_confirm", "move_confirm", 16500, {_x:90, _y:30});
}
}
Symbol 689 Button
on (release) {
if (map_selection._visible == true) {
removeMovieClip(map_selection);
} else {
attachMovie("map_selection", "map_selection", 16600, {_x:350, _y:50});
}
}
Instance of Symbol 27 MovieClip "distanceCounter" in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.locate == 1) {
_parent.area = "South Coast";
_root.treetype = "Oak";
_parent.truck_map._x = 487;
_parent.truck_map._y = 382;
current_location_x = 487;
current_location_y = 382;
}
if (_root.locate == 2) {
_parent.area = "Forest";
_root.treetype = "Maple";
_parent.truck_map._x = 401;
_parent.truck_map._y = 145;
current_location_x = 401;
current_location_y = 145;
}
if (_root.locate == 3) {
_parent.area = "Plains";
_root.treetype = "Birch";
_parent.truck_map._x = 132;
_parent.truck_map._y = 291;
current_location_x = 132;
current_location_y = 291;
}
if (_root.locate == 4) {
_parent.area = "Desert";
_root.treetype = "Palm";
_parent.truck_map._x = 18;
_parent.truck_map._y = 399;
current_location_x = 18;
current_location_y = 399;
}
if (_root.locate == 5) {
_parent.area = "Tundra";
_root.treetype = "Spruce";
_parent.truck_map._x = 105;
_parent.truck_map._y = 20;
current_location_x = 105;
current_location_y = 20;
}
xDist = current_location_x - _root.new_location_x;
yDist = current_location_y - _root.new_location_y;
_parent.dist = Math.floor(Math.sqrt((Math.abs(xDist) * Math.abs(xDist)) + (Math.abs(yDist) * Math.abs(yDist))) / 50);
}
Symbol 720 Button
on (release) {
select = "Oak";
}
Symbol 723 Button
on (release) {
select = "Maple";
}
Symbol 726 Button
on (release) {
select = "Palm";
}
Symbol 729 Button
on (release) {
select = "Birch";
}
Symbol 732 Button
on (release) {
select = "Spruce";
}
Symbol 736 Button
on (release) {
money = new Sound();
money.attachSound("money");
num = parseInt(quantity);
n = select;
price = n + "price";
if ((n == "Oak") & (num > 0)) {
if (num > _root.oak) {
_root.money = _root.money + (_root.oak * oakprice);
_root.oak = _root.oak - _root.oak;
money.start();
} else {
_root.money = _root.money + (num * _root.oak);
_root.oak = _root.oak - num;
money.start();
}
}
if ((n == "Maple") & (num > 0)) {
if (num > _root.maple) {
_root.money = _root.money + (_root.maple * mapleprice);
_root.maple = _root.maple - _root.maple;
money.start();
} else {
_root.money = _root.money + (num * _root.maple);
_root.maple = _root.maple - num;
money.start();
}
}
if ((n == "Palm") & (num > 0)) {
if (num > _root.palm) {
_root.money = _root.money + (_root.palm * palmprice);
_root.palm = _root.palm - _root.palm;
money.start();
} else {
_root.money = _root.money + (num * _root.palm);
_root.palm = _root.palm - num;
money.start();
}
}
if ((n == "Birch") & (num > 0)) {
if (num > _root.birch) {
_root.money = _root.money + (_root.birch * birchprice);
_root.birch = _root.birch - _root.birch;
money.start();
} else {
_root.money = _root.money + (num * _root.birch);
_root.birch = _root.birch - num;
money.start();
}
}
if ((n == "Spruce") & (num > 0)) {
if (num > _root.spruce) {
_root.money = _root.money + (_root.spruce * spruceprice);
_root.spruce = _root.spruce - _root.spruce;
money.start();
} else {
_root.money = _root.money + (num * _root.spruce);
_root.spruce = _root.spruce - num;
money.start();
}
}
num = 0;
}
Symbol 742 MovieClip Frame 1
var someListener = new Object();
someListener.onMouseDown = function () {
if (_currentframe == 1) {
music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 100);
gotoAndStop (4);
updateAfterEvent();
}
};
Mouse.addListener(someListener);
stop();
Symbol 742 MovieClip Frame 2
stop();
Instance of Symbol 625 MovieClip "truckshop" in Symbol 742 MovieClip Frame 2
onClipEvent (load) {
randomizer = random(4) + 1;
if (randomizer == 1) {
speech = "Heyyy... what's happenin?";
}
if (randomizer == 2) {
speech = "Wussup.";
}
if (randomizer == 3) {
speech = "Hey buddy, feel free to look around.";
}
if (randomizer == 4) {
speech = "Welcome to my shop, waddaya want?";
}
if (_root.hud.fuel < 80) {
speech = "Hey buddy, it looks like you're low on fuel, don't forget to fill your tank up!";
}
if (_root.damage > 150) {
speech = "Hey buddy, it looks like you're truck is beat up! Make sure you get that thing repaired!";
}
if (_root.level > 90) {
speech = "Hey dude, a guy came by and asked if I ever saw you... he's bald and looks like a kook, I'd watch out if I were you.";
}
if (_root.locate == 1) {
gotoAndStop (1);
}
if (_root.locate == 2) {
gotoAndStop (2);
}
if (_root.locate == 3) {
gotoAndStop (3);
}
if (_root.locate == 4) {
gotoAndStop (4);
}
if (_root.locate == 5) {
gotoAndStop (5);
}
}
Symbol 742 MovieClip Frame 3
stop();
Instance of Symbol 673 MovieClip "axeshop" in Symbol 742 MovieClip Frame 3
onClipEvent (load) {
randomizer = random(4) + 1;
if (randomizer == 1) {
speech = "Hey, welcome to the axe shop.";
}
if (randomizer == 2) {
speech = "Remember, spacebar is the key to shooting axes!";
}
if (randomizer == 3) {
speech = "Hi! Care to look at our products?";
}
if (randomizer == 4) {
speech = "Welcome, how may I help you?";
}
if (_root.level > 90) {
speech = "Hey! Some wierd guy came by and asked if I ever saw you. I said no, but I'd watch out if I were you.";
}
if (_root.locate == 1) {
gotoAndStop (1);
}
if (_root.locate == 2) {
gotoAndStop (2);
}
if (_root.locate == 3) {
gotoAndStop (3);
}
if (_root.locate == 4) {
gotoAndStop (4);
}
if (_root.locate == 5) {
gotoAndStop (5);
}
}
Symbol 742 MovieClip Frame 4
stop();
Symbol 742 MovieClip Frame 5
stop();
Instance of Symbol 741 MovieClip "woodshop" in Symbol 742 MovieClip Frame 5
onClipEvent (load) {
randomizer = random(4) + 1;
if (randomizer == 1) {
speech = "Why hello there. Welcome to the lumber mill.";
}
if (randomizer == 2) {
speech = "Howdy stranger, what brings you here?";
}
if (randomizer == 3) {
speech = "If you need to sell lumber you came to the right place.";
}
if (randomizer == 4) {
speech = "Make sure you click on the type of lumber you want to sell, m'kay?";
}
if (_root.level > 90) {
speech = "Hey there. Some fellow came by and asked if I know you. He looked angry... what did you do?";
}
if (_root.locate == 1) {
oakprice = 29 + random(6);
mapleprice = 37 + random(6);
palmprice = 41 + random(6);
birchprice = 43 + random(6);
spruceprice = 47 + random(6);
}
if (_root.locate == 2) {
oakprice = 44 + random(5);
mapleprice = 23 + random(5);
palmprice = 48 + random(5);
birchprice = 42 + random(5);
spruceprice = 39 + random(5);
}
if (_root.locate == 3) {
oakprice = 43 + random(5);
mapleprice = 39 + random(5);
palmprice = 40 + random(5);
birchprice = 27 + random(5);
spruceprice = 42 + random(5);
}
if (_root.locate == 4) {
oakprice = 39 + random(5);
mapleprice = 44 + random(5);
palmprice = 30 + random(5);
birchprice = 37 + random(5);
spruceprice = 45 + random(5);
}
if (_root.locate == 5) {
oakprice = 47 + random(5);
mapleprice = 38 + random(5);
palmprice = 46 + random(5);
birchprice = 43 + random(5);
spruceprice = 15 + random(6);
}
}
Instance of Symbol 504 MovieClip "damage" in Symbol 745 MovieClip Frame 1
onClipEvent (load) {
_width = 250;
}
Instance of Symbol 511 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.damage._width < 60) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 758 Button
on (release) {
function addArcher(numArchers) {
while (archerCount < numArchers) {
_root.enemycontainer.attachMovie("archer", "archer" + archerCount, 1670 + archerCount, {_x:random(598), _y:random(449) + 35});
archerCount++;
}
}
function addChainsaw(numChainsaw) {
while (chainsawCount < numChainsaw) {
_root.enemycontainer.attachMovie("chainsaw", "chainsaw" + chainsawCount, 1850 + chainsawCount, {_x:random(598), _y:random(449) + 35});
chainsawCount++;
}
}
function addFlames(numFlames) {
while (flameCount < numFlames) {
_root.enemycontainer.attachMovie("flame", "flame" + flameCount, 5600 + flameCount, {_x:random(598), _y:random(449) + 35});
_flameCount++;
}
}
function addTrucks(numTrucks) {
while (truckCount < numTrucks) {
_root.enemycontainer.attachMovie("bad_truck", "bad_truck" + truckCount, 5780 + truckCount, {_x:random(598), _y:random(449) + 35});
truckCount++;
}
}
function addHealth(numHealth) {
while (healthCount < numHealth) {
_root.enemycontainer.attachMovie("healthup", "healthup" + healthCount, 6660 + healthCount, {_x:random(598), _y:random(449) + 35});
healthCount++;
}
}
function addBoss(numBoss) {
while (bossCount < numBoss) {
_root.enemycontainer.attachMovie("bad_boss", "bad_boss" + bossCount, 5998 + bossCount, {_x:random(598), _y:random(449) + 35});
bossCount++;
}
}
archerCount = 0;
chainsawCount = 0;
flameCount = 0;
truckCount = 0;
bossCount = 0;
healthCount = 0;
_root.survivalLevel++;
gotoAndPlay (2);
if (_root.survivalLevel == 1) {
addArcher(1);
}
if (_root.survivalLevel == 2) {
addArcher(2);
}
if (_root.survivalLevel == 3) {
addArcher(3);
}
if (_root.survivalLevel == 4) {
addArcher(2);
addChainsaw(1);
}
if (_root.survivalLevel == 5) {
addArcher(2);
addChainsaw(2);
addHealth(1);
}
if (_root.survivalLevel == 6) {
addArcher(3);
addChainsaw(2);
}
if (_root.survivalLevel == 7) {
addArcher(3);
addChainsaw(3);
}
if (_root.survivalLevel == 8) {
addArcher(4);
addChainsaw(3);
}
if (_root.survivalLevel == 9) {
addArcher(4);
addChainsaw(4);
}
if (_root.survivalLevel == 10) {
addTrucks(1);
addHealth(1);
}
if (_root.survivalLevel == 11) {
addArcher(1);
addTrucks(1);
}
if (_root.survivalLevel == 12) {
addArcher(2);
addTrucks(1);
}
if (_root.survivalLevel == 13) {
addArcher(3);
addTrucks(1);
}
if (_root.survivalLevel == 14) {
addArcher(2);
addTrucks(1);
addChainsaw(1);
}
if (_root.survivalLevel == 15) {
addArcher(1);
addTrucks(2);
addHealth(1);
}
if (_root.survivalLevel == 16) {
_root.difficulty = "Medium";
addArcher(2);
addTrucks(2);
}
if (_root.survivalLevel == 17) {
_root.difficulty = "Medium";
addArcher(3);
addTrucks(2);
}
if (_root.survivalLevel == 18) {
_root.difficulty = "Medium";
addArcher(3);
addTrucks(2);
addChainsaw(1);
}
if (_root.survivalLevel == 19) {
_root.difficulty = "Medium";
addArcher(4);
addTrucks(2);
addChainsaw(2);
}
if (_root.survivalLevel == 20) {
_root.difficulty = "Hard";
addTrucks(2);
addHealth(2);
}
if (_root.survivalLevel == 21) {
_root.difficulty = "Hard";
addTrucks(2);
addChainsaw(1);
}
if (_root.survivalLevel == 22) {
_root.difficulty = "Hard";
addArcher(1);
addTrucks(2);
addChainsaw(1);
}
if (_root.survivalLevel == 23) {
_root.difficulty = "Hard";
addArcher(2);
addTrucks(2);
addChainsaw(1);
}
if (_root.survivalLevel == 24) {
_root.difficulty = "Hard";
addTrucks(3);
}
if (_root.survivalLevel == 25) {
_root.difficulty = "Hard";
addTrucks(4);
addHealth(2);
}
if (_root.survivalLevel == 26) {
_root.difficulty = "Hard";
addTrucks(5);
}
if (_root.survivalLevel == 27) {
_root.difficulty = "Hard";
addTrucks(6);
}
if (_root.survivalLevel == 28) {
_root.difficulty = "Hard";
addTrucks(7);
}
if (_root.survivalLevel == 29) {
_root.difficulty = "Hard";
addTrucks(5);
addArcher(2);
addChainsaw(2);
}
if (_root.survivalLevel == 30) {
_root.difficulty = "Hard";
addTrucks(10);
addHealth(2);
}
if (_root.survivalLevel == 31) {
gotoAndPlay ("win");
}
}
Symbol 773 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 80
_visible = false;
gotoAndStop (1);
Symbol 778 Button
on (release) {
_root.shop.gotoAndStop(4);
gotoAndStop ("game");
}
Symbol 809 Button
on (release) {
_root.savegame = SharedObject.getLocal("treetrucker");
_root.savegame.data.DIFF = _root.difficulty;
_root.savegame.data.TREE = _root.trees;
_root.savegame.data.PERM = _root.permtrees;
_root.savegame.data.ACCL = _root.accel;
_root.savegame.data.DCCL = _root.decel;
_root.savegame.data.AXEU = _root.axeupgrade;
_root.savegame.data.AXEL = _root.axelevel;
_root.savegame.data.AXSU = _root.axespeedupgrade;
_root.savegame.data.AXSL = _root.axespeedlevel;
_root.savegame.data.TRKU = _root.truckupgrade;
_root.savegame.data.TRKL = _root.trucklevel;
_root.savegame.data.EGNU = _root.engineupgrade;
_root.savegame.data.EGNL = _root.enginelevel;
_root.savegame.data.HNDU = _root.handleupgrade;
_root.savegame.data.HNDL = _root.handlelevel;
_root.savegame.data.EXSU = _root.exhaustupgrade;
_root.savegame.data.EXSL = _root.exhaustlevel;
_root.savegame.data.MONY = _root.money;
_root.savegame.data.AXSP = _root.bspeed;
_root.savegame.data.SGLA = _root.singleAxe;
_root.savegame.data.SGLU = _root.singleAxeupgrade;
_root.savegame.data.DBLA = _root.doubleAxe;
_root.savegame.data.DBLU = _root.doubleaxeupgrade;
_root.savegame.data.TPLU = _root.tripleaxeupgrade;
_root.savegame.data.TPLA = _root.tripleAxe;
_root.savegame.data.LEVL = _root.level;
_root.savegame.data.DAMG = _root.damage;
_root.savegame.data.DMGM = _root.damageMax;
_root.savegame.data.FEUL = _root.fuel;
_root.savegame.data.AXSD = _root.axedamage;
_root.savegame.data.ARCK = _root.archerKills;
_root.savegame.data.CHNK = _root.chainsawKills;
_root.savegame.data.HOSK = _root.houseKills;
_root.savegame.data.TRKK = _root.truckKills;
_root.savegame.data.SPRU = _root.spruce;
_root.savegame.data.PALM = _root.palm;
_root.savegame.data.MAPL = _root.maple;
_root.savegame.data.OAKT = _root.oak;
_root.savegame.data.BIRC = _root.birch;
_root.savegame.data.LCAT = _root.locate;
_root.savegame.data.TRKS = _root.chase.speed;
_root.savegame.data.TRKR = _root.chase.rspeed;
_root.savegame.data.TKSL = _root.chase.speedlimit;
_root.savegame.data.DAMW = _root.hud.damage._width;
_root.savegame.data.FEUW = _root.hud.fuel._width;
_root.savegame.data.TRKX = _root.chase._xscale;
_root.savegame.data.TKSY = _root.chase._yscale;
_root.savegame.data.COMP = _root.completed;
_root.savegame.data.UNLK = _root.unlock;
stopAllSounds();
_root.chasedead._name = "chase";
_root.chase._visible = true;
_root.gotoAndStop("start");
}