Frame 1
stop();
weaponType = 2;
weaponID = 1;
_root.playerName = "CHANDLER";
_root.manHat = 1;
_root.manSkin = 1;
_root.manShirt = 1;
_root.manShoe = 2;
_root.manHeadVis = true;
if (_root.menuAim == undefined) {
_root.menuAim = 1;
}
_root._quality = "medium";
var shopPrices = new Array(2000, 120, 1000, 1500, 2000, 2500, 1000, 1500, 1500);
var shopName = new Array("FLAMER", "BLADE", "HAMMER", "BUZZROD", "L.SWORD", "PISTOL", "SHOTGUN", "UZI", "FLAMER", "HEALTH");
var shopActive = new Array(false, true, false, false, false, false, false, false, false, false, false, false);
var money = 0;
var weaponSelect = 1;
var shopSelect = 1;
var killGunAmmoArray = new Array(null, "", "", "", "", "");
_root.levelsBeat = 99;
Frame 2
function onEnterFrame() {
saveTimer++;
if ((saveTimer = 400)) {
JTCsave();
}
controlFade(redFade);
controlFade(whiteFade);
controlPause();
}
function resetPlayer() {
_root.MERC.gotoAndPlay("RESET");
}
function setFPS() {
date = new Date();
while (date.getTime() < FPSTimer) {
date = new Date();
}
FPSTimer = date.getTime() + _root.fpsSet;
}
function controlFade(target) {
JTCsave();
if (target._alpha > 0) {
target._alpha = target._alpha - 10;
} else {
target._xscale = 0;
}
}
function setFade(target, ammount) {
target._xscale = 100;
target._alpha = ammount;
}
function simulatePausePress() {
pauseSwitch = true;
if (gamePaused == true) {
gamePaused = false;
} else {
Mouse.show();
gamePaused = true;
}
}
function controlPause() {
if (gameEngineActive == true) {
if (Key.isDown(80) && (pauseSwitch == false)) {
pauseSwitch = true;
if ((gamePaused == true) && (pauseHold == false)) {
gamePaused = false;
} else {
Mouse.show();
gamePaused = true;
}
} else if (!Key.isDown(80)) {
pauseSwitch = false;
}
if (gamePaused == false) {
removeMenu();
} else if (gameEngineActive == true) {
callMenu("PAUSE");
}
}
}
function setMusic(target) {
trace(target);
if ((lastMusic != target) || (_root.forceMusic == true)) {
_root.forceMusic = false;
stopAllSounds();
trace("SET MUSIC TEST");
if (savefile.data.musicV == true) {
trace("SET MUSIC SUCCESS");
MUSIC.gotoAndStop(target);
MUSIC.gotoAndStop(1);
}
}
lastMusic = target;
}
function playSound(target) {
if (savefile.data.soundV == true) {
SOUNDFX.gotoAndStop(target);
SOUNDFX.gotoAndStop(1);
}
}
function callMenu(targ) {
if (menuCalled == false) {
menuCalled = true;
_root.menuTarget = targ;
attachMovie("MENU_SYSTEM", "MENU", 200);
}
}
function removeMenu() {
if (menuCalled == true) {
updateHUD();
resetPlayer();
}
menuCalled = false;
removeMenuSwitch = true;
}
function updateHUD() {
var _local2 = 0;
while (_local2 < 9) {
if (_root.shopActive[_local2] == true) {
_root.HUD["item" + _local2]._alpha = 100;
} else {
_root.HUD["item" + _local2]._alpha = 25;
}
_local2++;
}
}
_root.fpsSet = 2;
var saveTimer = 0;
var FPSTimer = 0;
var date;
var lagCount = 0;
var pauseHold = false;
var gamePaused = false;
var pauseSwitch = false;
var lastMusic = "";
var menuCalled = false;
function resetDefaultKeys() {
_root.rightKey = 39;
_root.leftKey = 37;
_root.upKey = 38;
_root.downKey = 40;
_root.jumpKey = 38;
_root.shootKey = 32;
_root.grenadeKey = 16;
_root.rightKeyDesc = "RIGHT ARROW";
_root.leftKeyDesc = "LEFT ARROW";
_root.upKeyDesc = "UP ARROW";
_root.downKeyDesc = "DOWN ARROW";
_root.jumpKeyDesc = "UP ARROW";
_root.shootKeyDesc = "SPACEBAR";
_root.grenadeKeyDesc = "SHIFT";
}
function JTCsave() {
if (_root.saveOff != true) {
var _local2 = _root.savefile.data;
_local2.playerName = playerName;
_local2.manHat = manHat;
_local2.manSkin = manSkin;
_local2.manShirt = manShirt;
_local2.manShoe = manShoe;
_local2.manHeadVis = manHeadVis;
_local2.money = money;
_local2.shopActive = shopActive;
_local2.killGunAmmoArray = killGunAmmoArray;
_local2.levelsBeat = levelsBeat;
_root.savefile.flush();
}
}
function JTCload() {
var _local2 = _root.savefile.data;
_root.playerName = _local2.playerName;
_root.manHat = _local2.manHat;
_root.manSkin = _local2.manSkin;
_root.manShirt = _local2.manShirt;
_root.manShoe = _local2.manShoe;
_root.manHeadVis = _local2.manHeadVis;
_root.money = _local2.money;
shopActive = _local2.shopActive;
killGunAmmoArray = _local2.killGunAmmoArray;
_root.levelsBeat = _local2.levelsBeat;
}
function newMedal(num) {
if (_root.savefile.data.medals[num] == false) {
_root.savefile.data.medals[num] = true;
newMedalPrompt();
}
}
function newMedalPrompt() {
MEDALS.attachMovie("MEDALSIGN", "MS" + MEDALS.getNextHighestDepth(), MEDALS.getNextHighestDepth());
}
function setDefaultControls() {
_root.savefile.data.rightKey = _root.rightKey;
_root.savefile.data.leftKey = _root.leftKey;
_root.savefile.data.upKey = _root.upKey;
_root.savefile.data.downKey = _root.downKey;
_root.savefile.data.jumpKey = _root.jumpKey;
_root.savefile.data.shootKey = _root.shootKey;
_root.savefile.data.grenadeKey = _root.grenadeKey;
_root.savefile.data.rightKeyDesc = _root.rightKeyDesc;
_root.savefile.data.leftKeyDesc = _root.leftKeyDesc;
_root.savefile.data.upKeyDesc = _root.upKeyDesc;
_root.savefile.data.downKeyDesc = _root.downKeyDesc;
_root.savefile.data.jumpKeyDesc = _root.jumpKeyDesc;
_root.savefile.data.shootKeyDesc = _root.shootKeyDesc;
_root.savefile.data.grenadeKeyDesc = _root.grenadeKeyDesc;
}
version = $version;
var osType;
var majorVersion;
var majorRevision;
var minorVersion;
var minorRevision;
vers.text = version;
osArray = version.split(" ");
osType = osArray[0];
versionArray = osArray[1].split(",");
majorVersion = versionArray[0];
majorRevision = versionArray[1];
minorVersion = versionArray[2];
minorRevision = versionArray[3];
var verCount = "";
verCount = verCount + majorVersion;
verCount = verCount + majorRevision;
verCount = verCount + minorVersion;
verCount = verCount + minorRevision;
logoMask.setMask(preLoader);
Stage.showMenu = false;
resetDefaultKeys();
var savefile = SharedObject.getLocal("JTCSAVE_G");
createEmptyMovieClip("MEDALS", getNextHighestDepth());
if (_root.savefile.data.setup == undefined) {
_root.savefile.data.medals = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false);
_root.savefile.data.setup = true;
_root.savefile.data.detail = 2;
_root.savefile.data.qualityV = 2;
_root.savefile.data.musicV = true;
_root.savefile.data.soundV = true;
_root.savefile.data.playerName = "CHANDLER";
_root.savefile.data.manHat = 1;
_root.savefile.data.manSkin = 2;
_root.savefile.data.manShirt = 1;
_root.savefile.data.manShoe = 2;
_root.savefile.data.manHeadVis = true;
_root.savefile.data.levelsBeat = 1;
setDefaultControls();
_root.savefile.data.money = 0;
_root.savefile.data.killGunAmmoArray = new Array(null, "", "", "", "", "");
_root.savefile.data.shopActive = new Array(false, true, false, false, false, false, false, false, false, false, false, false);
}
_root.setMusic("MENU");
var menuPos = 0;
JTCload();
Frame 3
stop();
_root.fpsSet = 38;
Mouse.show();
gamePaused = false;
_root.level1Boss = false;
_root.enemyActive = false;
gameEngineActive = false;
_root.setMusic("MENU");
if (isNaN(_root.money)) {
trace("MONEY CORRECTED");
_root.money = 0;
} else {
trace("MONEY NOT CORRECTED");
}
trace(_root.money);
callMenu("MAIN");
Frame 4
stop();
gameEngineActive = true;
savefile.data.controltype = false;
_root.customControls = false;
_root.mouseControl = false;
currentLevel = "LEVEL1";
_root.gamePaused = false;
Frame 5
gameEngineActive = true;
setMusic("LEVEL3");
currentLevel = "LEVEL2";
_root.gamePaused = false;
Frame 6
gameEngineActive = true;
stopAllSounds();
_root.gamePaused = false;
currentLevel = "LEVEL3";
Frame 7
setFade(_root.redFade, 200);
_root.gamePaused = false;
stopAllSounds();
_root.lastMusic = "";
_root.playSound("CHANDdisco");
_root.healthStore = 100;
Instance of Symbol 477 MovieClip in Frame 7
onClipEvent (load) {
size = 100;
lab = "TRY AGAIN";
}
on (release) {
_root.gotoAndStop(_root.currentLevel);
}
Instance of Symbol 477 MovieClip in Frame 7
onClipEvent (load) {
lab = "TITLE SCREEN";
size = 100;
}
on (release) {
_root.gotoAndStop("TITLE");
}
Frame 8
setFade(_root.whiteFade, 200);
_root.gotoAndStop(_root.currentLevel);
Frame 10
setFade(whiteFade, 200);
_root.stageNum++;
gotoAndStop ("LEVEL1");
Frame 11
setMusic("INTRO");
Instance of Symbol 957 MovieClip in Frame 11
onClipEvent (load) {
_root.gameEngineActive = false;
var keySpace = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) && (keySpace == false)) {
keySpace = true;
_root.gotoAndStop("LEVEL1");
} else if (!Key.isDown(32)) {
keySpace = false;
}
}
Instance of Symbol 957 MovieClip in Frame 11
onClipEvent (load) {
_root.gameEngineActive = false;
var keySpace = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) && (keySpace == false)) {
keySpace = true;
_root.gotoAndStop("LEVEL1");
} else if (!Key.isDown(32)) {
keySpace = false;
}
}
Instance of Symbol 1387 MovieClip in Frame 11
onClipEvent (load) {
_root.setMusic("INTRO");
}
Frame 19
stopAllSounds();
_root.playSound("CHANDLERMAN");
Symbol 42 MovieClip Frame 1
_alpha = 0;
Symbol 46 MovieClip [Missile1] Frame 1
stop();
if (random(2) == 0) {
nextFrame();
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 7
gotoAndPlay (1);
Symbol 107 MovieClip Frame 16
_root.setFade(_root.redFade, 100);
_parent._parent._parent.fuel = _parent._parent._parent.fuel - 10;
Symbol 107 MovieClip Frame 28
_parent.hitLock = false;
gotoAndPlay (1);
Symbol 134 MovieClip [Swain_Obj_Barrel2] Frame 1
stop();
Symbol 141 MovieClip Frame 1
_root.playSound("BANG");
Symbol 141 MovieClip Frame 6
stop();
Symbol 151 MovieClip [MC_Bullet_GruntGun] Frame 1
if (_root.levelNum == 3) {
gotoAndPlay (16);
}
Symbol 151 MovieClip [MC_Bullet_GruntGun] Frame 15
stop();
Symbol 151 MovieClip [MC_Bullet_GruntGun] Frame 20
stop();
Symbol 167 MovieClip [MC_Bullet_KillGunFlame] Frame 1
_root.playSound("EXPBANG2");
Symbol 172 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 10
stop();
Symbol 185 MovieClip [ENEMY_ColS] Frame 1
stop();
Symbol 187 MovieClip [ENEMY_Col] Frame 1
_parent.addEnemyCol(this);
this.swapDepths(666);
this.removeMovieClip();
Symbol 189 MovieClip [Effect_Ring] Frame 1
function onEnterFrame() {
_xscale = (_xscale + 10);
_yscale = _xscale;
_alpha = (_alpha - 10);
if (_alpha < 0) {
this.removeMovieClip();
}
}
_alpha = 200;
Symbol 192 MovieClip [EOLFAIL] Frame 1
function onEnterFrame() {
if (_xscale > 100) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_rotation = (_rotation + 5);
} else {
_alpha = (_alpha - 3);
if (_alpha < 0) {
this.removeMovieClip();
}
}
}
_xscale = 130;
_yscale = 130;
_rotation = -10;
_alpha = 200;
Symbol 194 MovieClip [EOLBAR] Frame 1
function onEnterFrame() {
if (_xscale > 100) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_rotation = (_rotation + 5);
} else {
_alpha = (_alpha - 3);
if (_alpha < 0) {
this.removeMovieClip();
}
}
}
_xscale = 130;
_yscale = 130;
_rotation = -10;
_alpha = 200;
Symbol 276 MovieClip Frame 33
stop();
Symbol 281 MovieClip [L4Target] Frame 1
stop();
Symbol 284 MovieClip [L4Bullet] Frame 15
stop();
Symbol 311 MovieClip [Smoke] Frame 14
this.removeMovieClip();
Symbol 312 MovieClip [L4Blood] Frame 14
this.removeMovieClip();
Symbol 316 MovieClip [MEDALSIGN] Frame 1
function onEnterFrame() {
_x = (_x + 3);
_alpha = (_alpha - 4);
if (_alpha < 0) {
this.removeMovieClip();
}
}
_alpha = 500;
Symbol 325 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + spin);
}
var spin = random(20);
spin = spin + 10;
if (random(2) == 1) {
spin = spin * -1;
}
_alpha = 50;
spin = spin / 100;
Symbol 326 MovieClip Frame 1
if (_root.SPEAKERTRUE == true) {
this.swapDepths(666 + random(2000));
this._visible = false;
this.removeMovieClip();
}
Symbol 337 MovieClip Frame 1
if (_root.SPEAKERTRUE == true) {
this.swapDepths(666 + random(2000));
this._visible = false;
this.removeMovieClip();
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 8
gotoAndStop (1);
Symbol 387 MovieClip Frame 1
P2.nextFrame();
Symbol 387 MovieClip Frame 33
P1.nextFrame();
P2.nextFrame();
gotoAndPlay (2);
Symbol 398 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 404 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 408 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 428 MovieClip Frame 1
var shopPrices = new Array(null, 120, 360, 540, 700, 999, 250, 350, 450, 550, 650, 100);
stop();
Symbol 448 MovieClip Frame 1
function onEnterFrame() {
if (_root.shopSelect > 0) {
gotoAndStop(_root.shopSelect);
if (_root.shopSelect == 8) {
cost = _root.shopPrices[0];
} else {
cost = _root.shopPrices[_root.shopSelect + 1];
}
} else {
stop();
}
}
Symbol 457 MovieClip Frame 1
function reset() {
if (numPos < numArray[_root.SPEAKERPOS]) {
PANEL_TOP.speed = 0;
PANEL_BOT.speed = 0;
PANEL_BOT._x = PANEL_BOT._x - 1000;
PANEL_TOP._x = PANEL_TOP._x + 1000;
PANEL_TOP._alpha = -100;
PANEL_BOT._alpha = -100;
PANEL_TOP._rotation = 90;
PANEL_BOT._rotation = -90;
nextSliderTrue = false;
if (topActive[storyPos] == 1) {
PANEL_TOP._visible = true;
} else {
PANEL_TOP._visible = false;
}
if (botActive[storyPos] == 1) {
PANEL_BOT._visible = true;
} else {
PANEL_BOT._visible = false;
}
PANEL_TOP.textBox.textBox.text = topArray[storyPos];
PANEL_TOP.FACE.sprite.stop();
PANEL_TOP.FACE.sprite.P1.gotoAndStop(topArrayS[storyPos]);
PANEL_BOT.textBox.textBox.text = botArray[storyPos];
PANEL_BOT.FACE.sprite.stop();
PANEL_BOT.FACE.sprite.P1.gotoAndStop(botArrayS[storyPos]);
storyPos++;
numPos++;
} else {
_root.setFade(_root.whiteFade, 80);
_root.SPEAKERTRUE = false;
_root.gamePaused = false;
_root.gameEngineActive = true;
_root.removeMenu();
_root.MENU.removeMovieClip();
}
}
function onEnterFrame() {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else if (Key.isDown(32) && (keySpace == false)) {
keySpace = true;
nextSliderTrue = true;
} else if (!Key.isDown(32)) {
keySpace = false;
}
enterFunction();
}
function enterFunction() {
if (nextSliderTrue) {
nextSlider();
} else {
PANEL_TOP._x = PANEL_TOP._x + ((PANEL_TOP_x - PANEL_TOP._x) / 5);
PANEL_TOP._alpha = PANEL_TOP._alpha + ((100 - PANEL_TOP._alpha) / 3);
PANEL_TOP._rotation = PANEL_TOP._rotation + ((-PANEL_TOP._rotation) / 5);
PANEL_BOT._x = PANEL_BOT._x + ((PANEL_BOT_x - PANEL_BOT._x) / 5);
PANEL_BOT._alpha = PANEL_BOT._alpha + ((100 - PANEL_BOT._alpha) / 3);
PANEL_BOT._rotation = PANEL_BOT._rotation + ((180 - PANEL_BOT._rotation) / 5);
}
}
function nextSlider() {
if (PANEL_TOP._alpha > 0) {
PANEL_TOP._x = PANEL_TOP._x - PANEL_TOP.speed;
PANEL_TOP.speed = PANEL_TOP.speed + 6;
PANEL_TOP._rotation = PANEL_TOP._rotation + 10;
PANEL_BOT._x = PANEL_BOT._x + PANEL_BOT.speed;
PANEL_BOT.speed = PANEL_BOT.speed + 6;
PANEL_TOP._alpha = PANEL_TOP._alpha - 10;
PANEL_BOT._rotation = PANEL_BOT._rotation + 10;
PANEL_BOT._alpha = PANEL_BOT._alpha - 6;
} else {
reset();
}
}
var topArray = new Array("THIS PLACE IS A MESS!\nTHOSE DAMN ROBOTS\nARE GONNA PAY!", "BZZZZZZT!\nMAN DETECTED\nACTIVATING!", "SSSSSSSS\nWE'RE READY TO HIT\nTHAT BANK, BOSSSSSS", "OH YEAH? WE'LL SEE\n ABOUT THAT,\nLIZARD BREATH!", "I HAVE TO MAKE IT\nBACK TO TOWN\nBEFORE THOSE GUYS!", "GIVE IT UP YOU\nNINJA CRUMBUMS!", "OH YEAH?, WELL\n WHAT CAN I DO \nTO CONVINCE YOU?", "WELL, TOO BAD FOR\nYOU THAT I'M A \nCHAMPION GROOVER!", "EXCELLENT! BUT THAT\n WAS JUST WARM UP!\nPREPARE YOURSELF!", "SO, YOU'RE THE BRAINS\nBEHIND THIS OPERATION, EH?", "LISTEN, SMARTGUY. YOU \nRUINED MY DAY OFF AND\nEVEN WORSE - MY LUNCH!", "HAHAHAHA!\n UP HERE DUMMY! YOU'LL \nNEVER REACH MY MASTER!");
var botArray = new Array("", "UH OH...", "GOOOOOD!\nNOTHIN WILL SSSSSTOP\nUSSSS NOW!", "WHAAT!?\nGET HIM, GUYSSSS!", "PRESS THE ARROW KEYS TO AIM.\nHOLD SPACE TO FIRE! YOU\n HAVE INFINITE AMMO!", ("AH, " + _root.playerName) + "-SAN, YOU'VE\nFOUGHT WELL. BUT WE \nWON'T GIVE IN, YET!", "YOU MUST WIN 2 ROUNDS OF\nANCIENT NINJA TRADITION!\n LET THE DANCE OFF BEGIN!", "USE MOVEMENT KEYS TO POSE!\nMATCH POSE TO ARROWS!\nTHE BEST SCORE WINS!", "AH...GREAT...", "WHAT I AM IS NOT IMPORTANT\n AND DOES NOT CONCERN YOU.", "YOU WILL NOT STAND \nIN THE WAY OF MY \nNEW WORLD...", "HMMM, I SURE HOPE I \nREMEMBER TO PRESS SHIFT\nTO ENTER TURRETS.");
var topArrayS = new Array(1, 2, 4, 1, 1, 1, 1, 1, 3, 1, 1, 7);
var botArrayS = new Array(0, 1, 4, 4, 4, 3, 3, 3, 1, 6, 6, 1);
var posArray = new Array(0, 1, 2, 5, 8, 9, 11);
var numArray = new Array(1, 1, 3, 3, 1, 2, 1);
var topActive = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var botActive = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var storyPos = posArray[_root.SPEAKERPOS];
var numPos = 0;
_alpha = 0;
PANEL_TOP_x = PANEL_TOP._x;
PANEL_BOT_x = PANEL_BOT._x;
_root.setFade(_root.whiteFade, 50);
PANEL_BOT.textBox._xscale = PANEL_BOT.textBox._xscale * -1;
reset();
Symbol 458 MovieClip Frame 1
stop();
if (_root.SPEAKERTRUE) {
gotoAndStop ("SPEAKER");
_root.gameEngineActive = false;
}
Instance of Symbol 321 MovieClip [Swain_Debris1] in Symbol 458 MovieClip Frame 1
onClipEvent (load) {
_parent.playerName.text = _root.playerName;
}
onClipEvent (enterFrame) {
_root.playerName = _parent.playerName.text;
if (_root.playerName == "ARMORLEVEL") {
_root.levelsBeat = 10;
_root.saveOff = true;
}
if (_root.playerName == "ARMORHEALTH") {
_root.healthCheat = true;
_root.saveOff = true;
}
if (_root.playerName == "ARMORCASH") {
_root.money = 10000;
_root.saveOff = true;
}
_root.JTCsave();
}
Instance of Symbol 428 MovieClip "shopSprite" in Symbol 458 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Symbol 469 MovieClip Frame 1
_visible = false;
stop();
if (_root.SPEAKERTRUE == true) {
this.swapDepths(666 + random(2000));
this._visible = false;
this.removeMovieClip();
}
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 15
gotoAndStop (1);
Symbol 477 MovieClip Frame 1
function onEnterFrame() {
if (padVis == true) {
BUT.PAD._visible = true;
BUT.PAD._rotation = BUT.PAD._rotation + 4;
}
scaleTarg = size;
if (mousedOver == true) {
scaleTarg = size + 25;
BUT.gotoAndPlay(2);
} else if (mousedOver == 3) {
scaleTarg = size + 25;
BUT.gotoAndPlay(20);
}
if (_parent.changeMenu > 0) {
scaleTarg = -30;
_rotation = (_rotation + 5);
}
scale = scale + ((scaleTarg - scale) / scaleSpeed);
if (scaleSpeed > 5) {
scaleSpeed = scaleSpeed - 0.25;
}
BUT._xscale = Math.ceil(scale);
BUT._yscale = Math.ceil(scale);
if (BUT._xscale < 0) {
BUT._xscale = 0;
BUT._yscale = 0;
}
_rotation = (_rotation + ((rotate - _rotation) / 10));
}
function onRollOver() {
mousedOver = true;
}
function onDragOver() {
mousedOver = true;
}
function onRollOut() {
mousedOver = false;
}
function onDragOver() {
mousedOver = false;
}
function onPress() {
mousedOver = 3;
}
function onReleaseOutside() {
mousedOver = false;
}
BUT._yscale = 0;
BUT._xscale = 0;
var rotate = _rotation;
var scale = 0;
_rotation = (_rotation - 90);
BUT.lab = lab;
var scaleSpeed = 10;
if (size == undefined) {
size = 75;
}
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 15
gotoAndStop (1);
Symbol 481 MovieClip Frame 1
function onEnterFrame() {
if (padVis == true) {
BUT.PAD._visible = true;
BUT.PAD._rotation = BUT.PAD._rotation + 4;
}
scaleTarg = size;
if (mousedOver == true) {
scaleTarg = size + 25;
BUT.gotoAndPlay(2);
} else if (mousedOver == 3) {
scaleTarg = size + 25;
BUT.gotoAndPlay(20);
}
if (_parent.changeMenu > 0) {
scaleTarg = -30;
_rotation = (_rotation + 5);
}
scale = scale + ((scaleTarg - scale) / scaleSpeed);
if (scaleSpeed > 5) {
scaleSpeed = scaleSpeed - 0.25;
}
BUT._xscale = Math.ceil(scale);
BUT._yscale = Math.ceil(scale);
if (BUT._xscale < 0) {
BUT._xscale = 0;
BUT._yscale = 0;
}
_rotation = (_rotation + ((rotate - _rotation) / 10));
}
function onRollOver() {
mousedOver = true;
}
function onDragOver() {
mousedOver = true;
}
function onRollOut() {
mousedOver = false;
}
function onDragOver() {
mousedOver = false;
}
function onPress() {
mousedOver = 3;
}
function onReleaseOutside() {
mousedOver = false;
}
BUT._yscale = 0;
BUT._xscale = 0;
var rotate = _rotation;
var scale = 0;
_rotation = (_rotation - 90);
BUT.lab = lab;
var scaleSpeed = 10;
if (size == undefined) {
size = 75;
}
Symbol 502 MovieClip Frame 1
function onEnterFrame() {
if (this._xscale > 100) {
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
}
if (_alpha == 100) {
if (pressSwitch == false) {
if (Key.isDown(13)) {
pressSwitch = true;
_parent.controlMC.saveConfig();
}
}
}
}
_alpha = 30;
pressSwitch = false;
Symbol 505 MovieClip [CCS] Frame 1
function onEnterFrame() {
if (removeSwitch == false) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
this.swapDepths(666);
this.removeMovieClip();
}
}
_alpha = 0;
var removeSwitch = false;
stop();
Instance of Symbol 487 MovieClip in Symbol 505 MovieClip [CCS] Frame 1
on (release) {
}
Instance of Symbol 42 MovieClip "controlMC" in Symbol 505 MovieClip [CCS] Frame 1
onClipEvent (load) {
function checkChar(char) {
trace("Checking Character: " + char);
if ((char > 47) && (char < 58)) {
descReturn = numberNames[char - 48];
return(true);
}
trace("Number not found");
if (((char > 64) && (char < 91)) && (char != 80)) {
descReturn = letterNames[char - 65];
return(true);
}
trace("Letter not found");
var _local1 = 0;
while (_local1 < keyNameRef.length) {
if (char == keyNameRef[_local1]) {
descReturn = keyNames[_local1];
return(true);
}
_local1++;
}
trace("Extended not found");
return(false);
}
function saveConfig() {
_root.rightKey = (_root.savefile.data.rightKey = keyStore[0]);
_root.leftKey = (_root.savefile.data.leftKey = keyStore[1]);
_root.jumpKey = (_root.savefile.data.jumpKey = keyStore[2]);
_root.downKey = (_root.savefile.data.downKey = keyStore[3]);
_root.shootKey = (_root.savefile.data.shootKey = keyStore[4]);
_root.grenadeKey = (_root.savefile.data.grenadeKey = keyStore[5]);
_root.savefile.data.rightKeyDesc = nameStore[0];
_root.savefile.data.leftKeyDesc = nameStore[1];
_root.savefile.data.jumpKeyDesc = nameStore[2];
_root.savefile.data.downKeyDesc = nameStore[3];
_root.savefile.data.shootKeyDesc = nameStore[4];
_root.savefile.data.grenadeKeyDesc = nameStore[5];
_root.savefile.flush();
_parent.removeSwitch = true;
}
var keyNames = new Array("Backspace", "Tab", "Enter", "Shift", "Control", "Caps Lock", "Spacebar", "Page Up", "Page Down", "End", "Home", "Left Arrow", "Up Arrow", "Right Arrow", "Down Arrow", "Insert", "Delete");
var keyNameRef = new Array(8, 9, 13, 16, 17, 20, 32, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46);
var numberNames = new Array("ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE");
var letterNames = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
var descArray = new Array("WALK RIGHT", "WALK LEFT", "JUMP", "DUCK", "SHOOT", "ATTACK", "CHANGE WEAPON");
var descVar = new Array("rightKey", "leftKey", "jumpKey", "downKey", "shootKey", "grenadeKey");
var descCount = 0;
var keyCheck = false;
var keyStore = new Array();
var nameStore = new Array();
var i = 0;
while (i < 7) {
_parent["text_" + descVar[i]] = _root.savefile.data[descVar[i] + "Desc"];
i++;
}
var descReturn;
var lastCode = Key.getCode();
}
onClipEvent (keyDown) {
var kp = Key.getCode();
if (keyLock == false) {
keyLock = true;
if (Key.isDown(27)) {
_parent.removeSwitch = true;
}
lastCode = kp;
if (checkChar(kp) == true) {
nameStore[descCount] = descReturn;
keyStore[descCount] = kp;
_parent["text_" + descVar[descCount]] = descReturn;
descCount++;
}
}
}
onClipEvent (enterFrame) {
if (_root.mouseControl == true) {
_parent.MOUSELOOK = "ON";
_parent.text_upKey = "MOUSE";
_parent.text_downKey = "MOUSE";
_parent.text_shootKey = "CLICK";
_parent.CBlock._visible = true;
} else {
_parent.MOUSELOOK = "OFF";
_parent.CBlock._visible = false;
}
if (!Key.isDown(lastCode)) {
keyLock = false;
}
while ((_parent["text_" + descVar[descCount]] == "MOUSE") || (_parent["text_" + descVar[descCount]] == "CLICK")) {
descCount++;
}
_parent["text_" + descVar[descCount]] = "PRESS KEY";
if (descCount >= 6) {
if (_parent.descText != "CONFIRM KEY CONFIG") {
_parent.confirmBox._alpha = 100;
_parent.confirmBox._xscale = 120;
_parent.confirmBox._yscale = 120;
}
descCount = 6;
_parent.descTextInt = "";
_parent.descText = "NOW CONFIRM OR CANCEL KEY CONFIG";
} else {
_parent.descText = descArray[descCount];
}
}
Symbol 505 MovieClip [CCS] Frame 2
_root.gotoAndStop("MAIN");
Symbol 519 MovieClip Frame 1
visibleItems = "CREATE";
jMoveX = -160;
jMoveY = 30;
function onEnterFrame() {
shopBuffer--;
if (_root.gameEngineActive) {
_parent._parent._parent.PTU._visible = true;
} else {
_parent._parent._parent.PTU._visible = false;
}
if (_root.removeMenuSwitch == false) {
if (_parent._parent._parent._alpha < 100) {
_parent._parent._parent._alpha = _parent._parent._parent._alpha + 10;
}
} else if (_parent._parent._parent._alpha > 0) {
_parent._parent._parent._alpha = _parent._parent._parent._alpha - 20;
} else {
_parent._parent._parent.removeMovieClip();
}
if (customLabelSwitch == true) {
_parent._parent.customLabel._alpha = _parent._parent.customLabel._alpha - 20;
if (_parent._parent.customLabel._alpha <= 0) {
customLabelSwitch = false;
_parent._parent.customLabel.gotoAndStop(customLabelFrame);
}
} else if (_parent._parent.customLabel._alpha < 100) {
_parent._parent.customLabel._alpha = _parent._parent.customLabel._alpha + 20;
}
if (visibleItems == "CREATE") {
if (customLabelFrame != "CREATE") {
customLabelFrame = "CREATE";
customLabelSwitch = true;
}
if (_parent.upper._alpha < 100) {
_parent.upper._alpha = _parent.upper._alpha + 20;
_parent.lower._alpha = _parent.lower._alpha + 20;
}
} else if (visibleItems == "MAIN") {
if (customLabelFrame != "MAIN") {
customLabelFrame = "MAIN";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
} else if (visibleItems == "MAIN2") {
if (customLabelFrame != "MAIN2") {
customLabelFrame = "MAIN2";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
} else if (visibleItems == "MAIN3") {
if (customLabelFrame != "MAIN3") {
customLabelFrame = "MAIN3";
customLabelSwitch = true;
}
if (_parent.upper._alpha < 100) {
_parent.upper._alpha = _parent.upper._alpha + 20;
_parent.lower._alpha = _parent.lower._alpha + 20;
}
} else if (visibleItems == "GRAPHICS") {
if (customLabelFrame != "GRAPHICS") {
customLabelFrame = "GRAPHICS";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
} else if (visibleItems == "PAUSE") {
if (customLabelFrame != "PAUSE") {
customLabelFrame = "PAUSE";
customLabelSwitch = true;
}
if (_parent.upper._alpha < 100) {
_parent.upper._alpha = _parent.upper._alpha + 20;
_parent.lower._alpha = _parent.lower._alpha + 20;
}
} else if (visibleItems == "SOUND") {
if (customLabelFrame != "SOUND") {
customLabelFrame = "SOUND";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
} else if (visibleItems == "OPTIONS") {
if (customLabelFrame != "OPTIONS") {
customLabelFrame = "OPTIONS";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
} else if (visibleItems == "SHOP") {
if (customLabelFrame != "SHOP") {
customLabelFrame = "SHOP";
customLabelSwitch = true;
}
if (_parent.upper._alpha > 0) {
_parent.upper._alpha = _parent.upper._alpha - 20;
_parent.lower._alpha = _parent.lower._alpha - 20;
}
}
jCurX = jCurX + (((jPosX + jMoveX) - jCurX) / 10);
jCurY = jCurY + (((jPosY + jMoveY) - jCurY) / 10);
j._x = Math.round(jCurX);
j._y = Math.round(jCurY);
if (changeMenu > 0) {
changeMenu = changeMenu - 2;
if (changeMenu == 2) {
if (changeMenuTarg == "StartNewGame") {
if (moveMenu == undefined) {
moveMenu = -20;
}
gotoAndStop ("BLANK");
changeMenuTarg = "BLANK";
} else {
gotoAndStop ("BLANK");
}
}
} else {
_parent._parent._xscale = _parent._parent._xscale + ((scaleSize - _parent._parent._xscale) / 20);
}
_parent._parent._yscale = _parent._parent._xscale;
if (moveMenu != undefined) {
moveMenu = moveMenu + 2;
_parent._parent._rotation = _parent._parent._rotation + ((moveMenu + 20) / 3);
_parent._parent._y = _parent._parent._y + moveMenu;
_parent._parent._parent.BG._alpha = _parent._parent._parent.BG._alpha - (moveMenu / 10);
}
if (_parent._parent._parent.BG._alpha < 0) {
_root.gotoAndPlay(1);
}
_parent._parent.customLabel.shopSprite.gotoAndStop(_root.shopSelect);
}
function gotoLevel(targ) {
_root.levelNum = targ;
_root.stageNum = 1;
_root.removeMenu();
_root.gotoAndStop("CUTSCENE_" + targ);
}
function shopItem(targ) {
if (shopBuffer <= 0) {
shopBuffer = 10;
if (targ == 8) {
targ = -1;
}
if (_root.shopSelect != undefined) {
if ((_root.money - _root.shopPrices[targ + 1]) >= 0) {
_root.money = _root.money - _root.shopPrices[targ + 1];
_root.weaponType = shopSelectTypeArray[_root.shopSelect];
_root.weaponID = shopSelectIDArray[_root.shopSelect];
var _local3 = typeof(_root.killGunAmmoArray[_root.weaponID]);
trace("TYPE IS " + _local3);
if ((_root.killGunAmmoArray[_root.weaponID] == "") || (_local3 != "Number")) {
_root.killGunAmmoArray[_root.weaponID] = 0;
}
if (_root.weaponType == 1) {
if (_root.weaponID == 1) {
_root.killGunAmmoArray[_root.weaponID] = _root.killGunAmmoArray[_root.weaponID] + 40;
} else if (_root.weaponID == 2) {
_root.killGunAmmoArray[_root.weaponID] = _root.killGunAmmoArray[_root.weaponID] + 12;
} else if (_root.weaponID == 3) {
_root.killGunAmmoArray[_root.weaponID] = _root.killGunAmmoArray[_root.weaponID] + 100;
} else if (_root.weaponID == 4) {
_root.killGunAmmoArray[_root.weaponID] = _root.killGunAmmoArray[_root.weaponID] + 50;
}
}
_root.shopActive[targ + 1] = true;
_root.weaponSelect = targ;
changeMenu = 20;
changeMenuTarg = "SHOP";
}
}
}
}
if (scaleSize == undefined) {
_parent._parent._parent._alpha = 0;
scaleSize = _parent._parent._xscale;
gotoAndStop(_root.menuTarget);
}
var j = _parent._parent;
if (jPosX == undefined) {
var jPosX = j._x;
var jPosY = j._y;
var jMoveX = 0;
var jMoveY = 0;
var jCurX = j._x;
var jCurY = j._y;
customLabelFrame = "CREATE";
customLabelSwitch = false;
}
_root.shopSelect = undefined;
_root.weaponTypeStore = _root.weaponType;
_root.weaponIDStore = _root.weaponID;
var shopSelectTypeArray = new Array(null, 2, 2, 2, 2, 1, 1, 1, 1, 0);
var shopSelectIDArray = new Array(null, 2, 3, 4, 5, 1, 2, 3, 4, 0);
_root.removeMenuSwitch = false;
stop();
var shopBuffer = 0;
var offSetID = 1;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
lab = "SKIN";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
lab = "HAT";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
lab = "SHIRT";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
lab = "SHOES";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
lab = "DONE";
size = 50;
}
on (release) {
_root.menuAim = 2;
_parent.changeMenu = 20;
_parent.changeMenuTarg = _root.returnMenu;
}
Symbol 519 MovieClip Frame 2
visibleItems = "CREATE";
jMoveX = -160;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "ARMY";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 3;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "COWBOY";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 4;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "CHEF";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 5;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "SPACE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = false;
_root.manHat = 6;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "KNIGHT";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = false;
_root.manHat = 2;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "NONE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 1;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "VIKING";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 7;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 2
onClipEvent (load) {
lab = "CHANDLER";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manHeadVis = true;
_root.manHat = 8;
_parent._parent.play();
}
}
Symbol 519 MovieClip Frame 3
visibleItems = "CREATE";
jMoveX = -160;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "BLUE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 3;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "GREEN";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 4;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "PINK";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 5;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "PURPLE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 6;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "PLAIN";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 2;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "CHANDLER";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 1;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (load) {
lab = "RED";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manSkin = 7;
_parent._parent.play();
}
}
Symbol 519 MovieClip Frame 4
visibleItems = "CREATE";
jMoveX = -160;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 4
onClipEvent (load) {
lab = "BLUE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShirt = 2;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 4
onClipEvent (load) {
lab = "GREEN";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShirt = 3;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 4
onClipEvent (load) {
lab = "WHITE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShirt = 4;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 4
onClipEvent (load) {
lab = "CAMO";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShirt = 5;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 4
onClipEvent (load) {
lab = "RED";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShirt = 1;
_parent._parent.play();
}
}
Symbol 519 MovieClip Frame 5
visibleItems = "CREATE";
jMoveX = -160;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "COWBOY";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 3;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "CLOGS";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 4;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "SPORT";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 5;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "ARMY";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 6;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "SNEAKER";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 1;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "NONE";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 1;
_parent._parent.play();
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 5
onClipEvent (load) {
lab = "MANLY";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.manShoe = 7;
_parent._parent.play();
}
}
Symbol 519 MovieClip Frame 8
visibleItems = "MAIN";
jMoveX = 20;
jMoveY = 40;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 8
onClipEvent (load) {
lab = "START";
size = 110;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "NEWSTART";
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 8
onClipEvent (load) {
lab = "OPTIONS";
size = 60;
}
on (release) {
_root.returnMenu = "MAIN";
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 8
onClipEvent (load) {
lab = "CREDITS";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 8
onClipEvent (load) {
lab = "PLAY MORE GAMES";
size = 65;
}
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 519 MovieClip Frame 9
_parent._parent.CREDITS._visible = true;
visibleItems = "MAIN2";
jMoveX = -40;
jMoveY = 40;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "SWAIN";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop(lab);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "JOHN";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop(lab);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "DAN";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop(lab);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "EA GAMES";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop("EA");
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "TONY";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop(lab);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "CHANDLER";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop(lab);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "MAIN";
_parent._parent._parent.CREDITS._visible = false;
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
}
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "MAKE A WISH";
}
on (release) {
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop("MAKEWISH");
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 9
onClipEvent (load) {
lab = "MUSIC";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "MUSIC";
_parent._parent._parent.CREDITS._visible = false;
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent._parent._parent.CREDITS.gotoAndStop("MUSIC");
}
}
Symbol 519 MovieClip Frame 10
visibleItems = "OPTIONS";
jMoveX = 20;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 10
onClipEvent (load) {
lab = "GRAPHICS";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 10
onClipEvent (load) {
lab = "SOUND";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 10
onClipEvent (load) {
lab = "DONE";
size = 60;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = _root.returnMenu;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 10
onClipEvent (load) {
lab = "CONTROLS";
}
on (release) {
_parent.attachMovie("CCS", "CCSMC", _parent.getNextHighestDepth());
_parent.CCSMC._x = -300;
_parent.CCSMC._y = -200;
}
Symbol 519 MovieClip Frame 11
visibleItems = "MAIN2";
jMoveX = -40;
jMoveY = 40;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 3;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 4;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 5;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 6;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 2;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
var stag = 1;
lab = "STAGE " + stag;
if (_root.levelsBeat < stag) {
lab = "LOCKED";
}
}
on (release) {
if (_root.levelsBeat >= stag) {
_parent.gotoLevel(stag);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_parent.setSpinPortrait(stag);
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 11
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "MAIN";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
}
}
Symbol 519 MovieClip Frame 12
visibleItems = "MAIN3";
jMoveX = -40;
jMoveY = 40;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 12
onClipEvent (load) {
lab = "SKIP";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "START";
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 12
onClipEvent (load) {
lab = "CREATE";
size = 80;
}
on (release) {
_root.returnMenu = "START";
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREATE";
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 12
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "MAIN";
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
}
}
Symbol 519 MovieClip Frame 14
visibleItems = "PAUSE";
jMoveX = 20;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 14
onClipEvent (load) {
lab = "SHOP";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 14
onClipEvent (load) {
lab = "CREATE";
}
on (release) {
_root.returnMenu = "PAUSE";
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 14
onClipEvent (load) {
lab = "QUIT GAME";
size = 60;
}
on (release) {
_root.returnMenu = "PAUSE";
_parent.changeMenu = 20;
_parent.changeMenuTarg = "QUIT";
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 14
onClipEvent (load) {
lab = "OPTIONS";
}
on (release) {
_root.returnMenu = "PAUSE";
_parent.changeMenu = 20;
_parent.changeMenuTarg = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 14
onClipEvent (load) {
lab = "UNPAUSE";
}
on (release) {
_root.gamePaused = false;
}
Symbol 519 MovieClip Frame 15
visibleItems = "PAUSE";
jMoveX = 20;
jMoveY = 0;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 15
onClipEvent (load) {
lab = "YOU SURE?";
}
on (release) {
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 15
onClipEvent (load) {
lab = "YES";
}
on (release) {
_root.gotoAndStop("TITLE");
_parent.changeMenu = 20;
_parent.changeMenuTarg = "MAIN";
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 15
onClipEvent (load) {
lab = "CANCEL";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = _root.returnMenu;
}
Symbol 519 MovieClip Frame 16
visibleItems = "GRAPHICS";
jMoveX = -90;
jMoveY = 30;
Instance of Symbol 477 MovieClip "AAL" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "LOW";
var ammount = 3;
if (_root.savefile.data.qualityV == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.AAH.size = 40;
_parent.AAM.size = 40;
this.size = 80;
_root.savefile.data.qualityV = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip "AAM" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "MEDIUM";
var ammount = 2;
if (_root.savefile.data.qualityV == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.AAH.size = 40;
_parent.AAL.size = 40;
this.size = 80;
_root.savefile.data.qualityV = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip "AAH" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "HIGH";
var ammount = 1;
if (_root.savefile.data.qualityV == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.AAL.size = 40;
_parent.AAM.size = 40;
this.size = 80;
_root.savefile.data.qualityV = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip "QL" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "STARK";
var ammount = 3;
if (_root.savefile.data.detail == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.QH.size = 40;
_parent.QM.size = 40;
this.size = 80;
_root.savefile.data.detail = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip "QM" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "PLAIN";
var ammount = 2;
if (_root.savefile.data.detail == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.QH.size = 40;
_parent.QL.size = 40;
this.size = 80;
_root.savefile.data.detail = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip "QH" in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "COMPLEX";
var ammount = 1;
if (_root.savefile.data.detail == ammount) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.QL.size = 40;
_parent.QM.size = 40;
this.size = 80;
_root.savefile.data.detail = ammount;
_root.savefile.flush();
_root._quality = lab;
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 16
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "OPTIONS";
}
Symbol 519 MovieClip Frame 17
visibleItems = "SOUND";
jMoveX = 20;
jMoveY = 0;
Instance of Symbol 477 MovieClip "AAL" in Symbol 519 MovieClip Frame 17
onClipEvent (load) {
lab = "MUSIC OFF";
var ammount = 1;
if (_root.savefile.data.musicV == false) {
size = 80;
} else {
size = 40;
}
}
on (release) {
stopAllSounds();
_parent.AAM.size = 40;
this.size = 80;
_root.savefile.data.musicV = false;
_root.savefile.flush();
}
Instance of Symbol 477 MovieClip "AAM" in Symbol 519 MovieClip Frame 17
onClipEvent (load) {
lab = "MUSIC ON";
var ammount = 1;
if (_root.savefile.data.musicV == true) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_root.forceMusic = true;
_parent.AAL.size = 40;
this.size = 80;
_root.savefile.data.musicV = true;
_root.savefile.flush();
_root.setMusic(_root.lastMusic);
trace("MUSIC CLICKED");
}
Instance of Symbol 477 MovieClip "QM" in Symbol 519 MovieClip Frame 17
onClipEvent (load) {
lab = "SFX OFF";
var ammount = 1;
if (_root.savefile.data.soundV == false) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.QH.size = 40;
this.size = 80;
_root.savefile.data.soundV = false;
_root.savefile.flush();
}
Instance of Symbol 477 MovieClip "QH" in Symbol 519 MovieClip Frame 17
onClipEvent (load) {
lab = "SFX ON";
var ammount = 1;
if (_root.savefile.data.soundV == true) {
size = 80;
} else {
size = 40;
}
}
on (release) {
_parent.QM.size = 40;
this.size = 80;
_root.savefile.data.soundV = true;
_root.savefile.flush();
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 17
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "OPTIONS";
}
Symbol 519 MovieClip Frame 20
visibleItems = "SHOP";
jMoveX = 20;
jMoveY = 20;
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 1;
lab = _root.shopName[ID];
if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "SOLD OUT";
_alpha = 80;
} else if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 2;
lab = _root.shopName[ID];
if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "SOLD OUT";
_alpha = 80;
} else if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 3;
lab = _root.shopName[ID];
if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "SOLD OUT";
_alpha = 80;
} else if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 4;
lab = _root.shopName[ID];
if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "SOLD OUT";
_alpha = 80;
} else if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 5;
lab = _root.shopName[ID];
if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
} else if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "PISTOL AMMO +25";
_alpha = 100;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 6;
lab = _root.shopName[ID];
if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
} else if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "SHOTGUN AMMO +12";
_alpha = 100;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 7;
lab = _root.shopName[ID];
if (_root.shopPrices[ID + _parent.offSetID] > _root.money) {
_alpha = 50;
} else if (_root.shopActive[ID + _parent.offSetID] == true) {
lab = "UZI AMMO +100";
_alpha = 100;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
var ID = 8;
lab = _root.shopName[ID];
if (_root.shopPrices[0] > _root.money) {
_alpha = 50;
} else if (_root.shopActive[0] == true) {
lab = "FLAMER AMMO +50";
_alpha = 100;
}
size = 65;
}
on (release) {
if (_alpha == 100) {
_parent.shopItem(ID);
}
}
on (rollOver, dragOver) {
if (_parent.changeMenu == 0) {
_root.shopSelect = ID;
}
}
Instance of Symbol 477 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
lab = "BACK";
size = 50;
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "PAUSE";
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 21
onClipEvent (load) {
lab = "VISIT SITE";
}
on (release) {
getURL ("http://derekaudette.ottawaarts.com/");
}
Instance of Symbol 481 MovieClip in Symbol 519 MovieClip Frame 21
onClipEvent (load) {
lab = "BACK";
}
on (release) {
_parent.changeMenu = 20;
_parent.changeMenuTarg = "CREDITS";
}
Symbol 519 MovieClip Frame 24
gotoAndStop(changeMenuTarg);
Symbol 529 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 536 MovieClip Frame 1
gotoAndStop(_root.manShoe);
Symbol 541 MovieClip Frame 5
stop();
Symbol 549 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 556 MovieClip Frame 1
gotoAndStop(_root.manShoe);
Symbol 559 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 573 MovieClip Frame 1
gotoAndStop(_root.manShirt);
Symbol 582 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 589 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 597 MovieClip Frame 1
gotoAndStop(_root.manSkin);
Symbol 603 MovieClip Frame 1
gotoAndStop(_root.manShirt);
Symbol 605 MovieClip Frame 1
gotoAndStop(_root.weaponID);
Symbol 608 MovieClip Frame 1
gotoAndStop(_root.weaponID);
Symbol 609 MovieClip Frame 1
gotoAndStop(_root.weaponType);
Symbol 617 MovieClip Frame 1
gotoAndStop(_root.manSkin);
if (_root.manHeadVis == false) {
_visible = false;
} else {
_visible = true;
}
Symbol 625 MovieClip Frame 1
gotoAndStop(_root.manHat);
Symbol 625 MovieClip Frame 2
_root.manHeadVis = false;
Symbol 625 MovieClip Frame 6
_root.manHeadVis = false;
Symbol 627 MovieClip Frame 39
gotoAndPlay (1);
Symbol 628 MovieClip Frame 18
gotoAndPlay (1);
Symbol 629 MovieClip Frame 25
stop();
Symbol 634 MovieClip Frame 4
stop();
Symbol 635 MovieClip Frame 26
stop();
Symbol 636 MovieClip Frame 6
stop();
Symbol 641 MovieClip Frame 5
stop();
Symbol 642 MovieClip Frame 29
stop();
Symbol 644 MovieClip Frame 1
stop();
if ((_root.weaponType == 1) && (_root.weaponID == 2)) {
gotoAndStop ("SHOOTGUN");
}
Symbol 644 MovieClip Frame 2
if ((_root.weaponType == 1) && (_root.weaponID == 2)) {
gotoAndStop ("SHOOTGUN");
}
Symbol 644 MovieClip Frame 3
if ((_root.weaponType == 1) && (_root.weaponID == 2)) {
gotoAndStop ("SHOOTGUN");
}
Symbol 645 MovieClip Frame 1
stop();
if (_root.SPEAKERTRUE == true) {
this.swapDepths(666 + random(2000));
_y = (_y + 2000);
this._visible = false;
this.removeMovieClip();
}
Symbol 645 MovieClip Frame 2
gotoAndStop ("CREATE");
Symbol 646 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 1
if (_root.SPEAKERTRUE) {
this.swapDepths(666);
this.removeMovieClip();
}
Symbol 652 MovieClip [MENU_SYSTEM] Frame 1
stop();
Symbol 652 MovieClip [MENU_SYSTEM] Frame 2
gotoAndStop (1);
Symbol 717 MovieClip Frame 1
gotoAndStop(_parent.levelNum);
Symbol 727 MovieClip Frame 4
stop();
Symbol 729 MovieClip Frame 1
gotoAndStop(_parent.levelNum);
Symbol 732 MovieClip Frame 20
_parent.gotoAndStop("RUN");
Symbol 735 MovieClip Frame 20
_parent.gotoAndStop("RUN");
Symbol 749 MovieClip Frame 28
_parent._parent.shootActive = false;
_parent._parent.gotoAndStop("RUN");
Symbol 750 MovieClip Frame 1
gotoAndStop(_parent.levelNum);
Symbol 751 MovieClip Frame 44
_parent._parent.strikeLock = false;
_parent._parent.gotoAndStop("RUN");
stop();
Symbol 758 MovieClip Frame 32
_parent._parent.strikeLock = false;
_parent._parent.gotoAndStop("RUN");
Symbol 761 MovieClip Frame 35
_parent._parent.strikeLock = false;
_parent._parent.gotoAndStop("RUN");
Symbol 762 MovieClip Frame 36
_parent._parent.strikeLock = false;
_parent._parent.gotoAndStop("RUN");
Symbol 763 MovieClip Frame 1
gotoAndStop(_parent.levelNum);
Symbol 765 MovieClip Frame 1
if (_root.levelNum != 1) {
gotoAndPlay (20);
}
Symbol 765 MovieClip Frame 33
stop();
Symbol 766 MovieClip [ENEMY_Grunt] Frame 2
stop();
Symbol 794 MovieClip [Explosion] Frame 14
this.removeMovieClip();
Symbol 794 MovieClip [Explosion] Frame 15
this._x = this._x + (random(60) - 30);
this._y = this._y + (random(120) - 60);
Symbol 803 MovieClip [DDR_Arrow] Frame 1
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
function onEnterFrame() {
if (_parent.FG._alpha < 50) {
var _local3 = 0;
while (_local3 < 6) {
if (this["nin" + _local3].timer == 0) {
this["nin" + _local3].timer = random(20) + 5;
this["nin" + _local3].gotoAndStop(random(4) + 1);
if (random(2) == 0) {
this["nin" + _local3]._xscale = this["nin" + _local3]._xscale * -1;
}
}
this["nin" + _local3].timer--;
_local3++;
}
}
}
var i = 0;
while (i < 6) {
this["nin" + i].timer = random(20) + 5;
this["nin" + i].gotoAndStop(random(4) + 1);
if (random(2) == 0) {
this["nin" + i]._xscale = this["nin" + i]._xscale * -1;
}
i++;
}
Symbol 813 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 1
_alpha = 80;
Symbol 822 MovieClip Frame 1
stop();
Symbol 827 MovieClip [DDR] Frame 1
function onEnterFrame() {
if (createMode == true) {
if (KPA == true) {
if (Key.isDown(37)) {
songArray.push(songTimer);
songArray.push(1);
KPA = false;
} else if (Key.isDown(40)) {
songArray.push(songTimer);
songArray.push(2);
KPA = false;
} else if (Key.isDown(38)) {
songArray.push(songTimer);
songArray.push(3);
KPA = false;
} else if (Key.isDown(39)) {
songArray.push(songTimer);
songArray.push(4);
KPA = false;
}
}
if ((((!Key.isDown(37)) && (!Key.isDown(40))) && (!Key.isDown(38))) && (!Key.isDown(39))) {
KPA = true;
}
} else {
if (Key.isDown(_root.leftKey)) {
playerState = 1;
} else if (Key.isDown(_root.downKey)) {
playerState = 2;
} else if (Key.isDown(_root.upKey)) {
playerState = 3;
} else if (Key.isDown(_root.rightKey)) {
playerState = 4;
}
DF.playerCon.gotoAndStop(playerState);
DF.playerArrow.gotoAndStop(playerState);
}
if ((_root.gamePaused == true) && (songPaused == false)) {
SONG.gotoAndStop(2);
songPaused = true;
} else if ((_root.gamePaused == false) && (songPaused == true)) {
SONG.gotoAndPlay(songTimer + 1);
}
if (_root.gamePaused == false) {
moveDF();
if (DF.compRW._alpha > 0) {
DF.compRW._alpha = DF.compRW._alpha - 10;
DF.compRW._xscale = DF.compRW._xscale + 10;
DF.compRW._yscale = DF.compRW._yscale + 10;
}
if (DF.playerRW._alpha > 0) {
DF.playerRW._alpha = DF.playerRW._alpha - 10;
DF.playerRW._xscale = DF.playerRW._xscale + 10;
DF.playerRW._yscale = DF.playerRW._yscale + 10;
}
if (songTimer < 20) {
} else if (songTimer < 40) {
if (DF._alpha < 100) {
DF._alpha = DF._alpha + 5;
}
} else if (songTimer < 60) {
if (DF.FG._alpha < 100) {
DF.FG._alpha = DF.FG._alpha + 5;
}
} else if (songTimer == 61) {
DF.BG._alpha = 100;
} else if (songTimer < 400) {
DF.FG._alpha = random(3) + 97;
} else {
DF.FG._alpha = random(30) + 10;
}
songPaused = false;
songTimer++;
var _local3 = songArray[songPos];
var _local2 = songArray[songPos + 1];
songCodeComputer = songArray[songPos + 3];
if (songTimer == 1850) {
if (playerScore > compScore) {
_root.playSound("CHANDpwn");
} else {
_root.playSound("CHANDhurt");
}
}
if (_local3 == (songTimer - songOffset)) {
if (_local2 == null) {
resetDDR();
} else {
newArrow(_local2);
songPos = songPos + 2;
}
}
updateArrows();
}
}
function newArrow(row) {
var _local1 = ARROWS.attachMovie("DDR_Arrow", "DDR" + arrowDepth, arrowDepth);
if (hardMode == true) {
row = random(4) + 1;
}
arrowDepth++;
_local1._xscale = 60;
_local1._yscale = 60;
_local1._x = (50 * row) + 200;
_local1._y = 450;
_local1.currentState = row;
_local1.hitSwitch = false;
_local1.guessSwitch = false;
_local1.gotoAndStop(row);
arrowArray.push(_local1);
return(_local1);
}
function updateArrows() {
if (DF.computerFade._alpha > 0) {
DF.computerFade._alpha = DF.computerFade._alpha - 20;
}
compChoiceTimer--;
var _local2 = 0;
while (_local2 < arrowArray.length) {
var _local1 = arrowArray[_local2];
_local1._xscale = _local1._xscale + ((60 - _local1._xscale) / 10);
_local1._yscale = _local1._xscale;
_local1._y = _local1._y - arrowSpeed;
guessBar._alpha = guessBar._alpha + ((60 - guessBar._alpha) / 10);
if ((_local1._y < 100) && (_local1.hitSwitch == false)) {
guessBar._alpha = 100;
_local1.hitSwitch = true;
_local1._xscale = 150;
var _local3 = playerScore;
var _local4 = compScore;
playerScore = playerScore + checkState(playerState, _local1.currentState);
compScore = compScore + checkState(compChoice, _local1.currentState);
if (_local3 == playerScore) {
DF.playerRW.gotoAndStop(2);
} else {
DF.playerRW.gotoAndStop(1);
}
if (_local4 == compScore) {
DF.compRW.gotoAndStop(2);
} else {
DF.compRW.gotoAndStop(1);
}
DF.playerRW._xscale = 80;
DF.playerRW._yscale = 80;
DF.playerRW._alpha = 100;
DF.compRW._xscale = 80;
DF.compRW._yscale = 80;
DF.compRW._alpha = 100;
compChoiceMade = false;
compChoiceTimer = random(3) + 2;
}
if ((((compChoiceTimer < 0) && (compChoiceMade == false)) && (_local1.hitSwitch == false)) && (_local1._y < 300)) {
setComputerChoice(_local1.currentState);
compChoiceMade = true;
}
if (_local1._y < -40) {
_local1.remove = true;
}
if (_local1.remove == true) {
_local1.removeMovieClip();
arrowArray.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function resetDDR() {
if (setup == true) {
if (playerScore > compScore) {
if (_root.DDR2 == true) {
_root.setFade(_root.whiteFade, 200);
_root.levelNum++;
_root.stageNum = 1;
_root.gotoAndStop("CUTSCENE_" + _root.levelNum);
} else {
_root.DDR2 = true;
_root.gotoAndStop("RELOADLEVEL_S");
}
} else {
_root.gotoAndStop("RELOADLEVEL_F");
}
} else {
setup = true;
songTimer = 0;
SONG.gotoAndPlay(1);
songPos = 0;
DF.BG._alpha = 0;
DF.FG._alpha = 0;
DF._alpha = 0;
}
}
function checkState(a, b) {
if (a == b) {
return(4);
}
return(0);
}
function setComputerChoice(s) {
DF.computerFade.gotoAndStop(computerCon._currentframe);
DF.computerFade._alpha = 100;
if (compChoice != undefined) {
compChoice = s;
}
if (compChoice != oldChoice) {
if (hardMode == true) {
if (random(4) == 1) {
compChoice = random(4) + 1;
}
} else if (random(3) == 1) {
compChoice = random(4) + 1;
}
}
DF.computerCon.gotoAndStop(compChoice);
DF.compArrow.gotoAndStop(compChoice);
oldChoice = compChoice;
}
function moveDF() {
if (DFDestTimer[0] == 0) {
DFDest[0] = (random(100) - 50) / 10;
DFDestTimer[0] = random(40) + 40;
DFDestSpeed[0] = random(40) + 60;
}
if (DFDestTimer[1] == 0) {
DFDest[1] = (random(100) - 50) / 10;
DFDestTimer[1] = random(40) + 40;
DFDestSpeed[1] = random(40) + 60;
}
if (DFDestTimer[2] == 0) {
DFDest[2] = random(50) + 75;
DFDestTimer[2] = random(40) + 40;
DFDestSpeed[2] = random(40) + 60;
}
if (DFDestTimer[3] == 0) {
DFDest[3] = random(30) - 15;
DFDestTimer[3] = random(40) + 40;
DFDestSpeed[3] = random(40) + 60;
}
DFDestTimer[0]--;
DFDestTimer[1]--;
DFDestTimer[2]--;
DFDestTimer[3]--;
DF._x = DF._x + (((DFDest[0] - DF._x) + 325) / DFDestSpeed[0]);
DF._y = DF._y + (((DFDest[1] - DF._y) + 200) / DFDestSpeed[1]);
DF._xscale = DF._xscale + ((DFDest[2] - DF._xscale) / DFDestSpeed[2]);
DF._yscale = DF._xscale;
DF._rotation = DF._rotation + ((DFDest[3] - DF._rotation) / DFDestSpeed[3]);
}
var hardMode = false;
if (_root.DDR2 == true) {
hardMode = true;
}
SONG.stop();
var setup = false;
var arrowArray = new Array();
var arrowDepth = 0;
var songTimer = 0;
var songPaused = false;
var createMode = false;
var songOffset = -75;
var arrowSpeed = 5;
var songPos = 0;
var playerState = 1;
var playerScore = 0;
var compScore = 0;
_root.upKey = 38;
_root.downKey = 40;
_root.rightKey = 39;
_root.leftKey = 37;
if (hardMode == true) {
songOffset = Math.round(songOffset / 2);
arrowSpeed = arrowSpeed * 2;
}
_root.gamePaused = false;
var songArray = new Array(90, 4, 108, 1, 129, 4, 148, 1, 168, 4, 189, 1, 208, 4, 229, 1, 249, 4, 269, 1, 289, 4, 410, 1, 416, 1, 430, 1, 449, 4, 454, 4, 468, 4, 489, 1, 495, 1, 508, 1, 530, 4, 534, 4, 547, 4, 569, 3, 582, 3, 588, 3, 598, 3, 609, 2, 614, 2, 619, 2, 625, 2, 632, 2, 649, 3, 659, 3, 668, 3, 680, 3, 690, 1, 699, 1, 709, 1, 734, 4, 748, 1, 769, 4, 789, 1, 809, 2, 829, 3, 849, 2, 870, 3, 889, 4, 909, 1, 930, 4, 949, 1, 970, 3, 989, 2, 1009, 1, 1049, 4, 1070, 4, 1089, 1, 1108, 1, 1130, 3, 1146, 3, 1162, 3, 1172, 3, 1182, 2, 1191, 2, 1201, 2, 1213, 1, 1231, 4, 1249, 1, 1268, 4, 1290, 2, 1311, 3, 1331, 1, 1351, 4, 1370, 3, 1390, 1, 1410, 2, 1429, 4, 1450, 1, 1468, 4, 1489, 1, 1508, 3, 1529, 2, 1548, 3, 1570, 4, 1591, 1, 1611, 2, 1630, 4, 1650, 3, 1670, 1, 1691, 1, 1711, 4, 1730, 2, 2000, null);
var KPA = true;
var songCodeComputer;
resetDDR();
_root.SPEAKERTRUE = true;
if (_root.DDR2 == true) {
_root.SPEAKERPOS = 4;
} else {
_root.SPEAKERPOS = 3;
}
songPaused = true;
_root.gamePaused = true;
_root.callMenu("SPEAKER");
var compChoiceMade = false;
var compChoiceTimer = 0;
var compChoice = 4;
var oldChoice = 0;
DF.playerRW._alpha = 0;
DF.compRW._alpha = 0;
var DFDest = new Array(0, 0, 0, 0);
var DFDestTimer = new Array(0, 0, 0, 0);
var DFDestSpeed = new Array(0, 0, 0, 0);
Symbol 832 MovieClip [Item Ammo] Frame 1
function onPress() {
if (_alpha == 100) {
if (val == 0) {
_root.weaponType = 1;
_root.weaponID = 4;
} else if (val > 5) {
_root.weaponType = 1;
_root.weaponID = val - 5;
} else {
_root.weaponType = 2;
_root.weaponID = val;
}
}
_root.resetPlayer();
}
stop();
Symbol 842 Button
on (release) {
if (Number(verCount) < 901240) {
_root.gotoAndStop("UPDATEPLAYER");
} else {
nextFrame();
}
}
Symbol 846 MovieClip Frame 1
function onEnterFrame() {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_yscale = PercentLoaded;
if ((PercentLoaded == 100) && (_root.playBut._y < 0)) {
_root.play();
}
}
_root.playBut._y = _root.playBut._y - 1000;
Symbol 861 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 864 MovieClip Frame 1
_root.stop();
Symbol 864 MovieClip Frame 161
_root.play();
Symbol 875 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 910 MovieClip Frame 7
stop();
Symbol 917 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 927 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 941 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if (this.hitTest(_parent._parent._parent.MERC)) {
if (hitKey == false) {
_root.playSound("CHANDkey");
}
hitKey = true;
_root.keyGot = true;
}
if (hitKey == true) {
if (_xscale > 0) {
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
} else {
this._y = -10000;
}
scaler = scaler - 0.5;
_rotation = (_rotation + (scaler - 5));
}
}
xSpeed = 5;
scaler = 5;
hitKey = false;
Symbol 942 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent._parent._parent.MERC.hit)) {
_parent._parent._parent.hurtMan(10);
}
}
_alpha = 0;
Symbol 955 MovieClip Frame 1
MAN._yscale = 1;
MAN._xscale = 1;
Symbol 955 MovieClip Frame 5
gotoAndStop (2);
Symbol 958 MovieClip Frame 1
function onEnterFrame() {
if (_root.TURRETACTIVE == false) {
gunActive = false;
TURRET.MAN._xscale = 1;
TURRET.MAN._yscale = 1;
}
localLock--;
if ((((localLock < 0) && (STAND.hitTest(_parent._parent._parent.MERC))) && (Key.isDown(_root.grenadeKey))) && (_root.turretLock == false)) {
_root.turretLock = true;
TURRET.MAN._xscale = 100;
TURRET.MAN._yscale = 100;
gunActive = true;
} else if (!Key.isDown(_root.grenadeKey)) {
_root.turretLock = false;
}
if (gunActive == true) {
_root.TURRETACTIVE = true;
if (Key.isDown(_root.upKey)) {
AIMER._y = AIMER._y - 15;
} else if (Key.isDown(_root.downKey)) {
AIMER._y = AIMER._y + 15;
}
if (Key.isDown(_root.rightKey)) {
AIMER._x = AIMER._x + 15;
} else if (Key.isDown(_root.leftKey)) {
AIMER._x = AIMER._x - 15;
}
AIMER._x = AIMER._x / 1.02;
AIMER._y = AIMER._y / 1.02;
if (AIMER._y > -20) {
AIMER._y = -20;
}
var _local4 = new Object();
_local4.x = AIMER._x;
_local4.y = AIMER._y;
localToGlobal(_local4);
_parent._parent._parent.globalToLocal(_local4);
_parent._parent._parent.MERC._visible = false;
_parent._parent._parent.MERC._x = _local4.x;
_parent._parent._parent.MERC._y = _local4.y + 200;
var _local5;
if (AIMER._x > 0) {
TURRET._xscale = tScale;
_local5 = Math.round((Math.atan2(-AIMER._y, -AIMER._x) / 3.141593) * 180) + 180;
_root.TURRETANGLE = _local5;
} else {
TURRET._xscale = -tScale;
_local5 = Math.round((Math.atan2(-AIMER._y, -AIMER._x) / 3.141593) * 180);
_root.TURRETANGLE = _local5 + 180;
}
_root.TURRETPOSX = (this._x + _parent._x) + _parent._parent._x;
_root.TURRETPOSY = (this._y + _parent._y) + _parent._parent._y;
TURRET._rotation = _local5;
_root.CURRENTTURRET = this;
}
}
gunActive = false;
shiftSwitch = false;
var tScale = TURRET._xscale;
localLock = 0;
Symbol 972 MovieClip Frame 1
function onEnterFrame() {
if (_root.keyGot == true) {
if (this.hitTest(targDepth.MERC)) {
if (broken != true) {
_root.playSound("CHANDkey");
}
broken = true;
}
}
if (broken == true) {
this._yscale = this._yscale - 15;
this._xscale = this._xscale - 15;
if (this._yscale < 0) {
this._yscale = 0;
this._y = -10000;
if (keyTurnOff == false) {
keyTurnOff = true;
_root.keyGot = false;
}
}
}
}
var targDepth = _parent._parent._parent._parent;
if (_parent._parent._parent._parent.MERC._x == undefined) {
targDepth = _parent._parent._parent;
}
keyTurnOff = false;
Symbol 975 MovieClip Frame 2
stop();
_parent._parent._parent.newCoin(this);
Instance of Symbol 42 MovieClip in Symbol 977 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.MERC)) {
_parent._parent._parent.hurtMan(10, 0, -50);
}
}
Instance of Symbol 42 MovieClip in Symbol 979 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.MERC)) {
_parent._parent._parent.hurtMan(10, 0, -50);
}
}
Instance of Symbol 982 MovieClip "endLevel" in Symbol 1031 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.MERC)) {
_root.setFade(_root.whiteFade, 200);
_root.DDR2 = false;
_root.gotoAndStop("LEVEL2");
}
}
Symbol 1049 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Instance of Symbol 982 MovieClip "endLevel" in Symbol 1049 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.MERC)) {
_root.setFade(_root.whiteFade, 200);
_root.DDR2 = false;
_root.gotoAndStop("LEVEL3");
}
}
Instance of Symbol 1011 MovieClip in Symbol 1049 MovieClip Frame 8
onClipEvent (load) {
hitActive = false;
hit._alpha = 1;
}
onClipEvent (enterFrame) {
if (this.hit.hitTest(_parent._parent._parent.MERC)) {
hitActive = true;
}
if (hitActive == true) {
_parent._parent._parent.MERC._yscale = _parent._parent._parent.MERC._yscale / 1.1;
_parent._parent._parent.MERC._alpha = random(100);
_parent._parent._parent.MERC.xSpeed = 0;
_parent._parent._parent.MERC.ySpeed = 0;
_parent._parent._parent.MERC._y = _parent._parent._parent.MERC._y - 5;
if ((_parent._parent._parent.MERC._yscale > -1) && (_parent._parent._parent.MERC._yscale < 1)) {
_root.gotoAndStop("LOADNEXTSTAGE");
}
}
}
Instance of Symbol 982 MovieClip "endLevel" in Symbol 1049 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.MERC)) {
_root.setFade(_root.whiteFade, 200);
_root.DDR2 = false;
_root.gotoAndStop("LEVEL2");
}
}
Symbol 1057 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 1060 MovieClip Frame 1
_alpha = 0;
Symbol 1061 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 1062 MovieClip Frame 1
_alpha = 0;
Symbol 1063 MovieClip Frame 1
_parent._parent.newExplosive(this);
Symbol 1064 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 1091 MovieClip Frame 1
function onEnterFrame() {
if (_root.hitBoss == true) {
this.gotoAndPlay(25);
}
}
Symbol 1091 MovieClip Frame 24
gotoAndPlay (1);
Symbol 1105 MovieClip Frame 2
stop();
Symbol 1172 MovieClip Frame 45
function onEnterFrame() {
var _local2 = 0;
while (_local2 < 5) {
_parent._parent.newFragments(2, (_parent._x - random(300)) - 50, (_parent._y + random(300)) + 50, 100, 6, 5);
_local2++;
}
}
Symbol 1172 MovieClip Frame 55
this.swapDepths(666);
this.removeMovieClip();
Symbol 1198 MovieClip Frame 22
Symbol 1199 MovieClip Frame 1
function onEnterFrame() {
if (_parent.bossActive == true) {
if (_root.gamePaused == false) {
play();
} else {
stop();
}
}
}
Symbol 1199 MovieClip Frame 38
if (_parent.bossActive != true) {
currentState = "STAND";
} else if (_parent.MERC.ySpeed < 0) {
currentState = "FLAME";
} else if ((this._x - _parent.MERC._x) < 350) {
currentState = "SLASH";
} else {
var sel = random(4);
if (sel == 0) {
currentState = "STAND";
} else if (sel == 1) {
currentState = "GUN";
} else if ((sel == 2) || (sel == 3)) {
currentState = "FLAME";
}
}
gotoAndPlay(currentState);
Symbol 1199 MovieClip Frame 83
_parent.shakeScreen(15, 30);
Symbol 1199 MovieClip Frame 116
gotoAndPlay (1);
Symbol 1199 MovieClip Frame 142
_parent.shakeScreen(30, 15);
Symbol 1199 MovieClip Frame 196
gotoAndPlay (1);
Symbol 1199 MovieClip Frame 228
gotoAndPlay (1);
Instance of Symbol 1172 MovieClip in Symbol 1199 MovieClip Frame 230
onClipEvent (load) {
stop();
}
Symbol 1199 MovieClip Frame 252
_parent.shakeScreen(30, 15);
Symbol 1207 MovieClip Frame 1
function onEnterFrame() {
if (_parent.bossActive == true) {
if (_root.gamePaused == false) {
play();
} else {
stop();
}
}
}
Symbol 1207 MovieClip Frame 50
if (random(8) == 1) {
currentState = "SHOOT";
} else {
currentState = "FLY";
gotoAndPlay (1);
}
Symbol 1261 MovieClip Frame 1
function onEnterFrame() {
if (_parent.bossActive == true) {
if (_root.gamePaused == false) {
play();
} else {
stop();
}
}
}
Symbol 1261 MovieClip Frame 48
if (random(3) == 1) {
mercPosX = _parent.MERC._x;
mercPosY = _parent.MERC._y - 80;
currentState = "SHOOT";
} else {
currentState = "FLY";
gotoAndPlay (1);
}
Symbol 1261 MovieClip Frame 101
currentState = "FLY";
Symbol 1276 MovieClip Frame 4
currentState = "FLY";
Symbol 1276 MovieClip Frame 35
if (random(5) == 0) {
currentState = "SHOOT";
} else {
currentState = "FLY";
gotoAndPlay (1);
}
Symbol 1276 MovieClip Frame 71
shoot = true;
gotoAndPlay (1);
Symbol 1276 MovieClip Frame 76
currentState = "ALIEN";
Instance of Symbol 1261 MovieClip "BOSS_3" in Symbol 1276 MovieClip Frame 76
onClipEvent (load) {
if ((_root.stageNum != 3) || (_root.levelNum != 3)) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Symbol 1276 MovieClip Frame 77
currentState = "ROBOT";
Instance of Symbol 1199 MovieClip "BOSS_1" in Symbol 1276 MovieClip Frame 77
onClipEvent (load) {
if ((_root.stageNum != 3) || (_root.levelNum != 1)) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Symbol 1276 MovieClip Frame 78
currentState = "WITCH";
Instance of Symbol 1207 MovieClip "WITCH" in Symbol 1276 MovieClip Frame 78
onClipEvent (load) {
if ((_root.stageNum != 3) || (_root.levelNum != 5)) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Symbol 1279 MovieClip Frame 30
stop();
Symbol 1280 MovieClip Frame 1
function onEnterFrame() {
timer++;
if (timer == 200) {
_root.gotoAndStop("RELOADLEVEL_F");
}
}
Symbol 1280 MovieClip Frame 15
stop();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 30
gotoAndStop (1);
Symbol 1287 MovieClip Frame 1
gotoAndStop((("L" + _root.levelNum) + "S") + _root.stageNum);
Symbol 1288 MovieClip Frame 1
function newCoin(targ) {
targ._rotation = random(360);
coinArray.push(targ);
}
function checkCoins() {
var _local2 = 0;
while (_local2 < coinArray.length) {
coinArray[_local2]._rotation = coinArray[_local2]._rotation + 5;
if (coinArray[_local2].hitTest(MERC)) {
var _local3 = new Object();
_local3.x = coinArray[_local2]._x;
_local3.y = coinArray[_local2]._y;
G_Visual.G_Visual.localToGlobal(_local3);
globalToLocal(_local3);
newMoney(25, _local3.x, _local3.y);
_root.playSound("CHANDcoin");
coinArray[_local2]._y = coinArray[_local2]._y - 10000;
}
_local2++;
}
_local2 = 0;
while (_local2 < 9) {
_root.HUD["item" + _local2].selSquare._alpha = 0;
if (_root.weaponType == 1) {
if ((_root.weaponID + 5) == _local2) {
_root.HUD["item" + _local2].selSquare._alpha = 100;
}
} else if (_root.weaponID == _local2) {
_root.HUD["item" + _local2].selSquare._alpha = 100;
}
_local2++;
}
}
function onMouseDown() {
}
function onMouseUp() {
mousePressed = false;
}
function newMoney(ammount, xPos, yPos) {
ammount = Math.round(ammount / 3);
var _local1 = EFFECTS.attachMovie("MoneyMC", "M" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local1.txt.text = "$" + ammount;
_local1._x = xPos;
_local1._y = yPos;
_local1.yPos = _local1._y - 50;
moneySymbols.push(_local1);
moneyPot = moneyPot + ammount;
moneyMax = moneyMax + ammount;
}
function updateMoney() {
if (moneyPot > 0) {
_root.money = _root.money + moneyPot;
moneyPot = 0;
}
_root.HUD.money.text = "$" + _root.money;
}
function pythag(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y1 - y2, 2) + Math.pow(x1 - x2, 2)));
}
function angle(x1, y1, x2, y2) {
return(Math.round((Math.atan2(y2 - y1, x2 - x1) / 3.141593) * 180) + 90);
}
function calcSpeed(angle, speed) {
var _local2 = angle * 0.01745329;
var _local1 = new Object();
_local1.x = speed * Math.cos(_local2);
_local1.y = speed * Math.sin(_local2);
return(_local1);
}
function rotatedXY(xPos, yPos, rotate) {
var _local1 = new Object();
var _local2 = 0.0174444444444444 * rotate;
var _local4 = Math.sin(_local2);
var _local3 = Math.cos(_local2);
_local1.x = (xPos * _local3) - (yPos * _local4);
_local1.y = (xPos * _local4) + (yPos * _local3);
return(_local1);
}
function spriteControl() {
MERC.upper._y = MERC.upperPos;
MERC.lower._y = MERC.lowerPos;
MERC.duckSpeed = 1;
if (grenadeTimer == 0) {
mercSwipe--;
if (mercSwipe >= 0) {
MERC.upper.gotoAndStop("BASH");
} else {
MERC.upper.gotoAndStop("STR");
}
if (!Key.isDown(_root.downKey || (_root.downKey2))) {
mercTopOffset = 0;
} else {
mercTopOffset = 45;
}
if ((MERC.touchBuffer > 2) && (Key.isDown(_root.downKey || (_root.downKey2)))) {
mercTopOffset = 0;
MERC.fireUp = -90;
if (mercSwipe < 0) {
MERC.upper.gotoAndStop("DWN");
}
} else if (Key.isDown(_root.upKey || (_root.upKey2))) {
mercTopOffset = 0;
MERC.fireUp = 90;
if (Key.isDown(_root.downKey || (_root.downKey2))) {
}
if (mercSwipe < 0) {
MERC.upper.gotoAndStop("UP");
}
} else {
if (Key.isDown(_root.downKey || (_root.downKey2))) {
if (MERC.currentlyJumping == false) {
setCharacterPose("DUCK");
poseLowerLockTimer = 1;
MERC.upper._y = MERC.upperPos + 40;
MERC.lower._y = MERC.lowerPos + 35;
MERC.duckSpeed = 0;
}
} else {
MERC.fireUp = 0;
}
if (mercSwipe < 0) {
MERC.upper.gotoAndStop("STR");
}
}
} else {
MERC.upper.gotoAndStop("GRENADE");
grenadeTimer--;
}
if (MERC.touchBuffer > 10) {
MERC.currentlyJumping = true;
setCharacterPose("JUMP");
poseLowerLockTimer = 1;
MERC._rotation = MERC._rotation / 1.5;
}
if (DUCKACTIVE == true) {
}
}
function newGrenade(xPos, yPos) {
if (_root.TURRETACTIVE == true) {
MERC._visible = true;
_root.CURRENTTURRET.AIMER._x = 0;
_root.CURRENTTURRET.AIMER._y = 0;
MERC._x = _root.TURRETPOSX;
MERC._y = _root.TURRETPOSY;
MERC.xSpeed = 0;
MERC.ySpeed = -10;
if (_root.turretLock == false) {
_root.CURRENTTURRET.localLock = 20;
_root.CURRENTTURRET = undefined;
_root.TURRETACTIVE = false;
}
} else {
_root.resetPlayer();
_root.weaponSelect++;
while (_root.HUD["item" + _root.weaponSelect]._alpha != 100) {
_root.weaponSelect++;
if (_root.weaponSelect > 9) {
_root.weaponSelect = 0;
}
}
if (_root.weaponSelect > 9) {
_root.weaponSelect = 0;
}
if (_root.weaponSelect == 0) {
_root.weaponID = 4;
_root.weaponType = 1;
} else if (_root.weaponSelect > 5) {
_root.weaponID = _root.weaponSelect - 5;
_root.weaponType = 1;
} else {
_root.weaponID = _root.weaponSelect;
_root.weaponType = 2;
}
_root.resetPlayer();
}
}
function HUDAMMO() {
var _local2 = 0;
while (_local2 < 9) {
if (_root.shopActive[_local2] == false) {
_root.HUD["item" + _local2];
}
_local2++;
}
_root.HUD.item0.ammo = _root.killGunAmmoArray[4];
if (_root.HUD.item0.ammo > 0) {
_root.HUD.item0._alpha = 100;
} else if (_root.HUD.item0.ammo == "") {
_root.HUD.item0._alpha = 25;
} else {
_root.HUD.item0._alpha = 75;
}
_root.HUD.item6.ammo = _root.killGunAmmoArray[1];
if (isNaN(_root.HUD.item6.ammo)) {
_root.HUD.item6.ammo = "";
}
if (_root.HUD.item6.ammo > 0) {
_root.HUD.item6._alpha = 100;
} else if (_root.HUD.item6.ammo == "") {
_root.HUD.item6._alpha = 25;
} else {
_root.HUD.item6._alpha = 75;
}
_root.HUD.item7.ammo = _root.killGunAmmoArray[2];
if (_root.HUD.item7.ammo > 0) {
_root.HUD.item7._alpha = 100;
} else if (_root.HUD.item7.ammo == "") {
_root.HUD.item7._alpha = 25;
} else {
_root.HUD.item7._alpha = 75;
}
_root.HUD.item8.ammo = _root.killGunAmmoArray[3];
if (_root.HUD.item8.ammo > 0) {
_root.HUD.item8._alpha = 100;
} else if (_root.HUD.item8.ammo == "") {
_root.HUD.item8._alpha = 25;
} else {
_root.HUD.item8._alpha = 75;
}
_local2 = 0;
while (_local2 < 9) {
if (_root.shopActive[_local2] == false) {
_root.HUD["item" + _local2]._alpha = 25;
}
_local2++;
}
}
function mercFire() {
if (CBT == 0) {
aimerFire = -90 + (90 * MERC.scaleStore);
_root.gameTimer++;
if ((Key.isDown(_root.grenadeKey) || (Key.isDown(_root.grenadeKey2))) && (grenadeSwitch == false)) {
newGrenade(MERC._x, MERC._y - 35);
grenadeSwitch = true;
grenadeAmmo--;
} else if ((!Key.isDown(_root.grenadeKey)) && (!Key.isDown(_root.grenadeKey2))) {
grenadeSwitch = false;
}
if (killGunAmmo > 0) {
MERC.upper.altGun._visible = true;
_root.HUD.iconInf._visible = false;
_root.HUD.ammoNum = killGunAmmo;
if ((killGunAlt == 0) && (_root.weaponType == 1)) {
killGunAlt = 2;
fireSwitch = false;
} else {
killGunAlt--;
}
} else {
MERC.upper.altGun._visible = false;
_root.HUD.itemIcon._visible = false;
_root.HUD.iconInf._visible = true;
_root.HUD.ammoNum = "";
}
if ((Key.isDown(_root.shootKey || (_root.shootKey2)) || (mousePressed == true)) && (fireSwitch == false)) {
if (jimmy) {
} else {
if ((MERC.fireUp == -90) && (MERC.ySpeed > 0)) {
} else if ((MERC.fireUp == -45) && (MERC.ySpeed > 0)) {
MERC.ySpeed = 1;
}
fireSwitch = true;
var _local7 = rotatedXY(MERC.upper._x, MERC.upper._y / 2, MERC._rotation);
var _local3;
var _local5;
var _local6;
_local5 = MERC._x + (-55 * MERC.scaleStore);
_local6 = -25 + ((MERC._y + MERC.upperPos) + (30 - (30 * MERC.duckSpeed)));
_root.levelValue1++;
if ((_root.weaponType == 1) || (_root.TURRETACTIVE == true)) {
if ((_root.killGunAmmoArray[_root.weaponID] > 0) || (_root.TURRETACTIVE == true)) {
_root.killGunAmmoArray[_root.weaponID]--;
if (_root.TURRETACTIVE == true) {
_root.killGunAmmoArray[_root.weaponID]++;
kgr = 4;
kgrA = true;
_local3 = newBullet(_root.TURRETPOSX, _root.TURRETPOSY, "KillGunFlame", _root.TURRETANGLE);
_root.playSound("KILLGUNFLAME");
_local3._x = _local3._x + (_local3.speed.x * 3);
_local3._y = _local3._y + (_local3.speed.y * 3);
_root.CURRENTTURRET.TURRET.play();
} else if (_root.weaponID == 1) {
kgr = 10;
kgrA = false;
_local3 = newBullet(_local5 + (MERC.scaleStore * 100), _local6, "Rifle", aimerFire);
_root.playSound("SHOT");
} else if (_root.weaponID == 2) {
kgr = 40;
kgrA = false;
var _local2 = 0;
while (_local2 < 10) {
_local3 = newBullet(_local5 + (MERC.scaleStore * 100), _local6 + 20, "Rifle", (aimerFire + random(50)) - 25);
_local2++;
}
_root.playSound("SHOT");
_root.playSound("SHOTGUN");
} else if (_root.weaponID == 3) {
_local3 = newBullet(_local5 + (MERC.scaleStore * 100), _local6, "KillGun", aimerFire);
_root.playSound("KILLGUN");
kgr = 1;
kgrA = true;
} else if (_root.weaponID == 4) {
_local3 = newBullet(_local5 + (MERC.scaleStore * 140), _local6, "KillGunFlame", aimerFire);
_root.playSound("KILLGUNFLAME");
kgr = 4;
kgrA = true;
}
} else {
var _local4 = 10;
while ((_root.killGunAmmoArray[_root.weaponID] == 0) || (_root.killGunAmmoArray[_root.weaponID] == "")) {
_root.weaponID++;
if (_root.weaponID > 4) {
_root.weaponID = 1;
}
_local4--;
if (_local4 == 0) {
_root.weaponType = 2;
if (_root.shopActive[4]) {
_root.weaponID = 4;
} else if (_root.shopActive[3]) {
_root.weaponID = 3;
} else if (_root.shopActive[2]) {
_root.weaponID = 2;
} else if (_root.shopActive[1]) {
_root.weaponID = 1;
}
break;
}
_root.resetPlayer();
}
}
setCharacterPose("SHOOT", true);
if (_root.killGunAmmoArray[_root.weaponID] > 0) {
shakeScreen(5, 2);
}
} else {
kgrA = false;
kgr = 5;
poseUpperLockTimer = -1;
if (random(2) == 0) {
setCharacterPose("SLASH", true);
_root.playSound("SLASH1");
} else {
setCharacterPose("SLASH2", true);
_root.playSound("SLASH2");
}
cycleTimer = 5;
_local3._y = -10000;
}
if (_root.weaponType == 1) {
newEffect("Smoke", _local3._x, _local3._y, 150, random(360), 50);
}
MERC.upper.sprite.gotoAndPlay(1);
poseUpperLockTimer = 25;
}
} else if (((kgr < 0) && ((kgrA = true || (Key.isDown(_root.shootKey || (_root.shootKey2)) == false)))) && (mousePressed == false)) {
fireSwitch = false;
}
if (cycleTimer > 0) {
cycleExplosives(0, -10000);
cycleTimer--;
}
}
kgr--;
}
function shakeScreen(ammount, time) {
screenShake = ammount;
shakeTime = time;
}
function updateShake() {
updateDamage();
if (shakeTime > 0) {
_parent._y = _parent._y + (random(screenShake) * shakeDir);
_parent._x = _parent._x + (random(screenShake) * shakeDir);
shakeDir = shakeDir * -1;
shakeTime--;
} else {
screenShake = 0;
}
_parent._y = _parent._y / 1.1;
}
function onEnterFrame() {
if (MERC._y > 1500) {
_root.gotoAndStop("RELOADLEVEL_F");
}
HUDAMMO();
updateMoney();
if (_root.gamePaused == false) {
checkCoins();
moneySymbolUpdate();
if ((_root.levelNum == 1) && (_root.stageNum == 1)) {
if (introMessage > 0) {
introMessage--;
} else if (introMessage == 0) {
introMessage--;
_root.SPEAKERTRUE = true;
_root.SPEAKERPOS = 0;
MERC.sprite.upper.gotoAndStop("Stand");
MERC.sprite.lower.gotoAndStop("Stand");
_root.gamePaused = true;
_root.callMenu(targ);
}
}
enemyStartTimer--;
poseUpperLockTimer--;
poseLowerLockTimer--;
updateFragments();
heli();
if (_root.TURRETACTIVE == false) {
if (Key.isDown(_root.jumpKey) || (Key.isDown(_root.jumpKey2))) {
if (CBT == 0) {
MERC.jumpKeyPressed = true;
}
} else {
MERC.jumpKeyPressed = false;
}
charJump(MERC);
}
updateBullets_Grenade();
updateBullets_Rifle();
updateBullets_KillGun();
updateBullets_killGunFlame();
updateBullets_KillGunRocket();
updateBullets_HeliRocket();
updateBullets_GruntGun();
updateBullets_KillGunRocket();
updateKillGunItem();
mercDropGun = false;
if (CBT == 0) {
if (Key.isDown(_root.rightKey) || (Key.isDown(_root.rightKey2))) {
CharacterTilt(MERC, 1);
MERC.xSpeed = MERC.xSpeed + 3;
} else if (Key.isDown(_root.leftKey) || (Key.isDown(_root.leftKey2))) {
CharacterTilt(MERC, -1);
MERC.xSpeed = MERC.xSpeed - 3;
} else {
MERC.tiltVar = 0;
MERC.upper._y = MERC.upperPos;
mercDropGun = true;
setCharacterPose("STAND");
}
}
if (_root.TURRETACTIVE == false) {
CharacterProcess(MERC);
} else {
mercFire();
}
updateShake();
spriteControl();
camControl();
scrollTerrain(G_Treeline, -0.8);
scrollTerrain(G_Treeline2, -1.2);
scrollTerrain(G_Cityline, -1.5, 0);
scrollTerrain(G_TreelineF, 2);
updateExplosives();
updateHealth();
updateGrunts();
updateCols();
updateSign();
MERC.upper._xscale = 100;
if (CBT > 0) {
CBT--;
} else {
CBT = 0;
}
MERC.upper.gotoAndStop(currentUpperPoseTarg);
MERC.lower.gotoAndStop(currentLowerPoseTarg);
}
}
function charWall(Character) {
var _local1 = 0;
_local1 = _local1 + hitWall(Character, 1);
_local1 = _local1 + (hitWall(Character, -1) * 2);
return(_local1);
}
function hitWall(Character, dir) {
var _local3 = 0;
if (hitAreas(Character._x + ((Character.wid / 2) * dir), Character._y - (Character.hei / 2))) {
_local3 = 1;
while (hitAreas(Character._x + ((Character.wid / 2) * dir), Character._y - (Character.hei / 2))) {
Character._x = Character._x - dir;
}
Character._x = Character._x + dir;
Character.xSpeed = 0;
}
return(_local3);
}
function CharacterProcess(Character) {
if (Character.dead == false) {
if (_root.TURRETACTIVE == false) {
hillVar = (MERC._rotation / 250) * (-MERC.scaleStore);
Character.xSpeed = Character.xSpeed / (1.3 + hillVar);
Character._x = Character._x + (Character.xSpeed * Character.duckSpeed);
if (Character._x > (camPos + 300)) {
Character.xSpeed = 0;
Character._x = camPos + 300;
} else if (Character._x < (camPos - 300)) {
Character.xSpeed = 0;
Character._x = camPos - 300;
}
charWall(Character);
if (Math.round(Character.xSpeed) == 0) {
Character.xSpeed = 0;
}
Character._y = Character._y + Character.ySpeed;
if (Character.ySpeed > 0) {
Character.ySpeed = Character.ySpeed + 4;
} else if (Character.jumpKeyPressed == true) {
Character.ySpeed = Character.ySpeed + 2;
} else {
Character.ySpeed = Character.ySpeed + 4;
}
Character.ySpeed = Character.ySpeed / 1.1;
if (footR._y < (Character._y + 50)) {
footR._y = footR._y + Character.ySpeed;
}
if (footL._y < (Character._y + 50)) {
footL._y = footL._y + Character.ySpeed;
}
Character.leanVar = Character.leanVar / 1.1;
Character.touchBuffer++;
if (hitAreas(Character._x, Character._y)) {
Character.ySpeed = 0;
Character.touchBuffer = 0;
while (hitAreas(Character._x, Character._y)) {
Character._y--;
}
Character._y++;
}
if (hitAreas(Character._x, Character._y - 100)) {
Character._y = Character._y + 5;
Character.ySpeed = 3;
}
Character.footR = footR;
Character.footL = footL;
charLean(Character);
if (Character.touchBuffer < 6) {
Character._rotation = Math.floor(angle(footR._x, footR._y, footL._x, footL._y) + 90);
Character.upper._rotation = Math.floor(Character.tiltVar - (MERC._rotation * MERC.scaleStore));
} else {
Character.upper._rotation = Math.floor((Character.tiltVar + Character.leanVar) - (MERC._rotation * MERC.scaleStore));
}
mercFire();
}
} else {
if (MERC.deadTime == 0) {
stopAllSounds();
_root.playSound("LOSE");
MERC.dead = true;
}
Character.gotoAndStop("DEAD");
MERC.xSpeed = MERC.xSpeed / 1.1;
MERC.ySpeed = MERC.ySpeed + 2;
MERC._y = MERC._y + MERC.ySpeed;
if (MERC._y > 365) {
MERC._y = 365;
}
MERC.deadTime++;
if (MERC.deadTime == 60) {
_root.setFade(_root.whiteFade, 100);
} else if (MERC.deadTime == 95) {
newExplosion(MERC._x, MERC._y - 10, 250);
_root.gotoAndStop("RELOADLEVEL_F");
MERC._visible = false;
} else if (MERC.deadTime == 140) {
if (_root.gameType == 2) {
_root.setFade(_root.whiteFade, 200);
_root.menuPos = -1200;
_root.gotoAndStop("TITLE");
} else if (_root.gameType == 1) {
_root.setFade(_root.whiteFade, 400);
_root.gotoAndStop("RELOAD");
}
}
}
}
function setCharacterPose(targ, part) {
if ((currentUpperPoseTarg != targ) && ((part == undefined) || (part == true))) {
if (poseUpperLockTimer < 0) {
currentUpperPoseTarg = targ;
}
}
if ((currentLowerPoseTarg != targ) && ((part == undefined) || (part == false))) {
if (poseLowerLockTimer < 0) {
currentLowerPoseTarg = targ;
}
}
}
function CharacterTilt(Character, scaler) {
if (_root.mouseControl == false) {
Character._xscale = Character.scaler * scaler;
}
Character.scaleStore = scaler;
setCharacterPose("WALK");
if (poseUpperLockTimer < -5) {
MERC.upper.sprite.gotoAndPlay(3);
}
if (Character.tiltVar != (3 * Character.tiltSwitch)) {
Character.tiltVar = Character.tiltVar + (1.5 * Character.tiltSwitch);
Character.upper._y = Character.upper._y - (Character.tiltVar / 2);
Character._y = Character._y - (Character.tiltVar / 5);
} else {
Character.tiltSwitch = Character.tiltSwitch * -1;
}
}
function hitAreas(xPos, yPos) {
if ((hitGround(GROUND, xPos, yPos) || (hitGround(EXPLOSIVES, xPos, yPos))) || (hitGround(xPos, yPos))) {
return(true);
}
return(false);
}
function hitGround(target, xPos, yPos) {
return(target.hitTest((xPos + _parent._x) + _x, (yPos + _parent._y) + _y, true));
}
function scrollTerrain(terrain, speed) {
if (terrain.startPos == undefined) {
terrain.startPos = terrain._y;
}
speed = speed / 2;
terrain._x = terrain._x - (scrollSpeed * speed);
if (camPosVERTLock == false) {
terrain._y = terrain._y + (((terrain._y - MERC._y) / 3) * -1);
terrain._y = terrain._y + ((terrain.startPos - terrain._y) / 5);
}
if ((terrain._x + _parent._x) > 0) {
terrain._x = terrain._x - (terrain._width / 2);
} else if ((terrain._x + _parent._x) < (-(terrain._width / 2))) {
terrain._x = terrain._x + (terrain._width / 2);
}
}
function newEffect(type, xPos, yPos, scale, rotate, alph) {
var _local1 = EFFECTS.attachMovie(type, "E" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local1._x = xPos;
_local1._y = yPos;
_local1._rotation = rotate;
_local1._xscale = (_local1._yscale = scale);
return(_local1);
}
function destroyMovieClip(i, array) {
array[i].removeMovieClip();
array.splice(i, 1);
}
function newBullet(xPos, yPos, type, angle) {
var _local2 = BULLETS.attachMovie("MC_Bullet_" + type, "B" + BULLETS.getNextHighestDepth(), BULLETS.getNextHighestDepth());
_local2._x = xPos;
_local2._y = yPos;
angle = angle + ((random(100) - 50) / 10);
_local2._rotation = angle;
_local2.speed = calcSpeed(angle, (random(80) / 10) + 40);
this["bulletArray_" + type].push(_local2);
return(_local2);
}
function updateBullets_HeliRocket() {
var _local3 = 0;
while (_local3 < bulletArray_HeliRocket.length) {
var _local2 = bulletArray_HeliRocket[_local3];
if (hitGround(MERC, _local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 50);
MERC.xSpeed = MERC.xSpeed + (_local2.speed.x / 3);
destroyMovieClip(_local3, bulletArray_HeliRocket);
hurtMan(10 + random(10));
} else if (hitGround(GROUND, _local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_HeliRocket);
}
_local2._xscale = random(40) + 80;
_local2._yscale = _local2._xscale;
_local2._x = _local2._x + (_local2.speed.x / 3);
_local2._y = _local2._y + (_local2.speed.y / 3);
_local3++;
}
}
function updateBullets_GruntGun() {
var _local3 = 0;
while (_local3 < bulletArray_GruntGun.length) {
var _local2 = bulletArray_GruntGun[_local3];
if (_local2.hitTest(MERC.upper.sprite.slashDamageL) && (_local2.reflect != true)) {
_local2.speed.x = _local2.speed.x * -1;
_local2.speed.y = _local2.speed.y * -1;
_local2.speed.y = _local2.speed.y + (random(40) - 20);
_local2.speed.x = _local2.speed.x + (random(40) - 20);
_local2._rotation = -90 + angle(_local2._x, _local2._y, _local2._x + _local2.speed.x, _local2._y + _local2.speed.y);
_local2.reflect = true;
_local2.gotoAndStop(20);
} else {
if (_local2.reflect != true) {
if (hitAreas(_local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_GruntGun);
} else if (hitGround(MERC, _local2._x, _local2._y)) {
_root.playSound("BANG");
hurtMan(10 + random(10));
newExplosion(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_GruntGun);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, bulletArray_GruntGun);
}
}
_local2._x = _local2._x - (_local2.speed.x / 2);
_local2._y = _local2._y - (_local2.speed.y / 2);
}
_local3++;
}
}
function hurtHeli(ammount) {
if ((HELI == BOSS_5) && (random(5) == 1)) {
HELI._alpha = 0;
if (HELI._x > (HELI.xPos - 300)) {
HELI._x = HELI._x - 300;
} else {
HELI._x = HELI._x + 300;
}
} else {
HELI._alpha = 50;
if (HELI == BOSS_5) {
HELI.health = HELI.health - (ammount * 4);
} else if (_root.levelNum != 6) {
HELI.health = HELI.health - (Math.ceil(ammount / _root.levelNum) * 2);
} else {
HELI.health = HELI.health - ammount;
}
if (HELI.health <= 0) {
HELI.health = 0;
HELI.dead = true;
}
_root.HUD.BOSS.hBar._xscale = (150 / HELI.maxHealth) * HELI.health;
}
}
function updateBullets_Grenade() {
var _local3 = 0;
while (_local3 < grenadeArray.length) {
var _local2 = grenadeArray[_local3];
_local2._rotation = _local2._rotation + _local2.xSpeed;
if (hitAreas(_local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 100);
destroyMovieClip(_local3, grenadeArray);
} else if (hitGround(HELI, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 100);
_root.playSound("BANG");
destroyMovieClip(_local3, grenadeArray);
hurtHeli(4);
} else if (hitGround(ENEMIES, _local2._x, _local2._y)) {
_root.newMedal(9);
newExplosion(_local2._x, _local2._y, 100);
_root.playSound("BANG");
cycleEnemies(_local2._x, _local2._y, 100);
destroyMovieClip(_local3, grenadeArray);
} else {
_local2._xscale = random(40) + 80;
_local2._yscale = _local2._xscale;
_local2._x = _local2._x + _local2.xSpeed;
_local2._y = _local2._y + _local2.ySpeed;
_local2.ySpeed++;
}
_local3++;
}
}
function updateBullets_Rifle() {
var _local3 = 0;
while (_local3 < bulletArray_Rifle.length) {
var _local2 = bulletArray_Rifle[_local3];
if (hitAreas(_local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_Rifle);
} else if (hitGround(HELI, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 50);
_root.playSound("BANG");
destroyMovieClip(_local3, bulletArray_Rifle);
hurtHeli(2);
} else if (hitGround(ENEMIES, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 50);
_root.playSound("BANG");
cycleEnemies(_local2._x, _local2._y, 100);
destroyMovieClip(_local3, bulletArray_Rifle);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, bulletArray_Rifle);
} else {
_local2._x = _local2._x + _local2.speed.x;
_local2._y = _local2._y + _local2.speed.y;
}
_local3++;
}
}
function updateBullets_killGunFlame() {
var _local3 = 0;
while (_local3 < bulletArray_KillGunFlame.length) {
var _local2 = bulletArray_KillGunFlame[_local3];
_local2._xscale = _local2._xscale + (random(20) - 10);
_local2._yscale = _local2._yscale + (random(20) - 10);
if (_local2._alpha < 0) {
destroyMovieClip(_local3, bulletArray_KillGunFlame);
} else if (hitAreas(_local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 50);
_local2._alpha = -10;
} else if (hitGround(HELI, _local2._x, _local2._y)) {
hurtHeli(0.5);
} else if (hitGround(ENEMIES, _local2._x, _local2._y)) {
cycleEnemies(_local2._x, _local2._y, 50);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, bulletArray_Rifle);
} else {
_local2._xscale = random(40) + 80;
_local2._yscale = _local2._xscale;
_local2._x = _local2._x + (_local2.speed.x / 1.5);
_local2._y = _local2._y + (_local2.speed.y / 1.5);
_local2.speed.y++;
}
if (_local2._alpha == 100) {
_local2._xscale = random(50) + 50;
_local2._yscale = random(50) + 50;
_local2._alpha = 399;
_local2.speed.y = _local2.speed.y - 3;
}
_local2._alpha = _local2._alpha - 21;
_local3++;
}
}
function updateBullets_KillGun() {
var _local3 = 0;
while (_local3 < bulletArray_KillGun.length) {
var _local2 = bulletArray_KillGun[_local3];
if (hitAreas(_local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_KillGun);
} else if (hitGround(HELI, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 50);
_root.playSound("BANG");
destroyMovieClip(_local3, bulletArray_KillGun);
hurtHeli(2);
} else if (hitGround(ENEMIES, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 50);
_root.playSound("BANG");
cycleEnemies(_local2._x, _local2._y, 50);
destroyMovieClip(_local3, bulletArray_KillGun);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, bulletArray_KillGun);
} else {
_local2._xscale = random(40) + 80;
_local2._yscale = _local2._xscale;
_local2._x = _local2._x + _local2.speed.x;
_local2._y = _local2._y + _local2.speed.y;
}
_local3++;
}
}
function updateBullets_KillGunRocket() {
var _local3 = 0;
while (_local3 < bulletArray_KillGunRocket.length) {
var _local2 = bulletArray_KillGunRocket[_local3];
if (hitAreas(_local2._x, _local2._y)) {
_root.playSound("BANG");
newExplosion(_local2._x, _local2._y, 100);
destroyMovieClip(_local3, bulletArray_KillGunRocket);
} else if (hitGround(HELI, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 100);
_root.playSound("BANG");
destroyMovieClip(_local3, bulletArray_KillGunRocket);
hurtHeli(5);
} else if (hitGround(ENEMIES, _local2._x, _local2._y)) {
newExplosion(_local2._x, _local2._y, 100);
_root.playSound("BANG");
cycleEnemies(_local2._x, _local2._y, 100);
destroyMovieClip(_local3, bulletArray_KillGunRocket);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, bulletArray_KillGunRocket);
} else {
_local2._xscale = random(40) + 80;
_local2._yscale = _local2._xscale;
_local2._x = _local2._x + (_local2.speed.x / 2);
_local2._y = _local2._y + (_local2.speed.y / 2);
}
_local3++;
}
}
function charLean(Character) {
Character.footR._x = Character._x + 15;
Character.footL._x = Character._x - 15;
footTest(Character.footR);
footTest(Character.footL);
Character.footR._y = Character.footR._y + ((Character._y - Character.footR._y) / 2);
Character.footL._y = Character.footL._y + ((Character._y - Character.footL._y) / 2);
}
function footTest(Foot) {
if (hitGround(GROUND, Foot._x, Foot._y)) {
while (hitGround(GROUND, Foot._x, Foot._y)) {
Foot._y--;
}
Foot._y = Foot._y + 2;
}
}
function newExplosion(xPos, yPos, size) {
shakeScreen(size / 10, size / 10);
var _local3 = newEffect("Explosion", xPos, yPos, size, random(360), 100);
cycleExplosives(xPos, yPos, size / 1.5);
if (bossActive == true) {
if (_local3.hitTest(HELI.WEAKPOINT)) {
_root.hitBoss = true;
}
}
}
function newExplosive(target) {
explosiveArray.push(target);
explosiveArray[explosiveArray.length - 1].health = 3;
explosiveArray[explosiveArray.length - 1].slashTimer = 0;
}
function cycleExplosives(xPos, yPos, size) {
updateExplosiveFlag = 5;
var _local3 = 0;
while (_local3 < explosiveArray.length) {
var _local2 = explosiveArray[_local3];
if (_local2.hitTest(_root.bulletHit)) {
if (_local2.hitTest(MERC.upper.sprite.slashDamage) && (_local2.slashTimer < 0)) {
_local2.slashTimer = 5;
_local2.health--;
_root.playSound("CLANK" + (random(4) + 1));
if (_local2._x > MERC._x) {
MERC.xSpeed = -10;
} else {
MERC.xSpeed = 10;
}
_local2._rotation = _local2._rotation + (random(20) - 10);
}
if (pythag(_local2._x, _local2._y, xPos, yPos) < size) {
_local2.health = 0;
}
if (_local2.health <= 0) {
_local2.killTime = 3;
}
}
_local3++;
}
}
function updateExplosives() {
if (updateExplosiveFlag > 0) {
updateExplosiveFlag--;
var _local3 = 0;
while (_local3 < explosiveArray.length) {
var _local2 = explosiveArray[_local3];
_local2.killTime--;
_local2.slashTimer--;
if (_local2.killTime == 1) {
cycleEnemies(_local2._x, _local2._y, 100);
newFragments(2, _local2._x, _local2._y, 100, 6, 5);
_root.playSound("EXPBANG");
newExplosion(_local2._x, _local2._y, 100);
_local2.swapDepths(EXPLOSIVES.getNextHighestDepth());
destroyMovieClip(_local3, explosiveArray);
}
_local3++;
}
}
}
function newFragments(num, xPos, yPos, size, typeMin, typeRange) {
var _local3 = 0;
while (_local3 < (num * (3 / _root.savefile.data.detail))) {
var _local2 = EFFECTS.attachMovie("Swain_Debris" + (random(typeRange) + typeMin), "F" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local2._x = xPos;
_local2._y = yPos;
_local2._xscale = size;
_local2._yscale = size;
_local2.smokeSpan = size;
_local2.spin = random(40) - 10;
_local2.xSpeed = random(40) - 20;
_local2.ySpeed = -random(20);
fragmentArray.push(_local2);
_local3++;
}
}
function updateFragments() {
if (smokeCount > 0) {
smokeCount--;
}
var _local3 = 0;
while (_local3 < fragmentArray.length) {
var _local2 = fragmentArray[_local3];
_local2._rotation = _local2._rotation + _local2.spin;
_local2._x = _local2._x + _local2.xSpeed;
_local2._y = _local2._y + _local2.ySpeed;
if (((_local2.smokeSpan > 0) && (random(_root.savefile.data.detail) == 0)) && (smokeCount < (180 / _root.savefile.data.detail))) {
newEffect("Smoke", _local2._x, _local2._y, _local2.smokeSpan + random(20), random(360), 50);
smokeCount++;
}
_local2.smokeSpan = _local2.smokeSpan - 5;
_local2.ySpeed++;
if (_local2._y > 1000) {
destroyMovieClip(_local3, fragmentArray);
_local3--;
}
_local3++;
}
}
function charJump(Character) {
if (Character.duckSpeed == 1) {
Character.jumpSwitch = false;
if ((Character.jumpKeyPressed == true) && (Character.jumpCall == false)) {
Character.jumpCall = true;
Character.jumpSwitch = true;
} else if (Character.jumpKeyPressed == false) {
Character.jumpCall = false;
}
if ((Character.touchBuffer < 5) && (Character.jumpSwitch == true)) {
Character.ySpeed = -45;
_root.playSound("CHANDjump");
Character.currentlyJumping = true;
Character.touchBuffer = 20;
}
if (Character.touchBuffer < 5) {
Character.currentlyJumping = false;
}
}
}
function heli() {
if (HELI.dead == false) {
if (bossActive == true) {
if (HELI._alpha < 100) {
HELI._alpha = HELI._alpha + 5;
}
if (_root.hitBoss == true) {
hurtHeli(10);
}
_root.hitBoss = false;
if (MERC.dead == false) {
if (MERC.hitTest(HELI.DAMAGEZONE)) {
hurtMan(20);
MERC.ySpeed = -5;
MERC.xSpeed = -10;
}
if (MERC.hitTest(HELI.HITZONE)) {
MERC.xSpeed = MERC.xSpeed - 10;
}
if (HELI.WEAKPOINT.hitTest(MERC.upper.sprite.slashDamage)) {
_root.hitBoss = true;
}
}
if (HELI == BOSS_5) {
if (HELI._alpha < 100) {
HELI._alpha = HELI._alpha + 10;
HELI.xSpeed = 0;
}
HELI._x = HELI._x + HELI.xSpeed;
var _local4;
if (_root.levelNum == 6) {
_local4 = MERC._x;
} else {
_local4 = HELI.xPos;
}
if (HELI._x < (_local4 - 500)) {
HELI.curY = 1;
} else if (HELI._x > (_local4 + 100)) {
HELI.curY = -1;
}
if (HELI._x > MERC._x) {
HELI._xscale = HELI.scaleStore;
} else {
HELI._xscale = -HELI.scaleStore;
}
if (HELI.currentState == "FLY") {
if (HELI.curY > 0) {
HELI.xSpeed++;
} else {
HELI.xSpeed--;
}
HELI.xSpeed = HELI.xSpeed / 1.05;
HELI.shootTimer = 0;
} else if (HELI.currentState == "SHOOT") {
HELI.shootTimer++;
if (HELI.shootTimer > 10) {
var _local3 = 0;
while (_local3 < 5) {
var _local2 = newBullet(HELI._x, HELI._y - gruntHShoot, "GruntGun", random(180) + 180);
_local2._xscale = 40;
_local2._yscale = 200;
newEffect("Smoke", _local2._x, _local2._y, 150, random(180), 50);
_local3++;
}
HELI.shootTimer = HELI.shootTimer - random(5);
}
HELI.xSpeed = HELI.xSpeed / 1.5;
}
} else if ((HELI == BOSS_3) || (_root.levelNum == 3)) {
if (HELI._xscale > 0) {
HELI._xscale = HELI._xscale * -1;
}
if (HELI.currentState == "FLY") {
HELI._x = HELI._x + (((MERC._x - HELI._x) - 200) / 25);
HELI._y = HELI._y + (((MERC._y - HELI._y) - 100) / 5);
} else if (HELI.currentState == "SHOOT") {
HELI._x = HELI._x + (((HELI.mercPosX - HELI._x) - 100) / 5);
HELI._y = HELI._y + (((HELI.mercPosY - HELI._y) - 100) / 5);
}
} else if (HELI == BOSS_6) {
if (HELI.currentState == "FLY") {
HELI.shootTimer = 10;
HELI._x = HELI._x + (((MERC._x - HELI._x) + 300) / 50);
HELI._y = HELI._y + (((MERC._y - HELI._y) - 150) / 50);
} else if (HELI.currentState == "SHOOT") {
HELI._x = HELI._x + (((HELI.mercPosX - HELI._x) + 100) / 10);
HELI._y = HELI._y + (((HELI.mercPosY - HELI._y) - 150) / 10);
if (HELI.shoot == true) {
if (MERC.hitTest(HELI)) {
hurtMan(20);
MERC.xSpeed = -40;
}
HELI.shootTimer++;
var _local3 = 0;
while (_local3 < 5) {
if (random(2) == 0) {
var _local2 = newBullet(HELI._x, HELI._y, "HeliRocket", random(180));
_local2._xscale = 40;
_local2._yscale = 200;
}
_local3++;
}
HELI.shootTimer = HELI.shootTimer - random(5);
}
}
}
}
} else {
HELI.gotoAndStop(1);
HELI._y = HELI._y + HELI.deadSpeed;
HELI.deadSpeed++;
HELI._x = HELI._x + 2;
if (_root.bossActive == true) {
var _local3 = 0;
while (_local3 < 3) {
newFragments(2, (HELI._x - random(300)) - 50, (HELI._y + random(300)) + 50, 100, 6, 5);
_local3++;
}
}
if (_root.levelNum == 6) {
if (_root.stageNum == 5) {
if (HELI.deadSpeed > 150) {
_root.gotoAndStop("CUTSCENE_END");
} else if (random(5) == 0) {
newExplosion((HELI._x + random(20)) - 10, (HELI._y - 50) - random(30), 150);
_root.playSound("BIGBANG");
}
} else {
_root.saveMerc.x = MERC._x;
_root.saveMerc.y = MERC._y;
_root.healthStore = health;
_root.gotoAndStop("LOADNEXTSTAGE");
}
} else if (HELI._y > 4000) {
_root.setFade(_root.whiteFade, 200);
_root.levelNum++;
_root.stageNum = 1;
_root.gotoAndStop("CUTSCENE_" + _root.levelNum);
}
}
}
function hurtMan(ammount, xSpeed, ySpeed, cbt) {
ammount = Math.round(ammount / 4);
if (healthInvTime == 0) {
_root.setFade(_root.redFade, 80);
health = health - ammount;
_root.playSound("CHANDhurt");
healthBuffer = 0;
healthInvTime = healthInvMax * 1.5;
if (cbt == undefined) {
cbt = healthInvMax / 5;
}
CBT = cbt;
if (CBT != 0) {
MERC.play();
}
if (health <= 0) {
if (MERC.dead == false) {
MERC.ySpeed = -10;
MERC.dead = true;
}
health = 0;
} else {
if (xSpeed != undefined) {
MERC.xSpeed = xSpeed;
}
if (ySpeed != undefined) {
MERC.ySpeed = ySpeed;
}
}
}
}
function updateHealth() {
_root.health = health;
_root.healthBuffer = healthBuffer;
if (healthInvTime > 0) {
healthInvTime--;
MERC._alpha = MERC._alpha * -1;
} else {
MERC._alpha = 100;
}
if ((healthBuffer == healthBufferMax) && (health < 100)) {
} else if (healthBuffer < healthBufferMax) {
healthBuffer = healthBuffer + 0.5;
}
_root.HUD.hBar._xscale = health;
if (_root.HUD.hBar._xscale < 40) {
_root.HUD.hBar._alpha = _root.HUD.hBar._alpha * -1;
} else {
_root.HUD.hBar._alpha = 100;
}
_root.HUD.hCharge._xscale = healthBuffer;
}
function updateLevel() {
levelExtend = 10000;
if (killCount > killCountMax) {
if (camLock == true) {
signActive = true;
camLock = false;
}
}
if (camDist == undefined) {
camDist = 4600;
}
if ((camPos < (camDist - 400)) && (_root.levelNum != 6)) {
_root.HUD.enemyCount = killCount;
_root.HUD.enemyCountMax = killCountMax + 1;
} else {
HELI._visible = true;
if (bossActive == false) {
_root.enemyActive = false;
}
if ((_root.stageNum == 3) || (_root.levelNum == 6)) {
if (_root.levelNum == 1) {
camLock = true;
}
_root.HUD.BOSS._visible = true;
if (bossMessage == true) {
bossActive = true;
}
if (bossActive == false) {
_root.setMusic("LEVEL6");
if (_root.levelNum != 3) {
_root.SPEAKERTRUE = true;
if (_root.levelNum == 1) {
_root.SPEAKERPOS = 1;
} else if (_root.levelNum == 5) {
_root.SPEAKERPOS = 6;
} else if (_root.levelNum == 6) {
_root.SPEAKERPOS = 5;
}
bossMessage = true;
_root.gamePaused = true;
_root.callMenu(targ);
}
}
}
}
if (MERC._x > 4450) {
_root.gotoAndStop("LOADNEXTSTAGE");
}
}
function camControl() {
updateLevel();
if ((camLock == false) || (_root.TURRETACTIVE == true)) {
camPos = MERC._x;
if (camPos > (levelPos + levelExtend)) {
camPos = levelPos + levelExtend;
killCount = 0;
if (camPos > 2200) {
camPos = camPos + 100;
_root.HUD.iconHeli._visible = true;
spawnCount = 1000;
} else {
spawnCount = 0;
}
if (killCountMax == 0) {
killCountMax = 4;
} else {
killCountMax = killCountMax + 1;
}
signActive = false;
}
}
var _local3 = _parent._x;
if ((camPosVERTLock == false) || (_root.TURRETACTIVE == true)) {
camPosVERT = MERC._y;
}
if ((bossActive == true) && (MERC.touchBuffer < 2)) {
if (_root.levelNum == 1) {
camPosVERTLock = true;
}
}
camPosS = camPosS + ((camPos - camPosS) / 5);
_parent._x = _parent._x - (((_parent._x + camPosS) - 325) / (5 / camXElastStart));
if ((_root.levelNum != 4) || (_root.stageNum != 1)) {
_parent._y = _parent._y - (((_parent._y + camPosVERT) - 250) / (5 / camXElastStart));
} else {
_parent._y = _parent._y - (((_parent._y + camPosVERT) - 250) / (2 / camXElastStart));
}
scrollSpeed = _local3 - _parent._x;
if (camXElastStart < 1) {
camXElastStart = camXElastStart + 0.01;
}
G_Foreground._x = G_Foreground._x - (scrollSpeed / 3);
}
function newGrunt(levelNum) {
levelNum = _root.levelNum;
if (_root.levelNum == 6) {
if (_root.stageNum == 2) {
levelNum = 1;
} else if (_root.stageNum == 4) {
levelNum = 5;
} else {
levelNum = _root.stageNum;
}
}
if (((_root.levelNum == 6) && (_root.stageNum != 1)) && (_root.stageNum != 5)) {
_root.enemyActive = true;
if (random(3) == 0) {
return(0);
}
}
if (_root.enemyActive && (enemyStartTimer < 0)) {
spawnCount++;
activeGrunts++;
var _local2 = ENEMIES.attachMovie("Enemy_Grunt", "E" + ENEMIES.getNextHighestDepth(), ENEMIES.getNextHighestDepth());
var _local4 = random(2);
if (MERC._x > -1800) {
if (_local4 == 0) {
_local2._x = camPos + 400;
} else {
_local2._x = camPos - 400;
}
} else {
_local2._x = camPos + 400;
}
_local2._y = MERC._y;
if (random(2) == 0) {
_local2._y = -200;
_local2._x = (camPos - 400) + random(800);
}
while (_local2.hitTest(_root.screenHit)) {
_local2._y = _local2._y - 20;
}
_local2.levelNum = levelNum;
_local2.wid = _local2._width;
_local2.hei = _local2._height;
_local2.ySpeed = 0;
_local2.xSpeed = 0;
_local2.health = 5;
_local2.invTime = 0;
_local2.boostStart = false;
_local2.FireSpeed = random(10) + 20;
_local2.variation = random(100);
_local2.Fire = _local2.FireSpeed / 2;
if (levelNum == 1) {
_local2.moveSpeed = 0.5 + (_local2.variation / 100);
_local2.ammo = random(3) + 2;
} else if (levelNum == 3) {
_local2.moveSpeed = 2 + (_local2.variation / 50);
_local2.ammo = 99;
} else if (levelNum == 4) {
_local2.moveSpeed = 0.3 + (_local2.variation / 50);
_local2.ammo = 0;
} else if (levelNum == 5) {
_local2.health = 20;
_local2.moveSpeed = 0.1 + (_local2.variation / 50);
_local2.ammo = 0;
} else {
_local2.moveSpeed = 5 + (_local2.variation / 50);
_local2.ammo = 0;
}
_local2._xscale = 200;
_local2._yscale = _local2._xscale;
_local2.scaler = _local2._xscale;
_local2.deadTimer = 0;
_local2.accel = (random(10) / 100) + 1.4;
gruntArray.push(_local2);
}
}
function updateGrunts() {
var _local10 = _root.levelNum;
if (activeGrunts < activeGruntMax) {
if (gruntTimer == 0) {
gruntTimer = gruntTimerMin + random(20);
newGrunt();
} else {
gruntTimer--;
}
}
var _local5 = 0;
while (_local5 < gruntArray.length) {
var _local2 = gruntArray[_local5];
_root.levelNum = _local2.levelNum;
if (_local2.boostStart == true) {
_local2.boostStart = false;
if (_local2._x > MERC._x) {
_local2.xSpeed = -50;
} else {
_local2.xSpeed = 50;
}
if (_local2.strikeLock != true) {
if (_local2.shootActive != true) {
_local2.gotoAndStop("JUMP");
}
_local2.ySpeed = -40;
_local2.boosting = true;
}
}
_local2.invTime--;
if (_local2.dead == undefined) {
if (_local2.hitTest(MERC.upper.sprite.slashDamage) && (_local2.invTime < 0)) {
_local2.health = _local2.health - (1 * _root.weaponID);
_root.playSound("CLANK" + (random(4) + 1));
_local2.invTime = 4;
shakeScreen(10, 1);
newEffect("Smoke", (_local2._x + random(20)) - 10, (_local2._y - 50) - random(30), 150, random(360), random(30) + 50);
}
if (_local2.health <= 0) {
newExplosion((_local2._x + random(20)) - 10, (_local2._y - 50) - random(30), 150);
_root.playSound("BIGBANG");
_local2.dead = true;
newMoney(200 + random(50), _local2._x, _local2._y - 60);
}
var _local4 = pythag(MERC._x, 0, _local2._x, 0);
var _local9 = pythag(0, MERC._y, 0, _local2._y);
_local2.xSpeed = _local2.xSpeed / _local2.accel;
if (_local2.strikeLock != true) {
_local2._x = _local2._x + _local2.xSpeed;
}
_local2._y = _local2._y + _local2.ySpeed;
_local2.ySpeed = _local2.ySpeed + 2;
var _local3 = false;
if (hitAreas(_local2._x, _local2._y)) {
_local3 = true;
}
if (_local3) {
_local2.boosting = false;
_local2.ySpeed = 0;
while (hitAreas(_local2._x, _local2._y)) {
_local2._y--;
}
_local2._y = _local2._y + 5;
}
if (_local2.strikeLock != true) {
if ((_local2.ySpeed > -2) && (_local2.ySpeed < 2)) {
if (_local2.shootActive != true) {
_local2.gotoAndStop("RUN");
}
} else if (_local2.shootActive != true) {
_local2.gotoAndStop("JUMP");
}
}
if ((_local3 && (_local4 > (220 + (_local2.variation / 10)))) || ((_local2._x > (camPos + 300)) || (_local2._x < (camPos - 300)))) {
if (_local2._x > MERC._x) {
_local2.xSpeed = _local2.xSpeed - _local2.moveSpeed;
_local2.scaleStore = 1;
} else {
_local2.scaleStore = -1;
_local2.xSpeed = _local2.xSpeed + _local2.moveSpeed;
}
_local2._xscale = _local2.scaler * _local2.scaleStore;
} else if ((_local4 >= (100 + (_local2.variation / 5))) && (_local2.ammo > 0)) {
if (_local2.ammo > 0) {
if (_local3) {
}
_local2.gotoAndStop("SHOOT");
_local2.shootActive = true;
if (_local2._x > MERC._x) {
_local2.scaleStore = 1;
} else {
_local2.scaleStore = -1;
}
}
var _local8 = angle(_local2._x, _local2._y - 130, MERC._x, MERC._y - 80) + 90;
_local2.aimer._rotation = ((_local8 * _local2.scaleStore) - 90) + (90 * _local2.scaleStore);
_local2._xscale = _local2.scaler * _local2.scaleStore;
if ((_local2.Fire < 0) && (_local3)) {
if (_local2.ammo > 0) {
_local2.ammo--;
var _local6 = 130;
if (_root.levelNum == 3) {
_local6 = 50;
_local2.sprite.play();
}
var _local7 = newBullet(_local2._x, _local2._y - _local6, "GruntGun", _local8);
newEffect("Smoke", _local7._x, _local7._y, 150, random(360), 50);
if (_local2.shootActive != true) {
_local2.gotoAndStop("RUN");
}
}
_local2.Fire = _local2.FireSpeed;
}
if (_root.levelNum == 3) {
_local2.Fire--;
} else {
_local2.Fire = _local2.Fire - 2;
}
} else if (((_local4 < 75) && (_local3)) && (_root.levelNum != 3)) {
_local2.strikeLock = true;
_local2.gotoAndStop("STRIKE");
_local2.xSpeed = 0;
if (MERC.hitTest(_local2.slashDamage)) {
hurtMan(20);
MERC.xSpeed = (-_local2.scaleStore) * 30;
if (isNaN(MERC.xSpeed)) {
MERC.xSpeed = 1;
}
if (typeof(MERC.xSpeed) != "number") {
MERC.xSpeed = 1;
}
}
} else if (((_local4 < 100) && (_local3)) && (_root.levelNum == 3)) {
if (MERC._x > _local2._x) {
_local2.xSpeed = _local2.xSpeed - 8;
} else {
_local2.xSpeed = _local2.xSpeed + 8;
}
} else if ((_local4 > 0) && (_local3)) {
if (_local2.boosting == false) {
if (_local2._x < MERC._x) {
_local2.xSpeed = _local2.xSpeed + _local2.moveSpeed;
_local2.scaleStore = -1;
} else {
_local2.scaleStore = 1;
_local2.xSpeed = _local2.xSpeed - _local2.moveSpeed;
}
}
_local2._xscale = _local2.scaler * _local2.scaleStore;
}
if (charWall(_local2) > 0) {
if (_root.levelNum != 5) {
_local2.ySpeed = -15;
_local2.xSpeed = (-_local2._xscale) / 20;
if (_local2.strikeLock != true) {
_local2.gotoAndStop("JUMP");
}
} else {
_local2.xSpeed = _local2._xscale / 20;
}
}
if (!_local2.hitTest(_root.bulletHit)) {
_local2.dead = true;
_local2.deadTimer = 60;
activeGrunts--;
}
} else {
if (_local2.deadTimer == 0) {
_local2.ySpeed = -15;
killCount++;
activeGrunts--;
_root.levelValue2++;
if (random(10) == 12) {
if (killGunAmmo < 10) {
newKillGun(_local2._x, _local2._y - 35);
}
}
}
_local2.deadTimer++;
_local2._xscale = _local2.scaler * _local2.dead;
_local2.gotoAndStop("DEAD");
if (_local2.boosting == true) {
_local2.ySpeed = _local2.ySpeed + 0.3;
} else {
_local2.ySpeed = _local2.ySpeed + 2;
}
if (_local2.deadTimer > 60) {
_local2._alpha = _local2._alpha - 10;
if (_local2._alpha < 10) {
destroyMovieClip(_local5, gruntArray);
}
}
}
_local5++;
}
_root.levelNum = _local10;
}
function cycleEnemies(xPos, yPos, size) {
var _local5 = 0;
while (_local5 < enemyArray.length) {
var _local3 = 0;
while (_local3 < enemyArray[_local5].length) {
var _local2 = enemyArray[_local5][_local3];
if (_local2.dead == undefined) {
if (_local2.hitTest(_root.bulletHit)) {
if (pythag(_local2._x, _local2._y - 70, xPos, yPos) < size) {
var _local4 = (random(400) / 100) + 5;
if (_local2._x > MERC._x) {
_local2.xSpeed = _local4;
} else {
_local2.xSpeed = -_local4;
}
_local2.health = _local2.health - 2;
}
}
}
_local3++;
}
_local5++;
}
}
function addEnemyCol(target) {
var _local1 = ENEMIES.attachMovie("Enemy_ColS", "E" + ENEMIES.getNextHighestDepth(), ENEMIES.getNextHighestDepth());
_local1._x = target._x;
_local1._y = target._y;
_local1._xscale = target._xscale;
_local1._yscale = target._yscale;
_local1.FireSpeed = 20 + random(10);
_local1.Fire = _local1.FireSpeed / 2;
_local1.variation = random(100);
_local1.scaleStore = 1;
_local1.deadTimer = 0;
colArray.push(_local1);
}
function updateCols() {
var _local4 = 0;
while (_local4 < colArray.length) {
var _local2 = colArray[_local4];
if (_local2.hitTest(_root.bulletHit)) {
if (_local2.dead == undefined) {
var _local6 = pythag(MERC._x, 0, _local2._x, 0);
if (MERC._x > _local2._x) {
_local2.scaleStore = -1;
} else {
_local2.scaleStore = 1;
}
_local2._xscale = 110 * _local2.scaleStore;
if (_local2._x > MERC._x) {
_local2.scaleStore = 1;
} else {
_local2.scaleStore = -1;
}
var _local5 = angle(_local2._x, _local2._y - 68, MERC._x, MERC._y - 45) + 90;
_local2.arm._rotation = ((_local5 * _local2.scaleStore) - 90) + (90 * _local2.scaleStore);
_local2._xscale = _local2.scaler * _local2.scaleStore;
if (_local2.Fire < 0) {
_local2.Fire = _local2.FireSpeed;
var _local3 = newBullet(_local2._x, _local2._y - 68, "GruntGun", _local5);
_local3._x = _local3._x - (_local3.speed.x * 2.5);
_local3._y = _local3._y - (_local3.speed.y * 2.5);
_local2.arm.play();
newEffect("Smoke", _local3._x, _local3._y, 150, random(360), 50);
}
_local2.Fire--;
} else {
if (_local2.deadTimer == 0) {
_root.levelValue2++;
_root.playSound("MANDIE");
}
_local2.deadTimer++;
_local2._xscale = _local2.scaler * _local2.dead;
_local2.gotoAndStop("DEAD");
_local2._y = _local2._y + _local2.ySpeed;
_local2._x = _local2._x + _local2.xSpeed;
_local2.ySpeed = _local2.ySpeed + 3;
_local2.xSpeed = _local2.xSpeed / 1.2;
if (_local2._y > (365 + (_local2.variation / 10))) {
_local2._y = 365 + (_local2.variation / 10);
}
if (_local2.deadTimer > 60) {
_local2._alpha = _local2._alpha - 10;
if (_local2._alpha < 80) {
destroyMovieClip(_local4, colArray);
}
}
}
}
_local4++;
}
}
function updateSign() {
if (signActive == true) {
if (signSwitch == false) {
signSway = signSway + 1;
if (signSway > 10) {
signSwitch = true;
}
} else {
signSway = signSway - 1;
if (signSway < -10) {
signSwitch = false;
}
}
signTime--;
if ((signRot < 360) && (signRot != 0)) {
signRot = signRot + 9;
signSway = 0;
} else {
signRot = 0;
}
} else {
signSway = 0;
if (signRot < 180) {
signRot = signRot + 9;
}
}
_root.HUD.SIGN._rotation = signRot + signSway;
}
function newKillGun(xPos, yPos) {
var _local1 = EFFECTS.attachMovie("Item Ammo", "IA" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local1._x = xPos;
_local1._y = yPos;
_local1.ID = random(3) + 1;
_local1.gotoAndStop(_local1.ID);
itemArray.push(_local1);
}
function updateKillGunItem() {
var _local3 = 0;
while (_local3 < itemArray.length) {
var _local2 = itemArray[_local3];
_local2._rotation = _local2._rotation + 10;
_local2._xscale = 100 + (_local2._rotation / 50);
_local2._yscale = _local2._xscale;
if (_local2.hit.hitTest(MERC)) {
newEffect("Effect_Ring", _local2._x, _local2._y, 100, 0, 200);
_root.playSound("GETAMMO");
if (_local2.ID == 4) {
grenadeAmmo = 10;
} else {
killGunAmmo = 30;
killGunID = _local2.ID;
_root.HUD.itemIcon._visible = true;
_root.HUD.itemIcon.gotoAndStop(_local2.ID);
}
destroyMovieClip(_local3, itemArray);
} else if (!_local2.hitTest(_root.bulletHit)) {
destroyMovieClip(_local3, itemArray);
}
_local3++;
}
}
function moneySymbolUpdate() {
var _local1 = 0;
while (_local1 < moneySymbols.length) {
moneySymbols[_local1]._y = moneySymbols[_local1]._y - 2;
moneySymbols[_local1]._xscale++;
moneySymbols[_local1]._yscale++;
if (moneySymbols[_local1]._y < moneySymbols[_local1].yPos) {
moneySymbols[_local1].removeMovieClip();
moneySymbols.splice(_local1, 1);
_local1--;
}
_local1++;
}
}
_root.turretLock = false;
if (_root.levelsBeat < _root.levelNum) {
_root.levelsBeat = _root.levelNum;
_root.JTCsave();
}
var coinArray = new Array();
var bossMessage = false;
var introMessage = 100;
if ((_root.levelNum != 6) && (_root.levelNum != 3)) {
HELI = this["BOSS_" + _root.levelNum];
} else if (_root.stageNum == 1) {
HELI = this.BOSS_6;
} else if (_root.stageNum == 2) {
HELI = this.BOSS_1;
bossMessage = true;
} else if (_root.stageNum == 3) {
HELI = this.BOSS_3;
bossMessage = true;
} else if (_root.stageNum == 4) {
HELI = this.BOSS_5;
bossMessage = true;
} else if (_root.stageNum == 5) {
HELI = this.BOSS_6;
bossMessage = true;
bossActive = true;
}
_root.HUD.BOSS._visible = false;
_root.setFade(_root.whiteFade, 300);
var camXElastStart = 0.1;
_root.updateHud();
_root.enemyActive = true;
if (((_root.levelNum == 1) && (_root.stageNum == 1)) || ((_root.levelNum == 6) && ((_root.stageNum == 1) || (_root.stageNum == 5)))) {
_root.enemyActive = false;
}
var enemyStartTimer = 300;
if (_root.levelNum == 6) {
enemyStartTimer = 100;
}
if (_root.stageNum != 3) {
_root.HELI.swapDepths(666);
_root.HELI.removeMovieClip();
_root.bossActive = false;
}
HELI.gotoAndStop("INTRO");
_root.HUD.money.text = "$0";
_root.MERC = MERC;
_root.setMusic("LEVEL" + _root.levelNum);
_root.levelValue1 = 0;
_root.levelValue2 = 0;
var mousePressed = false;
var moneyMax = 0;
var moneyPot = 0;
var moneySymbols = new Array();
createEmptyMovieClip("ENEMIES", getNextHighestDepth());
createEmptyMovieClip("EFFECTS", getNextHighestDepth());
var killGunAmmo = 0;
var grneadeSwitch = false;
var grenadeTimer = 0;
var mercTopOffset = 0;
var grenadeArray = new Array();
var grenadeAmmo = 10;
var cycleTimer = 0;
var mercSwipe = 0;
var killGunAlt = 0;
var killGunID = 1;
var kgr = 0;
var screenShake = 0;
var shakeTime = 1;
var CBT = 0;
shakeDir = 1;
_root.HUD.ARWARN._visible = false;
var strikeTimer = ((strikeTimer = 200 + random(200)));
_root.TURRETACTIVE = false;
var mercDropGun = false;
MERC.xSpeed = 0;
MERC.ySpeed = 0;
MERC.duckSpeed = 1;
MERC.upperPos = MERC.upper._y;
MERC.lowerPos = MERC.lower._y;
MERC.tiltSwitch = 1;
MERC.tiltVar = 0;
MERC.leanVar = 0;
MERC.scaler = MERC._xscale;
MERC.wid = MERC._width;
MERC.hei = MERC._height;
MERC.scaleStore = 1;
MERC.walkCycle = 1;
var currentLowerPoseTarg = "";
var currentUpperPoseTarg = "";
var poseLowerLockTimer = 0;
var poseUpperLockTimer = 0;
MERC.deadTime = 0;
var bulletArray_Rifle = new Array();
var bulletArray_HeliRocket = new Array();
var bulletArray_GruntGun = new Array();
createEmptyMovieClip("BULLETS", getNextHighestDepth());
var bulletArray_KillGun = new Array();
var bulletArray_KillGunFlame = new Array();
var bulletArray_KillGunRocket = new Array();
var explosiveArray = new Array();
var updateExplosiveFlag = 0;
var fragmentArray = new Array();
var smokeCount = 0;
HELI.xSpeed = 0;
HELI.ySpeed = 0;
HELI.scaler = false;
HELI.scaleStore = HELI._xscale;
HELI.ySwitch = 1;
HELI.yTimer = 0;
HELI.xPos = HELI._x;
HELI.yPos = HELI._y;
HELI.curY = HELI._y;
HELI.maxHealth = 250;
if (_root.levelNum == 6) {
HELI.maxHealth = 200 * _root.stageNum;
}
HELI.health = HELI.maxHealth;
HELI.yDest = 0;
HELI.dead = false;
HELI.fireTime = 0;
HELI.deadSpeed = -20;
var levelPos = MERC._x;
var levelExtend = 500;
var killCount = 0;
var spawnCount = 0;
var killCountMax = 0;
var killCountIncrease = 1.2;
var bossActive = false;
var camDist = HELI._x;
var camPos = MERC._x;
var camPosS = camPos;
var camLock = false;
var camPosVERT = MERC._y;
var camPosVERTLock = false;
var gruntArray = new Array();
var gruntTimer = 0;
var activeGrunts = 0;
var activeGruntMax = 5;
var gruntTimerMin = 30;
var gruntUpdate = 0;
var colArray = new Array();
var enemyArray = new Array(gruntArray, colArray);
var signActive = false;
var signRot = 0;
var signSwitch = false;
var signSway = 0;
var itemArray = new Array();
camPosS = camPosS + ((camPos - camPosS) / 1);
_parent._x = _parent._x - (((_parent._x + camPosS) - 325) / 1);
G_Foreground.swapDepths(getNextHighestDepth());
if ((_root.levelNum == 6) && (_root.stageNum > 1)) {
MERC._x = _root.saveMerc.x;
MERC._y = _root.saveMerc.y;
health = _root.healthStore;
trace("HEALTH" + health);
} else {
health = 100;
}
if (_root.healthCheat == true) {
health = 1000;
}
if (_root.stageNum == 4) {
}
healthBuffer = 0;
healthInvTime = 0;
healthInvMax = 50;
healthBufferMax = 100;
MERC.dead = false;
Instance of Symbol 1199 MovieClip "BOSS_1" in Symbol 1288 MovieClip Frame 1
onClipEvent (load) {
if (_root.levelNum == 6) {
_y = (_y - 380);
}
if (((_root.stageNum != 3) || (_root.levelNum != 1)) && ((_root.levelNum != 6) || (_root.stageNum != 2))) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Instance of Symbol 1207 MovieClip "BOSS_5" in Symbol 1288 MovieClip Frame 1
onClipEvent (load) {
if (_root.levelNum == 6) {
_y = (_y - 400);
}
if (((_root.stageNum != 3) || (_root.levelNum != 5)) && ((_root.levelNum != 6) || (_root.stageNum != 4))) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Instance of Symbol 1261 MovieClip "BOSS_3" in Symbol 1288 MovieClip Frame 1
onClipEvent (load) {
if (_root.levelNum == 6) {
}
if (((_root.stageNum != 3) || (_root.levelNum != 3)) && (_root.levelNum != 6)) {
this.swapDepths(666);
this.removeMovieClip();
}
if ((_root.levelNum == 6) && (_root.stageNum != 3)) {
this._visible = false;
}
}
Instance of Symbol 1276 MovieClip "BOSS_6" in Symbol 1288 MovieClip Frame 1
onClipEvent (load) {
if (((_root.stageNum != 1) || (_root.levelNum != 6)) && ((_root.levelNum != 6) || (_root.stageNum != 5))) {
this.swapDepths(666);
this.removeMovieClip();
}
}
Symbol 1303 MovieClip Frame 1
levelNum = "STAGE " + _root.levelNum;
stageNum = "CHECKPOINT " + _root.stageNum;
Symbol 1304 MovieClip Frame 111
swapDepths(666);
this.removeMovieClip();
Symbol 1305 MovieClip Frame 1
stop();
var i = 0;
while (i < 10) {
this["item" + i].gotoAndStop(i);
this["item" + i].val = i;
if (i < 6) {
this["item" + i].ammo = "";
} else {
this["item" + i].ammo = 0;
}
i++;
}
item0.gotoAndStop(10);
this.item0.ammo = 0;
gotoAndStop(_root.levelNo);
Symbol 1309 MovieClip Frame 1
stop();
Symbol 1318 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1318 MovieClip Frame 27
stop();
Symbol 1320 MovieClip Frame 1
_rotation = (_rotation + 90);
Symbol 1326 MovieClip Frame 1
stop();
Symbol 1334 MovieClip Frame 1
function pythag(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y1 - y2, 2) + Math.pow(x1 - x2, 2)));
}
function angle(x1, y1, x2, y2) {
return(Math.round((Math.atan2(y2 - y1, x2 - x1) / 3.141593) * 180) + 90);
}
function calcSpeed(angle, speed) {
var _local2 = angle * 0.01745329;
var _local1 = new Object();
_local1.x = speed * Math.cos(_local2);
_local1.y = speed * Math.sin(_local2);
return(_local1);
}
function rotatedXY(xPos, yPos, rotate) {
var _local1 = new Object();
var _local2 = 0.0174444444444444 * rotate;
var _local4 = Math.sin(_local2);
var _local3 = Math.cos(_local2);
_local1.x = (xPos * _local3) - (yPos * _local4);
_local1.y = (xPos * _local4) + (yPos * _local3);
return(_local1);
}
function rockControl() {
rockMarker._visible = false;
if (rockTimer > 0) {
rockTimer--;
rockMarker._visible = false;
} else {
rockActive = true;
}
if ((ROCK._x < -100) || (ROCK.health <= 0)) {
if (ROCK.health <= 0) {
newFragments(15, ROCK._x, ROCK._y);
newExplosion(ROCK._x + 30, ROCK._y - 90, random(80) + 160);
}
rockActive = false;
ROCK._x = 2000;
blockCount++;
ROCK.health = 4;
ROCK.gotoAndStop(random(4) + 1);
rockTimer = random(50) + 250;
} else if (rockActive == true) {
ROCK._x = ROCK._x - 30;
rockMarker._visible = true;
rockMarker.warnText = Math.round((ROCK._x - 700) / 10);
if (ROCK._x < 700) {
rockMarker._visible = false;
}
} else {
rockMarker._visible = false;
}
}
function onEnterFrame() {
updateMoney();
if (fuel < 800) {
_root.HUD.hBar._xscale = 0.25 * fuel;
}
if ((fuel < 0) && (TANK.dead != true)) {
fuel = 0;
TANK.dead = true;
ySpeed = -30;
TANK.sprite.gotoAndPlay("dead");
TANK._y = TANK._y - 10;
TANK.barrel._visible = false;
}
if ((TANK.dead == false) && (endTimer > 2700)) {
_root.setFade(_root.whiteFade, 200);
_root.levelNum++;
_root.stageNum = 1;
_root.gotoAndStop("CUTSCENE_" + _root.levelNum);
} else if (TANK.dead == true) {
ySpeed = ySpeed - 0.3;
TANK.spin = 0;
fuel = 0;
if (TANK._y > (groundPos - 5)) {
_root.setFade(_root.redFade, 100);
}
deadTimer++;
if (deadTimer == 100) {
_root.setFade(_root.whiteFade, 200);
_root.gotoAndStop("RELOADLEVEL_F");
}
}
if (_root.gamePaused == false) {
endTimer++;
_root.HUD.endBar._width = (endTimer / 2700) * 300;
updateShake();
if (Key.isDown(_root.upKey) && (jumpSwitch == false)) {
} else if (!Key.isDown(_root.upKey)) {
jumpSwitch = false;
}
rockControl();
if (TANK._y < -20) {
marker._visible = true;
marker._x = TANK._x;
} else {
marker._visible = false;
}
if (random(40) == 0) {
newTank();
}
if (random(200) == 0) {
newHeli();
}
updateTank();
updateHeli();
scrollTerrain(G_Grassline, 40);
scrollTerrain(G_Treeline, 15);
scrollTerrain(G_Treeline2, 7);
scrollTerrain(G_Cityline, 4);
scrollTerrain(G_Sky, 1);
updateBullets();
updateFragments();
TANK._rotation = TANK._rotation + spin;
spin = spin / 1.05;
var _local4 = AIMER._rotation;
if (_local4 > 600) {
_local4 = _local4 - 360;
}
TANK.barrel._rotation = _local4;
if (TANK.hitTest(ROCK.hit) && (TANK.dead == false)) {
xSpeed = -20;
ySpeed = -20;
spin = 40;
fuel = fuel - 20;
newFragments(5, TANK._x, TANK._y);
newExplosion((TANK._x + random(60)) - 30, (TANK._y + random(40)) - 20, 100);
}
if (TANK.barrel._rotation > 95) {
TANK.barrel._rotation = 95;
} else if (TANK.barrel._rotation < -95) {
TANK.barrel._rotation = -95;
}
if (TANK.barrel._rotation < 0) {
TANK.Top._xscale = -100;
} else {
TANK.Top._xscale = 100;
}
AIMER._x = TANK._x;
AIMER._y = TANK._y;
if (TANK.dead == false) {
if (Key.isDown(_root.leftKey)) {
AIMER._rotation = AIMER._rotation + 10;
TANK._rotation++;
xSpeed = xSpeed - 1.5;
} else if (Key.isDown(_root.rightKey)) {
AIMER._rotation = AIMER._rotation - 10;
TANK._rotation--;
xSpeed = xSpeed + 1.5;
}
}
if (AIMER._rotation > 90) {
AIMER._rotation = 90;
} else if (AIMER._rotation < -90) {
AIMER._rotation = -90;
}
TANK._x = TANK._x + xSpeed;
TANK._x = TANK._x + ((325 - TANK._x) / 20);
xSpeed = xSpeed / 1.1;
if (TANK._x < 0) {
xSpeed = 0;
TANK._x = 0;
} else if (TANK._x > 650) {
xSpeed = 0;
TANK._x = 650;
}
var _local2 = 0;
while (_local2 < 6) {
TANK["w" + _local2]._rotation = TANK["w" + _local2]._rotation + (20 + (xSpeed * 2));
_local2++;
}
ySpeed = ySpeed + 3;
TANK._y = TANK._y + ySpeed;
if (TANK._y > groundPos) {
TANK._rotation = TANK._rotation / 1.4;
spin = spin / 1.4;
xSpeed = xSpeed / 1.1;
ySpeed = (-ySpeed) / 1.5;
if (Math.round(ySpeed / 4) == 0) {
ySpeed = 0;
}
TANK._y = groundPos;
}
if (Key.isDown(_root.shootKey)) {
shoot++;
if (shoot > 3) {
shoot = 0;
}
} else {
shoot = 1;
}
if (shoot == 0) {
_root.playSound("KILLGUN");
shoot = false;
var _local3 = newBullet(TANK._x, TANK._y, (TANK.barrel._rotation + TANK._rotation) - 90);
_local3._x = _local3._x + (_local3.speed.x * 1.5);
_local3._y = _local3._y + (_local3.speed.y * 1.5);
_local3._xscale = 150;
_local3._yscale = 150;
_local3._y = _local3._y - 15;
newExplosion(_local3._x, _local3._y, 10);
} else {
shoot = 10;
}
}
}
function scrollTerrain(terrain, speed) {
terrain._x = terrain._x - speed;
if (terrain._x < (-50 - (terrain._width / 2))) {
terrain._x = terrain._x + (terrain._width / 2);
}
}
function newBullet(xPos, yPos, angle) {
var _local1 = BULLETS.attachMovie("MC_Bullet_KillGun", "B" + BULLETS.getNextHighestDepth(), BULLETS.getNextHighestDepth());
_local1._x = xPos;
_local1._y = yPos;
_local1._xscale = 60 + random(20);
_local1._yscale = _local1._xscale;
_local1.dead = false;
angle = angle + ((random(20) - 10) / 10);
_local1._rotation = angle;
_local1.speed = calcSpeed(angle, (random(10) / 10) + 20);
bulletArray.push(_local1);
return(_local1);
}
function updateBullets() {
var _local2 = 0;
while (_local2 < bulletArray.length) {
var _local1 = bulletArray[_local2];
if (_local1.hitTest(ROCK)) {
newFragments(3, _local1._x, _local1._y);
ROCK.health--;
_local1.dead = true;
}
cycleEnemies(_local1._x, _local1._y, 60, _local1);
if (_local1._y > (groundPos + 20)) {
_local1.dead = true;
newExplosion(_local1._x, _local1._y, 60);
} else if (((_local1._x < -20) || (_local1._x > 670)) || (_local1._y < -20)) {
_local1.dead = true;
}
_local1._x = _local1._x + _local1.speed.x;
_local1._y = _local1._y + _local1.speed.y;
if (_local1.dead == true) {
destroyMovieClip(_local2, bulletArray);
_local2--;
}
_local2++;
}
}
function newTank() {
var _local1 = ENEMY.attachMovie("L2TANK", "T" + ENEMY.getNextHighestDepth(), ENEMY.getNextHighestDepth());
_local1._y = groundPos + 10;
_local1.ySpeed = 0;
_local1.xSpeed = 0;
_local1.health = 5;
if (random(3) == 0) {
_local1._y = _local1._y - 100;
_local1.ySpeed = -20;
_local1.xSpeed = 10;
_local1.health = 1;
}
if (random(2) == 0) {
_local1._x = -180;
_local1.xSpeed = _local1.xSpeed * -1;
} else {
_local1._x = 830;
_local1.dir = -1;
}
_local1.dead = false;
tankArray.push(_local1);
_local1.hitLock = false;
}
function updateTank() {
var _local2 = 0;
while (_local2 < tankArray.length) {
var _local1 = tankArray[_local2];
if (_local1._y > (groundPos - 10)) {
if (_local1._x > TANK._x) {
_local1.xSpeed++;
} else {
_local1.xSpeed--;
}
_local1.xSpeed = _local1.xSpeed / 1.1;
}
_local1._x = _local1._x - _local1.xSpeed;
_local1._y = _local1._y + _local1.ySpeed;
_local1.ySpeed++;
if (_local1._y > groundPos) {
_local1._y = groundPos;
_local1.ySpeed = 0;
}
if (_local1.hitTest(ROCK)) {
newExplosion(_local1._x, _local1._y, random(50) + 120);
_local1.dead = true;
}
_local1.barrel._rotation = angle(_local1._x, _local1._y, TANK._x, TANK._y);
if (_local1.hit.hitTest(TANK.hit) && (TANK.dead == false)) {
if (_local1.ySpeed > 5) {
_local1.dead = true;
newExplosion(_local1._x, _local1._y, random(50) + 120);
ySpeed = -(random(10) + 35);
xSpeed = -((_local1._x - TANK._x) / 3);
spin = random(100) - 50;
} else if (_local1.hitLock == false) {
_local1.sprite.gotoAndPlay("attack");
_local1.hitLock = true;
}
}
if (_local1.health <= 0) {
_local1.dead = true;
}
if (_local1.dead == true) {
newMoney(25, _local1._x, _local1._y);
destroyMovieClip(_local2, tankArray);
_local2--;
}
_local2++;
}
}
function newExplosion(xPos, yPos, size) {
_root.playSound("SHOT");
shakeScreen(size / 15, size / 15);
newEffect("Explosion", xPos, yPos, size, random(360), random(20) + 80);
}
function newEffect(type, xPos, yPos, scale, rotate, alph) {
var _local1 = EFFECTS.attachMovie(type, "E" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local1._x = xPos;
_local1._y = yPos;
_local1._rotation = rotate;
_local1._alpha = alph;
_local1._xscale = (_local1._yscale = scale);
return(_local1);
}
function destroyMovieClip(i, array) {
array[i].removeMovieClip();
array.splice(i, 1);
}
function cycleEnemies(xPos, yPos, size, target) {
var _local3 = 0;
while (_local3 < enemyArray.length) {
var _local2 = 0;
while (_local2 < enemyArray[_local3].length) {
var _local1 = enemyArray[_local3][_local2];
if (_local1.dead == false) {
if (pythag(_local1._x, _local1._y, xPos, yPos) < size) {
if (_local1.health == 1) {
newExplosion(_local1._x, _local1._y, 150 + random(20));
newFragments(5, _local1._x, _local1._y);
} else {
newExplosion(_local1._x, _local1._y, 30);
if (_local1._x > TANK._x) {
_local1.xSpeed = -(random(10) + 5);
} else {
_local1.xSpeed = random(10) + 5;
}
}
target.dead = true;
_local1.health--;
}
}
_local2++;
}
_local3++;
}
}
function newHeli() {
var _local1 = ENEMY.attachMovie("L2HELI0", "T" + ENEMY.getNextHighestDepth(), ENEMY.getNextHighestDepth());
_local1._y = (groundPos - 140) - random(100);
if (random(2) == 0) {
_local1._x = -120;
_local1.dir = 1;
} else {
_local1._x = 870;
_local1.dir = -1;
}
_local1.dead = false;
_local1.health = 3;
heliArray.push(_local1);
}
function updateHeli() {
var _local2 = 0;
while (_local2 < heliArray.length) {
var _local1 = heliArray[_local2];
_local1.rotor._rotation = _local1.rotor._rotation + 45;
_local1._x = _local1._x + (6 * _local1.dir);
if (_local1.hit.hitTest(TANK.hit)) {
_local1.dead = true;
newExplosion(_local1._x, _local1._y, random(50) + 120);
xSpeed = -((_local1._x - _local1._x) / 3);
spin = random(100) - 50;
newFragments(5, _local1._x, _local1._y);
} else if ((_local1._x < -140) || (_local1._x > 790)) {
_local1.dead = true;
}
if (_local1.health <= 0) {
_local1.dead = true;
}
if (_local1.dead == true) {
newMoney(100, _local1._x, _local1._y);
destroyMovieClip(_local2, heliArray);
_local2--;
}
_local2++;
}
}
function shakeScreen(ammount, time) {
screenShake = ammount;
shakeTime = time;
}
function updateShake() {
updateDamage();
if (shakeTime > 0) {
_y = (_y + (random(screenShake) * shakeDir));
_x = (_x + (random(screenShake) * shakeDir));
shakeDir = shakeDir * -1;
shakeTime--;
} else {
screenShake = 0;
}
_y = (_y / 1.1);
}
function newFragments(num, xPos, yPos) {
var _local3 = 0;
while (_local3 < (num * (3 / _root.savefile.data.detail))) {
var _local2 = EFFECTS.attachMovie("Swain_Debris" + (6 + random(3)), "F" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local2._x = xPos;
_local2._y = yPos;
_local2._xscale = random(50) + 50;
_local2._yscale = random(50) + 50;
_local2.smokeSpan = size;
_local2.spin = random(40) - 10;
_local2.xSpeed = random(40) - 20;
_local2.ySpeed = -random(20);
fragmentArray.push(_local2);
_local3++;
}
}
function updateFragments() {
moveDF();
if (smokeCount > 0) {
smokeCount--;
}
var _local3 = 0;
while (_local3 < fragmentArray.length) {
var _local2 = fragmentArray[_local3];
_local2._rotation = _local2._rotation + _local2.spin;
_local2._x = _local2._x + _local2.xSpeed;
_local2._y = _local2._y + _local2.ySpeed;
if (((_local2.smokeSpan > 0) && (random(_root.savefile.data.detail) == 0)) && (smokeCount < (180 / _root.savefile.data.detail))) {
newEffect("Smoke", _local2._x, _local2._y, _local2.smokeSpan + random(20), random(360), 50);
smokeCount++;
}
_local2.smokeSpan = _local2.smokeSpan - 5;
_local2.ySpeed++;
if (_local2._y > 330) {
_local2._y = 360;
_local2.xSpeed = _local2.xSpeed / 1.5;
_local2.ySpeed = _local2.ySpeed * -0.5;
_local2._xscale = _local2._xscale / 2;
_local2._yscale = _local2._yscale / 2;
if (_local2._xscale < 26) {
destroyMovieClip(_local3, fragmentArray);
_local3--;
}
}
_local3++;
}
}
function moveDF() {
if (DFDestTimer[0] == 0) {
DFDest[0] = (random(100) - 50) / 10;
DFDestTimer[0] = random(40) + 40;
DFDestSpeed[0] = random(40) + 60;
}
if (DFDestTimer[1] == 0) {
DFDest[1] = (random(100) - 30) / 10;
DFDestTimer[1] = random(40) + 40;
DFDestSpeed[1] = random(40) + 60;
}
if (DFDestTimer[2] == 0) {
DFDest[2] = random(50) + 75;
DFDestTimer[2] = random(40) + 40;
DFDestSpeed[2] = random(40) + 60;
}
if (DFDestTimer[3] == 0) {
DFDest[3] = random(30) - 15;
DFDestTimer[3] = random(40) + 40;
DFDestSpeed[3] = random(40) + 60;
}
DFDestTimer[0]--;
DFDestTimer[1]--;
DFDestTimer[2]--;
DFDestTimer[3]--;
DF._x = DF._x + (((DFDest[0] - DF._x) + 650) / DFDestSpeed[0]);
DF._y = DF._y + (((DFDest[1] - DF._y) + 200) / DFDestSpeed[1]);
DF._xscale = DF._xscale + ((DFDest[2] - DF._xscale) / DFDestSpeed[2]);
DF._yscale = DF._xscale;
}
function newMoney(ammount, xPos, yPos) {
ammount = Math.round(ammount / 2);
var _local2 = EFFECTS.attachMovie("MoneyMC", "M" + EFFECTS.getNextHighestDepth(), EFFECTS.getNextHighestDepth());
_local2.txt.text = "$" + ammount;
_local2._x = xPos;
_local2._xscale = _local2._xscale * -1;
_local2._y = yPos;
_local2.yPos = yPos - 50;
moneySymbols.push(_local2);
_root.money = _root.money + ammount;
moneyMax = moneyMax + ammount;
}
function updateMoney() {
moneySymbolUpdate();
_root.HUD.money.text = "$" + _root.money;
}
function moneySymbolUpdate() {
var _local1 = 0;
while (_local1 < moneySymbols.length) {
moneySymbols[_local1]._y = moneySymbols[_local1]._y - 2;
moneySymbols[_local1]._xscale++;
moneySymbols[_local1]._yscale++;
if (moneySymbols[_local1]._y < moneySymbols[_local1].yPos) {
moneySymbols[_local1].removeMovieClip();
moneySymbols.splice(_local1, 1);
_local1--;
}
_local1++;
}
}
var i = 0;
while (i < 9) {
_root.HUD["item" + i]._alpha = 20;
i++;
}
createEmptyMovieClip("ENEMY", getNextHighestDepth());
createEmptyMovieClip("EFFECTS", getNextHighestDepth());
createEmptyMovieClip("BULLETS", getNextHighestDepth());
rockMarker.swapDepths(getNextHighestDepth());
ROCK.swapDepths(getNextHighestDepth());
TANK.swapDepths(getNextHighestDepth());
var barrelRot = 0;
var xSpeed = 0;
var ySpeed = 0;
var groundPos = TANK._y;
var spin = o;
ROCK.health = 3;
var deadTimer = 0;
var rockTimer = (random(50) + 100);
var rockActive = false;
ROCK._x = 2000;
_root.SPEAKERTRUE = true;
_root.SPEAKERPOS = 2;
_root.gamePaused = true;
_root.callMenu("SPEAKER");
rockMarker._visible = false;
TANK.dead = false;
var fuel = 400;
var blockCount = 0;
var jumpSwitch = false;
var endTimer = 1;
var bulletArray = new Array();
var tankArray = new Array();
var heliArray = new Array();
var enemyArray = new Array(tankArray, heliArray);
shakeDir = 1;
var fragmentArray = new Array();
var smokeCount = 0;
var DFDest = new Array(0, 0, 0, 0);
var DFDestTimer = new Array(0, 0, 0, 0);
var DFDestSpeed = new Array(0, 0, 0, 0);
var DF = this;
var moneyMax = 0;
var moneyPot = 0;
var moneySymbols = new Array();
Symbol 1344 MovieClip Frame 1
stop();
var i = 0;
while (i < 10) {
this["item" + i].gotoAndStop(i);
this["item" + i].val = i;
if (i < 5) {
this["item" + i].ammo = "";
} else {
this["item" + i].ammo = 0;
}
i++;
}
item0.gotoAndStop(10);
this.item0.ammo = 0;
gotoAndStop(_root.levelNo);
Symbol 1366 MovieClip Frame 102
stop();
Symbol 1377 MovieClip Frame 140
stop();
Symbol 1381 MovieClip Frame 67
stop();
op();
Symbol 1384 MovieClip Frame 339
_root.gotoAndStop("LEVEL1");
Instance of Symbol 1199 MovieClip "HELI" in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1400 MovieClip Frame 296
_root.gotoAndStop("LEVEL1");
Symbol 1408 MovieClip Frame 177
_root.gotoAndStop("LEVEL1");
Symbol 1415 MovieClip Frame 155
_root.gotoAndStop("LEVEL1");
Symbol 1422 MovieClip Frame 194
_root.gotoAndStop("LEVEL1");
Symbol 1429 MovieClip Frame 168
_root.gotoAndStop("LEVEL1");
Symbol 1430 MovieClip Frame 1
_root.setFade(_root.whiteFade, 200);
Symbol 1430 MovieClip Frame 191
_root.setFade(_root.whiteFade, 200);
_root.gotoAndStop("CUTSCENE_END2");
Symbol 1439 MovieClip Frame 651
_root.setFade(_root.whiteFade, 200);
_root.gotoAndStop("CUTSCENE_END3");
Instance of Symbol 1199 MovieClip "HELI" in Symbol 1443 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1443 MovieClip Frame 249
_root.setFade(_root.whiteFade, 200);
_root.gotoAndStop("TITLE");