[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (307 B)
stop();
_root.createEmptyMovieClip("ACT", 1);
ACT.onEnterFrame = function () {
BytePercent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (BytePercent == 100) {
gotoAndStop (3);
ACT.removeMovieClip();
}
PreLoader.gotoAndStop(Math.floor(BytePercent));
trace(BytePercent);
};
Frame 2 (17 B)
stopAllSounds();
Frame 3 (317 B)
stop();
stopAllSounds();
_root.attachMovie("armorlogo", "Armor", 1);
Armor._visible = false;
Armor._x = 300;
Armor._y = 200;
_root.createEmptyMovieClip("Watch", 211);
Watch.onEnterFrame = function () {
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
Armor.play();
Armor._visible = true;
}
};
Frame 4 (55 B)
_root.attachMovie("openingmovie", "opening_movie", 1);
Frame 6 (298 B)
exp_FB = new Array();
hp = 0;
hp_max = 1;
mp = 2;
mp_max = 3;
spd = 4;
str = 5;
att_wait = 6;
mve_wait = 7;
tch_dmg = 8;
mp_recover = 9;
exp = 10;
deos = new Array(100, 100, 50, 50, 2.5, 5, 0, 0, 0, 0.07, 0);
deo_spells = new Array();
deo_skills_lvl = new Array(0, 0, 0);
Vol = 100;
Frame 7 (1.57 KiB) ●
deo_dead = function () {
if (deos[hp] < 1) {
deos[hp] = 0;
}
if (deo_old_hp != deos[hp]) {
_root.combat_bg.hp_bar.play();
deo_damage_sound.start(0, 0);
}
if (deos[hp] < 1) {
deos[hp] = 0;
deos[mve_wait] = TIMER + 1000;
deos[att_wait] = TIMER + 1000;
deo._alpha = deo._alpha - 3;
if (deo._alpha < 0) {
remove_all();
gotoAndStop ("dead");
_root.crosshair.gotoAndStop(2);
}
}
deo_old_hp = deos[hp];
};
stat_display = function () {
if (deos[mp] < deos[mp_max]) {
deos[mp] = deos[mp] + deos[mp_recover];
}
combat_bg.mp_bar._xscale = (deos[mp] / deos[mp_max]) * 100;
if (deos[hp] > deos[hp_max]) {
deos[hp] = deos[hp_max];
}
combat_bg.hp_bar._xscale = (deos[hp] / deos[hp_max]) * 100;
combat_bg.ingame_XP_dis = deos[exp];
};
deo_rotation = function () {
if (deos[mve_wait] < TIMER) {
deo_ydis = deo._y - _ymouse;
deo_xdis = deo._x - _xmouse;
mouse_rads = Math.atan2(deo_ydis, deo_xdis);
mouse_degree = mouse_rads / (Math.PI/180);
deo._rotation = mouse_degree;
}
};
deo_move = function () {
if (deos[mve_wait] < TIMER) {
if (Key.isDown(65)) {
deo._x = deo._x - deos[spd];
}
if (Key.isDown(68)) {
deo._x = deo._x + deos[spd];
}
if (Key.isDown(87)) {
deo._y = deo._y - deos[spd];
}
if (Key.isDown(83)) {
deo._y = deo._y + deos[spd];
}
}
};
deo_limit = function () {
if (deo._x < 40) {
deo._x = 40;
}
if (deo._x > 560) {
deo._x = 560;
}
if (deo._y < 70) {
deo._y = 70;
}
if (deo._y > 360) {
deo._y = 360;
}
};
Frame 8 (17.02 KiB) ● ● ●
deo_attacks_click = function () {
if (play_status == "play") {
if (Key.isDown(16)) {
z = 0;
while (z < deo_spells.length) {
_root[("deo_" + [deo_spells[z]]) + "_click"]();
z++;
}
} else {
deo_sword_click();
}
}
};
deo_attacks_loop = function () {
deo_sword_loop();
z = 0;
while (z < deo_spells.length) {
_root[("deo_" + [deo_spells[z]]) + "_loop"]();
z++;
}
};
deo_blizzard_click = function () {
if (blizz._x > -100) {
blizz_st = "no";
} else {
blizz_st = "go";
}
if ((((blizz_st != "no") and (att_style == "blizzard")) and (deos[mp] > 25)) and (deos[att_wait] < TIMER)) {
blizzard_sound.setVolume(Vol * 0.4);
blizzard_sound.start(5, 0);
deos[mp] = deos[mp] - 25;
deos[att_wait] = TIMER + 40;
attachMovie("blizzard_", "blizz", weap_dep++);
blizz._x = _xmouse;
blizz._y = _ymouse;
}
};
deo_blizzard_loop = function () {
bliz_frame = _root.blizz._currentframe;
bliz_ref = bliz_frame / 3;
if ((bliz_frame > 5) and (bliz_ref == Math.floor(bliz_ref))) {
B = 0;
while (bad_guys.length > B) {
bliz_Dis = distance(bad_guys[B][char_], "blizz");
if (bliz_Dis <= 70) {
bad_guys[B][hp_] = bad_guys[B][hp_] - 2.5;
bad_guys[B][mvwt_] = TIMER + 3;
bad_guys[B][atwt_] = TIMER + 3;
}
B++;
}
if (bliz_frame > 50) {
_root.blizz.removeMovieClip();
}
}
};
deo_slicer_click = function () {
if (((att_style == "slicer") and (deos[mp] > 15)) and (deos[att_wait] < TIMER)) {
attachMovie("_slicer", "slicer_", 48);
deos[att_wait] = TIMER + 22;
slicer_._x = deo._x;
slicer_._y = deo._y;
slicer_._rotation = mouse_degree;
deos[mp] = deos[mp] - 15;
slicer_active = true;
}
};
deo_slicer_loop = function () {
if (slicer_active == true) {
slicer_._x = deo._x;
slicer_._y = deo._y;
slicer_._rotation = mouse_degree;
SC = slicer_._currentframe;
T = 3;
while (T < 20) {
if (SC == T) {
swordZ = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
hit_XA = _root.deo._x - ((50 / swordZ) * deo_xdis);
hit_YA = _root.deo._y - ((50 / swordZ) * deo_ydis);
hit_XB = _root.deo._x - ((20 / swordZ) * deo_xdis);
hit_YB = _root.deo._y - ((20 / swordZ) * deo_ydis);
K = 0;
while (bad_guys.length > K) {
if (_root[bad_guys[K][char_]].hitTest(hit_XA, hit_YA, true) or _root[bad_guys[K][char_]].hitTest(hit_XB, hit_YB, true)) {
hit_sound.setVolume(Vol * 7);
hit_sound.start(0, 0);
bad_guys[K][hp_] = bad_guys[K][hp_] - 8.5;
bad_guys[K][mvwt_] = TIMER + 2;
_root[bad_guys[K][char_]]._x = _root[bad_guys[K][char_]]._x + ((Math.random() * 6) - 3);
_root[bad_guys[K][char_]]._y = _root[bad_guys[K][char_]]._y + ((Math.random() * 6) - 3);
}
K++;
}
}
T = T + 3;
}
if (SC > 22) {
_root.slicer_.removeMovieClip();
slicer_active = false;
}
}
};
deo_teleport_click = function () {
if ((att_style == "teleport") and (deos[mp] > 15)) {
if ((deos[mve_wait] < TIMER) and (deos[att_wait] < TIMER)) {
teleport_sound.setVolume(Vol);
teleport_sound.start(1, 0);
deos[mp] = deos[mp] - 15;
deos[mve_wait] = TIMER + 20;
deos[att_wait] = TIMER + 20;
tele_state = "true";
tele_vis = 100;
tele_fade = -15;
tele_X = _xmouse;
tele_Y = _ymouse;
}
}
};
deo_teleport_loop = function () {
if (tele_state == "true") {
tele_vis = tele_vis + tele_fade;
_root.deo.graphic._alpha = tele_vis;
if (tele_vis < 0) {
_root.deo._x = tele_X;
_root.deo._y = tele_Y;
tele_fade = 10;
}
if (tele_vis > 100) {
tele_state = "false";
}
}
};
project_NS = new Array();
deo_ninja_star_click = function () {
if (((att_style == "ninja_star") and (deos[att_wait] < TIMER)) and (deos[mp] > 3)) {
ninja_star_sound.setVolume(Vol);
ninja_star_sound.start(0, 0);
g = project_NS.length;
project_NS[g] = new Array();
deos[att_wait] = TIMER + 2;
deos[mp] = deos[mp] - 3;
ns_zdis = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
ns_ratio = 20 / ns_zdis;
attachMovie("ninja_star_", ["NS" + weap_dep], weap_dep++);
project_NS[g][0] = ["NS" + weap_dep];
project_NS[g][1] = ns_ratio * deo_xdis;
project_NS[g][2] = ns_ratio * deo_ydis;
project_NS[g][3] = 5;
_root[project_NS[g][0]]._x = deo._x - (project_NS[g][1] / 5);
_root[project_NS[g][0]]._y = deo._y - (project_NS[g][2] / 5);
}
};
deo_ninja_star_loop = function () {
j = 0;
while (j < project_NS.length) {
l = 0;
while (l < bad_guys.length) {
fb_hit = distance(bad_guys[l][char_], project_NS[j][0]);
fb_min = bad_guys[l][rad_] + 1;
if (fb_hit < fb_min) {
hit_sound.setVolume(Vol);
hit_sound.start(0, 0);
bad_guys[l][hp_] = bad_guys[l][hp_] - 2.5;
_root[project_NS[j][0]].removeMovieClip();
project_NS.splice(j, 1);
}
l++;
}
a_x = _root[project_NS[j][0]]._x;
a_y = _root[project_NS[j][0]]._y;
if ((((25 > a_x) or (a_x > 575)) or (55 > a_y)) or (375 < a_y)) {
hit_sound.setVolume(Vol);
hit_sound.start(0, 0);
_root[project_NS[j][0]].removeMovieClip();
project_NS.splice(j, 1);
}
_root[project_NS[j][0]]._x = _root[project_NS[j][0]]._x - project_NS[j][1];
_root[project_NS[j][0]]._y = _root[project_NS[j][0]]._y - project_NS[j][2];
j++;
}
};
deo_sword_click = function () {
if (deos[att_wait] < TIMER) {
_root.deo.attachMovie("sword0", "sword", 49);
deos[att_wait] = TIMER + 7;
}
};
deo_sword_loop = function () {
if (_root.deo.sword._currentframe == 3) {
swordZ = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
hit_XA = _root.deo._x - ((52 / swordZ) * deo_xdis);
hit_YA = _root.deo._y - ((52 / swordZ) * deo_ydis);
hit_XB = _root.deo._x - ((20 / swordZ) * deo_xdis);
hit_YB = _root.deo._y - ((20 / swordZ) * deo_ydis);
z = 0;
while (bad_guys.length > z) {
if (_root[bad_guys[z][char_]].hitTest(hit_XA, hit_YA, true) or _root[bad_guys[z][char_]].hitTest(hit_XB, hit_YB, true)) {
if (TIMER > bad_guys[z][mvwt_]) {
bad_guys[z][mvwt_] = TIMER + 3;
}
hit_sound.setVolume(Vol * 0.7);
hit_sound.start(0, 0);
bad_guys[z][hp_] = bad_guys[z][hp_] - deos[str];
return(undefined);
}
z++;
}
}
if (_root.deo.sword._currentframe > 5) {
_root.deo.sword.removeMovieClip();
}
};
deo_blitz_click = function () {
if ((att_style == "blitz") and (deos[mp] > 20)) {
if ((deos[att_wait] < TIMER) and (deos[mve_wait] < TIMER)) {
deos[mp] = deos[mp] - 20;
blitz_timer = 3;
dashZ = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
dashY = deo_ydis / 3;
dashX = deo_xdis / 3;
if (dashZ > 100) {
dashC = 100 / dashZ;
dashX = (dashC * deo_xdis) / 3;
dashY = (dashC * deo_ydis) / 3;
}
trace("X=" + dashX);
trace("Y=" + dashY);
}
}
};
deo_blitz_loop = function () {
if (blitz_timer > 0) {
trace(blitz_timer);
deo._x = deo._x - dashX;
deo._y = deo._y - dashY;
blitz_timer--;
z = 0;
while (z < bad_guys.length) {
dist_char = distance("deo", bad_guys[z][char_]);
if (40 > dist_char) {
dist_ratio = 100 / dist_char;
_root[bad_guys[z][char_]]._x = deo._x - (dist_x * dist_ratio);
_root[bad_guys[z][char_]]._y = deo._y - (dist_y * dist_ratio);
bad_guys[z][hp_] = bad_guys[z][hp_] - 20;
bad_guys[z][mvwt_] = TIMER + 40;
bad_guys[z][atwt_] = TIMER + 40;
}
z++;
}
}
};
deo_stomp_click = function () {
if (((att_style == "stomp") and (deos[att_wait] < TIMER)) and (deos[mp] > 25)) {
stomp_sound.setVolume(Vol);
stomp_sound.start(0, 0);
attachMovie("_stomp", "stomp_", 50);
_root.stomp_._x = _root.deo._x;
_root.stomp_._y = _root.deo._y;
deos[mp] = deos[mp] - 25;
deos[att_wait] = TIMER + 10;
deos[mve_wait] = TIMER + 10;
z = 0;
while (z < bad_guys.length) {
dist_char = distance("deo", bad_guys[z][char_]);
if (dist_char < 120) {
}
z++;
}
}
};
deo_stomp_loop = function () {
if (_root.stomp_._width < 240) {
_root.stomp_._width = _root.stomp_._width + 40;
_root.stomp_._height = _root.stomp_._height + 40;
stomp_radius = _root.stomp_._width / 2;
z = 0;
while (z < bad_guys.length) {
dist_char = distance("deo", bad_guys[z][char_]);
if (stomp_radius > dist_char) {
bad_guys[z][mvwt_] = TIMER + 60;
bad_guys[z][atwt_] = TIMER + 80;
dist_ratio = stomp_radius / dist_char;
_root[bad_guys[z][char_]]._x = deo._x - (dist_x * dist_ratio);
_root[bad_guys[z][char_]]._y = deo._y - (dist_y * dist_ratio);
}
z++;
}
} else {
_root.stomp_.removeMovieClip();
}
};
project_FB = new Array();
deo_fireball_click = function () {
if (((att_style == "fireball") and (deos[att_wait] < TIMER)) and (deos[mp] > 15)) {
j = project_FB.length;
project_FB[j] = new Array();
deos[att_wait] = TIMER + 10;
deos[mp] = deos[mp] - 15;
f_zdis = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
f_ratio = 9 / f_zdis;
attachMovie("_fireball", ["FB" + weap_dep], weap_dep++);
project_FB[j][0] = ["FB" + weap_dep];
project_FB[j][1] = f_ratio * deo_xdis;
project_FB[j][2] = f_ratio * deo_ydis;
_root[project_FB[j][0]]._x = deo._x - project_FB[j][1];
_root[project_FB[j][0]]._y = deo._y - project_FB[j][2];
f_rads = Math.atan2(deo_ydis, deo_xdis);
_root[project_FB[j][0]]._rotation = f_rads / (Math.PI/180);
}
};
deo_fireball_loop = function () {
a = 0;
while (a < exp_FB.length) {
if (_root[exp_FB[a]]._currentframe > 10) {
_root[exp_FB[a]].removeMovieClip();
}
a++;
}
j = 0;
while (j < project_FB.length) {
_root[project_FB[j][0]]._x = _root[project_FB[j][0]]._x - project_FB[j][1];
_root[project_FB[j][0]]._y = _root[project_FB[j][0]]._y - project_FB[j][2];
p_x = _root[project_FB[j][0]]._x;
p_y = _root[project_FB[j][0]]._y;
l = 0;
while (l < bad_guys.length) {
fb_hit = distance(bad_guys[l][char_], project_FB[j][0]);
fb_min = bad_guys[l][rad_] + 6;
if (fb_hit < fb_min) {
explosion_sound.setVolume(Vol);
explosion_sound.start(0, 0);
bad_guys[l][hp_] = bad_guys[l][hp_] - 20;
bad_guys[l][mvwt_] = TIMER + 10;
bad_guys[l][atwt_] = TIMER + 10;
attachMovie("explosion", ["exp" + weap_dep], weap_dep++);
exp_FB[exp_FB.length] = ["exp" + weap_dep];
_root["exp" + weap_dep]._x = _root[project_FB[j][0]]._x;
_root["exp" + weap_dep]._y = _root[project_FB[j][0]]._y;
_root["exp" + weap_dep]._rotation = Math.random() * 360;
_root[project_FB[j][0]].removeMovieClip();
project_FB.splice(j, 1);
}
l++;
}
if ((((30 > p_x) or (p_x > 580)) or (50 > p_y)) or (380 < p_y)) {
explosion_sound.setVolume(Vol);
explosion_sound.start(0, 0);
attachMovie("explosion", ["exp" + weap_dep], weap_dep++);
exp_FB[exp_FB.length] = ["exp" + weap_dep];
_root["exp" + weap_dep]._x = _root[project_FB[j][0]]._x;
_root["exp" + weap_dep]._y = _root[project_FB[j][0]]._y;
_root["exp" + weap_dep]._rotation = Math.random() * 360;
_root[project_FB[j][0]].removeMovieClip();
project_FB.splice(j, 1);
}
j++;
}
};
deo_lightening_click = function () {
if (((att_style == "lightening") and (deos[att_wait] < TIMER)) and (deos[mp] > 10)) {
z = 0;
while (z < bad_guys.length) {
if (_root[bad_guys[z][char_]].hitTest(_xmouse, _ymouse, true)) {
thunder_sound.setVolume(Vol);
thunder_sound.start(0, 0);
light_target = bad_guys[z][char_];
bad_guys[z][mvwt_] = TIMER + 40;
bad_guys[z][atwt_] = TIMER + 40;
lit = z;
light_length = 14;
deos[att_wait] = TIMER + 2;
ltt = 0;
lightening_active = true;
}
z++;
}
}
};
deo_lightening_loop = function () {
if ((deos[mp] < 2) or (_root[bad_guys[lit][char_]]._y < 0)) {
lit = "NANA";
}
if (((lightening_active == true) and (light_length > 0)) and (light_target == bad_guys[lit][char_])) {
h = 14;
while (h > 0) {
if (h == light_length) {
_root[bad_guys[lit][char_]]._x = _root[bad_guys[lit][char_]]._x + ((Math.random() * 8) - 4);
_root[bad_guys[lit][char_]]._y = _root[bad_guys[lit][char_]]._y + ((Math.random() * 8) - 4);
deos[mp] = deos[mp] - 2;
startX = new Array();
startY = new Array();
mid1X = new Array();
mid1Y = new Array();
mid2X = new Array();
mid2Y = new Array();
endX = new Array();
endY = new Array();
z = 0;
while (z < 3) {
ranA = Math.random();
ranB = Math.random();
randA = (Math.random() * 50) - 25;
randB = (Math.random() * 50) - 25;
randC = (Math.random() * 50) - 25;
randD = (Math.random() * 50) - 25;
randE = (Math.random() * 10) - 5;
randF = (Math.random() * 10) - 5;
startX[z] = randE + deo._x;
startY[z] = randF + deo._y;
dist_1x = (deo._x - _root[bad_guys[lit][char_]]._x) * 0.75;
dist_1y = (deo._y - _root[bad_guys[lit][char_]]._y) * 0.75;
mid1X[z] = randA + (deo._x - (dist_1x * ranA));
mid1Y[z] = randB + (deo._y - (dist_1y * ranA));
dist_2x = (mid1X[z] - _root[bad_guys[lit][char_]]._x) * 0.75;
dist_2y = (mid1Y[z] - _root[bad_guys[lit][char_]]._y) * 0.75;
mid2X[z] = randC + (mid1X[z] - (dist_2x * ranB));
mid2Y[z] = randD + (mid1Y[z] - (dist_2y * ranB));
endX[z] = randE + _root[bad_guys[lit][char_]]._x;
endY[z] = randF + _root[bad_guys[lit][char_]]._y;
z++;
}
_root.createEmptyMovieClip("lighteningBL", 998);
with (_root.lighteningBL) {
z = 0;
while (z < 3) {
lineStyle(6, 1118702, 90);
moveTo(startX[z], startY[z]);
lineTo(mid1X[z], mid1Y[z]);
lineTo(mid2X[z], mid2Y[z]);
lineTo(endX[z], endY[z]);
z++;
}
}
_root.createEmptyMovieClip("lighteningWH", 999);
with (_root.lighteningWH) {
z = 0;
while (z < 3) {
lineStyle(1, 16777215, 100);
moveTo(startX[z], startY[z]);
lineTo(mid1X[z], mid1Y[z]);
lineTo(mid2X[z], mid2Y[z]);
lineTo(endX[z], endY[z]);
z++;
}
}
bad_guys[lit][hp_] = bad_guys[lit][hp_] - 2.5;
deos[mve_wait] = TIMER + 2;
deos[att_wait] = TIMER + 20;
}
h = h - 2;
}
light_length--;
} else {
lightening_active = false;
_root.lighteningWH.removeMovieClip();
_root.lighteningBL.removeMovieClip();
}
};
project_FB2 = new Array();
deo_fireball2_click = function () {
if (((att_style == "fireball2") and (deos[att_wait] < TIMER)) and (deos[mp] > 15)) {
j = project_FB2.length;
project_FB2[j] = new Array();
deos[att_wait] = TIMER + 10;
deos[mp] = deos[mp] - 15;
f_zdis = Math.sqrt(Math.pow(deo_xdis, 2) + Math.pow(deo_ydis, 2));
f_ratio = 15 / f_zdis;
attachMovie("_fireball", ["FB2" + weap_dep], weap_dep++);
_root["FB2" + weap_dep]._xscale = _root["FB2" + weap_dep]._xscale * 1.3;
_root["FB2" + weap_dep]._yscale = _root["FB2" + weap_dep]._yscale * 1.3;
project_FB2[j][0] = ["FB2" + weap_dep];
project_FB2[j][1] = f_ratio * deo_xdis;
project_FB2[j][2] = f_ratio * deo_ydis;
_root[project_FB2[j][0]]._x = deo._x - project_FB2[j][1];
_root[project_FB2[j][0]]._y = deo._y - project_FB2[j][2];
f_rads = Math.atan2(deo_ydis, deo_xdis);
_root[project_FB2[j][0]]._rotation = f_rads / (Math.PI/180);
}
};
deo_fireball2_loop = function () {
a = 0;
while (a < exp_FB2.length) {
if (_root[exp_FB2[a]]._currentframe > 10) {
_root[exp_FB2[a]].removeMovieClip();
}
a++;
}
j = 0;
while (j < project_FB2.length) {
_root[project_FB2[j][0]]._x = _root[project_FB2[j][0]]._x - project_FB2[j][1];
_root[project_FB2[j][0]]._y = _root[project_FB2[j][0]]._y - project_FB2[j][2];
p_x = _root[project_FB2[j][0]]._x;
p_y = _root[project_FB2[j][0]]._y;
l = 0;
while (l < bad_guys.length) {
fb_hit = distance(bad_guys[l][char_], project_FB2[j][0]);
fb_min = bad_guys[l][rad_] + 12;
if (fb_hit < fb_min) {
explosion_sound.setVolume(Vol);
explosion_sound.start(0, 0);
bad_guys[l][hp_] = bad_guys[l][hp_] - 20;
bad_guys[l][mvwt_] = TIMER + 10;
bad_guys[l][atwt_] = TIMER + 10;
attachMovie("explosion", ["exp" + weap_dep], weap_dep++);
exp_FB[exp_FB.length] = ["exp" + weap_dep];
_root["exp" + weap_dep]._x = _root[project_FB2[j][0]]._x;
_root["exp" + weap_dep]._y = _root[project_FB2[j][0]]._y;
_root["exp" + weap_dep]._rotation = Math.random() * 360;
_root[project_FB2[j][0]].removeMovieClip();
project_FB2.splice(j, 1);
}
l++;
}
if ((((30 > p_x) or (p_x > 580)) or (50 > p_y)) or (380 < p_y)) {
explosion_sound.setVolume(Vol);
explosion_sound.start(0, 0);
attachMovie("explosion", ["exp" + weap_dep], weap_dep++);
exp_FB[exp_FB.length] = ["exp" + weap_dep];
_root["exp" + weap_dep]._x = _root[project_FB2[j][0]]._x;
_root["exp" + weap_dep]._y = _root[project_FB2[j][0]]._y;
_root["exp" + weap_dep]._rotation = Math.random() * 360;
_root[project_FB2[j][0]].removeMovieClip();
project_FB2.splice(j, 1);
}
j++;
}
};
Frame 10 (959 B)
bad_guys = new Array();
char_ = 0;
type_ = 1;
hp_ = 2;
hpx = 3;
spd_ = 4;
rot_ = 5;
near_ = 6;
far_ = 7;
atwt_ = 8;
mvwt_ = 9;
rad_ = 10;
exp_ = 11;
green_blob = new Array("", "green_blob", 15, 15, 2.2, 0, 10, 10, 20, 0, 20, 25);
red_blob = new Array("", "red_blob", 20, 20, 1.5, 0, 100, 180, 20, 0, 20, 30);
blue_blob = new Array("", "blue_blob", 40, 40, 1, 0, 70, 130, 20, 0, 20, 50);
brave_ghost = new Array("", "brave_ghost", 30, 30, 2.5, 0, 10, 10, 20, 0, 20, 35);
scared_ghost = new Array("", "scared_ghost", 30, 30, 0.75, 0, 80, 200, 20, 0, 18, 40);
quick_ghost = new Array("", "quick_ghost", 40, 40, 1, 0, 10, 200, 20, 0, 18, 70);
turret1 = new Array("", "turret1", 30, 30, 0, 0, 15, 0, 0, 0, 20, 60);
blazor = new Array("", "blazor", 40, 40, 1.5, 0, 0, 10, 20, 0, 23, 70);
spaceship = new Array("", "spaceship", 50, 50, 4, 0, 70, 100, 20, 0, 20, 70);
minotaur = new Array("", "minotaur", 80, 80, 1.5, 3, 0, 50, 20, 0, 27, 100);
Frame 11 (7.8 KiB) ● ●
bad_hp_bars = function () {
_root.Bad_bar.removeMovieClip();
z = 0;
while (bad_guys.length > z) {
if (_root[bad_guys[z][char_]].hitTest(_xmouse, _ymouse, true)) {
attachMovie("bar_bad", "Bad_bar", 1000002);
bad_hp_width = (bad_guys[z][hp_] / bad_guys[z][hpx]) * 100;
_root.Bad_bar.hp_bar._xscale = bad_hp_width;
_root.Bad_bar._x = _root[bad_guys[z][char_]]._x - 30;
_root.Bad_bar._y = (_root[bad_guys[z][char_]]._y - bad_guys[z][rad_]) - 15;
return(undefined);
}
z++;
}
};
bad_project = new Array();
bad_projectiles = function () {
z = 0;
while (bad_project.length > z) {
projZ = distance(bad_project[z][0], "deo");
if (projZ < bad_project[z][3]) {
deos[hp] = deos[hp] - bad_project[z][5];
if (deos[mve_wait] > TIMER) {
deos[mve_wait] = deos[mve_wait] + 5;
deos[att_wait] = deos[att_wait] + 5;
} else {
deos[mve_wait] = TIMER + bad_project[z][6];
deos[att_wait] = (TIMER + bad_project[z][6]) + 5;
}
_root[bad_project[z][0]].removeMovieClip();
bad_project.splice(z, 1);
}
BpX = _root[bad_project[z][0]]._x;
BpY = _root[bad_project[z][0]]._y;
if (((((bad_project[z][4] < 0) or (BpX < 20)) or (BpX > 580)) or (BpY < 50)) or (BpY > 380)) {
_root[bad_project[z][0]].removeMovieClip();
bad_project.splice(z, 1);
}
_root[bad_project[z][0]]._x = _root[bad_project[z][0]]._x - bad_project[z][1];
_root[bad_project[z][0]]._y = _root[bad_project[z][0]]._y - bad_project[z][2];
bad_project[z][4]--;
z++;
}
};
enemy_old_hp = new Array();
xp_display = new Array();
bad_death = function () {
if (bad_guys.length == 0) {
if ((EveryBodyIsDead == 1) and (deos[hp] > 0)) {
lvl_up_tune.setVolume(Vol * 0.8);
lvl_up_tune.start(0, 0);
applause_sound.setVolume(Vol * 1.2);
applause_sound.start(0, 0);
}
EveryBodyIsDead++;
if (EveryBodyIsDead > 80) {
current_level++;
cur_lvl = current_level.toString();
remove_all();
if (_root._currentframe == 65) {
gotoAndStop ("End_Game");
} else {
gotoAndStop(["_" + cur_lvl]);
}
}
}
z = 0;
while (z < bad_guys.length) {
if (bad_guys[z][hp_] < 1) {
deos[exp] = deos[exp] + bad_guys[z][exp_];
attachMovie("xp_display", [bad_guys[z][char_] + "xp"], weap_dep++);
_root[bad_guys[z][char_] + "xp"].amount = [bad_guys[z][exp_] + " XP"];
_root[bad_guys[z][char_] + "xp"]._x = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "xp"]._y = _root[bad_guys[z][char_]]._y;
_root[bad_guys[z][char_] + "xp"].xp_text.embedFonts = true;
_root[bad_guys[z][char_] + "xp"].xp_text.selectable = false;
_root[bad_guys[z][char_] + "xp"]._alpha = 150;
xp_display[xp_display.length] = [bad_guys[z][char_] + "xp"];
_root[bad_guys[z][char_]].removeMovieClip();
_root["br_" + bad_guys[z][br_]].removeMovieClip();
_root[bad_guys[z][char_] + "_z"].removeMovieClip();
_root[bad_guys[z][char_] + "z"].removeMovieClip();
bad_guys.splice(z, 1);
enemy_old_hp.splice(z, 1);
}
enemy_old_hp[z] = bad_guys[z][hp_];
z++;
}
z = 0;
while (z < xp_display.length) {
_root[xp_display[z]]._alpha = _root[xp_display[z]]._alpha - 3;
if (_root[xp_display[z]]._alpha < 5) {
_root[xp_display[z]].removeMovieClip();
xp_display.splice(z, 1);
}
z++;
}
};
bad_spawn = function (charecter, posx, posy, rot, baddy) {
attachMovie(charecter, ["bad_" + baddy], bad_dep++);
_root["bad_" + baddy]._rotation = rot;
bad_guys[baddy] = new Array();
z = 0;
while (z < green_blob.length) {
bad_guys[baddy][z] = _root[charecter][z];
z++;
}
bad_guys[baddy][char_] = ["bad_" + baddy];
if (bad_guys[baddy][rot_] == 0) {
_root["bad_" + baddy]._rotation = 0;
_root["bad_" + baddy].lid._rotation = rot;
}
RD = bad_guys[baddy][rad_];
_root["bad_" + baddy]._x = (((posx / 100) * (550 - (RD * 2))) + 25) + RD;
_root["bad_" + baddy]._y = (((posy / 100) * (325 - (RD * 2))) + 50) + RD;
};
bad_rotate = function () {
if ((bad_guys[z][mvwt_] < TIMER) and (bad_guys[z][rot_] != 0)) {
rotate = _root[bad_guys[z][char_]]._rotation;
rotateX = _root[bad_guys[z][char_]]._x - deo._x;
rotateY = _root[bad_guys[z][char_]]._y - deo._y;
rotate_rads = Math.atan2(rotateY, rotateX);
rotate_tar = rotate_rads / (Math.PI/180);
if (Math.abs(rotate - rotate_tar) < bad_guys[z][rot_]) {
_root[bad_guys[z][char_]]._rotation = rotate_tar;
} else {
if (rotate <= 0) {
if ((rotate < rotate_tar) and (rotate_tar < (rotate + 180))) {
_root[bad_guys[z][char_]]._rotation = _root[bad_guys[z][char_]]._rotation + bad_guys[z][rot_];
} else {
_root[bad_guys[z][char_]]._rotation = _root[bad_guys[z][char_]]._rotation - bad_guys[z][rot_];
}
}
if (rotate > 0) {
if (((rotate - 180) < rotate_tar) and (rotate_tar < rotate)) {
_root[bad_guys[z][char_]]._rotation = _root[bad_guys[z][char_]]._rotation - bad_guys[z][rot_];
} else {
_root[bad_guys[z][char_]]._rotation = _root[bad_guys[z][char_]]._rotation + bad_guys[z][rot_];
}
}
}
}
};
bad_limit = function () {
z = 0;
while (z < bad_guys.length) {
if (_root[bad_guys[z][char_]]._x < (25 + bad_guys[z][rad_])) {
_root[bad_guys[z][char_]]._x = 25 + bad_guys[z][rad_];
_root[bad_guys[z][char_] + "_X"] = 0;
_root[bad_guys[z][char_] + "_Y"] = 0;
}
if (_root[bad_guys[z][char_]]._x > (575 - bad_guys[z][rad_])) {
_root[bad_guys[z][char_]]._x = 575 - bad_guys[z][rad_];
_root[bad_guys[z][char_] + "_X"] = 0;
_root[bad_guys[z][char_] + "_Y"] = 0;
}
if ((_root[bad_guys[z][char_]]._y < (50 + bad_guys[z][rad_])) and (_root[bad_guys[z][char_]]._y > -250)) {
_root[bad_guys[z][char_]]._y = 50 + bad_guys[z][rad_];
_root[bad_guys[z][char_] + "_X"] = 0;
_root[bad_guys[z][char_] + "_Y"] = 0;
}
if (_root[bad_guys[z][char_]]._y > (375 - bad_guys[z][rad_])) {
_root[bad_guys[z][char_]]._y = 375 - bad_guys[z][rad_];
_root[bad_guys[z][char_] + "_X"] = 0;
_root[bad_guys[z][char_] + "_Y"] = 0;
}
z++;
}
};
bad_space = function () {
z = 0;
while (z < bad_guys.length) {
t = z + 1;
while (t < bad_guys.length) {
dist_ZT = distance(bad_guys[z][char_], bad_guys[t][char_]);
dist_tar = bad_guys[z][rad_] + bad_guys[t][rad_];
dist_dif = dist_tar / dist_ZT;
if (dist_ZT < dist_tar) {
dist_ZD = distance(bad_guys[z][char_], "deo");
dist_TD = distance(bad_guys[t][char_], "deo");
if ((dist_TD < dist_ZD) or (bad_guys[z][spd_] == 0)) {
dist_TZ = distance(bad_guys[t][char_], bad_guys[z][char_]);
_root[bad_guys[z][char_]]._x = _root[bad_guys[t][char_]]._x - (dist_x * dist_dif);
_root[bad_guys[z][char_]]._y = _root[bad_guys[t][char_]]._y - (dist_y * dist_dif);
} else {
dist_ZT = distance(bad_guys[z][char_], bad_guys[t][char_]);
_root[bad_guys[t][char_]]._x = _root[bad_guys[z][char_]]._x - (dist_x * dist_dif);
_root[bad_guys[t][char_]]._y = _root[bad_guys[z][char_]]._y - (dist_y * dist_dif);
}
}
t++;
}
z++;
}
};
bad_move = function () {
if ((bad_guys[z][mvwt_] < TIMER) and (bad_guys[z][spd_] != 0)) {
_root[bad_guys[z][char_]].play();
move_ZD = distance(bad_guys[z][char_], "deo");
move_dif = bad_guys[z][spd_] / move_ZD;
if (move_ZD > bad_guys[z][far_]) {
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_]]._x - (dist_x * move_dif);
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_]]._y - (dist_y * move_dif);
}
if (move_ZD < bad_guys[z][near_]) {
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_]]._x + ((dist_x * move_dif) * 0.5);
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_]]._y + ((dist_y * move_dif) * 0.5);
}
} else if (_root[bad_guys[z][char_]]._currentframe < 24) {
_root[bad_guys[z][char_]].stop();
}
};
Frame 12 (17.18 KiB) ● ● ●
bad_guy_attack = function () {
z = 0;
while (z < bad_guys.length) {
close_dmg_func();
_root[bad_guys[z][type_] + "_func"]();
z++;
}
};
close_dmg_func = function () {
badZ = distance(bad_guys[z][char_], "deo");
DB_dis = bad_guys[z][rad_] + 16;
if ((badZ < DB_dis) and (deos[tch_dmg] < TIMER)) {
deos[tch_dmg] = TIMER + 21;
deos[hp] = deos[hp] - 5;
}
};
minotaur_func = function () {
bad_move();
bad_rotate();
if (TIMER < 3) {
_root[bad_guys[z][char_] + "SPD"] = bad_guys[z][spd_];
_root[bad_guys[z][char_] + "ROT"] = bad_guys[z][rot_];
_root[bad_guys[z][char_] + "HIT"] = 0;
}
badZ = distance(bad_guys[z][char_], "deo");
Cur_Frame = _root[bad_guys[z][char_] + "z"]._currentframe;
if ((bad_guys[z][atwt_] < TIMER) and (badZ < 100)) {
_root[bad_guys[z][char_] + "SPD"] = bad_guys[z][spd_];
bad_guys[z][spd_] = 0;
bad_guys[z][rot_] = 0;
attachMovie("minotaur_hammer", [bad_guys[z][char_] + "z"], weap_dep++);
bad_project[bad_project.length] = new Array();
bad_project[bad_project.length][0] = [bad_guys[z][char_] + "z"];
}
Cur_Frame = _root[bad_guys[z][char_] + "z"]._currentframe;
if (Cur_Frame > 0) {
bad_guys[z][atwt_] = TIMER + 60;
bad_guys[z][mvwt_] = TIMER + 25;
if (Cur_Frame >= 8) {
if (Cur_Frame == 8) {
_root[bad_guys[z][char_] + "X"] = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "Y"] = _root[bad_guys[z][char_]]._y;
tur_rot = _root[bad_guys[z][char_]]._rotation * (Math.PI/180);
cnX = Math.cos(tur_rot) * 50;
snY = Math.sin(tur_rot) * 50;
bad_project[bad_project.length] = new Array();
attachMovie("_stomp", [bad_guys[z][char_] + "_z"], weap_dep++);
_root[bad_guys[z][char_] + "_z"]._x = _root[bad_guys[z][char_]]._x - cnX;
_root[bad_guys[z][char_] + "_z"]._y = _root[bad_guys[z][char_]]._y - snY;
}
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_] + "X"];
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_] + "Y"];
_root[bad_guys[z][char_] + "_z"]._width = _root[bad_guys[z][char_] + "_z"]._width + 13;
_root[bad_guys[z][char_] + "_z"]._height = _root[bad_guys[z][char_] + "_z"]._height + 13;
badzt = distance([bad_guys[z][char_] + "_z"], "deo");
if ((badzt < (_root[bad_guys[z][char_] + "_z"]._width / 2)) and (_root[bad_guys[z][char_] + "HIT"] < 1)) {
deos[hp] = deos[hp] - 10;
deos[att_wait] = TIMER + 20;
deos[mve_wait] = TIMER + 25;
_root[bad_guys[z][char_] + "HIT"] = 4;
_root[bad_guys[z][char_] + "DIF"] = 8 / badZ;
}
}
_root[bad_guys[z][char_] + "z"]._x = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "z"]._y = _root[bad_guys[z][char_]]._y;
_root[bad_guys[z][char_] + "z"]._rotation = _root[bad_guys[z][char_]]._rotation;
}
if (_root[bad_guys[z][char_] + "HIT"] > 0) {
badz = distance([bad_guys[z][char_]], "deo");
_root[bad_guys[z][char_] + "HIT"]--;
deo._x = deo._x + (-(dist_x * _root[bad_guys[z][char_] + "DIF"]));
deo._y = deo._y + (-(dist_y * _root[bad_guys[z][char_] + "DIF"]));
}
if (Cur_Frame == _root[bad_guys[z][char_] + "z"]._totalframes) {
_root[bad_guys[z][char_] + "HIT"] = 0;
_root[bad_guys[z][char_] + "z"].removeMovieClip();
_root[bad_guys[z][char_] + "_z"].removeMovieClip();
bad_guys[z][spd_] = _root[bad_guys[z][char_] + "SPD"];
bad_guys[z][rot_] = _root[bad_guys[z][char_] + "ROT"];
}
};
green_blob_func = function () {
bad_move();
};
red_blob_func = function () {
bad_move();
badZ = distance(bad_guys[z][char_], "deo");
if ((badZ < 250) and (bad_guys[z][atwt_] < TIMER)) {
l = bad_project.length;
bad_project[l] = new Array();
bad_guys[z][atwt_] = (TIMER + 50) + (Math.random() * 40);
bad_ratio = 3 / badZ;
attachMovie("red_blob_att", ["Bad_P" + weap_dep], weap_dep++);
_root["Bad_P" + weap_dep]._x = _root[bad_guys[z][char_]]._x - (dist_x * (15 / badZ));
_root["Bad_P" + weap_dep]._y = _root[bad_guys[z][char_]]._y - (dist_y * (15 / badZ));
bad_project[l][0] = ["Bad_P" + weap_dep];
bad_project[l][1] = dist_x * bad_ratio;
bad_project[l][2] = dist_y * bad_ratio;
bad_project[l][3] = 20;
bad_project[l][4] = 150;
bad_project[l][5] = 10;
bad_project[l][6] = 0;
}
};
blue_blob_func = function () {
bad_move();
badZ = distance(bad_guys[z][char_], "deo");
if ((badZ < 250) and (bad_guys[z][atwt_] < TIMER)) {
l = bad_project.length;
bad_project[l] = new Array();
bad_guys[z][atwt_] = (TIMER + 80) + (Math.random() * 40);
bad_ratio = 6 / badZ;
attachMovie("blue_blob_att", ["Bad_P" + weap_dep], weap_dep++);
_root["Bad_P" + weap_dep]._x = _root[bad_guys[z][char_]]._x - (dist_x * (15 / badZ));
_root["Bad_P" + weap_dep]._y = _root[bad_guys[z][char_]]._y - (dist_y * (15 / badZ));
bad_project[l][0] = ["Bad_P" + weap_dep];
bad_project[l][1] = dist_x * bad_ratio;
bad_project[l][2] = dist_y * bad_ratio;
bad_project[l][3] = 25;
bad_project[l][4] = 150;
bad_project[l][5] = 5;
bad_project[l][6] = 50;
}
};
quick_ghost_func = function () {
bad_move();
badZ = distance(bad_guys[z][char_], "deo");
if (_root[bad_guys[z][char_] + "t"] > 0) {
_root[bad_guys[z][char_] + "t"]--;
}
if ((_root[bad_guys[z][char_] + "t"] < 2) and (_root[bad_guys[z][char_]]._currentframe < 22)) {
_root[bad_guys[z][char_] + "t"] = "nan";
ghost_sound.setVolume(Vol);
ghost_sound.start(1, 0);
_root[bad_guys[z][char_]].gotoAndPlay(26);
bad_guys[z][atwt_] = TIMER + 40;
bad_guys[z][mvwt_] = TIMER + 20;
}
if (_root[bad_guys[z][char_]]._currentframe == 35) {
_root[bad_guys[z][char_]]._x = z * 10;
_root[bad_guys[z][char_]]._y = -300;
}
if (_root[bad_guys[z][char_]]._currentframe == 39) {
tele_X = (Math.random() * 400) - 200;
tele_Y = (Math.random() * 400) - 200;
if (tele_X < 0) {
tele_X = tele_X - 60;
} else {
tele_X = tele_X + 60;
}
if (tele_Y < 0) {
tele_Y = tele_Y - 60;
} else {
tele_Y = tele_Y + 60;
}
_root[bad_guys[z][char_]]._x = deo._x + tele_X;
_root[bad_guys[z][char_]]._y = deo._y + tele_Y;
}
if (bad_guys[z][atwt_] < TIMER) {
_root[bad_guys[z][char_] + "t"] = 30 + (Math.random() * 30);
l = bad_project.length;
bad_project[l] = new Array();
bad_guys[z][atwt_] = TIMER + 120;
bad_ratio = 6 / badZ;
attachMovie("quick_ghost_att", ["Bad_P" + weap_dep], weap_dep++);
_root["Bad_P" + weap_dep]._x = _root[bad_guys[z][char_]]._x - (dist_x * (15 / badZ));
_root["Bad_P" + weap_dep]._y = _root[bad_guys[z][char_]]._y - (dist_y * (15 / badZ));
object_rads = Math.atan2(dist_y, dist_x);
object_d = object_rads / (Math.PI/180);
_root["Bad_P" + weap_dep]._rotation = object_d;
bad_project[l][0] = ["Bad_P" + weap_dep];
bad_project[l][1] = dist_x * bad_ratio;
bad_project[l][2] = dist_y * bad_ratio;
bad_project[l][3] = 20;
bad_project[l][4] = 90;
bad_project[l][5] = 10;
bad_project[l][6] = 0;
}
};
brave_ghost_func = function () {
bad_move();
badZ = distance(bad_guys[z][char_], "deo");
if ((badZ > 60) and (bad_guys[z][atwt_] < TIMER)) {
bad_guys[z][atwt_] = (TIMER + 60) + (Math.random() * 30);
bad_guys[z][mvwt_] = TIMER + 27;
ghost_sound.setVolume(Vol);
ghost_sound.start(1, 0);
_root[bad_guys[z][char_]].gotoAndPlay(26);
}
if (_root[bad_guys[z][char_]]._currentframe == 35) {
_root[bad_guys[z][char_]]._x = z * 10;
_root[bad_guys[z][char_]]._y = -300;
}
if (_root[bad_guys[z][char_]]._currentframe == 39) {
teleX = (Math.random() * 40) - 20;
teleY = (Math.random() * 40) - 20;
if (teleX >= 0) {
_root[bad_guys[z][char_]]._x = (deo._x + teleX) + 30;
} else {
_root[bad_guys[z][char_]]._x = (deo._x + teleX) - 30;
}
if (teleY >= 0) {
_root[bad_guys[z][char_]]._y = (deo._y + teleY) + 30;
} else {
_root[bad_guys[z][char_]]._y = (deo._y + teleY) - 30;
}
}
};
scared_ghost_hp = new Array();
scared_ghost_func = function () {
bad_move();
if ((bad_guys[z][hp_] < scared_ghost_hp[z]) and (_root[bad_guys[z][char_]]._currentframe < 22)) {
ghost_sound.setVolume(Vol);
ghost_sound.start(1, 0);
_root[bad_guys[z][char_]].gotoAndPlay(26);
bad_guys[z][atwt_] = TIMER + 29;
bad_guys[z][mvwt_] = TIMER + 26;
}
if (_root[bad_guys[z][char_]]._currentframe == 36) {
_root[bad_guys[z][char_]]._x = z * 50;
_root[bad_guys[z][char_]]._y = -300;
}
if (_root[bad_guys[z][char_]]._currentframe == 39) {
PoSX = _root[bad_guys[z][char_]]._x;
PoSY = _root[bad_guys[z][char_]]._y;
if ((deo._x <= 300) and (deo._y <= 210)) {
tele_zone = Math.floor(Math.random() * 2);
if (tele_zone == 0) {
_root[bad_guys[z][char_]]._x = 300 + (Math.random() * 280);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 335);
} else {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 560);
_root[bad_guys[z][char_]]._y = 210 + (Math.random() * 170);
}
}
if ((deo._x <= 300) and (deo._y > 210)) {
tele_zone = Math.floor(Math.random() * 2);
if (tele_zone == 0) {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 560);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 165);
} else {
_root[bad_guys[z][char_]]._x = 300 + (Math.random() * 280);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 335);
}
}
if ((deo._x > 300) and (deo._y <= 210)) {
tele_zone = Math.floor(Math.random() * 2);
if (tele_zone == 0) {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 280);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 335);
} else {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 560);
_root[bad_guys[z][char_]]._y = 210 + (Math.random() * 170);
}
}
if ((deo._x > 300) and (deo._y > 210)) {
tele_zone = Math.floor(Math.random() * 2);
if (tele_zone == 0) {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 280);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 335);
} else {
_root[bad_guys[z][char_]]._x = 20 + (Math.random() * 560);
_root[bad_guys[z][char_]]._y = 45 + (Math.random() * 165);
}
}
}
badZ = distance(bad_guys[z][char_], "deo");
if ((badZ < 300) and (bad_guys[z][atwt_] < TIMER)) {
l = bad_project.length;
bad_project[l] = new Array();
bad_guys[z][atwt_] = (TIMER + 40) + (Math.random() * 40);
bad_ratio = 7 / badZ;
attachMovie("scared_ghost_att", ["Bad_P" + weap_dep], weap_dep++);
_root["Bad_P" + weap_dep]._x = _root[bad_guys[z][char_]]._x - (dist_x * (15 / badZ));
_root["Bad_P" + weap_dep]._y = _root[bad_guys[z][char_]]._y - (dist_y * (15 / badZ));
object_rads = Math.atan2(dist_y, dist_x);
object_d = object_rads / (Math.PI/180);
_root["Bad_P" + weap_dep]._rotation = object_d;
bad_project[l][0] = ["Bad_P" + weap_dep];
bad_project[l][1] = dist_x * bad_ratio;
bad_project[l][2] = dist_y * bad_ratio;
bad_project[l][3] = 20;
bad_project[l][4] = 90;
bad_project[l][5] = 10;
bad_project[l][6] = 0;
}
scared_ghost_hp[z] = bad_guys[z][hp_];
};
blazor_func = function () {
bad_move();
if (TIMER < 2) {
_root[bad_guys[z][char_] + "_R"] = 3;
_root[bad_guys[z][char_] + "_X"] = 0;
_root[bad_guys[z][char_] + "_Y"] = 0;
_root[bad_guys[z][char_] + "_Q"] = 0;
_root[bad_guys[z][char_] + "_W"] = "Move";
}
badZ = distance(bad_guys[z][char_], "deo");
if (_root[bad_guys[z][char_] + "_R"] < 5) {
bad_ratio = 20 / badZ;
_root[bad_guys[z][char_] + "_X"] = dist_x * bad_ratio;
_root[bad_guys[z][char_] + "_Y"] = dist_y * bad_ratio;
}
if ((badZ < 200) and (bad_guys[z][atwt_] < TIMER)) {
_root[bad_guys[z][char_] + "_W"] = "Charge";
}
if ((_root[bad_guys[z][char_] + "_R"] < 17) and (_root[bad_guys[z][char_] + "_W"] == "Charge")) {
_root[bad_guys[z][char_] + "_R"] = _root[bad_guys[z][char_] + "_R"] + 0.5;
bad_guys[z][mvwt_] = TIMER + 10;
}
if ((_root[bad_guys[z][char_] + "_R"] > 10) and (_root[bad_guys[z][char_] + "_Q"] < 1)) {
_root[bad_guys[z][char_] + "_Q"] = 12;
}
if (_root[bad_guys[z][char_] + "_Q"] > 0) {
bad_guys[z][atwt_] = (TIMER + 40) + (Math.random() * 60);
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_]]._x - _root[bad_guys[z][char_] + "_X"];
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_]]._y - _root[bad_guys[z][char_] + "_Y"];
_root[bad_guys[z][char_] + "_Q"]--;
if (_root[bad_guys[z][char_] + "_Q"] < 1) {
_root[bad_guys[z][char_] + "_W"] = "Move";
_root[bad_guys[z][char_] + "_R"] = 3;
}
}
if (badZ < 23) {
bad_guys[z][tchwt_] = TIMER + 10;
deos[hp] = deos[hp] - 7;
}
_root[bad_guys[z][char_]]._rotation = _root[bad_guys[z][char_]]._rotation + _root[bad_guys[z][char_] + "_R"];
};
turret1_func = function () {
if (TIMER < 2) {
_root[bad_guys[z][char_] + "tur_X"] = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "tur_Y"] = _root[bad_guys[z][char_]]._y;
}
bad_guys[z][mvwt] = 1;
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_] + "tur_X"];
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_] + "tur_Y"];
if (bad_guys[z][mvwt_] < TIMER) {
rotate = _root[bad_guys[z][char_]].lid._rotation;
rotateX = _root[bad_guys[z][char_]]._x - deo._x;
rotateY = _root[bad_guys[z][char_]]._y - deo._y;
rotate_rads = Math.atan2(rotateY, rotateX);
rotate_tar = rotate_rads / (Math.PI/180);
if ((Math.abs(rotate - rotate_tar) < 9) and (bad_guys[z][atwt_] < TIMER)) {
tur_rot = rotate_tar * (Math.PI/180);
cnX = Math.cos(tur_rot) * 9;
snY = Math.sin(tur_rot) * 9;
l = bad_project.length;
bad_guys[z][atwt_] = TIMER + 30;
bad_project[l] = new Array();
attachMovie("turret1_att", ["Bad_P" + weap_dep], weap_dep++);
_root["Bad_P" + weap_dep]._x = _root[bad_guys[z][char_]]._x - (cnX * 5);
_root["Bad_P" + weap_dep]._y = _root[bad_guys[z][char_]]._y - (snY * 5);
object_rads = Math.atan2(dist_y, dist_x);
object_d = object_rads / (Math.PI/180);
_root["Bad_P" + weap_dep]._rotation = object_d;
bad_project[l][0] = ["Bad_P" + weap_dep];
bad_project[l][1] = cnX;
bad_project[l][2] = snY;
bad_project[l][3] = 20;
bad_project[l][4] = 90;
bad_project[l][5] = 10;
bad_project[l][6] = 0;
}
if (Math.abs(rotate - rotate_tar) < 0.7) {
_root[bad_guys[z][char_]].lid._rotation = rotate_tar;
} else {
if (rotate <= 0) {
if ((rotate < rotate_tar) and (rotate_tar < (rotate + 180))) {
_root[bad_guys[z][char_]].lid._rotation = _root[bad_guys[z][char_]].lid._rotation + 0.7;
} else {
_root[bad_guys[z][char_]].lid._rotation = _root[bad_guys[z][char_]].lid._rotation - 0.7;
}
}
if (rotate > 0) {
if (((rotate - 180) < rotate_tar) and (rotate_tar < rotate)) {
_root[bad_guys[z][char_]].lid._rotation = _root[bad_guys[z][char_]].lid._rotation - 0.7;
} else {
_root[bad_guys[z][char_]].lid._rotation = _root[bad_guys[z][char_]].lid._rotation + 0.7;
}
}
}
}
};
spaceship_func = function () {
bad_move();
badZ = distance(bad_guys[z][char_], "deo");
if ((badZ < 130) and (bad_guys[z][atwt_] < TIMER)) {
bad_guys[z][atwt_] = TIMER + 100;
bad_guys[z][spd_] = 0;
bad_guys[z][near_] = 0;
_root[bad_guys[z][char_] + "_X"] = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "_Y"] = _root[bad_guys[z][char_]]._y;
attachMovie("tractor_beam", [bad_guys[z][char_] + "_z"], 40 - (z * 3));
bad_project[bad_project.length][0] = ["tractor" + z];
_root[bad_guys[z][char_] + "_z"]._x = _root[bad_guys[z][char_]]._x;
_root[bad_guys[z][char_] + "_z"]._y = _root[bad_guys[z][char_]]._y;
_root[bad_guys[z][char_] + "_R"] = 5;
}
if (_root[bad_guys[z][char_] + "_z"]._width > 0) {
bad_guys[z][atwt_] = TIMER + 100;
_root[bad_guys[z][char_]]._x = _root[bad_guys[z][char_] + "_X"];
_root[bad_guys[z][char_]]._y = _root[bad_guys[z][char_] + "_Y"];
_root[bad_guys[z][char_] + "_z"]._width = _root[bad_guys[z][char_] + "_z"]._width + _root[bad_guys[z][char_] + "_R"];
_root[bad_guys[z][char_] + "_z"]._height = _root[bad_guys[z][char_] + "_z"]._height + _root[bad_guys[z][char_] + "_R"];
if (_root[bad_guys[z][char_] + "_R"] > 0) {
if ((_root[bad_guys[z][char_] + "_z"]._width / 2) > badZ) {
deos[att_wait] = TIMER + 60;
deos[mve_wait] = TIMER + 60;
_root[bad_guys[z][char_] + "_S"] = "true";
}
if (_root[bad_guys[z][char_] + "_z"]._width > 240) {
_root[bad_guys[z][char_] + "_R"] = -5;
}
}
if ((_root[bad_guys[z][char_] + "_R"] < 0) and (_root[bad_guys[z][char_] + "_S"] == "true")) {
deo._x = deo._x + (dist_x * (2.5 / badZ));
deo._y = deo._y + (dist_y * (2.5 / badZ));
if (badZ < 20) {
_root[bad_guys[z][char_] + "_S"] = "false";
deos[hp] = deos[hp] - 20;
_root[bad_guys[z][char_] + "_M"] = 5;
_root[bad_guys[z][char_] + "_Mx"] = dist_x * (20 / badZ);
_root[bad_guys[z][char_] + "_My"] = dist_y * (20 / badZ);
}
}
if (_root[bad_guys[z][char_] + "_z"]._width < 10) {
_root[bad_guys[z][char_] + "_z"].removeMovieClip();
_root[bad_guys[z][char_] + "_S"] = "false";
bad_guys[z][spd_] = 3;
bad_guys[z][near_] = 70;
}
}
if (_root[bad_guys[z][char_] + "_M"] > 0) {
_root[bad_guys[z][char_] + "_M"]--;
deo._x = deo._x - _root[bad_guys[z][char_] + "_Mx"];
deo._y = deo._y - _root[bad_guys[z][char_] + "_My"];
}
};
Frame 14 (2.1 KiB) ●
game_help_menu = function () {
_root.InGameMenu.attachMovie("ingame_help", "ingame_help_", 1000009);
_root.InGameMenu.ingame_help_.stop();
_root.InGameMenu.ingame_help_.NextPage1.onRelease = function () {
_root.InGameMenu.ingame_help_.gotoAndStop(2);
};
if (((deo_skills_lvl[0] + deo_skills_lvl[0]) + deo_skills_lvl[0]) == 0) {
_root.InGameMenu.explanation = no_class;
} else {
_root.InGameMenu.explanation = resume_info;
}
};
game_quit_menu = function () {
_root.InGameMenu.attachMovie("ingame_quit", "ingame_quit_", 1000009);
_root.InGameMenu.ingame_quit_.yes.onRelease = function () {
remove_all();
deos = new Array(100, 100, 50, 50, 2.5, 5, 0, 0, 0, 0.07, 0);
deo_spells = new Array();
deo_skills_lvl = new Array(0, 0, 0);
att_style = "";
att_styleQ = "";
att_styleE = "";
LXwar = 1;
LXwiz = 1;
LXnin = 1;
gotoAndPlay ("title");
_root.crosshair.gotoAndStop(1);
};
_root.InGameMenu.ingame_quit_.no.onRelease = function () {
game_menu_main();
};
};
pause_game = function () {
if (Key.isDown(32)) {
if (play_status == "play") {
play_status = "stop";
_root.blizz.stop();
_root.deo.sword.stop();
_root.slicer_.stop();
_root.crosshair.gotoAndStop(2);
z = 0;
while (bad_guys.length > z) {
_root[bad_guys[z][char_]].stop();
_root[bad_guys[z][char_] + "z"].stop();
_root[bad_guys[z][char_] + "_z"].stop();
z++;
}
z = 0;
while (exp_FB.length > z) {
_root[exp_FB[z]].stop();
z++;
}
attachMovie("inGameMenu", "InGameMenu", 1000002);
game_index();
game_menu_main();
} else {
play_status = "play";
removeMovieClip("level_s");
_root.blizz.play();
_root.deo.sword.play();
_root.slicer_.play();
_root.crosshair.gotoAndStop(1);
z = 0;
while (bad_guys.length > z) {
_root[bad_guys[z][char_]].play();
_root[bad_guys[z][char_] + "z"].play();
_root[bad_guys[z][char_] + "_z"].play();
z++;
}
z = 0;
while (exp_FB.length > z) {
_root[exp_FB[z]].play();
z++;
}
_root.InGameMenu.removeMovieClip();
}
}
};
Frame 15 (5.03 KiB) ● ●
game_index = function () {
_root.InGameMenu.main_butt.onRelease = game_menu_main;
_root.InGameMenu.lvl_up_butt.onRelease = game_level_menu;
_root.InGameMenu.help_butt.onRelease = game_help_menu;
_root.InGameMenu.quit_butt.onRelease = game_quit_menu;
};
game_menu_main = function () {
_root.InGameMenu.explanation = resume_info;
m_dep = 1000010 /* 0x0F424A */;
game_xPos = 30;
game_yPos = 80;
game_Row = 0;
_root.InGameMenu.createEmptyMovieClip("IG_M", 1000009);
z = 0;
while (z < deo_spells.length) {
_root.InGameMenu.IG_M.attachMovie([deo_spells[z]], [deo_spells[z]], m_dep++);
_root.InGameMenu.IG_M[deo_spells[z]]._x = game_xPos;
_root.InGameMenu.IG_M[deo_spells[z]]._y = game_yPos;
_root.InGameMenu.IG_M[deo_spells[z]]._xscale = 150;
_root.InGameMenu.IG_M[deo_spells[z]]._yscale = 150;
game_xPos = game_xPos + 90;
game_Row++;
if (game_Row == 5) {
game_Row = 0;
game_xPos = 30;
game_yPos = game_yPos + 60;
}
z++;
}
game_menu_rollover();
game_menu_buttons();
_root.InGameMenu.lvl_display.selectable = false;
CurLVL = ["Level " + (_root._currentframe - 40)];
_root.InGameMenu.InGame_lvl = CurLVL;
_root.InGameMenu.IG_M.attachMovie("options", "OP", m_dep++);
_root.InGameMenu.IG_M.OP._x = 40;
_root.InGameMenu.IG_M.OP._y = 260;
_root.InGameMenu.IG_M.OP.volume_dis.selectable = false;
_root.InGameMenu.IG_M.OP.volume_val = Vol;
_root.InGameMenu.IG_M.OP.volume_minus.onRelease = function () {
if (Vol > 5) {
Vol = Vol - 10;
_root.InGameMenu.IG_M.OP.volume_val = Vol;
}
};
_root.InGameMenu.IG_M.OP.volume_plus.onRelease = function () {
if (Vol < 95) {
Vol = Vol + 10;
_root.InGameMenu.IG_M.OP.volume_val = Vol;
}
};
_root.InGameMenu.IG_M.OP.qual_low.onRelease = function () {
_quality = "LOW";
};
_root.InGameMenu.IG_M.OP.qual_mid.onRelease = function () {
_quality = "MEDIUM";
};
_root.InGameMenu.IG_M.OP.qual_high.onRelease = function () {
_quality = "HIGH";
};
_root.InGameMenu.IG_M.OP.ArmorGames.onRollOver = function () {
_root.InGameMenu.explanation = ArmorGamesDesc;
};
_root.InGameMenu.IG_M.OP.ArmorGames.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
};
game_menu_buttons = function () {
_root.InGameMenu.IG_M.fireball.onRelease = function () {
spell_select("fireball");
};
_root.InGameMenu.IG_M.fireball.onRollOver = function () {
_root.InGameMenu.explanation = fireball_desc;
};
_root.InGameMenu.IG_M.fireball.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.lightening.onRelease = function () {
spell_select("lightening");
};
_root.InGameMenu.IG_M.lightening.onRollOver = function () {
_root.InGameMenu.explanation = lightening_desc;
};
_root.InGameMenu.IG_M.lightening.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.stomp.onRelease = function () {
spell_select("stomp");
};
_root.InGameMenu.IG_M.stomp.onRollOver = function () {
_root.InGameMenu.explanation = stomp_desc;
};
_root.InGameMenu.IG_M.stomp.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.blitz.onRelease = function () {
spell_select("blitz");
};
_root.InGameMenu.IG_M.blitz.onRollOver = function () {
_root.InGameMenu.explanation = blitz_desc;
};
_root.InGameMenu.IG_M.blitz.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.ninja_star.onRelease = function () {
spell_select("ninja_star");
};
_root.InGameMenu.IG_M.ninja_star.onRollOver = function () {
_root.InGameMenu.explanation = ninja_star_desc;
};
_root.InGameMenu.IG_M.ninja_star.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.teleport.onRelease = function () {
spell_select("teleport");
};
_root.InGameMenu.IG_M.teleport.onRollOver = function () {
_root.InGameMenu.explanation = teleport_desc;
};
_root.InGameMenu.IG_M.teleport.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.fireball2.onRelease = function () {
spell_select("fireball2");
};
_root.InGameMenu.IG_M.fireball2.onRollOver = function () {
_root.InGameMenu.explanation = fireball2_desc;
};
_root.InGameMenu.IG_M.fireball2.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.slicer.onRelease = function () {
spell_select("slicer");
};
_root.InGameMenu.IG_M.slicer.onRollOver = function () {
_root.InGameMenu.explanation = slicer_desc;
};
_root.InGameMenu.IG_M.slicer.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
_root.InGameMenu.IG_M.blizzard.onRelease = function () {
spell_select("blizzard");
};
_root.InGameMenu.IG_M.blizzard.onRollOver = function () {
_root.InGameMenu.explanation = blizzard_desc;
};
_root.InGameMenu.IG_M.blizzard.onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
};
};
Frame 16 (4.9 KiB) ●
game_level_menu = function () {
if (((deo_skills_lvl[0] + deo_skills_lvl[0]) + deo_skills_lvl[0]) == 0) {
_root.InGameMenu.explanation = no_class;
} else {
_root.InGameMenu.explanation = resume_info;
}
_root.InGameMenu.deo_xp = deos[exp];
_root.InGameMenu.attachMovie("G_LU", "Game_LU", 1000009);
m_dep = 1000010 /* 0x0F424A */;
cross_x = 30;
cross_y = 80;
z = 0;
while (z < deo_skills_lvl[0]) {
_root.InGameMenu.Game_LU.attachMovie("cross", m_dep, m_dep++);
_root.InGameMenu.Game_LU[m_dep]._x = cross_x;
_root.InGameMenu.Game_LU[m_dep]._y = cross_y;
cross_x = cross_x + 60;
z++;
}
cross_x = 30;
cross_y = 160;
z = 0;
while (z < deo_skills_lvl[1]) {
_root.InGameMenu.Game_LU.attachMovie("cross", m_dep, m_dep++);
_root.InGameMenu.Game_LU[m_dep]._x = cross_x;
_root.InGameMenu.Game_LU[m_dep]._y = cross_y;
cross_x = cross_x + 60;
z++;
}
cross_x = 30;
cross_y = 240;
z = 0;
while (z < deo_skills_lvl[2]) {
_root.InGameMenu.Game_LU.attachMovie("cross", m_dep, m_dep++);
_root.InGameMenu.Game_LU[m_dep]._x = cross_x;
_root.InGameMenu.Game_LU[m_dep]._y = cross_y;
cross_x = cross_x + 60;
z++;
}
lvl_buttons();
game_menu_buttons();
};
LXp0 = 100;
LXp1 = 200;
LXp2 = 400;
LXp3 = 600;
LXp4 = 800;
LXp5 = 1000;
LXwar = 1;
LXnin = 1;
LXwiz = 1;
WAR_ = 0;
NIN_ = 1;
WIZ_ = 2;
lvl_buttons = function () {
game_lvl_up_stat("str1_L", str_up_desc, LXp0 * LXwar, WAR_, str, xXxXx, 5, 0);
game_lvl_up_spel("stomp_L", stomp_desc, LXp1 * LXwar, WAR_, "stomp", 1);
game_lvl_up_stat("hp1_L", hp_up_desc, LXp2 * LXwar, WAR_, hp_max, hp, 50, 2);
game_lvl_up_stat("str2_L", str_up_desc, LXp3 * LXwar, WAR_, str, xXxXx, 5, 3);
game_lvl_up_spel("blitz_L", blitz_desc, LXp4 * LXwar, WAR_, "blitz", 4);
game_lvl_up_stat("hp2_L", hp_up_desc, LXp5 * LXwar, WAR_, hp_max, hp, 50, 5);
game_lvl_up_stat("spd1_L", spd_up_desc, LXp0 * LXnin, NIN_, spd, xXxXx, 0.75, 0);
game_lvl_up_spel("ninja_star_L", ninja_star_desc, LXp1 * LXnin, NIN_, "ninja_star", 1);
game_lvl_up_spel("teleport_L", teleport_desc, LXp2 * LXnin, NIN_, "teleport", 2);
game_lvl_up_stat("spd2_L", spd_up_desc, LXp3 * LXnin, NIN_, spd, xXxXx, 0.75, 3);
game_lvl_up_stat("hp3_L", hp_up_desc, LXp4 * LXnin, NIN_, hp_max, hp, 50, 4);
game_lvl_up_spel("slicer_L", slicer_desc, LXp5 * LXnin, NIN_, "slicer", 5);
game_lvl_up_spel("fireball_L", fireball_desc, LXp0 * LXwiz, WIZ_, "fireball", 0);
game_lvl_up_stat("mp1_L", mp_up_desc, LXp1 * LXwiz, WIZ_, mp_recover, xXx, 0.02, 1);
game_lvl_up_spel("lightening_L", lightening_desc, LXp2 * LXwiz, WIZ_, "lightening", 2);
game_lvl_up_stat("mp2_L", mp_up_desc, LXp3 * LXwiz, WIZ_, mp_recover, xXx, 0.02, 3);
game_lvl_up_spel("blizzard_L", blizzard_desc, LXp4 * LXwiz, WIZ_, "blizzard", 4);
game_lvl_up_spel("fireball2_L", fireball2_desc, LXp5 * LXwiz, WIZ_, "fireball2", 5);
};
game_lvl_up_spel = function (button_N, Up_desc, lvl_XP, TT, spell_ty, DSKL) {
_root.InGameMenu.Game_LU[button_N].onRollOver = function () {
if (deo_skills_lvl[TT] <= DSKL) {
_root.InGameMenu.explanation = Up_desc;
_root.InGameMenu.Game_LU.xp_cost = lvl_XP;
}
};
_root.InGameMenu.Game_LU[button_N].onRelease = function () {
if ((deos[exp] >= lvl_XP) and (deo_skills_lvl[TT] == DSKL)) {
if (lvl_XP == LXp0) {
if (TT == WAR_) {
LXnin = 2;
LXwiz = 2;
}
if (TT == NIN_) {
LXwar = 2;
LXwiz = 2;
}
if (TT == WIZ_) {
LXwar = 2;
LXnin = 2;
}
}
deos[exp] = deos[exp] - lvl_XP;
deo_skills_lvl[TT]++;
deo_spells[deo_spells.length] = spell_ty;
game_level_menu();
_root.InGameMenu.explanation = main_spell;
stat_display();
game_menu_main();
}
};
_root.InGameMenu.Game_LU[button_N].onRollOut = function () {
if (_root.InGameMenu.explanation != main_spell) {
_root.InGameMenu.explanation = resume_info;
_root.InGameMenu.Game_LU.xp_cost = "";
}
};
};
game_lvl_up_stat = function (button_N, Up_desc, lvl_XP, TT, UP_T, UP_TT, UP_Q, DSKL) {
_root.InGameMenu.Game_LU[button_N].onRollOver = function () {
if (deo_skills_lvl[TT] <= DSKL) {
_root.InGameMenu.explanation = Up_desc;
_root.InGameMenu.Game_LU.xp_cost = lvl_XP;
}
};
_root.InGameMenu.Game_LU[button_N].onRelease = function () {
if ((deos[exp] >= lvl_XP) and (deo_skills_lvl[TT] == DSKL)) {
stat_display();
deos[exp] = deos[exp] - lvl_XP;
deo_skills_lvl[TT]++;
deos[UP_T] = deos[UP_T] + UP_Q;
deos[UP_TT] = deos[UP_TT] + UP_Q;
if (lvl_XP == LXp0) {
if (TT == WAR_) {
LXnin = 2;
LXwiz = 2;
}
if (TT == NIN_) {
LXwar = 2;
LXwiz = 2;
}
if (TT == WIZ_) {
LXwar = 2;
LXnin = 2;
}
}
game_level_menu();
stat_display();
}
};
_root.InGameMenu.Game_LU[button_N].onRollOut = function () {
_root.InGameMenu.explanation = resume_info;
_root.InGameMenu.Game_LU.xp_cost = "";
};
};
Frame 18 (2.85 KiB) ●
tip = new Array();
tip[1] = "TIP: If this is your first time playing i suggest you hit SPACEBAR and find the help button";
tip[2] = "TIP: Check out the possible Level ups to see what type of class you want to be";
tip[3] = "TIP: Once you choose a class the others will cost twice as much XP";
tip[4] = "TIP: Hold Shift and Click your mouse to use spells";
tip[5] = "TIP: Your MP will regenerate slowly overtime";
tip[6] = "TIP: Test your spell slots by pressing Q and E and watch it switch in the upper left corner";
tip[7] = "TIP: Write an E-mail to MCcreations@gmail.com to bash or compliment this game Please";
tip[8] = "TIP: Watch the bad guys closely";
tip[9] = "Tip: Never stop moving";
tip[10] = "Tip: Try playing again with different Upgrades";
tip[11] = "Tip: Learn each bad guys tendencies";
tip[12] = "Tip: Be quick or be dead";
tip[13] = "Tip: This game took about 3 months";
tip[14] = "Tip: You can enter passwords at the title screen";
tip[15] = "Hint: Stay in School and dont do Drugs";
tip[17] = "Hint: You can use the Kanomi Code";
tip[18] = "Tip: For the Kanomi Code instead of Start press Space";
tip[19] = "Tip: On level 22 i will tell you the secret to filming";
tip[20] = "Tip: I call this bad guy El Beto";
tip[21] = "Code: To start with all the spells Up, Up, Down, Down, Left, Right, Left, Right, B, A, Space";
tip[22] = "Tip: Everything is alot Cooler in slow motion";
tip[23] = "Tip: Good Luck";
tip[24] = "Request: Write an E-mail to MCcreations@gmail.com to bash or compliment this game Please";
tip[25] = " THE LAST LEVEL";
resume_info = "Press Space to resume Game";
fireball_desc = "Fireball : its a Fireball attack, you shoot it and it hits the bad guy";
lightening_desc = "Lightening : click on the bad guy and a lightnening bolt will lock on to it";
stomp_desc = "Stomp : pound the ground and knock guys away from you";
ninja_star_desc = "Ninja Star : rapid fire, little damage, dont ask why it takes mp";
blitz_desc = "Blitz : charge at your enemy knocking them back and doing damage";
teleport_desc = "Teleport : teleports you to the location of your mouse";
str_up_desc = "Stength+ : increses your max Strength";
spd_up_desc = "Speed+ : increases your speed";
mp_up_desc = "MP Recover : icreases your MP recovery rate";
hp_up_desc = "HP+ : increases your max HP";
fireball2_desc = "Fireball2 : fireball 2.0 same thing but bigger, large, and morepowerful then the original.";
slicer_desc = "Slicer : fillet your enemy with quick sword jabs";
blizzard_desc = "Blizzard : summon a hailstorm to bring pain to your enemy";
no_class = "Once you select your first Lvl Up, the other classes will cost twice as much so choose carefully";
main_spell = "Go to the Main Menu to equip your new Spell by pressing Q or E and then clicking on the spells icon";
ArmorGamesDesc = "Click to open ArmorGames.com in a new window";
Frame 19 (3.94 KiB) ●
remove_all = function () {
_root.deo.removeMovieClip();
_root.InGameMenu.removeMovieClip();
_root.combat_bg.removeMovieClip();
_root.blizz.removeMovieClip();
_root.slicer_.removeMovieClip();
_root.lighteningWH.removeMovieClip();
_root.lighteningBL.removeMovieClip();
_root.choice_Q.removeMovieClip();
_root.choice_E.removeMovieClip();
_root.selecter.removeMovieClip();
_root.shad.removeMovieClip();
_root.Bad_bar.removeMovieClip();
_root.tractor.removeMovieClip();
z = project_NS.length;
while (0 <= z) {
_root[project_NS[z][0]].removeMovieClip();
project_NS.splice(z, 1);
z--;
}
z = exp_FB.length;
while (0 <= z) {
_root[exp_FB[z]].removeMovieClip();
exp_FB.splice(z, 1);
z--;
}
z = bad_project.length;
while (0 <= z) {
_root[bad_project[z][0]].removeMovieClip();
bad_project.splice(z, 1);
z--;
}
z = bad_guys.length;
while (0 <= z) {
_root[bad_guys[z][0]].removeMovieClip();
_root[bad_guys[z][0] + "_z"].removeMovieClip();
_root[bad_guys[z][0] + "z"].removeMovieClip();
bad_guys.splice(z, 1);
z--;
}
};
start_deo = function (setupA, setupB, setupC) {
deos[mve_wait] = 0;
deos[att_wait] = 0;
deos[tch_dmg] = 0;
_root.createEmptyMovieClip("deo", 90);
_root.deo.attachMovie("deo_", "graphic", 91);
_root.deo.graphic.stop();
_root.deo._x = ((setupA / 100) * 520) + 40;
_root.deo._y = ((setupB / 100) * 290) + 70;
_root.deo._rotation = setupC;
deos[hp] = deos[hp] + (deos[hp_max] * 0.25);
if (deos[hp] > deos[hp_max]) {
deos[hp] = deos[hp_max];
}
deo_old_hp = deos[hp];
};
start_setup = function (_lvl) {
play_status = "stop";
TIMER = 0;
bad_dep = 100;
bad_bar_dep = 999000 /* 0x0F3E58 */;
weap_dep = 1000;
EveryBodyIsDead = 0;
attachMovie("floor_BG", "Bg", 1);
Bg.stop();
attachMovie("combatbg", "combat_bg", 1000001);
combat_bg.stop();
attachMovie("level_start", "level_s", 1000090);
if (current_level < 25) {
attachMovie("shadow", "shad", 1000000);
shad.stop();
shad._x = 300;
shad._y = 30;
shad.gotoAndStop(current_level);
} else if (current_level == 25) {
attachMovie("NightShadow", "shad", 1000000);
}
_root.level_s.level_t = ["Level " + _lvl];
_root.level_s.level_num.selectable = false;
_root.level_s.lvl_tip_txt.selectable = false;
_root.level_s.lvl_tip = tip[_lvl];
world_timer();
_root.combat_bg.world_T.selectable = false;
stat_display();
attachMovie("attack_indicate", "selecter", 1000080);
_root.selecter.stop();
if (att_selection == "E") {
att_selection = "E";
_root.selecter._x = 95;
_root.selecter._y = 2.5;
att_style = att_styleE;
} else {
att_selection = "Q";
_root.selecter._x = 55;
_root.selecter._y = 2.5;
att_style = att_styleQ;
}
attachMovie(att_styleQ, "choice_Q", 1000079);
_root.choice_Q._x = 55;
_root.choice_Q._y = 2.5;
attachMovie(att_styleE, "choice_E", 1000078);
_root.choice_E._x = 95;
_root.choice_E._y = 2.5;
};
spell_select = function (sel) {
if ((att_selection == "Q") and (att_styleE != sel)) {
attachMovie(sel, "choice_Q", 1000079);
_root.choice_Q._x = 55;
_root.choice_Q._y = 2.5;
att_styleQ = sel;
att_style = sel;
} else if ((att_selection == "E") and (att_styleQ != sel)) {
attachMovie(sel, "choice_E", 1000078);
_root.choice_E._x = 95;
_root.choice_E._y = 2.5;
att_styleE = sel;
att_style = sel;
}
};
att_type = function () {
if (Key.isDown(81)) {
att_selection = "Q";
_root.selecter._x = 55;
_root.selecter._y = 2.5;
att_style = att_styleQ;
} else if (Key.isDown(69)) {
att_selection = "E";
_root.selecter._x = 95;
_root.selecter._y = 2.5;
att_style = att_styleE;
}
};
distance = function (spriteA, spriteB) {
dist_x = _root[spriteA]._x - _root[spriteB]._x;
dist_y = _root[spriteA]._y - _root[spriteB]._y;
return(Math.sqrt(Math.pow(dist_x, 2) + Math.pow(dist_y, 2)));
};
crosshair_movement = function () {
crosshair._x = _xmouse;
crosshair._y = _ymouse;
};
Frame 20 (503 B)
combat_mousedown = function () {
Mouse.hide();
deo_attacks_click();
};
combat_loop = function () {
if (play_status == "play") {
deo_dead();
deo_rotation();
deo_move();
deo_attacks_loop();
bad_space();
bad_guy_attack();
bad_death();
bad_projectiles();
bad_limit();
bad_hp_bars();
deo_limit();
bad_death();
TIMER++;
if (deos[hp] < 1) {
deos[hp] = 0;
}
stat_display();
}
};
combat_keydown = function () {
pause_game();
att_type();
};
Frame 21 (812 B)
lvl_up_tune = new Sound();
lvl_up_tune.attachSound("lvl_victory_tune");
applause_sound = new Sound();
applause_sound.attachSound("applause_snd");
thunder_sound = new Sound();
thunder_sound.attachSound("thunder_snd");
explosion_sound = new Sound();
explosion_sound.attachSound("explosion_snd");
ghost_sound = new Sound();
ghost_sound.attachSound("ghost_snd");
ninja_star_sound = new Sound();
ninja_star_sound.attachSound("ninja_star_snd");
stomp_sound = new Sound();
stomp_sound.attachSound("stomp_snd");
hit_sound = new Sound();
hit_sound.attachSound("hit_snd");
teleport_sound = new Sound();
teleport_sound.attachSound("teleport_snd");
deo_damage_sound = new Sound();
deo_damage_sound.attachSound("deo_damage_snd");
blizzard_sound = new Sound();
blizzard_sound.attachSound("blizzard_snd");
Frame 24 (369 B)
stop();
giant = 0;
opening_movie.onEnterFrame = function () {
if (_root.opening_movie._currentframe == _root.opening_movie._totalframes) {
_root.opening_movie.stop();
}
};
opening_movie.onMouseUp = function () {
if (_root.opening_movie._currentframe == _root.opening_movie._totalframes) {
gotoAndStop ("title");
}
};
Key.addListener(opening_movie);
Frame 31 (1.84 KiB) ●
stop();
_root.attachMovie("title_menu", "title_m", 1);
attachMovie("crosshair_", "crosshair", 1001000);
startDrag ("crosshair", true);
_root.crosshair.gotoAndStop(2);
Mouse.hide();
title_m.game_code.onRelease = function () {
_root.title_m.removeMovieClip();
gotoAndStop ("password");
};
title_m.new_game.onRelease = function () {
_root.crosshair.gotoAndStop(1);
world_TIMER = 0;
_root.title_m.removeMovieClip();
current_level = 1;
current_lvl = current_level.toString();
gotoAndStop ("_1");
};
title_m.info_help.onRelease = function () {
_root.title_m.removeMovieClip();
gotoAndStop ("info");
_root.crosshair.gotoAndStop(2);
};
K = "";
_root.createEmptyMovieClip("kanomi", 101);
kanomi.onKeyDown = function () {
if (Key.isDown(38)) {
if (K == "") {
K = "U";
} else if (K == "U") {
K = "UU";
} else {
K = "";
}
} else if (Key.isDown(40)) {
if (K == "UU") {
K = "UUD";
} else if (K == "UUD") {
K = "UUDD";
} else {
K = "";
}
} else if (Key.isDown(37)) {
if (K == "UUDD") {
K = "UUDDL";
} else if (K == "UUDDLR") {
K = "UUDDLRL";
} else {
K = "";
}
} else if (Key.isDown(39)) {
if (K == "UUDDL") {
K = "UUDDLR";
} else if (K == "UUDDLRL") {
K = "UUDDLRLR";
} else {
K = "";
}
} else if (Key.isDown(66)) {
if (K == "UUDDLRLR") {
K = "UUDDLRLRB";
} else {
K = "";
}
} else if (Key.isDown(65)) {
if (K == "UUDDLRLRB") {
K = "UUDDLRLRBA";
} else {
K = "";
}
} else if (Key.isDown(32)) {
if (K == "UUDDLRLRBA") {
deo_spells = new Array("fireball", "lightening", "stomp", "ninja_star", "blitz", "blizzard", "fireball2", "slicer", "teleport");
K = "";
lvl_up_tune.setVolume(Vol * 0.8);
lvl_up_tune.start(0, 0);
} else {
K = "";
}
} else {
K = "";
}
};
Key.addListener(kanomi);
Frame 32 (1.06 KiB) ●
_root.password_.stop();
_root.code_read.selectable = false;
_root.attachMovie("password_menu", "P_Menu", 1);
P_Menu.password_back.onRelease = function () {
_root.P_Menu.removeMovieClip();
gotoAndPlay ("title");
};
P_Menu.password_enter.onRelease = function () {
cde = P_Menu.code_read;
z = 0;
while (z < codes.length) {
if (cde == codes[z]) {
_root.P_Menu.removeMovieClip();
current_level = z;
_root.gotoAndPlay(codes[z]);
} else {
P_Menu.code_read = "Nope";
}
z++;
}
};
P_Menu.code_text.maxChars = 10;
codes = new Array();
codes[0] = "1234567890123";
codes[1] = "_1";
codes[2] = "_2";
codes[3] = "_3";
codes[4] = "_4";
codes[5] = "_5";
codes[6] = "_6";
codes[7] = "_7";
codes[8] = "_8";
codes[9] = "_9";
codes[10] = "_10";
codes[11] = "_11";
codes[12] = "_12";
codes[13] = "_13";
codes[14] = "_14";
codes[15] = "_15";
codes[16] = "_16";
codes[17] = "_17";
codes[18] = "_18";
codes[19] = "_19";
codes[20] = "_20";
codes[21] = "_21";
codes[22] = "_22";
codes[23] = "_23";
codes[24] = "_24";
codes[25] = "_25";
Frame 33 (317 B)
attachMovie("help_menu_", "help_menu", 1);
_root.help_menu.stop();
_root.help_menu.info_next.onRelease = function () {
_root.help_menu.gotoAndStop(2);
_root.help_menu.info_back.onRelease = function () {
_root.help_menu.removeMovieClip();
gotoAndPlay ("title");
_root.crosshair.gotoAndStop(1);
};
};
Frame 34 (891 B)
attachMovie("deo_dead_", "deos_dead", 1);
_root.deos_dead.New_Hp.selectable = false;
_root.deos_dead.New_HP = ["Your new max HP would be " + (deos[hp_max] - 25)];
_root.deos_dead.deo_dead_continue.onRelease = function () {
if ((deos[hp_max] - 25) > 1) {
_root.deos_dead.removeMovieClip();
deos[hp_max] = deos[hp_max] - 25;
deos[hp] = deos[hp_max];
deos[mp] = deos[mp_max];
cur_lvl = current_level.toString();
gotoAndStop(["_" + cur_lvl]);
_root.crosshair.gotoAndStop(1);
}
};
_root.deos_dead.deo_dead_quit.onRelease = function () {
deos = new Array(100, 100, 50, 50, 2.5, 5, 0, 0, 0, 0.07, 0);
deo_spells = new Array();
deo_skills_lvl = new Array(0, 0, 0);
_root.deos_dead.removeMovieClip();
att_style = "";
att_styleQ = "";
att_styleE = "";
LXwar = 1;
LXwiz = 1;
LXnin = 1;
gotoAndPlay ("title");
_root.crosshair.gotoAndStop(1);
};
Frame 35 (262 B)
attachMovie("end_game", "EndGame", 100);
applause_sound.setVolume(Vol);
applause_sound.start(1, 0);
crosshair.gotoAndStop(2);
_root.EndGame.home.onRelease = function () {
removeMovieClip("EndGame");
gotoAndPlay ("title");
crosshair.gotoAndStop(1);
};
Frame 39 (208 B)
crosshair.gotoAndStop(2);
_root.attachMovie("preGame", "PREGAME", 10);
PREGAME.onRelease = function () {
crosshair.gotoAndStop(1);
PREGAME.removeMovieClip();
delete preGame;
gotoAndStop ("_1");
};
Frame 41 (314 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(1);
bad_spawn("green_blob", 5, 50, 180, 0);
bad_spawn("green_blob", 95, 50, 0, 1);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 42 (401 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(2);
bad_spawn("green_blob", 0, 0, -120, 0);
bad_spawn("green_blob", 0, 100, 120, 1);
bad_spawn("green_blob", 100, 0, -60, 2);
bad_spawn("green_blob", 100, 100, 60, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 43 (309 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(3);
bad_spawn("red_blob", 10, 50, 0, 0);
bad_spawn("red_blob", 90, 50, 0, 1);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 44 (346 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(4);
bad_spawn("red_blob", 50, 5, 0, 0);
bad_spawn("red_blob", 25, 95, 0, 1);
bad_spawn("red_blob", 75, 95, 0, 2);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 45 (468 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(5);
bad_spawn("green_blob", 10, 10, 0, 0);
bad_spawn("green_blob", 10, 90, 0, 1);
bad_spawn("green_blob", 90, 10, 0, 2);
bad_spawn("green_blob", 90, 90, 0, 3);
bad_spawn("red_blob", 50, 5, 0, 4);
bad_spawn("red_blob", 50, 95, 0, 5);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 46 (270 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(6);
bad_spawn("turret1", 80, 50, 0, 0);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 47 (387 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(7);
bad_spawn("turret1", 80, 10, 0, 0);
bad_spawn("turret1", 80, 90, 0, 1);
bad_spawn("green_blob", 70, 40, 0, 2);
bad_spawn("green_blob", 70, 60, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 48 (315 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(10, 50, 90);
start_setup(8);
bad_spawn("brave_ghost", 80, 25, 0, 0);
bad_spawn("brave_ghost", 80, 75, 0, 1);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 49 (352 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(9);
bad_spawn("brave_ghost", 90, 10, 0, 0);
bad_spawn("brave_ghost", 90, 90, 0, 1);
bad_spawn("turret1", 80, 50, 0, 2);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 50 (392 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(10);
bad_spawn("blue_blob", 20, 50, 0, 0);
bad_spawn("blue_blob", 80, 50, 0, 1);
bad_spawn("green_blob", 50, 10, 0, 2);
bad_spawn("green_blob", 50, 90, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 51 (349 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(11);
bad_spawn("blue_blob", 70, 20, 0, 0);
bad_spawn("blue_blob", 70, 80, 0, 1);
bad_spawn("turret1", 80, 50, 0, 2);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 52 (270 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(12);
bad_spawn("blazor", 80, 50, 0, 0);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 53 (306 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(13);
bad_spawn("blazor", 80, 20, 0, 0);
bad_spawn("blazor", 80, 80, 0, 1);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 54 (343 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(14);
bad_spawn("blazor", 70, 20, 0, 0);
bad_spawn("blazor", 70, 80, 0, 1);
bad_spawn("turret1", 80, 50, 0, 2);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 55 (388 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(15);
bad_spawn("spaceship", 80, 50, 0, 0);
bad_spawn("red_blob", 15, 20, 0, 1);
bad_spawn("blue_blob", 10, 50, 0, 2);
bad_spawn("red_blob", 15, 80, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 56 (402 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(15);
bad_spawn("scared_ghost", 20, 20, 0, 0);
bad_spawn("scared_ghost", 20, 80, 0, 1);
bad_spawn("scared_ghost", 80, 20, 0, 2);
bad_spawn("scared_ghost", 80, 80, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 57 (399 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(80, 50, 90);
start_setup(17);
bad_spawn("scared_ghost", 20, 20, 0, 0);
bad_spawn("scared_ghost", 15, 50, 0, 1);
bad_spawn("scared_ghost", 20, 80, 0, 2);
bad_spawn("spaceship", 30, 50, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 58 (357 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(18);
bad_spawn("quick_ghost", 50, 10, 0, 0);
bad_spawn("quick_ghost", 30, 90, 0, 1);
bad_spawn("quick_ghost", 70, 90, 0, 2);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 59 (394 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(19);
bad_spawn("quick_ghost", 60, 10, 0, 0);
bad_spawn("quick_ghost", 80, 50, 0, 1);
bad_spawn("quick_ghost", 60, 90, 0, 2);
bad_spawn("turret1", 50, 50, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 60 (312 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(20);
bad_spawn("minotaur", 20, 50, 180, 0);
bad_spawn("minotaur", 80, 50, 0, 1);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 61 (392 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(20, 50, 90);
start_setup(21);
bad_spawn("minotaur", 60, 35, 0, 0);
bad_spawn("minotaur", 60, 65, 0, 1);
bad_spawn("brave_ghost", 90, 10, 0, 2);
bad_spawn("brave_ghost", 90, 90, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 62 (424 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(10, 50, 90);
start_setup(22);
bad_spawn("minotaur", 50, 30, 0, 0);
bad_spawn("minotaur", 50, 70, 0, 1);
bad_spawn("turret1", 80, 25, 0, 2);
bad_spawn("turret1", 80, 75, 0, 3);
bad_spawn("green_blob", 30, 50, 0, 4);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 63 (435 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(23);
bad_spawn("minotaur", 20, 50, 180, 0);
bad_spawn("minotaur", 80, 50, 0, 1);
bad_spawn("quick_ghost", 50, 10, 0, 2);
bad_spawn("quick_ghost", 30, 90, 0, 3);
bad_spawn("quick_ghost", 70, 90, 0, 4);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 64 (384 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(24);
bad_spawn("minotaur", 25, 50, 180, 0);
bad_spawn("minotaur", 75, 50, 0, 1);
bad_spawn("blazor", 49, 10, 0, 2);
bad_spawn("blazor", 50, 90, 0, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Frame 65 (395 B)
stop();
_root.createEmptyMovieClip("combat", -9999);
start_deo(50, 50, 90);
start_setup(25);
bad_spawn("minotaur", 20, 10, -135, 0);
bad_spawn("minotaur", 80, 10, -45, 1);
bad_spawn("minotaur", 20, 90, 135, 2);
bad_spawn("minotaur", 80, 90, -45, 3);
combat.onEnterFrame = combat_loop;
combat.onKeyDown = combat_keydown;
Key.addListener(combat);
combat.onMouseDown = combat_mousedown;
Symbol 46 Button (31 B)
on (release) {
_root.play();
}
Symbol 47 MovieClip [armorlogo] Frame 118 (48 B)
_root.play();
stop();
this.removeMovieClip();
Symbol 118 MovieClip Frame 1 (8 B)
stop();
Symbol 194 MovieClip [scared_ghost] Frame 20 (17 B)
gotoAndPlay (1);
Symbol 201 MovieClip [quick_ghost] Frame 20 (17 B)
gotoAndPlay (1);
Symbol 208 MovieClip [brave_ghost] Frame 20 (17 B)
gotoAndPlay (1);
Symbol 443 Button (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}