STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76810645?noj=FRM76810645-22DC" width="1" height="1"></div>

Agh Zombies! - survive the apocalypse in London.swf

This is the info page for
Flash #90449

(Click the ID number above for more basic data on this flash file.)


Text
Loading....

00

000

000

D

GAMES.CO.UK

developed by

200

000

ActionScript [AS1/AS2]

Frame 1
var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); copyrightNotice.separatorBefore = true; myMenu.customItems.push(mySiteLink, copyrightNotice); _root.menu = myMenu; six.onPress = function () { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); };
Frame 2
bytes_loaded = Math.round(_root.getBytesLoaded()); bytes_total = Math.round(_root.getBytesTotal()); getPercent = bytes_loaded / bytes_total; _root.loadBar._width = getPercent * 100; _root.loadText = Math.round(getPercent * 100) + "%"; if (bytes_loaded == bytes_total) { _root.gotoAndPlay(5); }
Frame 3
gotoAndPlay (2);
Frame 5
stop(); stopAllSounds(); score = 0; db.onRelease = function () { _root._quality = "LOW"; nextFrame(); }; zb.onRelease = function () { _root._quality = "MEDIUM"; nextFrame(); }; kb.onRelease = function () { _root._quality = "HIGH"; nextFrame(); }; db.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { _root._quality = "LOW"; this.gotoAndStop("over"); } else { _root._quality = "HIGH"; this.gotoAndStop("up"); } }; zb.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { _root._quality = "MEDIUM"; this.gotoAndStop("over"); } else { _root._quality = "HIGH"; this.gotoAndStop("up"); } }; kb.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { _root._quality = "HIGH"; this.gotoAndStop("over"); } else { this.gotoAndStop("up"); } };
Frame 6
logo.onPress = function () { getURL ("http://www.xdgames.co.uk", "_blank"); }; sound_contr._alpha = 0; qualityControl._alpha = 0;
Frame 7
stop(); pb.onRelease = function () { gotoAndStop ("ints"); }; sub.onRelease = function () { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); };
Frame 8
prevFrame();
Frame 9
stop(); moveOn.onRelease = function () { nextFrame(); };
Frame 10
stopAllSounds(); play();
Frame 13
function removeall() { removeShot(); removeDepths(); removeDead_body(); removePounds(); removeType(); removeHypArray(); removeEnemyHealth(); removeDamagedTimer(); removeHit(); removeEnemyAttackingTimer(); removeEnemyAttacking(); removeEnemy(); } function shotActions() { if (shooting) { if ((shootingTimer + reloadTime) < getTimer()) { shootingTimer = getTimer(); shot_sound.start(); ammo--; if (bulletType == 2) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 1) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 0) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } } } i = shot.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (shot[i].hitTest(enemy[j])) { if (bulletType == 2) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } } if (bulletType == 1) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } } if (bulletType == 0) { enemyHealth[j] = enemyHealth[j] - bulletPower; randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } j--; } if ((shot[i]._x > 640) or (shot[i]._x < 0)) { shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { shot[i]._x = shot[i]._x - 5; } } } i--; } } function removeShot() { i = shot.length - 1; while (i >= 0) { shot[i].removeMovieClip(); shot.splice(i, 1); i--; } } function removeDepths() { i = depths.length - 1; while (i >= 0) { depths[i].removeMovieClip(); depths.splice(i, 1); i--; } } function removeDead_body() { i = dead_body.length - 1; while (i >= 0) { dead_body[i].removeMovieClip(); dead_body.splice(i, 1); i--; } } function removePounds() { i = pounds.length - 1; while (i >= 0) { pounds[i].removeMovieClip(); pounds.splice(i, 1); i--; } } function removeType() { i = type.length - 1; while (i >= 0) { type[i].removeMovieClip(); type.splice(i, 1); i--; } } function removeHypArray() { i = hypArray.length - 1; while (i >= 0) { hypArray[i].removeMovieClip(); hypArray.splice(i, 1); i--; } } function removeEnemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removeDamagedTimer() { i = damagedTimer.length - 1; while (i >= 0) { damagedTimer[i].removeMovieClip(); damagedTimer.splice(i, 1); i--; } } function removeHit() { i = hit.length - 1; while (i >= 0) { hit[i].removeMovieClip(); hit.splice(i, 1); i--; } } function removeEnemyAttackingTimer() { i = enemyAttackingTimer.length - 1; while (i >= 0) { enemyAttackingTimer[i].removeMovieClip(); enemyAttackingTimer.splice(i, 1); i--; } } function removeEnemyAttacking() { i = enemyAttacking.length - 1; while (i >= 0) { enemyAttacking[i].removeMovieClip(); enemyAttacking.splice(i, 1); i--; } } function removeEnemy() { i = enemy.length - 1; while (i >= 0) { enemy[i].removeMovieClip(); enemy.splice(i, 1); i--; } } function waveActions() { if (distance == 4) { if (addBoss == 0) { addBoss = 1; enemy_ = _root.attachMovie("boss", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 50) + 0); enemyHealth.push(80); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } if (distance < 6) { if (markWave < 0) { if (player._x < 410) { if (yesGo == 0) { distance++; _root.attachMovie("gogo", "gogo", _root.getNextHighestDepth()); } yesGo = 1; canGo = true; } } } if (steps > 130) { gogo.removeMovieClip(); yesGo = 0; canGo = false; markWave = 7; steps = 0; } } function addenemy() { if (enemyNumber < 3) { if ((releaseenemy + releNum) < getTimer()) { releaseenemy = getTimer(); enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(0); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(2); damagedTimer.push(0); hit.push(0); hypArray.push(0); if ((pplKilled > 21) && (pplKilled < 41)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(20); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 41) && (pplKilled < 61)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(2); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(40); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 61) && (pplKilled < 81)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(3); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(70); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 81) && (pplKilled < 101)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(4); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(60); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } } } function collectCash() { i = pounds.length - 1; while (i >= 0) { if (pounds[i].hitTest(player)) { ammo = ammo + 10; zombiereload_sound.start(); pounds[i].removeMovieClip(); pounds.splice(i, 1); depths.splice(i, 1); } i--; } } function swapdepths() { i = depths.length - 1; while (i >= 0) { if (player._y < depths[i]._y) { depths[i].swapDepths(_root.getNextHighestDepth()); } if (player._y > depths[i]._y) { player.swapDepths(_root.getNextHighestDepth()); } i--; } } function pushPounds() { i = pounds.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { pounds[i]._x = pounds[i]._x - 5; } } } i--; } } function pushEnemy() { i = enemy.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { enemy[i]._x = enemy[i]._x - 5; } } } i--; } } function pushDeadbody() { i = dead_body.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { dead_body[i]._x = dead_body[i]._x - 5; } } } i--; } } function calculateHyp() { i = enemy.length - 1; while (i >= 0) { dist_x = player._x - enemy[i]._x; dist_y = player._y - enemy[i]._y; hypArray[i] = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y)); i--; } } function enemyHealthReachesZero() { i = enemy.length - 1; while (i >= 0) { if (enemyHealth[i] < 1) { score = score + 10; randomNumber++; _root.attachMovie("plusTen", "plusTen" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); if (bulletType == 0) { if (ammo < 50) { choice = Math.round(Math.random() * 5) + 0; if (choice == 0) { randomNumber++; cash = _root.attachMovie("ammo_mc", "money" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); depths.push(cash); pounds.push(cash); } } } if (hit[i] == 1) { randomNumber++; if (type[i] == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (type[i] == 1) { deadbod2 = _root.attachMovie("bossDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (hit[i] == 0) { if (type[i] == 0) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 1) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("bossDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } } if (type[i] == 2) { randomNumber++; deadbod2 = _root.attachMovie("e2d", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 3) { randomNumber++; deadbod2 = _root.attachMovie("ni2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 4) { randomNumber++; deadbod2 = _root.attachMovie("ed4", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } markWave--; enemyNumber--; randomNumber++; death_mc = _root.attachMovie("dead4", "dead4" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); enemy[i].removeMovieClip(); enemy.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } i--; } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 3; _root._x = _root._x - 3; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function enemyMovement() { i = enemy.length - 1; while (i >= 0) { if (player._x < enemy[i]._x) { enemy[i]._xscale = -100; } else { enemy[i]._xscale = 100; } if (type[i] == 0) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - enemyPower; } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 1) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) / 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) / 2); } } } if (type[i] == 2) { if (hypArray[i] < 250) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 2); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 3) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 4) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 5.5); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 111) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) * 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) * 2); } } } i--; } } function noOverLap() { i = enemy.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (!invisible) { if (!(enemy[i] === enemy[j])) { if (enemy[j]._y < enemy[i]._y) { enemy[i].swapDepths(_root.getNextHighestDepth()); } if (enemy[i].hitTest(enemy[j])) { endX = _root.enemy[j]._x; enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed); } } } j--; } i--; } } function canAddPoint() { if (clicks == 0) { canAddComboPoint = true; } else { canAddComboPoint = false; } } function runAttackTimer() { if (attacking) { playerSpeed = 1; is_attacking++; } else { playerSpeed = 10; } } function confirmAttacking() { if (clicks > 0) { attacking = true; } } function comboOne() { if (!addSecondCombo) { if (!addThirdCombo) { if (addFirstCombo) { if (attacking) { player.gotoAndStop("melee1"); if (is_attacking == 7) { addFirstCombo = false; if (clicks == 1) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 1) { smack = 0; addSecondCombo = true; } } } } } } } function comboTwo() { if (!addFirstCombo) { if (!addThirdCombo) { if (addSecondCombo) { if (attacking) { player.gotoAndStop("melee2"); if (is_attacking == 13) { addSecondCombo = false; if (clicks == 2) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 2) { smack = 0; addThirdCombo = true; } } } } } } } function comboThree() { if (!addFirstCombo) { if (!addSecondCombo) { if (addThirdCombo) { if (attacking) { player.gotoAndStop("melee3"); if (is_attacking == 20) { frozen = false; addThirdCombo = false; if (clicks == 3) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 3) { smack = 0; clicks = 1; is_attacking = 0; addFirstCombo = true; } } } } } } } function playerMovement() { fire_bullets._x = bg._x - 500; acid_bullets._x = bg._x + 1000; health_mc._x = bg._x; doors._x = bg._x; green._x = bg._x; wall._x = bg._x; if (hitPlayer == 0) { var _local1 = player.transform.colorTransform; player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } if (hitPlayer == 1) { var _local1 = player.transform.colorTransform; _local1.rgb = 4294967295; player.transform.colorTransform = _local1; hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } if (green.hitTest(player._x, player._y, true)) { player._y = player._y + ((playerSpeed * 2) + 3); } if (player._y > 430) { player._y = 430; } if (player._x < 46) { player._x = 46; } if (canGo) { if (bg._x > -1916.9) { if (player._x > 410) { moved++; bg._x = bg._x - 5; playerFade._x = playerFade._x - 5; steps++; player._x = 410; } } } if (player._x > 590) { player._x = 590; } if (!attacking) { if (shooting) { if (!running) { player.gotoAndStop("shoot_idle"); } if (running) { player.gotoAndStop("shoot_run"); } } if (!shooting) { if (!running) { player.gotoAndStop("idle"); } if (running) { player.gotoAndStop("run"); } } } if (!Key.isDown(65)) { shooting = false; } if (Key.isDown(65)) { if (ammo > 0) { shooting = true; } } if (!Key.isDown(83)) { pressHack = 0; } if (Key.isDown(83)) { if (!shooting) { if (pressHack == 0) { pressHack = 1; if (canAddComboPoint) { addFirstCombo = true; } clicks++; } } } if (!Key.isDown(38)) { running = false; } if (!Key.isDown(40)) { running = false; } if (!Key.isDown(39)) { running = false; } if (!Key.isDown(37)) { running = false; } if (Key.isDown(38)) { if (shooting) { player._y = player._y - playerSpeed; } else { player._y = player._y - (playerSpeed * 2); } running = true; } if (Key.isDown(40)) { if (shooting) { player._y = player._y + playerSpeed; } else { player._y = player._y + (playerSpeed * 2); } running = true; } if (Key.isDown(39)) { player._xscale = 100; if (shooting) { player._x = player._x + playerSpeed; } else { player._x = player._x + (playerSpeed * 2); } running = true; } if (Key.isDown(37)) { player._xscale = -100; if (shooting) { player._x = player._x - playerSpeed; } else { player._x = player._x - (playerSpeed * 2); } running = true; } } stop(); doors._alpha = 0; health_sound = new Sound(); health_sound.attachSound("health.mp3"); zombiereload_sound = new Sound(); zombiereload_sound.attachSound("zombiereload"); shot_sound = new Sound(); shot_sound.attachSound("shot"); swing_sound = new Sound(); swing_sound.attachSound("swing"); hit_sound = new Sound(); hit_sound.attachSound("smack"); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:19.5, _y:115}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth()); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:300, _y:422}); _root.attachMovie("health_mc", "health_mc", _root.getNextHighestDepth(), {_x:3000, _y:330}); _root.attachMovie("fire_bullets", "fire_bullets", _root.getNextHighestDepth(), {_x:1000, _y:390}); _root.attachMovie("acid_bullets", "acid_bullets", _root.getNextHighestDepth(), {_x:1000, _y:420}); bulletType = 0; ammo = 50; yesGo = 0; moved = 0; bulletPower = 2; bulletSpeed = 25; shootingTimer = 0; reloadTime = 250; choice = 0; addRain = 0; releNum = 500; enemyPower = 1; playerSpeed = 12; playerPower = 0.3; playerHealth = 100; running = false; attacking = false; enemiesdead = 0; hitPlayer = 0; hitTimer = 0; pressHack = 0; clicks = 0; shake = 0; smack = 0; canGo = false; shooting = false; bossOn = false; enemyNumber = 0; is_attacking = 0; releaseenemy = 0; randomNumber = 0; enemySpeed = 60; markWave = 7; steps = 0; addBoss = 0; pplKilled = 0; distance = 0; var shot = new Array(); var depths = new Array(); var dead_body = new Array(); var pounds = new Array(); var type = new Array(); var hypArray = new Array(); var enemyHealth = new Array(); var damagedTimer = new Array(); var hit = new Array(); var enemyAttackingTimer = new Array(); var enemyAttacking = new Array(); var enemy = new Array(); player.onEnterFrame = function () { if ((ammo < 0) or (ammo == 0)) { bulletType = 0; shooting = false; ammo = 0; } if (ammo > 50) { ammo = 50; } if (health_mc.hitTest(player._x, player._y, true)) { health_sound.start(); playerHealth = 100; health_mc.removeMovieClip(); } if (acid_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 2; ammo = 25; acid_bullets.removeMovieClip(); } if (fire_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 1; ammo = 25; fire_bullets.removeMovieClip(); } if (playerHealth > 100) { playerHealth = 100; } barBoarder.scr.text = score; barBoarder.am.text = ammo; healthBar._xscale = playerHealth; if (player.hitTest(doors)) { removeall(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); doors.removeMovieClip(); green.removeMovieClip(); wall.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); raintosser.removeMovieClip(); nextFrame(); } if (playerHealth < 0) { removeall(); raintosser.removeMovieClip(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); doors.removeMovieClip(); green.removeMovieClip(); wall.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); gotoAndStop ("gameOver"); } if (addRain < 1001) { addRain++; } if (addRain == 1000) { _root.attachMovie("raintosser", "raintosser", _root.getNextHighestDepth()); } pushDeadbody(); waveActions(); noOverLap(); swapdepths(); enemyMovement(); playerMovement(); addenemy(); calculateHyp(); enemyHealthReachesZero(); pushEnemy(); shotActions(); wall.swapDepths(_root.getNextHighestDepth()); raintosser.swapDepths(_root.getNextHighestDepth()); healthBar.swapDepths(_root.getNextHighestDepth()); barBoarder.swapDepths(_root.getNextHighestDepth()); letterbox.swapDepths(_root.getNextHighestDepth()); shaker(); pushPounds(); comboOne(); comboTwo(); comboThree(); runAttackTimer(); canAddPoint(); confirmAttacking(); collectCash(); };
Frame 14
player.removeMovieClip(); wall.removeMovieClip(); wall._alpha = 0; stopAllSounds(); play();
Instance of Symbol 630 MovieClip in Frame 15
on (release) { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); }
Frame 16
stopAllSounds(); play();
Frame 17
function removeall() { removeSkins(); removeShot(); removeDepths(); removeDead_body(); removePounds(); removeType(); removeHypArray(); removeEnemyHealth(); removeDamagedTimer(); removeHit(); removeEnemyAttackingTimer(); removeEnemyAttacking(); removeEnemy(); } function shotActions() { if (shooting) { if ((shootingTimer + reloadTime) < getTimer()) { shootingTimer = getTimer(); shot_sound.start(); ammo--; if (bulletType == 2) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 1) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 0) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } } } i = shot.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (shot[i].hitTest(enemy[j])) { if (bulletType == 2) { enemyHealth[j] = -1; } if (bulletType == 1) { enemyHealth[j] = -1; } if (bulletType == 0) { enemyHealth[j] = enemyHealth[j] - bulletPower; randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } j--; } if ((shot[i]._x > 640) or (shot[i]._x < 0)) { shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { shot[i]._x = shot[i]._x - 5; } } } i--; } } function removeSkins() { i = skins.length - 1; while (i >= 0) { skins[i].removeMovieClip(); skins.splice(i, 1); i--; } } function removeShot() { i = shot.length - 1; while (i >= 0) { shot[i].removeMovieClip(); shot.splice(i, 1); i--; } } function removeDepths() { i = depths.length - 1; while (i >= 0) { depths[i].removeMovieClip(); depths.splice(i, 1); i--; } } function removeDead_body() { i = dead_body.length - 1; while (i >= 0) { dead_body[i].removeMovieClip(); dead_body.splice(i, 1); i--; } } function removePounds() { i = pounds.length - 1; while (i >= 0) { pounds[i].removeMovieClip(); pounds.splice(i, 1); i--; } } function removeType() { i = type.length - 1; while (i >= 0) { type[i].removeMovieClip(); type.splice(i, 1); i--; } } function removeHypArray() { i = hypArray.length - 1; while (i >= 0) { hypArray[i].removeMovieClip(); hypArray.splice(i, 1); i--; } } function removeEnemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removeDamagedTimer() { i = damagedTimer.length - 1; while (i >= 0) { damagedTimer[i].removeMovieClip(); damagedTimer.splice(i, 1); i--; } } function removeHit() { i = hit.length - 1; while (i >= 0) { hit[i].removeMovieClip(); hit.splice(i, 1); i--; } } function removeEnemyAttackingTimer() { i = enemyAttackingTimer.length - 1; while (i >= 0) { enemyAttackingTimer[i].removeMovieClip(); enemyAttackingTimer.splice(i, 1); i--; } } function removeEnemyAttacking() { i = enemyAttacking.length - 1; while (i >= 0) { enemyAttacking[i].removeMovieClip(); enemyAttacking.splice(i, 1); i--; } } function removeEnemy() { i = enemy.length - 1; while (i >= 0) { enemy[i].removeMovieClip(); enemy.splice(i, 1); i--; } } function waveActions() { if (distance < 5) { if (markWave < 0) { if (player._x < 410) { if (yesGo == 0) { distance++; _root.attachMovie("gogo", "gogo", _root.getNextHighestDepth()); } yesGo = 1; canGo = true; } } } if (steps > 130) { gogo.removeMovieClip(); yesGo = 0; canGo = false; markWave = 10; steps = 0; } } function addenemy() { if (enemyNumber < 3) { if ((releaseenemy + releNum) < getTimer()) { releaseenemy = getTimer(); enemyNumber++; randomNumber++; emmasGayChoice = Math.round(Math.random() * 1) + 0; if (emmasGayChoice == 0) { choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } skins.push(0); } if (emmasGayChoice == 1) { choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } skins.push(1); } depths.push(enemy_); enemy.push(enemy_); type.push(0); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(5); damagedTimer.push(0); hit.push(0); hypArray.push(0); if ((pplKilled > 21) && (pplKilled < 41)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(20); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 41) && (pplKilled < 61)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(2); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(40); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 61) && (pplKilled < 81)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(3); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(70); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 81) && (pplKilled < 101)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(4); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(60); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } } } function collectCash() { i = pounds.length - 1; while (i >= 0) { if (pounds[i].hitTest(player._x, player._y, true)) { zombiereload_sound.start(); ammo = ammo + 10; pounds[i].removeMovieClip(); pounds.splice(i, 1); depths.splice(i, 1); } i--; } } function swapdepths() { i = depths.length - 1; while (i >= 0) { if (player._y < depths[i]._y) { depths[i].swapDepths(_root.getNextHighestDepth()); } if (player._y > depths[i]._y) { player.swapDepths(_root.getNextHighestDepth()); } i--; } } function pushPounds() { i = pounds.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { pounds[i]._x = pounds[i]._x - 5; } } } i--; } } function pushEnemy() { i = enemy.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { enemy[i]._x = enemy[i]._x - 5; } } } i--; } } function pushDeadbody() { i = dead_body.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { dead_body[i]._x = dead_body[i]._x - 5; } } } i--; } } function calculateHyp() { i = enemy.length - 1; while (i >= 0) { dist_x = player._x - enemy[i]._x; dist_y = player._y - enemy[i]._y; hypArray[i] = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y)); i--; } } function enemyHealthReachesZero() { i = enemy.length - 1; while (i >= 0) { if (enemyHealth[i] < 1) { score = score + 10; randomNumber++; _root.attachMovie("plusTen", "plusTen" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); hit_sound.start(); if (bulletType == 0) { if (ammo < 50) { choice = Math.round(Math.random() * 5) + 0; if (choice == 0) { randomNumber++; cash = _root.attachMovie("ammo_mc", "money" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); depths.push(cash); pounds.push(cash); } } } if (hit[i] == 1) { randomNumber++; if (type[i] == 0) { if (skins[i] == 0) { deadbod2 = _root.attachMovie("scoutDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 1) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } } depths.push(deadbod2); dead_body.push(deadbod2); } if (hit[i] == 0) { if (type[i] == 0) { randomNumber++; if (bulletType == 0) { if (skins[i] == 0) { deadbod2 = _root.attachMovie("scoutDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 1) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } } if (type[i] == 1) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("slashup", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 2) { randomNumber++; deadbod2 = _root.attachMovie("e2d", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 3) { randomNumber++; deadbod2 = _root.attachMovie("ni2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 4) { randomNumber++; deadbod2 = _root.attachMovie("ed4", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } markWave--; enemyNumber--; randomNumber++; death_mc = _root.attachMovie("dead4", "dead4" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); enemy[i].removeMovieClip(); enemy.splice(i, 1); skins.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } i--; } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 3; _root._x = _root._x - 3; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function enemyMovement() { i = enemy.length - 1; while (i >= 0) { if (player._x < enemy[i]._x) { enemy[i]._xscale = -100; } else { enemy[i]._xscale = 100; } if (type[i] == 0) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; if (goTimer < 75) { playerHealth = playerHealth - enemyPower; } } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 1) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - enemyPower; } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 2) { if (hypArray[i] < 250) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 2); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 3) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 4) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 5.5); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 111) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) * 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) * 2); } } } i--; } } function noOverLap() { i = enemy.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (!(enemy[i] === enemy[j])) { if (enemy[j]._y < enemy[i]._y) { enemy[i].swapDepths(_root.getNextHighestDepth()); } if (enemy[i].hitTest(enemy[j])) { endX = _root.enemy[j]._x; enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed); } } j--; } i--; } } function canAddPoint() { if (clicks == 0) { canAddComboPoint = true; } else { canAddComboPoint = false; } } function runAttackTimer() { if (attacking) { playerSpeed = 1; is_attacking++; } else { playerSpeed = 10; } } function confirmAttacking() { if (clicks > 0) { attacking = true; } } function comboOne() { if (!addSecondCombo) { if (!addThirdCombo) { if (addFirstCombo) { if (attacking) { player.gotoAndStop("melee1"); if (is_attacking == 7) { addFirstCombo = false; if (clicks == 1) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 1) { smack = 0; addSecondCombo = true; } } } } } } } function comboTwo() { if (!addFirstCombo) { if (!addThirdCombo) { if (addSecondCombo) { if (attacking) { player.gotoAndStop("melee2"); if (is_attacking == 13) { addSecondCombo = false; if (clicks == 2) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 2) { smack = 0; addThirdCombo = true; } } } } } } } function comboThree() { if (!addFirstCombo) { if (!addSecondCombo) { if (addThirdCombo) { if (attacking) { player.gotoAndStop("melee3"); if (is_attacking == 20) { frozen = false; addThirdCombo = false; if (clicks == 3) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 3) { smack = 0; clicks = 1; is_attacking = 0; addFirstCombo = true; } } } } } } } function playerMovement() { fire_bullets._x = bg._x - 1000; acid_bullets._x = bg._x + 500; health_mc._x = bg._x; exit._x = bg._x; if (goTimer < 75) { if (hitPlayer == 0) { var _local1 = player.transform.colorTransform; player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } if (hitPlayer == 1) { var _local1 = player.transform.colorTransform; _local1.rgb = 4294967295; player.transform.colorTransform = _local1; hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } if (player._y < 340) { player._y = 340; } if (player._y > 430) { player._y = 430; } if (player._x < 46) { player._x = 46; } if (canGo) { if (bg._x > -1203.15) { if (player._x > 410) { moved++; bg._x = bg._x - 5; playerFade._x = playerFade._x - 5; steps++; player._x = 410; } } } if (player._x > 590) { player._x = 590; } if (!attacking) { if (shooting) { if (!running) { player.gotoAndStop("shoot_idle"); } if (running) { player.gotoAndStop("shoot_run"); } } if (!shooting) { if (!running) { player.gotoAndStop("idle"); } if (running) { player.gotoAndStop("run"); } } } if (!Key.isDown(65)) { shooting = false; } if (Key.isDown(65)) { if (ammo > 0) { shooting = true; } } if (!Key.isDown(83)) { pressHack = 0; } if (Key.isDown(83)) { if (!shooting) { if (pressHack == 0) { pressHack = 1; if (canAddComboPoint) { addFirstCombo = true; } clicks++; } } } if (!Key.isDown(38)) { running = false; } if (!Key.isDown(40)) { running = false; } if (!Key.isDown(39)) { running = false; } if (!Key.isDown(37)) { running = false; } if (Key.isDown(38)) { if (shooting) { player._y = player._y - playerSpeed; } else { player._y = player._y - (playerSpeed * 2); } running = true; } if (Key.isDown(40)) { if (shooting) { player._y = player._y + playerSpeed; } else { player._y = player._y + (playerSpeed * 2); } running = true; } if (Key.isDown(39)) { player._xscale = 100; if (shooting) { player._x = player._x + playerSpeed; } else { player._x = player._x + (playerSpeed * 2); } running = true; } if (Key.isDown(37)) { player._xscale = -100; if (shooting) { player._x = player._x - playerSpeed; } else { player._x = player._x - (playerSpeed * 2); } running = true; } } } stop(); exit._alpha = 0; health_sound = new Sound(); health_sound.attachSound("health.mp3"); zombiereload_sound = new Sound(); zombiereload_sound.attachSound("zombiereload"); shot_sound = new Sound(); shot_sound.attachSound("shot"); swing_sound = new Sound(); swing_sound.attachSound("swing"); hit_sound = new Sound(); hit_sound.attachSound("smack"); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:19.5, _y:115}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth()); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:300, _y:422}); _root.attachMovie("health_mc", "health_mc", _root.getNextHighestDepth(), {_x:1500, _y:330}); _root.attachMovie("fire_bullets", "fire_bullets", _root.getNextHighestDepth(), {_x:1000, _y:390}); _root.attachMovie("acid_bullets", "acid_bullets", _root.getNextHighestDepth(), {_x:1000, _y:420}); goTime = false; goTimer = 0; yesGo = 0; moved = 0; bulletPower = 2; bulletSpeed = 25; shootingTimer = 0; reloadTime = 250; choice = 0; addRain = 0; releNum = 500; enemyPower = 1.5; playerSpeed = 12; playerPower = 0.3; playerHealth = 100; running = false; attacking = false; enemiesdead = 0; hitPlayer = 0; hitTimer = 0; pressHack = 0; clicks = 0; shake = 0; smack = 0; canGo = false; shooting = false; bossOn = false; enemyNumber = 0; is_attacking = 0; releaseenemy = 0; randomNumber = 0; enemySpeed = 60; markWave = 10; steps = 0; pplKilled = 0; distance = 0; var skins = new Array(); var shot = new Array(); var depths = new Array(); var dead_body = new Array(); var pounds = new Array(); var type = new Array(); var hypArray = new Array(); var enemyHealth = new Array(); var damagedTimer = new Array(); var hit = new Array(); var enemyAttackingTimer = new Array(); var enemyAttacking = new Array(); var enemy = new Array(); player.onEnterFrame = function () { if ((ammo < 0) or (ammo == 0)) { bulletType = 0; shooting = false; ammo = 0; } if (ammo > 50) { ammo = 50; } if (health_mc.hitTest(player._x, player._y, true)) { health_sound.start(); playerHealth = 100; health_mc.removeMovieClip(); } if (acid_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 2; ammo = 25; acid_bullets.removeMovieClip(); } if (fire_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 1; ammo = 25; fire_bullets.removeMovieClip(); } if (playerHealth > 100) { playerHealth = 100; } barBoarder.scr.text = score; barBoarder.am.text = ammo; healthBar._xscale = playerHealth; if (player.hitTest(exit)) { goTime = true; } if (goTime) { if (goTimer == 0) { _root.attachMovie("train", "train", _root.getNextHighestDepth()); } goTimer++; if (goTimer == 75) { player._alpha = 0; } if (goTimer == 270) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; removeall(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); exit.removeMovieClip(); goTime = false; nextFrame(); } } if (playerHealth < 0) { removeall(); train.removeMovieClip(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); exit.removeMovieClip(); gotoAndStop ("gameOver"); } pushDeadbody(); waveActions(); noOverLap(); swapdepths(); enemyMovement(); playerMovement(); addenemy(); calculateHyp(); enemyHealthReachesZero(); pushEnemy(); shotActions(); train.swapDepths(_root.getNextHighestDepth()); healthBar.swapDepths(_root.getNextHighestDepth()); barBoarder.swapDepths(_root.getNextHighestDepth()); letterbox.swapDepths(_root.getNextHighestDepth()); shaker(); pushPounds(); comboOne(); comboTwo(); comboThree(); runAttackTimer(); canAddPoint(); confirmAttacking(); collectCash(); };
Frame 18
player.removeMovieClip(); play();
Frame 19
function removeall() { removeSkins(); removeShot(); removeDepths(); removeDead_body(); removePounds(); removeType(); removeHypArray(); removeEnemyHealth(); removeDamagedTimer(); removeHit(); removeEnemyAttackingTimer(); removeEnemyAttacking(); removeEnemy(); } function shotActions() { if (shooting) { if ((shootingTimer + reloadTime) < getTimer()) { shootingTimer = getTimer(); shot_sound.start(); ammo--; if (bulletType == 2) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 1) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 0) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } } } i = shot.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (shot[i].hitTest(enemy[j])) { if (bulletType == 2) { enemyHealth[j] = -1; } if (bulletType == 1) { enemyHealth[j] = -1; } if (bulletType == 0) { enemyHealth[j] = enemyHealth[j] - bulletPower; randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } j--; } if ((shot[i]._x > 640) or (shot[i]._x < 0)) { shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { shot[i]._x = shot[i]._x - 5; } } } i--; } } function removeSkins() { i = skins.length - 1; while (i >= 0) { skins[i].removeMovieClip(); skins.splice(i, 1); i--; } } function removeShot() { i = shot.length - 1; while (i >= 0) { shot[i].removeMovieClip(); shot.splice(i, 1); i--; } } function removeDepths() { i = depths.length - 1; while (i >= 0) { depths[i].removeMovieClip(); depths.splice(i, 1); i--; } } function removeDead_body() { i = dead_body.length - 1; while (i >= 0) { dead_body[i].removeMovieClip(); dead_body.splice(i, 1); i--; } } function removePounds() { i = pounds.length - 1; while (i >= 0) { pounds[i].removeMovieClip(); pounds.splice(i, 1); i--; } } function removeType() { i = type.length - 1; while (i >= 0) { type[i].removeMovieClip(); type.splice(i, 1); i--; } } function removeHypArray() { i = hypArray.length - 1; while (i >= 0) { hypArray[i].removeMovieClip(); hypArray.splice(i, 1); i--; } } function removeEnemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removeDamagedTimer() { i = damagedTimer.length - 1; while (i >= 0) { damagedTimer[i].removeMovieClip(); damagedTimer.splice(i, 1); i--; } } function removeHit() { i = hit.length - 1; while (i >= 0) { hit[i].removeMovieClip(); hit.splice(i, 1); i--; } } function removeEnemyAttackingTimer() { i = enemyAttackingTimer.length - 1; while (i >= 0) { enemyAttackingTimer[i].removeMovieClip(); enemyAttackingTimer.splice(i, 1); i--; } } function removeEnemyAttacking() { i = enemyAttacking.length - 1; while (i >= 0) { enemyAttacking[i].removeMovieClip(); enemyAttacking.splice(i, 1); i--; } } function removeEnemy() { i = enemy.length - 1; while (i >= 0) { enemy[i].removeMovieClip(); enemy.splice(i, 1); i--; } } function waveActions() { if (distance < 5) { if (markWave < 0) { if (player._x < 410) { if (yesGo == 0) { distance++; _root.attachMovie("gogo", "gogo", _root.getNextHighestDepth()); } yesGo = 1; canGo = true; } } } if (steps > 130) { gogo.removeMovieClip(); yesGo = 0; canGo = false; markWave = 10; steps = 0; } } function addenemy() { if (enemyNumber < 3) { if ((releaseenemy + releNum) < getTimer()) { releaseenemy = getTimer(); enemyNumber++; randomNumber++; emmasGayChoice = Math.round(Math.random() * 2) + 0; if (emmasGayChoice == 0) { choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } skins.push(0); } if (emmasGayChoice == 1) { choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } skins.push(1); } if (emmasGayChoice == 2) { choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout3", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:700}); } else { enemy_ = _root.attachMovie("scout3", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 62) + 400, _x:-100}); } skins.push(2); } depths.push(enemy_); enemy.push(enemy_); type.push(0); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(7); damagedTimer.push(0); hit.push(0); hypArray.push(0); if ((pplKilled > 21) && (pplKilled < 41)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(20); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 41) && (pplKilled < 61)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(2); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(40); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 61) && (pplKilled < 81)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(3); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(70); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 81) && (pplKilled < 101)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(4); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(60); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } } } function collectCash() { i = pounds.length - 1; while (i >= 0) { if (pounds[i].hitTest(player._x, player._y, true)) { zombiereload_sound.start(); ammo = ammo + 10; pounds[i].removeMovieClip(); pounds.splice(i, 1); depths.splice(i, 1); } i--; } } function swapdepths() { i = depths.length - 1; while (i >= 0) { if (player._y < depths[i]._y) { depths[i].swapDepths(_root.getNextHighestDepth()); } if (player._y > depths[i]._y) { player.swapDepths(_root.getNextHighestDepth()); } i--; } } function pushPounds() { i = pounds.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { pounds[i]._x = pounds[i]._x - 5; } } } i--; } } function pushEnemy() { i = enemy.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { enemy[i]._x = enemy[i]._x - 5; } } } i--; } } function pushDeadbody() { i = dead_body.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1203.15) { if (player._x > 410) { dead_body[i]._x = dead_body[i]._x - 5; } } } i--; } } function calculateHyp() { i = enemy.length - 1; while (i >= 0) { dist_x = player._x - enemy[i]._x; dist_y = player._y - enemy[i]._y; hypArray[i] = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y)); i--; } } function enemyHealthReachesZero() { i = enemy.length - 1; while (i >= 0) { if (enemyHealth[i] < 1) { score = score + 10; randomNumber++; _root.attachMovie("plusTen", "plusTen" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); hit_sound.start(); if (bulletType == 0) { if (ammo < 50) { choice = Math.round(Math.random() * 3) + 0; if (choice == 0) { randomNumber++; cash = _root.attachMovie("ammo_mc", "money" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); depths.push(cash); pounds.push(cash); } } } if (hit[i] == 1) { randomNumber++; if (type[i] == 0) { if (skins[i] == 2) { deadbod2 = _root.attachMovie("scoutDead3", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 1) { deadbod2 = _root.attachMovie("scoutDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } } depths.push(deadbod2); dead_body.push(deadbod2); } if (hit[i] == 0) { if (type[i] == 0) { randomNumber++; if (bulletType == 0) { if (skins[i] == 2) { deadbod2 = _root.attachMovie("scoutDead3", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 1) { deadbod2 = _root.attachMovie("scoutDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (skins[i] == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } } if (type[i] == 1) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("slashup", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 2) { randomNumber++; deadbod2 = _root.attachMovie("e2d", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 3) { randomNumber++; deadbod2 = _root.attachMovie("ni2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 4) { randomNumber++; deadbod2 = _root.attachMovie("ed4", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } markWave--; enemyNumber--; randomNumber++; death_mc = _root.attachMovie("dead4", "dead4" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); enemy[i].removeMovieClip(); enemy.splice(i, 1); skins.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } i--; } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 3; _root._x = _root._x - 3; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function enemyMovement() { i = enemy.length - 1; while (i >= 0) { if (player._x < enemy[i]._x) { enemy[i]._xscale = -100; } else { enemy[i]._xscale = 100; } if (type[i] == 0) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; if (goTimer < 75) { playerHealth = playerHealth - enemyPower; } } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 1) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - enemyPower; } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 2) { if (hypArray[i] < 250) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 2); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 3) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 4) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 5.5); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 111) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) * 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) * 2); } } } i--; } } function noOverLap() { i = enemy.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (!(enemy[i] === enemy[j])) { if (enemy[j]._y < enemy[i]._y) { enemy[i].swapDepths(_root.getNextHighestDepth()); } if (enemy[i].hitTest(enemy[j])) { endX = _root.enemy[j]._x; enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed); } } j--; } i--; } } function canAddPoint() { if (clicks == 0) { canAddComboPoint = true; } else { canAddComboPoint = false; } } function runAttackTimer() { if (attacking) { playerSpeed = 1; is_attacking++; } else { playerSpeed = 10; } } function confirmAttacking() { if (clicks > 0) { attacking = true; } } function comboOne() { if (!addSecondCombo) { if (!addThirdCombo) { if (addFirstCombo) { if (attacking) { player.gotoAndStop("melee1"); if (is_attacking == 7) { addFirstCombo = false; if (clicks == 1) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 1) { smack = 0; addSecondCombo = true; } } } } } } } function comboTwo() { if (!addFirstCombo) { if (!addThirdCombo) { if (addSecondCombo) { if (attacking) { player.gotoAndStop("melee2"); if (is_attacking == 13) { addSecondCombo = false; if (clicks == 2) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 2) { smack = 0; addThirdCombo = true; } } } } } } } function comboThree() { if (!addFirstCombo) { if (!addSecondCombo) { if (addThirdCombo) { if (attacking) { player.gotoAndStop("melee3"); if (is_attacking == 20) { frozen = false; addThirdCombo = false; if (clicks == 3) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 3) { smack = 0; clicks = 1; is_attacking = 0; addFirstCombo = true; } } } } } } } function playerMovement() { health_mc._x = bg._x - 1000; acid_bullets._x = bg._x - 2000; fire_bullets._x = bg._x; exit2._x = bg._x; if (goTimer < 75) { if (hitPlayer == 0) { var _local1 = player.transform.colorTransform; player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } if (hitPlayer == 1) { var _local1 = player.transform.colorTransform; _local1.rgb = 4294967295; player.transform.colorTransform = _local1; hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } if (player._y < 340) { player._y = 340; } if (player._y > 430) { player._y = 430; } if (player._x < 46) { player._x = 46; } if (canGo) { if (bg._x > -1203.15) { if (player._x > 410) { moved++; bg._x = bg._x - 5; playerFade._x = playerFade._x - 5; steps++; player._x = 410; } } } if (player._x > 590) { player._x = 590; } if (!attacking) { if (shooting) { if (!running) { player.gotoAndStop("shoot_idle"); } if (running) { player.gotoAndStop("shoot_run"); } } if (!shooting) { if (!running) { player.gotoAndStop("idle"); } if (running) { player.gotoAndStop("run"); } } } if (!Key.isDown(65)) { shooting = false; } if (Key.isDown(65)) { if (ammo > 0) { shooting = true; } } if (!Key.isDown(83)) { pressHack = 0; } if (Key.isDown(83)) { if (!shooting) { if (pressHack == 0) { pressHack = 1; if (canAddComboPoint) { addFirstCombo = true; } clicks++; } } } if (!Key.isDown(38)) { running = false; } if (!Key.isDown(40)) { running = false; } if (!Key.isDown(39)) { running = false; } if (!Key.isDown(37)) { running = false; } if (Key.isDown(38)) { if (shooting) { player._y = player._y - playerSpeed; } else { player._y = player._y - (playerSpeed * 2); } running = true; } if (Key.isDown(40)) { if (shooting) { player._y = player._y + playerSpeed; } else { player._y = player._y + (playerSpeed * 2); } running = true; } if (Key.isDown(39)) { player._xscale = 100; if (shooting) { player._x = player._x + playerSpeed; } else { player._x = player._x + (playerSpeed * 2); } running = true; } if (Key.isDown(37)) { player._xscale = -100; if (shooting) { player._x = player._x - playerSpeed; } else { player._x = player._x - (playerSpeed * 2); } running = true; } } } stop(); exit2._alpha = 0; health_sound = new Sound(); health_sound.attachSound("health.mp3"); zombiereload_sound = new Sound(); zombiereload_sound.attachSound("zombiereload"); shot_sound = new Sound(); shot_sound.attachSound("shot"); swing_sound = new Sound(); swing_sound.attachSound("swing"); hit_sound = new Sound(); hit_sound.attachSound("smack"); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:19.5, _y:115}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth()); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:300, _y:422}); _root.attachMovie("health_mc", "health_mc", _root.getNextHighestDepth(), {_x:1500, _y:330}); _root.attachMovie("fire_bullets", "fire_bullets", _root.getNextHighestDepth(), {_x:1000, _y:390}); _root.attachMovie("acid_bullets", "acid_bullets", _root.getNextHighestDepth(), {_x:1000, _y:420}); goTime = false; goTimer = 0; yesGo = 0; moved = 0; bulletPower = 4; bulletSpeed = 25; shootingTimer = 0; reloadTime = 250; choice = 0; addRain = 0; releNum = 500; enemyPower = 2; playerSpeed = 12; playerPower = 0.3; playerHealth = 100; running = false; attacking = false; enemiesdead = 0; hitPlayer = 0; hitTimer = 0; pressHack = 0; clicks = 0; shake = 0; smack = 0; canGo = false; shooting = false; bossOn = false; enemyNumber = 0; is_attacking = 0; releaseenemy = 0; randomNumber = 0; enemySpeed = 60; markWave = 10; steps = 0; pplKilled = 0; distance = 0; var skins = new Array(); var shot = new Array(); var depths = new Array(); var dead_body = new Array(); var pounds = new Array(); var type = new Array(); var hypArray = new Array(); var enemyHealth = new Array(); var damagedTimer = new Array(); var hit = new Array(); var enemyAttackingTimer = new Array(); var enemyAttacking = new Array(); var enemy = new Array(); player.onEnterFrame = function () { if ((ammo < 0) or (ammo == 0)) { bulletType = 0; shooting = false; ammo = 0; } if (ammo > 50) { ammo = 50; } if (health_mc.hitTest(player._x, player._y, true)) { health_sound.start(); playerHealth = 100; health_mc.removeMovieClip(); } if (acid_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 2; ammo = 25; acid_bullets.removeMovieClip(); } if (fire_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 1; ammo = 25; fire_bullets.removeMovieClip(); } if (playerHealth > 100) { playerHealth = 100; } barBoarder.scr.text = score; barBoarder.am.text = ammo; healthBar._xscale = playerHealth; if (player.hitTest(exit2)) { trace("o"); goTime = true; } if (goTime) { if (goTimer == 0) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); } goTimer++; if (goTimer == 100) { removeall(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); goTime = false; nextFrame(); } } if (playerHealth < 0) { removeall(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); gotoAndStop ("gameOver"); } pushDeadbody(); waveActions(); noOverLap(); swapdepths(); enemyMovement(); playerMovement(); addenemy(); calculateHyp(); enemyHealthReachesZero(); pushEnemy(); shotActions(); raintosser.swapDepths(_root.getNextHighestDepth()); healthBar.swapDepths(_root.getNextHighestDepth()); barBoarder.swapDepths(_root.getNextHighestDepth()); letterbox.swapDepths(_root.getNextHighestDepth()); fade.swapDepths(_root.getNextHighestDepth()); shaker(); pushPounds(); comboOne(); comboTwo(); comboThree(); runAttackTimer(); canAddPoint(); confirmAttacking(); collectCash(); };
Frame 20
stopAllSounds(); player.removeMovieClip(); play();
Instance of Symbol 630 MovieClip in Frame 21
on (release) { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); }
Frame 22
stopAllSounds(); play();
Frame 23
function removeall() { removeShot(); removeDepths(); removeDead_body(); removePounds(); removeType(); removeHypArray(); removeEnemyHealth(); removeDamagedTimer(); removeHit(); removeEnemyAttackingTimer(); removeEnemyAttacking(); removeEnemy(); } function shotActions() { if (shooting) { if ((shootingTimer + reloadTime) < getTimer()) { shootingTimer = getTimer(); shot_sound.start(); ammo--; if (bulletType == 2) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 1) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 0) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } } } i = shot.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (shot[i].hitTest(enemy[j])) { if (bulletType == 2) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { if (player._y > 382) { hit[j] = 1; enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); } } } if (bulletType == 1) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { if (player._y > 382) { hit[j] = 1; enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); } } } if (bulletType == 0) { if (type[j] == 1) { if (player._y > 382) { hit[j] = 1; enemyHealth[j] = enemyHealth[j] - bulletPower; } } if (type[j] == 0) { enemyHealth[j] = enemyHealth[j] - bulletPower; randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } } shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } j--; } if ((shot[i]._x > 640) or (shot[i]._x < 0)) { shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { shot[i]._x = shot[i]._x - 5; } } } i--; } } function removeShot() { i = shot.length - 1; while (i >= 0) { shot[i].removeMovieClip(); shot.splice(i, 1); i--; } } function removeDepths() { i = depths.length - 1; while (i >= 0) { depths[i].removeMovieClip(); depths.splice(i, 1); i--; } } function removeDead_body() { i = dead_body.length - 1; while (i >= 0) { dead_body[i].removeMovieClip(); dead_body.splice(i, 1); i--; } } function removePounds() { i = pounds.length - 1; while (i >= 0) { pounds[i].removeMovieClip(); pounds.splice(i, 1); i--; } } function removeType() { i = type.length - 1; while (i >= 0) { type[i].removeMovieClip(); type.splice(i, 1); i--; } } function removeHypArray() { i = hypArray.length - 1; while (i >= 0) { hypArray[i].removeMovieClip(); hypArray.splice(i, 1); i--; } } function removeEnemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removeDamagedTimer() { i = damagedTimer.length - 1; while (i >= 0) { damagedTimer[i].removeMovieClip(); damagedTimer.splice(i, 1); i--; } } function removeHit() { i = hit.length - 1; while (i >= 0) { hit[i].removeMovieClip(); hit.splice(i, 1); i--; } } function removeEnemyAttackingTimer() { i = enemyAttackingTimer.length - 1; while (i >= 0) { enemyAttackingTimer[i].removeMovieClip(); enemyAttackingTimer.splice(i, 1); i--; } } function removeEnemyAttacking() { i = enemyAttacking.length - 1; while (i >= 0) { enemyAttacking[i].removeMovieClip(); enemyAttacking.splice(i, 1); i--; } } function removeEnemy() { i = enemy.length - 1; while (i >= 0) { enemy[i].removeMovieClip(); enemy.splice(i, 1); i--; } } function addenemy() { if (bnd == 0) { if (enemyNumber < 3) { if ((releaseenemy + releNum) < getTimer()) { releaseenemy = getTimer(); enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 82) + 300, _x:700}); } else { enemy_ = _root.attachMovie("scout", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 82) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(0); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(2); damagedTimer.push(0); hit.push(0); hypArray.push(0); if ((pplKilled > 21) && (pplKilled < 41)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(20); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 41) && (pplKilled < 61)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(2); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(40); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 61) && (pplKilled < 81)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(3); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(70); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 81) && (pplKilled < 101)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(4); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(60); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } } } } function collectCash() { i = pounds.length - 1; while (i >= 0) { if (pounds[i].hitTest(player)) { ammo = ammo + 10; zombiereload_sound.start(); pounds[i].removeMovieClip(); pounds.splice(i, 1); depths.splice(i, 1); } i--; } } function swapdepths() { i = depths.length - 1; while (i >= 0) { if (player._y < depths[i]._y) { depths[i].swapDepths(_root.getNextHighestDepth()); } if (player._y > depths[i]._y) { player.swapDepths(_root.getNextHighestDepth()); } i--; } } function pushPounds() { i = pounds.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { pounds[i]._x = pounds[i]._x - 5; } } } i--; } } function pushEnemy() { i = enemy.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { enemy[i]._x = enemy[i]._x - 5; } } } i--; } } function pushDeadbody() { i = dead_body.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -1916.9) { if (player._x > 410) { dead_body[i]._x = dead_body[i]._x - 5; } } } i--; } } function calculateHyp() { i = enemy.length - 1; while (i >= 0) { dist_x = player._x - enemy[i]._x; dist_y = player._y - enemy[i]._y; hypArray[i] = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y)); i--; } } function enemyHealthReachesZero() { i = enemy.length - 1; while (i >= 0) { if (enemyHealth[i] < 1) { if (type[i] == 1) { bnd = 1; goTime = true; shake++; bang_sound.start(); } score = score + 10; randomNumber++; _root.attachMovie("plusTen", "plusTen" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); if (bulletType == 0) { if (ammo < 50) { choice = Math.round(Math.random() * 5) + 0; if (choice == 0) { randomNumber++; cash = _root.attachMovie("ammo_mc", "money" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); depths.push(cash); pounds.push(cash); } } } if (hit[i] == 1) { randomNumber++; if (type[i] == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (type[i] == 1) { truckHit.removeMovieClip(); deadbod2 = _root.attachMovie("boom", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (hit[i] == 0) { if (type[i] == 0) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("scoutDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 1) { truckHit.removeMovieClip(); randomNumber++; deadbod2 = _root.attachMovie("boom", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } } if (type[i] == 2) { randomNumber++; deadbod2 = _root.attachMovie("e2d", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 3) { randomNumber++; deadbod2 = _root.attachMovie("ni2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 4) { randomNumber++; deadbod2 = _root.attachMovie("ed4", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } markWave--; enemyNumber--; randomNumber++; death_mc = _root.attachMovie("dead4", "dead4" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); enemy[i].removeMovieClip(); enemy.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } i--; } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 3; _root._x = _root._x - 3; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function enemyMovement() { i = enemy.length - 1; while (i >= 0) { if (type[i] == 0) { if (player._x < enemy[i]._x) { enemy[i]._xscale = -100; } else { enemy[i]._xscale = 100; } if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - enemyPower; } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 1) { if (enemyHealth[i] < 0) { enemyHealth[i] = 0; } bh = Math.round(enemyHealth[i]); truckHit._x = enemy[i]._x; if (enemy[i].hitTest(player)) { if (attacking) { if (player._y > 382) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); } if (hit[i] == 1) { if (smack == 0) { hit_sound.start(); shake++; smack = 1; } enemy[i].gotoAndStop("hit"); damagedTimer[i]++; if (damagedTimer[i] == 1) { hit[i] = 0; damagedTimer[i] = 0; } } if (enemyAttackingTimer[i] > 100) { if (player.hitTest(truckHit)) { hitPlayer = 1; playerHealth = playerHealth - enemyPower; } } enemyAttackingTimer[i]++; if ((enemyAttackingTimer[i] > 100) && (enemyAttackingTimer[i] < 200)) { enemy[i]._xscale = 100; enemy[i]._x = enemy[i]._x - 25; } if ((enemyAttackingTimer[i] > 200) && (enemyAttackingTimer[i] < 350)) { enemy[i]._xscale = -100; enemy[i]._x = enemy[i]._x + 25; } if (enemyAttackingTimer[i] == 350) { enemy[i]._xscale = 100; enemy[i]._x = 1000; } if (enemyAttackingTimer[i] > 350) { enemy[i]._x = enemy[i]._x - 6; } if (enemyAttackingTimer[i] == 400) { enemyAttackingTimer[i] = 0; } } if (type[i] == 2) { if (hypArray[i] < 250) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 2); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 3) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 4) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 5.5); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 111) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) * 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) * 2); } } } i--; } } function noOverLap() { i = enemy.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (!invisible) { if (!(enemy[i] === enemy[j])) { if (enemy[j]._y < enemy[i]._y) { enemy[i].swapDepths(_root.getNextHighestDepth()); } if (enemy[i].hitTest(enemy[j])) { if ((!type[i]) == 1) { endX = _root.enemy[j]._x; enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed); } } } } j--; } i--; } } function canAddPoint() { if (clicks == 0) { canAddComboPoint = true; } else { canAddComboPoint = false; } } function runAttackTimer() { if (attacking) { playerSpeed = 1; is_attacking++; } else { playerSpeed = 10; } } function confirmAttacking() { if (clicks > 0) { attacking = true; } } function comboOne() { if (!addSecondCombo) { if (!addThirdCombo) { if (addFirstCombo) { if (attacking) { player.gotoAndStop("melee1"); if (is_attacking == 7) { addFirstCombo = false; if (clicks == 1) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 1) { smack = 0; addSecondCombo = true; } } } } } } } function comboTwo() { if (!addFirstCombo) { if (!addThirdCombo) { if (addSecondCombo) { if (attacking) { player.gotoAndStop("melee2"); if (is_attacking == 13) { addSecondCombo = false; if (clicks == 2) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 2) { smack = 0; addThirdCombo = true; } } } } } } } function comboThree() { if (!addFirstCombo) { if (!addSecondCombo) { if (addThirdCombo) { if (attacking) { player.gotoAndStop("melee3"); if (is_attacking == 20) { frozen = false; addThirdCombo = false; if (clicks == 3) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 3) { smack = 0; clicks = 1; is_attacking = 0; addFirstCombo = true; } } } } } } } function playerMovement() { if (hitPlayer == 0) { var _local1 = player.transform.colorTransform; player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } if (hitPlayer == 1) { var _local1 = player.transform.colorTransform; _local1.rgb = 4294967295; player.transform.colorTransform = _local1; hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } if (player._y < 282) { player._y = 282; } if (player._y > 430) { player._y = 430; } if (player._x < 46) { player._x = 46; } if (canGo) { if (bg._x > -1916.9) { if (player._x > 410) { moved++; bg._x = bg._x - 5; playerFade._x = playerFade._x - 5; steps++; player._x = 410; } } } if (player._x > 590) { player._x = 590; } if (!attacking) { if (shooting) { if (!running) { player.gotoAndStop("shoot_idle"); } if (running) { player.gotoAndStop("shoot_run"); } } if (!shooting) { if (!running) { player.gotoAndStop("idle"); } if (running) { player.gotoAndStop("run"); } } } if (!Key.isDown(65)) { shooting = false; } if (Key.isDown(65)) { if (ammo > 0) { shooting = true; } } if (!Key.isDown(83)) { pressHack = 0; } if (Key.isDown(83)) { if (!shooting) { if (pressHack == 0) { pressHack = 1; if (canAddComboPoint) { addFirstCombo = true; } clicks++; } } } if (!Key.isDown(38)) { running = false; } if (!Key.isDown(40)) { running = false; } if (!Key.isDown(39)) { running = false; } if (!Key.isDown(37)) { running = false; } if (Key.isDown(38)) { if (shooting) { player._y = player._y - playerSpeed; } else { player._y = player._y - (playerSpeed * 2); } running = true; } if (Key.isDown(40)) { if (shooting) { player._y = player._y + playerSpeed; } else { player._y = player._y + (playerSpeed * 2); } running = true; } if (Key.isDown(39)) { player._xscale = 100; if (shooting) { player._x = player._x + playerSpeed; } else { player._x = player._x + (playerSpeed * 2); } running = true; } if (Key.isDown(37)) { player._xscale = -100; if (shooting) { player._x = player._x - playerSpeed; } else { player._x = player._x - (playerSpeed * 2); } running = true; } } stop(); bang_sound = new Sound(); bang_sound.attachSound("bang"); health_sound = new Sound(); health_sound.attachSound("health.mp3"); zombiereload_sound = new Sound(); zombiereload_sound.attachSound("zombiereload"); shot_sound = new Sound(); shot_sound.attachSound("shot"); swing_sound = new Sound(); swing_sound.attachSound("swing"); hit_sound = new Sound(); hit_sound.attachSound("smack"); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:19.5, _y:115}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth()); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:300, _y:422}); _root.attachMovie("health_mc", "health_mc", _root.getNextHighestDepth(), {_x:500, _y:260}); _root.attachMovie("fire_bullets", "fire_bullets", _root.getNextHighestDepth(), {_x:100, _y:390}); _root.attachMovie("acid_bullets", "acid_bullets", _root.getNextHighestDepth(), {_x:500, _y:390}); _root.attachMovie("truckHit", "truckHit", _root.getNextHighestDepth(), {_x:700, _y:390}); _root.attachMovie("ztruck", "ztruck", _root.getNextHighestDepth(), {_x:700, _y:390}); bnd = 0; goTime = false; goTimer = 0; truckHit._alpha = 0; bulletType = 0; ammo = 50; yesGo = 0; moved = 0; bulletPower = 2; bulletSpeed = 25; shootingTimer = 0; reloadTime = 250; choice = 0; addRain = 0; releNum = 500; enemyPower = 1; playerSpeed = 12; playerPower = 0.3; playerHealth = 100; running = false; attacking = false; enemiesdead = 0; hitPlayer = 0; hitTimer = 0; pressHack = 0; clicks = 0; shake = 0; smack = 0; canGo = false; shooting = false; bossOn = false; enemyNumber = 0; is_attacking = 0; releaseenemy = 0; randomNumber = 0; enemySpeed = 60; markWave = 7; steps = 0; addBoss = 0; pplKilled = 0; distance = 0; var shot = new Array(); var depths = new Array(); var dead_body = new Array(); var pounds = new Array(); var type = new Array(); var hypArray = new Array(); var enemyHealth = new Array(); var damagedTimer = new Array(); var hit = new Array(); var enemyAttackingTimer = new Array(); var enemyAttacking = new Array(); var enemy = new Array(); depths.push(ztruck); enemy.push(ztruck); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(0); enemyHealth.push(200); damagedTimer.push(0); hit.push(0); hypArray.push(0); player.onEnterFrame = function () { if ((ammo < 0) or (ammo == 0)) { bulletType = 0; shooting = false; ammo = 0; } if (ammo > 50) { ammo = 50; } if (health_mc.hitTest(player._x, player._y, true)) { health_sound.start(); playerHealth = 100; health_mc.removeMovieClip(); } if (acid_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 2; ammo = 25; acid_bullets.removeMovieClip(); } if (fire_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 1; ammo = 25; fire_bullets.removeMovieClip(); } if (playerHealth > 100) { playerHealth = 100; } barBoarder.scr.text = score; barBoarder.am.text = ammo; healthBar._xscale = playerHealth; if (goTime) { if (goTimer == 0) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); } goTimer++; if (goTimer == 100) { removeall(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); greenThing.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); raintosser.removeMovieClip(); nextFrame(); } } if (playerHealth < 0) { removeall(); truckHit.removeMovieClip(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); greenThing.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); gotoAndStop ("gameOver"); } pushDeadbody(); noOverLap(); swapdepths(); enemyMovement(); playerMovement(); addenemy(); calculateHyp(); enemyHealthReachesZero(); pushEnemy(); shotActions(); wall.swapDepths(_root.getNextHighestDepth()); raintosser.swapDepths(_root.getNextHighestDepth()); healthBar.swapDepths(_root.getNextHighestDepth()); barBoarder.swapDepths(_root.getNextHighestDepth()); ztruck.swapDepths(_root.getNextHighestDepth()); letterbox.swapDepths(_root.getNextHighestDepth()); fade.swapDepths(_root.getNextHighestDepth()); shaker(); pushPounds(); comboOne(); comboTwo(); comboThree(); runAttackTimer(); canAddPoint(); confirmAttacking(); collectCash(); };
Frame 24
player.removeMovieClip(); play();
Frame 25
stop(); zmm.onRelease = function () { nextFrame(); zmm.removeMovieClip(); zmm._alpha = 0; zmm._x = 30000000 /* 0x1C9C380 */; }; zmm.onEnterFrame = function () { zmm.swapDepths(_root.getNextHighestDepth()); };
Frame 26
function removeall() { removeShot(); removeDepths(); removeDead_body(); removePounds(); removeType(); removeHypArray(); removeEnemyHealth(); removeDamagedTimer(); removeHit(); removeEnemyAttackingTimer(); removeEnemyAttacking(); removeEnemy(); } function shotActions() { if (shooting) { if ((shootingTimer + reloadTime) < getTimer()) { shootingTimer = getTimer(); shot_sound.start(); ammo--; if (bulletType == 2) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("acid", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 1) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("fireBullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } if (bulletType == 0) { choice++; if (choice > 1) { choice = 0; } if (player._xscale == 100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } if (player._xscale == -100) { randomNumber++; if (choice == 0) { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 35}); } else { bullet_ = _root.attachMovie("bullet", "bullet" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30}); } shot.push(bullet_); bullet_.onEnterFrame = function () { this._x = this._x - bulletSpeed; }; } } } } i = shot.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (shot[i].hitTest(enemy[j])) { if (bulletType == 2) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } } if (bulletType == 1) { if (type[j] == 0) { enemyHealth[j] = -1; } if (type[j] == 1) { enemyHealth[j] = enemyHealth[j] - (bulletPower * 2); randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } } if (bulletType == 0) { enemyHealth[j] = enemyHealth[j] - bulletPower; randomNumber++; blood_mc = _root.attachMovie("blood", "blood" + randomNumber, _root.getNextHighestDepth(), {_x:shot[i]._x, _y:shot[i]._y}); blood_mc._xscale = enemy[i]._xscale; } shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } j--; } if ((shot[i]._x > 640) or (shot[i]._x < 0)) { shot[i].removeMovieClip(); shot.splice(i, 1); dir.splice(i, 1); } if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -315) { if (player._x > 410) { shot[i]._x = shot[i]._x - 5; } } } i--; } } function removeShot() { i = shot.length - 1; while (i >= 0) { shot[i].removeMovieClip(); shot.splice(i, 1); i--; } } function removeDepths() { i = depths.length - 1; while (i >= 0) { depths[i].removeMovieClip(); depths.splice(i, 1); i--; } } function removeDead_body() { i = dead_body.length - 1; while (i >= 0) { dead_body[i].removeMovieClip(); dead_body.splice(i, 1); i--; } } function removePounds() { i = pounds.length - 1; while (i >= 0) { pounds[i].removeMovieClip(); pounds.splice(i, 1); i--; } } function removeType() { i = type.length - 1; while (i >= 0) { type[i].removeMovieClip(); type.splice(i, 1); i--; } } function removeHypArray() { i = hypArray.length - 1; while (i >= 0) { hypArray[i].removeMovieClip(); hypArray.splice(i, 1); i--; } } function removeEnemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removeDamagedTimer() { i = damagedTimer.length - 1; while (i >= 0) { damagedTimer[i].removeMovieClip(); damagedTimer.splice(i, 1); i--; } } function removeHit() { i = hit.length - 1; while (i >= 0) { hit[i].removeMovieClip(); hit.splice(i, 1); i--; } } function removeEnemyAttackingTimer() { i = enemyAttackingTimer.length - 1; while (i >= 0) { enemyAttackingTimer[i].removeMovieClip(); enemyAttackingTimer.splice(i, 1); i--; } } function removeEnemyAttacking() { i = enemyAttacking.length - 1; while (i >= 0) { enemyAttacking[i].removeMovieClip(); enemyAttacking.splice(i, 1); i--; } } function removeEnemy() { i = enemy.length - 1; while (i >= 0) { enemy[i].removeMovieClip(); enemy.splice(i, 1); i--; } } function addenemy() { if (enemyNumber < 3) { if ((releaseenemy + releNum) < getTimer()) { releaseenemy = getTimer(); enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("para", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 292) + 170, _x:700}); enemy_._xscale = -100; } else { enemy_ = _root.attachMovie("para", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 292) + 170, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(0); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(2); damagedTimer.push(0); hit.push(0); hypArray.push(0); if ((pplKilled > 21) && (pplKilled < 41)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy1", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(1); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(20); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 41) && (pplKilled < 61)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(2); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(40); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 61) && (pplKilled < 81)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("nii2", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(3); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(70); damagedTimer.push(0); hit.push(0); hypArray.push(0); } if ((pplKilled > 81) && (pplKilled < 101)) { enemyNumber++; randomNumber++; choice = Math.round(Math.random() * 1) + 0; if (choice == 0) { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:700}); } else { enemy_ = _root.attachMovie("enemy4", "enemy1" + randomNumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 162) + 300, _x:-100}); } depths.push(enemy_); enemy.push(enemy_); type.push(4); enemyAttacking.push(false); enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0); enemyHealth.push(60); damagedTimer.push(0); hit.push(0); hypArray.push(0); } } } } function collectCash() { i = pounds.length - 1; while (i >= 0) { if (pounds[i].hitTest(player)) { ammo = ammo + 10; zombiereload_sound.start(); pounds[i].removeMovieClip(); pounds.splice(i, 1); depths.splice(i, 1); } i--; } } function swapdepths() { i = depths.length - 1; while (i >= 0) { if (player._y < depths[i]._y) { depths[i].swapDepths(_root.getNextHighestDepth()); } if (player._y > depths[i]._y) { player.swapDepths(_root.getNextHighestDepth()); } i--; } } function pushPounds() { i = pounds.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -315) { if (player._x > 410) { pounds[i]._x = pounds[i]._x - 5; } } } i--; } } function pushEnemy() { i = enemy.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -315) { if (player._x > 410) { enemy[i]._x = enemy[i]._x - 5; } } } i--; } } function pushDeadbody() { i = dead_body.length - 1; while (i >= 0) { if (canGo) { if (bg._x < 0) { if (player._x < 46) { } } if (bg._x > -315) { if (player._x > 410) { dead_body[i]._x = dead_body[i]._x - 5; } } } i--; } } function calculateHyp() { i = enemy.length - 1; while (i >= 0) { dist_x = player._x - enemy[i]._x; dist_y = player._y - enemy[i]._y; hypArray[i] = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y)); i--; } } function enemyHealthReachesZero() { i = enemy.length - 1; while (i >= 0) { if ((enemy[i]._xscale == 100) && (enemy[i]._x > 800)) { markWave--; enemyNumber--; enemy[i].removeMovieClip(); enemy.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } if ((enemy[i]._xscale == -100) && (enemy[i]._x < -200)) { markWave--; enemyNumber--; enemy[i].removeMovieClip(); enemy.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } if (enemyHealth[i] < 1) { score = score + 10; randomNumber++; _root.attachMovie("plusTen", "plusTen" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); if (bulletType == 0) { if (ammo < 50) { choice = Math.round(Math.random() * 5) + 0; if (choice == 0) { randomNumber++; cash = _root.attachMovie("ammo_mc", "money" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); depths.push(cash); pounds.push(cash); } } } if (hit[i] == 1) { randomNumber++; if (type[i] == 0) { deadbod2 = _root.attachMovie("boomDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (type[i] == 1) { deadbod2 = _root.attachMovie("bossDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (hit[i] == 0) { if (type[i] == 0) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("boomDead2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 1) { randomNumber++; if (bulletType == 0) { deadbod2 = _root.attachMovie("bossDead", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 1) { deadbod2 = _root.attachMovie("fireScoutDead", "fireScoutDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } if (bulletType == 2) { deadbod2 = _root.attachMovie("boomDead", "boomDead" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._xscale = enemy[i]._xscale; } depths.push(deadbod2); dead_body.push(deadbod2); } } if (type[i] == 2) { randomNumber++; deadbod2 = _root.attachMovie("e2d", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 3) { randomNumber++; deadbod2 = _root.attachMovie("ni2", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } if (type[i] == 4) { randomNumber++; deadbod2 = _root.attachMovie("ed4", "saberside2" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); deadbod2._yscale = 80; deadbod2._xscale = enemy[i]._xscale; depths.push(deadbod2); dead_body.push(deadbod2); } death_mc = _root.attachMovie("dead4", "dead4" + randomNumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y}); markWave--; enemyNumber--; enemy[i].removeMovieClip(); enemy.splice(i, 1); hit.splice(i, 1); depths.splice(i, 1); type.splice(i, 1); damagedTimer.splice(i, 1); enemyHealth.splice(i, 1); enemyAttacking.splice(i, 1); enemyAttackingTimer.splice(i, 1); hypArray.splice(i, 1); } i--; } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 3; _root._x = _root._x - 3; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function enemyMovement() { i = enemy.length - 1; while (i >= 0) { if (type[i] == 0) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x - 17; } else { enemy[i]._x = enemy[i]._x + 17; } if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } } if (type[i] == 1) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 110) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 50) + 0; enemyAttacking[i] = 0; if (smack == 0) { hit_sound.start(); shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) / 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) / 2); } } } if (type[i] == 2) { if (hypArray[i] < 250) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 2); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 3) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 4); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 107) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed); enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed); } } } if (type[i] == 4) { if (hypArray[i] < 200) { if (enemyAttacking[i] == 1) { if (enemy[i].hitTest(player)) { hitPlayer = 1; playerHealth = playerHealth - (enemyPower * 5.5); } } enemyAttackingTimer[i]++; } else { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } if (enemyAttackingTimer[i] > 100) { enemy[i].gotoAndStop("attack"); enemyAttacking[i] = 1; if (enemyAttackingTimer[i] == 111) { enemyAttacking[i] = 0; enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; } } if (enemyAttacking[i] == 0) { if (enemy[i].hitTest(player)) { if (attacking) { if (hypArray[i] < 150) { hit[i] = 1; enemyHealth[i] = enemyHealth[i] - playerPower; } } } if (hit[i] == 1) { if (enemy[i]._xscale == -100) { enemy[i]._x = enemy[i]._x + 0.5; } else { enemy[i]._x = enemy[i]._x - 0.5; } enemy[i].gotoAndStop("hit"); enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0; enemyAttacking[i] = 0; if (smack == 0) { shake++; smack = 1; } damagedTimer[i]++; if (damagedTimer[i] == 15) { hit[i] = 0; damagedTimer[i] = 0; } } if (hit[i] == 0) { enemy[i].gotoAndStop("run"); endX = _root.player._x; endY = _root.player._y; enemy[i]._x = enemy[i]._x + (((endX - enemy[i]._x) / enemySpeed) * 2); enemy[i]._y = enemy[i]._y + (((endY - enemy[i]._y) / enemySpeed) * 2); } } } i--; } } function noOverLap() { i = enemy.length - 1; while (i >= 0) { j = enemy.length - 1; while (j >= 0) { if (!invisible) { if (!(enemy[i] === enemy[j])) { if (enemy[j]._y < enemy[i]._y) { enemy[i].swapDepths(_root.getNextHighestDepth()); } if (enemy[i].hitTest(enemy[j])) { endX = _root.enemy[j]._x; enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed); } } } j--; } i--; } } function canAddPoint() { if (clicks == 0) { canAddComboPoint = true; } else { canAddComboPoint = false; } } function runAttackTimer() { if (attacking) { playerSpeed = 1; is_attacking++; } else { playerSpeed = 10; } } function confirmAttacking() { if (clicks > 0) { attacking = true; } } function comboOne() { if (!addSecondCombo) { if (!addThirdCombo) { if (addFirstCombo) { if (attacking) { player.gotoAndStop("melee1"); if (is_attacking == 7) { addFirstCombo = false; if (clicks == 1) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 1) { smack = 0; addSecondCombo = true; } } } } } } } function comboTwo() { if (!addFirstCombo) { if (!addThirdCombo) { if (addSecondCombo) { if (attacking) { player.gotoAndStop("melee2"); if (is_attacking == 13) { addSecondCombo = false; if (clicks == 2) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 2) { smack = 0; addThirdCombo = true; } } } } } } } function comboThree() { if (!addFirstCombo) { if (!addSecondCombo) { if (addThirdCombo) { if (attacking) { player.gotoAndStop("melee3"); if (is_attacking == 20) { frozen = false; addThirdCombo = false; if (clicks == 3) { smack = 0; clicks = 0; is_attacking = 0; attacking = false; } if (clicks > 3) { smack = 0; clicks = 1; is_attacking = 0; addFirstCombo = true; } } } } } } } function playerMovement() { fire_bullets._x = bg._x - 500; acid_bullets._x = bg._x + 1000; health_mc._x = bg._x; doors._x = bg._x; green._x = bg._x; wall._x = bg._x; if (hitPlayer == 0) { var _local1 = player.transform.colorTransform; player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } if (hitPlayer == 1) { var _local1 = player.transform.colorTransform; _local1.rgb = 4294967295; player.transform.colorTransform = _local1; hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } if (player._y < 210) { player._y = 210; } if (player._y > 400) { player._y = 400; } if (bg._x > 0) { if (player._x < 30) { player._x = 30; } } if (bg._x < 0) { if (player._x < 230) { bg._x = bg._x + 5; player._x = 230; } } if (bg._x > -315) { if (player._x > 410) { bg._x = bg._x - 5; player._x = 410; } } if (player._x > 610) { player._x = 610; } if (!attacking) { if (shooting) { if (!running) { player.gotoAndStop("shoot_idle"); } if (running) { player.gotoAndStop("shoot_run"); } } if (!shooting) { if (!running) { player.gotoAndStop("idle"); } if (running) { player.gotoAndStop("run"); } } } if (!Key.isDown(65)) { shooting = false; } if (Key.isDown(65)) { if (ammo > 0) { } } if (!Key.isDown(83)) { pressHack = 0; } if (Key.isDown(83)) { if (!shooting) { if (pressHack == 0) { pressHack = 1; if (canAddComboPoint) { addFirstCombo = true; } clicks++; } } } if (!Key.isDown(38)) { running = false; } if (!Key.isDown(40)) { running = false; } if (!Key.isDown(39)) { running = false; } if (!Key.isDown(37)) { running = false; } if (Key.isDown(38)) { if (shooting) { player._y = player._y - playerSpeed; } else { player._y = player._y - (playerSpeed * 2); } running = true; } if (Key.isDown(40)) { if (shooting) { player._y = player._y + playerSpeed; } else { player._y = player._y + (playerSpeed * 2); } running = true; } if (Key.isDown(39)) { player._xscale = 100; if (shooting) { player._x = player._x + playerSpeed; } else { player._x = player._x + (playerSpeed * 2); } running = true; } if (Key.isDown(37)) { player._xscale = -100; if (shooting) { player._x = player._x - playerSpeed; } else { player._x = player._x - (playerSpeed * 2); } running = true; } } stop(); zmm.removeMovieClip(); health_sound = new Sound(); health_sound.attachSound("health.mp3"); zombiereload_sound = new Sound(); zombiereload_sound.attachSound("zombiereload"); shot_sound = new Sound(); shot_sound.attachSound("shot"); swing_sound = new Sound(); swing_sound.attachSound("swing"); hit_sound = new Sound(); hit_sound.attachSound("smack"); _root.attachMovie("zlols", "barBoarder", _root.getNextHighestDepth()); _root.attachMovie("zombieMan", "player", _root.getNextHighestDepth(), {_x:300, _y:422}); tictoc = 1920; bulletType = 0; ammo = 50; yesGo = 0; moved = 0; bulletPower = 2; bulletSpeed = 25; shootingTimer = 0; reloadTime = 250; choice = 0; addRain = 0; releNum = 500; enemyPower = 1; playerSpeed = 12; playerPower = 0.3; playerHealth = 100; running = false; attacking = false; enemiesdead = 0; hitPlayer = 0; hitTimer = 0; pressHack = 0; clicks = 0; shake = 0; smack = 0; canGo = false; shooting = false; bossOn = false; enemyNumber = 0; is_attacking = 0; releaseenemy = 0; randomNumber = 0; enemySpeed = 60; markWave = 7; steps = 0; addBoss = 0; pplKilled = 0; distance = 0; var shot = new Array(); var depths = new Array(); var dead_body = new Array(); var pounds = new Array(); var type = new Array(); var hypArray = new Array(); var enemyHealth = new Array(); var damagedTimer = new Array(); var hit = new Array(); var enemyAttackingTimer = new Array(); var enemyAttacking = new Array(); var enemy = new Array(); player.onEnterFrame = function () { if ((ammo < 0) or (ammo == 0)) { bulletType = 0; shooting = false; ammo = 0; } if (ammo > 50) { ammo = 50; } if (health_mc.hitTest(player._x, player._y, true)) { health_sound.start(); playerHealth = 100; health_mc.removeMovieClip(); } if (acid_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 2; ammo = 25; acid_bullets.removeMovieClip(); } if (fire_bullets.hitTest(player._x, player._y, true)) { zombiereload_sound.start(); bulletType = 1; ammo = 25; fire_bullets.removeMovieClip(); } if (playerHealth > 100) { playerHealth = 100; } barBoarder.scr.text = score; barBoarder.am.text = ammo; healthBar._xscale = playerHealth; trace(tictoc); tictoc--; if (tictoc == 100) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); } if (tictoc == 0) { removeall(); jonsTimer.removeMovieClip(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); doors.removeMovieClip(); green.removeMovieClip(); wall.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); raintosser.removeMovieClip(); nextFrame(); } if (playerHealth < 0) { removeall(); raintosser.removeMovieClip(); fire_bullets.removeMovieClip(); acid_bullets.removeMovieClip(); health_mc.removeMovieClip(); doors.removeMovieClip(); green.removeMovieClip(); wall.removeMovieClip(); bg.removeMovieClip(); gogo.removeMovieClip(); barBoarder.removeMovieClip(); healthBar.removeMovieClip(); gotoAndStop ("gameOver"); } if (addRain < 1001) { addRain++; } if (addRain == 1000) { _root.attachMovie("raintosser", "raintosser", _root.getNextHighestDepth()); } pushDeadbody(); noOverLap(); swapdepths(); enemyMovement(); playerMovement(); addenemy(); calculateHyp(); enemyHealthReachesZero(); pushEnemy(); shotActions(); raintosser.swapDepths(_root.getNextHighestDepth()); healthBar.swapDepths(_root.getNextHighestDepth()); barBoarder.swapDepths(_root.getNextHighestDepth()); letterbox.swapDepths(_root.getNextHighestDepth()); fade.swapDepths(_root.getNextHighestDepth()); shaker(); pushPounds(); comboOne(); comboTwo(); comboThree(); runAttackTimer(); canAddPoint(); confirmAttacking(); collectCash(); };
Frame 27
stopAllSounds(); player.removeMovieClip(); play();
Frame 28
stop(); ss2.onRelease = function () { gotoAndStop ("moc"); }; mn2.onRelease = function () { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); }; ss2.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.gotoAndStop("down"); } else { this.gotoAndStop("up"); } }; mn2.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.gotoAndStop("over"); } else { this.gotoAndStop("up"); } };
Frame 29
player.removeMovieClip(); stopAllSounds(); ss.onRelease = function () { nextFrame(); }; ty.onRelease = function () { gotoAndStop ("mademen"); }; mn.onRelease = function () { getURL ("http://www.playhub.com/?utm_medium=brandedgames_external&utm_campaign=argh_zombies&utm_source=domain.com&utm_content=ingame", "_blank"); }; ss.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.gotoAndStop("down"); } else { this.gotoAndStop("up"); } }; ty.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.gotoAndStop("down"); } else { this.gotoAndStop("up"); } }; mn.onEnterFrame = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.gotoAndStop("over"); } else { this.gotoAndStop("up"); } };
Frame 30
stop(); uname = "your name"; submitPlay4AllScore = function (uname, gname, scores, game_mode) { var _local1 = new LoadVars(); _local1.game_id = aghzombies; _local1.user_id = uname; _local1.score = score; _local1.game_mode = ""; var _local2 = "http://www.playhub.com/highscores.php?gid=2005"; _local1.sendAndLoad(_local2, _local1, "POST"); }; wwf.onRelease = function () { submitPlay4AllScore(); getURL ("http://www.playhub.com/highscores.php?gid=2005", "_blank"); gotoAndStop ("settings"); };
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 1
head.gotoAndStop("attack");
Symbol 58 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
_root.stop();
Symbol 60 MovieClip Frame 278
_root.play(); stop();
Symbol 172 MovieClip [player] Frame 1
stop();
Symbol 172 MovieClip [player] Frame 2
stop();
Symbol 172 MovieClip [player] Frame 3
stop();
Symbol 172 MovieClip [player] Frame 4
stop();
Symbol 172 MovieClip [player] Frame 5
stop();
Symbol 172 MovieClip [player] Frame 6
stop();
Symbol 172 MovieClip [player] Frame 7
stop();
Symbol 176 MovieClip Frame 5
stop();
Symbol 187 MovieClip [scout] Frame 1
stop();
Symbol 187 MovieClip [scout] Frame 2
stop();
Symbol 187 MovieClip [scout] Frame 3
stop();
Symbol 222 MovieClip [scoutDead] Frame 25
this.removeMovieClip();
Symbol 231 MovieClip [blood] Frame 11
this.removeMovieClip();
Symbol 237 MovieClip Frame 12
stop();
Symbol 238 MovieClip [raintosser] Frame 225
stop();
Symbol 245 MovieClip [plusTen] Frame 31
this.removeMovieClip();
Symbol 260 MovieClip Frame 5
stop();
Symbol 269 MovieClip [scout2] Frame 1
stop();
Symbol 269 MovieClip [scout2] Frame 2
stop();
Symbol 269 MovieClip [scout2] Frame 3
stop();
Symbol 292 MovieClip [scoutDead2] Frame 25
this.removeMovieClip();
Symbol 321 MovieClip [fireScoutDead] Frame 24
this.removeMovieClip();
Symbol 333 MovieClip [boomDead] Frame 15
this.removeMovieClip();
Symbol 356 MovieClip [boss] Frame 1
stop();
Symbol 356 MovieClip [boss] Frame 2
stop();
Symbol 356 MovieClip [boss] Frame 3
stop();
Symbol 357 MovieClip [bossDead] Frame 25
this.removeMovieClip();
Symbol 361 MovieClip [train] Frame 270
this.removeMovieClip();
Symbol 373 MovieClip Frame 5
stop();
Symbol 381 MovieClip [scout3] Frame 1
stop();
Symbol 381 MovieClip [scout3] Frame 2
stop();
Symbol 381 MovieClip [scout3] Frame 3
stop();
Symbol 404 MovieClip [scoutDead3] Frame 25
this.removeMovieClip();
Symbol 405 MovieClip [fade] Frame 101
this.removeMovieClip();
Symbol 447 MovieClip [ztruck] Frame 1
stop();
Symbol 447 MovieClip [ztruck] Frame 2
stop();
Symbol 450 MovieClip [boom] Frame 15
this.removeMovieClip();
Symbol 471 MovieClip Frame 5
stop();
Symbol 472 MovieClip [para] Frame 1
stop();
Symbol 472 MovieClip [para] Frame 2
stop();
Symbol 512 MovieClip [zombieMan] Frame 1
stop();
Symbol 512 MovieClip [zombieMan] Frame 2
stop();
Symbol 512 MovieClip [zombieMan] Frame 3
stop();
Symbol 512 MovieClip [zombieMan] Frame 4
stop();
Symbol 512 MovieClip [zombieMan] Frame 5
stop();
Symbol 513 MovieClip [boomDead2] Frame 15
this.removeMovieClip();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 5
stop();
Symbol 545 MovieClip Frame 10
stop();
Symbol 548 MovieClip Frame 5
stop();
Symbol 557 MovieClip Frame 30
stop();
Symbol 558 MovieClip Frame 1
_root.stop();
Symbol 558 MovieClip Frame 175
_root.play(); stopAllSounds();
Symbol 565 MovieClip Frame 50
stop();
Symbol 568 MovieClip Frame 50
stop();
Symbol 570 MovieClip Frame 50
stop();
Symbol 606 MovieClip Frame 1
_root.stop();
Symbol 606 MovieClip Frame 370
_root.play();
Symbol 619 MovieClip [lift_cutscene] Frame 1
function shake() { if (vibe == 0) { _root._x = 0; _root._y = 0; vibe = vibe + 1; } else if (vibe == 1) { vibe = vibe + 1; _root._x = _root._x + 2; _root._y = _root._y + 2; } else if (vibe == 2) { vibe = vibe + 1; _root._y = _root._y - 4; _root._x = _root._x - 4; } else if (vibe == 3) { vibe = vibe + 1; _root._x = _root._x + 1; _root._y = _root._y + 1; } else if (vibe == 4) { vibe = vibe + 1; _root._x = 0; _root._y = 0; } else if (vibe == 5) { vibe = vibe + 1; _root._x = 4; _root._y = 4; } else if (vibe == 6) { vibe = vibe + 1; _root._x = 2; _root._y = 2; } else if (vibe > 6) { vibe = 0; _root._x = _root._x + 1; _root._y = _root._y + 1; } } vibe = 0; player_head_cutscene.onEnterFrame = function () { shake(); };
Symbol 626 MovieClip Frame 75
stop();
Symbol 627 MovieClip Frame 1
_root.stop();
Symbol 627 MovieClip Frame 364
_root.play();
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 1
_root.stop();
Symbol 645 MovieClip Frame 150
_root.play();
Symbol 686 MovieClip Frame 1921
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 2
stop();

