Frame 1
version = "v1.31";
loadVariablesNum ("http://members.cotse.com/games/spyscore.txt", "0", "GET");
Frame 2
ifFrameLoaded (10) {
setProperty("/loading", _visible , "0");
setProperty("/entry", _y , "340");
level = "1";
stop();
}
Frame 3
gotoAndPlay (2);
Frame 5
stop();
user_shield = "100";
tmov = "5";
level = "1";
shootchance = level * "10";
sine_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
Frame 7
setProperty("/gun_o", _y , "500");
setProperty("/gun_o", _x , "-800");
gun_radius = "20";
gun_shield = "100";
Set("/gun_o:gun_shield", gun_shield);
gun_shield_max = gun_shield;
Set("/gun_o:shootchance", "0");
shotspeed = "25";
tellTarget ("/gun_o") {
stop();
};
ship_radius = "20";
usershotspeed = "20";
userdamage = "10";
user_shield_max = user_shield;
dead = "0";
tellTarget ("/gunshot") {
stop();
};
shot_radius = getProperty("/gunshot", _height) / "2";
usershot_radius = getProperty("/usershot", _height) / "2";
Set("/terrain:tnum", "2500");
Set("/terrain:radnum", "7000");
sine_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
scrheight = "450";
twidth = "9";
theight = "9";
n = "32";
while ("128" >= n) {
tellTarget (chr(n)) {
stop();
};
n = n + "1";
}
last_terrain = "50";
t50 = "TC0000000";
t49 = "000000000";
t48 = "TC0000000";
t47 = "000000000";
t46 = "TC0000000";
t45 = "000000000";
t44 = "TC0000000";
t43 = "G00000000";
t42 = "TC0000000";
t41 = "000000000";
t40 = "TC0000000";
t39 = "000000000";
t38 = "TC0000000";
t37 = "000000000";
t36 = "TC0000000";
t35 = "000000000";
t34 = "TC0000000";
t33 = "000000000";
t32 = "TC0000000";
t31 = "000000000";
t30 = "TG0000000";
t29 = "000000000";
t28 = "TC0000000";
t27 = "000000000";
t26 = "TC0000000";
t25 = "000000000";
t24 = "TC0000000";
t23 = "000000000";
t22 = "TC0000000";
t21 = "000000000";
t20 = "TC0000000";
t19 = "000000000";
t18 = "TC0000000";
t17 = "000000000";
t16 = "000000000";
t15 = "TG0000000";
t14 = "000000000";
t13 = "T00000000";
t12 = "0C0000000";
t11 = "T00000000";
t10 = "0C0000000";
t9 = "T00000000";
t8 = "0C0000000";
t7 = "T00000000";
t6 = "0C0000000";
t5 = "T00000000";
t4 = "0C0000000";
t3 = "T00000000";
t2 = "0C0000000";
t1 = "T00000000";
duplicateMovieClip ("mask", "mask1", "9999");
duplicateMovieClip ("/ship_o", "ship", "9998");
setProperty("ship", _x , "-100");
setProperty("ship", _y , "550");
Set("/:score", "0");
truckdelay = "10";
duplicateMovieClip ("gun_o", "gun", "9997");
tellTarget ("/truck") {
gotoAndPlay (2);
};
lives = "3";
tellTarget ("/mask1/music") {
gotoAndPlay (1);
};
music = "1";
Frame 8
stop();
Frame 9
stopAllSounds();
c = "2400";
removeMovieClip("/gun");
removeMovieClip("/ship");
removeMovieClip("/mask1");
removeMovieClip("/shadow");
removeMovieClip("/locate");
stopDrag();
while (c < "3000") {
removeMovieClip("/t" add c);
c = c + "1";
}
tellTarget ("/terrain") {
stop();
tellTarget ("/marker") {
stop();
};
gotoAndStop (10);
}
Frame 10
stop();
if (score10 < score) {
setProperty("/sub", _visible , "1");
msg = "You have a high score!";
} else {
setProperty("/sub", _visible , "0");
msg = ("Score too low for top 10 list" add "\r") add "Better luck next time!";
}
Frame 11
gotoAndStop (5);
level = "";
score = "";
Frame 12
gotoAndStop (5);
level = "";
score = "";
Symbol 5 MovieClip Frame 1
stop();
Symbol 11 Button
on (release) {
c = "1";
while ("100" >= c) {
removeMovieClip("../font" add c);
c = c + "1";
}
tellTarget ("../") {
gotoAndPlay (4);
}
}
Symbol 15 MovieClip Frame 7
gotoAndPlay (1);
Symbol 16 MovieClip Frame 1
msgcount = msgcount + "1";
msg1 = ">login: Connecting to server...";
msg2 = ">login: Transferring secure data...";
msg3 = "COTSE Spy Hunter is now loading!";
msg4 = "This game requires a fast computer.";
msg5 = "It is recommended that your processor be faster than 200mhz";
msg6 = "If the animation is choppy, switch to low quality mode.";
msg7 = "You will lose some detail, but animations will be smoother.";
msg8 = "Switch between High and Low quality by clicking \"Set Quality\"";
msg9 = "Submit your score to the Top 10 list! Be the best of the best!";
msg10 = "There can only be one person in the #1 slot. Good Luck!";
fontwidth = "9";
fontheight = "15";
linewidth = "10";
fontx = "30";
fonty = "200";
fontxo = fontx;
fontyo = fonty;
time = "35";
tellTarget ("../ts") {
gotoAndStop (1);
}
Symbol 16 MovieClip Frame 5
if (mblength(eval ("msg" add msgcount)) < "1") {
msgcount = "1";
}
text = eval ("msg" add msgcount);
n = "1";
c = "1";
while ((length + "2") >= c) {
removeMovieClip("../font" add c);
c = c + "1";
}
tellTarget ("../ts") {
gotoAndPlay (2);
}
Symbol 16 MovieClip Frame 6
length = length(text);
if (length >= n) {
_x = ((fontx + (fontwidth * n)) + "2");
_y = fonty;
}
Symbol 16 MovieClip Frame 7
if (length >= n) {
duplicateMovieClip ("../original", "font" add n, n);
Set(("../font" add n) add ":text", substring(text, n, "1"));
setProperty("../font" add n, _x , fontx + (fontwidth * (n - "1")));
setProperty("../font" add n, _y , fonty);
n = n + "1";
gotoAndPlay(_currentframe - "1");
}
Symbol 16 MovieClip Frame 8
delay = "0";
tellTarget ("../ts") {
gotoAndStop (1);
}
Symbol 16 MovieClip Frame 9
delay = delay + "1";
Symbol 16 MovieClip Frame 10
if (time >= delay) {
gotoAndPlay(_currentframe - "1");
} else {
msgcount = msgcount + "1";
gotoAndPlay (5);
}
Symbol 21 MovieClip Frame 3
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 3
gotoAndPlay (2);
Symbol 31 Button
on (release) {
tellTarget ("/board") {
gotoAndStop (3);
Set("../board:back", "2");
}
}
Symbol 32 Button
on (release) {
gotoAndPlay (6);
}
Symbol 37 Button
on (release) {
if (quality eq "Low Quality") {
toggleHighQuality();
quality = "High Quality";
} else {
toggleHighQuality();
quality = "Low Quality";
}
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
gotoAndPlay(random("8") + "3");
Symbol 78 MovieClip Frame 11
gotoAndPlay (3);
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 31
tellTarget ("../../mask1/lives") {
nextFrame();
}
Symbol 96 MovieClip Frame 53
tellTarget ("..") {
gotoAndPlay ("out");
}
Symbol 96 MovieClip Frame 54
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 10
stop();
Symbol 119 Button
on (press) {
tellTarget ("h") {
prevFrame();
}
}
Symbol 120 Button
on (press) {
tellTarget ("h") {
nextFrame();
}
}
Symbol 129 Button
on (release) {
gotoAndStop (1);
}
Symbol 133 Button
on (press) {
recipient = "exavior@cotse.com";
subject = "Spy Hunter Score!";
message = ((("name = " add name) add "\r") add "score = ") add ../:score;
sender = name;
}
on (release) {
if (("0" < mblength(name)) and (name ne "Name Here!")) {
loadVariablesNum ("./postman.php3", "0", "GET");
gotoAndPlay (4);
} else {
name = "Name Here!";
}
}
Symbol 146 Button
on (release) {
gotoAndStop (3);
}
Symbol 154 Button
on (release) {
if (back == "1") {
gotoAndStop (2);
} else {
gotoAndStop (1);
tellTarget ("../robbermover2") {
play();
};
}
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
back = "1";
Symbol 186 MovieClip Frame 28
tellTarget ("../") {
play();
}
Symbol 191 MovieClip Frame 1
if ("45" < getProperty("../marker", _y)) {
gotoAndPlay (6);
}
Symbol 191 MovieClip Frame 2
gotoAndPlay (1);
Symbol 191 MovieClip Frame 6
row = row + "1";
column = "1";
if (/:last_terrain < row) {
row = "1";
}
if (row == /:last_terrain) {
tellTarget ("../sound") {
gotoAndPlay ("n");
};
Set("../:level", ../:level + "1");
Set("../:shootchance", ../:level * "10");
}
while (..:twidth >= column) {
item = substring(eval ("/:t" add row), column, "1");
if (ord(item) == "71") {
name = "gun";
setProperty("../gun", _visible , "1");
Set("../gun:shootchance", /:shootchance);
Set("../gun:gun_shield", /:gun_shield);
tellTarget ("../gun") {
gotoAndPlay (1);
};
} else {
name = "t" add tnum;
}
if (ord(item) <> "48") {
tnum = tnum + "1";
if ("2600" < tnum) {
tnum = "2500";
}
if (ord(item) <> "71") {
duplicateMovieClip ("../" add item, name, tnum);
setProperty("../" add name, _x , "50" * (column - "1"));
setProperty("../" add name, _y , "0");
} else {
setProperty("../" add name, _x , ("50" * (column - "1")) + "25");
setProperty("../" add name, _y , "25");
}
}
column = column + "1";
}
setProperty("../marker", _y , "0");
gotoAndPlay (1);
Symbol 192 MovieClip Frame 1
stop();
stop();
Symbol 192 MovieClip Frame 2
tellTarget ("../../gun") {
gotoAndStop ("die");
};
setProperty("../gun_explosionscroll", _rotation , ../../gun:angle);
Symbol 192 MovieClip Frame 3
tellTarget ("../../sound") {
gotoAndPlay ("gx");
}
setProperty("../../gun", _visible , "0");
setProperty("../../gun", _x , -"200");
Set("/:score", /:score + "500");
Symbol 193 MovieClip Frame 2
_y = (_y + /:tmov);
if (/:scrheight < _y) {
}
Symbol 193 MovieClip Frame 4
gotoAndPlay (2);
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
Set("../../:lives", ../../:lives - "1");
Set("../../:pause", "5");
stopDrag();
Set("../../gun:shootchance", -"1");
tellTarget ("../../locate") {
gotoAndStop ("off");
tellTarget ("../../moveshp") {
stop();
};
Set("../../:pause", "5");
stopDrag();
setProperty("../../ship", _x , "-100");
setProperty("../../ship", _y , "-100");
tellTarget ("../../terrain") {
stop();
tellTarget ("../../marker") {
stop();
}
}
}
Symbol 195 MovieClip Frame 16
tellTarget ("../../truck") {
gotoAndPlay ("new");
};
removeMovieClip("../");
Symbol 196 MovieClip Frame 2
_y = (_y + /:tmov);
Symbol 196 MovieClip Frame 4
gotoAndPlay (2);
Symbol 198 MovieClip Frame 1
name = _name;
if (name eq "gun_o") {
_x = (-"800");
} else {
_x = (random("280") + "75");
}
Symbol 198 MovieClip Frame 2
gunx = _x;
guny = _y;
sx = getProperty("../ship", _x);
sy = getProperty("../ship", _y);
mouse_x = getProperty("../ship", _x) - gunx;
mouse_y = getProperty("../ship", _y) - guny;
if (mouse_x < "0") {
abs_mouse_x = mouse_x + (mouse_x * (-"2"));
xsign = -"1";
} else {
abs_mouse_x = mouse_x;
xsign = "1";
}
if (mouse_y < "0") {
abs_mouse_y = mouse_y + (mouse_y * (-"2"));
ysign = -"1";
} else {
abs_mouse_y = mouse_y;
ysign = "1";
}
input = (abs_mouse_x * abs_mouse_x) + (abs_mouse_y * abs_mouse_y);
call("sqrt");
hyp = output;
sin_theta = abs_mouse_y / hyp;
counter = "0";
found = "0";
while (!found) {
if (sin_theta >= (substring(..:sine_lookup_table, (counter * "6") + "1", "5"))) {
angle = counter;
} else {
found = "1";
}
counter = counter + "1";
}
if (sx < gunx) {
angle = ("90" - angle) + "90";
}
if (guny < sy) {
angle = angle + "180";
} else {
angle = ("90" - angle) + "90";
}
setProperty("man", _rotation , angle);
shootnow = random("100") + "1";
if ((shootchance >= shootnow) and (!/:dead)) {
shotname = shotname + "1";
if ((shotname >= "5100") or (shotname < "5000")) {
shotname = "5000";
}
duplicateMovieClip ("../gunshot", "shot" add shotname, shotname);
tellTarget ("../shot" add shotname) {
gotoAndPlay (2);
tellTarget ("../sound") {
gotoAndPlay ("shot");
};
Set(("../shot" add shotname) add ":xpos", gunx);
Set(("../shot" add shotname) add ":ypos", getProperty("man", _y));
if (abs_mouse_x >= abs_mouse_y) {
Set(("../shot" add shotname) add ":xmov", ..:shotspeed * xsign);
Set(("../shot" add shotname) add ":ymov", (..:shotspeed * (abs_mouse_y / abs_mouse_x)) * ysign);
} else {
Set(("../shot" add shotname) add ":ymov", ..:shotspeed * ysign);
Set(("../shot" add shotname) add ":xmov", (..:shotspeed * (abs_mouse_x / abs_mouse_y)) * xsign);
}
setProperty("../shot" add shotname, _rotation , angle + "90");
setProperty("../shot" add shotname, _x , gunx);
setProperty("../shot" add shotname, _y , guny);
}
}
_y = (_y + /:tmov);
if (/:scrheight < _y) {
shootchance = "-1";
_y = (-"100");
_x = (-"800");
}
if (((((-"30") < (sx - gunx)) and ((sx - gunx) < "30")) and ((-"50") < (sy - guny))) and ((sy - guny) < "50")) {
Set("/:user_shield", "0");
tellTarget ("../ship") {
gotoAndStop ("die");
};
stopDrag();
setProperty("../explosion", _x , getProperty("../ship", _x));
setProperty("../explosion", _y , getProperty("../ship", _y));
tellTarget ("../explosion/xplode") {
play();
};
gotoAndPlay (9);
}
Symbol 198 MovieClip Frame 4
gotoAndPlay (2);
Symbol 198 MovieClip Frame 5
shootchance = -"1";
stop();
Symbol 198 MovieClip Frame 9
_y = (_y + "5");
if (/:scrheight < _y) {
_y = (-"100");
_x = (-"800");
}
Symbol 198 MovieClip Frame 11
gotoAndPlay (9);
Symbol 198 MovieClip Frame 13
n = "1";
counter = "0";
while (counter < "11") {
n = n - (((n * n) - input) / ("2" * n));
counter = counter + "1";
}
output = n;
Symbol 199 MovieClip Frame 1
potx = getProperty("../ship", _x);
posx = getProperty("../locate", _x);
posy = getProperty("../locate", _y);
poty = getProperty("../ship", _y);
difx = posx - potx;
dify = posy - poty;
call("route1");
Symbol 199 MovieClip Frame 2
gotoAndPlay (1);
Symbol 199 MovieClip Frame 9
setProperty("../ship", _x , potx + (difx / "5"));
setProperty("../ship", _y , poty + (dify / "5"));
if ((difx < "70") and ((-"70") < difx)) {
jjj = int(difx + "70");
}
if ("70" < difx) {
jjj = "140";
}
if (difx < (-"70")) {
jjj = "1";
}
tellTarget ("../ship") {
gotoAndStop(../moveshp:jjj);
};
if (("375" < getProperty("../ship", _x)) or (getProperty("../ship", _x) < "75")) {
tellTarget ("../shake") {
gotoAndPlay (2);
};
} else {
tellTarget ("../shake") {
gotoAndStop (1);
};
}
Symbol 201 MovieClip Frame 1
randomx = random("100");
if ("50" < randomx) {
_x = "5";
} else {
_x = "395";
}
Symbol 201 MovieClip Frame 2
_y = (_y + "15");
if (/:scrheight < _y) {
removeMovieClip("");
}
my_x = _x;
ship_x = getProperty("../ship", _x);
delta_x = (my_x - ship_x) + "25";
my_y = _y;
ship_y = getProperty("../ship", _y);
delta_y = (my_y - ship_y) + "25";
Symbol 201 MovieClip Frame 3
if ((("10" + ..:ship_radius) * ("10" + ..:ship_radius)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:user_shield", "0");
tellTarget ("../ship") {
gotoAndStop ("die");
};
stopDrag();
setProperty("../explosion", _x , getProperty("../ship", _x));
setProperty("../explosion", _y , getProperty("../ship", _y));
tellTarget ("../explosion/xplode") {
play();
};
}
Symbol 201 MovieClip Frame 4
gotoAndPlay (2);
Symbol 202 MovieClip Frame 2
_y = (_y + /:tmov);
if (/:scrheight < _y) {
removeMovieClip("");
}
Symbol 202 MovieClip Frame 4
gotoAndPlay (2);
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 6
gotoAndStop (1);
Symbol 206 MovieClip Frame 11
gotoAndStop (1);
Symbol 206 MovieClip Frame 15
gotoAndStop (1);
Symbol 206 MovieClip Frame 24
gotoAndStop (1);
Symbol 206 MovieClip Frame 28
gotoAndStop (1);
Symbol 206 MovieClip Frame 32
gotoAndStop (1);
Symbol 208 MovieClip Frame 1
stop();
tellTarget ("../locate") {
gotoAndStop (1);
tellTarget ("../moveshp") {
play();
}
}
Symbol 208 MovieClip Frame 146
Set("../gun:shootchance", -"1");
tellTarget ("../moveshp") {
stop();
tellTarget ("../locate") {
gotoAndStop (2);
}
}
Symbol 209 MovieClip Frame 1
gotoAndStop(random("3") + "2");
Symbol 209 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 1
health = "100";
_x = (random("270") + "65");
_rotation = "0";
Symbol 211 MovieClip Frame 2
_y = (_y + "5");
_rotation = "0";
if (/:scrheight < _y) {
removeMovieClip("");
}
my_x = _x;
ship_x = getProperty("../ship", _x);
delta_x = my_x + "25";
my_y = _y;
ship_y = getProperty("../ship", _y);
delta_y = my_y + "25";
xmove = "0";
shot = "8000";
while ("8050" >= shot) {
shotx = getProperty("../usershot" add shot, _x);
shoty = getProperty("../usershot" add shot, _y);
if (((((-"15") < (shotx - delta_x)) and ((-"25") < (shoty - delta_y))) and ((shotx - delta_x) < "15")) and ((shoty - delta_y) < "25")) {
removeMovieClip("../usershot" add shot);
tellTarget ("../sound") {
gotoAndPlay ("ric");
};
if ("25" < health) {
health = health - "25";
} else {
gotoAndPlay (10);
}
}
shot = shot + "1";
}
Symbol 211 MovieClip Frame 3
if (((((-"28") < (ship_x - delta_x)) and ((-"45") < (ship_y - delta_y))) and ((ship_x - delta_x) < "28")) and ((ship_y - delta_y) < "45")) {
if (ship_x < delta_x) {
xmove = "1";
_x = (_x + "10");
tellTarget ("../sound") {
gotoAndPlay ("skid");
};
} else {
xmove = "2";
_x = (_x - "10");
tellTarget ("../sound") {
gotoAndPlay ("skid");
};
}
gotoAndPlay (5);
}
Symbol 211 MovieClip Frame 4
gotoAndPlay (2);
Symbol 211 MovieClip Frame 5
Set("/:user_shield", /:user_shield - "5");
Set("../:score", ../:score + "10");
if ("0" >= /:user_shield) {
Set("/:user_shield", "0");
gotoAndPlay (5);
tellTarget ("../ship") {
gotoAndStop ("die");
};
stopDrag();
setProperty("../explosion", _x , getProperty("../ship", _x));
setProperty("../explosion", _y , getProperty("../ship", _y));
tellTarget ("../explosion/xplode") {
play();
};
}
Symbol 211 MovieClip Frame 6
if (/:scrheight < _y) {
removeMovieClip("");
}
_y = (_y + "15");
if (xmove == "1") {
_x = (_x + "5");
setProperty("c", _rotation , getProperty("c", _rotation) + "15");
} else {
_x = (_x - "5");
setProperty("c", _rotation , getProperty("c", _rotation) - "15");
}
if ("0" < /:user_shield) {
my_name = _name;
my_x = _x + "25";
my_y = _y + "25";
g_x = getProperty("../gun", _x);
g_y = getProperty("../gun", _y);
if (((((-"30") < (g_x - my_x)) and ((g_x - my_x) < "30")) and ((-"30") < (g_y - my_y))) and ((g_y - my_y) < "30")) {
gotoAndPlay (13);
}
tcount = "2500";
while (tcount < "2601") {
t_name = getProperty("../t" add tcount, _name);
if (my_name ne t_name) {
object_x = getProperty("../t" add tcount, _x) + "25";
object_y = getProperty("../t" add tcount, _y) + "25";
if (((((-"30") < (object_x - my_x)) and ((object_x - my_x) < "30")) and ((-"30") < (object_y - my_y))) and ((object_y - my_y) < "30")) {
tellTarget ("../t" add tcount) {
gotoAndPlay ("tboom");
};
gotoAndPlay (13);
}
}
tcount = tcount + "1";
}
}
Symbol 211 MovieClip Frame 7
gotoAndPlay (6);
Symbol 211 MovieClip Frame 10
Set("../:score", ../:score + "50");
Symbol 211 MovieClip Frame 12
removeMovieClip("");
stop();
Symbol 211 MovieClip Frame 13
Set("../:score", ../:score + "10");
Symbol 211 MovieClip Frame 15
removeMovieClip("");
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
x = getProperty("../ship", _x);
y = getProperty("../ship", _y);
setProperty("../ship", _x , x + (random("10") - "5"));
setProperty("../ship", _y , y + (random("10") - "5"));
Symbol 213 MovieClip Frame 3
gotoAndPlay (2);
Symbol 216 MovieClip Frame 1
tellTarget ("../terrain") {
stop();
};
stop();
tellTarget ("../locate") {
gotoAndStop ("off");
};
Set("../:pause", "5");
tellTarget ("truck") {
gotoAndStop (1);
}
Symbol 216 MovieClip Frame 2
play();
count = "0";
Symbol 216 MovieClip Frame 3
count = count + "1";
Symbol 216 MovieClip Frame 4
if (count < ../:truckdelay) {
gotoAndPlay (3);
} else {
gotoAndPlay (15);
}
Symbol 216 MovieClip Frame 7
count = "0";
Set("../gun:shootchance", -"1");
tellTarget ("../locate") {
gotoAndStop ("off");
tellTarget ("../moveshp") {
stop();
};
setProperty("../ship", _x , "-100");
setProperty("../ship", _y , "-100");
Set("../:pause", "5");
stopDrag();
tellTarget ("../terrain") {
stop();
tellTarget ("../marker") {
stop();
tellTarget ("truck") {
gotoAndStop (1);
}
}
}
}
Symbol 216 MovieClip Frame 8
count = count + "1";
Symbol 216 MovieClip Frame 9
if (count < ../:truckdelay) {
gotoAndPlay (8);
} else if (../:lives == "0") {
tellTarget ("../") {
gotoAndPlay ("gameover");
};
} else {
gotoAndPlay (11);
}
Symbol 216 MovieClip Frame 11
c = "2400";
while (c < "3000") {
removeMovieClip("../t" add c);
c = c + "1";
}
Symbol 216 MovieClip Frame 71
stop();
tellTarget ("truck") {
gotoAndPlay ("open");
}
Symbol 216 MovieClip Frame 72
setProperty("../ship", _x , _x);
setProperty("../ship", _y , _y + "140");
tellTarget ("../moveshp") {
play();
};
setProperty("../locate", _x , _x - "130");
setProperty("../locate", _y , _y + "150");
Set("../:user_shield", "100");
Symbol 216 MovieClip Frame 83
tellTarget ("truck") {
gotoAndPlay ("close");
}
Symbol 216 MovieClip Frame 154
tellTarget ("../terrain") {
play();
tellTarget ("../marker") {
play();
}
}
Symbol 216 MovieClip Frame 161
startDrag ("../locate", true, "0", "0", "425", "400");
Symbol 216 MovieClip Frame 175
Set("../:truckdelay", "155");
count = "0";
Set("../:shootchance", ../:level * "10");
tellTarget ("../locate") {
gotoAndStop (1);
tellTarget ("../moveshp") {
play();
};
Set("../:pause", "1");
}
Symbol 216 MovieClip Frame 176
stop();
Symbol 218 Button
on (press) {
shotname = shotname + "1";
if ((shotname >= "8050") or (shotname < "8000")) {
shotname = "8000";
}
duplicateMovieClip ("../usershot", "usershot" add shotname, shotname);
tellTarget ("../usershot" add shotname) {
gotoAndPlay (2);
};
Set(("../usershot" add shotname) add ":time", getTimer());
Set(("../usershot" add shotname) add ":ypos", _y);
Set(("../usershot" add shotname) add ":ymov", ..:usershotspeed * (-"1"));
setProperty("../usershot" add shotname, _x , getProperty("../ship", _x));
setProperty("../usershot" add shotname, _y , getProperty("../ship", _y) - "15");
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 3
gotoAndStop (2);
stop();
Symbol 220 MovieClip Frame 1
my_x = _x;
my_y = _y;
gun_x = getProperty("../gun", _x);
gun_y = getProperty("../gun", _y);
if (((("450" < my_x) or (my_x < "0")) or ("450" < my_y)) or (my_y < "0")) {
removeMovieClip("");
} else {
_y = (_y + ymov);
}
Symbol 220 MovieClip Frame 2
if (((gun_x - /:gun_radius) < my_x) and (my_x < (gun_x + /:gun_radius))) {
if (((gun_y - /:gun_radius) < my_y) and (my_y < (gun_y + /:gun_radius))) {
tellTarget ("../sound") {
gotoAndPlay ("ric");
};
Set("../gun:gun_shield", ../gun:gun_shield - /:userdamage);
if ("0" >= ../gun:gun_shield) {
Set("../gun:gun_shield", "0");
tellTarget ("../gun") {
gotoAndStop ("die");
};
if (!/:dead) {
setProperty("../gun_explosion", _x , gun_x);
setProperty("../gun_explosion", _y , gun_y);
tellTarget ("../gun_explosion/xplode") {
play();
};
}
}
removeMovieClip("");
}
}
Symbol 220 MovieClip Frame 3
gotoAndPlay (1);
Symbol 222 MovieClip Frame 1
my_x = _x;
ship_x = getProperty("../ship", _x);
delta_x = my_x - ship_x;
my_y = _y;
ship_y = getProperty("../ship", _y);
delta_y = my_y - ship_y;
if (((("450" < my_x) or (my_x < "0")) or ("450" < my_y)) or (my_y < "0")) {
removeMovieClip("");
} else {
_x = (_x + xmov);
_y = (_y + ymov);
}
Symbol 222 MovieClip Frame 2
if (((..:shot_radius + ..:ship_radius) * (..:shot_radius + ..:ship_radius)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
tellTarget ("../sound") {
gotoAndPlay ("d");
};
Set("/:user_shield", /:user_shield - "10");
if ("0" >= /:user_shield) {
Set("/:user_shield", "0");
tellTarget ("../ship") {
gotoAndStop ("die");
};
stopDrag();
setProperty("../explosion", _x , getProperty("../ship", _x));
setProperty("../explosion", _y , getProperty("../ship", _y));
tellTarget ("../explosion/xplode") {
play();
};
}
removeMovieClip("");
}
Symbol 222 MovieClip Frame 3
gotoAndPlay (1);
Symbol 224 Button
on (keyPress "m") {
if (music == "1") {
tellTarget ("/mask1/music") {
gotoAndPlay ("off");
};
music = "0";
} else {
tellTarget ("/mask1/music") {
gotoAndPlay ("on");
};
music = "1";
}
}
on (keyPress "M") {
if (music == "1") {
tellTarget ("/mask1/music") {
gotoAndPlay ("off");
};
music = "0";
} else {
tellTarget ("/mask1/music") {
gotoAndPlay ("on");
};
music = "1";
}
}
Symbol 237 Button
on (release, keyPress "<Space>") {
if (../:pause == "1") {
Set("../:pause", "0");
Set("../:p", "Game Paused");
tellTarget ("../shake") {
gotoAndStop (1);
};
gshot = "5000";
while (gshot < "5101") {
tellTarget ("../shot" add gshot) {
stop();
};
gshot = gshot + "1";
}
shot = "8000";
while (shot < "8051") {
tellTarget ("../usershot" add shot) {
stop();
};
shot = shot + "1";
}
c = "2400";
tellTarget ("../gun") {
stop();
};
stopDrag();
tellTarget ("../locate") {
gotoAndStop (2);
tellTarget ("../moveshp") {
stop();
};
while (c < "3000") {
tellTarget ("../t" add c) {
stop();
};
c = c + "1";
}
tellTarget ("/terrain") {
stop();
tellTarget ("/marker") {
stop();
};
}
}
} else if (../:pause == "0") {
Set("../:pause", "1");
Set("../:p", "");
gshot = "5000";
while (gshot < "6000") {
tellTarget ("../shot" add gshot) {
play();
};
gshot = gshot + "1";
}
shot = "8000";
while (shot < "9000") {
tellTarget ("../usershot" add shot) {
play();
};
shot = shot + "1";
}
c = "2400";
tellTarget ("../gun") {
play();
};
while (c < "3000") {
tellTarget ("../t" add c) {
play();
};
c = c + "1";
}
tellTarget ("/terrain") {
play();
tellTarget ("/marker") {
play();
};
startDrag ("../locate", true, "0", "0", "425", "400");
tellTarget ("../locate") {
gotoAndStop (1);
tellTarget ("../moveshp") {
play();
};
}
}
}
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 4
stop();
Symbol 265 MovieClip Frame 8
stop();
Symbol 270 Button
on (release) {
level = "";
score = "";
gotoAndStop (5);
}
Symbol 275 Button
on (release) {
tellTarget ("/board") {
gotoAndStop (3);
Set("../board:back", "2");
}
}
Symbol 276 Button
on (release) {
tellTarget ("../board") {
level = "1";
gotoAndStop (2);
Set("../board:back", "1");
}
}