Frame 1
function saveGame() {
myLSO = SharedObject.getLocal("uniqueName");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = b1;
myObj.objArray[1] = b2;
myObj.objArray[2] = b3;
myObj.objArray[3] = b4;
myObj.objArray[4] = b5;
myObj.objArray[5] = b6;
myObj.objArray[6] = b7;
myObj.objArray[7] = b8;
myObj.objArray[8] = b9;
myObj.objArray[9] = b10;
myObj.objArray[10] = b11;
myObj.objArray[11] = b12;
myObj.objArray[12] = b13;
myObj.objArray[13] = s1;
myObj.objArray[14] = s2;
myObj.objArray[15] = s3;
myObj.objArray[16] = s4;
myObj.objArray[17] = s5;
myObj.objArray[18] = s6;
myObj.objArray[19] = s7;
myObj.objArray[20] = s8;
myObj.objArray[21] = s9;
myObj.objArray[22] = s10;
myObj.objArray[23] = h1;
myObj.objArray[24] = h2;
myObj.objArray[25] = h3;
myObj.objArray[26] = h4;
myObj.objArray[27] = h5;
myObj.objArray[28] = h6;
myObj.objArray[29] = h7;
myObj.objArray[30] = h8;
myObj.objArray[31] = h9;
myObj.objArray[32] = h10;
myObj.objArray[33] = f1;
myObj.objArray[34] = f2;
myObj.objArray[35] = f3;
myObj.objArray[36] = f4;
myObj.objArray[37] = f5;
myObj.objArray[38] = f6;
myObj.objArray[39] = f7;
myObj.objArray[40] = f8;
myObj.objArray[41] = f9;
myObj.objArray[42] = f10;
myObj.objArray[43] = s;
myObj.objArray[44] = es;
myObj.objArray[45] = z1;
myObj.objArray[46] = c1;
myObj.objArray[47] = v1;
myObj.objArray[48] = g1;
myObj.objArray[49] = ez1;
myObj.objArray[50] = ec1;
myObj.objArray[51] = ev1;
myObj.objArray[52] = eg1;
myObj.objArray[53] = q;
myObj.objArray[54] = w;
myObj.objArray[55] = dmg;
myObj.objArray[56] = lv;
myObj.objArray[57] = money;
myObj.objArray[58] = stat1;
myObj.objArray[59] = stat2;
myObj.objArray[60] = stat3;
myObj.objArray[61] = stat4;
myObj.objArray[62] = sounds;
myObj.objArray[63] = diff;
myObj.objArray[64] = hatD;
myObj.objArray[65] = suitD;
myObj.objArray[66] = shoeD;
myLSO.data.myObj = myObj;
}
function loadGame() {
myLSO = SharedObject.getLocal("uniqueName");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
} else {
trace("Loaded Game");
b1 = myLSO.data.myObj.objArray[1];
b2 = myLSO.data.myObj.objArray[1];
b3 = myLSO.data.myObj.objArray[2];
b4 = myLSO.data.myObj.objArray[3];
b5 = myLSO.data.myObj.objArray[4];
b6 = myLSO.data.myObj.objArray[5];
b7 = myLSO.data.myObj.objArray[6];
b8 = myLSO.data.myObj.objArray[7];
b9 = myLSO.data.myObj.objArray[8];
b10 = myLSO.data.myObj.objArray[9];
b11 = myLSO.data.myObj.objArray[10];
b12 = myLSO.data.myObj.objArray[11];
b13 = myLSO.data.myObj.objArray[12];
s1 = myLSO.data.myObj.objArray[13];
s2 = myLSO.data.myObj.objArray[14];
s3 = myLSO.data.myObj.objArray[15];
s4 = myLSO.data.myObj.objArray[16];
s5 = myLSO.data.myObj.objArray[17];
s6 = myLSO.data.myObj.objArray[18];
s7 = myLSO.data.myObj.objArray[19];
s8 = myLSO.data.myObj.objArray[20];
s9 = myLSO.data.myObj.objArray[21];
s10 = myLSO.data.myObj.objArray[22];
h1 = myLSO.data.myObj.objArray[23];
h2 = myLSO.data.myObj.objArray[24];
h3 = myLSO.data.myObj.objArray[25];
h4 = myLSO.data.myObj.objArray[26];
h5 = myLSO.data.myObj.objArray[27];
h6 = myLSO.data.myObj.objArray[28];
h7 = myLSO.data.myObj.objArray[29];
h8 = myLSO.data.myObj.objArray[30];
h9 = myLSO.data.myObj.objArray[31];
h10 = myLSO.data.myObj.objArray[32];
f1 = myLSO.data.myObj.objArray[33];
f2 = myLSO.data.myObj.objArray[34];
f3 = myLSO.data.myObj.objArray[35];
f4 = myLSO.data.myObj.objArray[36];
f5 = myLSO.data.myObj.objArray[37];
f6 = myLSO.data.myObj.objArray[38];
f7 = myLSO.data.myObj.objArray[39];
f8 = myLSO.data.myObj.objArray[40];
f9 = myLSO.data.myObj.objArray[41];
f10 = myLSO.data.myObj.objArray[42];
s = myLSO.data.myObj.objArray[43];
es = myLSO.data.myObj.objArray[44];
z1 = myLSO.data.myObj.objArray[45];
c1 = myLSO.data.myObj.objArray[46];
v1 = myLSO.data.myObj.objArray[47];
g1 = myLSO.data.myObj.objArray[48];
ez1 = myLSO.data.myObj.objArray[49];
ec1 = myLSO.data.myObj.objArray[50];
ev1 = myLSO.data.myObj.objArray[51];
eg1 = myLSO.data.myObj.objArray[52];
q = myLSO.data.myObj.objArray[53];
w = myLSO.data.myObj.objArray[54];
dmg = myLSO.data.myObj.objArray[55];
lv = myLSO.data.myObj.objArray[56];
money = myLSO.data.myObj.objArray[57];
stat1 = myLSO.data.myObj.objArray[58];
stat2 = myLSO.data.myObj.objArray[59];
stat3 = myLSO.data.myObj.objArray[60];
stat4 = myLSO.data.myObj.objArray[61];
sounds = myLSO.data.myObj.objArray[62];
diff = myLSO.data.myObj.objArray[63];
hatD = myLSO.data.myObj.objArray[64];
suitD = myLSO.data.myObj.objArray[65];
shoeD = myLSO.data.myObj.objArray[66];
}
}
_root.kongregateServices.connect();
startDrag ("_root.aimer", true);
Mouse.hide();
Frame 19
var shot = new Sound();
sounds = "gun4";
shot.attachSound(sounds);
shot.start();
Frame 34
var shot = new Sound();
sounds = "gun4";
shot.attachSound(sounds);
shot.start();
Frame 48
var shot = new Sound();
sounds = "gun4";
shot.attachSound(sounds);
shot.start();
Frame 89
var shot = new Sound();
sounds = "intro";
shot.attachSound(sounds);
shot.start();
Frame 110
stop();
b1 = 0;
b2 = 0;
b3 = 0;
b4 = 0;
b5 = 0;
b6 = 0;
b7 = 0;
b8 = 0;
b9 = 0;
b10 = 0;
b11 = 0;
b12 = 0;
b13 = 0;
s1 = 0;
s2 = 0;
s3 = 0;
s4 = 0;
s5 = 0;
s6 = 0;
s7 = 0;
s8 = 0;
s9 = 0;
s10 = 0;
h1 = 0;
h2 = 0;
h3 = 0;
h4 = 0;
h5 = 0;
h6 = 0;
h7 = 0;
h8 = 0;
h9 = 0;
h10 = 0;
f1 = 0;
f2 = 0;
f3 = 0;
f4 = 0;
f5 = 0;
f6 = 0;
f7 = 0;
f8 = 0;
f9 = 0;
f10 = 0;
s = 10;
es = 10;
g1 = 1;
z1 = 1;
c1 = 1;
v1 = 1;
eg1 = 1;
ez1 = 1;
ec1 = 1;
ev1 = 1;
q = 0;
w = 1;
lv = 0;
dmg = 7;
money = 0;
stat1 = 0;
stat2 = 0;
stat3 = 0;
stat4 = 0;
sounds = "gun1";
startDrag ("_root.aimer", true);
Mouse.hide();
btnStart.onRelease = function () {
gotoAndStop (155);
};
inst.onRelease = function () {
gotoAndStop (111);
};
loads.onRelease = function () {
loadGame();
gotoAndStop (112);
};
stop();
Frame 111
stop();
startDrag ("_root.aimer", true);
Mouse.hide();
btnBack.onRelease = function () {
gotoAndStop (110);
};
Frame 112
pmoney = "Money = " + money;
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
if (w == 34) {
goal = "You made it to the Top";
if ((diff = 0.75)) {
_root.kongregateStats.submit("BegCompleted", 1);
} else if ((diff = 1)) {
_root.kongregateStats.submit("AssaCompleted", 1);
} else if ((diff = 1.2)) {
_root.kongregateStats.submit("AAssaCompleted", 1);
} else if ((diff = 1.5)) {
_root.kongregateStats.submit("HitCompleted", 1);
} else if ((diff = 2)) {
_root.kongregateStats.submit("LHitCompleted", 1);
}
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
stats.onRelease = function () {
gotoAndStop (156);
};
btnShop.onRelease = function () {
gotoAndStop (115);
};
save.onRelease = function () {
saveGame();
saving = "Game Saved";
};
Frame 113
stop();
saving = " ";
arrow.gotoAndStop(1);
startDrag ("_root.aimer", true);
Mouse.hide();
pmoney = "Money = " + money;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
high._x = -133;
high._y = 42.5;
btnFight.onRelease = function () {
if (q == 1) {
gotoAndStop (138);
}
};
btnShop.onRelease = function () {
gotoAndStop (115);
};
e1.onRelease = function () {
if (q == 0) {
arrow.gotoAndStop(2);
}
q = 1;
eg1 = 2;
ez1 = 1;
ec1 = 1;
ev1 = 2;
lv = 1;
es = 10;
esuitD = 0;
ehatD = 0;
eshoeD = 0;
edmg = 5;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 1";
lvl = "1";
reward = "$100";
xmoney = 100;
high._x = this._x;
high._y = this._y;
};
e2.onRelease = function () {
eg1 = 2;
ez1 = 2;
ec1 = 1;
ev1 = 2;
lv = 2;
es = 10;
esuitD = 30;
ehatD = 0;
eshoeD = 0;
edmg = 7;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 2";
lvl = "2";
reward = "$150";
xmoney = 150;
high._x = this._x;
high._y = this._y;
};
e3.onRelease = function () {
eg1 = 2;
ez1 = 2;
ec1 = 2;
ev1 = 4;
lv = 3;
es = 10;
esuitD = 30;
ehatD = 13;
eshoeD = 10;
edmg = 7;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 3";
lvl = "3";
reward = "$225";
xmoney = 225;
high._x = this._x;
high._y = this._y;
};
e4.onRelease = function () {
eg1 = 4;
ez1 = 2;
ec1 = 2;
ev1 = 4;
lv = 4;
es = 9;
esuitD = 30;
ehatD = 13;
eshoeD = 10;
edmg = 14;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 4";
lvl = "4";
reward = "$350";
xmoney = 350;
high._x = this._x;
high._y = this._y;
};
e5.onRelease = function () {
eg1 = 4;
ez1 = 3;
ec1 = 2;
ev1 = 4;
lv = 5;
es = 9;
edmg = 14;
esuitD = 70;
ehatD = 13;
eshoeD = 10;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 5";
lvl = "5";
reward = "$500";
xmoney = 500;
high._x = this._x;
high._y = this._y;
};
e6.onRelease = function () {
eg1 = 4;
ez1 = 3;
ec1 = 3;
ev1 = 6;
lv = 6;
es = 9;
esuitD = 70;
ehatD = 30;
eshoeD = 25;
edmg = 14;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 6";
lvl = "6";
reward = "$750";
xmoney = 750;
high._x = this._x;
high._y = this._y;
};
e7.onRelease = function () {
eg1 = 6;
ez1 = 3;
ec1 = 3;
ev1 = 6;
lv = 7;
es = 5;
esuitD = 70;
ehatD = 30;
eshoeD = 25;
edmg = 10;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 7";
lvl = "7";
reward = "$1,000";
xmoney = 1000;
high._x = this._x;
high._y = this._y;
};
e8.onRelease = function () {
eg1 = 6;
ez1 = 3;
ec1 = 4;
ev1 = 8;
lv = 8;
es = 5;
esuitD = 70;
ehatD = 50;
eshoeD = 40;
edmg = 10;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 8";
lvl = "8";
reward = "$1,250";
xmoney = 1250;
high._x = this._x;
high._y = this._y;
};
e9.onRelease = function () {
eg1 = 8;
ez1 = 4;
ec1 = 4;
ev1 = 8;
lv = 9;
es = 8;
esuitD = 115;
ehatD = 50;
eshoeD = 40;
edmg = 20;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 9";
lvl = "9";
reward = "$1,500";
xmoney = 1500;
high._x = this._x;
high._y = this._y;
};
e10.onRelease = function () {
eg1 = 8;
ez1 = 4;
ec1 = 5;
ev1 = 10;
lv = 10;
es = 8;
esuitD = 115;
ehatD = 75;
eshoeD = 60;
edmg = 20;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 10";
lvl = "10";
reward = "$1,800";
xmoney = 1800;
high._x = this._x;
high._y = this._y;
};
e11.onRelease = function () {
eg1 = 10;
ez1 = 4;
ec1 = 5;
ev1 = 10;
lv = 11;
es = 12;
esuitD = 115;
ehatD = 75;
eshoeD = 60;
edmg = 34;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 11";
lvl = "11";
reward = "$2,200";
xmoney = 2200;
high._x = this._x;
high._y = this._y;
};
e12.onRelease = function () {
eg1 = 10;
ez1 = 5;
ec1 = 5;
ev1 = 10;
lv = 12;
es = 12;
esuitD = 165;
ehatD = 75;
eshoeD = 60;
edmg = 34;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 12";
lvl = "12";
reward = "$2,600";
xmoney = 2600;
high._x = this._x;
high._y = this._y;
};
e13.onRelease = function () {
eg1 = 12;
ez1 = 5;
ec1 = 5;
ev1 = 10;
lv = 13;
es = 1;
esuitD = 165;
ehatD = 75;
eshoeD = 60;
edmg = 6;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 13";
lvl = "13";
reward = "$3,000";
xmoney = 3000;
high._x = this._x;
high._y = this._y;
};
e14.onRelease = function () {
eg1 = 12;
ez1 = 5;
ec1 = 6;
ev1 = 12;
lv = 14;
es = 1;
esuitD = 165;
ehatD = 100;
eshoeD = 85;
edmg = 6;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 14";
lvl = "14";
reward = "$3,400";
xmoney = 3400;
high._x = this._x;
high._y = this._y;
};
e15.onRelease = function () {
eg1 = 14;
ez1 = 5;
ec1 = 6;
ev1 = 12;
lv = 15;
es = 2;
esuitD = 165;
ehatD = 100;
eshoeD = 85;
edmg = 11;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 15";
lvl = "15";
reward = "$3,800";
xmoney = 3800;
high._x = this._x;
high._y = this._y;
};
e16.onRelease = function () {
eg1 = 14;
ez1 = 6;
ec1 = 6;
ev1 = 12;
lv = 16;
es = 2;
esuitD = 220;
ehatD = 100;
eshoeD = 85;
edmg = 11;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 16";
lvl = "16";
reward = "$4,250";
xmoney = 4250;
high._x = this._x;
high._y = this._y;
};
e33.onRelease = function () {
eg1 = 30;
ez1 = 12;
ec1 = 12;
ev1 = 24;
lv = 33;
es = 1;
esuitD = 3200;
ehatD = 1600;
eshoeD = 1400;
edmg = 6;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Invisible Boss";
lvl = "33";
reward = "$50,000";
xmoney = 50000;
high._x = -133;
high._y = 42.5;
};
btnAR.onRelease = function () {
gotoAndStop (114);
};
if (w >= 2) {
e2._x = 174;
}
if (w >= 3) {
e3._x = 174;
}
if (w >= 4) {
e4._x = 174;
}
if (w >= 5) {
e5._x = 174;
}
if (w >= 6) {
e6._x = 174;
}
if (w >= 7) {
e7._x = 174;
}
if (w >= 8) {
e8._x = 174;
}
if (w >= 9) {
e9._x = 174;
}
if (w >= 10) {
e10._x = 174;
}
if (w >= 11) {
e11._x = 174;
}
if (w >= 12) {
e12._x = 174;
}
if (w >= 13) {
e13._x = 174;
}
if (w >= 14) {
e14._x = 174;
}
if (w >= 15) {
e15._x = 174;
}
if (w >= 16) {
e16._x = 174;
}
if (w >= 33) {
e33._x = 355;
}
Frame 114
stop();
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
pmoney = "Money = " + money;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
high._x = -133;
high._y = 42.5;
e17.onRelease = function () {
eg1 = 14;
ez1 = 6;
ec1 = 7;
ev1 = 14;
lv = 17;
es = 2;
esuitD = 220;
ehatD = 125;
eshoeD = 110;
edmg = 11;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 17";
lvl = "17";
reward = "$4,700";
xmoney = 4700;
high._x = this._x;
high._y = this._y;
};
e18.onRelease = function () {
eg1 = 16;
ez1 = 6;
ec1 = 7;
ev1 = 14;
lv = 18;
es = 2;
esuitD = 220;
ehatD = 125;
eshoeD = 110;
edmg = 14;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 18";
lvl = "18";
reward = "$5,200";
xmoney = 5200;
high._x = this._x;
high._y = this._y;
};
e19.onRelease = function () {
eg1 = 16;
ez1 = 7;
ec1 = 7;
ev1 = 14;
lv = 19;
es = 2;
esuitD = 280;
ehatD = 125;
eshoeD = 110;
edmg = 14;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 19";
lvl = "19";
reward = "$5,450";
xmoney = 5450;
high._x = this._x;
high._y = this._y;
};
e20.onRelease = function () {
eg1 = 18;
ez1 = 7;
ec1 = 7;
ev1 = 14;
lv = 20;
es = 20;
esuitD = 280;
ehatD = 125;
eshoeD = 110;
edmg = 100;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 20";
lvl = "20";
reward = "$5,900";
xmoney = 5900;
high._x = this._x;
high._y = this._y;
};
e21.onRelease = function () {
eg1 = 18;
ez1 = 8;
ec1 = 7;
ev1 = 16;
lv = 21;
es = 20;
esuitD = 345;
ehatD = 125;
eshoeD = 130;
edmg = 100;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 21";
lvl = "21";
reward = "$6,400";
xmoney = 6400;
high._x = this._x;
high._y = this._y;
};
e22.onRelease = function () {
eg1 = 20;
ez1 = 8;
ec1 = 8;
ev1 = 16;
lv = 22;
es = 3;
esuitD = 345;
ehatD = 155;
eshoeD = 130;
edmg = 25;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 22";
lvl = "22";
reward = "$6,950";
xmoney = 6950;
high._x = this._x;
high._y = this._y;
};
e23.onRelease = function () {
eg1 = 20;
ez1 = 8;
ec1 = 9;
ev1 = 18;
lv = 23;
es = 3;
esuitD = 345;
ehatD = 190;
eshoeD = 155;
edmg = 25;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 23";
lvl = "23";
reward = "$7,500";
xmoney = 7500;
high._x = this._x;
high._y = this._y;
};
e24.onRelease = function () {
eg1 = 22;
ez1 = 8;
ec1 = 9;
ev1 = 18;
lv = 24;
es = 1;
esuitD = 345;
ehatD = 190;
eshoeD = 155;
edmg = 15;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 24";
lvl = "24";
reward = "$8,000";
xmoney = 8000;
high._x = this._x;
high._y = this._y;
};
e25.onRelease = function () {
eg1 = 22;
ez1 = 9;
ec1 = 9;
ev1 = 18;
lv = 25;
es = 1;
esuitD = 410;
ehatD = 190;
eshoeD = 155;
edmg = 15;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 25";
lvl = "25";
reward = "$8,600";
xmoney = 8600;
high._x = this._x;
high._y = this._y;
};
e26.onRelease = function () {
eg1 = 22;
ez1 = 9;
ec1 = 9;
ev1 = 20;
lv = 26;
es = 1;
esuitD = 410;
ehatD = 190;
eshoeD = 185;
edmg = 15;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 26";
lvl = "26";
reward = "$9,200";
xmoney = 9200;
high._x = this._x;
high._y = this._y;
};
e27.onRelease = function () {
eg1 = 24;
ez1 = 9;
ec1 = 9;
ev1 = 20;
lv = 27;
es = 20;
esuitD = 410;
ehatD = 190;
eshoeD = 185;
edmg = 170;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 27";
lvl = "27";
reward = "$9,800";
xmoney = 9800;
high._x = this._x;
high._y = this._y;
};
e28.onRelease = function () {
eg1 = 24;
ez1 = 9;
ec1 = 10;
ev1 = 20;
lv = 28;
es = 20;
esuitD = 410;
ehatD = 225;
eshoeD = 185;
edmg = 170;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 28";
lvl = "28";
reward = "$10,500";
xmoney = 10500;
high._x = this._x;
high._y = this._y;
};
e29.onRelease = function () {
eg1 = 26;
ez1 = 10;
ec1 = 10;
ev1 = 20;
lv = 29;
es = 2;
esuitD = 500;
ehatD = 225;
eshoeD = 185;
edmg = 35;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 29";
lvl = "29";
reward = "$11,200";
xmoney = 11200;
high._x = this._x;
high._y = this._y;
};
e30.onRelease = function () {
eg1 = 26;
ez1 = 10;
ec1 = 11;
ev1 = 20;
lv = 30;
es = 2;
esuitD = 500;
ehatD = 275;
eshoeD = 185;
edmg = 35;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 30";
lvl = "30";
reward = "$12,000";
xmoney = 12000;
high._x = this._x;
high._y = this._y;
};
e31.onRelease = function () {
eg1 = 26;
ez1 = 10;
ec1 = 11;
ev1 = 22;
lv = 31;
es = 2;
esuitD = 500;
ehatD = 275;
eshoeD = 230;
edmg = 35;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 31";
lvl = "31";
reward = "$13,000";
xmoney = 13000;
high._x = this._x;
high._y = this._y;
};
e32.onRelease = function () {
eg1 = 28;
ez1 = 11;
ec1 = 11;
ev1 = 22;
lv = 32;
es = 1;
esuitD = 600;
ehatD = 275;
eshoeD = 230;
edmg = 40;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Enemy 32";
lvl = "32";
reward = "$14,500";
xmoney = 14500;
high._x = this._x;
high._y = this._y;
};
e33.onRelease = function () {
eg1 = 30;
ez1 = 12;
ec1 = 12;
ev1 = 24;
lv = 33;
es = 1;
esuitD = 3200;
ehatD = 1600;
eshoeD = 1400;
edmg = 6;
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
nameoutput = "Invisible Boss";
lvl = "33";
reward = "$50,000";
xmoney = 50000;
high._x = -133;
high._y = 42.5;
};
btnAL.onRelease = function () {
gotoAndStop (113);
};
btnFight.onRelease = function () {
gotoAndStop (138);
};
btnShop.onRelease = function () {
gotoAndStop (115);
};
if (w >= 17) {
e17._x = 174;
}
if (w >= 18) {
e18._x = 174;
}
if (w >= 19) {
e19._x = 174;
}
if (w >= 20) {
e20._x = 174;
}
if (w >= 21) {
e21._x = 174;
}
if (w >= 22) {
e22._x = 174;
}
if (w >= 23) {
e23._x = 174;
}
if (w >= 24) {
e24._x = 174;
}
if (w >= 25) {
e25._x = 174;
}
if (w >= 26) {
e26._x = 174;
}
if (w >= 27) {
e27._x = 174;
}
if (w >= 28) {
e28._x = 174;
}
if (w >= 29) {
e29._x = 174;
}
if (w >= 30) {
e30._x = 174;
}
if (w >= 31) {
e31._x = 174;
}
if (w >= 32) {
e32._x = 174;
}
if (w >= 33) {
e33._x = 355;
}
Frame 115
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
btnFight.onRelease = function () {
gotoAndStop (113);
};
btnWeapons.onRelease = function () {
gotoAndStop (116);
};
btnSuits.onRelease = function () {
gotoAndStop (123);
};
btnHats.onRelease = function () {
gotoAndStop (128);
};
btnShoes.onRelease = function () {
gotoAndStop (133);
};
td = (suitD + hatD) + shoeD;
Frame 116
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b1 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b1 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b2 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b2 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b1 == 0) && (money >= 600)) {
b1 = 1;
money = money - 600;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b2 == 0) && (money >= 1500)) {
b2 = 1;
money = money - 1500;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 3;
s = 9;
dmg = 14;
sounds = "gun2";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 5;
s = 5;
dmg = 10;
sounds = "gun3";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (117);
};
btnSuits.onRelease = function () {
gotoAndStop (123);
};
Frame 117
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b3 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b3 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b4 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b4 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b3 == 0) && (money >= 4500)) {
b3 = 1;
money = money - 4500;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b4 == 0) && (money >= 10000)) {
b4 = 1;
money = money - 10000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 7;
s = 8;
dmg = 20;
sounds = "gun4";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 9;
s = 12;
dmg = 34;
sounds = "gun2";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (118);
};
btnAl.onRelease = function () {
gotoAndStop (116);
};
btnSuits.onRelease = function () {
gotoAndStop (123);
};
Frame 118
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b5 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b5 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b6 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b6 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b5 == 0) && (money >= 25000)) {
b5 = 1;
money = money - 25000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b6 == 0) && (money >= 35000)) {
b6 = 1;
money = money - 35000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 11;
s = 1;
dmg = 6;
sounds = "gun6";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 13;
s = 2;
dmg = 11;
sounds = "gun7";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (119);
};
btnAl.onRelease = function () {
gotoAndStop (117);
};
btnSuits.onRelease = function () {
gotoAndStop (123);
};
Frame 119
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b7 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b7 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b8 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b8 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b7 == 0) && (money >= 55000)) {
b7 = 1;
money = money - 55000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b8 == 0) && (money >= 85000)) {
b8 = 1;
money = money - 85000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 15;
s = 2;
dmg = 14;
sounds = "gun8";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 17;
s = 20;
dmg = 100;
sounds = "gun9";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (120);
};
btnAl.onRelease = function () {
gotoAndStop (118);
};
btnSuits.onRelease = function () {
gotoAndStop (123);
};
Frame 120
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b9 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b9 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b10 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b10 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b9 == 0) && (money >= 125000)) {
b9 = 1;
money = money - 125000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b10 == 0) && (money >= 175000)) {
b10 = 1;
money = money - 175000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 19;
s = 3;
dmg = 25;
sounds = "gun10";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 21;
s = 1;
dmg = 15;
sounds = "gun11";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (121);
};
btnAl.onRelease = function () {
gotoAndStop (119);
};
Frame 121
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b11 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b11 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (b12 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (b12 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b11 == 0) && (money >= 250000)) {
b11 = 1;
money = money - 250000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((b12 == 0) && (money >= 350000)) {
b12 = 1;
money = money - 350000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 23;
s = 20;
dmg = 170;
sounds = "gun12";
gun.gotoAndStop(g1);
};
btnUse2.onRelease = function () {
g1 = 25;
s = 2;
dmg = 35;
sounds = "gun13";
gun.gotoAndStop(g1);
};
btnAR.onRelease = function () {
gotoAndStop (122);
};
btnAl.onRelease = function () {
gotoAndStop (120);
};
Frame 122
startDrag ("_root.aimer", true);
saving = " ";
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (b13 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (b13 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((b13 == 0) && (money >= 500000)) {
b13 = 1;
money = money - 500000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnUse1.onRelease = function () {
g1 = 27;
s = 1;
dmg = 40;
sounds = "gun14";
gun.gotoAndStop(g1);
};
btnAl.onRelease = function () {
gotoAndStop (121);
};
Frame 123
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (s1 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (s1 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (s2 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (s2 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((s1 == 0) && (money >= 450)) {
s1 = 1;
money = money - 450;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((s2 == 0) && (money >= 1200)) {
s2 = 1;
money = money - 1200;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
z1 = 2;
suitD = 30;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnUse2.onRelease = function () {
z1 = 3;
suitD = 70;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnAR.onRelease = function () {
gotoAndStop (124);
};
Frame 124
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (s3 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (s3 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (s4 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (s4 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((s3 == 0) && (money >= 3750)) {
s3 = 1;
money = money - 3750;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((s4 == 0) && (money >= 9000)) {
s4 = 1;
money = money - 9000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
z1 = 4;
suitD = 115;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnUse2.onRelease = function () {
z1 = 5;
suitD = 165;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnAR.onRelease = function () {
gotoAndStop (125);
};
btnAl.onRelease = function () {
gotoAndStop (123);
};
Frame 125
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (s5 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (s5 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (s6 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (s6 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((s5 == 0) && (money >= 22500)) {
s5 = 1;
money = money - 22500;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((s6 == 0) && (money >= 30000)) {
s6 = 1;
money = money - 30000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
z1 = 6;
suitD = 220;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnUse2.onRelease = function () {
z1 = 7;
suitD = 280;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnAR.onRelease = function () {
gotoAndStop (126);
};
btnAl.onRelease = function () {
gotoAndStop (124);
};
Frame 126
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (s7 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (s7 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (s8 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (s8 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((s7 == 0) && (money >= 45000)) {
s7 = 1;
money = money - 45000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((s8 == 0) && (money >= 75000)) {
s8 = 1;
money = money - 75000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
z1 = 8;
suitD = 345;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnUse2.onRelease = function () {
z1 = 9;
suitD = 410;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnAR.onRelease = function () {
gotoAndStop (127);
};
btnAl.onRelease = function () {
gotoAndStop (125);
};
Frame 127
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (s9 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (s9 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (s10 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (s10 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((s9 == 0) && (money >= 115000)) {
s9 = 1;
money = money - 115000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((s10 == 0) && (money >= 150000)) {
s10 = 1;
money = money - 150000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
z1 = 10;
suitD = 500;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnUse2.onRelease = function () {
z1 = 11;
suitD = 600;
td = (suitD + hatD) + shoeD;
body.gotoAndStop(z1);
};
btnAR.onRelease = function () {
gotoAndStop (128);
};
btnAl.onRelease = function () {
gotoAndStop (126);
};
Frame 128
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (h1 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (h1 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (h2 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (h2 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((h1 == 0) && (money >= 250)) {
h1 = 1;
money = money - 250;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((h2 == 0) && (money >= 650)) {
h2 = 1;
money = money - 650;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
c1 = 2;
hatD = 13;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnUse2.onRelease = function () {
c1 = 3;
hatD = 30;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnAR.onRelease = function () {
gotoAndStop (129);
};
Frame 129
saving = " ";
startDrag ("_root.aimer", true);
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (h3 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (h3 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (h4 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (h4 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((h3 == 0) && (money >= 1800)) {
h3 = 1;
money = money - 1800;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((h4 == 0) && (money >= 3750)) {
h4 = 1;
money = money - 3750;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
c1 = 4;
hatD = 50;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnUse2.onRelease = function () {
c1 = 5;
hatD = 75;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnAR.onRelease = function () {
gotoAndStop (130);
};
btnAl.onRelease = function () {
gotoAndStop (128);
};
Frame 130
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (h5 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (h5 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (h6 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (h6 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((h5 == 0) && (money >= 9000)) {
h5 = 1;
money = money - 9000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((h6 == 0) && (money >= 13500)) {
h6 = 1;
money = money - 13500;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
c1 = 6;
hatD = 100;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnUse2.onRelease = function () {
c1 = 7;
hatD = 125;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnAR.onRelease = function () {
gotoAndStop (131);
};
btnAl.onRelease = function () {
gotoAndStop (129);
};
Frame 131
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (h7 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (h7 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (h8 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (h8 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((h7 == 0) && (money >= 22500)) {
h7 = 1;
money = money - 22500;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((h8 == 0) && (money >= 30000)) {
h8 = 1;
money = money - 30000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
c1 = 8;
hatD = 155;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnUse2.onRelease = function () {
c1 = 9;
hatD = 190;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnAR.onRelease = function () {
gotoAndStop (132);
};
btnAl.onRelease = function () {
gotoAndStop (130);
};
Frame 132
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (h9 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (h9 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (h10 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (h10 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((h9 == 0) && (money >= 45000)) {
h9 = 1;
money = money - 45000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((h10 == 0) && (money >= 65000)) {
h10 = 1;
money = money - 65000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
c1 = 10;
hatD = 225;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnUse2.onRelease = function () {
c1 = 11;
hatD = 275;
td = (suitD + hatD) + shoeD;
head.gotoAndStop(c1);
};
btnAR.onRelease = function () {
gotoAndStop (133);
};
btnAl.onRelease = function () {
gotoAndStop (131);
};
Frame 133
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (f1 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (f1 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (f2 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (f2 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((f1 == 0) && (money >= 150)) {
f1 = 1;
money = money - 150;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((f2 == 0) && (money >= 365)) {
f2 = 1;
money = money - 365;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
v1 = 3;
shoeD = 10;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnUse2.onRelease = function () {
v1 = 5;
shoeD = 25;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnAR.onRelease = function () {
gotoAndStop (134);
};
Frame 134
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (f3 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (f3 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (f4 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (f4 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((f3 == 0) && (money >= 1200)) {
f3 = 1;
money = money - 1200;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((f4 == 0) && (money >= 2250)) {
f4 = 1;
money = money - 2250;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
v1 = 7;
shoeD = 40;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnUse2.onRelease = function () {
v1 = 9;
shoeD = 60;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnAR.onRelease = function () {
gotoAndStop (135);
};
btnAl.onRelease = function () {
gotoAndStop (133);
};
Frame 135
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (f5 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (f5 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (f6 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (f6 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((f5 == 0) && (money >= 6000)) {
f5 = 1;
money = money - 6000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((f6 == 0) && (money >= 9000)) {
f6 = 1;
money = money - 9000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
v1 = 11;
shoeD = 85;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnUse2.onRelease = function () {
v1 = 13;
shoeD = 110;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnAR.onRelease = function () {
gotoAndStop (136);
};
btnAl.onRelease = function () {
gotoAndStop (134);
};
Frame 136
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (f7 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (f7 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (f8 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (f8 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((f7 == 0) && (money >= 15000)) {
f7 = 1;
money = money - 15000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((f8 == 0) && (money >= 22500)) {
f8 = 1;
money = money - 22500;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
v1 = 15;
shoeD = 130;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnUse2.onRelease = function () {
v1 = 17;
shoeD = 155;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnAR.onRelease = function () {
gotoAndStop (137);
};
btnAl.onRelease = function () {
gotoAndStop (135);
};
Frame 137
startDrag ("_root.aimer", true);
Mouse.hide();
saving = " ";
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
if (f9 == 1) {
btnBuy1._x = 700;
btnUse1._x = 496;
}
if (f9 == 0) {
btnBuy1._x = 496;
btnUse1._x = 700;
}
if (f10 == 1) {
btnBuy2._x = 700;
btnUse2._x = 496;
}
if (f10 == 0) {
btnBuy2._x = 496;
btnUse2._x = 700;
}
btnFight.onRelease = function () {
gotoAndStop (113);
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
btnBuy1.onRelease = function () {
if ((f9 == 0) && (money >= 30000)) {
f9 = 1;
money = money - 30000;
pmoney = "Money = " + money;
btnBuy1._x = 700;
btnUse1._x = 496;
}
};
btnBuy2.onRelease = function () {
if ((f10 == 0) && (money >= 45000)) {
f10 = 1;
money = money - 45000;
pmoney = "Money = " + money;
btnBuy2._x = 700;
btnUse2._x = 496;
}
};
btnUse1.onRelease = function () {
v1 = 19;
shoeD = 185;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnUse2.onRelease = function () {
v1 = 21;
shoeD = 230;
td = (suitD + hatD) + shoeD;
shoe.gotoAndStop(v1);
};
btnAR.onRelease = function () {
gotoAndStop (138);
};
btnAl.onRelease = function () {
gotoAndStop (136);
};
Frame 138
function ejump() {
if (edy4 < 2) {
if (edy3 > 8) {
edy = -14;
edy3 = 0;
edy2 = 1;
edy4 = edy4 + 1;
} else if (edy4 < 1) {
if (delay > 13) {
edy = -11;
edy3 = 0;
edy2 = 1;
edy4 = edy4 + 1;
del2 = 0;
delay = 0;
}
}
}
}
stop();
dy2 = 0;
dy3 = 0;
dy4 = 0;
dy5 = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
edy5 = 0;
edx = 7;
sm = 100;
sm2 = 1;
delay = 0;
del2 = 1;
ss = 2;
sr = 100;
hp = ((100 + suitD) + hatD) + shoeD;
ehp = (((100 + esuitD) + ehatD) + eshoeD) * diff;
edmg = edmg;
slow = 100;
hehe = 0;
startDrag ("_root.aimer", true);
Mouse.hide();
gun.gotoAndStop(g1);
body.gotoAndStop(z1);
head.gotoAndStop(c1);
shoe.gotoAndStop(v1);
egun.gotoAndStop(eg1);
ebody.gotoAndStop(ez1);
ehead.gotoAndStop(ec1);
eshoe.gotoAndStop(ev1);
shield.gotoAndStop(ss);
i = 0;
if (g1 == 17) {
ff = 2;
} else if (g1 == 23) {
ff = 2;
} else {
ff = 1;
}
if (eg1 == 18) {
eff = 2;
} else if (eg1 == 24) {
eff = 2;
} else {
eff = 1;
}
body.onEnterFrame = function () {
checkkeys();
shoot();
move();
heath();
boundries();
dy5 = dy5 + (1 * sm2);
death();
slowmo();
slowmo2();
slowbar();
shielding();
shieldbar();
shield.gotoAndStop(ss);
aimer._rotation = aimer._rotation + ((200 - hpbar._width) / 5);
};
ebody.onEnterFrame = function () {
emove();
ejump2();
eshoot();
edy5 = edy5 + (1 * sm2);
edeath();
delay = delay + del2;
};
emove = function () {
ebody._x = ebody._x + (edx * sm2);
ehead._x = ehead._x + (edx * sm2);
egun._x = egun._x + (edx * sm2);
eshoe._x = eshoe._x + (edx * sm2);
if (ebody._x > 530) {
edx = -edx;
}
if (ebody._x < 20) {
edx = -edx;
}
if (ebody._x < body._x) {
egun.gotoAndStop(eg1);
eshoe.gotoAndStop(ev1 - 1);
}
if (ebody._x > body._x) {
egun.gotoAndStop(eg1 + 1);
eshoe.gotoAndStop(ev1);
}
};
ejumping = setInterval(ejump, 600);
checkkeys = function () {
if (Key.isDown(87)) {
if (dy4 < 2) {
if (dy3 > 8) {
dy = -14;
dy3 = 0;
dy2 = 1;
dy4 = dy4 + 1;
} else if (dy4 < 1) {
dy = -11;
dy3 = 0;
dy2 = 1;
dy4 = dy4 + 1;
}
}
} else if (Key.isDown(68)) {
dx = 7;
} else if (Key.isDown(65)) {
dx = -7;
} else {
dx = 0;
}
};
move = function () {
if (body._x < ebody._x) {
gun.gotoAndStop(g1);
shoe.gotoAndStop(v1);
}
if (body._x > ebody._x) {
gun.gotoAndStop(g1 + 1);
shoe.gotoAndStop(v1 + 1);
}
dy3 = dy3 + dy2;
if (dx < 0) {
if (body._x > 20) {
body._x = body._x + (dx * sm2);
head._x = head._x + (dx * sm2);
gun._x = gun._x + (dx * sm2);
shoe._x = shoe._x + (dx * sm2);
shield._x = shield._x + (dx * sm2);
}
}
if (dx > 0) {
if (body._x < 530) {
body._x = body._x + (dx * sm2);
head._x = head._x + (dx * sm2);
gun._x = gun._x + (dx * sm2);
shoe._x = shoe._x + (dx * sm2);
shield._x = shield._x + (dx * sm2);
}
}
body._y = body._y + (dy * sm2);
head._y = head._y + (dy * sm2);
gun._y = gun._y + (dy * sm2);
shoe._y = shoe._y + (dy * sm2);
shield._y = shield._y + (dy * sm2);
if (dy < 10) {
dy = dy + (dy2 * sm2);
}
if (body.hitTest(ground)) {
dy = 0;
dy2 = 0;
dy3 = 0;
dy4 = 0;
}
};
gun.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
gun._rotation = (angle * -1) + 90;
};
shoot = function () {
if (Key.isDown(1)) {
if (dy5 > s) {
dy5 = 0;
i++;
_root.attachMovie("bullet", "bullet_" + i, 10 + i);
angle = gun._rotation - 90;
currentBullet = eval ("bullet_" + i);
currentBullet._x = gun._x + (60 * Math.cos((angle * Math.PI) / 180));
currentBullet._y = gun._y + (60 * Math.sin((angle * Math.PI) / 180));
currentBullet.index = i;
currentBullet.dirx = (Math.cos((angle * Math.PI) / 180) * 15) * ff;
currentBullet.diry = (Math.sin((angle * Math.PI) / 180) * 15) * ff;
currentBullet._rotation = angle + 180;
var shot = new Sound();
shot.attachSound(sounds);
shot.start();
currentBullet.onEnterFrame = function () {
this._x = this._x + (this.dirx * sm2);
this._y = this._y + (this.diry * sm2);
if (this.hitTest(ground)) {
this.removeMovieClip();
} else if (this._x > 550) {
this.removeMovieClip();
} else if (this._x < 0) {
this.removeMovieClip();
} else if (this._y < 0) {
this.removeMovieClip();
} else if (this.hitTest(ebody)) {
this.removeMovieClip();
ehp = ehp - dmg;
} else if (this.hitTest(ehead)) {
this.removeMovieClip();
ehp = ehp - (dmg * 2);
}
};
}
}
};
ejump2 = function () {
edy3 = edy3 + edy2;
ebody._y = ebody._y + (edy * sm2);
ehead._y = ehead._y + (edy * sm2);
egun._y = egun._y + (edy * sm2);
eshoe._y = eshoe._y + (edy * sm2);
if (edy < 10) {
edy = edy + (edy2 * sm2);
}
if (ebody.hitTest(ground)) {
edy = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
del2 = 1;
}
};
egun.onEnterFrame = function () {
emousex = head._x - this._x;
emousey = (head._y - this._y) * -1;
eangle = Math.atan(emousey / emousex) / (Math.PI/180);
if (emousex < 0) {
eangle = eangle + 180;
}
if ((emousex >= 0) && (mousey < 0)) {
eangle = eangle + 360;
}
egun._rotation = (eangle * -1) + 90;
};
eshoot = function () {
if (edy5 > es) {
edy5 = 0;
i++;
_root.attachMovie("rbullet", "rbullet_" + i, 10 + i);
eangle = egun._rotation - 90;
ecurrentBullet = eval ("rbullet_" + i);
ecurrentBullet._x = egun._x + (60 * Math.cos((eangle * Math.PI) / 180));
ecurrentBullet._y = egun._y + (60 * Math.sin((eangle * Math.PI) / 180));
ecurrentBullet.index = i;
ecurrentBullet.dirx = (Math.cos((eangle * Math.PI) / 180) * 15) * eff;
ecurrentBullet.diry = (Math.sin((eangle * Math.PI) / 180) * 15) * eff;
ecurrentBullet._rotation = eangle + 180;
ecurrentBullet.onEnterFrame = function () {
this._x = this._x + (this.dirx * sm2);
this._y = this._y + (this.diry * sm2);
if (this.hitTest(ground)) {
this.removeMovieClip();
} else if (this._x > 550) {
this.removeMovieClip();
} else if (this._x < 0) {
this.removeMovieClip();
} else if (this._y < 0) {
this.removeMovieClip();
} else if (this.hitTest(shield)) {
this.removeMovieClip();
} else if (this.hitTest(body)) {
this.removeMovieClip();
hp = hp - (edmg * diff);
} else if (this.hitTest(head)) {
this.removeMovieClip();
hp = hp - ((edmg * 2) * diff);
}
};
}
};
hpbar.onEnterFrame = function () {
hpbar._width = (hp / (((100 + suitD) + hatD) + shoeD)) * 200;
hpbar._x = 12;
};
ehpbar.onEnterFrame = function () {
ehpbar._width = (ehp / ((((100 + esuitD) + ehatD) + eshoeD) * diff)) * 200;
ehpbar._x = 540;
};
btnAL.onRelease = function () {
gotoAndStop (115);
dy = 0;
dy2 = 0;
dy3 = 0;
dy4 = 0;
edy = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
};
death = function () {
if (hp <= 0) {
stat1 = stat1 + 1;
stat3 = stat3 + 1;
hpbar._width = 0;
hpbar._x = 12;
hehe = 1;
gotoAndPlay (139);
}
};
edeath = function () {
if (ehp <= 0) {
stat1 = stat1 + 1;
stat2 = stat2 + 1;
ehpbar._width = 0;
ehpbar._x = 540;
hehe = 2;
gotoAndPlay (147);
}
};
slowmo = function () {
if (Key.isDown(32)) {
if (sm > 0) {
sm = sm - 4;
sm2 = 0.5;
}
if (sm < 1) {
sm = sm + 1;
sm2 = 1;
}
} else if (sm < 250) {
sm = sm + 2;
sm2 = 1;
}
};
shielding = function () {
if (Key.isDown(16)) {
if (sr > 0) {
sr = sr - (8 * sm2);
ss = 1;
}
if (sr < 1) {
sr = sr + (1 * sm2);
ss = 2;
}
} else if (sr < 250) {
sr = sr + (1 * sm2);
ss = 2;
}
};
slowbar = function () {
smbar._width = (sm / 100) * 200;
smbar._x = 15;
};
shieldbar = function () {
sbar._width = (sr / 100) * 200;
sbar._x = 15;
};
Frame 139
body.onEnterFrame = function () {
};
ebody.onEnterFrame = function () {
};
gun.onEnterFrame = function () {
};
Frame 146
stop();
_root.kongregateStats.submit("Deaths", 1);
startDrag ("_root.aimer", true);
Mouse.hide();
back2.onRelease = function () {
dy = 0;
dy2 = 0;
dy3 = 0;
dy4 = 0;
edy = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
gotoAndStop (112);
};
Frame 147
if (hehe == 1) {
gotoAndStop (157);
}
if (hehe == 0) {
gotoAndStop (157);
}
body.onEnterFrame = function () {
};
ebody.onEnterFrame = function () {
};
gun.onEnterFrame = function () {
};
Frame 154
stop();
_root.kongregateStats.submit("Kills", 1);
startDrag ("_root.aimer", true);
Mouse.hide();
back3.onRelease = function () {
money = money + xmoney;
stat4 = stat4 + xmoney;
if (lv == w) {
w = w + 1;
}
dy = 0;
dy2 = 0;
dy3 = 0;
dy4 = 0;
edy = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
_root.kongregateStats.submit("Money", money);
_root.kongregateStats.submit("MoneyMade", stat4);
gotoAndStop (112);
};
Frame 155
stop();
startDrag ("_root.aimer", true);
Mouse.hide();
beg.onRelease = function () {
diff = 0.75;
gotoAndStop (112);
};
assa.onRelease = function () {
diff = 1;
gotoAndStop (112);
};
advassa.onRelease = function () {
diff = 1.2;
gotoAndStop (112);
};
hit.onRelease = function () {
diff = 1.5;
gotoAndStop (112);
};
leghit.onRelease = function () {
diff = 2;
gotoAndStop (112);
};
Frame 156
startDrag ("_root.aimer", true);
Mouse.hide();
rate = int((stat2 / stat1) * 100);
xfights = "Fights = " + stat1;
xwins = "Wins = " + stat2;
xlosses = "Losses = " + stat3;
xvictory = ("Rate of Victory = " + rate) + "%";
xtmoney = "Total Money Made = $" + stat4;
back3.onRelease = function () {
gotoAndStop (112);
};
Frame 157
startDrag ("_root.aimer", true);
Mouse.hide();
back4.onRelease = function () {
dy = 0;
dy2 = 0;
dy3 = 0;
dy4 = 0;
edy = 0;
edy2 = 0;
edy3 = 0;
edy4 = 0;
money = money - xmoney;
gotoAndStop (112);
};
Symbol 166 MovieClip Frame 1
stop();