Library Items

Symbol 1 Sound [sound_trucks_moving]
Symbol 2 SoundUsed by:43 60
Symbol 3 GraphicUsed by:645  Timeline
Symbol 4 GraphicUsed by:19 43
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:19 43
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:19 60
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:19 60
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:19 60
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:19
Symbol 15 GraphicUsed by:18
Symbol 16 GraphicUsed by:18
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:15 16 17Used by:19
Symbol 19 MovieClipUses:4 6 8 10 12 14 18Used by:60
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:60
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:59 60
Symbol 24 GraphicUsed by:60 633
Symbol 25 GraphicUsed by:60
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:60
Symbol 28 GraphicUsed by:60 633
Symbol 29 GraphicUsed by:60
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:43
Symbol 32 GraphicUsed by:42
Symbol 33 GraphicUsed by:40
Symbol 34 GraphicUsed by:40
Symbol 35 GraphicUsed by:40
Symbol 36 GraphicUsed by:40
Symbol 37 GraphicUsed by:40
Symbol 38 GraphicUsed by:40
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:33 34 35 36 37 38 39Used by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:32 40 41Used by:43
Symbol 43 MovieClipUses:4 6 31 2 42Used by:60
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:59
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:59
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:59
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:59
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52Used by:59
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:54Used by:59
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:56 57Used by:59
Symbol 59 MovieClipUses:23 45 47 49 51 53 55 58Used by:60
Symbol 60 MovieClipUses:2 19 21 23 24 25 27 28 8 10 12 29 43 59 SS1Used by:Timeline
Symbol 61 GraphicUsed by:85
Symbol 62 GraphicUsed by:73 84 124 141 152 159 171 186 220 259 268 291 302 320 372 380 403 470 485 492 503 511 606
Symbol 63 GraphicUsed by:73
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:73 186 476 485 492 503 511
Symbol 66 GraphicUsed by:73
Symbol 67 GraphicUsed by:73
Symbol 68 GraphicUsed by:73
Symbol 69 GraphicUsed by:73
Symbol 70 GraphicUsed by:73
Symbol 71 GraphicUsed by:73
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:62 63 65 66 67 68 69 70 71 72Used by:85 176 187 446
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:84 470
Symbol 76 GraphicUsed by:84
Symbol 77 GraphicUsed by:84
Symbol 78 GraphicUsed by:84
Symbol 79 GraphicUsed by:84
Symbol 80 GraphicUsed by:84
Symbol 81 GraphicUsed by:84
Symbol 82 GraphicUsed by:84
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:62 75 76 77 78 79 80 81 82 83Used by:85 472 599
Symbol 85 MovieClipUses:61 73 84Used by:Timeline
Symbol 86 FontUsed by:87
Symbol 87 EditableTextUses:86Used by:Timeline
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:93
Symbol 93 MovieClip [ammo_mc]Uses:92Used by:Timeline
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:96
Symbol 96 MovieClip [fire_bullets]Uses:95Used by:Timeline
Symbol 97 GraphicUsed by:101
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:101 107 124 141 152 159 171 453 524 527 645
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:97 99 100Used by:172 606
Symbol 102 GraphicUsed by:107
Symbol 103 GraphicUsed by:107
Symbol 104 GraphicUsed by:107
Symbol 105 GraphicUsed by:107
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:102 103 99 104 105 106Used by:172
Symbol 108 GraphicUsed by:124
Symbol 109 GraphicUsed by:124
Symbol 110 GraphicUsed by:124
Symbol 111 GraphicUsed by:124
Symbol 112 GraphicUsed by:124
Symbol 113 GraphicUsed by:124
Symbol 114 GraphicUsed by:124
Symbol 115 GraphicUsed by:124
Symbol 116 GraphicUsed by:124
Symbol 117 GraphicUsed by:124
Symbol 118 GraphicUsed by:124
Symbol 119 GraphicUsed by:124
Symbol 120 GraphicUsed by:124
Symbol 121 GraphicUsed by:124
Symbol 122 GraphicUsed by:124
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:62 108 99 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123Used by:172
Symbol 125 GraphicUsed by:141
Symbol 126 GraphicUsed by:141
Symbol 127 GraphicUsed by:141
Symbol 128 GraphicUsed by:141
Symbol 129 GraphicUsed by:141
Symbol 130 GraphicUsed by:141
Symbol 131 GraphicUsed by:141
Symbol 132 GraphicUsed by:141
Symbol 133 GraphicUsed by:141
Symbol 134 GraphicUsed by:141
Symbol 135 GraphicUsed by:141
Symbol 136 GraphicUsed by:141
Symbol 137 GraphicUsed by:141
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:141
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:62 125 99 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140Used by:172
Symbol 142 GraphicUsed by:152
Symbol 143 GraphicUsed by:152
Symbol 144 GraphicUsed by:152
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:152 159 626
Symbol 147 GraphicUsed by:152
Symbol 148 GraphicUsed by:152
Symbol 149 GraphicUsed by:152
Symbol 150 GraphicUsed by:152
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClipUses:62 142 99 143 144 146 147 148 149 150 151 SS2Used by:172
Symbol 153 GraphicUsed by:159
Symbol 154 GraphicUsed by:159
Symbol 155 GraphicUsed by:159
Symbol 156 GraphicUsed by:159
Symbol 157 GraphicUsed by:159
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClipUses:62 153 99 154 155 156 146 157 158 SS3Used by:172
Symbol 160 GraphicUsed by:171
Symbol 161 GraphicUsed by:171
Symbol 162 GraphicUsed by:171
Symbol 163 GraphicUsed by:171
Symbol 164 GraphicUsed by:171
Symbol 165 GraphicUsed by:171
Symbol 166 GraphicUsed by:171
Symbol 167 GraphicUsed by:171
Symbol 168 GraphicUsed by:171
Symbol 169 GraphicUsed by:171
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:62 99 160 161 162 163 164 165 166 167 168 169 170 SS4Used by:172
Symbol 172 MovieClip [player]Uses:101 107 124 141 152 159 171Used by:Timeline
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:175
Symbol 175 MovieClip [bullet]Uses:174Used by:Timeline
Symbol 176 MovieClipUses:73Used by:187
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:177Used by:186 492 503 511
Symbol 179 GraphicUsed by:186
Symbol 180 GraphicUsed by:186
Symbol 181 GraphicUsed by:186
Symbol 182 GraphicUsed by:186
Symbol 183 GraphicUsed by:186
Symbol 184 GraphicUsed by:186
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:62 178 179 180 65 181 182 183 184 185Used by:187
Symbol 187 MovieClip [scout]Uses:73 176 186Used by:Timeline
Symbol 188 GraphicUsed by:220
Symbol 189 GraphicUsed by:194
Symbol 190 GraphicUsed by:194
Symbol 191 GraphicUsed by:194
Symbol 192 GraphicUsed by:194
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClipUses:189 190 191 192 193Used by:220
Symbol 195 GraphicUsed by:204
Symbol 196 GraphicUsed by:204
Symbol 197 GraphicUsed by:204
Symbol 198 GraphicUsed by:204
Symbol 199 GraphicUsed by:204
Symbol 200 GraphicUsed by:204
Symbol 201 GraphicUsed by:204
Symbol 202 GraphicUsed by:204
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:195 196 197 198 199 200 201 202 203Used by:220 291 332 403
Symbol 205 GraphicUsed by:220
Symbol 206 GraphicUsed by:220
Symbol 207 GraphicUsed by:220
Symbol 208 GraphicUsed by:220
Symbol 209 GraphicUsed by:220
Symbol 210 GraphicUsed by:220
Symbol 211 GraphicUsed by:220
Symbol 212 GraphicUsed by:220
Symbol 213 GraphicUsed by:220
Symbol 214 GraphicUsed by:220
Symbol 215 GraphicUsed by:220
Symbol 216 GraphicUsed by:220
Symbol 217 GraphicUsed by:220
Symbol 218 GraphicUsed by:220
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:62 188 194 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219Used by:222
Symbol 221 SoundUsed by:222 292 357 404
Symbol 222 MovieClip [scoutDead]Uses:220 221Used by:Timeline
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClip [healthBar]Uses:223Used by:Timeline
Symbol 225 GraphicUsed by:230
Symbol 226 GraphicUsed by:230
Symbol 227 GraphicUsed by:230
Symbol 228 GraphicUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClipUses:225 226 227 228 229Used by:231
Symbol 231 MovieClip [blood]Uses:230Used by:Timeline
Symbol 232 GraphicUsed by:233 405 558
Symbol 233 MovieClipUses:232Used by:238
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClipUses:234Used by:236
Symbol 236 MovieClipUses:235Used by:237
Symbol 237 MovieClipUses:236Used by:238
Symbol 238 MovieClip [raintosser]Uses:233 237Used by:Timeline
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239 SS5Used by:241
Symbol 241 MovieClip [gogo]Uses:240Used by:Timeline
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:244
Symbol 244 MovieClipUses:243Used by:245
Symbol 245 MovieClip [plusTen]Uses:244Used by:Timeline
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClipUses:246Used by:248
Symbol 248 MovieClip [health_mc]Uses:247Used by:Timeline
Symbol 249 GraphicUsed by:259
Symbol 250 GraphicUsed by:251
Symbol 251 MovieClipUses:250Used by:259 268 275
Symbol 252 GraphicUsed by:259
Symbol 253 GraphicUsed by:259
Symbol 254 GraphicUsed by:259
Symbol 255 GraphicUsed by:259
Symbol 256 GraphicUsed by:259
Symbol 257 GraphicUsed by:259
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClipUses:62 249 251 252 253 254 255 256 257 258Used by:260 269 356
Symbol 260 MovieClipUses:259Used by:269 356
Symbol 261 GraphicUsed by:268
Symbol 262 GraphicUsed by:268
Symbol 263 GraphicUsed by:268
Symbol 264 GraphicUsed by:268 380
Symbol 265 GraphicUsed by:268
Symbol 266 GraphicUsed by:268
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:62 251 261 262 263 264 265 266 267Used by:269 356
Symbol 269 MovieClip [scout2]Uses:259 260 268Used by:Timeline
Symbol 270 GraphicUsed by:291
Symbol 271 GraphicUsed by:275
Symbol 272 GraphicUsed by:275
Symbol 273 GraphicUsed by:275
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClipUses:251 271 272 273 274Used by:291
Symbol 276 GraphicUsed by:291
Symbol 277 GraphicUsed by:291
Symbol 278 GraphicUsed by:291
Symbol 279 GraphicUsed by:291
Symbol 280 GraphicUsed by:291
Symbol 281 GraphicUsed by:291
Symbol 282 GraphicUsed by:291
Symbol 283 GraphicUsed by:291
Symbol 284 GraphicUsed by:291
Symbol 285 GraphicUsed by:291
Symbol 286 GraphicUsed by:291
Symbol 287 GraphicUsed by:291
Symbol 288 GraphicUsed by:291
Symbol 289 GraphicUsed by:291
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:62 270 275 204 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290Used by:292 357
Symbol 292 MovieClip [scoutDead2]Uses:291 221Used by:Timeline
Symbol 293 GraphicUsed by:320
Symbol 294 GraphicUsed by:320
Symbol 295 GraphicUsed by:320
Symbol 296 GraphicUsed by:320
Symbol 297 GraphicUsed by:320
Symbol 298 GraphicUsed by:320
Symbol 299 GraphicUsed by:320
Symbol 300 GraphicUsed by:320
Symbol 301 GraphicUsed by:320
Symbol 302 MovieClipUses:62Used by:320
Symbol 303 GraphicUsed by:320
Symbol 304 GraphicUsed by:320
Symbol 305 GraphicUsed by:320
Symbol 306 GraphicUsed by:320
Symbol 307 GraphicUsed by:320
Symbol 308 GraphicUsed by:320
Symbol 309 GraphicUsed by:320
Symbol 310 GraphicUsed by:320
Symbol 311 GraphicUsed by:320
Symbol 312 GraphicUsed by:320
Symbol 313 GraphicUsed by:320
Symbol 314 GraphicUsed by:320
Symbol 315 GraphicUsed by:320
Symbol 316 GraphicUsed by:320
Symbol 317 GraphicUsed by:320
Symbol 318 GraphicUsed by:320
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClipUses:62 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319Used by:321
Symbol 321 MovieClip [fireScoutDead]Uses:320Used by:Timeline
Symbol 322 GraphicUsed by:331
Symbol 323 GraphicUsed by:331
Symbol 324 GraphicUsed by:331
Symbol 325 GraphicUsed by:331
Symbol 326 GraphicUsed by:331
Symbol 327 GraphicUsed by:331
Symbol 328 GraphicUsed by:331
Symbol 329 GraphicUsed by:331
Symbol 330 GraphicUsed by:331
Symbol 331 MovieClipUses:322 323 324 325 326 327 328 329 330Used by:332 450
Symbol 332 MovieClipUses:331 204Used by:333 513
Symbol 333 MovieClip [boomDead]Uses:332Used by:Timeline
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:350
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:350
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:350
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:350
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:350
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:350
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:350
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:350
Symbol 350 MovieClipUses:335 337 339 341 343 345 347 349Used by:351 355 446 591
Symbol 351 MovieClip [fireBullet]Uses:350Used by:Timeline
Symbol 352 GraphicUsed by:353
Symbol 353 MovieClipUses:352Used by:354
Symbol 354 MovieClip [acid_bullets]Uses:353Used by:Timeline
Symbol 355 MovieClip [acid]Uses:350Used by:Timeline
Symbol 356 MovieClip [boss]Uses:259 260 268Used by:Timeline
Symbol 357 MovieClip [bossDead]Uses:291 221Used by:Timeline
Symbol 358 GraphicUsed by:360
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClipUses:358 359Used by:361  Timeline
Symbol 361 MovieClip [train]Uses:360 SS6Used by:Timeline
Symbol 362 GraphicUsed by:372
Symbol 363 GraphicUsed by:364
Symbol 364 MovieClipUses:363Used by:372 380 387
Symbol 365 GraphicUsed by:372
Symbol 366 GraphicUsed by:372
Symbol 367 GraphicUsed by:372
Symbol 368 GraphicUsed by:372
Symbol 369 GraphicUsed by:372
Symbol 370 GraphicUsed by:372
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:62 362 364 365 366 367 368 369 370 371Used by:373 381
Symbol 373 MovieClipUses:372Used by:381
Symbol 374 GraphicUsed by:380
Symbol 375 GraphicUsed by:380
Symbol 376 GraphicUsed by:380
Symbol 377 GraphicUsed by:380
Symbol 378 GraphicUsed by:380
Symbol 379 GraphicUsed by:380
Symbol 380 MovieClipUses:62 364 374 375 376 264 377 378 379Used by:381
Symbol 381 MovieClip [scout3]Uses:372 373 380Used by:Timeline
Symbol 382 GraphicUsed by:403
Symbol 383 GraphicUsed by:387
Symbol 384 GraphicUsed by:387
Symbol 385 GraphicUsed by:387
Symbol 386 GraphicUsed by:387
Symbol 387 MovieClipUses:364 383 384 385 386Used by:403
Symbol 388 GraphicUsed by:403
Symbol 389 GraphicUsed by:403
Symbol 390 GraphicUsed by:403
Symbol 391 GraphicUsed by:403
Symbol 392 GraphicUsed by:403
Symbol 393 GraphicUsed by:403
Symbol 394 GraphicUsed by:403
Symbol 395 GraphicUsed by:403
Symbol 396 GraphicUsed by:403
Symbol 397 GraphicUsed by:403
Symbol 398 GraphicUsed by:403
Symbol 399 GraphicUsed by:403
Symbol 400 GraphicUsed by:403
Symbol 401 GraphicUsed by:403
Symbol 402 GraphicUsed by:403
Symbol 403 MovieClipUses:62 382 387 204 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402Used by:404
Symbol 404 MovieClip [scoutDead3]Uses:403 221Used by:Timeline
Symbol 405 MovieClip [fade]Uses:232Used by:Timeline
Symbol 406 GraphicUsed by:446
Symbol 407 GraphicUsed by:446
Symbol 408 GraphicUsed by:446
Symbol 409 GraphicUsed by:446 599
Symbol 410 GraphicUsed by:446
Symbol 411 GraphicUsed by:446 599
Symbol 412 GraphicUsed by:446
Symbol 413 GraphicUsed by:446
Symbol 414 GraphicUsed by:446
Symbol 415 GraphicUsed by:446
Symbol 416 GraphicUsed by:446
Symbol 417 GraphicUsed by:446
Symbol 418 GraphicUsed by:446
Symbol 419 GraphicUsed by:446
Symbol 420 GraphicUsed by:446
Symbol 421 GraphicUsed by:446
Symbol 422 GraphicUsed by:446
Symbol 423 GraphicUsed by:446
Symbol 424 GraphicUsed by:446
Symbol 425 GraphicUsed by:446
Symbol 426 GraphicUsed by:446
Symbol 427 GraphicUsed by:446
Symbol 428 GraphicUsed by:446
Symbol 429 GraphicUsed by:446
Symbol 430 GraphicUsed by:446
Symbol 431 GraphicUsed by:446
Symbol 432 GraphicUsed by:446
Symbol 433 GraphicUsed by:446
Symbol 434 GraphicUsed by:446
Symbol 435 GraphicUsed by:446
Symbol 436 GraphicUsed by:446
Symbol 437 GraphicUsed by:446
Symbol 438 GraphicUsed by:446
Symbol 439 GraphicUsed by:446
Symbol 440 GraphicUsed by:446
Symbol 441 GraphicUsed by:446
Symbol 442 GraphicUsed by:446
Symbol 443 GraphicUsed by:446
Symbol 444 GraphicUsed by:446
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClipUses:406 350 407 73 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445Used by:447 450
Symbol 447 MovieClip [ztruck]Uses:446Used by:Timeline
Symbol 448 GraphicUsed by:449 613 634 639
Symbol 449 MovieClip [truckHit]Uses:448Used by:Timeline
Symbol 450 MovieClip [boom]Uses:331 446Used by:Timeline
Symbol 451 GraphicUsed by:461
Symbol 452 GraphicUsed by:453
Symbol 453 MovieClipUses:452 99Used by:461 528
Symbol 454 GraphicUsed by:455
Symbol 455 MovieClipUses:454Used by:461
Symbol 456 FontUsed by:457 460 514 648
Symbol 457 EditableTextUses:456Used by:461
Symbol 458 GraphicUsed by:459
Symbol 459 MovieClipUses:458Used by:461 515
Symbol 460 EditableTextUses:456Used by:461
Symbol 461 MovieClip [barBoarder]Uses:451 453 455 457 459 460Used by:Timeline
Symbol 462 GraphicUsed by:470
Symbol 463 GraphicUsed by:470
Symbol 464 GraphicUsed by:470
Symbol 465 GraphicUsed by:470
Symbol 466 GraphicUsed by:470
Symbol 467 GraphicUsed by:470
Symbol 468 GraphicUsed by:470
Symbol 469 GraphicUsed by:470
Symbol 470 MovieClipUses:62 75 462 463 464 465 466 467 468 469Used by:471
Symbol 471 MovieClipUses:470Used by:472
Symbol 472 MovieClip [para]Uses:84 471Used by:Timeline
Symbol 473 GraphicUsed by:476
Symbol 474 GraphicUsed by:475
Symbol 475 MovieClipUses:474Used by:476 485 492 503 511
Symbol 476 MovieClipUses:473 475 65Used by:512
Symbol 477 GraphicUsed by:485
Symbol 478 GraphicUsed by:485
Symbol 479 GraphicUsed by:485
Symbol 480 GraphicUsed by:485
Symbol 481 GraphicUsed by:485
Symbol 482 GraphicUsed by:485
Symbol 483 GraphicUsed by:485
Symbol 484 GraphicUsed by:485
Symbol 485 MovieClipUses:62 475 477 65 478 479 480 481 482 483 484Used by:512
Symbol 486 GraphicUsed by:492
Symbol 487 GraphicUsed by:492
Symbol 488 GraphicUsed by:492
Symbol 489 GraphicUsed by:492
Symbol 490 GraphicUsed by:492
Symbol 491 GraphicUsed by:492
Symbol 492 MovieClipUses:62 475 486 65 487 488 489 178 490 491Used by:512
Symbol 493 GraphicUsed by:503
Symbol 494 GraphicUsed by:503
Symbol 495 GraphicUsed by:503
Symbol 496 GraphicUsed by:503
Symbol 497 GraphicUsed by:503
Symbol 498 GraphicUsed by:503
Symbol 499 GraphicUsed by:503
Symbol 500 GraphicUsed by:503
Symbol 501 GraphicUsed by:503
Symbol 502 GraphicUsed by:503
Symbol 503 MovieClipUses:62 475 493 65 494 495 496 178 497 498 499 500 501 502Used by:512
Symbol 504 GraphicUsed by:511
Symbol 505 GraphicUsed by:511
Symbol 506 GraphicUsed by:511
Symbol 507 GraphicUsed by:511
Symbol 508 GraphicUsed by:511
Symbol 509 GraphicUsed by:511
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClipUses:62 475 504 178 505 506 65 507 508 509 510Used by:512
Symbol 512 MovieClip [zombieMan]Uses:476 485 492 503 511Used by:Timeline
Symbol 513 MovieClip [boomDead2]Uses:332Used by:Timeline
Symbol 514 EditableTextUses:456Used by:515
Symbol 515 MovieClip [zlols]Uses:459 514Used by:Timeline
Symbol 516 Sound [health.mp3]Used by:Timeline
Symbol 517 Sound [smack]Used by:Timeline
Symbol 518 Sound [zombiereload]Used by:Timeline
Symbol 519 Sound [bang]Used by:Timeline
Symbol 520 Sound [shot]Used by:Timeline
Symbol 521 GraphicUsed by:528
Symbol 522 GraphicUsed by:524
Symbol 523 GraphicUsed by:524
Symbol 524 MovieClipUses:522 99 523Used by:528
Symbol 525 GraphicUsed by:527
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClipUses:525 99 526Used by:528
Symbol 528 MovieClipUses:521 453 524 527Used by:Timeline
Symbol 529 GraphicUsed by:531
Symbol 530 GraphicUsed by:531
Symbol 531 MovieClipUses:529 530Used by:Timeline
Symbol 532 GraphicUsed by:534
Symbol 533 GraphicUsed by:534
Symbol 534 MovieClipUses:532 533Used by:Timeline
Symbol 535 GraphicUsed by:537
Symbol 536 GraphicUsed by:537
Symbol 537 MovieClipUses:535 536Used by:Timeline
Symbol 538 ShapeTweeningUsed by:540
Symbol 539 GraphicUsed by:540
Symbol 540 MovieClipUses:538 539Used by:557
Symbol 541 GraphicUsed by:542
Symbol 542 MovieClipUses:541Used by:557
Symbol 543 ShapeTweeningUsed by:545
Symbol 544 GraphicUsed by:545
Symbol 545 MovieClipUses:543 544Used by:557
Symbol 546 ShapeTweeningUsed by:548
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClipUses:546 547Used by:557
Symbol 549 FontUsed by:550 552 553
Symbol 550 TextUses:549Used by:551
Symbol 551 MovieClipUses:550Used by:557
Symbol 552 TextUses:549Used by:554
Symbol 553 TextUses:549Used by:554
Symbol 554 MovieClipUses:552 553Used by:557
Symbol 555 MovieClipUsed by:556
Symbol 556 MovieClipUses:555Used by:557
Symbol 557 MovieClipUses:540 542 545 548 551 554 556Used by:558
Symbol 558 MovieClipUses:232 557 SS7Used by:Timeline
Symbol 559 GraphicUsed by:565
Symbol 560 GraphicUsed by:565
Symbol 561 SoundUsed by:565 606
Symbol 562 GraphicUsed by:565
Symbol 563 GraphicUsed by:565
Symbol 564 GraphicUsed by:565
Symbol 565 MovieClipUses:559 560 561 562 563 564Used by:Timeline
Symbol 566 GraphicUsed by:568
Symbol 567 GraphicUsed by:568
Symbol 568 MovieClipUses:566 567Used by:Timeline
Symbol 569 GraphicUsed by:570
Symbol 570 MovieClipUses:569Used by:Timeline
Symbol 571 SoundUsed by:Timeline
Symbol 572 GraphicUsed by:573
Symbol 573 MovieClipUses:572Used by:Timeline
Symbol 574 GraphicUsed by:591
Symbol 575 BitmapUsed by:576 646
Symbol 576 GraphicUses:575Used by:591
Symbol 577 GraphicUsed by:588
Symbol 578 GraphicUsed by:588
Symbol 579 GraphicUsed by:580
Symbol 580 MovieClipUses:579Used by:588
Symbol 581 GraphicUsed by:588
Symbol 582 GraphicUsed by:588
Symbol 583 GraphicUsed by:588
Symbol 584 GraphicUsed by:588
Symbol 585 GraphicUsed by:588
Symbol 586 GraphicUsed by:588
Symbol 587 GraphicUsed by:588
Symbol 588 MovieClipUses:577 578 580 581 582 583 584 585 586 587Used by:591 626 633 637 693
Symbol 589 GraphicUsed by:590
Symbol 590 MovieClipUses:589Used by:591 610
Symbol 591 MovieClipUses:574 350 576 588 590Used by:606  Timeline
Symbol 592 GraphicUsed by:599
Symbol 593 GraphicUsed by:599
Symbol 594 GraphicUsed by:599
Symbol 595 GraphicUsed by:599
Symbol 596 GraphicUsed by:599
Symbol 597 GraphicUsed by:599
Symbol 598 GraphicUsed by:599
Symbol 599 MovieClipUses:592 84 593 409 594 411 595 596 597 598Used by:606
Symbol 600 GraphicUsed by:606
Symbol 601 GraphicUsed by:606
Symbol 602 GraphicUsed by:606
Symbol 603 GraphicUsed by:606
Symbol 604 GraphicUsed by:606
Symbol 605 GraphicUsed by:606
Symbol 606 MovieClipUses:591 62 599 600 601 561 602 603 101 604 605Used by:Timeline
Symbol 607 SoundUsed by:Timeline
Symbol 608 GraphicUsed by:609
Symbol 609 MovieClipUses:608Used by:Timeline
Symbol 610 MovieClipUses:590Used by:Timeline
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClipUses:611Used by:Timeline
Symbol 613 MovieClipUses:448Used by:Timeline
Symbol 614 GraphicUsed by:619 622
Symbol 615 GraphicUsed by:618
Symbol 616 GraphicUsed by:618
Symbol 617 GraphicUsed by:618
Symbol 618 MovieClip [player_head_cutscene]Uses:615 616 617Used by:619 622
Symbol 619 MovieClip [lift_cutscene]Uses:614 618Used by:627
Symbol 620 GraphicUsed by:622 626 627
Symbol 621 SoundUsed by:627
Symbol 622 MovieClipUses:614 618 620Used by:627
Symbol 623 GraphicUsed by:626
Symbol 624 GraphicUsed by:626
Symbol 625 GraphicUsed by:626
Symbol 626 MovieClipUses:623 588 624 625 146 620Used by:627
Symbol 627 MovieClipUses:619 620 621 622 626 SS8Used by:Timeline
Symbol 628 GraphicUsed by:630
Symbol 629 GraphicUsed by:630
Symbol 630 MovieClipUses:628 629Used by:Timeline
Symbol 631 BitmapUsed by:632
Symbol 632 GraphicUses:631Used by:633
Symbol 633 MovieClipUses:632 24 28 588Used by:Timeline
Symbol 634 MovieClipUses:448Used by:Timeline
Symbol 635 BitmapUsed by:636
Symbol 636 GraphicUses:635Used by:637
Symbol 637 MovieClipUses:636 588Used by:638
Symbol 638 MovieClipUses:637Used by:Timeline
Symbol 639 MovieClipUses:448Used by:Timeline
Symbol 640 SoundUsed by:Timeline
Symbol 641 GraphicUsed by:645
Symbol 642 GraphicUsed by:645
Symbol 643 SoundUsed by:645
Symbol 644 GraphicUsed by:645
Symbol 645 MovieClipUses:3 641 99 642 643 644Used by:Timeline
Symbol 646 GraphicUses:575Used by:647
Symbol 647 MovieClipUses:646Used by:Timeline
Symbol 648 EditableTextUses:456Used by:Timeline
Symbol 649 GraphicUsed by:650
Symbol 650 MovieClipUses:649Used by:Timeline
Symbol 651 SoundUsed by:Timeline
Symbol 652 GraphicUsed by:653
Symbol 653 MovieClipUses:652Used by:Timeline
Symbol 654 GraphicUsed by:Timeline
Symbol 655 GraphicUsed by:686
Symbol 656 GraphicUsed by:686
Symbol 657 GraphicUsed by:686
Symbol 658 GraphicUsed by:686
Symbol 659 GraphicUsed by:686
Symbol 660 GraphicUsed by:686
Symbol 661 GraphicUsed by:686
Symbol 662 GraphicUsed by:686
Symbol 663 GraphicUsed by:686
Symbol 664 GraphicUsed by:686
Symbol 665 GraphicUsed by:686
Symbol 666 GraphicUsed by:686
Symbol 667 GraphicUsed by:686
Symbol 668 GraphicUsed by:686
Symbol 669 GraphicUsed by:686
Symbol 670 GraphicUsed by:686
Symbol 671 GraphicUsed by:686
Symbol 672 GraphicUsed by:686
Symbol 673 GraphicUsed by:686
Symbol 674 GraphicUsed by:686
Symbol 675 GraphicUsed by:686
Symbol 676 GraphicUsed by:686
Symbol 677 GraphicUsed by:686
Symbol 678 GraphicUsed by:686
Symbol 679 GraphicUsed by:686
Symbol 680 GraphicUsed by:686
Symbol 681 SoundUsed by:686
Symbol 682 GraphicUsed by:686
Symbol 683 GraphicUsed by:686
Symbol 684 GraphicUsed by:686
Symbol 685 GraphicUsed by:686
Symbol 686 MovieClipUses:655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685Used by:Timeline
Symbol 687 GraphicUsed by:688
Symbol 688 MovieClipUses:687Used by:Timeline
Symbol 689 GraphicUsed by:691
Symbol 690 GraphicUsed by:691
Symbol 691 MovieClipUses:689 690Used by:Timeline
Symbol 692 GraphicUsed by:693
Symbol 693 MovieClipUses:692 588Used by:Timeline
Symbol 694 GraphicUsed by:696
Symbol 695 GraphicUsed by:696
Symbol 696 MovieClipUses:694 695Used by:Timeline
Symbol 697 GraphicUsed by:Timeline
Symbol 698 FontUsed by:699 700
Symbol 699 EditableTextUses:698Used by:Timeline
Symbol 700 EditableTextUses:698Used by:Timeline
Streaming Sound 1Used by:Symbol 60 MovieClip
Streaming Sound 2Used by:Symbol 152 MovieClip
Streaming Sound 3Used by:Symbol 159 MovieClip
Streaming Sound 4Used by:Symbol 171 MovieClip
Streaming Sound 5Used by:Symbol 240 MovieClip
Streaming Sound 6Used by:Symbol 361 MovieClip [train]
Streaming Sound 7Used by:Symbol 558 MovieClip
Streaming Sound 8Used by:Symbol 627 MovieClip

