Frame 1
_root.music = 1;
_root.sfxs = 1;
Frame 2
_root.attachMovie("intro_pointer", "pointer", 100);
Mouse.hide();
nobject = 1000;
posizione = 1;
_quality = "low";
_root.createEmptyMovieClip("road", 0);
_root.road._x = 160;
_root.road._y = 120;
_root.createEmptyMovieClip("scena", 1);
_root.scena.createEmptyMovieClip("sprites", 0);
this.attachMovie("title", "title", 10);
_root.title._x = 160;
_root.title._y = 60;
_root.scena.sprites._x = 160;
_root.scena.sprites._y = 100;
tratto = _root.path;
_root.element1 = "bushes";
_root.element2 = "dirt2";
_root.element3 = "dirt";
_root.element4 = "intro_fog";
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.spazio > 500) {
rl = Math.ceil(Math.random() * 2);
_local1.generate_background(element4, rl, 1);
_local1.generate_background(element1, rl, 3);
_local1.generate_background(element3, rl, 1);
_local1.generate_background(element2, rl, 1);
_local1.spazio = 0;
}
};
function scanline(clip, z, xparallasse) {
if (key.isDown(39)) {
clip._x = clip._x - xparallasse;
}
if (key.isDown(37)) {
clip._x = clip._x + xparallasse;
}
}
function generate_background(element, position, far) {
_root.road.attachmovie(element, "bck" + _root.n_object, _root.n_object);
bck = eval ("_root.road.bck" + _root.n_object);
bck.livello = _root.n_object;
bck.farness = Math.random() * far;
if (position == 1) {
bck.posizione = 1;
} else {
bck.posizione = 2;
}
if (_root.n_object < 100000) {
_root.n_object = _root.n_object + 1;
} else {
_root.n_object = 200;
}
}
stop();
_quality = "low";
_root.accel = 0;
_root.speed = 100;
_root.maxspeed = 350;
_root.startpoint = 5;
_root.path = 125;
_root.nobject = 200;
_root.n_object = 200;
_root.circuit = 1;
_root.scena.sprites.attachMovie("subaru", "player1", 500);
car = _root.scena.sprites.player1;
car._y = 80;
car._x = 20;
r = 0;
while (r <= _root.path) {
_root.road.attachMovie("road_00", "road" + r, r);
strada = eval ("_root.road.road" + r);
strada._x = 0;
strada._y = _root.startpoint;
strada.far = r / 20;
strada._xscale = startpoint + 1;
strada._alpha = startpoint;
_root.startpoint = _root.startpoint + 1;
r++;
}
function musica(clip, mus) {
var _local1 = clip;
if (_root.music == 1) {
_local1.suono = new Sound(_local1);
_local1.suono.attachsound(mus);
_local1.suono.stop();
_local1.suono.start(0, 999);
}
}
stop();
_root.inGame = 0;
this.onMouseDown = function () {
var _local1 = _root;
switch (_local1._currentframe) {
case 8 :
_local1.gotoAndStop(2);
return;
case 9 :
_local1.gotoAndStop(10);
return;
case 10 :
_local1.gotoAndStop(2);
return;
}
};
_root.musica(_root, "//");
Frame 3
_root.road.removeMovieClip();
_root.pointer.removeMovieClip();
_root.scena.removeMovieClip();
_root.title.removeMovieClip();
Frame 4
function chooseEnemy(clip, nset) {
dato = ((((("[" + nset) + ",") + Math.floor(clip._x)) + ",") + Math.floor(clip._y)) + "]";
_root.scena.sprites.sel.removeMovieClip();
trace(dato);
}
_root.gun_ammo = 50;
_root.shotgun_ammo = 999;
_root.machinegun_ammo = 999;
_root.flamethrower_ammo = 999;
_root.magnum_ammo = 999;
_root.energy = 60;
_root.score = 0;
_root._currentWeapon = 0;
_root._currentMelee = 11;
_root.mario_stars = 0;
_root.pausa = 0;
_root.Key_items = new Array(10);
_root.createEmptyMovieClip("items", 102);
_root.items._x = 90;
_root.items._y = 30;
Frame 6
stop();
_quality = "low";
_root.inGame = 1;
_root.enemyLayer = 1000;
_root.objsLayer = 100;
_root.shotLevel = 0;
_root.actionReleased = 0;
_root.fireReleased = 0;
_root.pauseReleased = 0;
keydown = new Object();
keydown.onKeyDown = function () {
var _local1 = _root;
if (_local1.pausa == 0) {
if (Key.isDown(32)) {
_local1.jump = 1;
}
if (Key.isDown(37)) {
_local1.left = 1;
}
if (Key.isDown(39)) {
_local1.right = 1;
}
if (Key.isDown(38)) {
_local1.up = 1;
}
if (Key.isDown(40)) {
_local1.dw = 1;
}
if (Key.isDown(88)) {
_local1.melee = 1;
}
}
};
keydown.onKeyUp = function () {
var _local1 = _root;
if (Key.isDown(80) == false) {
_local1.pauseReleased = 0;
}
if (_local1.pausa == 0) {
if (Key.isDown(32) == false) {
_local1.jump = 0;
}
if (Key.isDown(37) == false) {
_local1.left = 0;
}
if (Key.isDown(39) == false) {
_local1.right = 0;
}
if (Key.isDown(38) == false) {
_local1.up = 0;
}
if (Key.isDown(40) == false) {
_local1.dw = 0;
}
if (Key.isDown(88) == false) {
_local1.melee = 0;
}
if (Key.isDown(90) == false) {
_local1.fireReleased = 0;
}
if (Key.isDown(65) == false) {
_local1.actionReleased = 0;
}
}
};
Key.addListener(keydown);
_root.createEmptyMovieClip("scena", 1);
_root.createEmptyMovieClip("parallasse", 0);
_root.createEmptyMovieClip("darkness", 2);
_root.scena.createEmptyMovieClip("back", 0);
_root.scena.createEmptyMovieClip("sprites", 1);
_root.scena.createEmptyMovieClip("particles", 2);
_root.scena.createEmptyMovieClip("front", 3);
_root.loadEnemies = new Array();
_root.loadWeapons = new Array();
_root.enemyArray = new Array();
_root.laHorde = 0;
_root.objs = new Array();
_root.backgroundTiles = new Array();
_root.frontgroundTiles = new Array();
switch (_root.room) {
case 0 :
_currentSong = "drops";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 0;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("XX");
_root.frontgroundTiles.push("XX");
_root.loadWeapons.push([0, 200, 175], [20, 260, 183], [12, 100, 175]);
scrollMin = 0;
scrollMax = 0;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 0;
collision_right = 320;
_root.lightOn = 0;
break;
case 1 :
_currentSong = "neon";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("00", "01", "03", "01", "03", "03", "01", "02", "03", "01", "04");
_root.frontgroundTiles.push("//", "//", "00", "//", "//", "00", "//", "//", "00", "//", "00");
_root.loadWeapons.push([0, 1600, 172], [20, 1850, 172], [1, 3200, 172]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 170;
collision_right = 3430;
_root.lightOn = 0;
break;
case 2 :
_currentSong = "waterdripping";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.frontgroundTiles.push("01", "01", "01", "01", "01", "01", "01", "01", "01", "01", "01", "01", "01", "01");
_root.backgroundTiles.push("20", "21", "22", "21", "22b", "22", "22b", "21", "22", "22b", "21", "22", "22", "23");
_root.loadWeapons.push([0, 1000, 180], [21, 2150, 180], [0, 3500, 180]);
scrollMin = 0;
scrollMax = -4160;
yMinScroll = 140;
yMaxScroll = 220;
collision_left = 170;
collision_right = 4360;
_root.lightOn = 0;
break;
case 3 :
_currentSong = "ventnoise";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("30", "31", "31", "31", "31", "31", "32");
_root.frontgroundTiles.push("30", "//", "//", "//", "//", "//", "32");
_root.loadWeapons.push([10, 250, 160]);
scrollMin = 0;
scrollMax = -1920;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 170;
collision_right = 2120;
_root.lightOn = 1;
break;
case 6 :
_currentSong = "ambient_swamp";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_60";
_root.backgroundTiles.push("60", "61", "61", "61", "61", "61", "61", "62", "61", "61", "61", "61", "61", "61", "61", "63");
_root.loadWeapons.push([21, 500, 180], [4, 1000, 180], [1, 2500, 160], [20, 2560, 175], [20, 3500, 175]);
scrollMin = 0;
scrollMax = -4800;
yMinScroll = 160;
yMaxScroll = 220;
collision_left = 0;
collision_right = 5080;
_root.lightOn = 0;
break;
case 4 :
_currentSong = "ambient1";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_40";
_root.backgroundTiles.push("40", "41", "42", "42", "43");
_root.frontgroundTiles.push("40", "//", "40", "//", "40");
_root.loadWeapons.push([21, 300, 180], [3, 700, 180], [1, 1000, 160], [2, 1150, 175], [20, 1400, 175]);
scrollMin = 0;
scrollMax = -1280;
yMinScroll = 165;
yMaxScroll = 230;
collision_left = 0;
collision_right = 1600;
_root.lightOn = 0;
break;
case 5 :
_currentSong = "ambient1";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_60";
_root.backgroundTiles.push("50", "54", "51", "54", "52", "54", "53", "54", "52", "54", "50");
_root.frontgroundTiles.push("52", "50", "50", "50", "50", "50", "50", "50", "50", "51", "50");
_root.loadWeapons.push([20, 1650, 160], [2, 1600, 175], [21, 2400, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 165;
yMaxScroll = 230;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
break;
case 7 :
_currentSong = "finalmusic";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_70";
_root.backgroundTiles.push("70", "71", "72", "71", "72", "71", "72", "71", "72", "71", "73");
_root.loadWeapons.push([0, 320, 160], [2, 400, 175], [20, 1600, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 175;
yMaxScroll = 230;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
_root.key.genre = 0;
break;
case 8 :
_currentSong = "ventnoise";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.movie_parallasse = "//";
_root.backgroundTiles.push("80", "81", "82", "81", "82", "81", "82", "81", "82", "82", "83");
_root.frontgroundTiles.push("80", "81", "80", "81", "80", "81", "80", "81", "80", "81", "80");
_root.loadWeapons.push([21, 320, 160], [2, 1600, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
_root.key.genre = 0;
break;
case 9 :
_currentSong = "waterdripping";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 0;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_90";
_root.loadWeapons.push([2, 100, 160]);
_root.backgroundTiles.push("90");
scrollMin = 0;
scrollMax = 0;
yMinScroll = 150;
yMaxScroll = 175;
collision_left = 50;
collision_right = 160;
_root.lightOn = 0;
break;
case 10 :
_currentSong = "ambient1";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 1;
_root.room_parallasse = 0;
_root.backgroundTiles.push("100", "101", "101", "101", "102");
scrollMin = 0;
scrollMax = -1280;
yMinScroll = 265;
yMaxScroll = 400;
collision_left = 0;
collision_right = 1600;
_root.lightOn = 1;
break;
case 11 :
_currentSong = "ambient11";
_root.musica(_root, _currentSong);
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.backgroundTiles.push("110", "111", "112", "111", "112", "113", "111", "112", "113", "111", "114");
_root.frontgroundTiles.push("//", "110", "//", "110", "//", "110", "110", "//", "110", "//", "//");
_root.loadWeapons.push([20, 200, 175], [4, 1500, 183], [21, 2500, 175]);
_root.loadWeapons.push([4, 1000, 175], [21, 2000, 183]);
_root.movie_parallasse = "parallasse_110";
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 175;
yMaxScroll = 220;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 1;
}
_root.createEmptyMovieClip("tutorial", 103);
if (_root.room == 10) {
_root.tutorial.attachMovie("tut", "tut", 0);
}
btn = _root.backgroundTiles.length;
tileWidth = 320;
frontTileWidth = 320;
n = 0;
while (n < btn) {
tileIndex = _root.backgroundTiles[n];
tile = "backtile_" + tileIndex;
_root.scena.back.attachMovie(tile, "bt" + n, n);
tile = eval ("_root.scena.back.bt" + n);
tile._x = tileWidth * n;
tile._y = 0;
tileIndex = _root.frontgroundTiles[n];
front_tile = "fronttile_" + tileIndex;
_root.scena.front.attachMovie(front_tile, "ft" + n, n);
ftile = eval ("_root.scena.front.ft" + n);
ftile._x = frontTileWidth * n;
ftile._y = 0;
n++;
}
if (room_parallasse == 1) {
n_clip_parallasse = 0;
while (n_clip_parallasse < 15) {
_root.parallasse.attachMovie(movie_parallasse, "parallasse" + n_clip_parallasse, n_clip_parallasse);
prl = eval ("_root.parallasse.parallasse" + n_clip_parallasse);
prl._x = TileWidth * n_clip_parallasse;
prl._y = 0;
n_clip_parallasse++;
}
}
if (_root.lightOn == 1) {
_root.darkness.attachMovie("light", "light", 1);
}
if (_root.editorMode == 0) {
switch (_root.room) {
case 0 :
break;
case 1 :
_root.loadEnemies.push([1, 510, 162], [1, 868, 191], [1, 981, 152], [6, 1175, 199], [1, 1321, 174], [1, 1518, 156], [1, 1513, 190], [1, 1582, 204], [1, 1927, 144], [1, 2122, 202], [1, 2854, 202], [1, 2909, 185], [1, 2964, 175], [1, 3080, 165], [1, 3095, 208], [1, 3251, 189], [1, 3336, 199], [1, 2868, 202], [1, 2881, 218], [1, 2939, 147], [1, 2769, 163]);
break;
case 2 :
_root.loadEnemies.push([5, 678, 146], [5, 691, 190], [5, 995, 145], [5, 1258, 165], [1, 1443, 205], [1, 1604, 142], [1, 1793, 187], [1, 1959, 203], [1, 2123, 158], [1, 2287, 193], [1, 2548, 144], [6, 2928, 150], [6, 2670, 195], [6, 3270, 203], [6, 3273, 147], [6, 3153, 173], [1, 3774, 182], [1, 3891, 145], [1, 4119, 202], [1, 4200, 170], [1, 4304, 142]);
break;
case 3 :
_root.loadEnemies.push([1, 651, 184], [1, 680, 208], [1, 787, 161], [6, 939, 172], [6, 1169, 182], [6, 1363, 204], [6, 1590, 156], [6, 1592, 201], [6, 1729, 177], [6, 1890, 169]);
break;
case 5 :
_root.loadEnemies.push([2, 510, 162], [1, 868, 191], [2, 981, 152], [1, 1175, 199], [1, 1321, 174], [2, 1518, 156], [3, 1513, 190], [5, 1582, 204], [2, 1927, 144], [1, 2122, 202], [3, 2854, 203], [1, 2909, 185], [2, 2964, 175], [1, 3080, 163], [2, 3095, 208], [6, 3251, 189], [5, 3336, 199], [2, 2868, 202], [1, 2881, 218], [6, 2939, 147], [1, 2769, 165]);
break;
case 6 :
_root.loadEnemies.push([1, 611, 164], [1, 696, 188], [1, 800, 155], [2, 892, 182], [4, 1057, 152], [2, 1198, 195], [6, 1415, 154], [6, 1577, 170], [6, 1831, 174], [6, 1997, 166], [7, 2370, 155], [7, 2388, 191], [3, 2773, 157], [2, 3009, 187], [1, 3296, 199], [4, 3534, 198], [1, 3669, 189], [4, 3933, 163], [1, 4389, 173], [6, 4450, 158], [6, 4572, 170], [6, 4659, 191], [6, 4787, 108]);
break;
case 4 :
_root.loadEnemies.push([9, 472, 156], [7, 613, 175], [9, 806, 158], [7, 890, 196], [9, 1136, 157], [7, 1138, 194], [7, 1365, 183], [7, 1545, 193]);
break;
case 8 :
_root.loadEnemies.push([3, 510, 162], [3, 868, 191], [3, 1000, 163], [3, 1500, 192], [3, 2000, 164], [3, 2200, 190], [3, 2769, 170]);
break;
case 11 :
_root.loadEnemies.push([8, 510, 162], [8, 868, 191], [8, 1000, 163], [8, 1500, 192], [8, 2000, 164], [8, 2200, 190], [8, 2769, 170]);
}
n_elements = _root.loadEnemies.length;
nen = 0;
while (nen < n_elements) {
enemyFrameSet = _root.loadEnemies[nen][0];
_root.scena.sprites.attachMovie("infected_1", "inf" + _root.enemyLayer, _root.enemyLayer);
inf = eval ("_root.scena.sprites.inf" + _root.enemyLayer);
inf.set = enemyFrameSet;
inf._x = _root.loadEnemies[nen][1];
inf._y = _root.loadEnemies[nen][2];
_root.enemyArray.push(inf);
_root.enemyLayer = _root.enemyLayer + 1;
nen++;
}
}
noNeedToGiveAKey = 0;
switch (_root.room) {
case 0 :
_root.doorID = 0;
break;
case 1 :
_root.doorID = 1;
break;
case 2 :
_root.doorID = 3;
break;
case 3 :
_root.doorID = 2;
break;
case 4 :
_root.doorID = 9;
break;
case 5 :
_root.doorID = 5;
break;
case 6 :
_root.doorID = 6;
break;
case 7 :
_root.doorID = 4;
break;
case 8 :
_root.doorID = 8;
break;
case 9 :
_root.doorID = 0;
break;
case 10 :
_root.doorID = 0;
break;
case 11 :
_root.doorID = 0;
}
Kil = _root.Key_items.length;
n = 0;
while (n < kil) {
if (Key_items[n] == _root.doorID) {
noNeedToGiveAKey = 1;
break;
}
n++;
}
if (_root.doorID > 0) {
key_assigned = 0;
ordeLength = _root.enemyArray.length;
while (key_assigned == 0) {
key_enemy = Math.floor(Math.random() * ordeLength);
enemyKeeper = _root.enemyArray[key_enemy];
if ((enemyKeeper.set != 7) && (enemyKeeper.set != 2)) {
_root.enemyArray[key_enemy].keeper = 1;
key_assigned = 1;
}
}
}
this.onEnterFrame = function () {
var _local1 = _root;
if (Key.isDown(80) && (_local1.pauseReleased == 0)) {
_local1.pauseReleased = 1;
_local1.pausedd = 1;
} else {
_local1.pausedd = 0;
}
if (_local1.pausedd == 1) {
if ((_local1.pausa == 0) && (_local1.ingame == 1)) {
_local1.pausa = 1;
_local1.effetti(_local1.tutorial, "sound_menu");
_local1.tutorial.attachMovie("map", "map", 101);
} else {
Mouse.hide();
_local1.tutorial.map.removeMovieClip();
_local1.pausa = 0;
}
}
if (_local1.pausa == 0) {
if (Key.isDown(65) && (_local1.actionReleased == 0)) {
_local1.actionReleased = 1;
_local1.action = 1;
} else {
_local1.action = 0;
}
if (Key.isDown(90) && (_local1.fireReleased == 0)) {
_local1.fireReleased = 1;
_local1.fire = 1;
} else {
_local1.fire = 0;
}
if (_local1.energy <= 0) {
_local1.gotoAndStop("gameover");
}
_local1.scrolling(pl1);
if (_local1.lightOn == 1) {
_local1.darkness.light._x = _local1.light_x;
_local1.darkness.light._y = _local1.light_y;
}
_local1.darkness.light._xscale = -_local1.scena.sprites.player1._xscale;
}
};
function pickUp(clip) {
oal = _root.objs.length;
no = 0;
while (no < oal) {
collidedObj = _root.objs[no];
collidedObj_y = collidedObj.getBounds(_root.scena.sprites).yMax - 5;
collidedObj_x = collidedObj.getBounds(_root.scena.sprites).xMax - (collidedObj._width / 2);
obj_distance_y = Math.abs(collidedObj_y - clip.y);
obj_distance_x = Math.abs(collidedObj_x - clip._x);
if ((clip.coll.hitTest(collidedObj) && (obj_distance_y < 20)) && (obj_distance_x < 20)) {
_root.effetti(clip, "sound_change");
layer = collidedObj.getDepth(collidedObj);
obj_x = collidedObj._x;
obj_y = collidedObj._y;
if (collidedObj.genre < 10) {
switch (clip.weaponID) {
case 0 :
releasedWeapon = "gunicon";
releasedAmmo = _root.gun_ammo;
break;
case 1 :
releasedWeapon = "machinegunicon";
releasedAmmo = _root.machinegun_ammo;
break;
case 2 :
releasedWeapon = "shotgunicon";
releasedAmmo = _root.shotgun_ammo;
break;
case 3 :
releasedWeapon = "flamethrowericon";
releasedAmmo = _root.flamethrower_ammo;
break;
case 4 :
releasedWeapon = "magnumicon";
releasedAmmo = _root.magnum_ammo;
}
_root._currentWeapon = collidedObj.genre;
switch (collidedObj.genre) {
case 0 :
_root.hud_messages("swap_gun");
_root.gun_ammo = collidedObj.mag;
break;
case 1 :
_root.hud_messages("swap_machinegun");
_root.machinegun_ammo = collidedObj.mag;
break;
case 2 :
_root.hud_messages("swap_shotgun");
_root.shotgun_ammo = collidedObj.mag;
break;
case 3 :
_root.hud_messages("swap_flamethrower");
_root.flamethrower_ammo = collidedObj.mag;
break;
case 4 :
_root.hud_messages("swap_magnum");
_root.magnum_ammo = collidedObj.mag;
}
}
if ((collidedObj.genre >= 10) && (collidedObj.genre < 20)) {
switch (collidedObj.genre) {
case 12 :
_root.hud_messages("swap_machete");
break;
case 11 :
_root.hud_messages("swap_bat");
break;
case 10 :
_root.hud_messages("swap_katana");
}
switch (clip.meleeID) {
case 10 :
releasedWeapon = "katanaicon";
_root._currentMelee = collidedObj.genre;
break;
case 11 :
releasedWeapon = "baticon";
_root._currentMelee = collidedObj.genre;
break;
case 12 :
releasedWeapon = "macheteicon";
_root._currentMelee = collidedObj.genre;
}
}
if (collidedObj.genre >= 20) {
switch (collidedObj.genre) {
case 21 :
hud_messages("energy_plus");
if (_root.energy > 75) {
_root.energy = 100;
} else {
_root.energy = _root.energy + 25;
}
_root.hud1.gotoAndPlay(2);
removeMovieClip(collidedObj);
break;
case 20 :
_root.hud_messages("energy_full");
_root.energy = 100;
removeMovieClip(collidedObj);
_root.hud1.gotoAndPlay(2);
}
} else {
_root.scena.back.attachMovie(releasedWeapon, "obj" + layer, layer);
newObj = eval ("_root.scena.back.obj" + layer);
newObj._x = obj_x;
newObj._y = obj_y;
if (collidedObj.genre < 10) {
newObj.mag = releasedAmmo;
}
}
}
no++;
}
}
function hud_messages(clip, genre) {
var _local1 = _root;
plHand = _local1.scena.sprites.player1;
_local1.hud1.attachmovie(clip, "icon", 102);
hudicon = _local1.hud1.icon;
hudicon._x = plHand.getBounds(_local1.hud1).xMax - 40;
hudicon._y = plHand.getBounds(_local1.hud1).yMax - 70;
}
function key_items_generation(keeper_value, roomKey, kx, ky) {
if (keeper_value == 1) {
_root.scena.sprites.attachMovie(roomKey, "r_key" + _root.enemyLayer, _root.enemyLayer);
r_key = eval ("_root.scena.sprites.r_key" + _root.enemyLayer);
r_key._x = kx;
r_key._y = ky;
r_key.soundOff = 0;
if (_root.noNeedToGiveAKey == 1) {
r_key.gotoAndStop("star");
} else {
r_key.gotoAndStop(_root.doorID);
}
_root.enemyLayer = _root.enemyLayer + 1;
}
}
function key_actions(clip) {
clip.swapDepths(clip._y);
clip.player = _root.scena.sprites.player1;
clip.p_x = clip.player._x;
clip.p_y = clip.player._y;
clip.xOffset = Math.abs(clip._x - clip.p_x);
clip.yOffset = Math.abs(clip._y - clip.p_y);
if ((clip.xOffset < 20) && (clip.yOffset < 20)) {
if (_root.noNeedToGiveAKey == 0) {
_root.items.attachMovie("all_key_items", "Kobj" + _root.doorID, _root.doorID);
_root.effetti(clip, "sound_beep");
_root.Key_items[_root.doorID] = _root.doorID;
Kobj = eval ("_root.items.Kobj" + _root.doorID);
Kobj.gotoAndStop(_root.doorID);
Kobj._x = _root.doorID * 24;
Kobj.soundOff = 1;
_root.items.Kobj.item_genre = clip._currentframe;
_root.hud1.ki.removeMovieClip();
clip.removeMovieClip();
} else {
_root.mario_stars = _root.mario_stars + 1;
_root.effetti(clip, "smas_1up");
clip.removeMovieClip();
_root.hud1.ki.removeMovieClip();
switch (_root.room) {
case 1 :
_root.score = _root.score + 50;
return;
case 2 :
_root.score = _root.score + 150;
return;
case 3 :
_root.score = _root.score + 50;
return;
case 4 :
_root.score = _root.score + 10;
return;
case 5 :
_root.score = _root.score + 300;
return;
case 6 :
_root.score = _root.score + 500;
return;
case 8 :
_root.score = _root.score + 250;
}
}
}
}
function doors(clip, rightKey, newX, newY) {
var _local1 = _root;
var _local2 = clip;
var _local3 = rightKey;
_local2.plx = _local1.scena.sprites.player1._x;
_local2.ply = _local1.scena.sprites.player1._y;
_local2.door_x = _local2.plx - (_local2.getBounds(_local1.scena.sprites).xMax - 23);
_local2.door_y = _local2.ply - _local2.getBounds(_local1.scena.sprites).yMax;
_local2.distance = Math.sqrt((_local2.door_x * _local2.door_x) + (_local2.door_y * _local2.door_y));
if (_local2.distance <= 30) {
_local2.icon._visible = true;
if (_local1.action == 1) {
doorCheck = 0;
Kil = _local1.Key_items.length;
n = 0;
while (n < kil) {
if ((_local1.Key_items[n] == _local3) || (_local3 == 0)) {
doorCheck = 1;
_local1.effetti(_local2, "sound_door");
_local1.room = _local2.room;
_local1.gotoAndStop("change_level");
break;
}
n++;
}
if (doorCheck == 0) {
_local1.tutorial.attachMovie("doormessage", "doorM", 0);
}
}
} else {
_local2.icon._visible = false;
}
}
_root.nWeapons = _root.loadWeapons.length;
n = 0;
while (n <= (_root.nWeapons - 1)) {
weapon_index = _root.loadWeapons[n][0];
switch (weapon_index) {
case 0 :
weapon = "gunicon";
mag = 75;
break;
case 1 :
weapon = "machinegunicon";
mag = 100;
break;
case 2 :
weapon = "shotgunicon";
mag = 30;
break;
case 3 :
weapon = "flamethrowericon";
mag = 100;
break;
case 4 :
weapon = "magnumicon";
mag = 10;
break;
case 10 :
weapon = "katanaicon";
break;
case 11 :
weapon = "baticon";
break;
case 12 :
weapon = "macheteicon";
break;
case 20 :
weapon = "medikiticon";
break;
case 21 :
weapon = "painkillericon";
}
_root.scena.back.attachMovie(weapon, "obj" + _root.objsLayer, _root.objsLayer);
obj = eval ("_root.scena.back.obj" + _root.objsLayer);
obj._x = _root.loadWeapons[n][1];
obj._y = _root.loadWeapons[n][2];
obj.mag = mag;
_root.objs.push(obj);
_root.objsLayer = _root.objsLayer + 1;
n++;
}
function swapWeapon(clip) {
var _local1 = clip;
var _local2 = _root;
switch (_local2._currentWeapon) {
case 0 :
_local1._currentWeapon = "e_gun";
_local1.weaponID = 0;
_local1.chestPosition_x = -13;
_local1.chestPosition_y = -27;
break;
case 1 :
_local1._currentWeapon = "e_machinegun";
_local1.weaponID = 1;
_local1.chestPosition_x = -13;
_local1.chestPosition_y = -27;
break;
case 2 :
_local1.weaponID = 2;
_local1._currentWeapon = "e_shotgun";
_local1.chestPosition_x = -15;
_local1.chestPosition_y = -27;
break;
case 3 :
_local1.weaponID = 3;
_local1._currentWeapon = "e_flamethrower";
_local1.chestPosition_x = -15;
_local1.chestPosition_y = -27;
break;
case 4 :
_local1.weaponID = 4;
_local1._currentWeapon = "e_magnum";
_local1.chestPosition_x = -13;
_local1.chestPosition_y = -27;
}
hudFrame = 1 + _local2._currentWeapon;
_local2.hud1.weaponry.gotoAndStop(hudFrame);
}
function swapMelee(clip) {
var _local1 = clip;
switch (_root._currentMelee) {
case 10 :
_local1.meleeID = 10;
_local1._currentMelee = "e_katana";
return;
case 11 :
_local1.meleeID = 11;
_local1._currentMelee = "e_bat";
return;
case 12 :
_local1.meleeID = 12;
_local1._currentMelee = "e_machete";
}
}
function shotGeneration(clip, genre) {
clip.currentClip = _root.scena.sprites.player1;
switch (genre) {
case 0 :
shotType = "gunFire";
_root.gun_ammo = _root.gun_ammo - 1;
danno = 15;
break;
case 1 :
shotType = "machinegunFire";
danno = 10;
_root.machinegun_ammo = _root.machinegun_ammo - 1;
break;
case 2 :
shotType = "shotgunFire";
danno = 25;
_root.shotgun_ammo = _root.shotgun_ammo - 1;
break;
case 3 :
shotType = "flamethrowerFire";
danno = 10;
_root.flamethrower_ammo = _root.flamethrower_ammo - 1;
break;
case 4 :
shotType = "magnumFire";
danno = 200;
_root.magnum_ammo = _root.magnum_ammo - 1;
break;
case 10 :
shotType = "katana";
danno = 30;
break;
case 11 :
shotType = "bat";
danno = 15;
break;
case 12 :
shotType = "machete";
danno = 10;
}
_root.scena.sprites.shotLayer.attachMovie(shotType, "shot" + _root.shotLevel, _root.shotLevel);
dynamicShot = eval ("_root.scena.sprites.shotLayer.shot" + _root.shotLevel);
dynamicShot._x = clip.fp.getBounds(_root.scena.sprites.shotLayer).xMax;
dynamicShot._y = clip.fp.getBounds(_root.scena.sprites.shotLayer).yMax;
dynamicShot._xscale = clip.currentClip._xscale;
dynamicShot.damage = danno;
dynamicshot.genre = genre;
dynamicShot.z = clip.currentClip.z;
dynamicShot.y = clip.currentClip.y;
if (_root.shotLevel < 3) {
_root.shotLevel = _root.shotLevel + 1;
} else {
_root.shotLevel = 0;
}
}
function backCollision(clip) {
var _local1 = clip;
var _local2 = _root;
if (_local1.state != 7) {
orde_length = _local2.enemyArray.length;
c = 0;
while (c < orde_length) {
_local1.enemyCollided = _local2.enemyArray[c];
_local1.collisionOffset = Math.abs(_local1.y - _local1.enemyCollided.y);
if (_local1.coll.hitTest(_local1.enemyCollided.coll) && (_local1.collisionOffset < 6)) {
if ((((_local1.enemyCollided.state != 3) && (_local1.enemyCollided.set != 3)) && (_local1.enemyCollided.set != 2)) && (_local1.enemyCollided.set != 4)) {
_local1.enemyCollided._y = _local1.playerY;
attack_dir = _local1.enemyCollided._x - _local1._x;
if (attack_dir < 0) {
_local1.enemyCollided._xscale = -100;
} else {
_local1.enemyCollided._xscale = 100;
}
_local1.enemyCollided.attachMovie(_local1.enemyCollided.attack, "stand", 1);
_local1.enemyCollided.state = 3;
}
coox = _local1._x - _local1.enemyCollided._x;
enemyPush = _local1.enemyCollided.speed + 4;
if (coox < 0) {
_local1._x = _local1._x - enemyPush;
} else {
_local1._x = _local1._x + enemyPush;
}
}
c++;
}
if (_local1._x < collision_left) {
_local1._x = collision_left;
}
if (_local1._x > collision_right) {
_local1._x = collision_right;
}
if (_local1.y < yMinScroll) {
_local1.y = yMinScroll;
}
if (_local1.y > yMaxScroll) {
_local1.y = yMaxScroll;
}
}
}
_root.newPlayerX = 200;
_root.newPlayerY = 189;
if (_root.room == 10) {
_root.newPlayerY = 275;
}
if (editorMode == 0) {
_root.scena.sprites.attachMovie("ellis", "player1", 100);
_root.scena.sprites.attachMovie("shadow", "shadow1", 0);
} else {
Mouse.hide();
_root.scena.sprites.attachMovie("pointer", "player1", 100);
_root.attachMovie("pointer2", "pointer", 5);
}
_root.pl1 = _root.scena.sprites.player1;
_root.pl1._x = _root.newPlayerX;
_root.pl1._y = _root.newPlayerY;
_root.scena.sprites.createEmptyMovieClip("shotLayer", 99);
_root.attachMovie("score_panel", "hud2", 101);
_root.attachMovie("ellis_hud", "hud1", 100);
_root.hud1.gotoAndPlay(2);
_root.hud1._x = 5;
_root.hud1._y = 195;
_root.hud1.bar._width = 0;
function enemy_backCollision(clip) {
var _local1 = clip;
if (_local1._x < collision_left) {
_local1._x = collision_left;
}
if (_local1._x > collision_right) {
_local1._x = collision_right;
}
if (_local1._y < yMinScroll) {
_local1._y = yMinScroll;
}
if (_local1._y > yMaxScroll) {
_local1._y = yMaxScroll;
}
}
function enemyCollision(clip) {
ns = 0;
while (ns <= 4) {
shot = eval ("_root.scena.sprites.shotLayer.shot" + ns);
if (clip.coll.hitTest(shot)) {
clip.range = Math.abs(shot.y - clip._y);
if (clip.range < 8) {
if ((clip.set == 3) && (clip.cover == 0)) {
clip.energy = clip.energy - (shot.damage * 200);
} else {
clip.energy = clip.energy - shot.damage;
}
_root.effetti(clip, "sound_thud", stopFlag);
if (clip.state != 10) {
switch (shot.genre) {
case 0 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 1 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 2 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 3 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 4 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 10 :
clip.attachMovie(clip.infected_hit2, "stand", 1);
break;
case 11 :
clip.attachMovie(clip.infected_hit2, "stand", 1);
break;
case 12 :
clip.attachMovie(clip.infected_hit2, "stand", 1);
}
}
clip.state = 10;
if (clip.set == 3) {
if (clip.cover == 1) {
_root.particelle("shot_stop", clip._x, shot._y, shot._xscale);
} else {
_root.particelle("blood_1", clip._x, shot._y, shot._xscale);
}
} else {
_root.particelle("blood_1", clip._x, shot._y, shot._xscale);
}
removeMovieClip(shot);
}
}
ns++;
}
}
function enemyAttack(clip, energyAmount, pos, scale) {
var _local1 = clip;
var _local2 = _root;
direction = _local1._xscale;
playerAttacked = _local1.pl1;
_local1.attachMovie("enemy_hits", "eh", 100);
_local1.eh._xscale = scale;
_local1.eh._yscale = scale;
_local1.eh._x = -pos;
_local1.eh._y = -pos;
if (playerAttacked.coll.hitTest(_local1.eh)) {
spritesOffset = Math.abs(playerAttacked.y - _local1.y);
if ((spritesOffset < 8) && (_local1.eh._currentframe <= 5)) {
_local2.effetti(playerAttacked, "sound_thud");
_local1.eh.gotoAndPlay("hit");
_local2.energy = _local2.energy - energyAmount;
_local2.hud1.gotoAndPlay(2);
}
}
}
function swap_Depths(clip) {
var _local1 = clip;
_local1.y = _local1._y;
_local1.swapDepths(Math.round(_local1.y));
_local1.dir = _local1._xscale / 100;
}
function spriteIsOnScreen(clip) {
var _local1 = clip;
onScreen_max = _local1.getBounds(_root).xMax;
onScreen_min = _local1.getBounds(_root).xMin;
if ((onScreen_max >= -100) && (onScreen_min <= 500)) {
if (_local1.set != 7) {
_local1.onScreen = 1;
}
} else {
_local1.onScreen = 0;
}
}
function player_position(clip) {
var _local1 = clip;
_local1.pl1 = _root.scena.sprites.player1;
_local1.player_dir = _root.scena.sprites.player1.dir;
_local1.playerX = _local1.pl1._x;
_local1.playerY = _local1.pl1.y;
}
function choose_side(clip) {
var _local1 = clip;
var _local2 = _root;
switch (_local1.attack_side) {
case 0 :
_local1.side = _local1.playerX - _local1.attack_distance;
if (_local1.side <= _local2.collision_left) {
_local1.side = _local2.collision_left + 1;
}
return;
case 1 :
_local1.side = _local1.playerX + _local1.attack_distance;
if (_local1.side >= _local2.collision_right) {
_local1.side = _local2.collision_right - 1;
}
return;
default :
_local1.side = _local1.playerX - _local1.attack_distance;
if (_local1.side > _local2.collision_left) {
break;
}
_local1.side = _local2.collision_left + 1;
}
}
function check_distance(clip, position_x, position_y) {
var _local1 = clip;
_local1.xOffset = _local1._x - position_x;
_local1.yOffset = _local1._y - position_y;
_local1.absxOffset = Math.abs(_local1.xOffset);
_local1.absyOffset = Math.abs(_local1.yOffset);
}
function traiettoria(clip, position_x, position_y) {
var _local1 = clip;
_root.check_distance(_local1, position_x, position_y);
_local1.wait = _local1.wait + 1;
if (_local1.wait >= _local1.timeOfReaction) {
_local1.speedUnit = _local1.speed / (_local1.absxOffset + _local1.absyOffset);
_local1.s_x = _local1.speedUnit * _local1.xOffset;
_local1.s_y = _local1.speedUnit * _local1.yOffset;
_local1.wait = 0;
}
}
function moveToPoint(clip) {
var _local1 = clip;
_local1._x = _local1._x - _local1.s_x;
_local1._y = _local1._y - _local1.s_y;
_local1._xscale = 100 * (_local1.s_x / Math.abs(_local1.s_x));
if ((_local1.absxOffset < 10) && (_local1.absyOffset < 6)) {
attack_dir = _local1._x - _local1.playerX;
if (attack_dir < 0) {
_local1._xscale = -100;
} else {
_local1._xscale = 100;
}
_local1._y = _local1.playerY;
_local1.attachMovie(_local1.attack, "stand", 1);
_local1.state = 3;
}
}
function escapeToPoint(clip) {
var _local1 = clip;
switch (_local1.set) {
case 5 :
speedMultiplier = 2;
break;
default :
speedMultiplier = 1.5;
}
speedMultiplier = 1;
_local1._x = _local1._x - (_local1.s_x * speedMultiplier);
_local1._y = _local1._y - (_local1.s_y * speedMultiplier);
_local1._xscale = 100 * (_local1.s_x / Math.abs(_local1.s_x));
if ((_local1.absxOffset < 10) && (_local1.absyOffset < 6)) {
_local1.attachMovie(_local1.stand, "stand", 1);
_local1.wait = 0;
_local1.standingTime = Math.floor(Math.random() * 60);
attack_dir = _local1._x - _local1.playerX;
if (attack_dir < 0) {
_local1._xscale = -100;
} else {
_local1._xscale = 100;
}
_local1.state = 6;
}
}
function choose_safePoint(clip) {
var _local1 = _root;
var _local2 = clip;
random_Xposition = (Math.random() * 600) - 300;
random_Yposition = (Math.random() * 100) - 50;
Xresult = _local2.playerX + random_Xposition;
Yresult = _local2.playerY + random_Yposition;
if (Xresult < _local1.collision_left) {
Xresult = _local1.collision_left;
}
if (Xresult > _local1.collision_right) {
Xresult = _local1.collision_right;
}
if (Yresult < _local1.yMinScroll) {
Yresult = _local1.yMinScroll;
}
if (Yresult > _local1.yMaxscroll) {
Yresult = _local1.yMaxScroll;
}
_local2.punto_x = Xresult;
_local2.punto_y = Yresult;
}
function scrolling(clip, sx, sy) {
var _local1 = _root;
if (_local1.scrollingEnabled == 1) {
plx = clip.coll.getBounds(_local1).xMax;
ply = clip.coll.getBounds(_local1).yMax;
Xscene = _local1.scena;
Xscene._x = Xscene._x + ((160 - plx) * 0.2);
if (Xscene._x > scrollMin) {
Xscene._x = 0;
}
if (Xscene._x < scrollMax) {
Xscene._x = scrollMax;
}
if (type_of_scenario == 1) {
_local1.scena._y = _local1.scena._y + ((190 - ply) * 0.1);
}
if (_local1.room_parallasse == 1) {
_local1.parallasse._x = _local1.scena._x / 4;
}
}
}
function particelle(tipo, parx, pary, parScale) {
_root.scena.particles.attachMovie(tipo, "par" + _root.np, _root.np);
par = eval ("_root.scena.particles.par" + _root.np);
par._x = parx;
par._y = pary;
par._xscale = parScale;
_root.np = _root.np + 1;
}
function bloodParticles(tipo, howMuch, parx, pary, parScale, bloodSpeed_x, bloodSpeed_y) {
nblood = 0;
while (nblood < howMuch) {
_root.scena.particles.attachMovie(tipo, "par" + _root.np, _root.np);
par = eval ("_root.scena.particles.par" + _root.np);
par._x = parx;
par._y = pary;
par.decay = 0;
par.speed = (Math.random() * bloodSpeed_x) + 1;
par.yspeed = Math.random() * bloodSpeed_y;
par._xscale = parScale;
_root.np = _root.np + 1;
nblood++;
}
}
function floor_particle(tipo, parx, pary, parScale) {
_root.scena.back.attachMovie(tipo, "par" + _root.objsLayer, _root.objsLayer);
par = eval ("_root.scena.back.par" + _root.objsLayer);
par._x = parx;
par._y = pary;
par._xscale = parScale;
_root.objsLayer = _root.objsLayer + 1;
}
function effetti(clip, sfx, stopFlag) {
var _local1 = clip;
if (_root.sfxs == 1) {
_local1.suono = new Sound(_local1);
_local1.suono.attachsound(sfx);
_local1.suono.stop();
_local1.suono.start(0, 0);
}
}
_root.np = 100;
_root.volume = 10;
function scrolling9(clip) {
var _local1 = _root;
_local1.parallasse._x = _local1.parallasse._x - 0.5;
if (_local1.parallasse._x <= -320) {
_local1.parallasse._x = 0;
}
}
function bossTimer(clip) {
clip.swapDepths(clip._y - 15);
}
function bossDamage(clip) {
ns = 0;
while (ns <= 4) {
shot = eval ("_root.scena.sprites.shotLayer.shot" + ns);
if (clip.coll.hitTest(shot)) {
clip.energy = clip.energy - shot.damage;
clip.stand.gotoAndPlay(40);
_root.effetti(clip, "sound_groan", stopFlag);
_root.particelle("blood_1", clip._x + 30, shot._y, shot._xscale);
removeMovieClip(shot);
}
ns++;
}
}
Frame 7
_root.attachMovie("curtain", "curtain", 1000);
_root.inGame = 0;
_root.tutorial.map.removeMovieClip();
_root.darkness.removeMovieClip();
_root.scena.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.gotoAndPlay(5);
Frame 8
quality = "high";
_root.musica(_root, "//");
_root.inGame = 0;
_root.tutorial.removeMovieClip();
_root.darkness.removeMovieClip();
_root.scena.removeMovieClip();
_root.items.removeMovieClip;
_root.hud1.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.energy = 100;
Instance of Symbol 1202 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.gotoAndPlay(4);
}
}
Frame 9
_root.musica(_root, "endingTheme");
stop();
finalBonus = 5000 + (1000 * _root.mario_stars);
_root.score = _root.score + finalBonus;
_root.inGame = 0;
_root.tutorial.removeMovieClip();
_root.darkness.removeMovieClip();
_root.scena.removeMovieClip();
_root.items.removeMovieClip();
_root.hud1.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.energy = 100;
Instance of Symbol 1218 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.gotoAndStop(10);
}
}
Frame 10
_root.inGame = 0;
Instance of Symbol 1222 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.mario_stars = 0;
_root.score = 0;
_root.finalBonus = 0;
_root.gotoAndStop(2);
}
}
Symbol 41 MovieClip [curtain] Frame 1
l = 0;
l = 0;
while (l < 8) {
this.attachMovie("square", "sq" + l, l);
sq = eval ("this.sq" + l);
sq._x = 40 * l;
l++;
}
l = 8;
this.onEnterFrame = function () {
this.attachMovie("square2", "sq" + l, l);
sq = eval ("this.sq" + l);
sq._x = 40 * l;
if (l >= 0) {
l = l - 1;
}
};
Symbol 41 MovieClip [curtain] Frame 31
removeMovieClip(this);
Symbol 43 MovieClip [square2] Frame 10
stop();
Symbol 44 MovieClip [square] Frame 1
stop();
Symbol 47 MovieClip [intro_pointer] Frame 1
this.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Symbol 53 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 62 Button
on (release) {
_root.editorMode = 0;
_root.room = parseInt(_root.chosenRoom);
_root.attachMovie("curtain", "curtain", 10000);
_root.gotoAndPlay(2);
}
Symbol 68 Button
on (release) {
this.gotoAndStop(151);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 75 Button
on (release) {
_parent.gotoAndStop(150);
}
Symbol 80 Button
on (release) {
if (_root.music == 0) {
_root.music = 1;
this.music.gotoAndStop(2);
} else {
_root.music = 0;
_root.musica(_level0, "//");
this.music.gotoAndStop(1);
}
}
Symbol 81 Button
on (release) {
if (_level0.sfxs == 0) {
_level0.sfxs = 1;
this.sound.gotoAndStop(2);
} else {
_level0.sfxs = 0;
this.sound.gotoAndStop(1);
}
}
Symbol 82 MovieClip Frame 1
if (_root.music == 1) {
this.music.gotoAndStop(2);
} else {
this.music.gotoAndStop(1);
}
if (_root.sfxs == 1) {
this.sound.gotoAndStop(2);
} else {
this.sound.gotoAndStop(1);
}
Symbol 82 MovieClip Frame 15
stop();
Symbol 83 MovieClip [title] Frame 150
stop();
Symbol 88 MovieClip [subaru] Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
speed = _local1.speed;
this._y = 100 - (_local1.speed / 10);
this._yscale = 100 - (_local1.speed / 10);
if (Key.isDown(38)) {
if (_local1.speed < 145) {
_local1.speed = _local1.speed + 5;
} else {
_local1.speed = 150;
}
}
if (Key.isDown(40)) {
if (_local1.speed > 4) {
_local1.speed = _local1.speed - 4;
} else {
_local1.speed = 0;
}
}
_local1.spazio = _local1.spazio + _local1.speed;
_local1.spaziopercorso = _local1.spaziopercorso + _local1.speed;
};
Symbol 91 MovieClip [road_00] Frame 1
this.onEnterFrame = function () {
};
Symbol 93 MovieClip [intro_fog] Frame 1
n = _root.path;
startsize = 5;
this.farness = (Math.random() * 60) - 30;
this.onEnterframe = function () {
this.swapDepths(100000 - this.livello);
speed_fraction = _root.speed / 2000;
if (this.getbounds(_root).ymax > 150) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x;
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = 50 - spazio;
this._xscale = (dir * (spazio + startsize)) * 10;
this._yscale = math.abs(this._xscale);
};
Symbol 93 MovieClip [intro_fog] Frame 2
stop();
Symbol 96 MovieClip [dirt2] Frame 1
n = _root.path;
startsize = 5;
this._alpha = 0;
this.farness = Math.random() * 5;
this.swapDepths(100000 - this.livello);
this.onEnterframe = function () {
speed_fraction = _root.speed / 2000;
if (this.getbounds(_root).ymax > 200) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x - ((this._width / 2) * farness);
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = this._alpha + 5;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = math.abs(this._xscale);
};
Symbol 96 MovieClip [dirt2] Frame 2
stop();
Symbol 97 MovieClip [dirt] Frame 1
n = _root.path;
startsize = 5;
this._alpha = 0;
this.farness = Math.random() * 5;
this.swapDepths(100000 - this.livello);
this.onEnterframe = function () {
speed_fraction = _root.speed / 2000;
if (this.getbounds(_root).ymax > 200) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x + ((this._width / 2) * farness);
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = this._alpha + 5;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = math.abs(this._xscale);
};
Symbol 97 MovieClip [dirt] Frame 2
stop();
Symbol 106 MovieClip [bushes] Frame 1
n = _root.path;
startsize = 5;
this.swapDepths(100000 - this.livello);
this.onEnterframe = function () {
speed_fraction = _root.speed / 2000;
if (this.getbounds(_root).ymax > 200) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
switch (posizione) {
case 1 :
this.dir = -1;
pos = lev.getbounds(_root.road).xmax + ((this._width / 2) * farness);
break;
case 2 :
this.dir = 1;
pos = lev.getbounds(_root.road).xmin - ((this._width / 2) * farness);
}
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = math.abs(this._xscale);
};
Symbol 106 MovieClip [bushes] Frame 2
stop();
ran = Math.floor(Math.random() * 6);
this.gotoAndStop(ran);
Symbol 165 MovieClip [bigone_walk] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 165 MovieClip [bigone_walk] Frame 15
_root.effetti(this, "sound_heavystep");
Symbol 179 MovieClip [policeman_walk] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 179 MovieClip [policeman_walk] Frame 17
_root.effetti(this, "sound_heavystep");
Symbol 190 MovieClip [infected3_run] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 190 MovieClip [infected3_run] Frame 17
_root.effetti(this, "sound_heavystep");
Symbol 211 MovieClip [bigone_attack] Frame 15
_root.enemyAttack(_parent, 10, 75, 150);
_root.effetti(this, "sound_sword");
Symbol 211 MovieClip [bigone_attack] Frame 32
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 218 MovieClip [policeman_attack] Frame 3
_root.enemyAttack(_parent, 5, 40);
Symbol 218 MovieClip [policeman_attack] Frame 10
_root.enemyAttack(_parent, 5, 40);
Symbol 218 MovieClip [policeman_attack] Frame 17
_root.enemyAttack(_parent, 5, 40);
Symbol 218 MovieClip [policeman_attack] Frame 30
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 225 MovieClip [infected3_attack] Frame 15
_root.effetti(this, "sound_chainsaw");
Symbol 225 MovieClip [infected3_attack] Frame 16
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 20
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 25
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 30
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 35
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 40
_root.enemyAttack(_parent, 2, 40);
Symbol 225 MovieClip [infected3_attack] Frame 47
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 232 MovieClip [infected2_attack] Frame 1
strangleX = 40;
pl = _root.scena.sprites.player1;
if (pl.state != 7) {
_root.effetti(this, "sound_laugh");
_parent._y = pl.y - 4;
pl._xscale = _parent._xscale;
switch (_parent._xscale) {
case 100 :
pl._x = _parent._x - strangleX;
break;
case -100 :
pl._x = _parent._x + strangleX;
}
pl.z = pl._ground;
pl.state = 7;
} else {
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
}
Symbol 232 MovieClip [infected2_attack] Frame 13
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 232 MovieClip [infected2_attack] Frame 25
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 232 MovieClip [infected2_attack] Frame 37
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 232 MovieClip [infected2_attack] Frame 40
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 249 MovieClip [infected2_death] Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 30, _local1._xscale, 5, 2);
};
Symbol 249 MovieClip [infected2_death] Frame 27
stop();
cont = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 60) {
if (_parent.nTimesDown < 2) {
play();
} else {
_parent.removeMovieClip();
}
}
};
Symbol 249 MovieClip [infected2_death] Frame 28
play();
Symbol 249 MovieClip [infected2_death] Frame 52
_parent.energy = 60;
_parent.state = 1;
_parent.death = 0;
_parent.wait = 0;
_parent.shadow._visible = true;
_parent.attachMovie("playerCollision", "coll", 0);
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 254 MovieClip [infected3_hit2] Frame 1
_parent.cover = 0;
Symbol 254 MovieClip [infected3_hit2] Frame 10
_root.effetti(this, "sound_blow");
Symbol 254 MovieClip [infected3_hit2] Frame 25
_root.effetti(this, "sound_blow");
Symbol 254 MovieClip [infected3_hit2] Frame 40
_root.effetti(this, "sound_blow");
Symbol 254 MovieClip [infected3_hit2] Frame 50
stop();
_parent.cover = 1;
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 261 MovieClip [policeman_hit2] Frame 14
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 263 MovieClip [bigone_hit] Frame 2
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 264 MovieClip [policeman_hit] Frame 2
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 267 MovieClip [infected3_hit] Frame 2
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 268 MovieClip [infected2_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 50, _parent._xscale, 5, 2);
Symbol 268 MovieClip [infected2_hit] Frame 4
_parent.state = 1;
_parent.attachMovie("infected2_stand", "stand", 1);
Symbol 269 MovieClip [bigone_death] Frame 1
cont = 0;
this.onEnterFrame = function () {
var _local1 = _parent;
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
}
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 269 MovieClip [bigone_death] Frame 39
removeMovieClip(_parent);
Symbol 278 MovieClip [policeman_death] Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 278 MovieClip [policeman_death] Frame 21
stop();
removeMovieClip(_parent);
Symbol 303 MovieClip [infected3_death] Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 303 MovieClip [infected3_death] Frame 36
_root.effetti(this, "sound_boom");
Symbol 303 MovieClip [infected3_death] Frame 38
_root.enemyAttack(_parent, 10, 0, 200);
Symbol 303 MovieClip [infected3_death] Frame 56
stop();
removeMovieClip(_parent);
Symbol 312 MovieClip [boomer_attack] Frame 5
parx = this.fp._x;
pary = this.fp._y;
this.dir = _parent._xscale / 100;
l = 0;
_root.effetti(this, "sound_burp");
this.onEnterFrame = function () {
if (_currentframe < 20) {
this.attachMovie("boomer_puke", "par" + l, l);
par = eval ("this.par" + l);
par._x = parx;
par._y = pary;
par.dir = dir;
l = l + 1;
}
};
Symbol 312 MovieClip [boomer_attack] Frame 45
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 325 MovieClip [boomer_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 325 MovieClip [boomer_hit] Frame 19
_parent.state = 1;
_parent.attachMovie("boomer_stand", "stand", 1);
Symbol 346 MovieClip [boomer_death] Frame 5
_root.effetti(this, "sound_boom");
this.onEnterFrame = function () {
xpos = _parent._x + ((Math.random() * 24) - 12);
ypos = (_parent._y - 40) + (Math.random() * 12);
scale = 100;
_root.particelle("boomer_blood", xpos, ypos, scale);
};
Symbol 346 MovieClip [boomer_death] Frame 6
_root.effetti(_parent, "sound_guts");
Symbol 346 MovieClip [boomer_death] Frame 7
_root.enemyAttack(_parent, 10, 0, 200);
Symbol 346 MovieClip [boomer_death] Frame 30
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 355 MovieClip [worker_death] Frame 1
dir = _parent._xscale / 100;
decay = 0;
_parent._x = _parent._x + (30 * dir);
this.onEnterFrame = function () {
var _local1 = _parent;
decay = decay + 0.1;
if (decay < 6) {
_local1._x = _local1._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 355 MovieClip [worker_death] Frame 23
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 364 MovieClip [infected_death] Frame 1
dir = _parent._xscale / 100;
decay = 0;
this.onEnterFrame = function () {
var _local1 = _parent;
decay = decay + 0.1;
if (decay < 6) {
_local1._x = _local1._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 364 MovieClip [infected_death] Frame 25
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 367 MovieClip [worker_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 367 MovieClip [worker_hit] Frame 3
_parent.state = 1;
_parent.attachMovie("worker_stand", "stand", 1);
Symbol 372 MovieClip [infected_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 372 MovieClip [infected_hit] Frame 21
_parent.state = 1;
_parent.attachMovie("infected_stand", "stand", 1);
Symbol 381 MovieClip [worker_attack] Frame 7
_root.enemyAttack(_parent, 4, 30);
Symbol 381 MovieClip [worker_attack] Frame 20
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 390 MovieClip [infected_attack] Frame 5
_root.enemyAttack(_parent, 2, 30);
Symbol 390 MovieClip [infected_attack] Frame 13
_root.enemyAttack(_parent, 2, 30);
Symbol 390 MovieClip [infected_attack] Frame 16
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 399 MovieClip Frame 1
if (_root.machinegun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 399 MovieClip Frame 2
_root.effetti(this, "sound_machinegun", stopFlag);
_root.shotGeneration(this, 1);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 399 MovieClip Frame 3
if (_root.machinegun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 399 MovieClip Frame 4
_root.effetti(this, "sound_machinegun", stopFlag);
_root.shotGeneration(this, 1);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 399 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 400 MovieClip [e_machinegun] Frame 1
stop();
Symbol 400 MovieClip [e_machinegun] Frame 2
stop();
Symbol 409 MovieClip Frame 1
if (_root.magnum_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 409 MovieClip Frame 2
_root.effetti(this, "sound_shotgun", stopFlag);
_root.shotGeneration(this, 4);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 409 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 410 MovieClip [e_magnum] Frame 1
stop();
Symbol 410 MovieClip [e_magnum] Frame 2
stop();
Symbol 420 MovieClip Frame 1
if (_root.flamethrower_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 420 MovieClip Frame 2
_root.effetti(this, "sound_flame", stopFlag);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("flamethrowerBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.shotGeneration(this, 3);
Symbol 420 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 421 MovieClip [e_flamethrower] Frame 1
stop();
_root.effetti(this, "sound_gas");
Symbol 421 MovieClip [e_flamethrower] Frame 2
stop();
Symbol 430 MovieClip Frame 1
if (_root.gun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 430 MovieClip Frame 2
_root.effetti(this, "sound_gun", stopFlag);
_root.shotGeneration(this, 0);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 430 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 431 MovieClip [e_gun] Frame 1
stop();
Symbol 431 MovieClip [e_gun] Frame 2
stop();
Symbol 444 MovieClip Frame 1
if (_root.shotgun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 444 MovieClip Frame 2
_root.effetti(this, "sound_shotgun", stopFlag);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("shotgunBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.shotGeneration(this, 2);
Symbol 444 MovieClip Frame 16
_root.effetti(this, "sound_reload", stopFlag);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 45, _root.scena.sprites.player1._xscale);
Symbol 444 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 445 MovieClip [e_shotgun] Frame 1
stop();
Symbol 445 MovieClip [e_shotgun] Frame 2
stop();
Symbol 454 MovieClip [e_standlegs] Frame 1
_parent.standtorso._y = -27;
Symbol 454 MovieClip [e_standlegs] Frame 6
_parent.standtorso._y = -28;
Symbol 454 MovieClip [e_standlegs] Frame 11
_parent.standtorso._y = -29;
Symbol 454 MovieClip [e_standlegs] Frame 16
_parent.standtorso._y = -30;
Symbol 454 MovieClip [e_standlegs] Frame 21
_parent.standtorso._y = -29;
Symbol 454 MovieClip [e_standlegs] Frame 26
_parent.standtorso._y = -28;
Symbol 461 MovieClip [e_jumplegs] Frame 1
_parent.standtorso._y = -28;
Symbol 461 MovieClip [e_jumplegs] Frame 4
_parent.standtorso._y = -30;
Symbol 461 MovieClip [e_jumplegs] Frame 7
stop();
_parent.standtorso._y = -32;
Symbol 474 MovieClip [e_legs] Frame 1
_parent.standtorso._y = -28;
Symbol 474 MovieClip [e_legs] Frame 2
_root.effetti(this, "sound_step");
Symbol 474 MovieClip [e_legs] Frame 5
_parent.standtorso._y = -29;
Symbol 474 MovieClip [e_legs] Frame 9
_parent.standtorso._y = -31;
Symbol 474 MovieClip [e_legs] Frame 13
_parent.standtorso._y = -28;
Symbol 474 MovieClip [e_legs] Frame 15
_root.effetti(this, "sound_step");
Symbol 474 MovieClip [e_legs] Frame 17
_parent.standtorso._y = -29;
Symbol 474 MovieClip [e_legs] Frame 21
_parent.standtorso._y = -31;
Symbol 475 MovieClip [ellis] Frame 1
dir = -1;
this._xscale = -100;
this.attachMovie("playerCollision", "coll", 0);
_root.swapWeapon(this);
_root.swapMelee(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.attachMovie("e_standlegs", "standlegs", 5);
this.standtorso._y = chestPosition_y;
shadow = _root.scena.sprites.shadow1;
_ground = 0;
z = _ground;
y = _root.newPlayerY;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.pausa == 1) {
_local1.gotoAndStop("paused");
_local1.state = 8;
}
_local1.standtorso._x = chestPosition_x;
_local1._y = _local1.y + _local1.z;
shadow._x = _local1._x;
shadow._y = _local1.y;
_local1.swapDepths(Math.floor(_local1.y));
_local2.scena.sprites.shotLayer.swapDepths(Math.floor(_local1.y - 1));
if ((_local2.fire == 1) && (_local1.standtorso._currentframe == 1)) {
_local1.standtorso.gotoAndStop("fire");
}
switch (state) {
case 1 :
if ((_local2.action == 1) && (_local1.standtorso._currentframe == 1)) {
state = 6;
break;
}
if ((_local2.melee == 1) && (_local1.standtorso._currentframe == 1)) {
state = 5;
_local1.gotoAndStop("melee");
} else if (_local2.left == 1) {
_currentWalkDirection = 0;
_local1._xscale = 100;
_local1.gotoAndStop("walk");
} else if (_local2.right == 1) {
_currentWalkDirection = 1;
_local1._xscale = -100;
_local1.gotoAndStop("walk");
} else if ((_local2.up == 1) || (_local2.dw == 1)) {
_local1.gotoAndStop("walk");
} else if (_local2.jump == 1) {
_local1.state = 4;
decay = 0;
jumpspeed = 0;
_local1.gotoAndStop("jump");
} else {
break;
dir = _local1._xscale / 100;
if ((_local2.melee == 1) && (_local1.standtorso._currentframe == 1)) {
_local1.state = 5;
_local1.gotoAndStop("melee");
} else {
if ((_local2.right == 1) && (_local2.left == 0)) {
_currentWalkDirection = 1;
_local1._xscale = -100;
}
if ((_local2.left == 1) && (_local2.right == 0)) {
_currentWalkDirection = 0;
_local1._xscale = 100;
}
if ((_local2.left == 1) && (_local2.right == 1)) {
switch (_currentWalkDirection) {
case 0 :
_local1._xscale = -100;
_currentWalkDirection = 0;
break;
case 1 :
_local1._xscale = 100;
_currentWalkDirection = 1;
}
}
if ((_local2.left == 1) || (_local2.right == 1)) {
_local1._x = _local1._x - (4 * dir);
}
if (_local2.up == 1) {
_local1.y = _local1.y - 2;
}
if (_local2.dw == 1) {
_local1.y = _local1.y + 2;
}
if ((((_local2.left == 0) && (_local2.right == 0)) && (_local2.up == 0)) && (_local2.dw == 0)) {
_local1.gotoAndStop("stand");
} else if (_local2.jump == 1) {
_local1.state = 4;
decay = 0;
jumpspeed = 0;
_local1.gotoAndStop("jump");
} else {
break;
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
_local1.gotoAndStop("stand");
state = 1;
}
_local1._x = _local1._x - (4 * dir);
break;
switch (_local1.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
if (_local1.meleeAttack._currentframe == frameToStop) {
_local1.meleeAttack.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
_local2.pickup(_local1);
_local2.swapMelee(_local1);
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
_local1.gotoAndStop("grabbed");
if (_local1.ellis_grabbed._currentframe == 40) {
_local1.ellis_grabbed.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
if (_local2.pausa != 0) {
break;
}
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
}
}
}
}
}
case 2 :
dir = _local1._xscale / 100;
if ((_local2.melee == 1) && (_local1.standtorso._currentframe == 1)) {
_local1.state = 5;
_local1.gotoAndStop("melee");
} else {
if ((_local2.right == 1) && (_local2.left == 0)) {
_currentWalkDirection = 1;
_local1._xscale = -100;
}
if ((_local2.left == 1) && (_local2.right == 0)) {
_currentWalkDirection = 0;
_local1._xscale = 100;
}
if ((_local2.left == 1) && (_local2.right == 1)) {
switch (_currentWalkDirection) {
case 0 :
_local1._xscale = -100;
_currentWalkDirection = 0;
break;
case 1 :
_local1._xscale = 100;
_currentWalkDirection = 1;
}
}
if ((_local2.left == 1) || (_local2.right == 1)) {
_local1._x = _local1._x - (4 * dir);
}
if (_local2.up == 1) {
_local1.y = _local1.y - 2;
}
if (_local2.dw == 1) {
_local1.y = _local1.y + 2;
}
if ((((_local2.left == 0) && (_local2.right == 0)) && (_local2.up == 0)) && (_local2.dw == 0)) {
_local1.gotoAndStop("stand");
} else if (_local2.jump == 1) {
_local1.state = 4;
decay = 0;
jumpspeed = 0;
_local1.gotoAndStop("jump");
} else {
break;
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
_local1.gotoAndStop("stand");
state = 1;
}
_local1._x = _local1._x - (4 * dir);
break;
switch (_local1.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
if (_local1.meleeAttack._currentframe == frameToStop) {
_local1.meleeAttack.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
_local2.pickup(_local1);
_local2.swapMelee(_local1);
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
_local1.gotoAndStop("grabbed");
if (_local1.ellis_grabbed._currentframe == 40) {
_local1.ellis_grabbed.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
if (_local2.pausa != 0) {
break;
}
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
}
}
}
}
case 4 :
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
_local1.gotoAndStop("stand");
state = 1;
}
_local1._x = _local1._x - (4 * dir);
break;
case 5 :
switch (_local1.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
if (_local1.meleeAttack._currentframe == frameToStop) {
_local1.meleeAttack.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
_local2.pickup(_local1);
_local2.swapMelee(_local1);
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
_local1.gotoAndStop("grabbed");
if (_local1.ellis_grabbed._currentframe == 40) {
_local1.ellis_grabbed.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
if (_local2.pausa != 0) {
break;
}
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
}
}
case 6 :
_local2.pickup(_local1);
_local2.swapMelee(_local1);
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
case 7 :
_local1.gotoAndStop("grabbed");
if (_local1.ellis_grabbed._currentframe == 40) {
_local1.ellis_grabbed.removeMovieClip();
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
} else {
break;
if (_local2.pausa != 0) {
break;
}
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
}
case 8 :
if (_local2.pausa != 0) {
break;
}
_local2.swapWeapon(_local1);
_local1.attachMovie(_local1._currentWeapon, "standtorso", 4);
_local1.standtorso._x = chestPosition_x;
_local1.standtorso._y = chestPosition_y;
_local1.gotoAndStop("stand");
_local1.state = 1;
break;
}
_local2.backCollision(_local2.scena.sprites.player1);
};
Symbol 475 MovieClip [ellis] Frame 4
stop();
state = 1;
this.attachMovie("e_standlegs", "standlegs", 5);
if (_root.lightOn == 1) {
this.attachMovie("playerLight", "light", 8);
this.light._x = -5;
this.light._y = -24;
}
Symbol 475 MovieClip [ellis] Frame 7
stop();
state = 2;
this.attachMovie("e_legs", "standlegs", 5);
Symbol 475 MovieClip [ellis] Frame 10
stop();
this.attachMovie("e_jumplegs", "standlegs", 5);
Symbol 475 MovieClip [ellis] Frame 13
stop();
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
this.attachMovie(this._currentMelee, "meleeAttack", 7);
Symbol 475 MovieClip [ellis] Frame 16
stop();
Symbol 475 MovieClip [ellis] Frame 19
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
this.attachMovie("ellis_grabbed", "ellis_grabbed", 7);
Symbol 475 MovieClip [ellis] Frame 22
this.ellis_grabbed.removeMovieClip();
this.meleeAttack.removeMovieClip();
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
this.z = this._ground;
Symbol 482 MovieClip Frame 1
_root.safe_points.push(this);
this.spx = this.getBounds(_root.scena.sprites).xMax;
this.spy = this.getBounds(_root.scena.sprites).yMax;
Symbol 489 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip [backtile_02] Frame 1
onClipEvent (load) {
this.room = 3;
this.rightKey = 1;
}
Symbol 496 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 496 MovieClip in Symbol 497 MovieClip [fronttile_30] Frame 1
onClipEvent (load) {
this.room = 1;
this.rightKey = 1;
}
Instance of Symbol 496 MovieClip in Symbol 498 MovieClip [fronttile_32] Frame 1
onClipEvent (load) {
this.room = 2;
this.rightKey = 2;
}
Symbol 502 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_root.spriteIsOnScreen(_local1);
if (_local1.onScreen == 1) {
pl = _root.scena.sprites.player1;
plx = pl.getBounds(_parent).xMax - 50;
ply = pl.getBounds(_parent).yMin;
xoff = plx - _local1._x;
yoff = ply - _local1._y;
_local1.clear();
vx1 = _local1.getBounds(_local1).xMin;
vx2 = _local1.getBounds(_local1).xMax;
vy1 = _local1.getBounds(_local1).yMin;
vy2 = _local1.getBounds(_local1).yMax;
vvx1 = _local1.getBounds(_local1).xMin - xoff;
vvx2 = _local1.getBounds(_local1).xMax - xoff;
vvy1 = _local1.getBounds(_local1).yMin - yoff;
vvy2 = _local1.getBounds(_local1).yMax - yoff;
alpha = 100;
_local1.lineStyle(1, 6749952, 0);
_local1.beginFill(0, alpha);
_local1.moveTo(vx1, vy1);
_local1.lineTo(vvx1, vvy1);
_local1.lineTo(vvx2, vvy1);
_local1.lineTo(vx2, vy1);
_local1.lineTo(vx1, vy1);
_local1.endFill();
_local1.lineStyle(1, 6749952, 0);
_local1.beginFill(0, alpha);
_local1.moveTo(vx2, vy1);
_local1.lineTo(vvx2, vvy1);
_local1.lineTo(vvx2, vvy2);
_local1.lineTo(vx2, vy2);
_local1.lineTo(vx2, vy1);
_local1.endFill();
_local1.lineStyle(1, 6749952, 0);
_local1.beginFill(0, alpha);
_local1.moveTo(vx1, vy2);
_local1.lineTo(vx1, vy1);
_local1.lineTo(vvx1, vvy1);
_local1.lineTo(vvx1, vvy2);
_local1.lineTo(vx1, vy2);
_local1.endFill();
_local1.lineStyle(1, 6749952, 0);
_local1.beginFill(0, alpha);
_local1.moveTo(vx1, vy2);
_local1.lineTo(vvx1, vvy2);
_local1.lineTo(vvx2, vvy2);
_local1.lineTo(vx2, vy1);
_local1.lineTo(vx1, vy2);
_local1.endFill();
}
};
Instance of Symbol 496 MovieClip in Symbol 528 MovieClip [fronttile_52] Frame 1
onClipEvent (load) {
this.room = 4;
this.rightKey = 9;
}
Instance of Symbol 496 MovieClip in Symbol 529 MovieClip [fronttile_51] Frame 1
onClipEvent (load) {
this.room = 11;
this.rightKey = 5;
}
Symbol 541 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 541 MovieClip in Symbol 542 MovieClip [backtile_63] Frame 1
onClipEvent (load) {
this.room = 9;
this.rightKey = 6;
}
Instance of Symbol 541 MovieClip in Symbol 551 MovieClip [backtile_43] Frame 1
onClipEvent (load) {
this.room = 5;
this.rightKey = 9;
}
Instance of Symbol 541 MovieClip in Symbol 563 MovieClip [backtile_40] Frame 1
onClipEvent (load) {
this.room = 8;
this.rightKey = 8;
}
Symbol 566 MovieClip [backtile_60] Frame 1
Instance of Symbol 541 MovieClip in Symbol 566 MovieClip [backtile_60] Frame 1
onClipEvent (load) {
this.room = 11;
this.rightKey = 0;
}
Instance of Symbol 489 MovieClip in Symbol 575 MovieClip [backtile_23] Frame 1
onClipEvent (load) {
this.room = 8;
this.rightKey = 3;
}
Symbol 584 MovieClip [backtile_20] Frame 1
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
var _local1 = _root;
sx = sprite._x;
py = -30;
i = 0;
while (i < 3) {
px = sx + ((Math.random() * 600) - 300);
_local1.particelle("rain", px, py, 100);
i++;
}
};
Instance of Symbol 489 MovieClip in Symbol 584 MovieClip [backtile_20] Frame 1
onClipEvent (load) {
this.room = 3;
this.rightKey = 2;
}
Symbol 599 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
if (Math.abs(_local2.getBounds(_local1.scena.sprites).xMin - _local1.scena.sprites.player1._x) < 50) {
_local2.clip._visible = true;
if (_local1.action == 1) {
_local1.gotoAndStop("credits");
}
} else {
_local2.clip._visible = false;
}
};
Symbol 601 MovieClip [backtile_70] Frame 1
interval = 0;
nInf = 0;
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
if (_root.pausa == 0) {
interval = interval + 1;
if (((interval >= 30) && (nInf < 100)) && (_root.laHorde < 30)) {
_root.scena.sprites.attachMovie("infected_1", "inf" + _root.enemyLayer, _root.enemyLayer);
inf = eval ("_root.scena.sprites.inf" + _root.enemyLayer);
inf.set = 1;
inf._x = (pl._x + 300) + Math.floor(Math.random() * 100);
inf._y = Math.floor((pl._y + (Math.random() * 50)) - 25);
_root.enemyArray.push(inf);
_root.enemyLayer = _root.enemyLayer + 1;
interval = 0;
_root.laHorde = _root.laHorde + 1;
nInf = nInf + 1;
}
}
};
Instance of Symbol 489 MovieClip in Symbol 604 MovieClip [backtile_00] Frame 1
onClipEvent (load) {
this.room = 0;
this.rightKey = 0;
}
Symbol 610 MovieClip [shadow] Frame 1
if (_parent.keeper == 1) {
this.attachMovie("keykeeper_icon", "kki", 0);
}
Symbol 611 MovieClip [infected_1] Frame 1
death = 0;
nTimesDown = 0;
wait = 0;
switch (set) {
case 1 :
stand = "infected_stand";
walk = "infected_run";
attack = "infected_attack";
infected_hit = "infected_hit";
infected_hit2 = "infected_hit";
infectedDeath = "infected_death";
attack_distance = 40;
killscore = 10;
this.timeOfReaction = 60;
this.speed = 4;
energy = 20;
break;
case 2 :
stand = "infected2_stand";
walk = "infected2_run";
attack = "infected2_attack";
infected_hit = "infected2_hit";
infected_hit2 = "infected2_hit";
infectedDeath = "infected2_death";
attack_distance = 40;
killscore = 20;
this.timeOfReaction = 10;
this.speed = 1;
energy = 60;
break;
case 3 :
stand = "infected3_stand";
walk = "infected3_run";
attack = "infected3_attack";
infected_hit = "infected3_hit";
infected_hit2 = "infected3_hit2";
infectedDeath = "infected3_death";
attack_distance = 50;
killscore = 100;
this.timeOfReaction = 2;
this.cover = 1;
this.speed = 2;
energy = 18000;
break;
case 4 :
stand = "boomer_stand";
walk = "boomer_walk";
attack = "boomer_attack";
infected_hit = "boomer_hit";
infected_hit2 = "boomer_hit";
infectedDeath = "boomer_death";
attack_distance = 200;
killscore = 50;
this.timeOfReaction = 60;
this.speed = 2;
energy = 240;
break;
case 5 :
stand = "dog_stand";
walk = "dog_walk";
attack = "dog_attack";
infected_hit = "dog_hit";
infected_hit2 = "dog_hit";
infectedDeath = "dog_death";
attack_distance = 90;
killscore = 20;
this.timeOfReaction = 5;
this.speed = 3;
energy = 10;
break;
case 6 :
stand = "worker_stand";
walk = "worker_walk";
attack = "worker_attack";
infected_hit = "worker_hit";
infected_hit2 = "worker_hit";
infectedDeath = "worker_death";
attack_distance = 40;
killscore = 15;
this.timeOfReaction = 10;
this.speed = 3;
energy = 60;
break;
case 7 :
stand = "mine_stand";
walk = "mine_stand";
attack = "mine_stand";
infected_hit = "mine_stand";
infected_hit2 = "mine_stand";
infectedDeath = "mine_death";
attack_distance = 10;
killscore = 0;
this.timeOfReaction = 10;
this.speed = 0;
energy = 1;
break;
case 8 :
stand = "policeman_stand";
walk = "policeman_walk";
attack = "policeman_attack";
infected_hit = "policeman_hit";
infected_hit2 = "policeman_hit2";
infectedDeath = "policeman_death";
attack_distance = 70;
killscore = 100;
this.timeOfReaction = 5;
this.speed = 2;
energy = 300;
break;
case 9 :
stand = "bigone_stand";
walk = "bigone_walk";
attack = "bigone_attack";
infected_hit = "bigone_hit";
infected_hit2 = "bigone_hit";
infectedDeath = "bigone_death";
attack_distance = 70;
killscore = 2000;
this.timeOfReaction = 10;
this.speed = 2;
energy = 500;
}
this.attachMovie(stand, "stand", 1);
if (this.set != 7) {
this.attachMovie("playerCollision", "coll", 0);
}
if (this.set == 5) {
this.coll._yscale = 50;
}
if (this.set == 7) {
this.state = 101;
} else {
this.state = 1;
}
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.pausa == 1) && (_local1.state != 200)) {
previousState = _local1.state;
_local1.state = 200;
}
_local2.spriteIsOnScreen(_local1);
_local2.swap_Depths(_local1);
_local2.player_position(_local1);
if (_local1.energy > 0) {
if (onScreen == 1) {
_local2.enemyCollision(_local1);
}
} else {
_local1.state = 100;
}
switch (state) {
case 1 :
_local2.check_distance(_local1, playerX, playerY);
if (absxOffset < 500) {
_local1.attachMovie(walk, "stand", 1);
attack_side = Math.floor(Math.random() * 2);
wait = timeOfReaction;
state = 2;
}
break;
case 2 :
_local2.choose_side(_local1);
_local2.traiettoria(_local1, side, playerY);
_local2.moveToPoint(_local1);
break;
case 3 :
break;
case 4 :
_local1.attachMovie(walk, "stand", 1);
_local2.choose_safePoint(_local1);
state = 5;
break;
case 5 :
_local2.traiettoria(_local1, punto_x, punto_y);
_local2.escapeToPoint(_local1);
break;
case 6 :
wait = wait + 1;
if (wait >= standingTime) {
_local1.attachMovie(walk, "stand", 1);
attack_side = Math.floor(Math.random() * 2);
state = 2;
}
break;
case 10 :
if (set == 5) {
_local1.coll._yscale = 50;
}
if ((set != 3) && (set != 4)) {
_local1._x = _local1._x + (1 * dir);
}
break;
case 100 :
if (death == 0) {
switch (set) {
case 1 :
_local2.effetti(_local1, "sound_pig");
_local2.laHorde = _local2.laHorde - 1;
break;
case 5 :
_local2.effetti(_local1, "sound_caicai");
break;
case 7 :
_local2.effetti(_local1, "sound_boom");
break;
default :
_local2.effetti(_local1, "sound_groan");
}
_local1.coll.removeMovieClip();
_local2.key_items_generation(_local1.keeper, "all_key_items", _local1._x, _local1._y);
_local1.attachMovie(infectedDeath, "stand", 1);
_local2.score = _local2.score + killscore;
_local1.death = 1;
_local1.shadow._visible = false;
_local1.nTimesDown = _local1.nTimesDown + 1;
break;
}
break;
case 101 :
_local2.check_distance(_local1, playerX, playerY);
if (((absxOffset < 20) && (absyOffset < 10)) && (pl1.z == 0)) {
_local1.energy = 0;
_local1.state = 100;
}
break;
case 200 :
_local1.attachMovie(stand, "stand", 1);
if (_local2.pausa != 0) {
break;
}
_local1.state = 1;
}
_local2.enemy_backCollision(_local1);
};
Instance of Symbol 610 MovieClip [shadow] "shadow" in Symbol 611 MovieClip [infected_1] Frame 1
onClipEvent (load) {
if (_parent.set == 7) {
this._visible = false;
}
}
Symbol 625 MovieClip [shotgunBlow] Frame 1
speed = 2 * (this._xscale / 100);
Symbol 625 MovieClip [shotgunBlow] Frame 3
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 625 MovieClip [shotgunBlow] Frame 13
removeMovieClip(this);
Symbol 642 MovieClip [flamethrowerBlow] Frame 1
speed = 3 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 642 MovieClip [flamethrowerBlow] Frame 17
removeMovieClip(this);
Symbol 644 MovieClip [flamethrowerFire] Frame 1
speed = 3 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 644 MovieClip [flamethrowerFire] Frame 17
removeMovieClip(this);
Symbol 645 MovieClip [shotgunFire] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 645 MovieClip [shotgunFire] Frame 10
removeMovieClip(this);
Symbol 648 MovieClip [machete] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 648 MovieClip [machete] Frame 4
removeMovieClip(this);
Symbol 649 MovieClip [bat] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 649 MovieClip [bat] Frame 4
removeMovieClip(this);
Symbol 652 MovieClip [katana] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 652 MovieClip [katana] Frame 4
removeMovieClip(this);
Symbol 661 MovieClip [machinegunFire] Frame 1
speed = 20 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 661 MovieClip [machinegunFire] Frame 11
removeMovieClip(this);
Symbol 664 MovieClip [magnumFire] Frame 1
speed = 20 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 664 MovieClip [magnumFire] Frame 16
removeMovieClip(this);
Symbol 665 MovieClip [gunFire] Frame 1
speed = 15 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 665 MovieClip [gunFire] Frame 16
removeMovieClip(this);
Symbol 676 MovieClip [shot_stop] Frame 1
_root.effetti(this, "sound_ptoing");
Symbol 676 MovieClip [shot_stop] Frame 6
removeMovieClip(this);
Symbol 687 MovieClip [blood_1] Frame 12
removeMovieClip(this);
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 2
stop();
Symbol 696 MovieClip Frame 3
stop();
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 2
stop();
Symbol 715 MovieClip Frame 3
stop();
Symbol 715 MovieClip Frame 4
stop();
Symbol 715 MovieClip Frame 5
stop();
Symbol 716 MovieClip [ellis_hud] Frame 1
stop();
Symbol 716 MovieClip [ellis_hud] Frame 2
if (_root.energy > 0) {
if (_root.energy < 50) {
this.bar2.gotoAndStop(2);
}
if (_root.energy < 20) {
this.bar2.gotoAndStop(3);
}
if (_root.energy > 50) {
this.bar2.gotoAndStop(1);
}
this.bar._width = 0.6 * (100 - _root.energy);
}
gotoAndStop (1);
Symbol 719 MovieClip [shotgunBullet] Frame 1
decay = 0;
dir = this._xscale / 100;
rot = (Math.random() * 45) + 10;
speed = (Math.random() * 4) + 2;
this.onEnterFrame = function () {
var _local1 = this;
_local1._rotation = _local1._rotation + 10;
_local1._y = _local1._y - (speed - decay);
_local1._x = _local1._x + ((12 - decay) * dir);
decay = decay + 0.4;
if (decay >= 12) {
removeMovieClip(_local1);
}
};
Symbol 730 MovieClip [emo] Frame 1
dir = this._xscale / 100;
this.onEnterFrame = function () {
this._y = this._y - (yspeed - decay);
this._x = this._x - ((speed - decay) * dir);
decay = decay + 0.2;
};
Symbol 730 MovieClip [emo] Frame 21
removeMovieClip(this);
Symbol 735 MovieClip [light] Frame 1
Symbol 738 MovieClip [playerLight] Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
_local1.light_x = this.getBounds(_local1.darkness).xMax - 9;
_local1.light_y = this.getBounds(_local1.darkness).yMax - 12;
};
Symbol 751 MovieClip [e_bat] Frame 10
_root.effetti(this, "sound_bat", stopFlag);
_root.shotGeneration(this, 11);
Symbol 762 MovieClip [e_machete] Frame 5
_root.effetti(this, "sound_bat", stopFlag);
_root.shotGeneration(this, 12);
Symbol 779 MovieClip [e_katana] Frame 1
decay = 0;
this.onEnterFrame = function () {
if (_currentframe > 12) {
_parent._x = _parent._x - ((4 - decay) * _parent.dir);
decay = decay + 0.4;
}
};
Symbol 779 MovieClip [e_katana] Frame 16
_root.effetti(this, "sound_sword", stopFlag);
_root.shotGeneration(this, 10);
Symbol 782 MovieClip [shotgunicon] Frame 1
this.genre = 2;
Symbol 785 MovieClip [flamethrowericon] Frame 1
this.genre = 3;
Symbol 788 MovieClip [magnumicon] Frame 1
this.genre = 4;
Symbol 791 MovieClip [machinegunicon] Frame 1
this.genre = 1;
Symbol 794 MovieClip [gunicon] Frame 1
this.genre = 0;
Symbol 818 MovieClip [boomer_blood] Frame 1
decay = 0;
sx = (Math.random() * 8) - 4;
sy = (Math.random() * 10) + 4;
rot = Math.random() * 30;
this.onEnterFrame = function () {
this._x = this._x + sx;
this._y = this._y - (sy - decay);
decay = decay + 0.4;
};
Symbol 818 MovieClip [boomer_blood] Frame 10
stop();
removeMovieClip(this);
Symbol 829 MovieClip [boomer_puke] Frame 1
decay = 0;
this._rotation = 10;
speed = 16;
decay = 0;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - (speed - decay);
_local1._y = _local1._y + decay;
_local1._rotation = _local1._rotation - 2;
decay = decay + 0.4;
};
Symbol 829 MovieClip [boomer_puke] Frame 17
ran_x = (Math.random() * 50) - 25;
ran_y = (Math.random() * 50) - 25;
par_x = this.getBounds(_root.scena.back).xMin + ran_x;
par_y = this.getBounds(_root.scena.back).yMax + ran_y;
_root.floor_particle("floorPuke", par_x, par_y, 100);
removeMovieClip(this);
Instance of Symbol 489 MovieClip in Symbol 834 MovieClip [backtile_XX] Frame 1
onClipEvent (load) {
this.room = 1;
}
Symbol 837 MovieClip [macheteicon] Frame 1
this.genre = 12;
Symbol 840 MovieClip [baticon] Frame 1
this.genre = 11;
Symbol 843 MovieClip [katanaicon] Frame 1
this.genre = 10;
Symbol 846 MovieClip [painkillericon] Frame 1
this.genre = 21;
Symbol 849 MovieClip [medikiticon] Frame 1
this.genre = 20;
Symbol 859 MovieClip [enemy_hits] Frame 5
removeMovieClip(this);
Symbol 859 MovieClip [enemy_hits] Frame 6
play();
Symbol 859 MovieClip [enemy_hits] Frame 12
removeMovieClip(this);
Symbol 862 MovieClip [floorPuke] Frame 1
interval = 0;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
interval = interval + 1;
if (interval == 5) {
pl = _local1.scena.sprites.player1;
plx = pl.coll.getBounds(_local1).xMax - (pl.coll._width / 2);
ply = pl.coll.getBounds(_local1).yMax;
if (_local2.hitTest(plx, ply, true) && (pl.z == 0)) {
_local1.effetti(_local2, "sound_thud");
_local1.energy = _local1.energy - 1;
_local1.hud1.gotoAndPlay(2);
}
interval = 0;
}
_local2._alpha = _local2._alpha - 2;
_local2._xscale = _local2._xscale - 1;
_local2._yscale = _local2._yscale - 1;
};
Symbol 862 MovieClip [floorPuke] Frame 25
removeMovieClip(this);
Symbol 873 MovieClip [rain] Frame 1
this._alpha = 75;
stop();
this._y = this._y - (Math.random() * 40);
this._yscale = 100 + (Math.random() * 300);
this.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == 1) {
_local1._y = _local1._y + 30;
if (_local1._y >= 215) {
_local1._yscale = 100;
_local1.gotoAndPlay(2);
}
}
};
Symbol 873 MovieClip [rain] Frame 2
play();
Symbol 873 MovieClip [rain] Frame 10
removeMovieClip(this);
Symbol 884 MovieClip [dog_death] Frame 1
dir = _parent.dir;
decay = 0;
this.onEnterFrame = function () {
var _local1 = _parent;
decay = decay + 0.1;
if (decay < 6) {
_local1._x = _local1._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
};
Symbol 884 MovieClip [dog_death] Frame 24
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 893 MovieClip [dog_attack] Frame 1
dir = _parent._xscale / 100;
speed = 12;
decay = 1;
this.onEnterFrame = function () {
_parent._x = _parent._x - (dir * (speed - decay));
decay = decay + 0.5;
};
Symbol 893 MovieClip [dog_attack] Frame 5
_root.enemyAttack(_parent, 4, 30);
Symbol 893 MovieClip [dog_attack] Frame 21
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 896 MovieClip [dog_hit] Frame 4
_parent.state = 1;
_parent.attachMovie("dog_stand", "stand", 1);
Symbol 901 MovieClip [dog_stand] Frame 6
ran = Math.floor(Math.random() * 10);
if (ran >= 8) {
_root.effetti(this, "sound_grrr");
}
Symbol 921 MovieClip [pointer] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._xscale = 100;
_local1._x = _local2.pointer.getBounds(_local2.scena.sprites).xMax;
_local1._y = _local2.pointer.getBounds(_local2.scena.sprites).yMax;
_local1.y = _local1._y;
xpos = _local1._x;
ypos = _local1._y;
};
this.onMouseDown = function () {
var _local1 = _root;
if (_local1.scrollingEnabled == 1) {
_local1.scrollingEnabled = 0;
_local1.scena.sprites.attachMovie("selector", "sel", 90);
_local1.scena.sprites.sel._x = this._x;
_local1.scena.sprites.sel._y = this._y;
} else {
_local1.scrollingEnabled = 1;
}
};
Symbol 922 MovieClip [pointer2] Frame 1
this.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Symbol 926 Button
on (release) {
chosenSet = 5;
_root.chooseEnemy(this, chosenSet);
}
Symbol 927 Button
on (release) {
chosenSet = 4;
_root.chooseEnemy(this, chosenSet);
}
Symbol 928 Button
on (release) {
chosenSet = 3;
_root.chooseEnemy(this, chosenSet);
}
Symbol 929 Button
on (release) {
chosenSet = 2;
_root.chooseEnemy(this, chosenSet);
}
Symbol 930 Button
on (release) {
chosenSet = 1;
_root.chooseEnemy(this, chosenSet);
}
Symbol 932 Button
on (release) {
chosenSet = 6;
_root.chooseEnemy(this, chosenSet);
}
Symbol 933 Button
on (release) {
chosenSet = 7;
_root.chooseEnemy(this, chosenSet);
}
Symbol 969 MovieClip [all_key_items] Frame 1
sound_interval = 0;
this.gotoAndStop(item_genre);
if (this.soundOff == 0) {
_root.hud1.attachMovie("key_indicator", "ki", 101);
this.ki = _root.hud1.ki;
}
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.soundOff == 0) {
ki._x = _local1.getBounds(_local2.hud1).xMax - 11;
ki._y = _local1.getBounds(_local2.hud1).yMax - 15;
_local2.key_actions(_local1);
sound_interval = sound_interval + 1;
if (sound_interval >= 60) {
_local2.effetti(_local1, "sound_key");
sound_interval = 0;
}
}
};
keyID = 1;
Symbol 969 MovieClip [all_key_items] Frame 2
keyID = 2;
Symbol 969 MovieClip [all_key_items] Frame 3
keyID = 3;
Symbol 969 MovieClip [all_key_items] Frame 4
keyID = 4;
Symbol 969 MovieClip [all_key_items] Frame 5
keyID = 5;
Symbol 969 MovieClip [all_key_items] Frame 6
keyID = 6;
Symbol 969 MovieClip [all_key_items] Frame 7
keyID = 7;
Symbol 969 MovieClip [all_key_items] Frame 8
keyID = 8;
Symbol 969 MovieClip [all_key_items] Frame 9
keyID = 9;
Symbol 969 MovieClip [all_key_items] Frame 10
stop();
Symbol 974 MovieClip [mine_death] Frame 1
_root.energy = _root.energy - 10;
_root.hud1.gotoAndPlay(2);
Symbol 974 MovieClip [mine_death] Frame 17
removeMovieClip(_parent);
Symbol 991 MovieClip Frame 1
counter = 0;
player = _root.scena.sprites.player1;
this.onEnterFrame = function () {
counter = counter + 1;
if ((counter >= 2) && (this._currentframe >= 60)) {
fX = this.getBounds(_root.scena.sprites).xMin;
fY = this.getBounds(_root.scena.sprites).yMin;
level = _root.enemyLayer;
_root.scena.sprites.attachMovie("flame_caldaie", "fc" + level, level);
fc = eval ("_root.scena.sprites.fc" + level);
fc._x = fX;
fc._y = fY;
_root.enemyLayer = _root.enemyLayer + 1;
counter = 0;
}
};
Symbol 991 MovieClip Frame 2
startFrame = 2 + Math.floor(Math.random() * 50);
this.gotoAndPlay(startFrame);
Symbol 991 MovieClip Frame 91
gotoAndPlay (3);
Symbol 992 MovieClip [backtile_81] Frame 1
Instance of Symbol 489 MovieClip in Symbol 1001 MovieClip [backtile_83] Frame 1
onClipEvent (load) {
this.room = 4;
this.rightKey = 8;
}
Instance of Symbol 541 MovieClip in Symbol 1010 MovieClip [backtile_114] Frame 1
onClipEvent (load) {
this.room = 6;
this.rightKey = 0;
}
Symbol 1022 MovieClip [backtile_110] Frame 1
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
sx = sprite._x;
py = -30;
px = sx + ((Math.random() * 800) - 400);
_root.particelle("rain", px, py, 100);
};
Instance of Symbol 541 MovieClip in Symbol 1022 MovieClip [backtile_110] Frame 1
onClipEvent (load) {
this.room = 5;
this.rightKey = 5;
}
Instance of Symbol 489 MovieClip in Symbol 1023 MovieClip [backtile_80] Frame 1
onClipEvent (load) {
this.room = 2;
this.rightKey = 3;
}
Symbol 1046 MovieClip [flame_caldaie] Frame 1
ran = Math.ceil((Math.random() * 10) - 5);
ran2 = Math.ceil(Math.random() * 50) + 100;
this._x = this._x + ran;
this._xscale = ran2;
this._yscale = ran2;
speed_x = (Math.random() * 1) + 2;
speed_y = (Math.random() * 1) + 1;
player = _root.scena.sprites.player1;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.pausa == 1) {
_local1.removeMovieClip();
}
px = _local1.getBounds(_local2).xMax - (_local1._width / 2);
py = _local1.getBounds(_local2).yMax - (_local1._height / 2);
if (player.coll.hitTest(px, py, true)) {
_local2.energy = _local2.energy - 1;
_local2.hud1.gotoAndPlay(2);
_local1.removeMovieClip();
}
_local1.y = Math.floor(_local1._y + 50);
_local1.swapDepths(_local1.y);
_local1._xscale = _local1._xscale + 1;
_local1._yscale = _local1._yscale + 1;
_local1._x = _local1._x + (1 + speed_x);
_local1._y = _local1._y + (1 + speed_y);
};
Symbol 1046 MovieClip [flame_caldaie] Frame 34
removeMovieClip(this);
Symbol 1059 MovieClip [backtile_90] Frame 1
waitingForBoss = 0;
timer = 0;
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
var _local1 = _root;
_local1.scrolling9(this);
if (waitingForBoss == 0) {
timer = timer + 1;
if (timer >= 120) {
_local1.scena.sprites.attachMovie("swampThing", "inf" + _local1.enemyLayer, _local1.enemyLayer);
_local1.enemyLayer = _local1.enemyLayer + 1;
waitingForBoss = 1;
}
}
sx = sprite._x;
py = -30;
i = 0;
while (i < 3) {
px = sx + ((Math.random() * 600) - 300);
_local1.particelle("rain", px, py, 100);
i++;
}
};
Symbol 1059 MovieClip [backtile_90] Frame 2
_root.scena.back._y = _root.scena.back._y - 2;
Symbol 1059 MovieClip [backtile_90] Frame 11
_root.scena.back._y = _root.scena.back._y + 2;
Symbol 1059 MovieClip [backtile_90] Frame 21
_root.scena.back._y = _root.scena.back._y + 1;
Symbol 1059 MovieClip [backtile_90] Frame 32
_root.scena.back._y = _root.scena.back._y - 1;
Symbol 1059 MovieClip [backtile_90] Frame 42
gotoAndPlay (2);
Symbol 1068 MovieClip [swampThing_dies] Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
if (_currentframe <= 40) {
_root.bloodParticles("emo", 1, _local1._x, _local1._y - 40, _local1._xscale, 5, 2);
}
};
Symbol 1068 MovieClip [swampThing_dies] Frame 60
stop();
_root.room = 7;
_root.gotoAndStop("change_level");
Symbol 1069 MovieClip [swampThing_goDown] Frame 24
stop();
Symbol 1070 MovieClip [swampThing_appears] Frame 60
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1079 MovieClip [swampThing_stand] Frame 1
this.play();
Symbol 1079 MovieClip [swampThing_stand] Frame 37
this.gotoAndPlay(1);
Symbol 1079 MovieClip [swampThing_stand] Frame 40
this.play();
Symbol 1080 MovieClip [swampThing_hit] Frame 2
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1091 MovieClip [swampThing_attack] Frame 16
pl1 = _root.scena.sprites.player1;
if ((pl1.z == 0) && (pl1.coll.hitTest(this.tongue))) {
_root.energy = _root.energy - 10;
_root.effetti(this, "sound_thud");
_root.hud1.gotoAndPlay(2);
}
Symbol 1091 MovieClip [swampThing_attack] Frame 30
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1092 MovieClip Frame 1
l = 0;
this.onEnterFrame = function () {
this.attachMovie("watercircle", "wc" + l, l);
wc = eval ("this.wc" + l);
wc._x = (90 + (Math.random() * 80)) - 40;
wc._y = ((Math.random() * 40) - 20) - 10;
l = l + 1;
};
Symbol 1093 MovieClip [swampThing] Frame 1
this.state = 1;
this.wait = 0;
this.energy = 800;
this._x = 190;
this._y = 180;
this.attachMovie("bossCollision", "coll", 9);
bossCollision._x = bossCollision._x + 20;
this.attachMovie("swampThing_appears", "stand", 10);
this.onEnterFrame = function () {
if (_root.pausa == 1) {
this.state = 9;
}
_root.bossTimer(this);
switch (state) {
case 1 :
return;
case 2 :
if (energy <= 0) {
this.attachMovie("swampThing_dies", "stand", 10);
this.state = 7;
return;
}
_root.bossDamage(this);
this.wait = this.wait + 1;
if (wait >= 180) {
this.wait = 0;
ran = Math.floor(Math.random() * 2);
switch (ran) {
case 0 :
this.attachMovie("swampThing_attack", "stand", 10);
this.state = 3;
break;
case 1 :
this.state = 6;
}
}
return;
case 3 :
return;
case 4 :
this.wait = this.wait + 1;
if (this.wait == 30) {
pl1 = _root.scena.sprites.player1;
_root.scena.sprites.attachMovie("sting", "sting" + _root.enemyLayer, _root.enemyLayer);
sting = eval ("_root.scena.sprites.sting" + _root.enemyLayer);
nStings = nStings + 1;
sting._x = pl1._x;
sting._y = pl1.y;
this.wait = 0;
_root.enemyLayer = _root.enemyLayer + 1;
}
if (nStings >= 10) {
this.nStings = 0;
this.attachMovie("swampThing_appears", "stand", 10);
this.state = 1;
}
return;
case 5 :
_root.bossDamage(this);
return;
case 6 :
this.attachMovie("swampThing_goDown", "stand", 10);
this.state = 4;
return;
case 7 :
return;
case 8 :
return;
case 9 :
if (_root.pausa != 0) {
break;
}
if (this.wait == 0) {
this.wait = 180;
}
this.attachMovie("swampThing_stand", "stand", 10);
this.state = 2;
}
};
Symbol 1103 MovieClip [sting] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1.y = _local1._y;
pl1 = _root.scena.sprites.player1;
_local1.swapDepths(_local1._y);
};
Symbol 1103 MovieClip [sting] Frame 10
_root.enemyAttack(this, 10, 0, 50);
_root.effetti(this, "sound_arpione");
Symbol 1103 MovieClip [sting] Frame 25
removeMovieClip(this);
Symbol 1112 MovieClip [watercircle] Frame 1
this._alpha = (Math.random() * 80) + 20;
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
Symbol 1112 MovieClip [watercircle] Frame 17
removeMovieClip(this);
Symbol 1117 MovieClip Frame 1
this._visible = false;
Symbol 1117 MovieClip Frame 30
this._visible = true;
Symbol 1118 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 1118 MovieClip in Symbol 1119 MovieClip [backtile_102] Frame 1
onClipEvent (load) {
this.room = 0;
this.rightKey = 0;
}
Symbol 1125 MovieClip [backtile_100] Frame 1
interval = 0;
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
interval = interval + 1;
if (interval >= 5) {
_root.scena.sprites.attachMovie("fog", "fog" + _root.enemyLayer, _root.enemyLayer);
fog = eval ("_root.scena.sprites.fog" + _root.enemyLayer);
fog._x = pl._x + 300;
fog._y = Math.floor(pl._y - ((Math.random() * 240) - 120));
_root.enemyLayer = _root.enemyLayer + 1;
interval = 0;
}
};
Symbol 1128 MovieClip [fog] Frame 1
speed = (Math.random() * 2) + 2;
this._alpha = Math.floor(25 + (Math.random() * 25));
this.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 0.2;
if (_local1.getBounds(_root).xMax < 0) {
_local1.removeMovieClip();
}
if (_local1._alpha <= 0) {
_local1.removeMovieClip();
}
_local1._x = _local1._x - speed;
_local1._y = _local1._y + speed2;
_local1.swapDepths(Math.floor(_local1._y));
};
Symbol 1132 MovieClip [doormessage] Frame 1
play();
Symbol 1132 MovieClip [doormessage] Frame 90
this.removeMovieClip();
Symbol 1138 MovieClip [tut] Frame 1
stop();
_root.tutorialEnd = 0;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.action == 1) {
switch (_local2._currentframe) {
case 1 :
_local2.gotoAndStop(2);
return;
case 2 :
_local2.gotoAndStop(3);
return;
case 3 :
_local1.tutorialEnd = 1;
_local1.hud1.attachMovie("go", "go", 100);
_local1.hud1.go._x = 290;
_local1.hud1.go._y = -150;
_local2.removeMovieClip();
}
}
};
Symbol 1144 MovieClip [swap_machete] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1147 MovieClip [swap_flamethrower] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1150 MovieClip [swap_magnum] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1153 MovieClip [swap_shotgun] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1156 MovieClip [swap_katana] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1159 MovieClip [swap_bat] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1162 MovieClip [swap_gun] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1165 MovieClip [swap_machinegun] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1168 MovieClip [energy_full] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1171 MovieClip [energy_plus] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 0.5;
_local1._alpha = _local1._alpha - 1;
if (_local1._alpha < 50) {
removeMovieClip(_local1);
}
};
Symbol 1185 MovieClip Frame 1
totalScene = _root.scena._width;
rect = 70;
div = rect / totalScene;
plx = _root.scena.sprites.player1._x * div;
this._x = 64 + plx;
if (_root.room == 9) {
this._x = 101;
}
switch (_root.room) {
case 0 :
this._y = 208;
break;
case 1 :
this._y = 190;
break;
case 3 :
this._y = 172;
break;
case 2 :
this._y = 154;
break;
case 8 :
this._y = 136;
break;
case 4 :
this._y = 118;
break;
case 5 :
this._y = 100;
break;
case 11 :
this._y = 82;
break;
case 6 :
this._y = 64;
break;
case 9 :
this._y = 44;
break;
case 7 :
this._y = 26;
break;
case 10 :
this._visible = false;
}
Symbol 1185 MovieClip Frame 20
gotoAndPlay (2);
Symbol 1189 Button
on (release) {
if (_root.music == 0) {
_root.music = 1;
_root.musica(_root, _root._currentSong);
this.music.gotoAndStop(2);
} else {
_root.music = 0;
_root.suono.stop();
this.music.gotoAndStop(1);
}
}
Symbol 1190 Button
on (release) {
if (_root.sfxs == 0) {
_root.sfxs = 1;
this.sound.gotoAndStop(2);
} else {
_root.sfxs = 0;
this.sound.gotoAndStop(1);
}
}
Symbol 1191 MovieClip [map] Frame 1
Mouse.show();
if (_root.music == 1) {
this.music.gotoAndStop(2);
} else {
this.music.gotoAndStop(1);
}
if (_root.sfxs == 1) {
this.sound.gotoAndStop(2);
} else {
this.sound.gotoAndStop(1);
}
this.gotoAndStop(_root.room + 1);
Symbol 1194 MovieClip [keykeeper_icon] Frame 1
this._alpha = 50;
Symbol 1194 MovieClip [keykeeper_icon] Frame 10
this._alpha = 100;
Symbol 1202 MovieClip Frame 5
_root.effetti(this, "sound_laugh");
Symbol 1202 MovieClip Frame 33
stop();
Symbol 1210 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = this;
if (_local1._x > -320) {
_local1._x = _local1._x - 5;
} else {
_local1._x = 0;
}
};
Symbol 1218 MovieClip Frame 90
stop();