Frame 1
Mouse.show();
stop();
Instance of Symbol 45 MovieClip "mcLoader" in Frame 1
onClipEvent (enterFrame) {
i = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
txtPercentLoaded = i;
if (i >= 100) {
this.gotoAndStop(2);
}
}
Frame 2
function setDefaultKeys() {
varKeyMoveVehicleLeft = 65;
varKeyMoveVehicleRight = 68;
varKeyMoveVehicleUp = 87;
varKeyMoveVehicleDown = 83;
varKeySleeperSelect = 49;
varKeyGunSelect = 50;
varKeyRocketSelect = 51;
varKeyElectroSelect = 52;
varKeyPrevWeapon = 81;
varKeyNextWeapon = 69;
varKeyZoomIn = 90;
varKeyZoomOut = 88;
varKeyMusicOnOff = 77;
varKeyPause = 80;
varKeyQuality = 79;
}
arrKeyCodeValue = new Array();
arrKeyCodeValue[8] = "Backspace";
arrKeyCodeValue[9] = "Tab";
arrKeyCodeValue[12] = "Clear";
arrKeyCodeValue[13] = "Enter";
arrKeyCodeValue[16] = "Shift";
arrKeyCodeValue[17] = "Control";
arrKeyCodeValue[18] = "Alt";
arrKeyCodeValue[20] = "Caps Lock";
arrKeyCodeValue[27] = "Esc";
arrKeyCodeValue[32] = "Spacebar";
arrKeyCodeValue[33] = "Page Up";
arrKeyCodeValue[34] = "Page Down";
arrKeyCodeValue[35] = "End";
arrKeyCodeValue[36] = "Home";
arrKeyCodeValue[37] = "Left Arrow";
arrKeyCodeValue[38] = "Up Arrow";
arrKeyCodeValue[39] = "Right Arrow";
arrKeyCodeValue[40] = "Down Arrow";
arrKeyCodeValue[45] = "Insert";
arrKeyCodeValue[46] = "Delete";
arrKeyCodeValue[47] = "Help";
arrKeyCodeValue[48] = "0";
arrKeyCodeValue[49] = "1";
arrKeyCodeValue[50] = "2";
arrKeyCodeValue[51] = "3";
arrKeyCodeValue[52] = "4";
arrKeyCodeValue[53] = "5";
arrKeyCodeValue[54] = "6";
arrKeyCodeValue[55] = "7";
arrKeyCodeValue[56] = "8";
arrKeyCodeValue[57] = "9";
arrKeyCodeValue[65] = "A";
arrKeyCodeValue[66] = "B";
arrKeyCodeValue[67] = "C";
arrKeyCodeValue[68] = "D";
arrKeyCodeValue[69] = "E";
arrKeyCodeValue[70] = "F";
arrKeyCodeValue[71] = "G";
arrKeyCodeValue[72] = "H";
arrKeyCodeValue[73] = "I";
arrKeyCodeValue[74] = "J";
arrKeyCodeValue[75] = "K";
arrKeyCodeValue[76] = "L";
arrKeyCodeValue[77] = "M";
arrKeyCodeValue[78] = "N";
arrKeyCodeValue[79] = "O";
arrKeyCodeValue[80] = "P";
arrKeyCodeValue[81] = "Q";
arrKeyCodeValue[82] = "R";
arrKeyCodeValue[83] = "S";
arrKeyCodeValue[84] = "T";
arrKeyCodeValue[85] = "U";
arrKeyCodeValue[86] = "V";
arrKeyCodeValue[87] = "W";
arrKeyCodeValue[88] = "X";
arrKeyCodeValue[89] = "Y";
arrKeyCodeValue[90] = "Z";
arrKeyCodeValue[96] = "Numpad 0";
arrKeyCodeValue[97] = "Numpad 1";
arrKeyCodeValue[98] = "Numpad 2";
arrKeyCodeValue[99] = "Numpad 3";
arrKeyCodeValue[100] = "Numpad 4";
arrKeyCodeValue[101] = "Numpad 5";
arrKeyCodeValue[102] = "Numpad 6";
arrKeyCodeValue[103] = "Numpad 7";
arrKeyCodeValue[104] = "Numpad 8";
arrKeyCodeValue[105] = "Numbpad 9";
arrKeyCodeValue[106] = "Numpad Multiply";
arrKeyCodeValue[107] = "Numpad Add";
arrKeyCodeValue[108] = "Numpad Enter";
arrKeyCodeValue[109] = "Numpad Subtract";
arrKeyCodeValue[110] = "Numpad Decimal";
arrKeyCodeValue[111] = "Numpad Divide";
arrKeyCodeValue[112] = "F1";
arrKeyCodeValue[113] = "F2";
arrKeyCodeValue[114] = "F3";
arrKeyCodeValue[115] = "F4";
arrKeyCodeValue[116] = "F5";
arrKeyCodeValue[117] = "F6";
arrKeyCodeValue[118] = "F7";
arrKeyCodeValue[119] = "F8";
arrKeyCodeValue[120] = "F9";
arrKeyCodeValue[121] = "F10";
arrKeyCodeValue[122] = "F11";
arrKeyCodeValue[123] = "F12";
arrKeyCodeValue[124] = "F13";
arrKeyCodeValue[125] = "F14";
arrKeyCodeValue[126] = "F15";
arrKeyCodeValue[144] = "Num Lock";
arrKeyCodeValue[186] = ";";
arrKeyCodeValue[187] = "=";
arrKeyCodeValue[189] = "-";
arrKeyCodeValue[191] = "/";
arrKeyCodeValue[192] = "`";
arrKeyCodeValue[219] = "[";
arrKeyCodeValue[220] = "\\";
arrKeyCodeValue[221] = "]";
arrKeyCodeValue[222] = "'";
Player = {choice:1, totalScore:0, levelScore:0};
Mouse.show();
if (defaultKeysSet) {
} else {
setDefaultKeys();
defaultKeysSet = true;
}
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Instance of Symbol 130 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyZoomIn];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyZoomIn = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyZoomIn];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 131 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyZoomOut];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyZoomOut = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyZoomOut];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 136 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleLeft];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyMoveVehicleLeft = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleLeft];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 137 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleRight];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyMoveVehicleRight = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleRight];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleUp];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyMoveVehicleUp = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleUp];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 139 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleDown];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyMoveVehicleDown = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMoveVehicleDown];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 142 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyNextWeapon];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyNextWeapon = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyNextWeapon];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 143 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyPrevWeapon];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyPrevWeapon = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyPrevWeapon];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 148 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeySleeperSelect];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeySleeperSelect = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeySleeperSelect];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 149 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyGunSelect];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyGunSelect = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyGunSelect];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 150 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyRocketSelect];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyRocketSelect = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyRocketSelect];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 151 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyElectroSelect];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyElectroSelect = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyElectroSelect];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 152 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMusicOnOff];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyMusicOnOff = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyMusicOnOff];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 153 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyPause];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyPause = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyPause];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Instance of Symbol 155 MovieClip in Frame 5
onClipEvent (load) {
status = "none";
this.txtKey = _root.arrKeyCodeValue[_root.varKeyQuality];
}
onClipEvent (keyUp) {
if (status == "selected") {
status = "none";
_root.varKeyQuality = Key.getCode();
this.txtKey = _root.arrKeyCodeValue[_root.varKeyQuality];
}
this.gotoAndStop(1);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
status = "selected";
this.gotoAndStop(2);
} else {
status = "none";
this.gotoAndStop(1);
}
}
Frame 6
stop();
Frame 7
function isVisible(x, y) {
if ((x < -10) || (550 < x)) {
return(false);
}
if ((y < 0) || (350 < y)) {
return(false);
}
return(true);
}
Camera = {origin_x:270, origin_y:135, Px:0, Py:240, Pz:0, focus:600, vehicleDx:500};
Game = {difficultyLevel:1, screenWidth:540, screenHeight:315, status:run, mission:1, playAreaWidth:5000, playAreaLength:5000, viewDistanceZ:2000};
stop();
Frame 8
stop();
Instance of Symbol 6 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
this._rotation = 300 * Math.random();
}
Instance of Symbol 8 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 5;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 8 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 5;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 8 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 5;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 8 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 5;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 9 MovieClip in Symbol 11 MovieClip [explosion1] Frame 1
onClipEvent (load) {
rot = 10 * (0.5 - Math.random());
trace(rot);
stepLength = 5;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Symbol 11 MovieClip [explosion1] Frame 5
this.removeMovieClip();
Instance of Symbol 6 MovieClip in Symbol 15 MovieClip [explosion4] Frame 1
onClipEvent (load) {
this._rotation = 300 * Math.random();
}
Instance of Symbol 13 MovieClip in Symbol 15 MovieClip [explosion4] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 13 MovieClip in Symbol 15 MovieClip [explosion4] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 13 MovieClip in Symbol 15 MovieClip [explosion4] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 13 MovieClip in Symbol 15 MovieClip [explosion4] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Symbol 15 MovieClip [explosion4] Frame 5
this.removeMovieClip();
Instance of Symbol 6 MovieClip in Symbol 19 MovieClip [explosion3] Frame 1
onClipEvent (load) {
this._rotation = 300 * Math.random();
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip [explosion3] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip [explosion3] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip [explosion3] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip [explosion3] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Symbol 19 MovieClip [explosion3] Frame 5
this.removeMovieClip();
Instance of Symbol 6 MovieClip in Symbol 23 MovieClip [explosion2] Frame 1
onClipEvent (load) {
this._rotation = 300 * Math.random();
}
Instance of Symbol 21 MovieClip in Symbol 23 MovieClip [explosion2] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 21 MovieClip in Symbol 23 MovieClip [explosion2] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 21 MovieClip in Symbol 23 MovieClip [explosion2] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 21 MovieClip in Symbol 23 MovieClip [explosion2] Frame 1
onClipEvent (load) {
rot = 3 * (0.5 - Math.random());
trace(rot);
stepLength = 10;
xStep = (1.5 * stepLength) * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Symbol 23 MovieClip [explosion2] Frame 5
this.removeMovieClip();
Instance of Symbol 6 MovieClip in Symbol 27 MovieClip [explosion0] Frame 1
onClipEvent (load) {
this._rotation = 300 * Math.random();
}
Instance of Symbol 25 MovieClip in Symbol 27 MovieClip [explosion0] Frame 1
onClipEvent (load) {
rot = 1.5 * (0.5 - Math.random());
stepLength = 17 - (20 * Math.abs(rot));
xStep = stepLength * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 25 MovieClip in Symbol 27 MovieClip [explosion0] Frame 1
onClipEvent (load) {
rot = 1.5 * (0.5 - Math.random());
stepLength = 17 - (20 * Math.abs(rot));
xStep = stepLength * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 25 MovieClip in Symbol 27 MovieClip [explosion0] Frame 1
onClipEvent (load) {
rot = 1.5 * (0.5 - Math.random());
stepLength = 17 - (20 * Math.abs(rot));
xStep = stepLength * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Instance of Symbol 25 MovieClip in Symbol 27 MovieClip [explosion0] Frame 1
onClipEvent (load) {
rot = 1.5 * (0.5 - Math.random());
stepLength = 17 - (20 * Math.abs(rot));
xStep = stepLength * Math.sin(rot);
yStep = (-stepLength) * Math.cos(rot);
}
onClipEvent (enterFrame) {
this._x = this._x + xStep;
this._y = this._y + yStep;
}
Symbol 27 MovieClip [explosion0] Frame 5
this.removeMovieClip();
Symbol 42 Button
on (release) {
_root.play();
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 51 Button
on (release) {
gotoAndPlay (3);
}
Symbol 53 Button
on (release) {
gotoAndPlay (4);
}
Symbol 55 Button
on (release) {
gotoAndPlay (5);
}
Symbol 60 Button
on (release) {
getURL ("https://www.paypal.com/xclick/business=tutitv%40hotmail.com&item_nam\r\r\ne=Tuti+TV+Support+Fund&item_number=1&no_note=1&tax=0¤cy_code=U\r\r\nSD", "_blank");
}
Symbol 69 Button
on (release) {
getURL ("http://www.tuti.tv/store.html", "_blank");
}
Symbol 70 Button
on (release) {
getURL ("http://www.tuti.tv", "_blank");
}
Symbol 74 Button
on (release) {
gotoAndPlay (6);
}
Symbol 76 MovieClip Frame 1
if (_root.Game.status == "paused") {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 80 Button
on (release) {
_root.Player.choice = 1;
gotoAndPlay (7);
}
Symbol 81 Button
on (release) {
_root.Player.choice = 2;
gotoAndPlay (7);
}
Symbol 86 Button
on (release) {
gotoAndStop (2);
}
Symbol 89 Button
on (release) {
nextFrame();
}
Symbol 96 Button
on (release) {
prevFrame();
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 108 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 3
stop();
Symbol 109 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 4
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 3
stop();
Instance of Symbol 108 MovieClip "mcVehWeap1" in Symbol 118 MovieClip Frame 3
onClipEvent (load) {
mcSelected.gotoAndStop("off");
weaponNo = 1;
gotoAndStop(weaponNo);
}
Instance of Symbol 109 MovieClip "mcVehWeap2" in Symbol 118 MovieClip Frame 3
onClipEvent (load) {
mcSelected.gotoAndStop("off");
weaponNo = 2;
gotoAndStop(weaponNo);
}
Instance of Symbol 110 MovieClip "mcVehWeap3" in Symbol 118 MovieClip Frame 3
onClipEvent (load) {
mcSelected.gotoAndStop("off");
weaponNo = 3;
gotoAndStop(weaponNo);
}
Instance of Symbol 111 MovieClip "mcVehWeap4" in Symbol 118 MovieClip Frame 3
onClipEvent (load) {
mcSelected.gotoAndStop("off");
weaponNo = 4;
gotoAndStop(weaponNo);
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 165 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=104413&sub=3018", "_blank");
}
Symbol 180 MovieClip Frame 1
stop();
Instance of Symbol 173 MovieClip "mcAlienBlip" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcAlienBlip") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "mcAlienBlip") {
setProperty(this, _x , (eval (("_root.g." + this._name) + ".x") - _root.g.mcVehicle.Px) / _root.g.mcRadarMap.zoomValue);
setProperty(this, _y , (_root.g.mcVehicle.Pz - eval (("_root.g." + this._name) + ".z")) / _root.g.mcRadarMap.zoomValue);
this._xscale = (this._yscale = 105 - (_root.g.mcRadarMap.zoomValue / 2));
if ((Math.abs(this._x) < (_root.g.mcRadarMap.regular_width / 2)) && (Math.abs(this._y) < (_root.g.mcRadarMap.regular_height / 2))) {
this._visible = true;
} else {
this._visible = false;
}
}
}
onClipEvent (load) {
}
Instance of Symbol 177 MovieClip "mcBase" in Symbol 180 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _x , (_root.g.mcBase.x - _root.g.mcVehicle.Px) / _root.g.mcRadarMap.zoomValue);
setProperty(this, _y , (_root.g.mcVehicle.Pz - _root.g.mcBase.z) / _root.g.mcRadarMap.zoomValue);
if ((Math.abs(this._x) < (_root.g.mcRadarMap.regular_width / 2)) && (Math.abs(this._y) < (_root.g.mcRadarMap.regular_height / 2))) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 178 MovieClip "mcUfoBlip" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcUfoBlip") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "mcUfoBlip") {
setProperty(this, _x , (eval (("_root.g." + this._name) + ".x") - _root.g.mcVehicle.Px) / _root.g.mcRadarMap.zoomValue);
setProperty(this, _y , (_root.g.mcVehicle.Pz - eval (("_root.g." + this._name) + ".z")) / _root.g.mcRadarMap.zoomValue);
this._xscale = (this._yscale = 105 - (_root.g.mcRadarMap.zoomValue / 2));
if ((Math.abs(this._x) < (_root.g.mcRadarMap.regular_width / 2)) && (Math.abs(this._y) < (_root.g.mcRadarMap.regular_height / 2))) {
this._visible = true;
} else {
this._visible = false;
}
}
}
onClipEvent (load) {
}
Instance of Symbol 179 MovieClip "mcGroundUfoBlip" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcGroundUfoBlip") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "mcGroundUfoBlip") {
setProperty(this, _x , (eval (("_root.g." + this._name) + ".x") - _root.g.mcVehicle.Px) / _root.g.mcRadarMap.zoomValue);
setProperty(this, _y , (_root.g.mcVehicle.Pz - eval (("_root.g." + this._name) + ".z")) / _root.g.mcRadarMap.zoomValue);
this._xscale = (this._yscale = 105 - (_root.g.mcRadarMap.zoomValue / 2));
if ((Math.abs(this._x) < (_root.g.mcRadarMap.regular_width / 2)) && (Math.abs(this._y) < (_root.g.mcRadarMap.regular_height / 2))) {
this._visible = true;
} else {
this._visible = false;
}
}
}
onClipEvent (load) {
}
Instance of Symbol 179 MovieClip "mcLightBombBlip" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcGroundUfoBlip") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "mcGroundUfoBlip") {
setProperty(this, _x , (eval (("_root.g." + this._name) + ".x") - _root.g.mcVehicle.Px) / _root.g.mcRadarMap.zoomValue);
setProperty(this, _y , (_root.g.mcVehicle.Pz - eval (("_root.g." + this._name) + ".z")) / _root.g.mcRadarMap.zoomValue);
this._xscale = (this._yscale = 105 - (_root.g.mcRadarMap.zoomValue / 2));
if ((Math.abs(this._x) < (_root.g.mcRadarMap.regular_width / 2)) && (Math.abs(this._y) < (_root.g.mcRadarMap.regular_height / 2))) {
this._visible = true;
} else {
this._visible = false;
}
}
}
onClipEvent (load) {
}
Symbol 187 MovieClip Frame 4
stop();
Symbol 189 MovieClip Frame 5
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
stop();
Symbol 190 MovieClip Frame 3
stop();
Symbol 190 MovieClip Frame 4
stop();
Symbol 203 MovieClip Frame 9
_root.g.gotoAndStop("gameOver");
stopAllSounds();
stop();
Symbol 204 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 191 MovieClip "mcGun" in Symbol 204 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Game.status == "paused") {
} else {
this._x = _parent.mcVehicle._x;
this._y = _parent.mcVehicle._y;
rot = 180 / (Math.PI / Math.atan((_root._ymouse - _root.g.mcVehicle._y) / (_root._xmouse - _root.g.mcVehicle._x)));
if (_root.g.mcVehicle._x < _root._xmouse) {
this._rotation = rot;
} else {
this._rotation = 180 + rot;
}
}
}
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 204 MovieClip Frame 4
stop();
Symbol 204 MovieClip Frame 5
stop();
Symbol 204 MovieClip Frame 6
stop();
Symbol 204 MovieClip Frame 7
stop();
Symbol 204 MovieClip Frame 8
stop();
Symbol 204 MovieClip Frame 9
stop();
Symbol 210 MovieClip Frame 5
this.stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
if (_parent._visible) {
_root.g.mcAlien1Attack.gotoAndPlay(2);
}
Symbol 212 MovieClip Frame 8
if (Math.random() < _parent.attackDamageChance) {
if (_parent.attackTarget == "vehicle") {
_root.g.mcVehicle.energy = _root.g.mcVehicle.energy - _parent.attackEnergy;
} else if (_parent.attackTarget == "base") {
_root.g.mcBase.energy = _root.g.mcBase.energy - _parent.attackEnergy;
}
}
_parent.status = "standing";
Symbol 219 MovieClip Frame 5
this.stop();
Symbol 224 MovieClip Frame 1
attackTarget = "vehicle";
Instance of Symbol 182 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 224 MovieClip Frame 5
_root.g.alienGetsKilled("alien1");
Symbol 224 MovieClip Frame 6
_root.g.removeAlien(_parent);
stop();
Symbol 225 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "mcHitArea" in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 212 MovieClip "mcAttack" in Symbol 225 MovieClip Frame 1
/* no clip actions */
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
stop();
Instance of Symbol 218 MovieClip in Symbol 225 MovieClip Frame 3
onClipEvent (load) {
noOfFramesToSleep = 50;
}
onClipEvent (enterFrame) {
noOfFramesToSleep--;
mcTimerHand._rotation = 4 * noOfFramesToSleep;
if (0 >= noOfFramesToSleep) {
_parent.status = "walking";
_parent.gotoAndStop(_parent.status);
}
}
Instance of Symbol 219 MovieClip "mcTargetBox" in Symbol 225 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop("standing");
status = "sleeping";
}
Symbol 225 MovieClip Frame 4
stop();
Instance of Symbol 206 MovieClip "mcHitArea" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 182 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
if (_parent._visible) {
_root.g.mcAlien3Attack.gotoAndPlay(2);
}
Symbol 238 MovieClip Frame 9
if (Math.random() < _parent.attackDamageChance) {
if (_parent.attackTarget == "vehicle") {
_root.g.mcVehicle.energy = _root.g.mcVehicle.energy - _parent.attackEnergy;
} else if (_parent.attackTarget == "base") {
_root.g.mcBase.energy = _root.g.mcBase.energy - _parent.attackEnergy;
}
}
_parent.status = "standing";
Instance of Symbol 182 MovieClip in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 247 MovieClip Frame 5
_root.g.alienGetsKilled("alien3");
Symbol 247 MovieClip Frame 6
_root.g.removeAlien(_parent);
stop();
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "mcHitArea" in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
stop();
Instance of Symbol 219 MovieClip "mcTargetBox" in Symbol 248 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop("standing");
status = "sleeping";
}
Instance of Symbol 243 MovieClip in Symbol 248 MovieClip Frame 3
onClipEvent (load) {
noOfFramesToSleep = 30;
}
onClipEvent (enterFrame) {
noOfFramesToSleep--;
mcTimerHand._rotation = 4 * noOfFramesToSleep;
if (0 >= noOfFramesToSleep) {
_parent.status = "walking";
_parent.gotoAndStop(_parent.status);
}
}
Symbol 248 MovieClip Frame 4
stop();
Instance of Symbol 182 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 182 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
if (_parent._visible) {
_root.g.mcAlien3Attack.gotoAndPlay(2);
}
Symbol 251 MovieClip Frame 9
if (Math.random() < _parent.attackDamageChance) {
if (_parent.attackTarget == "vehicle") {
_root.g.mcVehicle.energy = _root.g.mcVehicle.energy - _parent.attackEnergy;
} else if (_parent.attackTarget == "base") {
_root.g.mcBase.energy = _root.g.mcBase.energy - _parent.attackEnergy;
}
}
_parent.status = "standing";
Instance of Symbol 182 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 260 MovieClip Frame 5
_root.g.alienGetsKilled("alien2");
Symbol 260 MovieClip Frame 6
_root.g.removeAlien(_parent);
stop();
Symbol 261 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "mcHitArea" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 251 MovieClip "mcAttack" in Symbol 261 MovieClip Frame 1
/* no clip actions */
Symbol 261 MovieClip Frame 2
stop();
Symbol 261 MovieClip Frame 3
stop();
Instance of Symbol 219 MovieClip "mcTargetBox" in Symbol 261 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop("standing");
status = "sleeping";
}
Instance of Symbol 256 MovieClip in Symbol 261 MovieClip Frame 3
onClipEvent (load) {
noOfFramesToSleep = 40;
}
onClipEvent (enterFrame) {
noOfFramesToSleep--;
mcTimerHand._rotation = 4 * noOfFramesToSleep;
if (0 >= noOfFramesToSleep) {
_parent.status = "walking";
_parent.gotoAndStop(_parent.status);
}
}
Symbol 261 MovieClip Frame 4
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
if (_parent._visible) {
_root.g.mcAlien4Attack.gotoAndPlay(2);
}
Symbol 262 MovieClip Frame 10
if (Math.random() < _parent.attackDamageChance) {
if (_parent.attackTarget == "vehicle") {
_root.g.mcVehicle.energy = _root.g.mcVehicle.energy - _parent.attackEnergy;
} else if (_parent.attackTarget == "base") {
_root.g.mcBase.energy = _root.g.mcBase.energy - _parent.attackEnergy;
}
}
_parent.status = "standing";
Instance of Symbol 182 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 274 MovieClip Frame 5
_root.g.alienGetsKilled("alien4");
Symbol 274 MovieClip Frame 6
_root.g.removeAlien(_parent);
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "mcHitArea" in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 262 MovieClip "mcAttack" in Symbol 275 MovieClip Frame 1
/* no clip actions */
Symbol 275 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 3
stop();
Instance of Symbol 219 MovieClip "mcTargetBox" in Symbol 275 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop("standing");
status = "sleeping";
}
Instance of Symbol 270 MovieClip in Symbol 275 MovieClip Frame 3
onClipEvent (load) {
noOfFramesToSleep = 20;
}
onClipEvent (enterFrame) {
noOfFramesToSleep--;
mcTimerHand._rotation = 4 * noOfFramesToSleep;
if (0 >= noOfFramesToSleep) {
_parent.status = "walking";
_parent.gotoAndStop(_parent.status);
}
}
Symbol 275 MovieClip Frame 4
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 4
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 304 MovieClip Frame 3
stop();
Symbol 304 MovieClip Frame 4
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 3
stop();
Symbol 305 MovieClip Frame 4
stop();
Symbol 313 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 326 MovieClip Frame 1
function setVehicleAmmo(ammo1qty, ammo2qty, ammo3qty, ammo4qty) {
_root.g.txtVehWeap1Qty = (_root.g.Ammo.weapon1Qty = ammo1qty);
_root.g.txtVehWeap2Qty = (_root.g.Ammo.weapon2Qty = ammo2qty);
_root.g.txtVehWeap3Qty = (_root.g.Ammo.weapon3Qty = ammo3qty);
_root.g.txtVehWeap4Qty = (_root.g.Ammo.weapon4Qty = ammo4qty);
}
function alienGetsKilled(alienID) {
if (alienID == "alien1") {
_root.g.alien1killed++;
score = 20;
} else if (alienID == "alien2") {
_root.g.alien2killed++;
score = 25;
} else if (alienID == "alien3") {
_root.g.alien3killed++;
score = 30;
} else if (alienID == "alien4") {
_root.g.alien4killed++;
score = 40;
}
_root.g.txtScore = _root.g.txtScore + score;
_root.g.noOfAliensOnStage--;
}
function selectVehicleWeaponGUI(weaponNo) {
_root.g.mcVehWeap1.mcSelected.gotoAndStop("off");
_root.g.mcVehWeap2.mcSelected.gotoAndStop("off");
_root.g.mcVehWeap3.mcSelected.gotoAndStop("off");
_root.g.mcVehWeap4.mcSelected.gotoAndStop("off");
gotoAndStop(("_root.g.mcVehWeap" + weaponNo) + ".mcSelected.on");
}
function removeAlien(objName) {
obj = eval (objName);
removeMovieClip(eval ("_root.g.mcRadarMap." + obj._name));
obj.swapDepths(0);
duplicateMovieClip (_root.g.mcEmpty, "mcEmpty2", 0);
}
function doMyPower(baseNumber, exponent) {
if (baseNumber < 0) {
return(-Math.pow(Math.abs(baseNumber), exponent));
}
if (0 < baseNumber) {
return(Math.pow(baseNumber, exponent));
}
if (baseNumber == 0) {
return(0);
}
}
function calculateObjectScreenProperties(obj) {
obj = eval (obj);
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (obj.z - _root.Camera.Pz));
obj._x = _root.Camera.origin_x + ((obj.x - _root.Camera.Px) * perspective_ratio);
obj._y = _root.Camera.origin_y - ((obj.y - _root.Camera.Py) * perspective_ratio);
obj._xscale = (obj._yscale = obj.regular_size * perspective_ratio);
obj._visible = _root.isVisible(obj._x, obj._y);
}
function createAlienAttack(type, x, y, depth) {
depth = int(depth);
if (type == "alienBullet") {
name = (("mcAlienBullet" + depth) + ".") + alienName;
duplicateMovieClip (_root.g.mcAlienBullet, "mcAlienBullet" + depth, depth);
}
}
function createExplosion(type, x, y) {
explosionDepth = 100 + (1000 * int(Math.random()));
if (type == "bullet") {
_root.attachMovie("explosion0", "mcBullet" + explosionDepth, explosionDepth);
} else if (type == "sleeperHitsAlien") {
_root.attachMovie("explosion1", "mcSleeperHitsAlien" + explosionDepth, explosionDepth);
} else if (type == "bulletHitsAlien") {
_root.attachMovie("explosion2", "mcBulletHitsAlien" + explosionDepth, explosionDepth);
} else if (type == "rocketHitsAlien") {
_root.attachMovie("explosion3", "mcRocketHitsAlien" + explosionDepth, explosionDepth);
} else if (type == "electroHitsAlien") {
_root.attachMovie("explosion4", "mcElectroHitsAlien" + explosionDepth, explosionDepth);
}
setProperty(("_root.mc" + type) + explosionDepth, _x , x);
setProperty(("_root.mc" + type) + explosionDepth, _y , y);
xscale = 150 * ((y - _root.Camera.origin_y) / (_root.Game.screenHeight - _root.Camera.origin_y));
yscale = 150 * ((y - _root.Camera.origin_y) / (_root.Game.screenHeight - _root.Camera.origin_y));
setProperty(("_root.mc" + type) + explosionDepth, _xscale , xscale);
setProperty(("_root.mc" + type) + explosionDepth, _yscale , yscale);
}
function calculateDistanceFromVehicle(x, z) {
}
function calculateDistance(x1, z1, x2, z2) {
return(Math.sqrt(Math.pow(Math.abs(z2 - z1), 2) + Math.pow(Math.abs(x2 - x1), 2)));
}
function calculateAngleBetweenPoints(x1, y1, x2, y2) {
angle = Math.atan((y2 - y1) / (x2 - x1));
if (x1 < x2) {
return(angle);
}
return(angle + Math.PI);
}
Cable = {PxV:0, PyV:0, PzV:0, PxA:0, PyA:0, PzA:0, status:"retracted", initialLength:0, currLength:0, maxElongation:0};
Animal = {m:0, Px:0, Py:0, Pz:0, Vx1:0, Vx2:0, Vz1:0, Vz2:0, Vmax:0, Tx:0, Tz:0, TxMax:0, TzMax:0, maxDirectionAngle:0, changeDirFrameNo:0, energy:0};
Ammo = {weapon1Qty:0, weapon1Qty:0, weapon1Qty:0, weapon1Qty:0};
arrTarget = new Array();
arrTarget[0] = "_parent.mcAlien.mcHitArea";
arrTarget[1] = "_parent.mcAlien2.mcHitArea";
currentNoOfTargets = 2;
currentAttackingEnemy = "";
currentAttackingEnemyX = 0;
currentAttackingEnemyY = 0;
currentAttackingEnemyZ = 0;
noOfGroundBumps = 10;
noOfTrees = 10;
noOfAliens = 3;
mcDepth = 0;
bumpNo = 0;
treeNo = 0;
alienNo = 0;
currentAlienSpawnPoint = "";
spawnPointDistanceFromBaseX = 500;
spawnPointDistanceFromBaseZ = 1000;
spawnMaxXdistanceFromSpawnPoint = 1000;
noOfFramesBetweenAlienCreation = 100;
_root.g.mcGameMusic.gotoAndPlay(2);
k = 0;
while (k < noOfAliens) {
mcDepth++;
k++;
}
noOfBumpsW = 9;
noOfBumpsL = 9;
bumpSpreadDistance = 300;
var i = 0;
while (i < noOfBumpsW) {
var j = 1;
while (j < noOfBumpsL) {
if (0.25 < Math.random()) {
duplicateMovieClip (_root.g.groundBump, "groundBump" + mcDepth, mcDepth);
} else {
duplicateMovieClip (_root.g.mcTree, "groundBump" + mcDepth, mcDepth);
}
Set(("groundBump" + mcDepth) + ".x", (((-_root.Game.playAreaWidth) / 2) + (i * (_root.Game.playAreaWidth / (noOfBumpsW - 1)))) + (bumpSpreadDistance * (-0.5 + Math.random())));
Set(("groundBump" + mcDepth) + ".z", (((-_root.Game.playAreaWidth) / 2) + (j * (_root.Game.playAreaLength / (noOfBumpsL - 1)))) + (bumpSpreadDistance * (-0.5 + Math.random())));
x = eval (("groundBump" + mcDepth) + ".x");
z = z + (bumpSpreadDistance * (-0.5 * random(1)));
mcDepth++;
j++;
}
i++;
}
Instance of Symbol 180 MovieClip "mcRadarMap" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
regular_width = this._width;
regular_height = this._height;
zoomValue = 80;
zoomChangeValue = 2;
txtZoomValue = zoomValue;
}
onClipEvent (keyDown) {
if (Key.isDown(_root.varKeyZoomIn) && (20 < zoomValue)) {
zoomValue = zoomValue / zoomChangeValue;
} else if (Key.isDown(_root.varKeyZoomOut) && (zoomValue < 160)) {
zoomValue = zoomValue * zoomChangeValue;
}
txtZoomValue = zoomValue;
}
Instance of Symbol 204 MovieClip "mcVehicle" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
m = 0;
Px = -200;
Py = 45;
Pz = 100;
Vx1 = 0;
Vx2 = 0;
Vz1 = 0;
Vz2 = 0;
Tx = 0;
Tz = 0;
TxMax = 0;
TzMax = 0;
airFricCoeff = 0.95;
energy = 100;
currentWeapon = 2;
currentWeaponOutOfAmmo = false;
targetHit = "";
noOfBulletsOnScreen = 0;
noOfRocketsOnScreen = 0;
noOfSleepersOnScreen = 0;
regular_width = this._width;
regular_height = this._height;
if (_root.Player.choice == 1) {
m = 80;
TxMax = 100;
TzMax = 100;
} else if (_root.Player.choice == 2) {
m = 200;
TxMax = 120;
TzMax = 100;
} else if (_root.Player.choice == 3) {
m = 300;
TxMax = 120;
TzMax = 120;
}
}
onClipEvent (enterFrame) {
txtTest = _root.g.noOfAliensOnStage < _root.g.maxNoOfAliensAllowedOnStage;
_root.g.txtVehicleShield = energy;
if (_root.Game.status == "paused") {
} else if (0 >= energy) {
_root.Game.status = "paused";
this.gotoAndStop(9);
Mouse.show();
} else {
if (targetHit != "") {
}
targetHit = "";
currentWeaponOutOfAmmo = false;
_root.Camera.Px = Px;
_root.Camera.Pz = Pz - _root.Camera.vehicleDx;
Tx = (Key.isDown(_root.varKeyMoveVehicleRight) * TxMax) - (Key.isDown(_root.varKeyMoveVehicleLeft) * TxMax);
Tz = (Key.isDown(_root.varKeyMoveVehicleUp) * TzMax) - (Key.isDown(_root.varKeyMoveVehicleDown) * TzMax);
if (0 < Tx) {
if (0 < Tz) {
this.gotoAndStop(2);
} else if (Tz < 0) {
this.gotoAndStop(8);
} else if (Tz == 0) {
this.gotoAndStop(1);
}
} else if (Tx == 0) {
if (0 < Tz) {
this.gotoAndStop(3);
} else if (Tz < 0) {
this.gotoAndStop(7);
} else if (Tz == 0) {
}
} else if (Tx < 0) {
if (0 < Tz) {
this.gotoAndStop(4);
} else if (Tz < 0) {
this.gotoAndStop(6);
} else if (Tz == 0) {
this.gotoAndStop(5);
}
}
Vx2 = airFricCoeff * ((Tx / m) + Vx1);
Vz2 = airFricCoeff * ((Tz / m) + Vz1);
Px = Px + Vx2;
Pz = Pz + Vz2;
if ((_root.Game.playAreaWidth / 2) < Px) {
Px = (_root.Game.playAreaWidth / 2) - 10;
Vx2 = -Vx2;
} else if (Px < ((-_root.Game.playAreaWidth) / 2)) {
Px = ((-_root.Game.playAreaWidth) / 2) + 10;
Vx2 = -Vx2;
}
if ((_root.Game.playAreaLength / 2) < Pz) {
Pz = (_root.Game.playAreaLength / 2) - 10;
Vz2 = -Vz2;
} else if (Pz < ((-_root.Game.playAreaLength) / 2)) {
Pz = ((-_root.Game.playAreaLength) / 2) + 10;
Vz2 = -Vz2;
}
Vx1 = Vx2;
Vz1 = Vz2;
}
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (Pz - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((Px - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((Py - _root.Camera.Py) * perspective_ratio);
this._width = this.regular_width * perspective_ratio;
this._height = this.regular_height * perspective_ratio;
this.swapDepths(int(-Pz));
}
onClipEvent (mouseDown) {
if (_root.Game.status == "paused") {
} else {
if (currentWeapon == 1) {
if (0 < _parent.Ammo.weapon1Qty) {
currentWeaponOutOfAmmo = false;
noOfBulletsOnScreen++;
_parent.Ammo.weapon1Qty--;
_root.g.txtVehWeap1Qty = _parent.Ammo.weapon1Qty;
_parent.mcVehicle.mcGun.mcGunFlash.play();
} else {
currentWeaponOutOfAmmo = true;
}
} else if (currentWeapon == 2) {
if (0 < _parent.Ammo.weapon2Qty) {
currentWeaponOutOfAmmo = false;
noOfBulletsOnScreen++;
_parent.Ammo.weapon2Qty--;
_root.g.txtVehWeap2Qty = _parent.Ammo.weapon2Qty;
_parent.mcVehicle.mcGun.mcGunFlash.play();
} else {
currentWeaponOutOfAmmo = true;
}
} else if (currentWeapon == 3) {
if (0 < _parent.Ammo.weapon3Qty) {
currentWeaponOutOfAmmo = false;
noOfBulletsOnScreen++;
_parent.Ammo.weapon3Qty--;
_root.g.txtVehWeap3Qty = _parent.Ammo.weapon3Qty;
_parent.mcVehicle.mcGun.mcGunFlash.play();
} else {
currentWeaponOutOfAmmo = true;
}
} else if (currentWeapon == 4) {
if (0 < _parent.Ammo.weapon4Qty) {
currentWeaponOutOfAmmo = false;
noOfBulletsOnScreen++;
_parent.Ammo.weapon4Qty--;
_root.g.txtVehWeap4Qty = _parent.Ammo.weapon4Qty;
_parent.mcVehicle.mcGun.mcGunFlash.play();
} else {
currentWeaponOutOfAmmo = true;
}
}
if ((targetHit == "") && (!currentWeaponOutOfAmmo)) {
_parent.createExplosion("bullet", _root._xmouse, _root._ymouse);
}
this.swapDepths(int(-Vehicle.Pz));
}
}
onClipEvent (keyDown) {
if (_root.Game.status == "paused") {
} else {
if (Key.getCode() == _root.varKeySleeperSelect) {
currentWeapon = 1;
} else if (Key.getCode() == _root.varKeyGunSelect) {
currentWeapon = 2;
} else if (Key.getCode() == _root.varKeyRocketSelect) {
currentWeapon = 3;
} else if (Key.getCode() == _root.varKeyElectroSelect) {
currentWeapon = 4;
} else if (Key.getCode() == _root.varKeyPrevWeapon) {
if (1 < currentWeapon) {
currentWeapon--;
} else {
currentWeapon = 1;
}
} else if (Key.getCode() == _root.varKeyNextWeapon) {
if (currentWeapon < 4) {
currentWeapon++;
} else {
currentWeapon = 4;
}
}
varKeyMusicOnOff = 88;
varKeyPause = 80;
_root.g.selectVehicleWeaponGUI(currentWeapon);
}
}
Instance of Symbol 225 MovieClip "mcAlien" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcAlien") {
this._visible = false;
} else {
this._visible = true;
status = "standing";
this.gotoAndStop(status);
energy = 100;
distanceFromVehicle = 0;
vehicleSeeDistance = 700;
vehicleAttackDistance = 300;
baseAttackDistance = 300;
attackTarget = "";
attackEnergy = _root.g.alien1attackEnergy;
attackDamageChance = 1;
noOfFramesToWaitAfterAttack = 0;
regular_size = this._width;
if (_root.Game.mission == 1) {
spawnPointDistanceVariation = _root.g.spawnMaxXdistanceFromSpawnPoint * Math.random();
x = eval (_root.g.currentAlienSpawnPoint + ".x");
if (0 < x) {
x = x + spawnPointDistanceVariation;
} else {
x = x - spawnPointDistanceVariation;
}
y = 0;
z = eval (_root.g.currentAlienSpawnPoint + ".z");
if (0 < z) {
z = z - spawnPointDistanceVariation;
} else {
z = z + spawnPointDistanceVariation;
}
}
Vx = random(5);
Vz = random(5);
VmaxRun = 5;
VmaxWalk = 22;
noOfFramesToWalkOrStop = 36;
frameCounter = 0;
noOfFramesToStop = 24;
_root.g.mcRadarMap.mcAlienBlip.duplicateMovieClip(this._name, int(100 * Math.random()));
}
}
onClipEvent (mouseDown) {
if (_root.Game.status == "paused") {
} else if (this._name != "mcAlien") {
if (mcTargetBox._visible == true) {
if (_parent.mcVehicle.targetHit == "") {
_parent.mcVehicle.targetHit = this._target;
if (_parent.mcVehicle.currentWeapon == 1) {
this.gotoAndStop("sleeping");
status = "sleeping";
Vx = 0;
Vz = 0;
_parent.createExplosion("sleeperHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 2) && (0 < _root.g.Ammo.weapon2Qty)) {
energy = energy - _root.g.vehicleWeapon2attackEnergy;
_parent.createExplosion("bulletHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 3) && (0 < _root.g.Ammo.weapon3Qty)) {
energy = energy - _root.g.vehicleWeapon3attackEnergy;
_parent.createExplosion("rocketHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 4) && (0 < _root.g.Ammo.weapon4Qty)) {
energy = energy - _root.g.vehicleWeapon4attackEnergy;
_parent.createExplosion("electroHitsAlien", _root._xmouse, _root._ymouse);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.Game.status == "paused") {
} else if (this._name != "mcAlien") {
x = x + Vx;
z = z + Vz;
distanceFromVehicle = _parent.calculateDistance(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
distanceFromBase = _parent.calculateDistance(x, z, _root.g.mcBase.x, _root.g.mcBase.z);
frameCounter++;
_root.g.moveRadarBlip(this._name, z);
if (status == "sleeping") {
} else if (status == "dead") {
stop();
} else if (distanceFromVehicle < vehicleSeeDistance) {
if (distanceFromVehicle < vehicleAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "vehicle";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
} else {
if (distanceFromBase < baseAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "base";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
if (frameCounter >= noOfFramesToWalkOrStop) {
if (Math.random() < 0.5) {
status = "walking";
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
} else {
status = "standing";
Vx = 0;
Vz = 0;
noOfFramesToStop = 24;
}
this.gotoAndStop(status);
frameCounter = 0;
}
}
if (0 >= energy) {
if (status != "dead") {
status = "dead";
this.gotoAndPlay(status);
}
} else {
this._visible = true;
if (mcHitArea.hitTest(_root._xmouse, _root._ymouse, false)) {
if (!mcTargetBox._visible) {
mcTargetBox.play();
}
mcTargetBox._visible = true;
} else {
mcTargetBox._visible = false;
}
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if ((_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) && (0 < (z - _root.Camera.Pz))) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(int(-z));
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 28 MovieClip [mcTree] "mcTree" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcTree") {
this._visible = false;
} else {
trace("CREATED: " + this._target);
regular_size = this._width;
spread_x = 3000;
spread_z = 3000;
y = 0;
}
}
onClipEvent (enterFrame) {
if (this._name != "mcTree") {
if ((z - _root.Camera.Pz) < 0) {
} else {
this._visible = true;
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if (_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
trace("Tree: " + z);
this.swapDepths(int(-z));
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 227 MovieClip "groundBump" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "groundBump") {
this._visible = false;
} else {
trace("CREATED: " + this._target);
regular_size = this._width;
spread_x = 3000;
spread_z = 1000;
y = 0;
}
}
onClipEvent (enterFrame) {
if (this._name != "groundBump") {
if ((z - _root.Camera.Pz) < 0) {
} else {
this._visible = true;
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if (_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(int(-z));
vartest = z - _root.Camera.Pz;
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 229 MovieClip "mcBullet" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcBullet") {
this._visible = false;
quantity = 0;
} else {
regular_size = this._width;
speed = 15;
xStart = _parent.mcVehicle.Px;
yStart = _parent.mcVehicle.Py;
zStart = _parent.mcVehicle.Pz;
perspective_ratio = (_root.Camera.origin_y - _root._ymouse) / (y - _root.Camera.Py);
xFin = ((_root._xmouse - _root.Camera.origin_x) / perspective_ratio) + _root.Camera.Px;
yFin = 5;
zFin = ((_root.Camera.focus / perspective_ratio) - _root.Camera.focus) + _root.Camera.Pz;
hypXZ = Math.sqrt(_parent.doMyPower(Math.abs(zFin - zStart), 2) + _parent.doMyPower(Math.abs(xFin - xStart), 2));
hyp = Math.sqrt(_parent.doMyPower(Math.abs(yFin - yStart), 2) + _parent.doMyPower(Math.abs(hypXZ), 2));
xSpeed = (xFin - xStart) / (hyp / speed);
ySpeed = (yFin - yStart) / (hyp / speed);
zSpeed = (zFin - zStart) / (hyp / speed);
isHitSomething = false;
}
}
onClipEvent (enterFrame) {
if (this._visible == true) {
x = x + xSpeed;
y = y + ySpeed;
z = z + zSpeed;
this._visible = true;
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
this._visible = _root.isVisible(this._x, this._y);
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(-z);
i = 0;
while (i < _parent.currentNoOfTargets) {
if (this.hitTest(_parent.arrTarget[i])) {
_parent.createExplosion("bullet", this._x, this._y);
this.removeMovieClip();
}
i++;
}
if (y < yFin) {
this.removeMovieClip();
this._visible = false;
}
}
}
Instance of Symbol 231 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
this._x = _root._xmouse;
this._y = _root._ymouse;
this.swapDepths(10000);
}
Instance of Symbol 235 MovieClip "mcBase" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
regular_size = this._width;
x = 0;
y = 0;
z = 1;
energy = 100;
noOfFramesForNextBaseReload = 90;
noOfFramesForNextBaseReloadLeft = 0;
baseDistanceFromVehicle = 0;
}
onClipEvent (enterFrame) {
txtTest = energy;
_root.g.txtBaseShield = energy;
if (0 >= energy) {
_root.Game.status = "paused";
stopAllSounds();
_root.g.gotoAndStop("gameOver");
}
if (0 < noOfFramesForNextBaseReloadLeft) {
noOfFramesForNextBaseReloadLeft--;
}
_root.g.txtBaseReload = noOfFramesForNextBaseReloadLeft;
if (0 < (z - _root.Camera.Pz)) {
_root.g.calculateObjectScreenProperties(this._target);
if (this._visible) {
this.swapDepths(int(-z));
}
baseDistanceFromVehicle = _root.g.calculateDistance(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
if ((50 >= baseDistanceFromVehicle) && (0 >= noOfFramesForNextBaseReloadLeft)) {
if (_root.Player.choice == 1) {
if (_root.Game.difficultyLevel == 1) {
_root.g.setVehicleAmmo(50, 20, 0, 0);
} else if (_root.Game.difficultyLevel == 2) {
_root.g.setVehicleAmmo(70, 30, 5, 0);
} else if (_root.Game.difficultyLevel == 3) {
_root.g.setVehicleAmmo(99, 40, 10, 2);
} else if (_root.Game.difficultyLevel == 4) {
_root.g.setVehicleAmmo(99, 50, 15, 5);
}
} else if (_root.Player.choice == 2) {
_root.g.setVehicleAmmo(99, 50, 15, 5);
}
if ((_root.g.mcVehicle.energy + 10) >= 100) {
_root.g.mcVehicle.energy = 100;
} else {
_root.g.mcVehicle.energy = _root.g.mcVehicle.energy + 10;
}
noOfFramesForNextBaseReloadLeft = int(15000 / (50 + energy));
}
}
}
Instance of Symbol 248 MovieClip "mcUfo" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcUfo") {
this._visible = false;
} else {
this._visible = true;
status = "standing";
this.gotoAndStop(status);
energy = 100;
distanceFromVehicle = 0;
vehicleSeeDistance = 500;
vehicleAttackDistance = 300;
baseAttackDistance = 200;
attackTarget = "";
attackEnergy = _root.g.alien3attackEnergy;
attackDamageChance = 1;
noOfFramesToWaitAfterAttack = 0;
regular_size = this._width;
if (_root.Game.mission == 1) {
spawnPointDistanceVariation = _root.g.spawnMaxXdistanceFromSpawnPoint * Math.random();
x = eval (_root.g.currentAlienSpawnPoint + ".x");
if (0 < x) {
x = x + spawnPointDistanceVariation;
} else {
x = x - spawnPointDistanceVariation;
}
y = 0;
z = eval (_root.g.currentAlienSpawnPoint + ".z");
if (0 < z) {
z = z - spawnPointDistanceVariation;
} else {
z = z + spawnPointDistanceVariation;
}
}
Vx = random(5);
Vz = random(5);
VmaxRun = 12;
VmaxWalk = 2;
noOfFramesToWalkOrStop = 36;
frameCounter = 0;
noOfFramesToStop = 24;
_root.g.mcRadarMap.mcUfoBlip.duplicateMovieClip(this._name, int(100 * Math.random()));
}
}
onClipEvent (mouseDown) {
if (_root.Game.status == "paused") {
} else if (this._name != "mcUfo") {
if (mcTargetBox._visible == true) {
if (_parent.mcVehicle.targetHit == "") {
_parent.mcVehicle.targetHit = this._target;
if (_parent.mcVehicle.currentWeapon == 1) {
this.gotoAndStop("sleeping");
status = "sleeping";
Vx = 0;
Vz = 0;
_parent.createExplosion("sleeperHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 2) && (0 < _root.g.Ammo.weapon2Qty)) {
energy = energy - _root.g.vehicleWeapon2attackEnergy;
_parent.createExplosion("bulletHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 3) && (0 < _root.g.Ammo.weapon3Qty)) {
energy = energy - _root.g.vehicleWeapon3attackEnergy;
_parent.createExplosion("rocketHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 4) && (0 < _root.g.Ammo.weapon4Qty)) {
energy = energy - _root.g.vehicleWeapon4attackEnergy;
_parent.createExplosion("electroHitsAlien", _root._xmouse, _root._ymouse);
}
}
}
}
}
onClipEvent (enterFrame) {
txtTest = status;
if (_root.Game.status == "paused") {
} else if (this._name != "mcUfo") {
x = x + Vx;
z = z + Vz;
distanceFromVehicle = _parent.calculateDistance(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
distanceFromBase = _parent.calculateDistance(x, z, _root.g.mcBase.x, _root.g.mcBase.z);
frameCounter++;
_root.g.moveRadarBlip(this._name, z);
if (status == "sleeping") {
} else if (status == "dead") {
stop();
} else if (distanceFromVehicle < vehicleSeeDistance) {
if (distanceFromVehicle < vehicleAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "vehicle";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
} else {
if (distanceFromBase < baseAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "base";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
if (frameCounter >= noOfFramesToWalkOrStop) {
if (Math.random() < 0.5) {
status = "walking";
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxWalk * Math.cos(directionAngle);
Vz = VmaxWalk * Math.sin(directionAngle);
} else {
status = "standing";
Vx = 0;
Vz = 0;
noOfFramesToStop = 24;
}
this.gotoAndStop(status);
frameCounter = 0;
}
}
if (0 >= energy) {
if (status != "dead") {
status = "dead";
this.gotoAndPlay(status);
}
} else {
this._visible = true;
if (mcHitArea.hitTest(_root._xmouse, _root._ymouse, false)) {
if (!mcTargetBox._visible) {
mcTargetBox.play();
}
mcTargetBox._visible = true;
} else {
mcTargetBox._visible = false;
}
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if ((_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) && (0 < (z - _root.Camera.Pz))) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(int(-z));
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 249 MovieClip "mcAlienSpawnPoint2" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
regular_size = this._width;
x = -_root.g.spawnPointDistanceFromBaseX;
y = 0;
z = _root.g.spawnPointDistanceFromBaseZ;
nextAlienCreationFrame = 100 * Math.random();
}
onClipEvent (enterFrame) {
if (_root.Game.status == "paused") {
} else {
nextAlienCreationFrame--;
if ((0 >= nextAlienCreationFrame) && (_root.g.noOfAliensOnStage < _root.g.maxNoOfAliensAllowedOnStage)) {
nextEnemy = Math.random();
if (_root.g.percentCreationAlien >= nextEnemy) {
duplicateMovieClip (_root.g.mcAlien, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationGroundUfo >= nextEnemy) {
duplicateMovieClip (_root.g.mcGroundUfo, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationUfo >= nextEnemy) {
duplicateMovieClip (_root.g.mcUfo, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationLightBomb >= nextEnemy) {
duplicateMovieClip (_root.g.mcLightBomb, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
}
_root.g.alienNo++;
_root.g.currentAlienSpawnPoint = this._target;
_root.g.noOfAliensOnStage++;
nextAlienCreationFrame = _root.g.noOfFramesBetweenAlienCreation + (10 * Math.random());
}
if (0 < (z - _root.Camera.Pz)) {
_root.g.calculateObjectScreenProperties(this._target);
if (this._visible) {
this.swapDepths(-z);
}
}
}
}
Instance of Symbol 250 MovieClip "mcAlienSpawnPoint1" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
regular_size = this._width;
x = _root.g.spawnPointDistanceFromBaseX;
y = 0;
z = _root.g.spawnPointDistanceFromBaseZ;
nextAlienCreationFrame = 100 * Math.random();
}
onClipEvent (enterFrame) {
if (_root.Game.status == "paused") {
} else {
nextAlienCreationFrame--;
if ((0 >= nextAlienCreationFrame) && (_root.g.noOfAliensOnStage < _root.g.maxNoOfAliensAllowedOnStage)) {
nextEnemy = Math.random();
if (_root.g.percentCreationAlien >= nextEnemy) {
duplicateMovieClip (_root.g.mcAlien, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationGroundUfo >= nextEnemy) {
duplicateMovieClip (_root.g.mcGroundUfo, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationUfo >= nextEnemy) {
duplicateMovieClip (_root.g.mcUfo, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
} else if (_root.g.percentCreationLightBomb >= nextEnemy) {
duplicateMovieClip (_root.g.mcLightBomb, "mcAlien" + _root.g.alienNo, _root.g.alienNo);
}
_root.g.alienNo++;
_root.g.currentAlienSpawnPoint = this._target;
_root.g.noOfAliensOnStage++;
nextAlienCreationFrame = _root.g.noOfFramesBetweenAlienCreation + (10 * Math.random());
}
if (0 < (z - _root.Camera.Pz)) {
_root.g.calculateObjectScreenProperties(this._target);
if (this._visible) {
this.swapDepths(-z);
}
}
}
}
Instance of Symbol 261 MovieClip "mcGroundUfo" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcGroundUfo") {
this._visible = false;
} else {
this._visible = true;
status = "standing";
this.gotoAndStop(status);
energy = 100;
distanceFromVehicle = 0;
vehicleSeeDistance = 600;
vehicleAttackDistance = 300;
baseAttackDistance = 200;
attackTarget = "";
attackEnergy = _root.g.alien2attackEnergy;
attackDamageChance = 1;
noOfFramesToWaitAfterAttack = 0;
regular_size = this._width;
if (_root.Game.mission == 1) {
spawnPointDistanceVariation = _root.g.spawnMaxXdistanceFromSpawnPoint * Math.random();
x = eval (_root.g.currentAlienSpawnPoint + ".x");
if (0 < x) {
x = x + spawnPointDistanceVariation;
} else {
x = x - spawnPointDistanceVariation;
}
y = 0;
z = eval (_root.g.currentAlienSpawnPoint + ".z");
if (0 < z) {
z = z - spawnPointDistanceVariation;
} else {
z = z + spawnPointDistanceVariation;
}
}
Vx = random(5);
Vz = random(5);
VmaxRun = 8;
VmaxWalk = 2;
noOfFramesToWalkOrStop = 36;
frameCounter = 0;
noOfFramesToStop = 24;
_root.g.mcRadarMap.mcGroundUfoBlip.duplicateMovieClip(this._name, int(100 * Math.random()));
}
}
onClipEvent (mouseDown) {
if (_root.Game.status == "paused") {
} else if (this._name != "mcGroundUfo") {
if (mcTargetBox._visible == true) {
if (_parent.mcVehicle.targetHit == "") {
_parent.mcVehicle.targetHit = this._target;
if (_parent.mcVehicle.currentWeapon == 1) {
this.gotoAndStop("sleeping");
status = "sleeping";
Vx = 0;
Vz = 0;
_parent.createExplosion("sleeperHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 2) && (0 < _root.g.Ammo.weapon2Qty)) {
energy = energy - _root.g.vehicleWeapon2attackEnergy;
_parent.createExplosion("bulletHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 3) && (0 < _root.g.Ammo.weapon3Qty)) {
energy = energy - _root.g.vehicleWeapon3attackEnergy;
_parent.createExplosion("rocketHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 4) && (0 < _root.g.Ammo.weapon4Qty)) {
energy = energy - _root.g.vehicleWeapon4attackEnergy;
_parent.createExplosion("electroHitsAlien", _root._xmouse, _root._ymouse);
}
}
}
}
}
onClipEvent (enterFrame) {
txtTest = status;
if (_root.Game.status == "paused") {
} else if (this._name != "mcGroundUfo") {
x = x + Vx;
z = z + Vz;
distanceFromVehicle = _parent.calculateDistance(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
distanceFromBase = _parent.calculateDistance(x, z, _root.g.mcBase.x, _root.g.mcBase.z);
frameCounter++;
_root.g.moveRadarBlip(this._name, z);
if (status == "sleeping") {
} else if (status == "dead") {
stop();
} else if (distanceFromVehicle < vehicleSeeDistance) {
if (distanceFromVehicle < vehicleAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "vehicle";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
} else {
if (distanceFromBase < baseAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "base";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
if (frameCounter >= noOfFramesToWalkOrStop) {
if (Math.random() < 0.5) {
status = "walking";
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxWalk * Math.cos(directionAngle);
Vz = VmaxWalk * Math.sin(directionAngle);
} else {
status = "standing";
Vx = 0;
Vz = 0;
noOfFramesToStop = 24;
}
this.gotoAndStop(status);
frameCounter = 0;
}
}
if (0 >= energy) {
if (status != "dead") {
status = "dead";
this.gotoAndPlay(status);
}
} else {
this._visible = true;
if (mcHitArea.hitTest(_root._xmouse, _root._ymouse, false)) {
if (!mcTargetBox._visible) {
mcTargetBox.play();
}
mcTargetBox._visible = true;
} else {
mcTargetBox._visible = false;
}
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if ((_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) && (0 < (z - _root.Camera.Pz))) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(int(-z));
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 275 MovieClip "mcLightBomb" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "mcLightBomb") {
this._visible = false;
} else {
this._visible = true;
status = "standing";
this.gotoAndStop(status);
energy = 100;
distanceFromVehicle = 0;
vehicleSeeDistance = 400;
vehicleAttackDistance = 300;
baseAttackDistance = 200;
attackTarget = "";
attackEnergy = _root.g.alien4attackEnergy;
attackDamageChance = 1;
noOfFramesToWaitAfterAttack = 0;
regular_size = this._width;
if (_root.Game.mission == 1) {
spawnPointDistanceVariation = _root.g.spawnMaxXdistanceFromSpawnPoint * Math.random();
x = eval (_root.g.currentAlienSpawnPoint + ".x");
if (0 < x) {
x = x + spawnPointDistanceVariation;
} else {
x = x - spawnPointDistanceVariation;
}
y = 0;
z = eval (_root.g.currentAlienSpawnPoint + ".z");
if (0 < z) {
z = z - spawnPointDistanceVariation;
} else {
z = z + spawnPointDistanceVariation;
}
}
Vx = random(5);
Vz = random(5);
VmaxRun = 15;
VmaxWalk = 2;
noOfFramesToWalkOrStop = 36;
frameCounter = 0;
noOfFramesToStop = 24;
_root.g.mcRadarMap.mcLightBombBlip.duplicateMovieClip(this._name, int(100 * Math.random()));
}
}
onClipEvent (mouseDown) {
if (_root.Game.status == "paused") {
} else if (this._name != "mcLightBomb") {
if (mcTargetBox._visible == true) {
if (_parent.mcVehicle.targetHit == "") {
_parent.mcVehicle.targetHit = this._target;
if (_parent.mcVehicle.currentWeapon == 1) {
this.gotoAndStop("sleeping");
status = "sleeping";
Vx = 0;
Vz = 0;
_parent.createExplosion("sleeperHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 2) && (0 < _root.g.Ammo.weapon2Qty)) {
energy = energy - _root.g.vehicleWeapon2attackEnergy;
_parent.createExplosion("bulletHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 3) && (0 < _root.g.Ammo.weapon3Qty)) {
energy = energy - _root.g.vehicleWeapon3attackEnergy;
_parent.createExplosion("rocketHitsAlien", _root._xmouse, _root._ymouse);
} else if ((_parent.mcVehicle.currentWeapon == 4) && (0 < _root.g.Ammo.weapon4Qty)) {
energy = energy - _root.g.vehicleWeapon4attackEnergy;
_parent.createExplosion("electroHitsAlien", _root._xmouse, _root._ymouse);
}
}
}
}
}
onClipEvent (enterFrame) {
txtTest = status;
if (_root.Game.status == "paused") {
} else if (this._name != "mcLightBomb") {
x = x + Vx;
z = z + Vz;
distanceFromVehicle = _parent.calculateDistance(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
distanceFromBase = _parent.calculateDistance(x, z, _root.g.mcBase.x, _root.g.mcBase.z);
frameCounter++;
_root.g.moveRadarBlip(this._name, z);
if (status == "sleeping") {
} else if (status == "dead") {
stop();
} else if (distanceFromVehicle < vehicleSeeDistance) {
if (distanceFromVehicle < vehicleAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "vehicle";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcVehicle.Px, _root.g.mcVehicle.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
} else {
if (distanceFromBase < baseAttackDistance) {
noOfFramesToWaitAfterAttack--;
if (0 >= noOfFramesToWaitAfterAttack) {
status = "attacking";
attackTarget = "base";
this.gotoAndStop(status);
Vx = 0;
Vz = 0;
mcAttack.play();
noOfFramesToWaitAfterAttack = 20;
}
} else {
if ((status != "walking") || (status != "attacking")) {
status = "walking";
this.gotoAndStop(status);
}
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxRun * Math.cos(directionAngle);
Vz = VmaxRun * Math.sin(directionAngle);
}
if (frameCounter >= noOfFramesToWalkOrStop) {
if (Math.random() < 0.5) {
status = "walking";
directionAngle = _parent.calculateAngleBetweenPoints(x, z, _root.g.mcBase.Px, _root.g.mcBase.Pz);
Vx = VmaxWalk * Math.cos(directionAngle);
Vz = VmaxWalk * Math.sin(directionAngle);
} else {
status = "standing";
Vx = 0;
Vz = 0;
noOfFramesToStop = 24;
}
this.gotoAndStop(status);
frameCounter = 0;
}
}
if (0 >= energy) {
if (status != "dead") {
status = "dead";
this.gotoAndPlay(status);
}
} else {
this._visible = true;
if (mcHitArea.hitTest(_root._xmouse, _root._ymouse, false)) {
if (!mcTargetBox._visible) {
mcTargetBox.play();
}
mcTargetBox._visible = true;
} else {
mcTargetBox._visible = false;
}
perspective_ratio = _root.Camera.focus / (_root.Camera.focus + (z - _root.Camera.Pz));
this._x = _root.Camera.origin_x + ((x - _root.Camera.Px) * perspective_ratio);
this._y = _root.Camera.origin_y - ((y - _root.Camera.Py) * perspective_ratio);
if ((_root.isVisible(this._x, this._y) && ((z - _root.Camera.Pz) < _root.Game.viewDistanceZ)) && (0 < (z - _root.Camera.Pz))) {
this._visible;
this._xscale = (this._yscale = this.regular_size * perspective_ratio);
this.swapDepths(int(-z));
} else {
this._visible = false;
}
}
}
}
Instance of Symbol 276 MovieClip "mcGameControl" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
gameStatusUpdateCounter = 20;
_root.g.txtScore = 0;
_root.g.noOfAliensOnStage = 0;
_root.g.maxNoOfAliensAllowedOnStage = 5;
_root.g.alien1attackEnergy = 1;
_root.g.alien2attackEnergy = 1;
_root.g.alien3attackEnergy = 2;
_root.g.alien4attackEnergy = 3;
_root.g.vehicleWeapon2attackEnergy = 34;
_root.g.vehicleWeapon3attackEnergy = 51;
_root.g.vehicleWeapon4attackEnergy = 111;
_root.g.selectVehicleWeaponGUI(1);
_root.g.alien1killed = 0;
_root.g.alien2killed = 0;
_root.g.alien3killed = 0;
_root.g.alien4killed = 0;
if (_root.Player.choice == 1) {
_root.g.percentCreationAlien = 0.95;
_root.g.percentCreationGroundUfo = 1.1;
_root.g.percentCreationUfo = 10;
_root.g.percentCreationLightBomb = 10;
_root.g.setVehicleAmmo(50, 20, 0, 0);
} else if (_root.Player.choice == 2) {
_root.g.percentCreationAlien = 0.25;
_root.g.percentCreationGroundUfo = 0.5;
_root.g.percentCreationUfo = 0.75;
_root.g.percentCreationLightBomb = 1.1;
_root.g.setVehicleAmmo(99, 50, 15, 10);
}
level1ScoreLimit = 250;
level2ScoreLimit = 500;
level3ScoreLimit = 7500;
level4ScoreLimit = 1000;
}
onClipEvent (enterFrame) {
_parent.txtAlien1killed = _root.g.alien1killed;
_parent.txtAlien2killed = _root.g.alien2killed;
_parent.txtAlien3killed = _root.g.alien3killed;
_parent.txtAlien4killed = _root.g.alien4killed;
_parent.txtAlienTotalKilled = ((_root.g.alien1killed + _root.g.alien2killed) + _root.g.alien3killed) + _root.g.alien4killed;
_root.g.txtScoreFinal = _root.g.txtScore;
gameStatusUpdateCounter--;
if (0 >= gameStatusUpdateCounter) {
gameStatusUpdateCounter = 20;
if (_root.Player.choice == 1) {
if (level1ScoreLimit >= _root.g.txtScore) {
_root.Game.difficultyLevel = 1;
} else if (level2ScoreLimit >= _root.g.txtScore) {
_root.Game.difficultyLevel = 2;
_root.Game.difficultyLevel = 3;
} else if (level4ScoreLimit >= _root.g.txtScore) {
_root.Game.difficultyLevel = 4;
}
if (_root.Game.difficultyLevel == 1) {
_root.Game.difficultyLevel = 1;
_root.g.percentCreationAlien = 1.05;
_root.g.percentCreationGroundUfo = 1.1;
_root.g.percentCreationUfo = 10;
_root.g.percentCreationLightBomb = 10;
} else if (_root.Game.difficultyLevel == 2) {
_root.g.percentCreationAlien = 0.5;
_root.g.percentCreationGroundUfo = 1.1;
_root.g.percentCreationUfo = 10;
_root.g.percentCreationLightBomb = 10;
} else if (_root.Game.difficultyLevel == 3) {
_root.g.percentCreationAlien = 0.33;
_root.g.percentCreationGroundUfo = 0.66;
_root.g.percentCreationUfo = 1.1;
_root.g.percentCreationLightBomb = 10;
} else if (_root.Game.difficultyLevel == 4) {
_root.g.percentCreationAlien = 0.25;
_root.g.percentCreationGroundUfo = 0.5;
_root.g.percentCreationUfo = 0.75;
_root.g.percentCreationLightBomb = 1.1;
}
} else if (_root.Player.choice == 2) {
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == _root.varKeyMusicOnOff) {
if (_root.g.mcGameMusic.status) {
stopAllSounds();
} else {
_root.g.mcGameMusic.gotoAndPlay(2);
}
_root.g.mcGameMusic.status = !_root.g.mcGameMusic.status;
} else if (Key.getCode() == _root.varKeyPause) {
if (_root.Game.status == "paused") {
_root.Game.status = "go";
_root.g.mcPause.gotoAndStop(1);
} else {
_root.g.mcPause.gotoAndStop(2);
_root.Game.status = "paused";
}
}
}
Instance of Symbol 279 MovieClip "mcGameMusic" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
status = true;
}
Instance of Symbol 284 MovieClip "mcAlien1Attack" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
status = true;
}
Instance of Symbol 302 MovieClip "mcVehWeap1" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
weaponNo = 1;
gotoAndStop(weaponNo);
}
Instance of Symbol 303 MovieClip "mcVehWeap2" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
weaponNo = 2;
gotoAndStop(weaponNo);
}
Instance of Symbol 304 MovieClip "mcVehWeap3" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
weaponNo = 3;
gotoAndStop(weaponNo);
}
Instance of Symbol 305 MovieClip "mcVehWeap4" in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
weaponNo = 4;
gotoAndStop(weaponNo);
}
Symbol 326 MovieClip Frame 2
stop();
Symbol 326 MovieClip Frame 3
txtAlien1killed = _root.g.alien1killed;
txtAlien2killed = _root.g.alien2killed;
txtAlien3killed = _root.g.alien3killed;
txtAlien4killed = _root.g.alien4killed;
txtAlienTotalKilled = ((_root.g.alien1killed + _root.g.alien2killed) + _root.g.alien3killed) + _root.g.alien4killed;
_root.g.txtScoreFinal = _root.g.txtScore;