Instance Names

"six"Frame 1Symbol 60 MovieClip
"loadBar"Frame 2Symbol 89 MovieClip
"db"Frame 5Symbol 531 MovieClip
"zb"Frame 5Symbol 534 MovieClip
"kb"Frame 5Symbol 537 MovieClip
"logo"Frame 6Symbol 558 MovieClip
"pb"Frame 7Symbol 568 MovieClip
"sub"Frame 7Symbol 570 MovieClip
"moveOn"Frame 9Symbol 573 MovieClip
"bg"Frame 13Symbol 591 MovieClip
"green"Frame 13Symbol 609 MovieClip
"wall"Frame 13Symbol 610 MovieClip
"letterbox"Frame 13Symbol 612 MovieClip
"doors"Frame 13Symbol 613 MovieClip
"bg"Frame 17Symbol 633 MovieClip
"wall"Frame 17Symbol 610 MovieClip
"letterbox"Frame 17Symbol 612 MovieClip
"doors"Frame 17Symbol 613 MovieClip
"exit"Frame 17Symbol 634 MovieClip
"wall"Frame 17Symbol 610 MovieClip
"letterbox"Frame 17Symbol 612 MovieClip
"doors"Frame 17Symbol 613 MovieClip
"bg"Frame 19Symbol 638 MovieClip
"wall"Frame 19Symbol 610 MovieClip
"letterbox"Frame 19Symbol 612 MovieClip
"doors"Frame 19Symbol 613 MovieClip
"exit2"Frame 19Symbol 639 MovieClip
"bh"Frame 23Symbol 648 EditableText
"zmm"Frame 25Symbol 653 MovieClip
"letterbox"Frame 26Symbol 612 MovieClip
"bg"Frame 26Symbol 591 MovieClip
"jonsTimer"Frame 26Symbol 686 MovieClip
"ss2"Frame 28Symbol 691 MovieClip
"mn2"Frame 28Symbol 630 MovieClip
"ss"Frame 29Symbol 691 MovieClip
"mn"Frame 29Symbol 630 MovieClip
"ty"Frame 29Symbol 696 MovieClip
"wwf"Frame 30Symbol 691 MovieClip
"uname"Frame 30Symbol 699 EditableText
"score"Frame 30Symbol 700 EditableText
"head"Symbol 19 MovieClip Frame 1Symbol 18 MovieClip
"shadow"Symbol 59 MovieClip Frame 1Symbol 23 MovieClip
"bodyZombie"Symbol 59 MovieClip Frame 1Symbol 58 MovieClip
"am"Symbol 461 MovieClip [barBoarder] Frame 1Symbol 457 EditableText
"scr"Symbol 461 MovieClip [barBoarder] Frame 1Symbol 460 EditableText
"scr"Symbol 515 MovieClip [zlols] Frame 1Symbol 514 EditableText
"player_head_cutscene"Symbol 619 MovieClip [lift_cutscene] Frame 1Symbol 618 MovieClip [player_head_cutscene]
"player_head_cutscene"Symbol 622 MovieClip Frame 1Symbol 618 MovieClip [player_head_cutscene]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "sound_trucks_moving"
ExportAssets (56)Timeline Frame 1Symbol 2 as ""
ExportAssets (56)Timeline Frame 4Symbol 93 as "ammo_mc"
ExportAssets (56)Timeline Frame 4Symbol 96 as "fire_bullets"
ExportAssets (56)Timeline Frame 4Symbol 172 as "player"
ExportAssets (56)Timeline Frame 4Symbol 175 as "bullet"
ExportAssets (56)Timeline Frame 4Symbol 187 as "scout"
ExportAssets (56)Timeline Frame 4Symbol 222 as "scoutDead"
ExportAssets (56)Timeline Frame 4Symbol 224 as "healthBar"
ExportAssets (56)Timeline Frame 4Symbol 231 as "blood"
ExportAssets (56)Timeline Frame 4Symbol 238 as "raintosser"
ExportAssets (56)Timeline Frame 4Symbol 241 as "gogo"
ExportAssets (56)Timeline Frame 4Symbol 245 as "plusTen"
ExportAssets (56)Timeline Frame 4Symbol 248 as "health_mc"
ExportAssets (56)Timeline Frame 4Symbol 269 as "scout2"
ExportAssets (56)Timeline Frame 4Symbol 292 as "scoutDead2"
ExportAssets (56)Timeline Frame 4Symbol 321 as "fireScoutDead"
ExportAssets (56)Timeline Frame 4Symbol 333 as "boomDead"
ExportAssets (56)Timeline Frame 4Symbol 351 as "fireBullet"
ExportAssets (56)Timeline Frame 4Symbol 354 as "acid_bullets"
ExportAssets (56)Timeline Frame 4Symbol 355 as "acid"
ExportAssets (56)Timeline Frame 4Symbol 356 as "boss"
ExportAssets (56)Timeline Frame 4Symbol 357 as "bossDead"
ExportAssets (56)Timeline Frame 4Symbol 361 as "train"
ExportAssets (56)Timeline Frame 4Symbol 381 as "scout3"
ExportAssets (56)Timeline Frame 4Symbol 404 as "scoutDead3"
ExportAssets (56)Timeline Frame 4Symbol 405 as "fade"
ExportAssets (56)Timeline Frame 4Symbol 447 as "ztruck"
ExportAssets (56)Timeline Frame 4Symbol 449 as "truckHit"
ExportAssets (56)Timeline Frame 4Symbol 450 as "boom"
ExportAssets (56)Timeline Frame 4Symbol 461 as "barBoarder"
ExportAssets (56)Timeline Frame 4Symbol 472 as "para"
ExportAssets (56)Timeline Frame 4Symbol 512 as "zombieMan"
ExportAssets (56)Timeline Frame 4Symbol 513 as "boomDead2"
ExportAssets (56)Timeline Frame 4Symbol 515 as "zlols"
ExportAssets (56)Timeline Frame 4Symbol 516 as "health.mp3"
ExportAssets (56)Timeline Frame 4Symbol 517 as "smack"
ExportAssets (56)Timeline Frame 4Symbol 518 as "zombiereload"
ExportAssets (56)Timeline Frame 4Symbol 519 as "bang"
ExportAssets (56)Timeline Frame 4Symbol 520 as "shot"
ExportAssets (56)Timeline Frame 15Symbol 618 as "player_head_cutscene"
ExportAssets (56)Timeline Frame 15Symbol 619 as "lift_cutscene"

Labels

"settings"Frame 5
"ints"Frame 9
"mademen"Frame 12
"gameOver"Frame 29
"moc"Frame 30
"idle"Symbol 18 MovieClip Frame 1
"attack"Symbol 18 MovieClip Frame 2
"walk"Symbol 19 MovieClip Frame 1
"female"Symbol 31 MovieClip Frame 1
"run"Symbol 43 MovieClip Frame 1
"live"Symbol 58 MovieClip Frame 1
"dead"Symbol 58 MovieClip Frame 2
"idle"Symbol 172 MovieClip [player] Frame 1
"shoot_idle"Symbol 172 MovieClip [player] Frame 2
"run"Symbol 172 MovieClip [player] Frame 3
"shoot_run"Symbol 172 MovieClip [player] Frame 4
"melee1"Symbol 172 MovieClip [player] Frame 5
"melee2"Symbol 172 MovieClip [player] Frame 6
"melee3"Symbol 172 MovieClip [player] Frame 7
"run"Symbol 187 MovieClip [scout] Frame 1
"hit"Symbol 187 MovieClip [scout] Frame 2
"attack"Symbol 187 MovieClip [scout] Frame 3
"run"Symbol 269 MovieClip [scout2] Frame 1
"hit"Symbol 269 MovieClip [scout2] Frame 2
"attack"Symbol 269 MovieClip [scout2] Frame 3
"run"Symbol 356 MovieClip [boss] Frame 1
"hit"Symbol 356 MovieClip [boss] Frame 2
"attack"Symbol 356 MovieClip [boss] Frame 3
"run"Symbol 381 MovieClip [scout3] Frame 1
"hit"Symbol 381 MovieClip [scout3] Frame 2
"attack"Symbol 381 MovieClip [scout3] Frame 3
"run"Symbol 447 MovieClip [ztruck] Frame 1
"hit"Symbol 447 MovieClip [ztruck] Frame 2
"run"Symbol 472 MovieClip [para] Frame 1
"hit"Symbol 472 MovieClip [para] Frame 2
"idle"Symbol 512 MovieClip [zombieMan] Frame 1
"run"Symbol 512 MovieClip [zombieMan] Frame 2
"melee1"Symbol 512 MovieClip [zombieMan] Frame 3
"melee2"Symbol 512 MovieClip [zombieMan] Frame 4
"melee3"Symbol 512 MovieClip [zombieMan] Frame 5
"up"Symbol 531 MovieClip Frame 1
"over"Symbol 531 MovieClip Frame 2
"up"Symbol 534 MovieClip Frame 1
"over"Symbol 534 MovieClip Frame 2
"up"Symbol 537 MovieClip Frame 1
"over"Symbol 537 MovieClip Frame 2
"up"Symbol 630 MovieClip Frame 1
"over"Symbol 630 MovieClip Frame 2
"up"Symbol 691 MovieClip Frame 1
"down"Symbol 691 MovieClip Frame 2
"up"Symbol 696 MovieClip Frame 1
"down"Symbol 696 MovieClip Frame 2

Dynamic Text Variables

loadTextSymbol 87 EditableText"Loading...."
bhSymbol 648 EditableText"200"
unameSymbol 699 EditableText""
scoreSymbol 700 EditableText"000"




http://swfchan.com/19/90449/info.shtml
Created: 28/3 -2019 10:20:05 Last modified: 28/3 -2019 10:20:05 Server time: 22/12 -2024 12:32:09