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/27883617?noj=FRM27883617-22DC" width="1" height="1"></div>

Zombeast-Stampede.swf

This is the info page for
Flash #112359

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


Text
<p align="left"></p>

fps

You haven't bought this weapon yet

Drag this Ally Icon to any crate.

Loading... (100%)

Play

not

DOPPLER

not

DOPPLER

Wave
Complete!

Wave
Complete!

Click anywhere to continue

$99999

Your Money

99999

Crate HP

1

2

3

4

5

6

7

Cost: $99999

Machine Gun

BUY

FULL HP

PLUS 1
CRATE

DOUBLE
HP

Damage: 00

Reload: 9999

Ammo:

100/100

$9000

$9999

$9999

Description:

Extremely useful when camping in a zombie infested forest.

Next Wave

towerLife

CONGRATULATIONS!
Click anywhere to view
Ending credits

Submit Hiscore

Zombeast Stampede
Developed by Astig Games
Programming
Keybol
Graphics
Gilbert De Vera
Music
Kevin macLeod
Sponsored by
Your Link Here!
Thank you for Playing!

Not Doppler
Highscore Submitter

Loading higscores...

Continue?

(-25% score penalty)

Credits

Highscores

Sponsor

Music

Kevin MacLeod

Programming

Bari Silvestre

Graphics

Giilbert de Vera

Close

Gilbert de Vera

Use mouse to aim and shoot at enemies.

Buy Weapons and hire allies in shop and upgrade your gun's stats.

$50

$50

Press shortcut keys (1 to 7) to choose your weapon.

Do not lose your 3 crates by defending your end, or buying and repairing
crates. in the shop.

Damage: 20

Reload: 1800

Ammo:

∞/∞

Start the game by choosing your computer model

Briefing

Low-end

Low-end

Average

Average

High-end

High-end

Pickup the Gold that
enemies drop!

Score: 999999

Enemies left:

Damage: 0.0

Reload: 9999

$99999

999/999

$99999

$99999

$99999

Wave 25

towerLife

More Games

Med

Med

Yes

No

Are you sure?

PAUSED

press p to unpause

Zombie animals are attacking! Defend your camp!

Damage: 0.0

Reload: 9999

$99999

More Games

99/99

$9999

$9999

$9999

towerLife

Damage: 0.0

Reload: 9999

$99999

99/99

$9999

$9999

$9999

towerLife

Damage: 0.0

Reload: 9999

$99999

99/99

$9999

$9999

$9999

towerLife

ActionScript [AS1/AS2]

Frame 1
function sitelock(urls_allowed) { lock = true; domain_parts = _url.split("://"); real_domain = domain_parts[1].split("/"); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { showAds(); fakeBox._visible = false; } } function showAds() { trace("showing"); var _local1 = "2747QFC7CAEC0"; System.security.allowDomain("server.cpmstar.com"); adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + _local1); } urls_allowed = ["flashgamelicense.com", "www.flashgamelicense.com", "i.notdoppler.com", "www.notdoppler.com", "notdoppler.com", "www.bubblebox.com", "bubblebox.com", "www.freeonlinegames.com", "freeonlinegames.com", "www.addictinggames.com", "addictinggames.com"]; sitelock(urls_allowed); function onEnterFrame() { loaded_txt.text = ("Loading... (" + percentage) + ")"; percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%"; if (((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) && (timer <= 0)) { clearInterval(countdownInterval); delete this.onEnterFrame; loadingbox._visible = true; playbtn._visible = true; } } loadingbox._visible = false; playbtn._visible = false; stop(); timer = 3; countdown = function () { timer--; if (timer == 0) { clearInterval(countdownInterval); } }; countdownInterval = setInterval(countdown, 1000); stop();
Instance of Symbol 152 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 152 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 152 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 152 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 176 MovieClip in Frame 1
onClipEvent (load) { this.tabEnabled = false; this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1); }
Instance of Symbol 183 MovieClip "loadingbox" in Frame 1
on (release) { _root.notdopplerintro.gotoAndPlay(2); this.enabled = false; } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 190 MovieClip in Frame 1
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (releaseOutside) { this.gotoAndStop(1); } on (rollOut) { this.gotoAndStop(1); }
Frame 2
var upgradesound = new Sound(this); upgradesound.attachSound("upgradesound"); var zombiesound = new Sound(this); zombiesound.attachSound("zombiesound"); var forestsound = new Sound(this); forestsound.attachSound("forestsound"); var bgsound = new Sound(this); bgsound.attachSound("bgsound");
Frame 3
var fleshsound = new Sound(this); fleshsound.attachSound("fleshsound"); var gatesound = new Sound(this); gatesound.attachSound("gatesound"); var swampsound = new Sound(this); swampsound.attachSound("swampsound"); var clicksound = new Sound(this); clicksound.attachSound("clicksound"); var hoversound = new Sound(this); hoversound.attachSound("hoversound"); var errorsound = new Sound(this); errorsound.attachSound("errorsound"); var registersound = new Sound(this); registersound.attachSound("registersound"); var gunsound = new Sound(this); gunsound.attachSound("gunsound"); var machgunsound = new Sound(this); machgunsound.attachSound("machgunsound"); var flamesound = new Sound(this); flamesound.attachSound("flamesound"); var crashsound = new Sound(this); crashsound.attachSound("crashsound"); var elecsound = new Sound(this); elecsound.attachSound("elecsound"); var snipersound = new Sound(this); snipersound.attachSound("snipersound"); var reloadsound = new Sound(this); reloadsound.attachSound("reloadsound"); var gatlingsound = new Sound(this); gatlingsound.attachSound("gatlingsound"); var coinsound = new Sound(this); coinsound.attachSound("coinsound"); var hoversound = new Sound(this); hoversound.attachSound("hoversound"); var upgradesound = new Sound(this); upgradesound.attachSound("upgradesound"); var zombiesound = new Sound(this); zombiesound.attachSound("zombiesound"); var forestsound = new Sound(this); forestsound.attachSound("forestsound"); var bgsound = new Sound(this); bgsound.attachSound("bgsound"); stopAllSounds(); upgradesound.start(0, 999); Mouse.show(); tiponce = false; _root.wavecomplete.removeMovieClip(); _quality = "HIGH"; _root.prev = "MEDS"; _root.shooter._visible = false; pause_mc.gotoAndStop(1); var score = 0; var coins = 0; var crateHeight = 70; stop(); restart = false; gameOver_mc.removeMovieClip(); removeMovieClip(wavePresent); var dadTimer = 0; var sisTimer = 0; var sisDamage = 3; var sisSpeed = 35; var dadAllyBought = false; var momAllyBought = false; var sisAllyBought = false; sisbullet.removeMovieClip(); var crate1full = false; var crate2full = false; var crate3full = false; var pistolbought = true; var machinegunbought = false; var shotgunbought = false; var gatlinggunbought = false; var sniperbought = false; var pulsegunbought = false; var flamethrowerbought = false; var pistolselected = true; var machinegunselected = false; var shotgunselected = false; var gatlinggunselected = false; var sniperselected = false; var pulsegunselected = false; var flamethrowerselected = false; var stats1Inc = 50; var tinyDrop = 9; var smallDrop = 14; var mediumDrop = 17; var bigDrop = 33; var hugeDrop = 77; var maxDrop = 223; var midbossDrop = 1000; var quickSpeed = 9; var fastSpeed = 5; var normalSpeed = 3.5; var joggingSpeed = 1.5; var walkSpeed = 0.9; var slowSpeed = 0.6; var elephantTime = 200; var turtleHealth = 30; var turtleHealth2 = 999; var eagleHealth = 6; var monkeyHealth = 4; var monkeyHealth2 = 12; var kangarooHealth = 5; var kangarooHealth2 = 20; var pandaHealth = 6; var elephantHealth = 5; var elephantHealth2 = 60; var rabbitHealth = 5; var rabbitHealth2 = 10; var polarHealth = 180; var hippoHealth = 25; var hippoTime = 140; var lionHealth = 30; var bearHealth = 120; var snakeHealth = 12; var rhinoHealth = 350; var gorillaHealth = 120; var crocodileHealth = 30; var bossHealth = 1500; var bossTime = 1000; var bossTime2 = 400; var weaponDatabase = new Array(); var tempWeapon = {itemName:"Pistol", itemDesc:"Aren't you glad you brought this all along?", itemCost:"", bulletNumber:1, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:99999, bulletAmmo:99999, bulletClip:99999, bulletDamage:1, bulletOffset:0, bulletSpeed:35, bulletMaxAge:99999, barrelLength:20, reloadComplete:true, pistolon:true, machinegunon:false, gatlingunon:false, sniperon:false, shotgunon:false, flamethroweron:false, pulsegunon:false, upgradeCrateOn:false, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:false, reloadSpeed:600, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Shotgun", itemDesc:"Shower them with hate and tell them they are not welcome in your camp.", itemCost:500, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:3, bulletAmmo:9, bulletClip:9, bulletDamage:3, bulletOffset:23, bulletSpeed:20, bulletMaxAge:99999, barrelLength:35, reloadComplete:true, pistolon:false, machinegunon:false, sniperon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false, shotgunon:true, upgradeCrateOn:false, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:false, reloadSpeed:900, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Machine Gun", itemDesc:"This is a fine gun for taking out zombies anytime of the day.", itemCost:300, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:0.5, bulletAmmo:30, bulletClip:30, bulletDamage:1, bulletOffset:0, bulletSpeed:45, bulletMaxAge:99999, barrelLength:38, reloadComplete:true, pistolon:false, sniperon:false, machinegunon:true, gatlingunon:false, flamethroweron:false, pulsegunon:false, shotgunon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:360, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Gatling Gun", itemDesc:"Be sure you know how to handle this big baby.", itemCost:3000, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:1, bulletAmmo:60, bulletClip:60, bulletDamage:2, bulletOffset:0, bulletSpeed:50, bulletMaxAge:99999, barrelLength:65, reloadComplete:true, pistolon:false, gatlingunon:true, machinegunon:false, shotgunon:false, flamethroweron:false, pulsegunon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:260, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Sniper", itemDesc:"One shot, boom! Pow! Limited clips though.", itemCost:1500, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:1, bulletAmmo:8, bulletClip:8, bulletDamage:9, bulletOffset:0, bulletSpeed:25, bulletMaxAge:99999, barrelLength:38, reloadComplete:true, machinegunon:false, pistolon:false, gatlingunon:false, sniperon:true, flamethroweron:false, shotgunon:false, pulsegunon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:900, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Pulse Gun", itemDesc:"The future has brought us more weapons of destruction!", itemCost:3500, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:99999, bulletNumber:1, bulletAmmo:99999, bulletClip:99999, bulletDamage:20, bulletOffset:0, bulletSpeed:0, bulletMaxAge:200, barrelLength:35, reloadComplete:true, machinegunon:false, pistolon:false, sniperon:false, shotgunon:false, flamethroweron:false, gatlingunon:false, pulsegunon:true, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, upgradeCrateOn:false, repairCrateOn:false, reloadSpeed:1800, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Flamethrower", itemDesc:"If killing is not enough, you got to do it with style.", itemCost:6000, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:1, bulletAmmo:60, bulletClip:60, bulletDamage:1, bulletOffset:0, bulletSpeed:15, bulletMaxAge:999, barrelLength:35, reloadComplete:true, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:true, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, upgradeCrateOn:false, repairCrateOn:false, reloadSpeed:250, reloadTimer:0}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Repair Crate", itemDesc:"Fix your bottom to save the day!", itemCost:50, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:true, upgradeCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Buy Crate", itemDesc:"Replace a lost crate for defense.", itemCost:250, buyCrateOn:true, buyMomOn:false, buyDadOn:false, buySisOn:false, upgradeCrateOn:false, repairCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Hire Mom", itemDesc:"Mom has the power to attract money.", itemCost:100, buyCrateOn:false, buyMomOn:true, buyDadOn:false, buySisOn:false, upgradeCrateOn:false, repairCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Hire Dad", itemDesc:"Dad the handyman repairs damaged crates too!", itemCost:300, buyCrateOn:false, buyMomOn:false, buyDadOn:true, buySisOn:false, upgradeCrateOn:false, repairCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Hire Sis", itemDesc:"Sister provides offensive support!", itemCost:500, buyCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:true, repairCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); var tempWeapon = {itemName:"Upgrade Crate", itemDesc:"Fortify your defense by increasing the crate's HP.", itemCost:1000, upgradeCrateOn:true, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:false, pistolon:false, sniperon:false, machinegunon:false, shotgunon:false, gatlingunon:false, pulsegunon:false, flamethroweron:false}; weaponDatabase.push(tempWeapon); function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("89359ba6", this, 10301, true); function gotoMysSite() { getURL ("http://www.andkon.com/arcade/", "_blank"); } function gotoHisSite() { getURL ("http://www.andkon.com/arcade/", "_blank"); } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu;
Instance of Symbol 1563 MovieClip in Frame 3
on (release) { getURL ("http://www.astiggames.com/", "_blank"); }
Instance of Symbol 190 MovieClip in Frame 3
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (releaseOutside) { this.gotoAndStop(1); } on (rollOut) { this.gotoAndStop(1); }
Frame 4
function showMessage() { _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; } function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function createBullet() { var _local3 = 0; while (_local3 < playerWeapon.bulletNumber) { var _local2 = _root.attachMovie("bullet", "b" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _local2.cacheAsBitmap = true; if (playerWeapon.flamethroweron) { _local2.gotoAndStop(2); } if ((!playerWeapon.flamethroweron) || (!playerWeapon.shotgunon)) { _local2._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2; } if (playerWeapon.gatlingunon) { _local2.gotoAndStop(3); } if (playerWeapon.shotgunon) { _local2.gotoAndStop(4); } if (playerWeapon.machinegunon) { _local2.gotoAndStop(4); } if (playerWeapon.machinegunon) { _local2.gotoAndStop(5); } if (playerWeapon.pulsegunon) { _local2._x = _xmouse; _local2._y = _ymouse; } else { _local2._x = player_mc._x + (playerWeapon.barrelLength * Math.cos(player_mc._rotation * radians)); _local2._y = player_mc._y + (playerWeapon.barrelLength * Math.sin(player_mc._rotation * radians)); } var _local5 = random(playerWeapon.bulletOffset) - (playerWeapon.bulletOffset / 2); var _local4 = (player_mc._rotation + _local5) * radians; _local2.xSpeed = Math.cos(_local4) * playerWeapon.bulletSpeed; _local2.ySpeed = Math.sin(_local4) * playerWeapon.bulletSpeed; if (playerWeapon.pulsegunon) { _local2.lifeTimer = setInterval(destroyBullet, playerWeapon.bulletMaxAge, _local2); } bulletArray.push(_local2); _local3++; } startReloading(); } function startReloading() { playerWeapon.reloadComplete = false; playerWeapon.reloadTimer = setInterval(gunReloaded, playerWeapon.reloadSpeed); screenTimer = setInterval(this, "clearScreen", clearSpeed); } function gunReloaded() { clearInterval(playerWeapon.reloadTimer); playerWeapon.reloadComplete = true; } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function destroyBullet(_bullet) { var _local1 = 0; while (_local1 < bulletArray.length) { flameLifeCount = 0; var _local2 = bulletArray[_local1]; if (_local2 == _bullet) { bulletArray.splice(_local1, 1); if (playerWeapon.pulsegunon) { clearInterval(_local2.lifeTimer); } removeMovieClip(_local2); } _local1++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function gameoverHit(_bullet) { if (gameOver) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this._x = this._x + (this.yspeed * 8); if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } this.attackTime++; if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 5)) { if (bellTotal2 > 5) { bellLimit2 = 150; } bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this._x = this._x + (this.yspeed * 8); if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } this.attackTime++; if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } } function rotatePlayer() { if (_xmouse >= (player_mc._x + 60)) { player_mc._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2; sisbow1._rotation = Math.atan2(_ymouse - sisbow1._y, _xmouse - sisbow1._x) * radians2; sisbow2._rotation = Math.atan2(_ymouse - sisbow2._y, _xmouse - sisbow2._x) * radians2; sisbow3._rotation = Math.atan2(_ymouse - sisbow3._y, _xmouse - sisbow3._x) * radians2; } } function shakeScreen() { shaker.play(); } finalwave = false; if (restart) { continueGame(); } var crates = 3; var flameLifeCount = 0; var momAllyOn = false; var dadAllyOn = false; var momCrate1on = false; var momCrate2on = false; var momCrate3on = false; var dadCrate1on = false; var dadCrate2on = false; var dadCrate3on = false; var sisCrate1on = false; var sisCrate2on = false; var sisCrate3on = false; var momPlaced = false; var dadPlaced = false; var sisPlaced = false; var towerLife = 50; var towerLifeOrig = 50; var restart = false; var waveNumber = 1; var firstplay = true; var showmessage = false; showmessage_mc.gotoAndPlay(2); var sisbow1_origy = sisbow1._y; var sisbow2_origy = sisbow2._y; var sisbow3_origy = sisbow3._y; var crate1_origy = crate1._y; var crate2_origy = crate2._y; var crate3_origy = crate3._y; var ally_crate1_origy = ally_crate1._y; var ally_crate2_origy = ally_crate2._y; var ally_crate3_origy = ally_crate3._y; var player_mc_origy = player_mc._y; var player_anim_origy = player_anim._y; var head_mc_origy = head_mc._y; var winonce = false; var totalEnemiesGoal = 19; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTop = 740; var bellTime = -480; var bellLimit = 250; var bellTotal = 0; var bellTime2 = -40; var bellLimit2 = 100; var bellTotal2 = 0; var bellTime3 = 520; var bellLimit3 = 850; var bellTotal3 = 0; var bellTime13 = 20; var bellLimit13 = 50; var bellTotal13 = 0; var bulletArray = new Array(); var enemyArray = new Array(); var playerWeapon = new Object(); var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; loadWeapon("Pistol"); effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; }; function showIconHow() { notYet_mc.gotoAndStop(3); } function showNotYet() { notYet_mc.gotoAndStop(2); } function massKill() { i = 0; while (i < 99) { _root.bellHolder["bell_a" + i].gotoAndStop(2); _root.bellHolder["coinbell_a" + i].removeMovieClip(); _root.bellHolder["barbell_a" + i].removeMovieClip(); _root.bellHolder["bloodbell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 99) { _root.bellHolder["bell_b" + g].gotoAndStop(2); _root.bellHolder["coin2bell_b" + g].removeMovieClip(); _root.bellHolder["bar2bell_b" + g].removeMovieClip(); _root.bellHolder["blood2bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 99) { _root.bellHolder["bell_c" + h].gotoAndStop(2); _root.bellHolder["coin3bell_c" + h].removeMovieClip(); _root.bellHolder["bar3bell_c" + h].removeMovieClip(); _root.bellHolder["blood3bell_c" + h].removeMovieClip(); _root.bellHolder["enembulletbell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 99) { _root.bellHolder["bell_d" + j].gotoAndStop(2); _root.bellHolder["coin4bell_d" + j].removeMovieClip(); _root.bellHolder["bar4bell_d" + j].removeMovieClip(); _root.bellHolder["blood4bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 99) { _root.bellHolder["bell_e" + k].gotoAndStop(2); _root.bellHolder["coin5bell_e" + k].removeMovieClip(); _root.bellHolder["bar5bell_e" + k].removeMovieClip(); _root.bellHolder["blood5bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 99) { _root.bellHolder["bell_f" + l].gotoAndStop(2); _root.bellHolder["coin6bell_f" + l].removeMovieClip(); _root.bellHolder["bar6bell_f" + l].removeMovieClip(); _root.bellHolder["blood6bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 99) { _root.bellHolder["bell_g" + m].gotoAndStop(2); _root.bellHolder["coin7bell_g" + m].removeMovieClip(); _root.bellHolder["bar7bell_g" + m].removeMovieClip(); _root.bellHolder["blood7bell_g" + m].removeMovieClip(); m++; } o = 0; while (o < 99) { _root.bellHolder["bell_i" + o].gotoAndStop(2); _root.bellHolder["coin9bell_i" + o].removeMovieClip(); _root.bellHolder["bar9bell_i" + o].removeMovieClip(); _root.bellHolder["blood9bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].gotoAndStop(2); _root.bellHolder["coin10bell_j" + p].removeMovieClip(); _root.bellHolder["bar10bell_j" + p].removeMovieClip(); _root.bellHolder["blood10bell_j" + p].removeMovieClip(); p++; } q = 0; while (q < 99) { _root.bellHolder["bell_z" + q].gotoAndStop(2); _root.bellHolder["coin13bell_z" + q].removeMovieClip(); _root.bellHolder["bar13bell_z" + q].removeMovieClip(); _root.bellHolder["blood13bell_z" + q].removeMovieClip(); q++; } r = 0; while (r < 999) { _root.bellHolder["bullet" + r].removeMovieClip(); r++; } } function continueGame() { _root.gameOver = false; _root.bgsound.start(0, 99); _root.forestsound.start(0, 99); winonce = false; life_mc.bar_mc._x = -15; r = 0; while (r < 999) { _root.bellHolder["bullet" + r].removeMovieClip(); r++; } towerLife = towerLifeOrig; _root.gamewononce = false; sisbow1.gotoAndStop(1); sisbow2.gotoAndStop(1); sisbow3.gotoAndStop(1); _root.crate1full = false; _root.crate2full = false; _root.crate3full = false; _root.nextFrame(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; _root.clip_mc.bar_mc._x = -15; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.crate1full = false; _root.crate2full = false; _root.crate3full = false; wall.gotoAndStop(1); crate1.gotoAndStop(1); crate2.gotoAndStop(1); crate3.gotoAndStop(1); ally_crate1.gotoAndStop(1); ally_crate2.gotoAndStop(1); ally_crate3.gotoAndStop(1); sisbow1._y = sisbow1_origy; sisbow2._y = sisbow2_origy; sisbow3._y = sisbow3_origy; crate1._y = crate1_origy; crate2._y = crate2_origy; crate3._y = crate3_origy; ally_crate1._y = ally_crate1_origy; ally_crate2._y = ally_crate2_origy; ally_crate3._y = ally_crate3_origy; player_mc._y = player_mc_origy; player_anim._y = player_anim_origy; head_mc._y = head_mc_origy; crates = 3; restart = false; score = score * 0.75; score = Math.round(score); towerLife = towerLifeOrig; gameOver_mc.removeMovieClip(); i = 0; while (i < 99) { _root.bellHolder["bell_a" + i].removeMovieClip(); _root.bellHolder["coinbell_a" + i].removeMovieClip(); _root.bellHolder["barbell_a" + i].removeMovieClip(); _root.bellHolder["bloodbell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 99) { _root.bellHolder["bell_b" + g].removeMovieClip(); _root.bellHolder["coin2bell_b" + g].removeMovieClip(); _root.bellHolder["bar2bell_b" + g].removeMovieClip(); _root.bellHolder["blood2bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 99) { _root.bellHolder["bell_c" + h].removeMovieClip(); _root.bellHolder["coin3bell_c" + h].removeMovieClip(); _root.bellHolder["bar3bell_c" + h].removeMovieClip(); _root.bellHolder["blood3bell_c" + h].removeMovieClip(); _root.bellHolder["enembulletbell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 99) { _root.bellHolder["bell_d" + j].removeMovieClip(); _root.bellHolder["coin4bell_d" + j].removeMovieClip(); _root.bellHolder["bar4bell_d" + j].removeMovieClip(); _root.bellHolder["blood4bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 99) { _root.bellHolder["bell_e" + k].removeMovieClip(); _root.bellHolder["coin5bell_e" + k].removeMovieClip(); _root.bellHolder["bar5bell_e" + k].removeMovieClip(); _root.bellHolder["blood5bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 99) { _root.bellHolder["bell_f" + l].removeMovieClip(); _root.bellHolder["coin6bell_f" + l].removeMovieClip(); _root.bellHolder["bar6bell_f" + l].removeMovieClip(); _root.bellHolder["blood6bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 99) { _root.bellHolder["bell_g" + m].removeMovieClip(); _root.bellHolder["coin7bell_g" + m].removeMovieClip(); _root.bellHolder["bar7bell_g" + m].removeMovieClip(); _root.bellHolder["blood7bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 99) { _root.bellHolder["bell_h" + n].removeMovieClip(); _root.bellHolder["coin8bell_h" + n].removeMovieClip(); _root.bellHolder["bar8bell_h" + n].removeMovieClip(); _root.bellHolder["blood8bell_h" + n].removeMovieClip(); _root.bellHolder["enembulletbell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 99) { _root.bellHolder["bell_i" + o].removeMovieClip(); _root.bellHolder["coin9bell_i" + o].removeMovieClip(); _root.bellHolder["bar9bell_i" + o].removeMovieClip(); _root.bellHolder["blood9bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].removeMovieClip(); _root.bellHolder["coin10bell_j" + p].removeMovieClip(); _root.bellHolder["bar10bell_j" + p].removeMovieClip(); _root.bellHolder["blood10bell_j" + p].removeMovieClip(); p++; } q = 0; while (q < 99) { _root.bellHolder["bell_z" + q].removeMovieClip(); _root.bellHolder["coin13bell_z" + q].removeMovieClip(); _root.bellHolder["bar13bell_z" + q].removeMovieClip(); _root.bellHolder["blood13bell_z" + q].removeMovieClip(); q++; } } _root.scoretosend = 0; weaponbar.weaponbar.weapon1.gotoAndStop(2); var pressed23 = false; var prev1 = "UNPAUSED"; _root.shooter._visible = true; _root.bgsound.start(0, 99); forestsound.start(0, 99); _root.zombiesound.start(0, 1); soundPlay = new Sound(this); max = 3; min = 1; rndClip = Math.round(Math.random() * (max - min)) + min; soundPlay.attachSound(rndClip); var gpause = false; _root.onEnterFrame = function () { if (playerWeapon.flamethroweron) { weaponbar.weaponbar.weapon7.gotoAndStop(2); } else { weaponbar.weaponbar.weapon7.gotoAndStop(1); } if (playerWeapon.pulsegunon) { weaponbar.weaponbar.weapon6.gotoAndStop(2); } else { weaponbar.weaponbar.weapon6.gotoAndStop(1); } if (playerWeapon.sniperon) { weaponbar.weaponbar.weapon4.gotoAndStop(2); } else { weaponbar.weaponbar.weapon4.gotoAndStop(1); } if (playerWeapon.gatlingunon) { weaponbar.weaponbar.weapon5.gotoAndStop(2); } else { weaponbar.weaponbar.weapon5.gotoAndStop(1); } if (playerWeapon.shotgunon) { weaponbar.weaponbar.weapon3.gotoAndStop(2); } else { weaponbar.weaponbar.weapon3.gotoAndStop(1); } if (playerWeapon.machinegunon) { weaponbar.weaponbar.weapon2.gotoAndStop(2); } else { weaponbar.weaponbar.weapon2.gotoAndStop(1); } if (playerWeapon.pistolon) { weaponbar.weaponbar.weapon1.gotoAndStop(2); } else { weaponbar.weaponbar.weapon1.gotoAndStop(1); } weaponbar.weaponbar.macRem.text = "Enemies left: " + ((totalEnemiesGoal - totalKillsCount) + 1); if (_root.momAllyBought && (!momPlaced)) { momIcon.gotoAndStop(1); } else { momIcon.gotoAndStop(2); } if (_root.dadAllyBought && (!dadPlaced)) { dadIcon.gotoAndStop(1); } else { dadIcon.gotoAndStop(2); } if (_root.sisAllyBought && (!sisPlaced)) { sisIcon.gotoAndStop(1); } else { sisIcon.gotoAndStop(2); } if ((momCrate1on || (momCrate2on)) || (momCrate3on)) { momAllyOn = true; } else { momAllyOn = false; } if ((dadCrate1on || (dadCrate2on)) || (dadCrate3on)) { dadAllyOn = true; } else { dadAllyOn = false; } if ((sisCrate1on || (sisCrate2on)) || (sisCrate3on)) { sisAllyOn = true; } else { sisAllyOn = false; } weaponbar.weaponbar.scoreTxt.text = "Score: " + _root.score; if ((Key.isDown(80) && (!winonce)) && (!gameOver)) { if (pressed23 == false) { if (prev1 == "PAUSED") { _root.gpause = false; prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if (prev1 == "UNPAUSED") { _root.gpause = true; _root.pause_mc.gotoAndStop(2); prev1 = "PAUSED"; } } pressed23 = true; } else { pressed23 = false; } if (!gpause) { radians = (Math.PI/180); bulletAngle1 = sisbow1._rotation * radians; bulletAngle2 = sisbow2._rotation * radians; bulletAngle3 = sisbow3._rotation * radians; ally_crate1.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = sisbow1._x + (30 * Math.cos(sisbow1._rotation * radians)); sisbullet._y = sisbow1._y + (30 * Math.sin(sisbow1._rotation * radians)); sisbow1.bowstrike.gotoAndPlay(2); sisbullet._rotation = Math.atan2(_ymouse - sisbow1._y, _xmouse - sisbow1._x) * radians2; sisTimer = 0; sisbullet.xSpeed = Math.cos(bulletAngle1) * 30; sisbullet.ySpeed = Math.sin(bulletAngle1) * 30; sisbullet.onEnterFrame = function () { if (!gpause) { this._x = this._x + sisbullet.xSpeed; this._y = this._y + sisbullet.ySpeed; } if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate2.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = sisbow2._x + (30 * Math.cos(sisbow2._rotation * radians)); sisbullet._y = sisbow2._y + (30 * Math.sin(sisbow2._rotation * radians)); sisbow2.bowstrike.gotoAndPlay(2); sisbullet._rotation = Math.atan2(_ymouse - sisbow2._y, _xmouse - sisbow2._x) * radians2; sisTimer = 0; sisbullet.xSpeed = Math.cos(bulletAngle2) * 30; sisbullet.ySpeed = Math.sin(bulletAngle2) * 30; sisbullet.onEnterFrame = function () { if (!gpause) { this._x = this._x + sisbullet.xSpeed; this._y = this._y + sisbullet.ySpeed; } if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate3.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = sisbow3._x + (30 * Math.cos(sisbow3._rotation * radians)); sisbullet._y = sisbow3._y + (30 * Math.sin(sisbow3._rotation * radians)); sisbow2.bowstrike.gotoAndPlay(2); sisbow3.bowstrike.gotoAndPlay(2); sisbullet._rotation = Math.atan2(_ymouse - sisbow3._y, _xmouse - sisbow3._x) * radians2; sisTimer = 0; sisbullet.xSpeed = Math.cos(bulletAngle3) * 30; sisbullet.ySpeed = Math.sin(bulletAngle3) * 30; sisbullet.onEnterFrame = function () { if (!gpause) { this._x = this._x + sisbullet.xSpeed; this._y = this._y + sisbullet.ySpeed; } if (this._x > 640) { this.removeMovieClip(); } }; } }; if ((dadAllyOn && (towerLife < towerLifeOrig)) && (!winonce)) { dadTimer++; if (dadTimer > 77) { towerLife = towerLife + 1; life_mc.bar_mc._x = life_mc.bar_mc._x - ((1 / towerLifeOrig) * 30); dadTimer = 0; if (towerLife > towerLifeOrig) { towerLife = towerLifeOrig; life_mc.bar_mc._x = -15; } } } macCrate.text = "x" + crates; macLife.text = (towerLife + " / ") + towerLifeOrig; if ((totalEnemies <= totalEnemiesGoal) && (!gameOver)) { makeLvl(); } if (totalKillsCount >= (totalEnemiesGoal + 1)) { if ((!winonce) && (!finalwave)) { _root.gpause = false; _root.prev1 = "UNPAUSED"; mouseClicked = false; _root.attachMovie("wavecomplete", "wavecomplete", bellHolder.getNextHighestDepth()); wavecomplete._x = -640; wavecomplete._y = 0; winonce = true; _root.notYet_mc.gotoAndStop(1); } } if (mouseClicked && (!playerWeapon.pulsegunon)) { fireWeapon(); } if (playerWeapon.gatlingunon && (weaponFired)) { weaponFired = false; } if (playerWeapon.machinegunon && (weaponFired)) { weaponFired = false; } if (playerWeapon.pulsegunon && (weaponFired)) { weaponFired = false; } rotatePlayer(); updateBullets(); macStats1.text = "$" + _root.playerWeapon.stats1Cost; macStats2.text = "$" + _root.playerWeapon.stats2Cost; if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macStats3.text = "Max"; } else { macStats3.text = "$" + _root.playerWeapon.stats3Cost; } macName.text = _root.playerWeapon.itemName; macHand.text = "Handling: " + playerWeapon.bulletOffset; macDam.text = "Damage: " + playerWeapon.bulletDamage; macRel.text = "Reload: " + playerWeapon.reloadSpeed; if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macAmmo.text = "\u221E/\u221E"; } else { macAmmo.text = (playerWeapon.bulletAmmo + "/") + playerWeapon.bulletClip; } CoinTxt.text = "$" + coins; waveTxt.text = "Wave " + waveNumber; effectHolder_mc.laser_mc.clear(); if (playerWeapon.bulletAmmo <= 0) { bulletAmmoCounter++; clip_mc.bar_mc._x = clip_mc.bar_mc._x + 0.3; } if (bulletAmmoCounter >= 100) { playerWeapon.bulletAmmo = playerWeapon.bulletClip; var _local3 = new Array(); clip_mc.bar_mc._x = -15; clearInterval(playerWeapon.reloadTimer); playerWeapon.reloadTimer = 0; reloadingNow = false; changeWeapon = false; _root.reloadsound.start(0, 1); bulletAmmoCounter = 0; } if (towerLife < 0) { towerLife = 0; } if (towerLife == 0) { if (crates == 3) { crate1full = false; life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate1.gotoAndStop(3); if (momCrate1on) { momCrate1on = false; momAllyBought = false; } if (dadCrate1on) { dadCrate1on = false; dadAllyBought = false; } if (sisCrate1on) { sisCrate1on = false; sisAllyBought = false; } ally_crate1.gotoAndStop(1); crate2.gotoAndStop(2); crate2.bounce_mc.gotoAndPlay(2); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); tripod._y = tripod._y + crateHeight; crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; sisbow1.gotoAndStop(1); sisbow1._y = sisbow1._y + crateHeight; sisbow2._y = sisbow2._y + crateHeight; sisbow3._y = sisbow3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 2; _root.crashsound.start(0, 1); } else if (crates == 2) { crate2full = false; life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate2.gotoAndStop(3); if (momCrate2on) { momCrate2on = false; momAllyBought = false; } if (dadCrate2on) { dadCrate2on = false; dadAllyBought = false; } if (sisCrate2on) { sisCrate2on = false; sisAllyBought = false; } ally_crate2.gotoAndStop(1); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); tripod._y = tripod._y + crateHeight; crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; sisbow1._y = sisbow1._y + crateHeight; sisbow2._y = sisbow2._y + crateHeight; sisbow3._y = sisbow3._y + crateHeight; sisbow2.gotoAndStop(1); player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 1; _root.crashsound.start(0, 1); } else if (crates == 1) { crate3full = false; crate3.gotoAndStop(3); sisbow1._y = sisbow1._y + crateHeight; sisbow2._y = sisbow2._y + crateHeight; sisbow3._y = sisbow3._y + crateHeight; sisbow3.gotoAndStop(1); ally_crate3.gotoAndStop(1); player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; _root.restart = true; _root.attachMovie("gameOver_mc", "gameOver_mc", _root.getNextHighestDepth()); gameOver_mc._x = -7; gameOver_mc._y = 0; Mouse.show(); wall.gotoAndStop(2); crates = 0; _root.crashsound.start(0, 1); if (momCrate3on) { momCrate3on = false; momAllyBought = false; } if (dadCrate3on) { dadCrate3on = false; dadAllyBought = false; } if (sisCrate3on) { sisCrate3on = false; sisAllyBought = false; } } } if (Key.isDown(49)) { loadWeapon("Pistol"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = true; machinegunselected = false; shotgunselected = false; gatlinggunselected = false; sniperselected = false; pulsegunselected = false; flamethrowerselected = false; } } if (Key.isDown(51)) { if (shotgunbought) { loadWeapon("Shotgun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = false; shotgunselected = true; gatlinggunselected = false; sniperselected = false; pulsegunselected = false; flamethrowerselected = false; } } else { showNotYet(); } } if (Key.isDown(50)) { if (machinegunbought) { loadWeapon("Machine Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = true; shotgunselected = false; gatlinggunselected = false; sniperselected = false; pulsegunselected = false; flamethrowerselected = false; } } else { showNotYet(); } } if (Key.isDown(52)) { if (gatlinggunbought) { loadWeapon("Gatling Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = false; shotgunselected = false; gatlinggunselected = true; sniperselected = false; pulsegunselected = false; flamethrowerselected = false; } } else { showNotYet(); } } if (Key.isDown(53)) { if (sniperbought) { loadWeapon("Sniper"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = false; shotgunselected = false; gatlinggunselected = false; sniperselected = true; pulsegunselected = false; flamethrowerselected = false; } } else { showNotYet(); } } if (Key.isDown(54)) { if (pulsegunbought) { loadWeapon("Pulse Gun"); weaponFired = false; playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = false; shotgunselected = false; gatlinggunselected = false; sniperselected = false; pulsegunselected = true; flamethrowerselected = false; } else { showNotYet(); } } if (Key.isDown(55)) { if (flamethrowerbought) { loadWeapon("Flamethrower"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; pistolselected = false; machinegunselected = false; shotgunselected = false; gatlinggunselected = false; sniperselected = false; pulsegunselected = false; flamethrowerselected = true; } } else { showNotYet(); } } } }; upg_btn1.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats1Cost) { _root.coins = _root.coins - _root.playerWeapon.stats1Cost; _root.score = _root.score + _root.playerWeapon.stats1Cost; _root.playerWeapon.stats1Cost = _root.playerWeapon.stats1Cost * 2; _root.clicksound.start(0, 1); _root.playerWeapon.bulletDamage = _root.playerWeapon.bulletDamage + 0.5; macInfo.text = ""; } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn2.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats2Cost) { _root.coins = _root.coins - _root.playerWeapon.stats2Cost; _root.score = _root.score + _root.playerWeapon.stats2Cost; _root.clicksound.start(0, 1); _root.playerWeapon.stats2Cost = _root.playerWeapon.stats2Cost * 2; if (_root.playerWeapon.pulsegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 150; } else if (_root.playerWeapon.machinegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.gatlingunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.flamethroweron) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.pistolon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 50; macInfo.text = ""; } } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn3.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats3Cost) { macInfo.text = ""; _root.coins = _root.coins - _root.playerWeapon.stats3Cost; _root.score = _root.score + _root.playerWeapon.stats3Cost; _root.clicksound.start(0, 1); _root.playerWeapon.stats3Cost = _root.playerWeapon.stats3Cost * 2; if (_root.playerWeapon.shotgunon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 9; } else if (_root.playerWeapon.sniperon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 6; } else { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 10; } } else if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macInfo.text = "Maxed out!"; _root.errorsound.start(0, 1); } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; function addSparkles(_targetX, _targetY, _sparkNumber, _distance, _sparkSize) { var _local6 = 0; while (_local6 < _sparkNumber) { var _local4 = _root.attachMovie("spark", "spark_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var _local3 = _root.attachMovie("spark2", "spark2_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _local4._x = (_targetX + random(_distance)) - (_distance / 2); _local4._y = (_targetY + random(_distance)) - (_distance / 2); _local3._x = (_targetX + random(_distance)) - (_distance / 2); _local3._y = (_targetY + random(_distance)) - (_distance / 2); var _local5 = random(_sparkSize) + (_sparkSize / 4); _local4._xscale = _local5; _local4._yscale = _local5; _local5 = random(_sparkSize) + (_sparkSize / 4); _local3._xscale = _local5; _local3._yscale = _local5; _local3._rotation = random(359); _local4._alpha = lightningAlpha; _local3._alpha = lightningAlpha; _local6++; } } var lightningOffset = 15; var lightningFrequency = 15; var lightningWidth = 1; var lightningColor = "0x5C98EF"; var lightningAlpha = 75; var lightningBranches = 3; var sparkNumber = 7; var sparkDistance = 23; var sparkSize = 100; var reloadSpeed = 250; var clearSpeed = 100; var glow = (new flash.filters.GlowFilter()); glow.color = 16711680 /* 0xFF0000 */; glow.alpha = 1; glow.blurX = 7; glow.blurY = 7; glow.quality = 2; effectHolder_mc.laser_mc.filters = new Array(glow); var glow_color = lightningColor; var glow_alpha = 0.6; var glow_blurX = 5; var glow_blurY = 5; var glow_strength = 2; var glow_quality = 3; var effectHolder = effectHolder_mc; var filter_glow = (new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality)); effectHolder.filters = [filter_glow];
Instance of Symbol 1641 MovieClip "effectHolder_mc" in Frame 4
onClipEvent (load) { this.useHandCursor = false; }
Instance of Symbol 1600 MovieClip "shooter" in Frame 4
onClipEvent (load) { Mouse.hide(); } onClipEvent (enterFrame) { this.tabEnabled = false; this._x = _root._xmouse; this._y = _root._ymouse; this.swapDepths(_root.getNextHighestDepth()); if (_root._currentframe == 100) { removeMovieClip(""); Mouse.show(); } }
Instance of Symbol 1733 MovieClip "momIcon" in Frame 4
onClipEvent (load) { this.tabEnabled = false; this.gotoAndStop(2); xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc) && (!_root.crate1full)) { _root.ally_crate1.gotoAndStop(2); _root.momCrate1on = true; _root.momPlaced = true; _root.crate1full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate2.crate_mc) && (!_root.crate2full)) { _root.ally_crate2.gotoAndStop(2); _root.momCrate2on = true; _root.momPlaced = true; _root.crate2full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate3.crate_mc) && (!_root.crate3full)) { _root.ally_crate3.gotoAndStop(2); _root.momCrate3on = true; _root.momPlaced = true; _root.crate3full = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1735 MovieClip "dadIcon" in Frame 4
onClipEvent (load) { this.tabEnabled = false; this.gotoAndStop(2); xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc) && (!_root.crate1full)) { _root.ally_crate1.gotoAndStop(3); _root.dadCrate1on = true; _root.dadPlaced = true; _root.crate1full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate2.crate_mc) && (!_root.crate2full)) { _root.ally_crate2.gotoAndStop(3); _root.dadCrate2on = true; _root.dadPlaced = true; _root.crate2full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate3.crate_mc) && (!_root.crate3full)) { _root.ally_crate3.gotoAndStop(3); _root.dadCrate3on = true; _root.dadPlaced = true; _root.crate3full = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1737 MovieClip "sisIcon" in Frame 4
onClipEvent (load) { this.tabEnabled = false; this.gotoAndStop(2); xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc) && (!_root.crate1full)) { _root.ally_crate1.gotoAndStop(4); _root.sisbow1.gotoAndStop(2); _root.sisCrate1on = true; _root.sisPlaced = true; _root.crate1full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate2.crate_mc) && (!_root.crate2full)) { _root.ally_crate2.gotoAndStop(4); _root.sisbow2.gotoAndStop(2); _root.sisCrate2on = true; _root.sisPlaced = true; _root.crate2full = true; this.gotoAndStop(2); } else if (this.hitTest(_root.crate3.crate_mc) && (!_root.crate3full)) { _root.ally_crate3.gotoAndStop(4); _root.sisbow3.gotoAndStop(2); _root.sisCrate3on = true; _root.sisPlaced = true; _root.crate3full = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1465 MovieClip "upg_btn1" in Frame 4
onClipEvent (load) { this.tabEnabled = false; } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn2" in Frame 4
onClipEvent (load) { this.tabEnabled = false; } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn3" in Frame 4
onClipEvent (load) { this.tabEnabled = false; } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1751 MovieClip in Frame 4
onClipEvent (load) { this.tabEnabled = false; } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (release) { _root.clicksound.start(0, 1); if ((!restart) || (!winonce)) { if (_root.prev1 == "PAUSED") { _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if ((_root.prev1 = "UNPAUSED")) { _root.gpause = true; _root.pause_mc.gotoAndStop(2); _root.prev1 = "PAUSED"; } } }
Instance of Symbol 1754 MovieClip "Btn_Mute" in Frame 4
onClipEvent (load) { this.tabEnabled = false; } on (release) { _root.clicksound.start(0, 1); if (_root.bgsound.getVolume() != 0) { this.gotoAndStop(2); _root.oldVolume = _root.bgsound.getVolume(); _root.slider.slidebar.onEnterFrame = null; _root.bgsound.setVolume(0); } else { this.gotoAndStop(1); _root.slider.slidebar.onEnterFrame = _root.adjustVolume; _root.bgsound.setVolume(_root.oldVolume); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1568 MovieClip in Frame 4
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Instance of Symbol 1763 MovieClip in Frame 4
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Instance of Symbol 1786 MovieClip "pause_mc" in Frame 4
onClipEvent (enterFrame) { this.tabEnabled = false; this.swapDepths(_root.getNextHighestDepth()); }
Frame 5
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); flameLifeCount = 0; gameoverHit(_local1); } } else if (!playerWeapon.flamethroweron) { checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 5)) { if (bellTotal2 > 4) { bellLimit2 = 90; } bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); bellHolder["blood2" + this._name].removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); macInfo.text = "TIP! You can upgrade your current gun's stats down here!"; if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var firstplay = false; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 2; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 24; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 119; var bellLimit = 250; var bellTotal = 0; var bellTime2 = 60; var bellLimit2 = 280; var bellTotal2 = 0; var bellTime3 = 290; var bellLimit3 = 300; var bellTotal3 = 0; var bellTime4 = 250; var bellLimit4 = 260; var bellTotal4 = 0; var bellTime5 = 250; var bellLimit5 = 260; var bellTotal5 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 6
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit13(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit13(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -1; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime13++; if ((bellTime13 >= bellLimit13) && (enemyCount13 < 5)) { bellTotal13++; bellHolder.attachMovie("enemy_mc13", "bell_z" + bellTotal13, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13]._y = Math.floor(Math.random() * 151) + 200; bellHolder["bell_z" + bellTotal13].landing = bellHolder["bell_z" + bellTotal13]._y; totalEnemies = totalEnemies + 1; enemyCount13 = enemyCount13 + 1; bellHolder["bell_z" + bellTotal13].yspeed = joggingSpeed; bellHolder["bell_z" + bellTotal13].jumpSpeedLimit = 8; bellHolder["bell_z" + bellTotal13].jumpSpeed = 8; bellHolder["bell_z" + bellTotal13].damage = 1; bellHolder["bell_z" + bellTotal13].attackTime = 0; bellHolder["bell_z" + bellTotal13].yorigspeed = bellHolder["bell_z" + bellTotal13].yspeed; bellHolder["bell_z" + bellTotal13]._x = bellTop; bellHolder["bell_z" + bellTotal13].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_z" + bellTotal13].baron) { bellHolder.attachMovie("healthbar", "bar13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13].baron = true; bellHolder["bar13" + this._name].healthno = kangarooHealth; bellHolder["bar13" + this._name].healthorigno = bellHolder["bar13" + this._name].healthno; } bellHolder["bar13" + this._name]._x = this._x; bellHolder["bar13" + this._name]._y = this._y - 60; bellHolder["bar13" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.jumpSpeed < 0) { this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 125)); if (this.jumpSpeed > ((-this.jumpSpeedLimit) * 0.2)) { this.jumpSpeed = this.jumpSpeed * -1; } } if ((this.jumpSpeed > 0) && (this.jumpSpeed <= this.jumpSpeedLimit)) { this.jumpSpeed = this.jumpSpeed * (1 + (this.jumpSpeedLimit / 200)); } this._y = this._y + this.jumpSpeed; if (this._y > this.landing) { if (this.jumpSpeed > 0) { this.jumpSpeed = this.jumpSpeedLimit * -1; this._y = this.landing; } } this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar13" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); bellHolder["blood13" + this._name].removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar13" + this._name].healthno) == 0) { bellHolder["bar13" + this._name].healthno = bellHolder["bar13" + this._name].healthno - sisDamage; bellHolder["bar13" + this._name].bar_mc._x = bellHolder["bar13" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar13" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood13" + this._name]._x = this._x; bellHolder["blood13" + this._name]._y = this._y; } if ((bellHolder["bar13" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin13" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin13" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin13" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar13" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime13 = 0; } bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 5)) { if (bellTotal2 > 4) { bellLimit2 = 90; } bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var waveNumber = 3; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 24; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 320; var bellTotal = 0; var bellTime2 = 110; var bellLimit2 = 210; var bellTotal2 = 0; var bellTime3 = 380; var bellLimit3 = 480; var bellTotal3 = 0; var bellTime4 = 290; var bellLimit4 = 320; var bellTotal4 = 0; var bellTime5 = 300; var bellLimit5 = 380; var bellTotal5 = 0; var bellTime13 = 180; var bellLimit13 = 200; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 7
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit13(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit13(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -1; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime13++; if ((bellTime13 >= bellLimit13) && (enemyCount13 < 5)) { bellTotal13++; bellHolder.attachMovie("enemy_mc13", "bell_z" + bellTotal13, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13]._y = Math.floor(Math.random() * 151) + 200; bellHolder["bell_z" + bellTotal13].landing = bellHolder["bell_z" + bellTotal13]._y; totalEnemies = totalEnemies + 1; enemyCount13 = enemyCount13 + 1; bellHolder["bell_z" + bellTotal13].yspeed = joggingSpeed; bellHolder["bell_z" + bellTotal13].jumpSpeedLimit = 8; bellHolder["bell_z" + bellTotal13].jumpSpeed = 8; bellHolder["bell_z" + bellTotal13].damage = 1; bellHolder["bell_z" + bellTotal13].attackTime = 0; bellHolder["bell_z" + bellTotal13].yorigspeed = bellHolder["bell_z" + bellTotal13].yspeed; bellHolder["bell_z" + bellTotal13]._x = bellTop; bellHolder["bell_z" + bellTotal13].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_z" + bellTotal13].baron) { bellHolder.attachMovie("healthbar", "bar13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13].baron = true; bellHolder["bar13" + this._name].healthno = kangarooHealth; bellHolder["bar13" + this._name].healthorigno = bellHolder["bar13" + this._name].healthno; } bellHolder["bar13" + this._name]._x = this._x; bellHolder["bar13" + this._name]._y = this._y - 60; bellHolder["bar13" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.jumpSpeed < 0) { this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 125)); if (this.jumpSpeed > ((-this.jumpSpeedLimit) * 0.2)) { this.jumpSpeed = this.jumpSpeed * -1; } } if ((this.jumpSpeed > 0) && (this.jumpSpeed <= this.jumpSpeedLimit)) { this.jumpSpeed = this.jumpSpeed * (1 + (this.jumpSpeedLimit / 200)); } this._y = this._y + this.jumpSpeed; if (this._y > this.landing) { if (this.jumpSpeed > 0) { this.jumpSpeed = this.jumpSpeedLimit * -1; this._y = this.landing; } } this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar13" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood13" + this._name].removeMovieClip(); if ((!bellHolder["bar13" + this._name].healthno) == 0) { bellHolder["bar13" + this._name].healthno = bellHolder["bar13" + this._name].healthno - sisDamage; bellHolder["bar13" + this._name].bar_mc._x = bellHolder["bar13" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar13" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood13" + this._name]._x = this._x; bellHolder["blood13" + this._name]._y = this._y; } if ((bellHolder["bar13" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin13" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin13" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin13" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar13" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime13 = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 5)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; if (_root.gameOver) { bellHolder["enembullet" + this._name].removeMovieClip(); } } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 4; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 34; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 189; var bellLimit = 270; var bellTotal = 0; var bellTime2 = 70; var bellLimit2 = 80; var bellTotal2 = 0; var bellTime3 = 180; var bellLimit3 = 320; var bellTotal3 = 0; var bellTime4 = 350; var bellLimit4 = 380; var bellTotal4 = 0; var bellTime5 = 250; var bellLimit5 = 380; var bellTotal5 = 0; var bellTime13 = 120; var bellLimit13 = 350; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 8
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 5)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 7)) { bellTotal4++; bellHolder.attachMovie("enemy_mc4", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = slowSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 5; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 39; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 189; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 80; var bellLimit2 = 110; var bellTotal2 = 0; var bellTime3 = 180; var bellLimit3 = 340; var bellTotal3 = 0; var bellTime4 = 310; var bellLimit4 = 380; var bellTotal4 = 0; var bellTime5 = 220; var bellLimit5 = 290; var bellTotal5 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 9
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit6(_local1); checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit6(_local1); checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < (totalEnemiesGoalRatio * 2)) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function makeLvl() { bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 9)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc4", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = slowSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 6; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 44; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 189; var bellLimit = 190; var bellTotal = 0; var bellTime2 = 40; var bellLimit2 = 50; var bellTotal2 = 0; var bellTime3 = 150; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 250; var bellLimit4 = 260; var bellTotal4 = 0; var bellTime5 = 100; var bellLimit5 = 120; var bellTotal5 = 0; var bellTime6 = 50; var bellLimit6 = 60; var bellTotal6 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 10
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < 2) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin2", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + midbossDrop; score = score + midbossDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; totalKillsCount = totalKillsCount + 1; score = score + 1000; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 20)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth2; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 1)) { bellTotal7++; bellHolder.attachMovie("enemy_mc7", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = slowSpeed; bellHolder["bell_g" + bellTotal7].damage = 3; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = polarHealth; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 80; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + midbossDrop; score = score + midbossDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; totalKillsCount = totalKillsCount + 1; score = score + 1000; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { if (bellTotal6 > 5) { bellLimit6 = 250; } bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc4", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = slowSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 7; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 160; var bellLimit = 290; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 350; var bellTotal2 = 0; var bellTime3 = 150; var bellLimit3 = 390; var bellTotal3 = 0; var bellTime4 = 200; var bellLimit4 = 690; var bellTotal4 = 0; var bellTime5 = 250; var bellLimit5 = 350; var bellTotal5 = 0; var bellTime6 = 310; var bellLimit6 = 360; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 1200; var bellTotal7 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 11
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < 60) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 60; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < (totalEnemiesGoalRatio * 3)) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 10)) { bellTotal++; bellHolder.attachMovie("enemy_mc3b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 131) + 150; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 5; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = elephantHealth2; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if (bellTime2 >= bellLimit2) { bellTotal2++; bellHolder.attachMovie("enemy_mc2b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth2; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 8; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 30; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 100; var bellLimit = 350; var bellTotal = 0; var bellTime2 = -200; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 450; var bellLimit3 = 460; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = 260; var bellLimit6 = 280; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 1800; var bellTotal7 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 12
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit4(_bullet) { m = 0; while (m < 99) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bar4bell_d" + m].onEnterFrame = function () { if (gameOver) { this.removeMovieClip(); } }; bellHolder["bell_d" + m].yspeed = fastSpeed * -1.5; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; if (!bellHolder["bell_d" + m].hitonce) { bellHolder.attachMovie("coin3", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["bell_d" + m].hitonce = true; } bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; } } m++; } } function makeLvl() { bellTime4++; if (bellTime4 >= bellLimit4) { bellTotal4++; bellHolder.attachMovie("enemy_mc4b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].hitonce = false; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth2; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.yspeed = fastSpeed * -1.5; if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(17); } crashsound.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; } if (this.hitTest(wall3)) { bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bar4" + this._name].removeMovieClip(); totalKillsCount = totalKillsCount + 1; this.removeMovieClip(); } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); this.yspeed = fastSpeed * -1.5; if ((!bellHolder["bar4" + this._name].healthno) == 0) { if (!bellHolder["bell_d" + bellTotal4].hitonce) { bellHolder.attachMovie("coin3", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = this._x; bellHolder["coin4" + this._name]._y = this._y + 20; bellHolder["bell_d" + bellTotal4].hitonce = true; } bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["blood4" + this._name].removeMovieClip(); bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndPlay(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 9; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 77; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 119; var bellLimit = 140; var bellTotal = 0; var bellTime2 = 40; var bellLimit2 = 50; var bellTotal2 = 0; var bellTime3 = 110; var bellLimit3 = 130; var bellTotal3 = 0; var bellTime4 = 0; var bellLimit4 = 25; var bellTotal4 = 0; var bellTime5 = 120; var bellLimit5 = 140; var bellTotal5 = 0; var bellTime6 = 50; var bellLimit6 = 60; var bellTotal6 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 13
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function makeLvl() { bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 20)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed + 1; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 5; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 10; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 50; var bellLimit = 90; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 120; var bellTotal2 = 0; var bellTime3 = 210; var bellLimit3 = 250; var bellTotal3 = 0; var bellTime4 = 30; var bellLimit4 = 240; var bellTotal4 = 0; var bellTime5 = 30; var bellLimit5 = 70; var bellTotal5 = 0; var bellTime6 = 0; var bellLimit6 = 40; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 100; var bellTotal7 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 14
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime7++; if (bellTime7 >= bellLimit7) { bellTotal7++; bellHolder.attachMovie("enemy_mc3b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 81) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = slowSpeed; bellHolder["bell_g" + bellTotal7].damage = 5; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = elephantHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 50; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc4", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = slowSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 11; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 80; var bellLimit = 140; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 70; var bellLimit3 = 130; var bellTotal3 = 0; var bellTime4 = 180; var bellLimit4 = 220; var bellTotal4 = 0; var bellTime5 = 40; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 100; var bellLimit6 = 180; var bellTotal6 = 0; var bellTime7 = 150; var bellLimit7 = 560; var bellTotal7 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 15
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 12; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 5)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = walkSpeed; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 20)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth2; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar2" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 1)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc4", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = slowSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 3)) { bellTotal8++; bellHolder.attachMovie("enemy_mc8", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 0; bellHolder["bell_h" + bellTotal8].damage = 0; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("healthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = hippoHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 30; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall4)) { this.yspeed = 0; if ((this.firingSpeed > (hippoTime - 20)) && (bellHolder["bar8" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > hippoTime) { bellHolder.attachMovie("bullets2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 1; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 3; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood8" + this._name].removeMovieClip(); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y + 12; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 12; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 55; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 150; var bellLimit = 190; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 220; var bellLimit3 = 260; var bellTotal3 = 0; var bellTime4 = 300; var bellLimit4 = 260; var bellTotal4 = 0; var bellTime5 = 210; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 190; var bellLimit6 = 230; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 200; var bellTotal7 = 0; var bellTime8 = 60; var bellLimit8 = 100; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 16
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 12; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 10)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 3)) { bellTotal8++; bellHolder.attachMovie("enemy_mc8", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 0; bellHolder["bell_h" + bellTotal8].damage = 0; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("healthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = hippoHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 30; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall4)) { this.yspeed = 0; if ((this.firingSpeed > (hippoTime - 20)) && (bellHolder["bar8" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > hippoTime) { bellHolder.attachMovie("bullets2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 1; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 3; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood8" + this._name].removeMovieClip(); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y + 12; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 13; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 60; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 360; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 120; var bellTotal2 = 0; var bellTime3 = 120; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 100; var bellLimit5 = 150; var bellTotal5 = 0; var bellTime6 = 0; var bellLimit6 = 35; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 40; var bellTotal7 = 0; var bellTime8 = 40; var bellLimit8 = 80; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 17
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; } bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function makeLvl() { bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 6)) { bellTotal2++; bellHolder.attachMovie("enemy_mc9", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed; bellHolder["bell_b" + bellTotal2].damage = 2; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = lionHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 14; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 80; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 350; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 250; var bellTotal2 = 0; var bellTime3 = 120; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 0; var bellLimit6 = 40; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 30; var bellTotal7 = 0; var bellTime8 = 60; var bellLimit8 = 100; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 18
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 12; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function makeLvl() { bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 6)) { bellTotal2++; bellHolder.attachMovie("enemy_mc9", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed; bellHolder["bell_b" + bellTotal2].damage = 2; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = lionHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 3)) { bellTotal7++; bellHolder.attachMovie("enemy_mc7b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = slowSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = bearHealth; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 80; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y - 10; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 3)) { bellTotal8++; bellHolder.attachMovie("enemy_mc8", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 0; bellHolder["bell_h" + bellTotal8].damage = 0; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("healthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = hippoHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 30; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall4)) { this.yspeed = 0; if ((this.firingSpeed > (hippoTime - 20)) && (bellHolder["bar8" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > hippoTime) { bellHolder.attachMovie("bullets2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 1; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 3; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood8" + this._name].removeMovieClip(); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y + 12; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 15; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 350; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 290; var bellTotal2 = 0; var bellTime3 = 150; var bellLimit3 = 190; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 290; var bellTotal5 = 0; var bellTime6 = 30; var bellLimit6 = 90; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 700; var bellTotal7 = 0; var bellTime8 = 100; var bellLimit8 = 180; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 19
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y - 60; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 0.1; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin2", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + midbossDrop; score = score + midbossDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 10000; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 1)) { bellTotal++; bellHolder.attachMovie("enemy_mc11", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = slowSpeed - 0.3; bellHolder["bell_a" + bellTotal].damage = 5; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = rhinoHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 80; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 6)) { bellTotal2++; bellHolder.attachMovie("enemy_mc9", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed; bellHolder["bell_b" + bellTotal2].damage = 2; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = lionHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 1)) { if (bellTotal7 > 5) { bellLimit7 = 250; } bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { if (bellTotal6 > 5) { bellLimit6 = 250; } bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 3)) { bellTotal8++; bellHolder.attachMovie("enemy_mc8", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 0; bellHolder["bell_h" + bellTotal8].damage = 0; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("healthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = hippoHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 30; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall4)) { this.yspeed = 0; if ((this.firingSpeed > (hippoTime - 20)) && (bellHolder["bar8" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > hippoTime) { bellHolder.attachMovie("bullets2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 1; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 3; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood8" + this._name].removeMovieClip(); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 16; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 40; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 200; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 280; var bellTotal2 = 0; var bellTime3 = 720; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = 260; var bellLimit6 = 380; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 200; var bellTotal7 = 0; var bellTime8 = 190; var bellLimit8 = 320; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 20
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit10(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit10(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit10(_bullet) { k = 0; while (k < (totalEnemiesGoalRatio + 10)) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime10++; if ((bellTime10 >= bellLimit10) && (enemyCount10 < 20)) { bellTotal10++; bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 441) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 1; bellHolder["bell_j" + bellTotal10].xspeed = quickSpeed; bellHolder["bell_j" + bellTotal10].yspeed = walkSpeed; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = snakeHealth; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.fallTime < this.randFall) { this._y = this._y + this.xspeed; } else { this._x = this._x - this.yspeed; } if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar10" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood10" + this._name].removeMovieClip(); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!this.notdead)) { this.notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 17; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 60; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTop2 = -50; var bellTime = 350; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 120; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 10; var bellLimit6 = 40; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 500; var bellTotal7 = 0; var bellTime8 = 50; var bellLimit8 = 100; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 20; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 21
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); } gameoverHit(_local1); _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y - 30; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(2); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 8)) { bellTotal2++; bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = joggingSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = monkeyHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { if (bellTotal7 > 5) { bellLimit7 = 90; } bellTotal7++; bellHolder.attachMovie("enemy_mc2b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = joggingSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = monkeyHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 5)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 18; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 200; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 90; var bellTotal2 = 0; var bellTime3 = 750; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = -600; var bellLimit6 = 250; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 70; var bellTotal7 = 0; var bellTime8 = -500; var bellLimit8 = 200; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 60; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 22
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 1000; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 6)) { bellTotal2++; bellHolder.attachMovie("enemy_mc9", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed; bellHolder["bell_b" + bellTotal2].damage = 2; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = lionHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 10)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } bellTime10++; if ((bellTime10 >= bellLimit10) && (enemyCount10 < 20)) { bellTotal10++; bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 441) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 1; bellHolder["bell_j" + bellTotal10].xspeed = quickSpeed; bellHolder["bell_j" + bellTotal10].yspeed = walkSpeed; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = snakeHealth; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.fallTime < this.randFall) { this._y = this._y + this.xspeed; } else { this._x = this._x - this.yspeed; } if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar10" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood10" + this._name].removeMovieClip(); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 19; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 50; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 200; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 160; var bellTotal2 = 0; var bellTime3 = 720; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = 60; var bellLimit6 = 480; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 200; var bellTotal7 = 0; var bellTime8 = 100; var bellLimit8 = 120; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 60; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 23
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit4(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit4(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y - 60; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 0.1; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin2", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + midbossDrop; score = score + midbossDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 20000; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y - 30; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 15000; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 10; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 10000; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 1)) { bellTotal++; bellHolder.attachMovie("enemy_mc11", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = slowSpeed - 0.3; bellHolder["bell_a" + bellTotal].damage = 5; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = rhinoHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 80; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 9000; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 2)) { bellTotal2++; bellHolder.attachMovie("enemy_mc7b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = slowSpeed; bellHolder["bell_b" + bellTotal2].damage = 3; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = bearHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 80; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 1000; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 4)) { if (bellTotal7 > 5) { bellLimit7 = 90; } enemyCount4 = 999; bellTotal7++; bellHolder.attachMovie("enemy_mc3b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 131) + 150; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = walkSpeed; bellHolder["bell_g" + bellTotal7].damage = 3; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = elephantHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 500; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 3)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 1)) { bellTotal4++; bellHolder.attachMovie("enemy_mc6", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 1; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = rabbitHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 20; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 30; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 533; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 467; var bellTotal2 = 0; var bellTime3 = 520; var bellLimit3 = 560; var bellTotal3 = 0; var bellTime4 = 0; var bellLimit4 = 1; var bellTotal4 = 0; var bellTime5 = 600; var bellLimit5 = 650; var bellTotal5 = 0; var bellTime6 = -600; var bellLimit6 = 490; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 437; var bellTotal7 = 0; var bellTime8 = -500; var bellLimit8 = 200; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 60; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 24
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit10(_local1); checkWallHit7(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit10(_local1); checkWallHit7(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 1000; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 10)) { bellTotal7++; bellHolder.attachMovie("enemy_mc14", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = walkSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = crocodileHealth; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 60; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime10++; if ((bellTime10 >= bellLimit10) && (enemyCount10 < 20)) { bellTotal10++; bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 441) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 1; bellHolder["bell_j" + bellTotal10].xspeed = quickSpeed; bellHolder["bell_j" + bellTotal10].yspeed = walkSpeed; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = snakeHealth; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.fallTime < this.randFall) { this._y = this._y + this.xspeed; } else { this._x = this._x - this.yspeed; } if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar10" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood10" + this._name].removeMovieClip(); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 21; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 70; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 200; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 160; var bellTotal2 = 0; var bellTime3 = 710; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = 60; var bellLimit6 = 240; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 200; var bellTotal7 = 0; var bellTime8 = 100; var bellLimit8 = 120; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 20; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 25
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit13(_local1); checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit13(_local1); checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -1; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 0.1; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 10000; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y - 30; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 400; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime13++; if ((bellTime13 >= bellLimit13) && (enemyCount13 < 5)) { bellTotal13++; bellHolder.attachMovie("enemy_mc13", "bell_z" + bellTotal13, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13]._y = Math.floor(Math.random() * 151) + 200; bellHolder["bell_z" + bellTotal13].landing = bellHolder["bell_z" + bellTotal13]._y; totalEnemies = totalEnemies + 1; enemyCount13 = enemyCount13 + 1; bellHolder["bell_z" + bellTotal13].yspeed = joggingSpeed; bellHolder["bell_z" + bellTotal13].jumpSpeedLimit = 8; bellHolder["bell_z" + bellTotal13].jumpSpeed = 8; bellHolder["bell_z" + bellTotal13].damage = 1; bellHolder["bell_z" + bellTotal13].attackTime = 0; bellHolder["bell_z" + bellTotal13].yorigspeed = bellHolder["bell_z" + bellTotal13].yspeed; bellHolder["bell_z" + bellTotal13]._x = bellTop; bellHolder["bell_z" + bellTotal13].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_z" + bellTotal13].baron) { bellHolder.attachMovie("healthbar", "bar13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13].baron = true; bellHolder["bar13" + this._name].healthno = kangarooHealth; bellHolder["bar13" + this._name].healthorigno = bellHolder["bar13" + this._name].healthno; } bellHolder["bar13" + this._name]._x = this._x; bellHolder["bar13" + this._name]._y = this._y - 60; bellHolder["bar13" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.jumpSpeed < 0) { this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 125)); if (this.jumpSpeed > ((-this.jumpSpeedLimit) * 0.2)) { this.jumpSpeed = this.jumpSpeed * -1; } } if ((this.jumpSpeed > 0) && (this.jumpSpeed <= this.jumpSpeedLimit)) { this.jumpSpeed = this.jumpSpeed * (1 + (this.jumpSpeedLimit / 200)); } this._y = this._y + this.jumpSpeed; if (this._y > this.landing) { if (this.jumpSpeed > 0) { this.jumpSpeed = this.jumpSpeedLimit * -1; this._y = this.landing; } } this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar13" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood13" + this._name].removeMovieClip(); if ((!bellHolder["bar13" + this._name].healthno) == 0) { bellHolder["bar13" + this._name].healthno = bellHolder["bar13" + this._name].healthno - sisDamage; bellHolder["bar13" + this._name].bar_mc._x = bellHolder["bar13" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar13" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood13" + this._name]._x = this._x; bellHolder["blood13" + this._name]._y = this._y; } if ((bellHolder["bar13" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin13" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin13" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin13" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar13" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime13 = 0; } bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 1)) { bellTotal++; bellHolder.attachMovie("enemy_mc", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = slowSpeed; bellHolder["bell_a" + bellTotal].damage = 5; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = pandaHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime2++; if ((bellTime2 >= bellLimit2) && (enemyCount2 < 8)) { bellTotal2++; bellHolder.attachMovie("enemy_mc6", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount2 = enemyCount2 + 1; bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed; bellHolder["bell_b" + bellTotal2].damage = 1; bellHolder["bell_b" + bellTotal2].attackTime = 0; bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed; bellHolder["bell_b" + bellTotal2]._x = bellTop; bellHolder["bell_b" + bellTotal2].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_b" + bellTotal2].baron) { bellHolder.attachMovie("healthbar", "bar2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_b" + bellTotal2].baron = true; bellHolder["bar2" + this._name].healthno = rabbitHealth; bellHolder["bar2" + this._name].healthorigno = bellHolder["bar2" + this._name].healthno; } bellHolder["bar2" + this._name]._x = this._x; bellHolder["bar2" + this._name]._y = this._y - 20; bellHolder["bar2" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood2" + this._name].removeMovieClip(); if ((!bellHolder["bar2" + this._name].healthno) == 0) { bellHolder["bar2" + this._name].healthno = bellHolder["bar2" + this._name].healthno - sisDamage; bellHolder["bar2" + this._name].bar_mc._x = bellHolder["bar2" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar2" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood2" + this._name]._x = this._x; bellHolder["blood2" + this._name]._y = this._y; } if ((bellHolder["bar2" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin2" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin2" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin2" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin2" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar2" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime2 = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { if (bellTotal7 > 5) { bellLimit7 = 90; } bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime5++; if ((bellTime5 >= bellLimit5) && (enemyCount5 < 5)) { bellTotal5++; bellHolder.attachMovie("enemy_mc5", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5]._y = Math.floor(Math.random() * 101) + 0; totalEnemies = totalEnemies + 1; enemyCount5 = enemyCount5 + 1; bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed; bellHolder["bell_e" + bellTotal5].xspeed = 1; bellHolder["bell_e" + bellTotal5].damage = 1; bellHolder["bell_e" + bellTotal5].attackTime = 0; bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed; bellHolder["bell_e" + bellTotal5]._x = bellTop; bellHolder["bell_e" + bellTotal5].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_e" + bellTotal5].baron) { bellHolder.attachMovie("healthbar", "bar5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_e" + bellTotal5].baron = true; bellHolder["bar5" + this._name].healthno = eagleHealth; bellHolder["bar5" + this._name].healthorigno = bellHolder["bar5" + this._name].healthno; } bellHolder["bar5" + this._name]._x = this._x; bellHolder["bar5" + this._name]._y = this._y - 20; bellHolder["bar5" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.xspeed = 0.1; soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood5" + this._name].removeMovieClip(); if ((!bellHolder["bar5" + this._name].healthno) == 0) { bellHolder["bar5" + this._name].healthno = bellHolder["bar5" + this._name].healthno - sisDamage; bellHolder["bar5" + this._name].bar_mc._x = bellHolder["bar5" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar5" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood5" + this._name]._x = this._x; bellHolder["blood5" + this._name]._y = this._y; } if ((bellHolder["bar5" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin5" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin5" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin5" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin5" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar5" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime5 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 5)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc9", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = lionHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 3)) { bellTotal8++; bellHolder.attachMovie("enemy_mc8", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 0; bellHolder["bell_h" + bellTotal8].damage = 0; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("healthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = hippoHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 30; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall4)) { this.yspeed = 0; if ((this.firingSpeed > (hippoTime - 20)) && (bellHolder["bar8" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > hippoTime) { bellHolder.attachMovie("bullets2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 1; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 3; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood8" + this._name].removeMovieClip(); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } bellTime3++; if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) { bellTotal3++; bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount3 = enemyCount3 + 1; bellHolder["bell_c" + bellTotal3].yspeed = joggingSpeed; bellHolder["bell_c" + bellTotal3].firingSpeed = 0; bellHolder["bell_c" + bellTotal3].damage = 0; bellHolder["bell_c" + bellTotal3].attackTime = 0; bellHolder["bell_c" + bellTotal3].yorigspeed = bellHolder["bell_c" + bellTotal3].yspeed; bellHolder["bell_c" + bellTotal3]._x = bellTop; bellHolder["bell_c" + bellTotal3].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_c" + bellTotal3].baron) { bellHolder.attachMovie("healthbar", "bar3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_c" + bellTotal3].baron = true; bellHolder["bar3" + this._name].healthno = elephantHealth; bellHolder["bar3" + this._name].healthorigno = bellHolder["bar3" + this._name].healthno; } bellHolder["bar3" + this._name]._x = this._x; bellHolder["bar3" + this._name]._y = this._y - 30; bellHolder["bar3" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall2)) { this.yspeed = 0; if ((this.firingSpeed > (elephantTime - 10)) && (bellHolder["bar3" + this._name].healthno > 0)) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > elephantTime) { bellHolder.attachMovie("bullet_mc2", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (!gpause) { this._x = this._x - 5; } if (this.hitTest(wall)) { this.removeMovieClip(); if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((1 / towerLifeOrig) * 30); towerLife = towerLife - 1; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood3" + this._name].removeMovieClip(); if ((!bellHolder["bar3" + this._name].healthno) == 0) { bellHolder["bar3" + this._name].healthno = bellHolder["bar3" + this._name].healthno - sisDamage; bellHolder["bar3" + this._name].bar_mc._x = bellHolder["bar3" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar3" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood3" + this._name]._x = this._x; bellHolder["blood3" + this._name]._y = this._y; } if ((bellHolder["bar3" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin3" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin3" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin3" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin3" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar3" + this._name].removeMovieClip(); this.gotoAndStop(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime3 = 0; } bellTime10++; if ((bellTime10 >= bellLimit10) && (enemyCount10 < 20)) { bellTotal10++; bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 441) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 1; bellHolder["bell_j" + bellTotal10].xspeed = quickSpeed; bellHolder["bell_j" + bellTotal10].yspeed = walkSpeed; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = snakeHealth; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.fallTime < this.randFall) { this._y = this._y + this.xspeed; } else { this._x = this._x - this.yspeed; } if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar10" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood10" + this._name].removeMovieClip(); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 22; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 60; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 250; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 90; var bellTotal2 = 0; var bellTime3 = 720; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 400; var bellLimit4 = 560; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = -200; var bellLimit6 = 250; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 70; var bellTotal7 = 0; var bellTime8 = -500; var bellLimit8 = 200; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 70; var bellTotal10 = 0; var bellTime13 = 120; var bellLimit13 = 500; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 26
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit13(_local1); checkWallHit4(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit13(_local1); checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -2; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit4(_bullet) { m = 0; while (m < 99) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yspeed * -1.5; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].onEnterFrame = function () { if (gameOver) { this.removeMovieClip(); } }; bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; bellHolder["bell_d" + m].hitonce = false; if (!bellHolder["bell_d" + m].hitonce) { bellHolder.attachMovie("coin3", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["bell_d" + m].hitonce = true; } bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; } } m++; } } function makeLvl() { bellTime13++; if ((bellTime13 >= bellLimit13) && (enemyCount13 < 10)) { bellTotal13++; bellHolder.attachMovie("enemy_mc13b", "bell_z" + bellTotal13, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13]._y = Math.floor(Math.random() * 71) + 300; bellHolder["bell_z" + bellTotal13].landing = bellHolder["bell_z" + bellTotal13]._y; bellHolder["bell_z" + bellTotal13].width = bellHolder["bell_z" + bellTotal13].width / 2; bellHolder["bell_z" + bellTotal13].height = bellHolder["bell_z" + bellTotal13].height / 2; totalEnemies = totalEnemies + 1; enemyCount13 = enemyCount13 + 1; bellHolder["bell_z" + bellTotal13].yspeed = joggingSpeed; bellHolder["bell_z" + bellTotal13].jumpSpeedLimit = 20; bellHolder["bell_z" + bellTotal13].jumpSpeed = 20; bellHolder["bell_z" + bellTotal13].damage = 1; bellHolder["bell_z" + bellTotal13].attackTime = 0; bellHolder["bell_z" + bellTotal13].yorigspeed = bellHolder["bell_z" + bellTotal13].yspeed; bellHolder["bell_z" + bellTotal13]._x = bellTop; bellHolder["bell_z" + bellTotal13].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_z" + bellTotal13].baron) { bellHolder.attachMovie("healthbar", "bar13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_z" + bellTotal13].baron = true; bellHolder["bar13" + this._name].healthno = kangarooHealth2; bellHolder["bar13" + this._name].healthorigno = bellHolder["bar13" + this._name].healthno; } bellHolder["bar13" + this._name]._x = this._x; bellHolder["bar13" + this._name]._y = this._y - 60; bellHolder["bar13" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.jumpSpeed < 0) { this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 330)); if (this.jumpSpeed > ((-this.jumpSpeedLimit) * 0.2)) { this.jumpSpeed = this.jumpSpeed * -1; } } if ((this.jumpSpeed > 0) && (this.jumpSpeed <= this.jumpSpeedLimit)) { this.jumpSpeed = this.jumpSpeed * (1 + (this.jumpSpeedLimit / 330)); } this._y = this._y + this.jumpSpeed; if (this._y > this.landing) { if (this.jumpSpeed > 0) { this.jumpSpeed = this.jumpSpeedLimit * -1; this._y = this.landing; } } this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar13" + this._name].healthno > 0) { this.gotoAndStop(17); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood13" + this._name].removeMovieClip(); if ((!bellHolder["bar13" + this._name].healthno) == 0) { bellHolder["bar13" + this._name].healthno = bellHolder["bar13" + this._name].healthno - sisDamage; bellHolder["bar13" + this._name].bar_mc._x = bellHolder["bar13" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar13" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood13" + this._name]._x = this._x; bellHolder["blood13" + this._name]._y = this._y; } if ((bellHolder["bar13" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin13" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin13" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin13" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin13" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar13" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime13 = 0; } bellTime4++; if (bellTime4 >= bellLimit4) { bellTotal4++; bellHolder.attachMovie("enemy_mc4b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth2; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.yspeed = this.yspeed - (quickSpeed * 1.2); if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(17); } crashsound.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; } if (this.hitTest(wall3)) { bellHolder["bar4" + this._name].removeMovieClip(); totalKillsCount = totalKillsCount + 1; this.removeMovieClip(); } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); this.yspeed = this.yspeed * -1.5; if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder.attachMovie("coin3", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = this._x; bellHolder["coin4" + this._name]._y = this._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 23; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 60; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 250; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 90; var bellTotal2 = 0; var bellTime3 = 720; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 0; var bellLimit4 = 40; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = -200; var bellLimit6 = 250; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 70; var bellTotal7 = 0; var bellTime8 = -500; var bellLimit8 = 200; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 70; var bellTotal10 = 0; var bellTime13 = 120; var bellLimit13 = 150; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 27
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -1; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y - 30; } bellHolder["bell_h" + p]._x = bellHolder["bell_h" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 30); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 400; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < totalEnemiesGoalRatio) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; bellHolder["bell_d" + m]._x = bellHolder["bell_d" + m]._x + 3; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; bellHolder.attachMovie("coin", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 300; bellHolder["bell_d" + m].yspeed = -1; bellHolder["bar4bell_d" + m].removeMovieClip(); bellHolder["bell_d" + m].gotoAndStop(2); } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { if (bellTotal7 > 5) { bellLimit7 = 90; } bellTotal7++; bellHolder.attachMovie("enemy_mc7b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = walkSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = bearHealth; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 80; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 5)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (enemyCount4 < 5)) { bellTotal4++; bellHolder.attachMovie("enemy_mc9", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].attackTime = 0; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = lionHealth; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood4" + this._name].removeMovieClip(); if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 24; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 38; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = 0; var bellLimit = 1090; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 90; var bellTotal2 = 0; var bellTime3 = 320; var bellLimit3 = 360; var bellTotal3 = 0; var bellTime4 = 320; var bellLimit4 = 380; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 400; var bellLimit6 = 450; var bellTotal6 = 0; var bellTime7 = 390; var bellLimit7 = 480; var bellTotal7 = 0; var bellTime8 = 0; var bellLimit8 = 200; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 50; var bellTotal10 = 0; var bellTime13 = 120; var bellLimit13 = 500; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 28
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { _root.flamesound.start(0, 1); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; flameLifeCount++; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; if (playerWeapon.flamethroweron) { if (flameLifeCount >= 17) { checkWallHit13(_local1); checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); flameLifeCount = 0; } } else if (!playerWeapon.flamethroweron) { checkWallHit13(_local1); checkWallHit10(_local1); checkWallHit8(_local1); checkWallHit7(_local1); checkWallHit6(_local1); checkWallHit5(_local1); checkWallHit4(_local1); checkWallHit3(_local1); checkWallHit2(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); gameoverHit(_local1); } _local2++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit13(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_z" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood13bell_z" + k].removeMovieClip(); if ((!bellHolder["bar13bell_z" + k].healthno) == 0) { bellHolder["bell_z" + k].yspeed = bellHolder["bell_z" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["blood13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["blood13bell_z" + k]._y = bellHolder["bell_z" + k]._y - 20; } bellHolder["bell_z" + k]._x = bellHolder["bell_z" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar13bell_z" + k].bar_mc._x = bellHolder["bar13bell_z" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar13bell_z" + k].healthorigno) * 30); bellHolder["bar13bell_z" + k].healthno = bellHolder["bar13bell_z" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar13bell_z" + k].healthno <= 0) && (!bellHolder["bell_z" + k].notdead)) { bellHolder["bell_z" + k].notdead = true; bellHolder.attachMovie("coin", "coin13bell_z" + k, bellHolder.getNextHighestDepth()); bellHolder["coin13bell_z" + k]._x = bellHolder["bell_z" + k]._x; bellHolder["coin13bell_z" + k]._y = bellHolder["bell_z" + k]._y + 20; bellHolder["coin13bell_z" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount13 = enemyCount13 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_z" + k].yspeed = -1; bellHolder["bar13bell_z" + k].removeMovieClip(); bellHolder["bell_z" + k].gotoAndStop(2); } } k++; } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["bloodbell_a" + j].removeMovieClip(); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y - 60; } bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 0.1; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 10000; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndStop(2); } } j++; } } function checkWallHit2(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_b" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood2bell_b" + k].removeMovieClip(); if ((!bellHolder["bar2bell_b" + k].healthno) == 0) { bellHolder["bell_b" + k].yspeed = bellHolder["bell_b" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["blood2bell_b" + k]._y = bellHolder["bell_b" + k]._y; } bellHolder["bell_b" + k]._x = bellHolder["bell_b" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar2bell_b" + k].bar_mc._x = bellHolder["bar2bell_b" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar2bell_b" + k].healthorigno) * 30); bellHolder["bar2bell_b" + k].healthno = bellHolder["bar2bell_b" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar2bell_b" + k].healthno <= 0) && (!bellHolder["bell_b" + k].notdead)) { bellHolder["bell_b" + k].notdead = true; bellHolder.attachMovie("coin", "coin2bell_b" + k, bellHolder.getNextHighestDepth()); bellHolder["coin2bell_b" + k]._x = bellHolder["bell_b" + k]._x; bellHolder["coin2bell_b" + k]._y = bellHolder["bell_b" + k]._y + 20; bellHolder["coin2bell_b" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_b" + k].yspeed = -1; bellHolder["bar2bell_b" + k].removeMovieClip(); bellHolder["bell_b" + k].gotoAndStop(2); } } k++; } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood7bell_g" + p].removeMovieClip(); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood7bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; } bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndStop(2); } } p++; } } function checkWallHit8(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_h" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood8bell_h" + p].removeMovieClip(); if ((!bellHolder["bar8bell_h" + p].healthno) == 0) { bellHolder["bell_h" + p].yspeed = bellHolder["bell_h" + p].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["blood8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["blood8bell_h" + p]._y = bellHolder["bell_h" + p]._y - 30; } destroyBullet(_bullet); bellHolder["bar8bell_h" + p].bar_mc._x = bellHolder["bar8bell_h" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar8bell_h" + p].healthorigno) * 100); bellHolder["bar8bell_h" + p].healthno = bellHolder["bar8bell_h" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar8bell_h" + p].healthno <= 0) && (!bellHolder["bell_h" + p].notdead)) { bellHolder["bell_h" + p].notdead = true; bellHolder.attachMovie("coin", "coin8bell_h" + p, bellHolder.getNextHighestDepth()); bellHolder["coin8bell_h" + p]._x = bellHolder["bell_h" + p]._x; bellHolder["coin8bell_h" + p]._y = bellHolder["bell_h" + p]._y + 20; bellHolder["coin8bell_h" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + 100000; score = score + 100000; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 8); this._y = this._y - ((this._y - yMouse1) / 8); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; gpause = true; score = score + 50000; bellHolder["bell_h" + p].yspeed = -1; bellHolder["bar8bell_h" + p].removeMovieClip(); bellHolder["bell_h" + p].gotoAndStop(3); massKill(); } } p++; } } function checkWallHit5(_bullet) { n = 0; while (n < totalEnemiesGoalRatio) { if (bellHolder["bell_e" + n].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood5bell_e" + n].removeMovieClip(); if ((!bellHolder["bar5bell_e" + n].healthno) == 0) { bellHolder["bell_e" + n].yspeed = bellHolder["bell_e" + n].yorigspeed; bellHolder.attachMovie("blood_mc", "blood5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["blood5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["blood5bell_e" + n]._y = bellHolder["bell_e" + n]._y; bellHolder["bell_e" + n]._x = bellHolder["bell_e" + n]._x + 3; destroyBullet(_bullet); bellHolder["bar5bell_e" + n].bar_mc._x = bellHolder["bar5bell_e" + n].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar5bell_e" + n].healthorigno) * 30); bellHolder["bar5bell_e" + n].healthno = bellHolder["bar5bell_e" + n].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar5bell_e" + n].healthno <= 0) && (!bellHolder["bell_e" + n].notdead)) { bellHolder["bell_e" + n].notdead = true; bellHolder.attachMovie("coin", "coin5bell_e" + n, bellHolder.getNextHighestDepth()); bellHolder["coin5bell_e" + n]._x = bellHolder["bell_e" + n]._x; bellHolder["coin5bell_e" + n]._y = bellHolder["bell_e" + n]._y + 20; bellHolder["coin5bell_e" + n].dropCoinTimer = 0; bellHolder["coin5bell_e" + n].onEnterFrame = function () { if (!gpause) { this.dropCoinTimer++; if (this.dropCoinTimer <= 20) { this._y = this._y + 5; } if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount5 = enemyCount5 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_e" + n].yspeed = -1; bellHolder["bar5bell_e" + n].removeMovieClip(); bellHolder["bell_e" + n].gotoAndStop(2); } } n++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood6bell_f" + o].removeMovieClip(); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; } bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndStop(2); } } o++; } } function checkWallHit4(_bullet) { m = 0; while (m < 99) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood4bell_d" + m].removeMovieClip(); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; } bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yspeed * -1.5; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].onEnterFrame = function () { if (gameOver) { this.removeMovieClip(); } }; bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; bellHolder["bell_d" + m].hitonce = false; if (!bellHolder["bell_d" + m].hitonce) { bellHolder.attachMovie("coin3", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["bell_d" + m].hitonce = true; } bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; } } m++; } } function checkWallHit3(_bullet) { l = 0; while (l < totalEnemiesGoalRatio) { if (bellHolder["bell_c" + l].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood3bell_c" + l].removeMovieClip(); if ((!bellHolder["bar3bell_c" + l].healthno) == 0) { bellHolder["bell_c" + l].yspeed = bellHolder["bell_c" + l].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["blood3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["blood3bell_c" + l]._y = bellHolder["bell_c" + l]._y; } bellHolder["bell_c" + l]._x = bellHolder["bell_c" + l]._x + 3; destroyBullet(_bullet); bellHolder["bar3bell_c" + l].bar_mc._x = bellHolder["bar3bell_c" + l].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar3bell_c" + l].healthorigno) * 30); bellHolder["bar3bell_c" + l].healthno = bellHolder["bar3bell_c" + l].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar3bell_c" + l].healthno <= 0) && (!bellHolder["bell_c" + l].notdead)) { bellHolder["bell_c" + l].notdead = true; bellHolder.attachMovie("coin", "coin3bell_c" + l, bellHolder.getNextHighestDepth()); bellHolder["coin3bell_c" + l]._x = bellHolder["bell_c" + l]._x; bellHolder["coin3bell_c" + l]._y = bellHolder["bell_c" + l]._y + 20; bellHolder["coin3bell_c" + l].onRelease = function () { this.touchedonce = true; }; bellHolder["coin3bell_c" + l].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount3 = enemyCount3 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_c" + l].yspeed = -1; bellHolder["bar3bell_c" + l].removeMovieClip(); bellHolder["bell_c" + l].gotoAndStop(3); } } l++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); bellHolder["blood10bell_j" + k].removeMovieClip(); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; if (!playerWeapon.flamethroweron) { bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; } bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndStop(2); } } k++; } } function makeLvl() { bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 1)) { bellTotal++; bellHolder.attachMovie("enemy_mc11", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._y = Math.floor(Math.random() * 151) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].yspeed = slowSpeed - 0.3; bellHolder["bell_a" + bellTotal].damage = 5; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._x = bellTop; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = rhinoHealth; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 100; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood" + this._name].removeMovieClip(); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + hugeDrop; score = score + hugeDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 9000; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 8)) { if (bellTotal7 > 5) { bellLimit7 = 90; } bellTotal7++; bellHolder.attachMovie("enemy_mc7b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = walkSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = bearHealth; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 80; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood7" + this._name].removeMovieClip(); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 5)) { bellTotal6++; bellHolder.attachMovie("enemy_mc12", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = walkSpeed; bellHolder["bell_f" + bellTotal6].damage = 7; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = gorillaHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 50; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); bellHolder["blood6" + this._name].removeMovieClip(); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } bellTime4++; if ((bellTime4 >= bellLimit4) && (turtleCall)) { bellTotal4++; if (enemyCount4 >= 7) { turtleCall = false; enemyCount4 = 0; } bellHolder.attachMovie("enemy_mc4b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth2; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.yspeed = this.yspeed - (quickSpeed * 1.2); if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(17); } crashsound.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; } if (this.hitTest(wall3)) { bellHolder["bar4" + this._name].removeMovieClip(); totalKillsCount = totalKillsCount + 1; this.removeMovieClip(); } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); this.yspeed = this.yspeed * -1.5; if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder.attachMovie("coin3", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = this._x; bellHolder["coin4" + this._name]._y = this._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndStop(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } bellTime8++; if ((bellTime8 >= bellLimit8) && (enemyCount8 < 1)) { bellTotal8++; bellHolder.attachMovie("enemy_mc15", "bell_h" + bellTotal8, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8]._y = 250; totalEnemies = totalEnemies + 1; timerSnake = 0; turtleCall = false; bossCall = false; enemyCount8 = enemyCount8 + 1; bellHolder["bell_h" + bellTotal8].yspeed = walkSpeed; bellHolder["bell_h" + bellTotal8].firingSpeed = 400; bellHolder["bell_h" + bellTotal8].firingSpeed2 = 0; bellHolder["bell_h" + bellTotal8].damage = 0; introOnce = false; bellHolder["bell_h" + bellTotal8].attackTime = 0; bellHolder["bell_h" + bellTotal8].yorigspeed = bellHolder["bell_h" + bellTotal8].yspeed; bellHolder["bell_h" + bellTotal8]._x = bellTop; bellHolder["bell_h" + bellTotal8].onEnterFrame = function () { if (!gpause) { bellHolder["bell_h" + bellTotal8].swapDepths(bellHolder.getNextHighestDepth()); if (!bellHolder["bell_h" + bellTotal8].baron) { bellHolder.attachMovie("bosshealthbar", "bar8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_h" + bellTotal8].baron = true; bellHolder["bar8" + this._name].healthno = bossHealth; bellHolder["bar8" + this._name].healthorigno = bellHolder["bar8" + this._name].healthno; } bellHolder["bar8" + this._name]._x = this._x; bellHolder["bar8" + this._name]._y = this._y - 140; bellHolder["bar8" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall5)) { this.yspeed = 0; if (this.firingSpeed > (bossTime - 25)) { this.gotoAndStop(2); } else if (this.firingSpeed2 > (bossTime2 - 35)) { this.gotoAndStop(5); } else if (!introOnce) { this.gotoAndStop(6); } else { this.gotoAndStop(4); } this.firingSpeed2 = this.firingSpeed2 + 1; this.firingSpeed = this.firingSpeed + 1; if (this.firingSpeed > bossTime) { bellHolder.attachMovie("earthquake", "enembullet" + this._name, bellHolder.getNextHighestDepth()); this.firingSpeed = 0; bellHolder["enembullet" + this._name]._x = this._x - 30; bellHolder["enembullet" + this._name]._y = this._y; } else if (this.firingSpeed2 > (bossTime2 - 25)) { this.gotoAndStop(5); turtleCall = true; } if (this.firingSpeed2 == bossTime2) { this.firingSpeed2 = 0; } } bellHolder["enembullet" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } if (this.hitTest(wall)) { this.removeMovieClip(); bossCall = true; if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } _root.crashsound.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((10 / towerLifeOrig) * 30); towerLife = towerLife - 10; } }; if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar8" + this._name].healthno) == 0) { bellHolder["bar8" + this._name].healthno = bellHolder["bar8" + this._name].healthno - sisDamage; bellHolder["bar8" + this._name].bar_mc._x = bellHolder["bar8" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar8" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood8" + this._name]._x = this._x; bellHolder["blood8" + this._name]._y = this._y; } if ((bellHolder["bar8" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin8" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin8" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin8" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin8" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount8 = enemyCount8 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -3; bellHolder["bar8" + this._name].removeMovieClip(); this.gotoAndPlay(3); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime8 = 0; } bellTime10++; if (((bellTime10 >= bellLimit10) && (enemyCount10 < 15)) && (bossCall)) { bellTotal10++; if (enemyCount10 >= 14) { bossCall = false; } bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 441) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 1; bellHolder["bell_j" + bellTotal10].xspeed = quickSpeed; bellHolder["bell_j" + bellTotal10].yspeed = walkSpeed; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = snakeHealth; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; if (this.fallTime < this.randFall) { this._y = this._y + this.xspeed; } else { this._x = this._x - this.yspeed; } if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } if (bellHolder["bar10" + this._name].healthno > 0) { this.gotoAndStop(3); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -3; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndPlay(10); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } } stop(); stopAllSounds(); finalwave = true; setoncebar = false; _root.swampsound.start(0, 999); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var turtleCall = false; var bossCall = false; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 25; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 100; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var enemyCount13 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTime = -250; var bellLimit = 1500; var bellTotal = 0; var bellTime2 = -1000; var bellLimit2 = 90; var bellTotal2 = 0; var bellTime3 = -1000; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 0; var bellLimit4 = 10; var bellTotal4 = 0; var bellTime5 = -1000; var bellLimit5 = 750; var bellTotal5 = 0; var bellTime6 = -250; var bellLimit6 = 1500; var bellTotal6 = 0; var bellTime7 = -250; var bellLimit7 = 1500; var bellTotal7 = 0; var bellTime8 = 8980; var bellLimit8 = 9000; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 10; var bellTotal10 = 0; var bellTime13 = -1000; var bellLimit13 = 700; var bellTotal13 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (flamethrowerselected && (flamethrowerbought)) { loadWeapon("Flamethrower"); } else if (pulsegunselected && (pulsegunbought)) { loadWeapon("Pulse Gun"); } else if (sniperselected && (sniperbought)) { loadWeapon("Sniper"); } else if (gatlinggunselected && (gatlinggunbought)) { loadWeapon("Gatling Gun"); } else if (shotgunselected && (shotgunbought)) { loadWeapon("Shotgun"); } else if (machinegunselected && (machinegunbought)) { loadWeapon("Machine Gun"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; };
Frame 33
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { SpitFire(); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function createBullet() { var _local3 = 0; while (_local3 < playerWeapon.bulletNumber) { var _local2 = _root.attachMovie("bullet", "b" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); if (playerWeapon.flamethroweron) { _local2.gotoAndStop(2); } if (playerWeapon.pulsegunon) { _local2._x = _xmouse; _local2._y = _ymouse; _local2.cacheAsBitmap = true; } else { _local2._x = player_mc._x + (playerWeapon.barrelLength * Math.cos(player_mc._rotation * radians)); _local2._y = player_mc._y + (playerWeapon.barrelLength * Math.sin(player_mc._rotation * radians)); } var _local5 = random(playerWeapon.bulletOffset) - (playerWeapon.bulletOffset / 2); var _local4 = (player_mc._rotation + _local5) * radians; _local2.xSpeed = Math.cos(_local4) * playerWeapon.bulletSpeed; _local2.ySpeed = Math.sin(_local4) * playerWeapon.bulletSpeed; if (playerWeapon.pulsegunon) { _local2.lifeTimer = setInterval(destroyBullet, playerWeapon.bulletMaxAge, _local2); } bulletArray.push(_local2); _local3++; } startReloading(); } function startReloading() { playerWeapon.reloadComplete = false; playerWeapon.reloadTimer = setInterval(gunReloaded, playerWeapon.reloadSpeed); screenTimer = setInterval(this, "clearScreen", clearSpeed); } function gunReloaded() { clearInterval(playerWeapon.reloadTimer); playerWeapon.reloadComplete = true; } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; checkWallHit4(_local1); checkStageHit2(_local1); checkStageHit(_local1); _local2++; } } function destroyBullet(_bullet) { var _local1 = 0; while (_local1 < bulletArray.length) { var _local2 = bulletArray[_local1]; if (_local2 == _bullet) { bulletArray.splice(_local1, 1); if (playerWeapon.pulsegunon) { clearInterval(_local2.lifeTimer); } removeMovieClip(_local2); } _local1++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit4(_bullet) { m = 0; while (m < 99) { if (bellHolder["bell_d" + m].hitTest(_bullet)) { _root.fleshsound.start(0, 1); if ((!bellHolder["bar4bell_d" + m].healthno) == 0) { bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yorigspeed; bellHolder.attachMovie("blood_mc", "blood4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["blood4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["blood4bell_d" + m]._y = bellHolder["bell_d" + m]._y; bellHolder["bell_d" + m].yspeed = bellHolder["bell_d" + m].yspeed * -1.5; destroyBullet(_bullet); bellHolder["bar4bell_d" + m].bar_mc._x = bellHolder["bar4bell_d" + m].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar4bell_d" + m].healthorigno) * 30); bellHolder["bar4bell_d" + m].healthno = bellHolder["bar4bell_d" + m].healthno - playerWeapon.bulletDamage; bellHolder.attachMovie("coin3", "coin4bell_d" + m, bellHolder.getNextHighestDepth()); bellHolder["coin4bell_d" + m]._x = bellHolder["bell_d" + m]._x; bellHolder["coin4bell_d" + m]._y = bellHolder["bell_d" + m]._y + 20; bellHolder["coin4bell_d" + m].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; } if ((bellHolder["bar4bell_d" + m].healthno <= 0) && (!bellHolder["bell_d" + m].notdead)) { bellHolder["bell_d" + m].notdead = true; } } m++; } } function makeLvl() { bellTime4++; if (bellTime4 >= bellLimit4) { bellTotal4++; bellLimit4 = bellLimit4 - 0.5; bellHolder.attachMovie("enemy_mc4b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount4 = enemyCount4 + 1; bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed; bellHolder["bell_d" + bellTotal4].damage = 5; bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed; bellHolder["bell_d" + bellTotal4]._x = bellTop; bellHolder["bell_d" + bellTotal4].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_d" + bellTotal4].baron) { bellHolder.attachMovie("healthbar", "bar4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_d" + bellTotal4].baron = true; bellHolder["bar4" + this._name].healthno = turtleHealth2; bellHolder["bar4" + this._name].healthorigno = bellHolder["bar4" + this._name].healthno; } bellHolder["bar4" + this._name]._x = this._x + 6; bellHolder["bar4" + this._name]._y = this._y - 25; bellHolder["bar4" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } this.yspeed = this.yspeed - (quickSpeed * 1.2); if (bellHolder["bar4" + this._name].healthno > 0) { this.gotoAndStop(17); } crashsound.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; } if (this.hitTest(wall3)) { bellHolder["bar4" + this._name].removeMovieClip(); totalKillsCount = totalKillsCount + 1; this.removeMovieClip(); } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); this.yspeed = this.yspeed * -1.5; if ((!bellHolder["bar4" + this._name].healthno) == 0) { bellHolder.attachMovie("coin3", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = this._x; bellHolder["coin4" + this._name]._y = this._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + mediumDrop; score = score + mediumDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; bellHolder["bar4" + this._name].healthno = bellHolder["bar4" + this._name].healthno - sisDamage; bellHolder["bar4" + this._name].bar_mc._x = bellHolder["bar4" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar4" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood4" + this._name]._x = this._x; bellHolder["blood4" + this._name]._y = this._y; } if ((bellHolder["bar4" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin4" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin4" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin4" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin4" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount4 = enemyCount4 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar4" + this._name].removeMovieClip(); this.gotoAndPlay(2); } } if (this._x <= 0) { bellHolder["bar4" + this._name].removeMovieClip(); this.removeMovieClip(); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime4 = 0; } } function rotatePlayer() { if (_xmouse >= (player_mc._x + 50)) { player_mc._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2; } } function shakeScreen() { player_mc._x = player_mc._x + shakeQuan; bellHolder._x = bellHolder._x + shakeQuan; effectHolder_mc._x = effectHolder_mc._x + shakeQuan; player_mc._y = player_mc._y + (shakeQuan * 2); bellHolder._y = bellHolder._y + (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y + (shakeQuan * 2); } stop(); if (restart) { continueGame(); } crates = 3; towerLife = 1; towerLifeOrig = 1; var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = "Turtle Bounce"; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 999; var totalEnemiesGoalRatio = 999; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTop = 700; var bellTime = 189; var bellLimit = 190; var bellTotal = 0; var bellTime2 = 40; var bellLimit2 = 50; var bellTotal2 = 0; var bellTime3 = 150; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 0; var bellLimit4 = 35; var bellTotal4 = 0; var bellTime5 = 120; var bellLimit5 = 170; var bellTotal5 = 0; var bellTime6 = 50; var bellLimit6 = 60; var bellTotal6 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (machinegunbought) { loadWeapon("Machine Gun"); } else if (shotgunbought) { loadWeapon("Shotgun"); } else if (gatlinggunbought) { loadWeapon("Gatling Gun"); } else if (sniperbought) { loadWeapon("Sniper"); } else if (pulsegunbought) { loadWeapon("Pulse Gun"); } else if (playerWeapon.flamethroweron && (flamethrowerbought)) { loadWeapon("Flame Thrower"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; }; function showNotYet() { notYet_mc.gotoAndStop(2); } function continueGame() { _root.gameOver = false; life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; _root.gamewononce = false; _root.nextFrame(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; _root.clip_mc.bar_mc._x = -15; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.upgradesound.stop("upgradesound"); _root.bgsound.start(0, 999); wall.gotoAndStop(1); crate1.gotoAndStop(1); crate2.gotoAndStop(1); crate3.gotoAndStop(1); ally_crate1.gotoAndStop(1); ally_crate2.gotoAndStop(1); ally_crate3.gotoAndStop(1); crate1._y = crate1_origy; crate2._y = crate2_origy; crate3._y = crate3_origy; ally_crate1._y = ally_crate1_origy; ally_crate2._y = ally_crate2_origy; ally_crate3._y = ally_crate3_origy; player_mc._y = player_mc_origy; player_anim._y = player_anim_origy; head_mc._y = head_mc_origy; crates = 3; restart = false; score = score * 0.75; score = Math.round(score); towerLife = towerLifeOrig; gameOver_mc.removeMovieClip(); i = 0; while (i < 999) { _root.bellHolder["bell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 999) { _root.bellHolder["bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 999) { _root.bellHolder["bell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 999) { _root.bellHolder["bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 999) { _root.bellHolder["bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 999) { _root.bellHolder["bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 999) { _root.bellHolder["bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 999) { _root.bellHolder["bell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 999) { _root.bellHolder["bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].removeMovieClip(); p++; } } var pressed23 = false; var prev1 = "UNPAUSED"; _quality = "MEDIUM"; prev = "HIGH"; _root.shooter._visible = true; var bgsound = new Sound(); bgsound.attachSound("bgsound"); _root.bgsound.start(0, 99); var upgradesound = new Sound(); upgradesound.attachSound("upgradesound"); var forestsound = new Sound(); forestsound.attachSound("forestsound"); forestsound.start(0, 999); var zombiesound = new Sound(); zombiesound.attachSound("zombiesound"); _root.zombiesound.start(0, 1); soundPlay = new Sound(); max = 3; min = 1; rndClip = Math.round(Math.random() * (max - min)) + min; soundPlay.attachSound(rndClip); var gpause = false; _root.onEnterFrame = function () { weaponbar.weaponbar.macRem.text = "Enemies left: " + ((totalEnemiesGoal - totalKillsCount) + 1); if (_root.momAllyBought && (!momPlaced)) { momIcon.gotoAndStop(1); } else { momIcon.gotoAndStop(2); } if (_root.dadAllyBought && (!dadPlaced)) { dadIcon.gotoAndStop(1); } else { dadIcon.gotoAndStop(2); } if (_root.sisAllyBought && (!sisPlaced)) { sisIcon.gotoAndStop(1); } else { sisIcon.gotoAndStop(2); } if ((momCrate1on || (momCrate2on)) || (momCrate3on)) { momAllyOn = true; } else { momAllyOn = false; } if ((dadCrate1on || (dadCrate2on)) || (dadCrate3on)) { dadAllyOn = true; } else { dadAllyOn = false; } if ((sisCrate1on || (sisCrate2on)) || (sisCrate3on)) { sisAllyOn = true; } else { sisAllyOn = false; } weaponbar.weaponbar.scoreTxt.text = "Score: " + _root.score; if (Key.isDown(80)) { if (pressed23 == false) { if (prev1 == "PAUSED") { _root.gpause = false; prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if (prev1 == "UNPAUSED") { _root.gpause = true; _root.pause_mc.gotoAndStop(2); prev1 = "PAUSED"; } } pressed23 = true; } else { pressed23 = false; } if (!gpause) { ally_crate1.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate1._x + 75; sisbullet._y = ally_crate1._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate2.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate2._x + 75; sisbullet._y = ally_crate2._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate3.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate3._x + 75; sisbullet._y = ally_crate3._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; if ((dadAllyOn && (towerLife < towerLifeOrig)) && (!winonce)) { dadTimer++; if (dadTimer > 77) { towerLife = towerLife + 1; life_mc.bar_mc._x = life_mc.bar_mc._x - ((1 / towerLifeOrig) * 30); dadTimer = 0; } } macLife.text = (towerLife + " / ") + towerLifeOrig; if ((totalEnemies <= totalEnemiesGoal) && (!gameOver)) { makeLvl(); } if (totalKillsCount >= (totalEnemiesGoal + 1)) { if (!winonce) { _root.gpause = false; _root.prev1 = "UNPAUSED"; mouseClicked = false; _root.attachMovie("wavecomplete", "wavecomplete", bellHolder.getNextHighestDepth()); wavecomplete._x = -640; wavecomplete._y = 0; winonce = true; _root.notYet_mc.gotoAndStop(1); } } if (mouseClicked && (!playerWeapon.pulsegunon)) { fireWeapon(); } if (playerWeapon.gatlingunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.machinegunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; } rotatePlayer(); updateBullets(); macStats1.text = "$" + _root.playerWeapon.stats1Cost; macStats2.text = "$" + _root.playerWeapon.stats2Cost; if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macStats3.text = "Max"; } else { macStats3.text = "$" + _root.playerWeapon.stats3Cost; } macName.text = _root.playerWeapon.itemName; macHand.text = "Handling: " + playerWeapon.bulletOffset; macDam.text = "Damage: " + playerWeapon.bulletDamage; macRel.text = "Reload: " + playerWeapon.reloadSpeed; if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macAmmo.text = "\u221E/\u221E"; } else { macAmmo.text = (playerWeapon.bulletAmmo + "/") + playerWeapon.bulletClip; } CoinTxt.text = "$" + coins; effectHolder_mc.laser_mc.clear(); if (playerWeapon.bulletAmmo <= 0) { bulletAmmoCounter++; clip_mc.bar_mc._x = clip_mc.bar_mc._x + 0.3; } if (bulletAmmoCounter >= 100) { playerWeapon.bulletAmmo = playerWeapon.bulletClip; var _local3 = new Array(); clip_mc.bar_mc._x = -15; reloadingNow = false; changeWeapon = false; _root.reloadsound.start(0, 1); bulletAmmoCounter = 0; } if (towerLife < 0) { towerLife = 0; } if (towerLife == 0) { if (crates == 3) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate1.gotoAndStop(3); if (momCrate1on) { momCrate1on = false; momAllyBought = false; } if (dadCrate1on) { dadCrate1on = false; dadAllyBought = false; } if (sisCrate1on) { sisCrate1on = false; sisAllyBought = false; } ally_crate1.gotoAndStop(1); crate2.gotoAndStop(2); crate2.bounce_mc.gotoAndPlay(2); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 2; _root.crashsound.start(0, 1); } else if (crates == 2) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate2.gotoAndStop(3); if (momCrate2on) { momCrate2on = false; momAllyBought = false; } if (dadCrate2on) { dadCrate2on = false; dadAllyBought = false; } if (sisCrate2on) { sisCrate2on = false; sisAllyBought = false; } ally_crate2.gotoAndStop(1); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 1; _root.crashsound.start(0, 1); } else if (crates == 1) { crate3.gotoAndStop(3); ally_crate3.gotoAndStop(1); player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; _root.restart = true; _root.attachMovie("gameOver_mc", "gameOver_mc", bellHolder.getNextHighestDepth()); gameOver_mc._x = -7; gameOver_mc._y = 0; Mouse.show(); wall.gotoAndStop(2); crates = 0; _root.crashsound.start(0, 1); if (momCrate3on) { momCrate3on = false; momAllyBought = false; } if (dadCrate3on) { dadCrate3on = false; dadAllyBought = false; } if (sisCrate3on) { sisCrate3on = false; sisAllyBought = false; } } } if (Key.isDown(49)) { loadWeapon("Pistol"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } } if (Key.isDown(51)) { if (shotgunbought) { loadWeapon("Shotgun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(50)) { if (machinegunbought) { loadWeapon("Machine Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(52)) { if (gatlinggunbought) { loadWeapon("Gatling Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(53)) { if (sniperbought) { loadWeapon("Sniper"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(54)) { if (pulsegunbought) { loadWeapon("Pulse Gun"); weaponFired = false; playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } else { showNotYet(); } } if (Key.isDown(55)) { if (flamethrowerbought) { loadWeapon("Flamethrower"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } } }; upg_btn1.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats1Cost) { _root.coins = _root.coins - _root.playerWeapon.stats1Cost; _root.playerWeapon.stats1Cost = _root.playerWeapon.stats1Cost * 2; _root.playerWeapon.bulletDamage = _root.playerWeapon.bulletDamage + 0.5; macInfo.text = ""; } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn2.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats2Cost) { _root.coins = _root.coins - _root.playerWeapon.stats2Cost; _root.playerWeapon.stats2Cost = _root.playerWeapon.stats2Cost * 2; if (_root.playerWeapon.pulsegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 200; } else if (_root.playerWeapon.machinegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.gatlingunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 50; macInfo.text = ""; } } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn3.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats3Cost) { macInfo.text = ""; _root.coins = _root.coins - _root.playerWeapon.stats3Cost; _root.playerWeapon.stats3Cost = _root.playerWeapon.stats3Cost * 2; if (_root.playerWeapon.shotgunon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 9; } else if (_root.playerWeapon.sniperon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 6; } else { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 10; } } else if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macInfo.text = "Maxed out!"; _root.errorsound.start(0, 1); } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; var fleshsound = new Sound(); fleshsound.attachSound("fleshsound"); var hoversound = new Sound(); hoversound.attachSound("hoversound"); var errorsound = new Sound(); errorsound.attachSound("errorsound"); var registersound = new Sound(); registersound.attachSound("registersound"); var gunsound = new Sound(); gunsound.attachSound("gunsound"); var machgunsound = new Sound(); machgunsound.attachSound("machgunsound"); var crashsound = new Sound(); crashsound.attachSound("crashsound"); var elecsound = new Sound(); elecsound.attachSound("elecsound"); var snipersound = new Sound(); snipersound.attachSound("snipersound"); var reloadsound = new Sound(); reloadsound.attachSound("reloadsound"); var gatlingsound = new Sound(); gatlingsound.attachSound("gatlingsound"); var coinsound = new Sound(); coinsound.attachSound("coinsound"); function addSparkles(_targetX, _targetY, _sparkNumber, _distance, _sparkSize) { var _local6 = 0; while (_local6 < _sparkNumber) { var _local4 = _root.attachMovie("spark", "spark_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var _local3 = _root.attachMovie("spark2", "spark2_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _local4._x = (_targetX + random(_distance)) - (_distance / 2); _local4._y = (_targetY + random(_distance)) - (_distance / 2); _local3._x = (_targetX + random(_distance)) - (_distance / 2); _local3._y = (_targetY + random(_distance)) - (_distance / 2); var _local5 = random(_sparkSize) + (_sparkSize / 4); _local4._xscale = _local5; _local4._yscale = _local5; _local5 = random(_sparkSize) + (_sparkSize / 4); _local3._xscale = _local5; _local3._yscale = _local5; _local3._rotation = random(359); _local4._alpha = lightningAlpha; _local3._alpha = lightningAlpha; _local6++; } } var lightningOffset = 15; var lightningFrequency = 15; var lightningWidth = 1; var lightningColor = "0x5C98EF"; var lightningAlpha = 75; var lightningBranches = 3; var sparkNumber = 7; var sparkDistance = 23; var sparkSize = 100; var reloadSpeed = 250; var clearSpeed = 100; var glow = (new flash.filters.GlowFilter()); glow.color = 16711680 /* 0xFF0000 */; glow.alpha = 1; glow.blurX = 7; glow.blurY = 7; glow.quality = 2; effectHolder_mc.laser_mc.filters = new Array(glow); var glow_color = lightningColor; var glow_alpha = 0.6; var glow_blurX = 5; var glow_blurY = 5; var glow_strength = 2; var glow_quality = 3; var effectHolder = effectHolder_mc; var filter_glow = (new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality)); effectHolder.filters = [filter_glow];
Instance of Symbol 1733 MovieClip "momIcon" in Frame 33
onClipEvent (load) { this.tabEnabled = false; xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc)) { _root.ally_crate1.gotoAndStop(2); _root.momCrate1on = true; _root.momPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate2.crate_mc)) { _root.ally_crate2.gotoAndStop(2); _root.momCrate2on = true; _root.momPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate3.crate_mc)) { _root.ally_crate3.gotoAndStop(2); _root.momCrate3on = true; _root.momPlaced = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1735 MovieClip "dadIcon" in Frame 33
onClipEvent (load) { this.tabEnabled = false; xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc)) { _root.ally_crate1.gotoAndStop(3); _root.dadCrate1on = true; _root.dadPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate2.crate_mc)) { _root.ally_crate2.gotoAndStop(3); _root.dadCrate2on = true; _root.dadPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate13.crate_mc)) { _root.ally_crate3.gotoAndStop(3); _root.dadCrate3on = true; _root.dadPlaced = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1737 MovieClip "sisIcon" in Frame 33
onClipEvent (load) { this.tabEnabled = false; xMouse1 = this._x; yMouse1 = this._y; } onClipEvent (enterFrame) { if (!dragged) { if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } on (press) { dragged = true; if (!root.winonce) { this.startDrag(); } } on (release) { this.stopDrag(); dragged = false; if (this.hitTest(_root.crate1.crate_mc)) { _root.ally_crate1.gotoAndStop(4); _root.sisCrate1on = true; _root.sisPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate2.crate_mc)) { _root.ally_crate2.gotoAndStop(4); _root.sisCrate2on = true; _root.sisPlaced = true; this.gotoAndStop(2); } if (this.hitTest(_root.crate3.crate_mc)) { _root.ally_crate3.gotoAndStop(4); _root.sisCrate3on = true; _root.sisPlaced = true; this.gotoAndStop(2); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1465 MovieClip "upg_btn1" in Frame 33
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn2" in Frame 33
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn3" in Frame 33
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1751 MovieClip in Frame 33
on (rollOver) { Mouse.show(); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; } on (release) { if ((!restart) || (!winonce)) { if (_root.prev1 == "PAUSED") { _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if ((_root.prev1 = "UNPAUSED")) { _root.gpause = true; _root.pause_mc.gotoAndStop(2); _root.prev1 = "PAUSED"; } } }
Instance of Symbol 1754 MovieClip "Btn_Mute" in Frame 33
onClipEvent (load) { this.tabEnabled = false; } on (release) { if (_root.bgsound.getVolume() != 0) { this.gotoAndStop(2); _root.oldVolume = _root.bgsound.getVolume(); _root.slider.slidebar.onEnterFrame = null; _root.bgsound.setVolume(0); } else { this.gotoAndStop(1); _root.slider.slidebar.onEnterFrame = _root.adjustVolume; _root.bgsound.setVolume(_root.oldVolume); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Frame 34
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { SpitFire(); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function createBullet() { var _local3 = 0; while (_local3 < playerWeapon.bulletNumber) { var _local2 = _root.attachMovie("bullet", "b" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); if (playerWeapon.flamethroweron) { _local2.gotoAndStop(2); } if (playerWeapon.pulsegunon) { _local2._x = _xmouse; _local2._y = _ymouse; _local2.cacheAsBitmap = true; } else { _local2._x = player_mc._x + (playerWeapon.barrelLength * Math.cos(player_mc._rotation * radians)); _local2._y = player_mc._y + (playerWeapon.barrelLength * Math.sin(player_mc._rotation * radians)); } var _local5 = random(playerWeapon.bulletOffset) - (playerWeapon.bulletOffset / 2); var _local4 = (player_mc._rotation + _local5) * radians; _local2.xSpeed = Math.cos(_local4) * playerWeapon.bulletSpeed; _local2.ySpeed = Math.sin(_local4) * playerWeapon.bulletSpeed; if (playerWeapon.pulsegunon) { _local2.lifeTimer = setInterval(destroyBullet, playerWeapon.bulletMaxAge, _local2); } bulletArray.push(_local2); _local3++; } startReloading(); } function startReloading() { playerWeapon.reloadComplete = false; playerWeapon.reloadTimer = setInterval(gunReloaded, playerWeapon.reloadSpeed); screenTimer = setInterval(this, "clearScreen", clearSpeed); } function gunReloaded() { clearInterval(playerWeapon.reloadTimer); playerWeapon.reloadComplete = true; } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; checkStageHit(_local1); _local2++; } } function destroyBullet(_bullet) { var _local1 = 0; while (_local1 < bulletArray.length) { var _local2 = bulletArray[_local1]; if (_local2 == _bullet) { bulletArray.splice(_local1, 1); if (playerWeapon.pulsegunon) { clearInterval(_local2.lifeTimer); } removeMovieClip(_local2); } _local1++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit7(_bullet) { p = 0; while (p < totalEnemiesGoalRatio) { if (bellHolder["bell_g" + p].hitTest(_bullet)) { _root.fleshsound.start(0, 1); if ((!bellHolder["bar7bell_g" + p].healthno) == 0) { bellHolder["bell_g" + p].yspeed = bellHolder["bell_g" + p].yorigspeed; bellHolder.attachMovie("blood_mc", "blood2bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["blood2bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["blood2bell_g" + p]._y = bellHolder["bell_g" + p]._y - 30; bellHolder["bell_g" + p]._x = bellHolder["bell_g" + p]._x + 3; destroyBullet(_bullet); bellHolder["bar7bell_g" + p].bar_mc._x = bellHolder["bar7bell_g" + p].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar7bell_g" + p].healthorigno) * 30); bellHolder["bar7bell_g" + p].healthno = bellHolder["bar7bell_g" + p].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar7bell_g" + p].healthno <= 0) && (!bellHolder["bell_g" + p].notdead)) { bellHolder["bell_g" + p].notdead = true; bellHolder.attachMovie("coin", "coin7bell_g" + p, bellHolder.getNextHighestDepth()); bellHolder["coin7bell_g" + p]._x = bellHolder["bell_g" + p]._x; bellHolder["coin7bell_g" + p]._y = bellHolder["bell_g" + p]._y + 20; bellHolder["coin7bell_g" + p].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount2 = enemyCount2 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_g" + p].yspeed = -1; bellHolder["bar7bell_g" + p].removeMovieClip(); bellHolder["bell_g" + p].gotoAndPlay(2); } } p++; } } function checkWallHit6(_bullet) { o = 0; while (o < totalEnemiesGoalRatio) { if (bellHolder["bell_f" + o].hitTest(_bullet)) { _root.fleshsound.start(0, 1); if ((!bellHolder["bar6bell_f" + o].healthno) == 0) { bellHolder["bell_f" + o].yspeed = bellHolder["bell_f" + o].yorigspeed; bellHolder.attachMovie("blood_mc", "blood6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["blood6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["blood6bell_f" + o]._y = bellHolder["bell_f" + o]._y; bellHolder["bell_f" + o]._x = bellHolder["bell_f" + o]._x + 3; destroyBullet(_bullet); bellHolder["bar6bell_f" + o].bar_mc._x = bellHolder["bar6bell_f" + o].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar6bell_f" + o].healthorigno) * 30); bellHolder["bar6bell_f" + o].healthno = bellHolder["bar6bell_f" + o].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar6bell_f" + o].healthno <= 0) && (!bellHolder["bell_f" + o].notdead)) { bellHolder["bell_f" + o].notdead = true; bellHolder.attachMovie("coin", "coin6bell_f" + o, bellHolder.getNextHighestDepth()); bellHolder["coin6bell_f" + o]._x = bellHolder["bell_f" + o]._x; bellHolder["coin6bell_f" + o]._y = bellHolder["bell_f" + o]._y + 20; bellHolder["coin6bell_f" + o].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 50; bellHolder["bell_f" + o].yspeed = -1; bellHolder["bar6bell_f" + o].removeMovieClip(); bellHolder["bell_f" + o].gotoAndPlay(2); } } o++; } } function makeLvl() { bellTime7++; if ((bellTime7 >= bellLimit7) && (enemyCount7 < 10)) { bellTotal7++; bellHolder.attachMovie("enemy_mc6b", "bell_g" + bellTotal7, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount7 = enemyCount7 + 1; bellHolder["bell_g" + bellTotal7].yspeed = fastSpeed; bellHolder["bell_g" + bellTotal7].damage = 1; bellHolder["bell_g" + bellTotal7].attackTime = 0; bellHolder["bell_g" + bellTotal7].yorigspeed = bellHolder["bell_g" + bellTotal7].yspeed; bellHolder["bell_g" + bellTotal7]._x = bellTop; bellHolder["bell_g" + bellTotal7].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_g" + bellTotal7].baron) { bellHolder.attachMovie("healthbar", "bar7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_g" + bellTotal7].baron = true; bellHolder["bar7" + this._name].healthno = rabbitHealth2; bellHolder["bar7" + this._name].healthorigno = bellHolder["bar7" + this._name].healthno; } bellHolder["bar7" + this._name]._x = this._x; bellHolder["bar7" + this._name]._y = this._y - 20; bellHolder["bar7" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar7" + this._name].healthno) == 0) { bellHolder["bar7" + this._name].healthno = bellHolder["bar7" + this._name].healthno - sisDamage; bellHolder["bar7" + this._name].bar_mc._x = bellHolder["bar7" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar7" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood7" + this._name]._x = this._x; bellHolder["blood7" + this._name]._y = this._y; } if ((bellHolder["bar7" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin7" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin7" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin7" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin7" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount7 = enemyCount7 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar7" + this._name].removeMovieClip(); this.gotoAndPlay(2); } } if (this._x <= 0) { bellHolder["bar7" + this._name].removeMovieClip(); this.removeMovieClip(); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime7 = 0; } bellTime6++; if ((bellTime6 >= bellLimit6) && (enemyCount6 < 6)) { bellTotal6++; bellHolder.attachMovie("enemy_mc6", "bell_f" + bellTotal6, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6]._y = Math.floor(Math.random() * 151) + 200; totalEnemies = totalEnemies + 1; enemyCount6 = enemyCount6 + 1; bellHolder["bell_f" + bellTotal6].yspeed = normalSpeed; bellHolder["bell_f" + bellTotal6].damage = 1; bellHolder["bell_f" + bellTotal6].attackTime = 0; bellHolder["bell_f" + bellTotal6].yorigspeed = bellHolder["bell_f" + bellTotal6].yspeed; bellHolder["bell_f" + bellTotal6]._x = bellTop; bellHolder["bell_f" + bellTotal6].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_f" + bellTotal6].baron) { bellHolder.attachMovie("healthbar", "bar6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_f" + bellTotal6].baron = true; bellHolder["bar6" + this._name].healthno = rabbitHealth; bellHolder["bar6" + this._name].healthorigno = bellHolder["bar6" + this._name].healthno; } bellHolder["bar6" + this._name]._x = this._x; bellHolder["bar6" + this._name]._y = this._y - 20; bellHolder["bar6" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._x = this._x - this.yspeed; if (this.hitTest(wall)) { this.attackTime++; this._x = this._x + (this.yspeed * 8); if (this.attackTime > 10) { if (crates == 3) { crate1.crate_mc.gotoAndPlay(2); } else if (crates == 2) { crate2.crate_mc.gotoAndPlay(2); } else if (crates == 1) { crate3.crate_mc.gotoAndPlay(2); } soundPlay.start(0, 1); life_mc.bar_mc._x = life_mc.bar_mc._x + ((this.damage / towerLifeOrig) * 30); towerLife = towerLife - this.damage; this.attackTime = 0; } } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar6" + this._name].healthno) == 0) { bellHolder["bar6" + this._name].healthno = bellHolder["bar6" + this._name].healthno - sisDamage; bellHolder["bar6" + this._name].bar_mc._x = bellHolder["bar6" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar6" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood6" + this._name]._x = this._x; bellHolder["blood6" + this._name]._y = this._y; } if ((bellHolder["bar6" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin6" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin6" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin6" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin6" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount6 = enemyCount6 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar6" + this._name].removeMovieClip(); this.gotoAndPlay(2); } } if (this._x <= 0) { bellHolder["bar6" + this._name].removeMovieClip(); this.removeMovieClip(); } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime6 = 0; } } function rotatePlayer() { if (_xmouse >= (player_mc._x + 50)) { player_mc._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2; } } function shakeScreen() { player_mc._x = player_mc._x + shakeQuan; bellHolder._x = bellHolder._x + shakeQuan; effectHolder_mc._x = effectHolder_mc._x + shakeQuan; player_mc._y = player_mc._y + (shakeQuan * 2); bellHolder._y = bellHolder._y + (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y + (shakeQuan * 2); } stop(); if (restart) { continueGame(); } crates = 3; towerLife = 10; towerLifeOrig = 10; flamethrowerbought = true; loadWeapon("Flame Thrower"); var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 12; var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 70; var totalEnemiesGoalRatio = totalEnemiesGoal; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTop = 700; var bellTime = 389; var bellLimit = 390; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 750; var bellLimit3 = 760; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 900; var bellLimit5 = 950; var bellTotal5 = 0; var bellTime6 = 60; var bellLimit6 = 80; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 70; var bellTotal7 = 0; var bellTime8 = 199; var bellLimit8 = 200; var bellTotal8 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (playerWeapon.flamethroweron && (flamethrowerbought)) { loadWeapon("Flame Thrower"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; }; function showNotYet() { notYet_mc.gotoAndStop(2); } function continueGame() { _root.gameOver = false; life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; _root.gamewononce = false; _root.nextFrame(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; _root.clip_mc.bar_mc._x = -15; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.upgradesound.stop("upgradesound"); _root.bgsound.start(0, 999); wall.gotoAndStop(1); crate1.gotoAndStop(1); crate2.gotoAndStop(1); crate3.gotoAndStop(1); ally_crate1.gotoAndStop(1); ally_crate2.gotoAndStop(1); ally_crate3.gotoAndStop(1); crate1._y = crate1_origy; crate2._y = crate2_origy; crate3._y = crate3_origy; ally_crate1._y = ally_crate1_origy; ally_crate2._y = ally_crate2_origy; ally_crate3._y = ally_crate3_origy; player_mc._y = player_mc_origy; player_anim._y = player_anim_origy; head_mc._y = head_mc_origy; crates = 3; restart = false; score = score * 0.75; score = Math.round(score); towerLife = towerLifeOrig; gameOver_mc.removeMovieClip(); i = 0; while (i < 999) { _root.bellHolder["bell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 999) { _root.bellHolder["bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 999) { _root.bellHolder["bell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 999) { _root.bellHolder["bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 999) { _root.bellHolder["bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 999) { _root.bellHolder["bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 999) { _root.bellHolder["bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 999) { _root.bellHolder["bell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 999) { _root.bellHolder["bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].removeMovieClip(); p++; } } var pressed23 = false; var prev1 = "UNPAUSED"; _quality = "MEDIUM"; prev = "HIGH"; _root.shooter._visible = true; var bgsound = new Sound(); bgsound.attachSound("bgsound"); _root.bgsound.start(0, 99); var upgradesound = new Sound(); upgradesound.attachSound("upgradesound"); var forestsound = new Sound(); forestsound.attachSound("forestsound"); forestsound.start(0, 999); var zombiesound = new Sound(); zombiesound.attachSound("zombiesound"); _root.zombiesound.start(0, 1); soundPlay = new Sound(); max = 3; min = 1; rndClip = Math.round(Math.random() * (max - min)) + min; soundPlay.attachSound(rndClip); var gpause = false; _root.onEnterFrame = function () { weaponbar.weaponbar.macRem.text = "Enemies left: " + ((totalEnemiesGoal - totalKillsCount) + 1); if (_root.momAllyBought && (!momPlaced)) { momIcon.gotoAndStop(1); } else { momIcon.gotoAndStop(2); } if (_root.dadAllyBought && (!dadPlaced)) { dadIcon.gotoAndStop(1); } else { dadIcon.gotoAndStop(2); } if (_root.sisAllyBought && (!sisPlaced)) { sisIcon.gotoAndStop(1); } else { sisIcon.gotoAndStop(2); } if ((momCrate1on || (momCrate2on)) || (momCrate3on)) { momAllyOn = true; } else { momAllyOn = false; } if ((dadCrate1on || (dadCrate2on)) || (dadCrate3on)) { dadAllyOn = true; } else { dadAllyOn = false; } if ((sisCrate1on || (sisCrate2on)) || (sisCrate3on)) { sisAllyOn = true; } else { sisAllyOn = false; } weaponbar.weaponbar.scoreTxt.text = "Score: " + _root.score; if (Key.isDown(80)) { if (pressed23 == false) { if (prev1 == "PAUSED") { _root.gpause = false; prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if (prev1 == "UNPAUSED") { _root.gpause = true; _root.pause_mc.gotoAndStop(2); prev1 = "PAUSED"; } } pressed23 = true; } else { pressed23 = false; } if (!gpause) { ally_crate1.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate1._x + 75; sisbullet._y = ally_crate1._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate2.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate2._x + 75; sisbullet._y = ally_crate2._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate3.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate3._x + 75; sisbullet._y = ally_crate3._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; if ((dadAllyOn && (towerLife < towerLifeOrig)) && (!winonce)) { dadTimer++; if (dadTimer > 77) { towerLife = towerLife + 1; life_mc.bar_mc._x = life_mc.bar_mc._x - ((1 / towerLifeOrig) * 30); dadTimer = 0; } } macLife.text = (towerLife + " / ") + towerLifeOrig; if ((totalEnemies <= totalEnemiesGoal) && (!gameOver)) { makeLvl(); } if (totalKillsCount >= (totalEnemiesGoal + 1)) { if (!winonce) { _root.gpause = false; _root.prev1 = "UNPAUSED"; mouseClicked = false; _root.attachMovie("wavecomplete", "wavecomplete", bellHolder.getNextHighestDepth()); wavecomplete._x = -640; wavecomplete._y = 0; winonce = true; _root.notYet_mc.gotoAndStop(1); } } if (mouseClicked && (!playerWeapon.pulsegunon)) { fireWeapon(); } if (playerWeapon.gatlingunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.machinegunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; } rotatePlayer(); updateBullets(); macStats1.text = "$" + _root.playerWeapon.stats1Cost; macStats2.text = "$" + _root.playerWeapon.stats2Cost; if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macStats3.text = "Max"; } else { macStats3.text = "$" + _root.playerWeapon.stats3Cost; } macName.text = _root.playerWeapon.itemName; macHand.text = "Handling: " + playerWeapon.bulletOffset; macDam.text = "Damage: " + playerWeapon.bulletDamage; macRel.text = "Reload: " + playerWeapon.reloadSpeed; if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macAmmo.text = "\u221E/\u221E"; } else { macAmmo.text = (playerWeapon.bulletAmmo + "/") + playerWeapon.bulletClip; } CoinTxt.text = "$" + coins; effectHolder_mc.laser_mc.clear(); if (playerWeapon.bulletAmmo <= 0) { bulletAmmoCounter++; clip_mc.bar_mc._x = clip_mc.bar_mc._x + 0.3; } if (bulletAmmoCounter >= 100) { playerWeapon.bulletAmmo = playerWeapon.bulletClip; var _local3 = new Array(); clip_mc.bar_mc._x = -15; reloadingNow = false; changeWeapon = false; _root.reloadsound.start(0, 1); bulletAmmoCounter = 0; } if (towerLife < 0) { towerLife = 0; } if (towerLife == 0) { if (crates == 3) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate1.gotoAndStop(3); if (momCrate1on) { momCrate1on = false; momAllyBought = false; } if (dadCrate1on) { dadCrate1on = false; dadAllyBought = false; } if (sisCrate1on) { sisCrate1on = false; sisAllyBought = false; } ally_crate1.gotoAndStop(1); crate2.gotoAndStop(2); crate2.bounce_mc.gotoAndPlay(2); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 2; _root.crashsound.start(0, 1); } else if (crates == 2) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate2.gotoAndStop(3); if (momCrate2on) { momCrate2on = false; momAllyBought = false; } if (dadCrate2on) { dadCrate2on = false; dadAllyBought = false; } if (sisCrate2on) { sisCrate2on = false; sisAllyBought = false; } ally_crate2.gotoAndStop(1); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 1; _root.crashsound.start(0, 1); } else if (crates == 1) { crate3.gotoAndStop(3); ally_crate3.gotoAndStop(1); player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; _root.restart = true; _root.attachMovie("gameOver_mc", "gameOver_mc", bellHolder.getNextHighestDepth()); gameOver_mc._x = -7; gameOver_mc._y = 0; Mouse.show(); wall.gotoAndStop(2); crates = 0; _root.crashsound.start(0, 1); if (momCrate3on) { momCrate3on = false; momAllyBought = false; } if (dadCrate3on) { dadCrate3on = false; dadAllyBought = false; } if (sisCrate3on) { sisCrate3on = false; sisAllyBought = false; } } } if (Key.isDown(49)) { loadWeapon("Pistol"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } } if (Key.isDown(51)) { if (shotgunbought) { loadWeapon("Shotgun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(50)) { if (machinegunbought) { loadWeapon("Machine Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(52)) { if (gatlinggunbought) { loadWeapon("Gatling Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(53)) { if (sniperbought) { loadWeapon("Sniper"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(54)) { if (pulsegunbought) { loadWeapon("Pulse Gun"); weaponFired = false; playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } else { showNotYet(); } } if (Key.isDown(55)) { if (flamethrowerbought) { loadWeapon("Flamethrower"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } } }; upg_btn1.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats1Cost) { _root.coins = _root.coins - _root.playerWeapon.stats1Cost; _root.playerWeapon.stats1Cost = _root.playerWeapon.stats1Cost * 2; _root.playerWeapon.bulletDamage = _root.playerWeapon.bulletDamage + 0.5; macInfo.text = ""; } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn2.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats2Cost) { _root.coins = _root.coins - _root.playerWeapon.stats2Cost; _root.playerWeapon.stats2Cost = _root.playerWeapon.stats2Cost * 2; if (_root.playerWeapon.pulsegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 200; } else if (_root.playerWeapon.machinegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.gatlingunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 50; macInfo.text = ""; } } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn3.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats3Cost) { macInfo.text = ""; _root.coins = _root.coins - _root.playerWeapon.stats3Cost; _root.playerWeapon.stats3Cost = _root.playerWeapon.stats3Cost * 2; if (_root.playerWeapon.shotgunon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 9; } else if (_root.playerWeapon.sniperon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 6; } else { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 10; } } else if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macInfo.text = "Maxed out!"; _root.errorsound.start(0, 1); } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; var fleshsound = new Sound(); fleshsound.attachSound("fleshsound"); var hoversound = new Sound(); hoversound.attachSound("hoversound"); var errorsound = new Sound(); errorsound.attachSound("errorsound"); var registersound = new Sound(); registersound.attachSound("registersound"); var gunsound = new Sound(); gunsound.attachSound("gunsound"); var machgunsound = new Sound(); machgunsound.attachSound("machgunsound"); var crashsound = new Sound(); crashsound.attachSound("crashsound"); var elecsound = new Sound(); elecsound.attachSound("elecsound"); var snipersound = new Sound(); snipersound.attachSound("snipersound"); var reloadsound = new Sound(); reloadsound.attachSound("reloadsound"); var gatlingsound = new Sound(); gatlingsound.attachSound("gatlingsound"); var coinsound = new Sound(); coinsound.attachSound("coinsound"); function addSparkles(_targetX, _targetY, _sparkNumber, _distance, _sparkSize) { var _local6 = 0; while (_local6 < _sparkNumber) { var _local4 = _root.attachMovie("spark", "spark_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var _local3 = _root.attachMovie("spark2", "spark2_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _local4._x = (_targetX + random(_distance)) - (_distance / 2); _local4._y = (_targetY + random(_distance)) - (_distance / 2); _local3._x = (_targetX + random(_distance)) - (_distance / 2); _local3._y = (_targetY + random(_distance)) - (_distance / 2); var _local5 = random(_sparkSize) + (_sparkSize / 4); _local4._xscale = _local5; _local4._yscale = _local5; _local5 = random(_sparkSize) + (_sparkSize / 4); _local3._xscale = _local5; _local3._yscale = _local5; _local3._rotation = random(359); _local4._alpha = lightningAlpha; _local3._alpha = lightningAlpha; _local6++; } } var lightningOffset = 15; var lightningFrequency = 15; var lightningWidth = 1; var lightningColor = "0x5C98EF"; var lightningAlpha = 75; var lightningBranches = 3; var sparkNumber = 7; var sparkDistance = 23; var sparkSize = 100; var reloadSpeed = 250; var clearSpeed = 100; var glow = (new flash.filters.GlowFilter()); glow.color = 16711680 /* 0xFF0000 */; glow.alpha = 1; glow.blurX = 7; glow.blurY = 7; glow.quality = 2; effectHolder_mc.laser_mc.filters = new Array(glow); var glow_color = lightningColor; var glow_alpha = 0.6; var glow_blurX = 5; var glow_blurY = 5; var glow_strength = 2; var glow_quality = 3; var effectHolder = effectHolder_mc; var filter_glow = (new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality)); effectHolder.filters = [filter_glow];
Frame 35
if (restart) { continueGame(); }
Frame 36
function loadWeapon(_id) { gunReloaded(); var _local1 = 0; while (_local1 < weaponDatabase.length) { var _local2 = weaponDatabase[_local1].itemName; if (_local2 == _id) { playerWeapon = weaponDatabase[_local1]; return(undefined); } _local1++; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if ((playerWeapon.reloadComplete && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) { weaponFired = true; shooter.gotoAndPlay(2); if (playerWeapon.sniperon) { _root.snipersound.start(0, 1); _root.reloadsound.start(0, 1); } else if (playerWeapon.machinegunon) { _root.machgunsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.flamethroweron && (weaponFired)) { SpitFire(); } else if (playerWeapon.gatlingunon && (weaponFired)) { _root.gatlingsound.start(0, 1); shakeQuan = 1; shakeScreen(); } else if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; shakeScreen(); _root.elecsound.start(0, 1); } else { _root.gunsound.start(0, 1); } createBullet(); if (playerWeapon.shotgunon) { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 3; } else { playerWeapon.bulletAmmo = playerWeapon.bulletAmmo - 1; } if (playerWeapon.bulletAmmo <= 0) { reloadingNow = true; } if (playerWeapon.pulsegunon) { addSparkles(xEnd, yEnd, sparkNumber, sparkDistance, sparkSize); effectHolder_mc.laser_mc.lineStyle(5, 6068463, 75); effectHolder_mc.laser_mc.moveTo(xStart, yStart); effectHolder_mc.laser_mc.lineTo(xEnd, yEnd); } } } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function createBullet() { var _local3 = 0; while (_local3 < playerWeapon.bulletNumber) { var _local2 = _root.attachMovie("bullet", "b" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); if (playerWeapon.flamethroweron) { _local2.gotoAndStop(2); } if (playerWeapon.pulsegunon) { _local2._x = _xmouse; _local2._y = _ymouse; _local2.cacheAsBitmap = true; } else { _local2._x = player_mc._x + (playerWeapon.barrelLength * Math.cos(player_mc._rotation * radians)); _local2._y = player_mc._y + (playerWeapon.barrelLength * Math.sin(player_mc._rotation * radians)); } var _local5 = random(playerWeapon.bulletOffset) - (playerWeapon.bulletOffset / 2); var _local4 = (player_mc._rotation + _local5) * radians; _local2.xSpeed = Math.cos(_local4) * playerWeapon.bulletSpeed; _local2.ySpeed = Math.sin(_local4) * playerWeapon.bulletSpeed; if (playerWeapon.pulsegunon) { _local2.lifeTimer = setInterval(destroyBullet, playerWeapon.bulletMaxAge, _local2); } bulletArray.push(_local2); _local3++; } startReloading(); } function startReloading() { playerWeapon.reloadComplete = false; playerWeapon.reloadTimer = setInterval(gunReloaded, playerWeapon.reloadSpeed); screenTimer = setInterval(this, "clearScreen", clearSpeed); } function gunReloaded() { clearInterval(playerWeapon.reloadTimer); playerWeapon.reloadComplete = true; } function updateBullets() { var _local2 = 0; while (_local2 < bulletArray.length) { var _local1 = bulletArray[_local2]; _local1._x = _local1._x + _local1.xSpeed; _local1._y = _local1._y + _local1.ySpeed; checkWallHit10(_local1); checkWallHit(_local1); checkStageHit2(_local1); checkStageHit(_local1); _local2++; } } function destroyBullet(_bullet) { var _local1 = 0; while (_local1 < bulletArray.length) { var _local2 = bulletArray[_local1]; if (_local2 == _bullet) { bulletArray.splice(_local1, 1); if (playerWeapon.pulsegunon) { clearInterval(_local2.lifeTimer); } removeMovieClip(_local2); } _local1++; } } function checkStageHit(_bullet) { if (_bullet._x > 640) { destroyBullet(_bullet); } } function checkStageHit2(_bullet) { if (_bullet._y > 395) { destroyBullet(_bullet); } } function checkWallHit(_bullet) { j = 0; while (j < totalEnemiesGoalRatio) { if (bellHolder["bell_a" + j].hitTest(_bullet)) { _root.fleshsound.start(0, 1); if ((!bellHolder["barbell_a" + j].healthno) == 0) { bellHolder["bell_a" + j].yspeed = bellHolder["bell_a" + j].yorigspeed; bellHolder.attachMovie("blood_mc", "bloodbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["bloodbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["bloodbell_a" + j]._y = bellHolder["bell_a" + j]._y; bellHolder["bell_a" + j]._x = bellHolder["bell_a" + j]._x + 3; destroyBullet(_bullet); bellHolder["barbell_a" + j].bar_mc._x = bellHolder["barbell_a" + j].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["barbell_a" + j].healthorigno) * 30); bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - playerWeapon.bulletDamage; } if ((bellHolder["barbell_a" + j].healthno <= 0) && (!bellHolder["bell_a" + j].notdead)) { bellHolder["bell_a" + j].notdead = true; bellHolder.attachMovie("coin", "coinbell_a" + j, bellHolder.getNextHighestDepth()); bellHolder["coinbell_a" + j]._x = bellHolder["bell_a" + j]._x; bellHolder["coinbell_a" + j]._y = bellHolder["bell_a" + j]._y + 20; bellHolder["coinbell_a" + j].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + smallDrop; score = score + smallDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount1 = enemyCount1 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_a" + j].yspeed = -1; bellHolder["barbell_a" + j].removeMovieClip(); bellHolder["bell_a" + j].gotoAndPlay(2); } } j++; } } function checkWallHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(_bullet)) { _root.fleshsound.start(0, 1); if ((!bellHolder["bar10bell_j" + k].healthno) == 0) { bellHolder["bell_j" + k].yspeed = bellHolder["bell_j" + k].yorigspeed; bellHolder.attachMovie("blood_mc", "blood10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["blood10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["blood10bell_j" + k]._y = bellHolder["bell_j" + k]._y; bellHolder["bell_j" + k]._x = bellHolder["bell_j" + k]._x + 3; destroyBullet(_bullet); bellHolder["bar10bell_j" + k].bar_mc._x = bellHolder["bar10bell_j" + k].bar_mc._x - ((playerWeapon.bulletDamage / bellHolder["bar10bell_j" + k].healthorigno) * 30); bellHolder["bar10bell_j" + k].healthno = bellHolder["bar10bell_j" + k].healthno - playerWeapon.bulletDamage; } if ((bellHolder["bar10bell_j" + k].healthno <= 0) && (!bellHolder["bell_j" + k].notdead)) { bellHolder["bell_j" + k].notdead = true; bellHolder.attachMovie("coin3", "coin10bell_j" + k, bellHolder.getNextHighestDepth()); bellHolder["coin10bell_j" + k]._x = bellHolder["bell_j" + k]._x; bellHolder["coin10bell_j" + k]._y = bellHolder["bell_j" + k]._y + 20; bellHolder["coin10bell_j" + k].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + bigDrop; score = score + bigDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder["bell_j" + k].yspeed = -1; bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].gotoAndPlay(2); } } k++; } } function checkMiniHit10(_bullet) { k = 0; while (k < totalEnemiesGoalRatio) { if (bellHolder["bell_j" + k].hitTest(wall)) { towerLife = towerLife - 1; _root.cratesound.start(0, 1); bellHolder["bar10bell_j" + k].removeMovieClip(); bellHolder["bell_j" + k].removeMovieClip(); } k++; } } function makeLvl() { bellTime10++; if ((bellTime10 >= bellLimit10) && (enemyCount10 < 20)) { bellTotal10++; bellLimit10 = bellLimit10 - 0.5; miniSnakeSpeed = miniSnakeSpeed + 0.5; bellHolder.attachMovie("enemy_mc10", "bell_j" + bellTotal10, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10]._x = Math.floor(Math.random() * 421) + 200; totalEnemies = totalEnemies + 1; enemyCount10 = enemyCount10 + 0.3; bellHolder["bell_j" + bellTotal10].xspeed = miniSnakeSpeed - 1; bellHolder["bell_j" + bellTotal10].yspeed = quickSpeed + 3; bellHolder["bell_j" + bellTotal10].damage = 3; bellHolder["bell_j" + bellTotal10].fallTime = 0; bellHolder["bell_j" + bellTotal10].attackTime = 0; bellHolder["bell_j" + bellTotal10].randFall = Math.floor(Math.random() * 12) + 30; bellHolder["bell_j" + bellTotal10].yorigspeed = bellHolder["bell_j" + bellTotal10].yspeed; bellHolder["bell_j" + bellTotal10]._y = bellTop2; bellHolder["bell_j" + bellTotal10].onEnterFrame = function () { if (!gpause) { this.fallTime++; if (!bellHolder["bell_j" + bellTotal10].baron) { bellHolder.attachMovie("healthbar", "bar10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_j" + bellTotal10].baron = true; bellHolder["bar10" + this._name].healthno = 1; bellHolder["bar10" + this._name].healthorigno = bellHolder["bar10" + this._name].healthno; } bellHolder["bar10" + this._name]._x = this._x; bellHolder["bar10" + this._name]._y = this._y; bellHolder["bar10" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; if (this.hitTest(wall3)) { this._x = this._x - this.yspeed; this.xspeed = 0; } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar10" + this._name].healthno) == 0) { bellHolder["bar10" + this._name].healthno = bellHolder["bar10" + this._name].healthno - sisDamage; bellHolder["bar10" + this._name].bar_mc._x = bellHolder["bar10" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar10" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood10" + this._name]._x = this._x; bellHolder["blood10" + this._name]._y = this._y; } if ((bellHolder["bar10" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin10" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin10" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin10" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin10" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount10 = enemyCount10 - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar10" + this._name].removeMovieClip(); this.gotoAndPlay(10); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime10 = 0; } bellTime++; if ((bellTime >= bellLimit) && (enemyCount1 < 20)) { miniSnakeSpeed = miniSnakeSpeed + 0.5; bellTotal++; bellHolder.attachMovie("enemy_mc10", "bell_a" + bellTotal, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal]._x = Math.floor(Math.random() * 421) + 200; enemyCount1 = enemyCount1 + 1; totalEnemies = totalEnemies + 1; bellHolder["bell_a" + bellTotal].xspeed = miniSnakeSpeed - 1; bellHolder["bell_a" + bellTotal].yspeed = quickSpeed + 3; bellHolder["bell_a" + bellTotal].damage = 1; bellHolder["bell_a" + bellTotal].attackTime = 0; bellHolder["bell_a" + bellTotal].fallTime = 0; bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed; bellHolder["bell_a" + bellTotal]._y = bellTop2; bellHolder["bell_a" + bellTotal].onEnterFrame = function () { if (!gpause) { if (!bellHolder["bell_a" + bellTotal].baron) { bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth()); bellHolder["bell_a" + bellTotal].baron = true; bellHolder["bar" + this._name].healthno = 1; bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno; } bellHolder["bar" + this._name]._x = this._x; bellHolder["bar" + this._name]._y = this._y - 20; bellHolder["bar" + this._name].onEnterFrame = function () { if (_root.gameOver) { this.removeMovieClip(); } }; this._y = this._y + this.xspeed; if (this.hitTest(wall3)) { this._x = this._x - this.yspeed; this.xspeed = 0; } if (this.hitTest(wall)) { bellHolder["bar" + this._name].removeMovieClip(); towerLife = 0; this.removeMovieClip(); } if (this.hitTest(sisbullet)) { this._x = this._x + 1; sisbullet.removeMovieClip(); _root.fleshsound.start(0, 1); if ((!bellHolder["bar" + this._name].healthno) == 0) { bellHolder["bar" + this._name].healthno = bellHolder["bar" + this._name].healthno - sisDamage; bellHolder["bar" + this._name].bar_mc._x = bellHolder["bar" + this._name].bar_mc._x - ((sisDamage / bellHolder["bar" + this._name].healthorigno) * 30); bellHolder.attachMovie("blood_mc", "blood" + this._name, bellHolder.getNextHighestDepth()); bellHolder["blood" + this._name]._x = this._x; bellHolder["blood" + this._name]._y = this._y; } if ((bellHolder["bar" + this._name].healthno <= 0) && (!bellHolder[this._name].notdead)) { bellHolder[this._name].notdead = true; bellHolder.attachMovie("coin", "coin" + this._name, bellHolder.getNextHighestDepth()); bellHolder["coin" + this._name]._x = bellHolder[this._name]._x; bellHolder["coin" + this._name]._y = bellHolder[this._name]._y + 20; bellHolder["coin" + this._name].onEnterFrame = function () { if (!gpause) { if (this.hitTest(shooter)) { this.touchedonce = true; } if (this.hitTest(moneycounter)) { this.removeMovieClip(); _root.coinsound.start(0, 1); coins = coins + tinyDrop; score = score + tinyDrop; } if (this.touchedonce || (momAllyOn)) { xMouse1 = moneycounter._x; yMouse1 = moneycounter._y; if (Math.abs(xMouse - this._x) < 1) { this._x = xMouse1; this._y = yMouse1; } else { this._x = this._x - ((this._x - xMouse1) / 7); this._y = this._y - ((this._y - yMouse1) / 7); } } } }; enemyCount = enemyCount - 1; totalKillsCount = totalKillsCount + 1; score = score + 100; bellHolder[this._name].yspeed = -1; bellHolder["bar" + this._name].removeMovieClip(); this.gotoAndPlay(2); } } } if (_root.gameOver) { this.removeMovieClip(); } }; bellTime = 0; } } function rotatePlayer() { if (_xmouse >= (player_mc._x + 50)) { player_mc._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2; } } function shakeScreen() { player_mc._x = player_mc._x + shakeQuan; bellHolder._x = bellHolder._x + shakeQuan; effectHolder_mc._x = effectHolder_mc._x + shakeQuan; player_mc._y = player_mc._y + (shakeQuan * 2); bellHolder._y = bellHolder._y + (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y + (shakeQuan * 2); } stop(); if (restart) { continueGame(); } var bulletArray = new Array(); clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); var _numParticles = 0; var pressed1 = false; var pressed2 = false; var pressed3 = false; var pressed4 = false; var pressed5 = false; var pressed6 = false; var pressed7 = false; var waveNumber = 16; miniSnakeSpeed = 7; crates = 3; towerLife = 1; towerLifeOrig = 1; pulsegunbought = true; pulsegunon = true; loadWeapon("Pulse Gun"); var gpause = false; _root.attachMovie("waveNo", "wavePresent", bellHolder.getNextHighestDepth()); _root.wavePresent._x = 320; _root.wavePresent._y = 210; _root.wavePresent.txtScore.text = "Wave " + _root.waveNumber; var winonce = false; var totalEnemiesGoal = 99; var totalEnemiesGoalRatio = 99; var totalKillsCount = 0; var totalEnemies = 0; var enemyCount1 = 0; var enemyCount2 = 0; var enemyCount3 = 0; var enemyCount4 = 0; var enemyCount5 = 0; var enemyCount6 = 0; var enemyCount7 = 0; var enemyCount8 = 0; var enemyCount10 = 0; var bulletAmmoCounter = 0; var changeWeapon = false; var reloadingNow = false; var weaponFired = false; var shakeQuan = 1; var shakeTime = 0; var gameOver = false; var bellTop = 700; var bellTop2 = -50; var bellTime = -1000; var bellLimit = 139; var bellTotal = 0; var bellTime2 = 0; var bellLimit2 = 150; var bellTotal2 = 0; var bellTime3 = 150; var bellLimit3 = 160; var bellTotal3 = 0; var bellTime4 = 900; var bellLimit4 = 1060; var bellTotal4 = 0; var bellTime5 = 200; var bellLimit5 = 250; var bellTotal5 = 0; var bellTime6 = 30; var bellLimit6 = 40; var bellTotal6 = 0; var bellTime7 = 0; var bellLimit7 = 500; var bellTotal7 = 0; var bellTime8 = 99; var bellLimit8 = 100; var bellTotal8 = 0; var bellTime10 = 0; var bellLimit10 = 77; var bellTotal10 = 0; var mouseClicked = false; var radians = (Math.PI/180); var radians2 = 57.2957795130823; if (pulsegunbought) { loadWeapon("Pulse Gun"); } else if (playerWeapon.flamethroweron && (flamethrowerbought)) { loadWeapon("Flame Thrower"); } else { loadWeapon("Pistol"); } effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth()); _root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth()); effectHolder_mc.cacheAsBitmap(); effectHolder_mc.onPress = function () { mouseClicked = true; if (playerWeapon.pulsegunon) { fireWeapon(player_mc._x, player_mc._y, _root._xmouse, _root._ymouse); } }; effectHolder_mc.onRelease = function () { mouseClicked = false; }; effectHolder_mc.onReleaseOutside = function () { mouseClicked = false; }; function showNotYet() { notYet_mc.gotoAndStop(2); } function continueGame() { _root.gameOver = false; life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; _root.gamewononce = false; _root.nextFrame(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; _root.clip_mc.bar_mc._x = -15; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.upgradesound.stop("upgradesound"); _root.bgsound.start(0, 999); wall.gotoAndStop(1); crate1.gotoAndStop(1); crate2.gotoAndStop(1); crate3.gotoAndStop(1); ally_crate1.gotoAndStop(1); ally_crate2.gotoAndStop(1); ally_crate3.gotoAndStop(1); crate1._y = crate1_origy; crate2._y = crate2_origy; crate3._y = crate3_origy; ally_crate1._y = ally_crate1_origy; ally_crate2._y = ally_crate2_origy; ally_crate3._y = ally_crate3_origy; player_mc._y = player_mc_origy; player_anim._y = player_anim_origy; head_mc._y = head_mc_origy; crates = 3; restart = false; score = score * 0.75; score = Math.round(score); towerLife = towerLifeOrig; gameOver_mc.removeMovieClip(); i = 0; while (i < 999) { _root.bellHolder["bell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 999) { _root.bellHolder["bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 999) { _root.bellHolder["bell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 999) { _root.bellHolder["bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 999) { _root.bellHolder["bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 999) { _root.bellHolder["bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 999) { _root.bellHolder["bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 999) { _root.bellHolder["bell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 999) { _root.bellHolder["bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].removeMovieClip(); p++; } } var pressed23 = false; var prev1 = "UNPAUSED"; _quality = "MEDIUM"; prev = "HIGH"; _root.shooter._visible = true; var bgsound = new Sound(); bgsound.attachSound("bgsound"); _root.bgsound.start(0, 99); var upgradesound = new Sound(); upgradesound.attachSound("upgradesound"); var forestsound = new Sound(); forestsound.attachSound("forestsound"); forestsound.start(0, 999); var zombiesound = new Sound(); zombiesound.attachSound("zombiesound"); _root.zombiesound.start(0, 1); soundPlay = new Sound(); max = 3; min = 1; rndClip = Math.round(Math.random() * (max - min)) + min; soundPlay.attachSound(rndClip); var gpause = false; _root.onEnterFrame = function () { weaponbar.weaponbar.macRem.text = "Enemies left: " + ((totalEnemiesGoal - totalKillsCount) + 1); if (_root.momAllyBought && (!momPlaced)) { momIcon.gotoAndStop(1); } else { momIcon.gotoAndStop(2); } if (_root.dadAllyBought && (!dadPlaced)) { dadIcon.gotoAndStop(1); } else { dadIcon.gotoAndStop(2); } if (_root.sisAllyBought && (!sisPlaced)) { sisIcon.gotoAndStop(1); } else { sisIcon.gotoAndStop(2); } if ((momCrate1on || (momCrate2on)) || (momCrate3on)) { momAllyOn = true; } else { momAllyOn = false; } if ((dadCrate1on || (dadCrate2on)) || (dadCrate3on)) { dadAllyOn = true; } else { dadAllyOn = false; } if ((sisCrate1on || (sisCrate2on)) || (sisCrate3on)) { sisAllyOn = true; } else { sisAllyOn = false; } weaponbar.weaponbar.scoreTxt.text = "Score: " + _root.score; if (Key.isDown(80)) { if (pressed23 == false) { if (prev1 == "PAUSED") { _root.gpause = false; prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if (prev1 == "UNPAUSED") { _root.gpause = true; _root.pause_mc.gotoAndStop(2); prev1 = "PAUSED"; } } pressed23 = true; } else { pressed23 = false; } if (!gpause) { checkMiniHit10(); ally_crate1.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate1._x + 75; sisbullet._y = ally_crate1._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate2.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate2._x + 75; sisbullet._y = ally_crate2._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; ally_crate3.sis_mc.onEnterFrame = function () { sisTimer++; if ((sisTimer > 50) && (!winonce)) { _root.attachMovie("bullets", "sisbullet", bellHolder.getNextHighestDepth()); sisbullet._x = ally_crate3._x + 75; sisbullet._y = ally_crate3._y + 35; sisTimer = 0; xMouse2 = _xmouse; yMouse2 = _ymouse; yRange = ((xMouse2 / 23) - this._y) - (yMouse2 / 77); sisbullet.onEnterFrame = function () { this._x = this._x + sisSpeed; this._y = this._y + yRange; if (this._x > 640) { this.removeMovieClip(); } }; } }; if ((dadAllyOn && (towerLife < towerLifeOrig)) && (!winonce)) { dadTimer++; if (dadTimer > 77) { towerLife = towerLife + 1; life_mc.bar_mc._x = life_mc.bar_mc._x - ((1 / towerLifeOrig) * 30); dadTimer = 0; } } macLife.text = (towerLife + " / ") + towerLifeOrig; if ((totalEnemies <= totalEnemiesGoal) && (!gameOver)) { makeLvl(); } if (totalKillsCount >= (totalEnemiesGoal + 1)) { if (!winonce) { _root.gpause = false; _root.prev1 = "UNPAUSED"; mouseClicked = false; _root.attachMovie("wavecomplete", "wavecomplete", bellHolder.getNextHighestDepth()); wavecomplete._x = -640; wavecomplete._y = 0; winonce = true; _root.notYet_mc.gotoAndStop(1); } } if (mouseClicked && (!playerWeapon.pulsegunon)) { fireWeapon(); } if (playerWeapon.gatlingunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.machinegunon && (weaponFired)) { shakeTime++; if (shakeTime > 1) { shakeQuan = 1; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; shakeTime = 0; } } if (playerWeapon.pulsegunon && (weaponFired)) { shakeQuan = 3; player_mc._x = player_mc._x - shakeQuan; bellHolder._x = bellHolder._x - shakeQuan; effectHolder_mc._x = effectHolder_mc._x - shakeQuan; player_mc._y = player_mc._y - (shakeQuan * 2); bellHolder._y = bellHolder._y - (shakeQuan * 2); effectHolder_mc._y = effectHolder_mc._y - (shakeQuan * 2); weaponFired = false; } rotatePlayer(); updateBullets(); macStats1.text = "$" + _root.playerWeapon.stats1Cost; macStats2.text = "$" + _root.playerWeapon.stats2Cost; if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macStats3.text = "Max"; } else { macStats3.text = "$" + _root.playerWeapon.stats3Cost; } macName.text = _root.playerWeapon.itemName; macHand.text = "Handling: " + playerWeapon.bulletOffset; macDam.text = "Damage: " + playerWeapon.bulletDamage; macRel.text = "Reload: " + playerWeapon.reloadSpeed; if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macAmmo.text = "\u221E/\u221E"; } else { macAmmo.text = (playerWeapon.bulletAmmo + "/") + playerWeapon.bulletClip; } CoinTxt.text = "$" + coins; effectHolder_mc.laser_mc.clear(); if (playerWeapon.bulletAmmo <= 0) { bulletAmmoCounter++; clip_mc.bar_mc._x = clip_mc.bar_mc._x + 0.3; } if (bulletAmmoCounter >= 100) { playerWeapon.bulletAmmo = playerWeapon.bulletClip; var _local3 = new Array(); clip_mc.bar_mc._x = -15; reloadingNow = false; changeWeapon = false; _root.reloadsound.start(0, 1); bulletAmmoCounter = 0; } if (towerLife < 0) { towerLife = 0; } if (towerLife == 0) { if (crates == 3) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate1.gotoAndStop(3); if (momCrate1on) { momCrate1on = false; momAllyBought = false; } if (dadCrate1on) { dadCrate1on = false; dadAllyBought = false; } if (sisCrate1on) { sisCrate1on = false; sisAllyBought = false; } ally_crate1.gotoAndStop(1); crate2.gotoAndStop(2); crate2.bounce_mc.gotoAndPlay(2); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 2; _root.crashsound.start(0, 1); } else if (crates == 2) { life_mc.bar_mc._x = -15; towerLife = towerLifeOrig; crate2.gotoAndStop(3); if (momCrate2on) { momCrate2on = false; momAllyBought = false; } if (dadCrate2on) { dadCrate2on = false; dadAllyBought = false; } if (sisCrate2on) { sisCrate2on = false; sisAllyBought = false; } ally_crate2.gotoAndStop(1); crate3.gotoAndStop(2); crate3.bounce_mc.gotoAndPlay(2); crate1._y = crate1._y + crateHeight; crate2._y = crate2._y + crateHeight; crate3._y = crate3._y + crateHeight; ally_crate1._y = ally_crate1._y + crateHeight; ally_crate2._y = ally_crate2._y + crateHeight; ally_crate3._y = ally_crate3._y + crateHeight; player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; crates = 1; _root.crashsound.start(0, 1); } else if (crates == 1) { crate3.gotoAndStop(3); ally_crate3.gotoAndStop(1); player_mc._y = player_mc._y + crateHeight; player_anim._y = player_anim._y + crateHeight; head_mc._y = head_mc._y + crateHeight; _root.restart = true; _root.attachMovie("gameOver_mc", "gameOver_mc", bellHolder.getNextHighestDepth()); gameOver_mc._x = -7; gameOver_mc._y = 0; Mouse.show(); wall.gotoAndStop(2); crates = 0; _root.crashsound.start(0, 1); if (momCrate3on) { momCrate3on = false; momAllyBought = false; } if (dadCrate3on) { dadCrate3on = false; dadAllyBought = false; } if (sisCrate3on) { sisCrate3on = false; sisAllyBought = false; } } } if (Key.isDown(49)) { loadWeapon("Pistol"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } } if (Key.isDown(51)) { if (shotgunbought) { loadWeapon("Shotgun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(50)) { if (machinegunbought) { loadWeapon("Machine Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(52)) { if (gatlinggunbought) { loadWeapon("Gatling Gun"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(53)) { if (sniperbought) { loadWeapon("Sniper"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = true; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } if (Key.isDown(54)) { if (pulsegunbought) { loadWeapon("Pulse Gun"); weaponFired = false; playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 100; } else { showNotYet(); } } if (Key.isDown(55)) { if (flamethrowerbought) { loadWeapon("Flamethrower"); weaponFired = false; if (!changeWeapon) { playerWeapon.bulletAmmo = 0; reloadingNow = false; clip_mc.bar_mc._x = -15; changeWeapon = false; bulletAmmoCounter = 0; } } else { showNotYet(); } } } }; upg_btn1.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats1Cost) { _root.coins = _root.coins - _root.playerWeapon.stats1Cost; _root.playerWeapon.stats1Cost = _root.playerWeapon.stats1Cost * 2; _root.playerWeapon.bulletDamage = _root.playerWeapon.bulletDamage + 0.5; macInfo.text = ""; } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn2.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats2Cost) { _root.coins = _root.coins - _root.playerWeapon.stats2Cost; _root.playerWeapon.stats2Cost = _root.playerWeapon.stats2Cost * 2; if (_root.playerWeapon.pulsegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 200; } else if (_root.playerWeapon.machinegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.gatlingunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 50; macInfo.text = ""; } } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn3.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats3Cost) { macInfo.text = ""; _root.coins = _root.coins - _root.playerWeapon.stats3Cost; _root.playerWeapon.stats3Cost = _root.playerWeapon.stats3Cost * 2; if (_root.playerWeapon.shotgunon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 9; } else if (_root.playerWeapon.sniperon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 6; } else { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 10; } } else if (playerWeapon.pistolon || (playerWeapon.pulsegunon)) { macInfo.text = "Maxed out!"; _root.errorsound.start(0, 1); } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; var fleshsound = new Sound(); fleshsound.attachSound("fleshsound"); var hoversound = new Sound(); hoversound.attachSound("hoversound"); var errorsound = new Sound(); errorsound.attachSound("errorsound"); var registersound = new Sound(); registersound.attachSound("registersound"); var gunsound = new Sound(); gunsound.attachSound("gunsound"); var machgunsound = new Sound(); machgunsound.attachSound("machgunsound"); var crashsound = new Sound(); crashsound.attachSound("crashsound"); var elecsound = new Sound(); elecsound.attachSound("elecsound"); var snipersound = new Sound(); snipersound.attachSound("snipersound"); var reloadsound = new Sound(); reloadsound.attachSound("reloadsound"); var gatlingsound = new Sound(); gatlingsound.attachSound("gatlingsound"); var coinsound = new Sound(); coinsound.attachSound("coinsound"); function addSparkles(_targetX, _targetY, _sparkNumber, _distance, _sparkSize) { var _local6 = 0; while (_local6 < _sparkNumber) { var _local4 = _root.attachMovie("spark", "spark_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var _local3 = _root.attachMovie("spark2", "spark2_" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); _local4._x = (_targetX + random(_distance)) - (_distance / 2); _local4._y = (_targetY + random(_distance)) - (_distance / 2); _local3._x = (_targetX + random(_distance)) - (_distance / 2); _local3._y = (_targetY + random(_distance)) - (_distance / 2); var _local5 = random(_sparkSize) + (_sparkSize / 4); _local4._xscale = _local5; _local4._yscale = _local5; _local5 = random(_sparkSize) + (_sparkSize / 4); _local3._xscale = _local5; _local3._yscale = _local5; _local3._rotation = random(359); _local4._alpha = lightningAlpha; _local3._alpha = lightningAlpha; _local6++; } } var lightningOffset = 15; var lightningFrequency = 15; var lightningWidth = 1; var lightningColor = "0x5C98EF"; var lightningAlpha = 75; var lightningBranches = 3; var sparkNumber = 7; var sparkDistance = 23; var sparkSize = 100; var reloadSpeed = 250; var clearSpeed = 100; var glow = (new flash.filters.GlowFilter()); glow.color = 16711680 /* 0xFF0000 */; glow.alpha = 1; glow.blurX = 7; glow.blurY = 7; glow.quality = 2; effectHolder_mc.laser_mc.filters = new Array(glow); var glow_color = lightningColor; var glow_alpha = 0.6; var glow_blurX = 5; var glow_blurY = 5; var glow_strength = 2; var glow_quality = 3; var effectHolder = effectHolder_mc; var filter_glow = (new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality)); effectHolder.filters = [filter_glow];
Instance of Symbol 1641 MovieClip "effectHolder_mc" in Frame 36
onClipEvent (load) { this.useHandCursor = false; }
Instance of Symbol 1600 MovieClip "shooter" in Frame 36
onClipEvent (load) { Mouse.hide(); } onClipEvent (enterFrame) { this.tabEnabled = false; this._x = _root._xmouse; this._y = _root._ymouse; this.swapDepths(_root.getNextHighestDepth()); if (_root._currentframe == 100) { removeMovieClip(""); Mouse.show(); } }
Instance of Symbol 1465 MovieClip "upg_btn1" in Frame 36
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn2" in Frame 36
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn3" in Frame 36
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1751 MovieClip in Frame 36
on (rollOver) { Mouse.show(); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; } on (release) { if ((!restart) || (!winonce)) { if (_root.prev1 == "PAUSED") { _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if ((_root.prev1 = "UNPAUSED")) { _root.gpause = true; _root.pause_mc.gotoAndStop(2); _root.prev1 = "PAUSED"; } } }
Instance of Symbol 1754 MovieClip "Btn_Mute" in Frame 36
onClipEvent (load) { this.tabEnabled = false; } on (release) { if (_root.bgsound.getVolume() != 0) { this.gotoAndStop(2); _root.oldVolume = _root.bgsound.getVolume(); _root.slider.slidebar.onEnterFrame = null; _root.bgsound.setVolume(0); } else { this.gotoAndStop(1); _root.slider.slidebar.onEnterFrame = _root.adjustVolume; _root.bgsound.setVolume(_root.oldVolume); } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; }
Instance of Symbol 1786 MovieClip "pause_mc" in Frame 36
onClipEvent (enterFrame) { this.tabEnabled = false; this.swapDepths(_root.getNextHighestDepth()); }
Symbol 59 MovieClip Frame 22
_root.bomb_mc.removeMovieClip(); stop();
Symbol 63 MovieClip [spark2] Frame 16
this.removeMovieClip();
Symbol 64 MovieClip [spark] Frame 16
this.removeMovieClip();
Symbol 74 MovieClip [coin2] Frame 192
stop();
Symbol 77 MovieClip [coin3] Frame 192
stop(); this.removeMovieClip();
Symbol 80 MovieClip [earthquake] Frame 9
stop();
Symbol 84 MovieClip [fps] Frame 1
fps = 30; var timeinit = new Date(); var lasttime = timeinit.getMilliseconds(); onEnterFrame = function () { var _local1 = new Date(); timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime))); fps = Math.round(10000 / timepassed) / 10; lasttime = _local1.getMilliseconds(); };
Symbol 88 MovieClip [notbuy_mc] Frame 1
stop();
Symbol 88 MovieClip [notbuy_mc] Frame 2
var timeLeft = 60; this.onEnterFrame = function () { this.timeLeft--; if (this.timeLeft == 0) { gotoAndStop (1); } };
Symbol 88 MovieClip [notbuy_mc] Frame 3
var timeLeft = 120; this.onEnterFrame = function () { this.timeLeft--; if (this.timeLeft == 0) { gotoAndStop (1); } };
Symbol 109 MovieClip [flame] Frame 11
stop(); if (_root.crates == 3) { _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 2) { _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 1) { _root.crate3.gotoAndStop(1); }
Symbol 116 MovieClip [bullets] Frame 1
Symbol 123 MovieClip [flame_mc] Frame 25
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 6
stop();
Symbol 196 Button
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 223
stop(); stop(); _root.gotoAndStop(3);
Symbol 254 MovieClip Frame 15
stop();
Symbol 264 MovieClip [enemy_mc] Frame 1
stop();
Symbol 313 MovieClip Frame 14
stop();
Symbol 323 MovieClip [enemy_mc2] Frame 1
stop();
Symbol 323 MovieClip [enemy_mc2] Frame 3
stop();
Symbol 375 MovieClip Frame 13
stop();
Symbol 391 MovieClip [enemy_mc2b] Frame 1
stop();
Symbol 391 MovieClip [enemy_mc2b] Frame 3
stop();
Symbol 442 MovieClip Frame 15
stop();
Symbol 454 MovieClip [enemy_mc3] Frame 1
stop();
Symbol 499 MovieClip Frame 15
stop();
Symbol 500 MovieClip [enemy_mc3b] Frame 1
stop();
Symbol 534 MovieClip Frame 14
stop();
Symbol 542 MovieClip [enemy_mc4] Frame 1
stop();
Symbol 542 MovieClip [enemy_mc4] Frame 3
stop();
Symbol 545 MovieClip [enemy_mc4b] Frame 1
stop();
Symbol 545 MovieClip [enemy_mc4b] Frame 16
stop(); this.removeMovieClip();
Symbol 545 MovieClip [enemy_mc4b] Frame 17
stop();
Symbol 575 MovieClip Frame 10
stop();
Symbol 576 MovieClip [enemy_mc5] Frame 1
stop();
Symbol 594 MovieClip Frame 12
stop();
Symbol 595 MovieClip [enemy_mc6] Frame 1
stop();
Symbol 613 MovieClip Frame 13
stop();
Symbol 614 MovieClip [enemy_mc6b] Frame 1
stop();
Symbol 678 MovieClip Frame 21
stop();
Symbol 679 MovieClip [enemy_mc7] Frame 1
stop();
Symbol 679 MovieClip [enemy_mc7] Frame 3
stop();
Symbol 738 MovieClip Frame 21
stop();
Symbol 739 MovieClip [enemy_mc7b] Frame 1
stop();
Symbol 739 MovieClip [enemy_mc7b] Frame 3
stop();
Symbol 781 MovieClip Frame 15
stop();
Symbol 792 MovieClip [enemy_mc8] Frame 1
stop();
Symbol 854 MovieClip Frame 13
stop();
Symbol 855 MovieClip [enemy_mc9] Frame 1
stop();
Symbol 855 MovieClip [enemy_mc9] Frame 3
stop();
Symbol 870 MovieClip Frame 13
stop();
Symbol 878 MovieClip [enemy_mc10] Frame 1
stop();
Symbol 913 MovieClip Frame 15
stop();
Symbol 914 MovieClip [enemy_mc11] Frame 1
stop();
Symbol 952 MovieClip Frame 15
stop();
Symbol 953 MovieClip [enemy_mc12] Frame 1
stop();
Symbol 1022 MovieClip Frame 14
stop();
Symbol 1023 MovieClip [enemy_mc13] Frame 1
stop();
Symbol 1023 MovieClip [enemy_mc13] Frame 3
stop();
Symbol 1080 MovieClip Frame 12
stop();
Symbol 1081 MovieClip [enemy_mc13b] Frame 1
stop();
Symbol 1081 MovieClip [enemy_mc13b] Frame 3
stop();
Symbol 1123 MovieClip Frame 15
stop();
Symbol 1124 MovieClip [enemy_mc14] Frame 1
stop();
Symbol 1124 MovieClip [enemy_mc14] Frame 3
stop();
Symbol 1196 MovieClip Frame 35
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1196 MovieClip Frame 37
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1196 MovieClip Frame 39
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1196 MovieClip Frame 41
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1213 MovieClip Frame 15
if (!winonce) { _root.prev1 = "UNPAUSED"; _root.mouseClicked = false; _root.attachMovie("wavecomplete2", "wavecomplete", bellHolder.getNextHighestDepth()); _root.wavecomplete._x = -640; _root.wavecomplete._y = 0; _root.winonce = true; _root.notYet_mc.gotoAndStop(1); }
Symbol 1213 MovieClip Frame 18
stop();
Symbol 1252 MovieClip Frame 50
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 52
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 54
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 56
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 58
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 60
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 62
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 64
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 66
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 68
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 70
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 72
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 74
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 76
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 78
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 80
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 82
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 84
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 86
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 88
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 90
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 92
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 94
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 96
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 98
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 100
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 102
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 104
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 106
_root.player_mc._y = _root.player_mc._y + 4; _root.bellHolder._y = _root.bellHolder._y + 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y + 4; _root.player_mc._x = _root.player_mc._x + 4; _root.bellHolder._x = _root.bellHolder._x + 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x + 4;
Symbol 1252 MovieClip Frame 108
_root.player_mc._y = _root.player_mc._y - 4; _root.bellHolder._y = _root.bellHolder._y - 4; _root.effectHolder_mc._y = _root.effectHolder_mc._y - 4; _root.player_mc._x = _root.player_mc._x - 4; _root.bellHolder._x = _root.bellHolder._x - 4; _root.effectHolder_mc._x = _root.effectHolder_mc._x - 4;
Symbol 1252 MovieClip Frame 132
_root.bgsound.start(0, 1);
Symbol 1252 MovieClip Frame 190
_root.introOnce = true; gotoAndPlay (97);
Symbol 1253 MovieClip [enemy_mc15] Frame 1
stop();
Symbol 1264 MovieClip [blood_mc] Frame 6
stop();
Symbol 1269 MovieClip Frame 2
stop();
Symbol 1272 MovieClip Frame 2
stop();
Symbol 1277 MovieClip Frame 2
stop();
Symbol 1278 MovieClip [bullet] Frame 1
stop();
Symbol 1278 MovieClip [bullet] Frame 2
stop();
Symbol 1278 MovieClip [bullet] Frame 3
stop();
Symbol 1278 MovieClip [bullet] Frame 4
stop();
Symbol 1278 MovieClip [bullet] Frame 5
stop();
Symbol 1297 MovieClip Frame 10
stop();
Symbol 1301 MovieClip Frame 1
stop();
Symbol 1317 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 2
CoinTxt.text = ""; trace(_root.crates); no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if (((_root.coins >= _root.playerWeapon.itemCost) && (!_root.playerWeapon.repairCrateOn)) || (((_root.coins >= _root.playerWeapon.itemCost) && (_root.playerWeapon.repairCrateOn)) && (_root.towerLife < _root.towerLifeOrig))) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; if (_root.playerWeapon.flamethroweron) { _root.flamethrowerbought = true; } else if (_root.playerWeapon.pulsegunon) { _root.pulsegunbought = true; } else if (_root.playerWeapon.sniperon) { _root.sniperbought = true; weaponbar.weaponbar.weapon4.gotoAndStop(2); } else if (_root.playerWeapon.shotgunon) { _root.shotgunbought = true; weaponbar.weaponbar.weapon3.gotoAndStop(2); } else if (_root.playerWeapon.machinegunon) { _root.machinegunbought = true; weaponbar.weaponbar.weapon2.gotoAndStop(2); } else if (_root.playerWeapon.gatlingunon) { _root.gatlinggunbought = true; weaponbar.weaponbar.weapon5.gotoAndStop(2); } else if (_root.playerWeapon.repairCrateOn) { _root.towerLife = _root.towerLifeOrig; _root.life_mc.bar_mc._x = -15; } gotoAndStop (1); } else if (((_root.coins <= _root.playerWeapon.itemCost) && (!_root.playerWeapon.repairCrateOn)) || (((_root.coins <= _root.playerWeapon.itemCost) && (_root.playerWeapon.repairCrateOn)) && (_root.towerLife < _root.towerLifeOrig))) { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } else if (_root.towerLife == _root.towerLifeOrig) { CoinTxt.text = "Maxed out!"; _root.errorsound.start(0, 1); } };
Symbol 1327 MovieClip Frame 1
stop();
Symbol 1327 MovieClip Frame 2
stop();
Symbol 1383 MovieClip [coin] Frame 192
stop();
Symbol 1444 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 2
CoinTxt.text = ""; no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if ((_root.coins >= _root.playerWeapon.itemCost) && (_root.crates < 3)) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; if (_root.playerWeapon.buyCrateOn) { if (_root.crates == 2) { _root.crates = 3; _root.crate1.gotoAndStop(1); _root.sisbow1._y = _root.sisbow1._y - _root.crateHeight; _root.sisbow2._y = _root.sisbow2._y - _root.crateHeight; _root.sisbow3._y = _root.sisbow3._y - _root.crateHeight; _root.crate1._y = _root.crate1._y - _root.crateHeight; _root.crate2._y = _root.crate2._y - _root.crateHeight; _root.crate3._y = _root.crate3._y - _root.crateHeight; _root.ally_crate1._y = _root.ally_crate1._y - _root.crateHeight; _root.ally_crate2._y = _root.ally_crate2._y - _root.crateHeight; _root.ally_crate3._y = _root.ally_crate3._y - _root.crateHeight; _root.player_mc._y = _root.player_mc._y - _root.crateHeight; _root.player_anim._y = _root.player_anim._y - _root.crateHeight; _root.head_mc._y = _root.head_mc._y - _root.crateHeight; _root.towerLife = _root.towerLifeOrig; _root.life_mc.bar_mc._x = -15; } else if (_root.crates == 1) { _root.crates = 2; _root.crate2.gotoAndStop(1); _root.sisbow1._y = _root.sisbow1._y - _root.crateHeight; _root.sisbow2._y = _root.sisbow2._y - _root.crateHeight; _root.sisbow3._y = _root.sisbow3._y - _root.crateHeight; _root.tripod._y = _root.tripod._y - _root.crateHeight; _root.crate1._y = _root.crate1._y - _root.crateHeight; _root.crate2._y = _root.crate2._y - _root.crateHeight; _root.crate3._y = _root.crate3._y - _root.crateHeight; _root.ally_crate1._y = _root.ally_crate1._y - _root.crateHeight; _root.ally_crate2._y = _root.ally_crate2._y - _root.crateHeight; _root.ally_crate3._y = _root.ally_crate3._y - _root.crateHeight; _root.player_mc._y = _root.player_mc._y - _root.crateHeight; _root.player_anim._y = _root.player_anim._y - _root.crateHeight; _root.head_mc._y = _root.head_mc._y - _root.crateHeight; _root.towerLife = _root.towerLifeOrig; _root.life_mc.bar_mc._x = -15; } } gotoAndStop (1); } else if (((_root.coins <= _root.playerWeapon.itemCost) && (!_root.playerWeapon.buyCrateOn)) || (((_root.coins <= _root.playerWeapon.itemCost) && (_root.playerWeapon.buyCrateOn)) && (_root.crates <= 3))) { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } else if (_root.crates == 3) { CoinTxt.text = "Maxed out!"; _root.errorsound.start(0, 1); } };
Symbol 1456 MovieClip Frame 1
stop();
Symbol 1456 MovieClip Frame 2
CoinTxt.text = ""; no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if ((_root.coins >= _root.playerWeapon.itemCost) && (!_root.momAllyBought)) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; if (_root.playerWeapon.buyMomOn) { _root.momAllyBought = true; _root.momPlaced = false; } } else if (((_root.coins <= _root.playerWeapon.itemCost) && (!_root.momAllyBought)) || ((_root.coins <= _root.playerWeapon.itemCost) && (!_root.momAllyBought))) { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } else if (_root.momAllyBought) { CoinTxt.text = "Already hired!"; _root.errorsound.start(0, 1); } };
Symbol 1458 MovieClip Frame 1
stop();
Symbol 1458 MovieClip Frame 2
CoinTxt.text = ""; no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if ((_root.coins >= _root.playerWeapon.itemCost) && (!_root.dadAllyBought)) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; if (_root.playerWeapon.buyDadOn) { _root.dadAllyBought = true; _root.dadPlaced = false; } } else if (((_root.coins <= _root.playerWeapon.itemCost) && (!_root.dadAllyBought)) || ((_root.coins <= _root.playerWeapon.itemCost) && (!_root.dadAllyBought))) { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } else if (_root.dadAllyBought) { CoinTxt.text = "Already hired!"; _root.errorsound.start(0, 1); } };
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 2
CoinTxt.text = ""; no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if ((_root.coins >= _root.playerWeapon.itemCost) && (!_root.sisAllyBought)) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; if (_root.playerWeapon.buySisOn) { _root.sisAllyBought = true; _root.sisPlaced = false; } } else if (((_root.coins <= _root.playerWeapon.itemCost) && (!_root.sisAllyBought)) || ((_root.coins <= _root.playerWeapon.itemCost) && (!_root.sisAllyBought))) { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } else if (_root.sisAllyBought) { CoinTxt.text = "Already hired!"; _root.errorsound.start(0, 1); } };
Symbol 1462 MovieClip Frame 1
stop();
Symbol 1462 MovieClip Frame 2
CoinTxt.text = ""; no_btn.onRelease = function () { gotoAndStop (1); }; yes_btn.onRelease = function () { if (_root.coins >= _root.playerWeapon.itemCost) { _root.coins = _root.coins - _root.playerWeapon.itemCost; _root.score = _root.score + _root.playerWeapon.itemCost; _root.registersound.start(0, 1); CoinTxt.text = "Awesome!"; _root.towerLifeOrig = _root.towerLifeOrig * 2; _root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2; _root.towerLife = _root.towerLifeOrig; _root.life_mc.bar_mc._x = -15; } else { CoinTxt.text = "Not enough money!"; _root.errorsound.start(0, 1); } };
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1484 MovieClip Frame 1
stop();
Symbol 1488 MovieClip Frame 1
stop();
Symbol 1493 MovieClip Frame 1
stop();
Symbol 1493 MovieClip Frame 2
this.onEnterFrame = function () { macLife.text = (_root.towerLife + "/") + _root.towerLifeOrig; };
Symbol 1494 MovieClip Frame 1
this.onEnterFrame = function () { macLife.text = (_root.towerLife + "/") + _root.towerLifeOrig; CoinTxt.text = "$" + _root.coins; macStats1.text = "$" + _root.playerWeapon.stats1Cost; macStats2.text = "$" + _root.playerWeapon.stats2Cost; if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macStats3.text = "Max"; } else { macStats3.text = "$" + _root.playerWeapon.stats3Cost; } macName.text = _root.playerWeapon.itemName; macDesc.text = _root.playerWeapon.itemDesc; itemCostText.text = "$" + _root.playerWeapon.itemCost; macHand.text = "Handling: " + _root.playerWeapon.bulletOffset; macDam.text = "Damage: " + _root.playerWeapon.bulletDamage; macRel.text = "Reload: " + _root.playerWeapon.reloadSpeed; if (_root.playerWeapon.repairCrateOn) { buy_btn.gotoAndStop(1); buy_btn.enabled = true; } else if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macAmmo.text = "\u221E/\u221E"; } else if ((_root.playerWeapon.buySisOn || (_root.playerWeapon.buyMomOn)) || (_root.playerWeapon.buyDadOn)) { buy_btn.gotoAndStop(3); buy_btn.enabled = true; } else { macAmmo.text = (_root.playerWeapon.bulletAmmo + "/") + _root.playerWeapon.bulletClip; } }; buy_btn.onRelease = function () { if (_root.playerWeapon.buyCrateOn) { choice_btn2.gotoAndStop(2); } else if (_root.playerWeapon.buyMomOn) { choice_btn3.gotoAndStop(2); } else if (_root.playerWeapon.buyDadOn) { choice_btn4.gotoAndStop(2); } else if (_root.playerWeapon.buySisOn) { choice_btn5.gotoAndStop(2); } else if (_root.playerWeapon.upgradeCrateOn) { choice_btn6.gotoAndStop(2); } else { choice_btn.gotoAndStop(2); } }; buy_btn.onEnterFrame = function () { if (((((((_root.flamethrowerbought && (_root.playerWeapon.flamethroweron)) || (_root.pulsegunbought && (_root.playerWeapon.pulsegunon))) || (_root.gatlinggunbought && (_root.playerWeapon.gatlingunon))) || (_root.sniperbought && (_root.playerWeapon.sniperon))) || (_root.shotgunbought && (_root.playerWeapon.shotgunon))) || (_root.machinegunbought && (_root.playerWeapon.machinegunon))) || (_root.pistolbought && (_root.playerWeapon.pistolon))) { buy_btn.gotoAndStop(2); buy_btn.enabled = false; upg_btn1.enabled = true; upg_btn2.enabled = true; upg_btn3.enabled = true; } else { buy_btn.gotoAndStop(1); buy_btn.enabled = true; upg_btn1.enabled = false; upg_btn2.enabled = false; upg_btn3.enabled = false; } }; upg_btn1.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats1Cost) { _root.coins = _root.coins - _root.playerWeapon.stats1Cost; _root.score = _root.score + _root.playerWeapon.stats1Cost; _root.registersound.start(0, 1); _root.playerWeapon.stats1Cost = _root.playerWeapon.stats1Cost * 2; _root.playerWeapon.bulletDamage = _root.playerWeapon.bulletDamage + 0.5; } else { _root.errorsound.start(0, 1); macInfo.text = "Not enough money!"; } }; upg_btn2.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats2Cost) { _root.coins = _root.coins - _root.playerWeapon.stats2Cost; _root.score = _root.score + _root.playerWeapon.stats2Cost; _root.registersound.start(0, 1); _root.playerWeapon.stats2Cost = _root.playerWeapon.stats2Cost * 2; if (_root.playerWeapon.pulsegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 150; } else if (_root.playerWeapon.machinegunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.gatlingunon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.flamethroweron) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else if (_root.playerWeapon.pistolon) { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 10; } else { _root.playerWeapon.reloadSpeed = _root.playerWeapon.reloadSpeed - 50; macInfo.text = ""; } } else { macInfo.text = "Not enough money!"; _root.errorsound.start(0, 1); } }; upg_btn3.onRelease = function () { if (_root.coins >= _root.playerWeapon.stats3Cost) { _root.registersound.start(0, 1); _root.coins = _root.coins - _root.playerWeapon.stats3Cost; _root.score = _root.score + _root.playerWeapon.stats3Cost; _root.playerWeapon.stats3Cost = _root.playerWeapon.stats3Cost * 2; if (_root.playerWeapon.shotgunon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 9; } else if (_root.playerWeapon.sniperon) { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 6; } else { _root.playerWeapon.bulletClip = _root.playerWeapon.bulletClip + 10; } } else { _root.errorsound.start(0, 1); if (_root.playerWeapon.pistolon || (_root.playerWeapon.pulsegunon)) { macInfo.text = "Maxed out!"; } else { macInfo.text = "Not enough money!"; } } }; noFunds.text = ""; _root.repairCrateInfo = false; btn1.onRelease = function () { weaponsart.gotoAndStop(1); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Pistol"); bulletAmmoCounter = 0; _root.pistolselected = true; _root.machinegunselected = false; _root.shotgunselected = false; _root.gatlinggunselected = false; _root.sniperselected = false; _root.pulsegunselected = false; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn2.onRelease = function () { weaponsart.gotoAndStop(2); macInfo.text = ""; repairCrateInfo = false; choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); coverstats.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Machine Gun"); _root.pistolselected = false; _root.machinegunselected = true; _root.shotgunselected = false; _root.gatlinggunselected = false; _root.sniperselected = false; _root.pulsegunselected = false; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn3.onRelease = function () { weaponsart.gotoAndStop(3); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Shotgun"); _root.pistolselected = false; _root.machinegunselected = false; _root.shotgunselected = true; _root.gatlinggunselected = false; _root.sniperselected = false; _root.pulsegunselected = false; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn4.onRelease = function () { weaponsart.gotoAndStop(4); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Gatling Gun"); _root.pistolselected = false; _root.machinegunselected = false; _root.shotgunselected = false; _root.gatlinggunselected = true; _root.sniperselected = false; _root.pulsegunselected = false; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn5.onRelease = function () { weaponsart.gotoAndStop(5); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Sniper"); _root.pistolselected = false; _root.machinegunselected = false; _root.shotgunselected = false; _root.gatlinggunselected = false; _root.sniperselected = true; _root.pulsegunselected = false; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn6.onRelease = function () { weaponsart.gotoAndStop(6); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Pulse Gun"); _root.pistolselected = false; _root.machinegunselected = false; _root.shotgunselected = false; _root.gatlinggunselected = false; _root.sniperselected = false; _root.pulsegunselected = true; _root.flamethrowerselected = false; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn7.onRelease = function () { weaponsart.gotoAndStop(7); macInfo.text = ""; repairCrateInfo = false; coverstats.gotoAndStop(1); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Flamethrower"); _root.pistolselected = false; _root.machinegunselected = false; _root.shotgunselected = false; _root.gatlinggunselected = false; _root.sniperselected = false; _root.pulsegunselected = false; _root.flamethrowerselected = true; _root.weaponFired = false; if (!_root.changeWeapon) { _root.playerWeapon.bulletAmmo = 0; _root.reloadingNow = false; _root.clip_mc.bar_mc._x = -15; _root.changeWeapon = false; _root.bulletAmmoCounter = 100; } }; btn_8.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(8); coverstats.gotoAndStop(2); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Repair Crate"); }; btn_9.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(9); coverstats.gotoAndStop(2); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Buy Crate"); }; btn_10.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(10); coverstats.gotoAndStop(2); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Upgrade Crate"); }; btn_11.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(11); coverstats.gotoAndStop(3); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Hire Mom"); }; btn_12.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(12); coverstats.gotoAndStop(3); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); _root.loadWeapon("Hire Dad"); }; btn_13.onRelease = function () { macInfo.text = ""; weaponsart.gotoAndStop(13); coverstats.gotoAndStop(3); choice_btn.gotoAndStop(1); choice_btn2.gotoAndStop(1); choice_btn3.gotoAndStop(1); choice_btn4.gotoAndStop(1); choice_btn5.gotoAndStop(1); choice_btn6.gotoAndStop(1); _root.loadWeapon("Hire Sis"); };
Instance of Symbol 1288 MovieClip in Symbol 1494 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Instance of Symbol 1301 MovieClip "btn1" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn2" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn3" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn4" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn5" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn6" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1301 MovieClip "btn7" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_8" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_9" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_12" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_13" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_11" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1327 MovieClip "btn_10" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1444 MovieClip "weaponsart" in Symbol 1494 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } if (_root.playerWeapon.shotgunon) { this.gotoAndStop(3); } if (_root.playerWeapon.machinegunon) { this.gotoAndStop(2); } if (_root.playerWeapon.sniperon) { this.gotoAndStop(5); } if (_root.playerWeapon.gatlingunon) { this.gotoAndStop(4); } if (_root.playerWeapon.pulsegunon) { this.gotoAndStop(6); } if (_root.playerWeapon.flamethroweron) { this.gotoAndStop(7); } if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } if (_root.playerWeapon.buyDadOn) { this.gotoAndStop(12); } if (_root.playerWeapon.buySisOn) { this.gotoAndStop(13); } }
Instance of Symbol 1465 MovieClip "upg_btn1" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn2" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1465 MovieClip "upg_btn3" in Symbol 1494 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1484 MovieClip "next_btn" in Symbol 1494 MovieClip Frame 1
on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1488 MovieClip in Symbol 1494 MovieClip Frame 1
on (release) { _root.clicksound.start(0, 1); getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1497 MovieClip [wavecomplete] Frame 1
_root.mouseClicked = false; Mouse.show(); _root.shooter._visible = false;
Symbol 1497 MovieClip [wavecomplete] Frame 12
stop(); _root.mouseClicked = false; _root.effectHolder_mc.enabled = false; Mouse.show(); _root.shooter._visible = false; mouseListener = new Object(); mouseListener.onMouseDown = function () { Mouse.show(); _root.shooter._visible = false; gotoAndPlay (13); Mouse.removeListener(mouseListener); }; Mouse.addListener(mouseListener);
Symbol 1497 MovieClip [wavecomplete] Frame 13
_root.gatesound.start(0, 1);
Symbol 1497 MovieClip [wavecomplete] Frame 17
i = 0; while (i < 199) { _root.bellHolder["bell_a" + i].removeMovieClip(); _root.bellHolder["coinbell_a" + i].removeMovieClip(); _root.bellHolder["barbell_a" + i].removeMovieClip(); _root.bellHolder["bloodbell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 199) { _root.bellHolder["bell_b" + g].removeMovieClip(); _root.bellHolder["coin2bell_b" + g].removeMovieClip(); _root.bellHolder["bar2bell_b" + g].removeMovieClip(); _root.bellHolder["blood2bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 199) { _root.bellHolder["bell_c" + h].removeMovieClip(); _root.bellHolder["coin3bell_c" + h].removeMovieClip(); _root.bellHolder["bar3bell_c" + h].removeMovieClip(); _root.bellHolder["blood3bell_c" + h].removeMovieClip(); _root.bellHolder["enembulletbell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 199) { _root.bellHolder["bell_d" + j].removeMovieClip(); _root.bellHolder["coin4bell_d" + j].removeMovieClip(); _root.bellHolder["bar4bell_d" + j].removeMovieClip(); _root.bellHolder["blood4bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 199) { _root.bellHolder["bell_e" + k].removeMovieClip(); _root.bellHolder["coin5bell_e" + k].removeMovieClip(); _root.bellHolder["bar5bell_e" + k].removeMovieClip(); _root.bellHolder["blood5bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 199) { _root.bellHolder["bell_f" + l].removeMovieClip(); _root.bellHolder["coin6bell_f" + l].removeMovieClip(); _root.bellHolder["bar6bell_f" + l].removeMovieClip(); _root.bellHolder["blood6bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 199) { _root.bellHolder["bell_g" + m].removeMovieClip(); _root.bellHolder["coin7bell_g" + m].removeMovieClip(); _root.bellHolder["bar7bell_g" + m].removeMovieClip(); _root.bellHolder["blood7bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 199) { _root.bellHolder["bell_h" + n].removeMovieClip(); _root.bellHolder["coin8bell_h" + n].removeMovieClip(); _root.bellHolder["bar8bell_h" + n].removeMovieClip(); _root.bellHolder["blood8bell_h" + n].removeMovieClip(); _root.bellHolder["enembulletbell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 199) { _root.bellHolder["bell_i" + o].removeMovieClip(); _root.bellHolder["coin9bell_i" + o].removeMovieClip(); _root.bellHolder["bar9bell_i" + o].removeMovieClip(); _root.bellHolder["blood9bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 199) { _root.bellHolder["bell_j" + p].removeMovieClip(); _root.bellHolder["coin10bell_j" + p].removeMovieClip(); _root.bellHolder["bar10bell_j" + p].removeMovieClip(); _root.bellHolder["blood10bell_j" + p].removeMovieClip(); p++; } q = 0; while (q < 199) { _root.bellHolder["bell_z" + q].removeMovieClip(); _root.bellHolder["coin13bell_z" + q].removeMovieClip(); _root.bellHolder["bar13bell_z" + q].removeMovieClip(); _root.bellHolder["blood13bell_z" + q].removeMovieClip(); q++; } r = 0; while (r < 2999) { _root.bellHolder["bullet" + r].removeMovieClip(); r++; }
Symbol 1497 MovieClip [wavecomplete] Frame 18
stop(); _root.gameOver = true; _root.bgsound.stop("bgsound"); _root.upgradesound.start(0, 1); buyUpgrades.weaponTrans.gotoAndPlay(2); buyUpgrades.next_btn.onRelease = function () { Mouse.hide(); _root.clicksound.start(0, 1); _root.shooter._visible = true; gotoAndPlay (19); };
Symbol 1497 MovieClip [wavecomplete] Frame 21
buyUpgrades.weaponTrans.gotoAndStop(1);
Symbol 1497 MovieClip [wavecomplete] Frame 22
stop(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; var bulletArray = new Array(); _root.clip_mc.bar_mc._x = -15; _root.clearInterval(playerWeapon.reloadTimer); _root.playerWeapon.reloadTimer = 0; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.macInfo.text = ""; _root.weaponbar.gotoAndPlay(1); _root.effectHolder_mc.enabled = true; _root.gameOver = false; _root.gamewononce = false; _root.nextFrame(); _root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip; _root.clip_mc.bar_mc._x = -15; _root.reloadingNow = false; _root.changeWeapon = false; _root.reloadsound.start(0, 1); _root.bulletAmmoCounter = 0; _root.upgradesound.stop("upgradesound"); _root.bgsound.start(0, 999); i = 0; while (i < 199) { _root.bellHolder["bell_a" + i].removeMovieClip(); _root.bellHolder["coinbell_a" + i].removeMovieClip(); _root.bellHolder["barbell_a" + i].removeMovieClip(); _root.bellHolder["bloodbell_a" + i].removeMovieClip(); i++; } g = 0; while (g < 199) { _root.bellHolder["bell_b" + g].removeMovieClip(); _root.bellHolder["coin2bell_b" + g].removeMovieClip(); _root.bellHolder["bar2bell_b" + g].removeMovieClip(); _root.bellHolder["blood2bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 199) { _root.bellHolder["bell_c" + h].removeMovieClip(); _root.bellHolder["coin3bell_c" + h].removeMovieClip(); _root.bellHolder["bar3bell_c" + h].removeMovieClip(); _root.bellHolder["blood3bell_c" + h].removeMovieClip(); _root.bellHolder["enembulletbell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 199) { _root.bellHolder["bell_d" + j].removeMovieClip(); _root.bellHolder["coin4bell_d" + j].removeMovieClip(); _root.bellHolder["bar4bell_d" + j].removeMovieClip(); _root.bellHolder["blood4bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 199) { _root.bellHolder["bell_e" + k].removeMovieClip(); _root.bellHolder["coin5bell_e" + k].removeMovieClip(); _root.bellHolder["bar5bell_e" + k].removeMovieClip(); _root.bellHolder["blood5bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 199) { _root.bellHolder["bell_f" + l].removeMovieClip(); _root.bellHolder["coin6bell_f" + l].removeMovieClip(); _root.bellHolder["bar6bell_f" + l].removeMovieClip(); _root.bellHolder["blood6bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 199) { _root.bellHolder["bell_g" + m].removeMovieClip(); _root.bellHolder["coin7bell_g" + m].removeMovieClip(); _root.bellHolder["bar7bell_g" + m].removeMovieClip(); _root.bellHolder["blood7bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 199) { _root.bellHolder["bell_h" + n].removeMovieClip(); _root.bellHolder["coin8bell_h" + n].removeMovieClip(); _root.bellHolder["bar8bell_h" + n].removeMovieClip(); _root.bellHolder["blood8bell_h" + n].removeMovieClip(); _root.bellHolder["enembulletbell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 199) { _root.bellHolder["bell_i" + o].removeMovieClip(); _root.bellHolder["coin9bell_i" + o].removeMovieClip(); _root.bellHolder["bar9bell_i" + o].removeMovieClip(); _root.bellHolder["blood9bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 199) { _root.bellHolder["bell_j" + p].removeMovieClip(); _root.bellHolder["coin10bell_j" + p].removeMovieClip(); _root.bellHolder["bar10bell_j" + p].removeMovieClip(); _root.bellHolder["blood10bell_j" + p].removeMovieClip(); p++; } q = 0; while (q < 199) { _root.bellHolder["bell_z" + q].removeMovieClip(); _root.bellHolder["coin13bell_z" + q].removeMovieClip(); _root.bellHolder["bar13bell_z" + q].removeMovieClip(); _root.bellHolder["blood13bell_z" + q].removeMovieClip(); q++; } r = 0; while (r < 2999) { _root.bellHolder["bullet" + r].removeMovieClip(); r++; } _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); if (((_root.momAllyBought && (!_root.tiponce)) || (_root.dadAllyBought && (!_root.tiponce))) || (_root.sisAllyBought && (!_root.tiponce))) { _root.showIconHow(); _root.tiponce = true; } this.removeMovieClip();
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1507 MovieClip Frame 1
var timeLeft = 9000; this.onEnterFrame = function () { this.timeLeft--; this._x = this._x - 0.7; if (this.timeLeft == 0) { this.removeMovieClip(); } };
Symbol 1511 MovieClip Frame 1
var timeLeft = 9000; this.onEnterFrame = function () { this.timeLeft--; this._y = this._y - 0.7; if (this.timeLeft == 0) { this.removeMovieClip(); } };
Symbol 1515 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 2
System.security.allowInsecureDomain("http://www.notdoppler.com"); System.security.allowDomain("http://www.notdoppler.com"); this.createEmptyMovieClip("highscores", this.getNextHighestDepth()); _root.hs_hash = (("fl3m_uP_Ebri8zi8#" + _root.hs_game) + _root.hs_score) + "2I2RI3tH6ahl?"; this.highscores.loadMovie("http://www.notdoppler.com/highscores/highscores.swf");
Symbol 1519 MovieClip [wavecomplete2] Frame 1
_root.mouseClicked = false; Mouse.show(); _root.shooter._visible = false;
Instance of Symbol 1499 MovieClip in Symbol 1519 MovieClip [wavecomplete2] Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Symbol 1519 MovieClip [wavecomplete2] Frame 12
stop(); _root.mouseClicked = false; _root.effectHolder_mc.enabled = false; Mouse.show(); _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.gameOver = true; _root.shooter._visible = false; mouseListener = new Object(); mouseListener.onMouseDown = function () { Mouse.show(); _root.shooter._visible = false; gotoAndPlay (13); Mouse.removeListener(mouseListener); }; Mouse.addListener(mouseListener);
Symbol 1519 MovieClip [wavecomplete2] Frame 13
submitbtn.onRelease = function () { _root.inputhigh.html = false; gotoAndStop (14); }; _root.gatesound.start(0, 1); stop(); _root.bgsound.stop("bgsound"); _root.upgradesound.start(0, 1); buyUpgrades.weaponTrans.gotoAndPlay(2); buyUpgrades.next_btn.onRelease = function () { Mouse.hide(); _root.clicksound.start(0, 1); _root.shooter._visible = true; gotoAndPlay (19); };
Instance of Symbol 1502 MovieClip in Symbol 1519 MovieClip [wavecomplete2] Frame 13
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Instance of Symbol 1505 MovieClip "submitbtn" in Symbol 1519 MovieClip [wavecomplete2] Frame 13
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1515 MovieClip in Symbol 1519 MovieClip [wavecomplete2] Frame 13
on (release) { stopAllSounds(); _root.gameOver = true; i = 0; while (i < 999) { _root.bellHolder["bell" + i].removeMovieClip(); i++; } g = 0; while (g < 999) { _root.bellHolder["bell2" + g].removeMovieClip(); g++; } h = 0; while (h < 999) { _root.bellHolder["bell3" + h].removeMovieClip(); h++; } j = 0; while (j < 999) { _root.bellHolder["bell4" + j].removeMovieClip(); j++; } k = 0; while (k < 999) { _root.bellHolder["bell5" + k].removeMovieClip(); k++; } l = 0; while (l < 999) { _root.bellHolder["bell6" + l].removeMovieClip(); l++; } m = 0; while (m < 999) { _root.bellHolder["bell7" + m].removeMovieClip(); m++; } n = 0; while (n < 999) { _root.bellHolder["bell8" + n].removeMovieClip(); n++; } o = 0; while (o < 999) { _root.bellHolder["bell9" + o].removeMovieClip(); o++; } p = 0; while (p < 999) { _root.bellHolder["bell10" + p].removeMovieClip(); p++; } _root.gotoAndStop(3); } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1518 MovieClip "hsloader" in Symbol 1519 MovieClip [wavecomplete2] Frame 14
onClipEvent (load) { function loadHighscores() { this._visible = true; this.gotoAndStop(2); } function unloadHighscores() { this._visible = false; this.highscores.removeMovieClip(); this.gotoAndStop(1); } _root.hs_game = "zombeast"; _root.hs_score = _root.score; _root.hs_view = 2; loadHighscores(); }
Instance of Symbol 1488 MovieClip in Symbol 1519 MovieClip [wavecomplete2] Frame 14
on (release) { } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1522 MovieClip [waveNo] Frame 1
var timeLeft = 100; this.onEnterFrame = function () { this.timeLeft--; this._y = this._y - 0.5; if (this.timeLeft == 0) { this.removeMovieClip(); } };
Symbol 1530 MovieClip Frame 1
stop();
Symbol 1530 MovieClip Frame 3
stop();
Symbol 1531 MovieClip [gameOver_mc] Frame 1
Mouse.show(); _root.shooter._visible = false; _root.gpause = true;
Symbol 1531 MovieClip [gameOver_mc] Frame 2
Mouse.show(); _root.shooter._visible = false;
Symbol 1531 MovieClip [gameOver_mc] Frame 47
_root.gpause = false; _root.prev1 = "UNPAUSED"; _root.gameOver = true; _root.mouseClicked = false;
Symbol 1531 MovieClip [gameOver_mc] Frame 52
_root.gameOver = true;
Symbol 1531 MovieClip [gameOver_mc] Frame 53
_root.gpause = false; _root.prev1 = "PAUSED"; _root.mouseClicked = false; submitbtn.onRelease = function () { _root.inputhigh.html = false; gotoAndStop (54); }; continue_btn.onRelease = function () { Mouse.hide(); _root.shooter._visible = true; _root.towerLife = _root.towerLifeOrig; _root.gameOver = true; gotoAndPlay (55); _root.prevFrame(); }; stop();
Instance of Symbol 1502 MovieClip in Symbol 1531 MovieClip [gameOver_mc] Frame 53
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Instance of Symbol 1530 MovieClip "continue_btn" in Symbol 1531 MovieClip [gameOver_mc] Frame 53
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1515 MovieClip in Symbol 1531 MovieClip [gameOver_mc] Frame 53
on (release) { _root.gameOver = true; i = 0; while (i < 999) { _root.bellHolder["bell" + i].removeMovieClip(); i++; } g = 0; while (g < 999) { _root.bellHolder["bell2" + g].removeMovieClip(); g++; } h = 0; while (h < 999) { _root.bellHolder["bell3" + h].removeMovieClip(); h++; } j = 0; while (j < 999) { _root.bellHolder["bell4" + j].removeMovieClip(); j++; } k = 0; while (k < 999) { _root.bellHolder["bell5" + k].removeMovieClip(); k++; } l = 0; while (l < 999) { _root.bellHolder["bell6" + l].removeMovieClip(); l++; } m = 0; while (m < 999) { _root.bellHolder["bell7" + m].removeMovieClip(); m++; } n = 0; while (n < 999) { _root.bellHolder["bell8" + n].removeMovieClip(); n++; } o = 0; while (o < 999) { _root.bellHolder["bell9" + o].removeMovieClip(); o++; } p = 0; while (p < 999) { _root.bellHolder["bell10" + p].removeMovieClip(); p++; } _root.gotoAndStop(3); } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1488 MovieClip in Symbol 1531 MovieClip [gameOver_mc] Frame 53
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1505 MovieClip "submitbtn" in Symbol 1531 MovieClip [gameOver_mc] Frame 53
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1518 MovieClip "hsloader" in Symbol 1531 MovieClip [gameOver_mc] Frame 54
onClipEvent (load) { function loadHighscores() { this._visible = true; this.gotoAndStop(2); } function unloadHighscores() { this._visible = false; this.highscores.removeMovieClip(); this.gotoAndStop(1); } _root.hs_game = "zombeast"; _root.hs_score = _root.score; _root.hs_view = 2; loadHighscores(); }
Symbol 1531 MovieClip [gameOver_mc] Frame 55
stop(); this.removeMovieClip();
Symbol 1542 MovieClip Frame 17
stop();
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 1
stop();
Instance of Symbol 183 MovieClip in Symbol 1550 MovieClip Frame 1
on (release) { _root.clicksound.start(0, 1); _root.tutorial.gotoAndPlay(2); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1488 MovieClip in Symbol 1550 MovieClip Frame 7
on (release) { _root.clicksound.start(0, 1); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1546 MovieClip in Symbol 1550 MovieClip Frame 15
on (release) { _root.clicksound.start(0, 1); _root.creditsbox.gotoAndPlay(2); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1488 MovieClip in Symbol 1550 MovieClip Frame 30
on (release) { _root.clicksound.start(0, 1); getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1550 MovieClip Frame 46
stop();
Instance of Symbol 1549 MovieClip in Symbol 1550 MovieClip Frame 46
on (release) { _root.clicksound.start(0, 1); getURL ("http://www.notdoppler.com/highscores.php?game=zombeast", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1553 MovieClip Frame 9
stop();
Symbol 1556 MovieClip Frame 8
stop();
Symbol 1562 MovieClip Frame 7
_root.gatesound.start(0, 1);
Symbol 1562 MovieClip Frame 91
gotoAndPlay (8);
Symbol 1568 MovieClip Frame 1
stop();
Symbol 1575 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 1
stop();
Instance of Symbol 1502 MovieClip in Symbol 1578 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Instance of Symbol 1568 MovieClip in Symbol 1578 MovieClip Frame 1
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Instance of Symbol 1575 MovieClip in Symbol 1578 MovieClip Frame 1
on (release) { _root.creditsbox.gotoAndPlay(6); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1578 MovieClip Frame 2
_root.gatesound.start(0, 1);
Symbol 1578 MovieClip Frame 5
stop();
Instance of Symbol 1568 MovieClip in Symbol 1578 MovieClip Frame 5
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Instance of Symbol 1575 MovieClip in Symbol 1578 MovieClip Frame 5
on (release) { _root.clicksound.start(0, 1); _root.creditsbox.gotoAndPlay(6); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1577 MovieClip in Symbol 1578 MovieClip Frame 5
on (release) { getURL ("http://www.astiggames.com/", "_blank"); }
Instance of Symbol 1575 MovieClip in Symbol 1578 MovieClip Frame 8
on (release) { _root.creditsbox.gotoAndPlay(6); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1568 MovieClip in Symbol 1578 MovieClip Frame 12
on (release) { getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); }
Instance of Symbol 1575 MovieClip in Symbol 1578 MovieClip Frame 12
on (release) { _root.creditsbox.gotoAndPlay(6); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1600 MovieClip Frame 1
stop();
Symbol 1612 MovieClip Frame 1
stop();
Symbol 1616 MovieClip Frame 1
stop();
Symbol 1620 MovieClip Frame 1
stop();
Symbol 1626 MovieClip Frame 1
stop();
Symbol 1632 MovieClip Frame 1
stop();
Symbol 1638 MovieClip Frame 1
stop();
Symbol 1638 MovieClip Frame 2
_root.gatesound.start(0, 1);
Symbol 1638 MovieClip Frame 5
stop();
Instance of Symbol 1502 MovieClip in Symbol 1638 MovieClip Frame 5
onClipEvent (load) { this.useHandCursor = false; } on (release) { }
Instance of Symbol 1612 MovieClip in Symbol 1638 MovieClip Frame 5
on (release) { _quality = "LOW"; _root.clicksound.start(0, 1); stopAllSounds(); _root.gotoAndStop(4); this.gotoAndStop(1); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1616 MovieClip in Symbol 1638 MovieClip Frame 5
on (release) { _root.prev = "HIGH"; _quality = "MEDIUM"; _root.clicksound.start(0, 1); stopAllSounds(); _root.gotoAndStop(4); this.gotoAndStop(1); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1620 MovieClip in Symbol 1638 MovieClip Frame 5
on (release) { _quality = "HIGH"; _root.prev = "MEDS"; _root.clicksound.start(0, 1); stopAllSounds(); _root.gotoAndStop(4); this.gotoAndStop(1); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1642 MovieClip Frame 1
stop();
Symbol 1643 MovieClip Frame 11
if (_root.crates == 3) { _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 2) { _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 1) { _root.crate3.gotoAndStop(1); } this.gotoAndStop(1);
Symbol 1644 MovieClip Frame 1
stop();
Symbol 1649 MovieClip Frame 1
stop();
Symbol 1649 MovieClip Frame 2
_root.momAllyOn = true;
Symbol 1649 MovieClip Frame 3
_root.dadAllyOn = true;
Symbol 1649 MovieClip Frame 4
_root.sisAllyOn = true;
Symbol 1650 MovieClip Frame 10
if (_root.crates == 3) { _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 2) { _root.crate2.gotoAndStop(1); _root.crate3.gotoAndStop(1); } if (_root.crates == 1) { _root.crate3.gotoAndStop(1); } this.gotoAndStop(1);
Symbol 1651 MovieClip Frame 1
stop();
Symbol 1656 MovieClip Frame 1
stop();
Symbol 1656 MovieClip Frame 2
_root.momAllyOn = true;
Symbol 1656 MovieClip Frame 3
_root.dadAllyOn = true;
Symbol 1656 MovieClip Frame 4
_root.sisAllyOn = true;
Symbol 1658 MovieClip Frame 1
stop();
Symbol 1659 MovieClip Frame 1
stop();
Symbol 1671 MovieClip Frame 1
stop();
Symbol 1671 MovieClip Frame 2
stop();
Symbol 1673 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 2
stop();
Symbol 1677 MovieClip Frame 1
stop();
Symbol 1677 MovieClip Frame 2
stop();
Symbol 1679 MovieClip Frame 1
stop();
Symbol 1679 MovieClip Frame 2
stop();
Symbol 1681 MovieClip Frame 1
stop();
Symbol 1681 MovieClip Frame 2
stop();
Symbol 1683 MovieClip Frame 1
stop();
Symbol 1683 MovieClip Frame 2
stop();
Symbol 1685 MovieClip Frame 30
stop();
Symbol 1725 MovieClip Frame 1
stop();
Instance of Symbol 1725 MovieClip in Symbol 1729 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.playerWeapon.pistolon) { this.gotoAndStop(1); } else if (_root.playerWeapon.machinegunon) { this.gotoAndStop(2); } else if (_root.playerWeapon.shotgunon) { this.gotoAndStop(3); } else if (_root.playerWeapon.sniperon) { this.gotoAndStop(4); } else if (_root.playerWeapon.gatlingunon) { this.gotoAndStop(5); } else if (_root.playerWeapon.pulsegunon) { this.gotoAndStop(6); } else if (_root.playerWeapon.flamethroweron) { this.gotoAndStop(7); } }
Symbol 1733 MovieClip Frame 1
stop();
Instance of Symbol 1327 MovieClip "btn_11" in Symbol 1733 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1735 MovieClip Frame 1
stop();
Instance of Symbol 1327 MovieClip "btn_11" in Symbol 1735 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1737 MovieClip Frame 1
stop();
Instance of Symbol 1327 MovieClip "btn_11" in Symbol 1737 MovieClip Frame 1
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Symbol 1754 MovieClip Frame 1
stop();
Symbol 1754 MovieClip Frame 2
stop();
Symbol 1769 MovieClip Frame 1
stop();
Symbol 1773 MovieClip Frame 1
stop();
Symbol 1778 MovieClip Frame 1
stop();
Symbol 1781 MovieClip Frame 1
stop();
Symbol 1786 MovieClip Frame 1
stop();
Symbol 1786 MovieClip Frame 2
this.onEnterFrame = function () { if (_quality == "MEDIUM") { quality_btn.qualitytext = "Med"; } else if (_quality == "LOW") { quality_btn.qualitytext = "Low"; } else if (_quality == "HIGH") { quality_btn.qualitytext = "Hi"; } }; quitbtn.onRelease = function () { gotoAndStop (3); _root.clicksound.start(0, 1); };
Instance of Symbol 1515 MovieClip "quitbtn" in Symbol 1786 MovieClip Frame 2
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1488 MovieClip "moregames" in Symbol 1786 MovieClip Frame 2
on (release) { _root.clicksound.start(0, 1); getURL ("http://www.notdoppler.com/?ref=zombeaststampede", "_blank"); } on (rollOver) { _root.hoversound.start(0, 1); this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (releaseOutside) { this.gotoAndStop(1); }
Instance of Symbol 1769 MovieClip "quality_btn" in Symbol 1786 MovieClip Frame 2
on (release) { _root.clicksound.start(0, 1); if ((_quality == "MEDIUM") && (_root.prev == "HIGH")) { _quality = "LOW"; _root.pause_mc.quality_btn.qualitytext = "Low"; } else if ((_quality == "MEDIUM") && (_root.prev == "LOW")) { _quality = "HIGH"; _root.prev = "MEDS"; _root.pause_mc.quality_btn.qualitytext = "Hi"; } else if ((_quality == "HIGH") && (_root.prev == "MEDS")) { _quality = "MEDIUM"; _root.quality_btn.qualitytext = "Med"; _root.prev = "HIGH"; _quality = "MEDIUM"; trace("1"); } else if (_quality == "LOW") { _quality = "MEDIUM"; _root.prev = "LOW"; trace("2"); _root.pause_mc.quality_btn.qualitytext = "Med"; } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1773 MovieClip "unpause" in Symbol 1786 MovieClip Frame 2
on (release) { Mouse.hide(); _root.clicksound.start(0, 1); _root.shooter._visible = true; if ((!restart) || (!winonce)) { if (_root.prev1 == "PAUSED") { _root.gpause = false; _root.prev1 = "UNPAUSED"; _root.pause_mc.gotoAndStop(1); } else if ((_root.prev1 = "UNPAUSED")) { _root.gpause = true; _root.pause_mc.gotoAndStop(2); _root.prev1 = "PAUSED"; } } } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Symbol 1786 MovieClip Frame 3
nobtn.onRelease = function () { _root.clicksound.start(0, 1); gotoAndStop (2); };
Instance of Symbol 1778 MovieClip in Symbol 1786 MovieClip Frame 3
on (release) { _root.clicksound.start(0, 1); _root.gpause = false; stopAllSounds(); _root.prev1 = "UNPAUSED"; _root.gameOver = true; _root.gameoverHit(_root.temporaryBullet); g = 0; while (g < 99) { _root.bellHolder["bell_b" + g].removeMovieClip(); _root.bellHolder["coin2bell_b" + g].removeMovieClip(); _root.bellHolder["bar2bell_b" + g].removeMovieClip(); _root.bellHolder["blood2bell_b" + g].removeMovieClip(); g++; } h = 0; while (h < 99) { _root.bellHolder["bell_c" + h].removeMovieClip(); _root.bellHolder["coin3bell_c" + h].removeMovieClip(); _root.bellHolder["bar3bell_c" + h].removeMovieClip(); _root.bellHolder["blood3bell_c" + h].removeMovieClip(); _root.bellHolder["enembulletbell_c" + h].removeMovieClip(); h++; } j = 0; while (j < 99) { _root.bellHolder["bell_d" + j].removeMovieClip(); _root.bellHolder["coin4bell_d" + j].removeMovieClip(); _root.bellHolder["bar4bell_d" + j].removeMovieClip(); _root.bellHolder["blood4bell_d" + j].removeMovieClip(); j++; } k = 0; while (k < 99) { _root.bellHolder["bell_e" + k].removeMovieClip(); _root.bellHolder["coin5bell_e" + k].removeMovieClip(); _root.bellHolder["bar5bell_e" + k].removeMovieClip(); _root.bellHolder["blood5bell_e" + k].removeMovieClip(); k++; } l = 0; while (l < 99) { _root.bellHolder["bell_f" + l].removeMovieClip(); _root.bellHolder["coin6bell_f" + l].removeMovieClip(); _root.bellHolder["bar6bell_f" + l].removeMovieClip(); _root.bellHolder["blood6bell_f" + l].removeMovieClip(); l++; } m = 0; while (m < 99) { _root.bellHolder["bell_g" + m].removeMovieClip(); _root.bellHolder["coin7bell_g" + m].removeMovieClip(); _root.bellHolder["bar7bell_g" + m].removeMovieClip(); _root.bellHolder["blood7bell_g" + m].removeMovieClip(); m++; } n = 0; while (n < 99) { _root.bellHolder["bell_h" + n].removeMovieClip(); _root.bellHolder["coin8bell_h" + n].removeMovieClip(); _root.bellHolder["bar8bell_h" + n].removeMovieClip(); _root.bellHolder["blood8bell_h" + n].removeMovieClip(); _root.bellHolder["enembulletbell_h" + n].removeMovieClip(); n++; } o = 0; while (o < 99) { _root.bellHolder["bell_i" + o].removeMovieClip(); _root.bellHolder["coin9bell_i" + o].removeMovieClip(); _root.bellHolder["bar9bell_i" + o].removeMovieClip(); _root.bellHolder["blood9bell_i" + o].removeMovieClip(); o++; } p = 0; while (p < 99) { _root.bellHolder["bell_j" + p].removeMovieClip(); _root.bellHolder["coin10bell_j" + p].removeMovieClip(); _root.bellHolder["bar10bell_j" + p].removeMovieClip(); _root.bellHolder["blood10bell_j" + p].removeMovieClip(); p++; } q = 0; while (q < 99) { _root.bellHolder["bell_z" + q].removeMovieClip(); _root.bellHolder["coin13bell_z" + q].removeMovieClip(); _root.bellHolder["bar13bell_z" + q].removeMovieClip(); _root.bellHolder["blood13bell_z" + q].removeMovieClip(); q++; } r = 0; while (r < 999) { _root.bellHolder["bullet" + r].removeMovieClip(); r++; } _root.gotoAndStop(3); } on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Instance of Symbol 1781 MovieClip "nobtn" in Symbol 1786 MovieClip Frame 3
on (rollOver) { Mouse.show(); _root.hoversound.start(0, 1); _root.shooter._visible = false; this.gotoAndStop(2); } on (rollOut) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); } on (releaseOutside) { Mouse.hide(); _root.shooter._visible = true; this.gotoAndStop(1); }
Symbol 1787 MovieClip Frame 1
stop();
Symbol 1787 MovieClip Frame 2
_root.player_mc._x = _root.player_mc._x + _root.shakeQuan; _root.bellHolder._x = _root.bellHolder._x + _root.shakeQuan; _root.effectHolder_mc._x = _root.effectHolder_mc._x + _root.shakeQuan; _root.player_mc._y = _root.player_mc._y + (_root.shakeQuan * 2); _root.bellHolder._y = _root.bellHolder._y + (_root.shakeQuan * 2); _root.effectHolder_mc._y = _root.effectHolder_mc._y + (_root.shakeQuan * 2);
Symbol 1787 MovieClip Frame 3
_root.player_mc._x = _root.player_mc._x - _root.shakeQuan; _root.bellHolder._x = _root.bellHolder._x - _root.shakeQuan; _root.effectHolder_mc._x = _root.effectHolder_mc._x - _root.shakeQuan; _root.player_mc._y = _root.player_mc._y - (_root.shakeQuan * 2); _root.bellHolder._y = _root.bellHolder._y - (_root.shakeQuan * 2); _root.effectHolder_mc._y = _root.effectHolder_mc._y - (_root.shakeQuan * 2);
Symbol 1787 MovieClip Frame 4
_root.player_mc._x = _root.player_mc._x + _root.shakeQuan; _root.bellHolder._x = _root.bellHolder._x + _root.shakeQuan; _root.effectHolder_mc._x = _root.effectHolder_mc._x + _root.shakeQuan; _root.player_mc._y = _root.player_mc._y + (_root.shakeQuan * 2); _root.bellHolder._y = _root.bellHolder._y + (_root.shakeQuan * 2); _root.effectHolder_mc._y = _root.effectHolder_mc._y + (_root.shakeQuan * 2);
Symbol 1787 MovieClip Frame 5
_root.player_mc._x = _root.player_mc._x - _root.shakeQuan; _root.bellHolder._x = _root.bellHolder._x - _root.shakeQuan; _root.effectHolder_mc._x = _root.effectHolder_mc._x - _root.shakeQuan; _root.player_mc._y = _root.player_mc._y - (_root.shakeQuan * 2); _root.bellHolder._y = _root.bellHolder._y - (_root.shakeQuan * 2); _root.effectHolder_mc._y = _root.effectHolder_mc._y - (_root.shakeQuan * 2);
Symbol 1789 MovieClip Frame 153
stop(); _root.showMessage();
Symbol 1791 MovieClip Frame 13
stop();

Library Items

Symbol 1 Sound [fleshsound]
Symbol 2 Sound [3]
Symbol 3 Sound [2]
Symbol 4 Sound [1]
Symbol 5 Sound [machgunsound]
Symbol 6 Sound [gatlingsound]
Symbol 7 Sound [zombiesound]
Symbol 8 Sound [hoversound]
Symbol 9 Sound [snipersound]
Symbol 10 Sound [reloadsound]
Symbol 11 Sound [gunsound]
Symbol 12 Sound [flamesound]
Symbol 13 Sound [errorsound]
Symbol 14 Sound [elecsound]
Symbol 15 Sound [crashsound]
Symbol 16 Sound [coinsound]
Symbol 17 Sound [clicksound]
Symbol 18 Sound [registersound]
Symbol 19 Sound [gatesound]Used by:1531
Symbol 20 BitmapUsed by:21 22
Symbol 21 GraphicUses:20Used by:59
Symbol 22 GraphicUses:20Used by:59
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:59
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:59
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:59
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:59
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:59
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:59
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:59
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:59
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:59
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:59
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:59
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:59
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:59
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:59
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:59
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:59
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:59
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 MovieClipUses:21 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58Used by:60
Symbol 60 MovieClip [bomb_mc]Uses:59
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:63 64
Symbol 63 MovieClip [spark2]Uses:62
Symbol 64 MovieClip [spark]Uses:62
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:70 1523 1760
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69
Symbol 69 MovieClipUses:68Used by:70 1523
Symbol 70 MovieClip [bosshealthbar]Uses:66 69
Symbol 71 BitmapUsed by:72 1622 1741
Symbol 72 GraphicUses:71Used by:73
Symbol 73 MovieClipUses:72Used by:74 1383
Symbol 74 MovieClip [coin2]Uses:73
Symbol 75 BitmapUsed by:76
Symbol 76 GraphicUses:75Used by:77
Symbol 77 MovieClip [coin3]Uses:76
Symbol 78 ShapeTweeningUsed by:80
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClip [earthquake]Uses:78 79
Symbol 81 FontUsed by:82 83 186 187 188 189 1665
Symbol 82 EditableTextUses:81Used by:84
Symbol 83 TextUses:81Used by:84
Symbol 84 MovieClip [fps]Uses:82 83Used by:Timeline
Symbol 85 FontUsed by:86 87 1282 1283 1284 1290 1291 1292 1293 1311 1312 1323 1354 1355 1356 1452 1453 1455 1457 1459 1461 1466 1467 1468 1471 1472 1473 1474 1476 1490 1500 1508 1584 1585 1602 1603 1604 1664 1738 1739 1740 1755 1756 1757 1758 1761 1762 1782 1783 1784 1797 1798 1799 1800 1802 1803 1804 1805 1806 1808 1809 1810 1812 1813 1814 1815 1816 1818 1819 1820 1822 1823 1824 1825 1826
Symbol 86 EditableTextUses:85Used by:88
Symbol 87 EditableTextUses:85Used by:88
Symbol 88 MovieClip [notbuy_mc]Uses:86 87Used by:Timeline
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:109
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:109
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:109
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:109
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:109
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:109
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:109
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:109
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:109
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:109
Symbol 109 MovieClip [flame]Uses:90 92 94 96 98 100 102 104 106 108Used by:1644 1651
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:112
Symbol 112 MovieClipUses:111Used by:113
Symbol 113 MovieClip [bullets2]Uses:112Used by:1532
Symbol 114 BitmapUsed by:115 1439
Symbol 115 GraphicUses:114Used by:116 1443
Symbol 116 MovieClip [bullets]Uses:115Used by:1532
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:123
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:123
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:123
Symbol 123 MovieClip [flame_mc]Uses:118 120 122Used by:1278
Symbol 124 BitmapUsed by:129
Symbol 125 BitmapUsed by:129
Symbol 126 BitmapUsed by:129
Symbol 127 BitmapUsed by:129
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:124 125 126 127 128Used by:Timeline
Symbol 130 BitmapUsed by:131 142 147 151 601 607 612
Symbol 131 GraphicUses:130Used by:152 613
Symbol 132 BitmapUsed by:133 143 148 151 596 602 607 612
Symbol 133 GraphicUses:132Used by:152
Symbol 134 BitmapUsed by:135 144 151 597 603 608 612
Symbol 135 GraphicUses:134Used by:152
Symbol 136 BitmapUsed by:137 145 149 151 598 604 609 612
Symbol 137 GraphicUses:136Used by:152
Symbol 138 BitmapUsed by:139 151 599 605 610 612
Symbol 139 GraphicUses:138Used by:152
Symbol 140 BitmapUsed by:141 146 150 151 600 606 611 612
Symbol 141 GraphicUses:140Used by:152
Symbol 142 GraphicUses:130Used by:152
Symbol 143 GraphicUses:132Used by:152
Symbol 144 GraphicUses:134Used by:152
Symbol 145 GraphicUses:136Used by:152
Symbol 146 GraphicUses:140Used by:152
Symbol 147 GraphicUses:130Used by:152
Symbol 148 GraphicUses:132Used by:152
Symbol 149 GraphicUses:136Used by:152
Symbol 150 GraphicUses:140Used by:152
Symbol 151 GraphicUses:140 138 136 134 132 130Used by:152
Symbol 152 MovieClipUses:131 133 135 137 139 141 142 143 144 145 146 147 148 149 150 151Used by:614 1507  Timeline
Symbol 153 GraphicUsed by:254 264 313 323 375 391 442 454 499 500 534 542 545 594 613 678 679 738 739 781 792 854 855 870 878 913 914 952 953 1123 1124  Timeline
Symbol 154 BitmapUsed by:155 166 171 175 584 588 593
Symbol 155 GraphicUses:154Used by:176 594
Symbol 156 BitmapUsed by:157 167 172 175 578 585 588 593
Symbol 157 GraphicUses:156Used by:176
Symbol 158 BitmapUsed by:159 168 175 579 589 593
Symbol 159 GraphicUses:158Used by:176
Symbol 160 BitmapUsed by:161 169 173 175 580 586 590 593
Symbol 161 GraphicUses:160Used by:176
Symbol 162 BitmapUsed by:163 175 581 591 593
Symbol 163 GraphicUses:162Used by:176
Symbol 164 BitmapUsed by:165 170 174 175 582 587 592 593
Symbol 165 GraphicUses:164Used by:176
Symbol 166 GraphicUses:154Used by:176
Symbol 167 GraphicUses:156Used by:176
Symbol 168 GraphicUses:158Used by:176
Symbol 169 GraphicUses:160Used by:176
Symbol 170 GraphicUses:164Used by:176
Symbol 171 GraphicUses:154Used by:176
Symbol 172 GraphicUses:156Used by:176
Symbol 173 GraphicUses:160Used by:176
Symbol 174 GraphicUses:164Used by:176
Symbol 175 GraphicUses:164 162 160 158 156 154Used by:176
Symbol 176 MovieClipUses:155 157 159 161 163 165 166 167 168 169 170 171 172 173 174 175Used by:595 1507  Timeline
Symbol 177 FontUsed by:178 1516 1517 1788
Symbol 178 EditableTextUses:177Used by:Timeline
Symbol 179 GraphicUsed by:183
Symbol 180 FontUsed by:181 1504 1528 1529 1544 1548 1564 1565 1566 1569 1570 1571 1572 1574 1576 1610 1611 1614 1615 1618 1619 1759 1765 1768 1777 1780
Symbol 181 TextUses:180Used by:183
Symbol 182 GraphicUsed by:183 1575 1612 1616 1620 1778 1781
Symbol 183 MovieClipUses:179 181 182Used by:1550  Timeline
Symbol 184 GraphicUsed by:185
Symbol 185 MovieClipUses:184Used by:Timeline
Symbol 186 TextUses:81Used by:190
Symbol 187 TextUses:81Used by:190
Symbol 188 TextUses:81Used by:190 207 1567 1568
Symbol 189 TextUses:81Used by:190 207 1567 1568
Symbol 190 MovieClipUses:186 187 188 189Used by:Timeline
Symbol 191 ShapeTweeningUsed by:209
Symbol 192 GraphicUsed by:196 1317 1763 1791
Symbol 193 ShapeTweeningUsed by:195 196
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:193 194Used by:196
Symbol 196 ButtonUses:192 195 193Used by:209
Symbol 197 GraphicUsed by:209
Symbol 198 GraphicUsed by:209
Symbol 199 ShapeTweeningUsed by:209
Symbol 200 GraphicUsed by:209
Symbol 201 ShapeTweeningUsed by:209
Symbol 202 GraphicUsed by:209
Symbol 203 ShapeTweeningUsed by:209
Symbol 204 GraphicUsed by:209
Symbol 205 ShapeTweeningUsed by:209
Symbol 206 GraphicUsed by:209
Symbol 207 MovieClipUses:188 189Used by:209
Symbol 208 ShapeTweeningUsed by:209
Symbol 209 MovieClipUses:191 196 197 198 199 200 201 202 203 204 205 206 207 208 SS2Used by:Timeline
Symbol 210 GraphicUsed by:1353 1532 1642 1747 1760
Symbol 211 BitmapUsed by:212 227 233 234 237 245 250 251 253
Symbol 212 GraphicUses:211Used by:236
Symbol 213 BitmapUsed by:214 230 234 238 245 250 252 253 261
Symbol 214 GraphicUses:213Used by:236
Symbol 215 BitmapUsed by:216 225 239 245 250 253 255 256 259
Symbol 216 GraphicUses:215Used by:236
Symbol 217 BitmapUsed by:218 229 235 240 246 250 253 255 256 259
Symbol 218 GraphicUses:217Used by:236
Symbol 219 BitmapUsed by:220 226 228 232 235 241 247 250 253 257 260
Symbol 220 GraphicUses:219Used by:236 263
Symbol 221 BitmapUsed by:222 231 235 242 248 250 253 262
Symbol 222 GraphicUses:221Used by:236
Symbol 223 BitmapUsed by:224 243 249 250 253 258 260
Symbol 224 GraphicUses:223Used by:236
Symbol 225 GraphicUses:215Used by:236
Symbol 226 GraphicUses:219Used by:236
Symbol 227 GraphicUses:211Used by:236 263
Symbol 228 GraphicUses:219Used by:236
Symbol 229 GraphicUses:217Used by:236
Symbol 230 GraphicUses:213Used by:236
Symbol 231 GraphicUses:221Used by:236
Symbol 232 GraphicUses:219Used by:236
Symbol 233 GraphicUses:211Used by:236
Symbol 234 GraphicUses:213 211Used by:236
Symbol 235 GraphicUses:221 219 217Used by:236
Symbol 236 MovieClipUses:212 214 216 218 220 222 224 225 226 227 228 229 230 231 232 233 234 235Used by:264 1507
Symbol 237 GraphicUses:211Used by:254 263
Symbol 238 GraphicUses:213Used by:254 263
Symbol 239 GraphicUses:215Used by:254
Symbol 240 GraphicUses:217Used by:254
Symbol 241 GraphicUses:219Used by:254
Symbol 242 GraphicUses:221Used by:254 263
Symbol 243 GraphicUses:223Used by:254 263
Symbol 244 SoundUsed by:254 534 1123
Symbol 245 GraphicUses:215 213 211Used by:254
Symbol 246 GraphicUses:217Used by:254
Symbol 247 GraphicUses:219Used by:254
Symbol 248 GraphicUses:221Used by:254
Symbol 249 GraphicUses:223Used by:254
Symbol 250 GraphicUses:223 221 219 217 215 213 211Used by:254
Symbol 251 GraphicUses:211Used by:254
Symbol 252 GraphicUses:213Used by:254
Symbol 253 GraphicUses:223 221 219 217 215 213 211Used by:254
Symbol 254 MovieClipUses:153 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253Used by:264
Symbol 255 GraphicUses:217 215Used by:263
Symbol 256 GraphicUses:217 215Used by:263
Symbol 257 GraphicUses:219Used by:263
Symbol 258 GraphicUses:223Used by:263
Symbol 259 GraphicUses:217 215Used by:263
Symbol 260 GraphicUses:223 219Used by:263
Symbol 261 GraphicUses:213Used by:263
Symbol 262 GraphicUses:221Used by:263
Symbol 263 MovieClipUses:238 237 255 220 243 242 227 256 257 258 259 260 261 262Used by:264 1638
Symbol 264 MovieClip [enemy_mc]Uses:153 236 254 263Used by:1532
Symbol 265 BitmapUsed by:266 283 288 297 305 312 315 318 320
Symbol 266 GraphicUses:265Used by:287
Symbol 267 BitmapUsed by:268 282 289 298 306 312 317
Symbol 268 GraphicUses:267Used by:287
Symbol 269 BitmapUsed by:270 285 290 299 307 312
Symbol 270 GraphicUses:269Used by:287
Symbol 271 BitmapUsed by:272 281 285 291 300 308 312 314
Symbol 272 GraphicUses:271Used by:287
Symbol 273 BitmapUsed by:274 285 292 301 309 312
Symbol 274 GraphicUses:273Used by:287
Symbol 275 BitmapUsed by:276 293 302 309 312 314
Symbol 276 GraphicUses:275Used by:287
Symbol 277 BitmapUsed by:278 284 286 294 303 310 312 316 319 321
Symbol 278 GraphicUses:277Used by:287
Symbol 279 BitmapUsed by:280 286 295 304 311 312
Symbol 280 GraphicUses:279Used by:287
Symbol 281 GraphicUses:271Used by:287
Symbol 282 GraphicUses:267Used by:287
Symbol 283 GraphicUses:265Used by:287
Symbol 284 GraphicUses:277Used by:287
Symbol 285 GraphicUses:273 271 269Used by:287
Symbol 286 GraphicUses:279 277Used by:287
Symbol 287 MovieClipUses:266 268 270 272 274 276 278 280 281 282 283 284 285 286Used by:323 1507 1638
Symbol 288 GraphicUses:265Used by:313 322
Symbol 289 GraphicUses:267Used by:313 322
Symbol 290 GraphicUses:269Used by:313 322
Symbol 291 GraphicUses:271Used by:313
Symbol 292 GraphicUses:273Used by:313 322
Symbol 293 GraphicUses:275Used by:313
Symbol 294 GraphicUses:277Used by:313 322
Symbol 295 GraphicUses:279Used by:313 322
Symbol 296 SoundUsed by:313 375 1022 1080
Symbol 297 GraphicUses:265Used by:313
Symbol 298 GraphicUses:267Used by:313
Symbol 299 GraphicUses:269Used by:313
Symbol 300 GraphicUses:271Used by:313
Symbol 301 GraphicUses:273Used by:313
Symbol 302 GraphicUses:275Used by:313
Symbol 303 GraphicUses:277Used by:313
Symbol 304 GraphicUses:279Used by:313
Symbol 305 GraphicUses:265Used by:313
Symbol 306 GraphicUses:267Used by:313
Symbol 307 GraphicUses:269Used by:313
Symbol 308 GraphicUses:271Used by:313
Symbol 309 GraphicUses:275 273Used by:313
Symbol 310 GraphicUses:277Used by:313
Symbol 311 GraphicUses:279Used by:313
Symbol 312 GraphicUses:279 277 275 273 271 269 267 265Used by:313
Symbol 313 MovieClipUses:153 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312Used by:323
Symbol 314 GraphicUses:275 271Used by:322
Symbol 315 GraphicUses:265Used by:322
Symbol 316 GraphicUses:277Used by:322
Symbol 317 GraphicUses:267Used by:322
Symbol 318 GraphicUses:265Used by:322
Symbol 319 GraphicUses:277Used by:322
Symbol 320 GraphicUses:265Used by:322
Symbol 321 GraphicUses:277Used by:322
Symbol 322 MovieClipUses:288 289 290 314 295 292 294 315 316 317 318 319 320 321Used by:323
Symbol 323 MovieClip [enemy_mc2]Uses:153 287 313 322Used by:1532
Symbol 324 BitmapUsed by:325 342 376 383 386 388
Symbol 325 GraphicUses:324Used by:346
Symbol 326 BitmapUsed by:327 341 377 385
Symbol 327 GraphicUses:326Used by:346
Symbol 328 BitmapUsed by:329 344 378
Symbol 329 GraphicUses:328Used by:346
Symbol 330 BitmapUsed by:331 340 344 379
Symbol 331 GraphicUses:330Used by:346
Symbol 332 BitmapUsed by:333 344 382
Symbol 333 GraphicUses:332Used by:346
Symbol 334 BitmapUsed by:335 379
Symbol 335 GraphicUses:334Used by:346
Symbol 336 BitmapUsed by:337 343 345 381 384 387 389
Symbol 337 GraphicUses:336Used by:346
Symbol 338 BitmapUsed by:339 345 380
Symbol 339 GraphicUses:338Used by:346
Symbol 340 GraphicUses:330Used by:346
Symbol 341 GraphicUses:326Used by:346
Symbol 342 GraphicUses:324Used by:346
Symbol 343 GraphicUses:336Used by:346
Symbol 344 GraphicUses:332 330 328Used by:346
Symbol 345 GraphicUses:338 336Used by:346
Symbol 346 MovieClipUses:325 327 329 331 333 335 337 339 340 341 342 343 344 345Used by:391 1507
Symbol 347 BitmapUsed by:348 361 368 374
Symbol 348 GraphicUses:347Used by:375
Symbol 349 BitmapUsed by:350 362 369 374
Symbol 350 GraphicUses:349Used by:375
Symbol 351 BitmapUsed by:352 363 370 374
Symbol 352 GraphicUses:351Used by:375
Symbol 353 BitmapUsed by:356 365 371 374
Symbol 354 BitmapUsed by:356 365 371 374
Symbol 355 BitmapUsed by:356 364 371 374
Symbol 356 GraphicUses:353 354 355Used by:375
Symbol 357 BitmapUsed by:358 366 372 374
Symbol 358 GraphicUses:357Used by:375
Symbol 359 BitmapUsed by:360 367 373 374
Symbol 360 GraphicUses:359Used by:375
Symbol 361 GraphicUses:347Used by:375
Symbol 362 GraphicUses:349Used by:375
Symbol 363 GraphicUses:351Used by:375
Symbol 364 GraphicUses:355Used by:375
Symbol 365 GraphicUses:353 354Used by:375
Symbol 366 GraphicUses:357Used by:375
Symbol 367 GraphicUses:359Used by:375
Symbol 368 GraphicUses:347Used by:375
Symbol 369 GraphicUses:349Used by:375
Symbol 370 GraphicUses:351Used by:375
Symbol 371 GraphicUses:353 354 355Used by:375
Symbol 372 GraphicUses:357Used by:375
Symbol 373 GraphicUses:359Used by:375
Symbol 374 GraphicUses:359 357 353 354 355 351 349 347Used by:375
Symbol 375 MovieClipUses:153 348 350 352 356 358 360 296 361 362 363 364 365 366 367 368 369 370 371 372 373 374Used by:391
Symbol 376 GraphicUses:324Used by:390
Symbol 377 GraphicUses:326Used by:390
Symbol 378 GraphicUses:328Used by:390
Symbol 379 GraphicUses:334 330Used by:390
Symbol 380 GraphicUses:338Used by:390
Symbol 381 GraphicUses:336Used by:390
Symbol 382 GraphicUses:332Used by:390
Symbol 383 GraphicUses:324Used by:390
Symbol 384 GraphicUses:336Used by:390
Symbol 385 GraphicUses:326Used by:390
Symbol 386 GraphicUses:324Used by:390
Symbol 387 GraphicUses:336Used by:390
Symbol 388 GraphicUses:324Used by:390
Symbol 389 GraphicUses:336Used by:390
Symbol 390 MovieClipUses:376 377 378 379 380 381 382 383 384 385 386 387 388 389Used by:391
Symbol 391 MovieClip [enemy_mc2b]Uses:153 346 375 390Used by:1532
Symbol 392 BitmapUsed by:393 412 422 429 435 441 444 447
Symbol 393 GraphicUses:392Used by:411
Symbol 394 BitmapUsed by:395 407 410 412 423 429 435 441 443
Symbol 395 GraphicUses:394Used by:411
Symbol 396 BitmapUsed by:397 408 413 417 420 424 430 436 441 449 451
Symbol 397 GraphicUses:396Used by:411
Symbol 398 BitmapUsed by:399 414 428 434 440 441 446 448 452
Symbol 399 GraphicUses:398Used by:411
Symbol 400 BitmapUsed by:401 406 415 425 431 437 441 450 452
Symbol 401 GraphicUses:400Used by:411
Symbol 402 BitmapUsed by:403 416 426 432 438 441
Symbol 403 GraphicUses:402Used by:411
Symbol 404 BitmapUsed by:405 409 414 427 433 439 441 445
Symbol 405 GraphicUses:404Used by:411
Symbol 406 GraphicUses:400Used by:411
Symbol 407 GraphicUses:394Used by:411
Symbol 408 GraphicUses:396Used by:411
Symbol 409 GraphicUses:404Used by:411
Symbol 410 GraphicUses:394Used by:411
Symbol 411 MovieClipUses:393 395 397 399 401 403 405 406 407 408 409 410Used by:454 1507
Symbol 412 GraphicUses:392 394Used by:421
Symbol 413 GraphicUses:396Used by:421
Symbol 414 GraphicUses:398 404Used by:421
Symbol 415 GraphicUses:400Used by:421 453
Symbol 416 GraphicUses:402Used by:421 453
Symbol 417 GraphicUses:396Used by:421
Symbol 418 BitmapUsed by:419
Symbol 419 GraphicUses:418Used by:421
Symbol 420 GraphicUses:396Used by:421 453
Symbol 421 MovieClipUses:412 413 414 415 416 417 419 420Used by:454
Symbol 422 GraphicUses:392Used by:442
Symbol 423 GraphicUses:394Used by:442
Symbol 424 GraphicUses:396Used by:442
Symbol 425 GraphicUses:400Used by:442
Symbol 426 GraphicUses:402Used by:442
Symbol 427 GraphicUses:404Used by:442
Symbol 428 GraphicUses:398Used by:442
Symbol 429 GraphicUses:394 392Used by:442
Symbol 430 GraphicUses:396Used by:442
Symbol 431 GraphicUses:400Used by:442
Symbol 432 GraphicUses:402Used by:442
Symbol 433 GraphicUses:404Used by:442
Symbol 434 GraphicUses:398Used by:442
Symbol 435 GraphicUses:394 392Used by:442
Symbol 436 GraphicUses:396Used by:442
Symbol 437 GraphicUses:400Used by:442
Symbol 438 GraphicUses:402Used by:442
Symbol 439 GraphicUses:404Used by:442
Symbol 440 GraphicUses:398Used by:442
Symbol 441 GraphicUses:398 404 402 400 396 394 392Used by:442
Symbol 442 MovieClipUses:153 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 SS3Used by:454
Symbol 443 GraphicUses:394Used by:453
Symbol 444 GraphicUses:392Used by:453
Symbol 445 GraphicUses:404Used by:453
Symbol 446 GraphicUses:398Used by:453
Symbol 447 GraphicUses:392Used by:453
Symbol 448 GraphicUses:398Used by:453
Symbol 449 GraphicUses:396Used by:453
Symbol 450 GraphicUses:400Used by:453
Symbol 451 GraphicUses:396Used by:453
Symbol 452 GraphicUses:400 398Used by:453
Symbol 453 MovieClipUses:443 444 420 445 446 415 416 447 448 449 450 451 452Used by:454 1638
Symbol 454 MovieClip [enemy_mc3]Uses:153 411 421 442 453Used by:1532
Symbol 455 BitmapUsed by:456 473 482 484 492 497 498
Symbol 456 GraphicUses:455Used by:483
Symbol 457 BitmapUsed by:458 474 478 482 485 493 497 498
Symbol 458 GraphicUses:457Used by:483
Symbol 459 BitmapUsed by:460 471 482 486 497 498
Symbol 460 GraphicUses:459Used by:483
Symbol 461 BitmapUsed by:462 475 482 487 494 497 498
Symbol 462 GraphicUses:461Used by:483
Symbol 463 BitmapUsed by:464 469 476 481 482 488 495 497 498
Symbol 464 GraphicUses:463Used by:483
Symbol 465 BitmapUsed by:466 470 477 479 482 489 496 497 498
Symbol 466 GraphicUses:465Used by:483
Symbol 467 BitmapUsed by:468 472 480 482 490 497 498
Symbol 468 GraphicUses:467Used by:483
Symbol 469 GraphicUses:463Used by:483
Symbol 470 GraphicUses:465Used by:483
Symbol 471 GraphicUses:459Used by:483
Symbol 472 GraphicUses:467Used by:483
Symbol 473 GraphicUses:455Used by:483
Symbol 474 GraphicUses:457Used by:483
Symbol 475 GraphicUses:461Used by:483
Symbol 476 GraphicUses:463Used by:483
Symbol 477 GraphicUses:465Used by:483
Symbol 478 GraphicUses:457Used by:483
Symbol 479 GraphicUses:465Used by:483
Symbol 480 GraphicUses:467Used by:483
Symbol 481 GraphicUses:463Used by:483
Symbol 482 GraphicUses:467 465 463 461 459 457 455Used by:483
Symbol 483 MovieClipUses:456 458 460 462 464 466 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482Used by:500 1507
Symbol 484 GraphicUses:455Used by:499
Symbol 485 GraphicUses:457Used by:499
Symbol 486 GraphicUses:459Used by:499
Symbol 487 GraphicUses:461Used by:499
Symbol 488 GraphicUses:463Used by:499
Symbol 489 GraphicUses:465Used by:499
Symbol 490 GraphicUses:467Used by:499
Symbol 491 SoundUsed by:499 679 739 913 1213
Symbol 492 GraphicUses:455Used by:499
Symbol 493 GraphicUses:457Used by:499
Symbol 494 GraphicUses:461Used by:499
Symbol 495 GraphicUses:463Used by:499
Symbol 496 GraphicUses:465Used by:499
Symbol 497 GraphicUses:467 465 463 461 459 457 455Used by:499
Symbol 498 GraphicUses:467 465 463 461 459 457 455Used by:499
Symbol 499 MovieClipUses:153 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498Used by:500
Symbol 500 MovieClip [enemy_mc3b]Uses:153 483 499Used by:1532
Symbol 501 BitmapUsed by:502 515 522 532
Symbol 502 GraphicUses:501Used by:521
Symbol 503 BitmapUsed by:504 523 527 532
Symbol 504 GraphicUses:503Used by:521
Symbol 505 BitmapUsed by:506 518 520 524 528 532 533 535 538
Symbol 506 GraphicUses:505Used by:521
Symbol 507 BitmapUsed by:508 519 520 524 529 532
Symbol 508 GraphicUses:507Used by:521
Symbol 509 BitmapUsed by:510 516 520 524 529 532
Symbol 510 GraphicUses:509Used by:521
Symbol 511 BitmapUsed by:512 520 525 530 532
Symbol 512 GraphicUses:511Used by:521
Symbol 513 BitmapUsed by:514 517 520 526 531 532
Symbol 514 GraphicUses:513Used by:521
Symbol 515 GraphicUses:501Used by:521
Symbol 516 GraphicUses:509Used by:521
Symbol 517 GraphicUses:513Used by:521
Symbol 518 GraphicUses:505Used by:521
Symbol 519 GraphicUses:507Used by:521
Symbol 520 GraphicUses:513 511 509 507 505Used by:521
Symbol 521 MovieClipUses:502 504 506 508 510 512 514 515 516 517 518 519 520Used by:542 545 1507
Symbol 522 GraphicUses:501Used by:534
Symbol 523 GraphicUses:503Used by:534
Symbol 524 GraphicUses:509 507 505Used by:534
Symbol 525 GraphicUses:511Used by:534
Symbol 526 GraphicUses:513Used by:534
Symbol 527 GraphicUses:503Used by:534
Symbol 528 GraphicUses:505Used by:534
Symbol 529 GraphicUses:509 507Used by:534
Symbol 530 GraphicUses:511Used by:534
Symbol 531 GraphicUses:513Used by:534
Symbol 532 GraphicUses:513 511 509 507 505 503 501Used by:534
Symbol 533 GraphicUses:505Used by:534
Symbol 534 MovieClipUses:153 522 523 524 525 526 244 527 528 529 530 531 532 533Used by:542
Symbol 535 GraphicUses:505Used by:541
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536Used by:541
Symbol 538 GraphicUses:505Used by:541
Symbol 539 BitmapUsed by:540
Symbol 540 GraphicUses:539Used by:541
Symbol 541 MovieClipUses:535 537 538 540Used by:542 545 1507
Symbol 542 MovieClip [enemy_mc4]Uses:153 521 534 541Used by:1532
Symbol 543 GraphicUsed by:545
Symbol 544 GraphicUsed by:545
Symbol 545 MovieClip [enemy_mc4b]Uses:153 543 541 521 544Used by:1532
Symbol 546 BitmapUsed by:547 566 568 574
Symbol 547 GraphicUses:546Used by:565
Symbol 548 BitmapUsed by:549 566 569 574
Symbol 549 GraphicUses:548Used by:565
Symbol 550 BitmapUsed by:551 559 561 562 570 574
Symbol 551 GraphicUses:550Used by:565 575
Symbol 552 BitmapUsed by:553 558 571 574
Symbol 553 GraphicUses:552Used by:565 575
Symbol 554 BitmapUsed by:555 560 563 564 572 574
Symbol 555 GraphicUses:554Used by:565 575
Symbol 556 BitmapUsed by:557 573 574
Symbol 557 GraphicUses:556Used by:565 575
Symbol 558 GraphicUses:552Used by:565
Symbol 559 GraphicUses:550Used by:565
Symbol 560 GraphicUses:554Used by:565
Symbol 561 GraphicUses:550Used by:565
Symbol 562 GraphicUses:550Used by:565
Symbol 563 GraphicUses:554Used by:565
Symbol 564 GraphicUses:554Used by:565
Symbol 565 MovieClipUses:547 549 551 553 555 557 558 559 560 561 562 563 564Used by:576 1507
Symbol 566 GraphicUses:548 546Used by:575
Symbol 567 SoundUsed by:575
Symbol 568 GraphicUses:546Used by:575
Symbol 569 GraphicUses:548Used by:575
Symbol 570 GraphicUses:550Used by:575
Symbol 571 GraphicUses:552Used by:575
Symbol 572 GraphicUses:554Used by:575
Symbol 573 GraphicUses:556Used by:575
Symbol 574 GraphicUses:556 554 552 550 548 546Used by:575
Symbol 575 MovieClipUses:566 551 553 555 557 567 568 569 570 571 572 573 574Used by:576
Symbol 576 MovieClip [enemy_mc5]Uses:565 575Used by:1532
Symbol 577 GraphicUsed by:595 614
Symbol 578 GraphicUses:156Used by:594
Symbol 579 GraphicUses:158Used by:594
Symbol 580 GraphicUses:160Used by:594
Symbol 581 GraphicUses:162Used by:594
Symbol 582 GraphicUses:164Used by:594
Symbol 583 SoundUsed by:594 613 854 870 952
Symbol 584 GraphicUses:154Used by:594
Symbol 585 GraphicUses:156Used by:594
Symbol 586 GraphicUses:160Used by:594
Symbol 587 GraphicUses:164Used by:594
Symbol 588 GraphicUses:156 154Used by:594
Symbol 589 GraphicUses:158Used by:594
Symbol 590 GraphicUses:160Used by:594
Symbol 591 GraphicUses:162Used by:594
Symbol 592 GraphicUses:164Used by:594
Symbol 593 GraphicUses:164 162 160 158 156 154Used by:594
Symbol 594 MovieClipUses:153 155 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593Used by:595
Symbol 595 MovieClip [enemy_mc6]Uses:577 176 594Used by:1532
Symbol 596 GraphicUses:132Used by:613
Symbol 597 GraphicUses:134Used by:613
Symbol 598 GraphicUses:136Used by:613
Symbol 599 GraphicUses:138Used by:613
Symbol 600 GraphicUses:140Used by:613
Symbol 601 GraphicUses:130Used by:613
Symbol 602 GraphicUses:132Used by:613
Symbol 603 GraphicUses:134Used by:613
Symbol 604 GraphicUses:136Used by:613
Symbol 605 GraphicUses:138Used by:613
Symbol 606 GraphicUses:140Used by:613
Symbol 607 GraphicUses:132 130Used by:613
Symbol 608 GraphicUses:134Used by:613
Symbol 609 GraphicUses:136Used by:613
Symbol 610 GraphicUses:138Used by:613
Symbol 611 GraphicUses:140Used by:613
Symbol 612 GraphicUses:140 138 136 134 132 130Used by:613
Symbol 613 MovieClipUses:153 131 596 597 598 599 600 583 601 602 603 604 605 606 607 608 609 610 611 612Used by:614
Symbol 614 MovieClip [enemy_mc6b]Uses:577 152 613Used by:1532
Symbol 615 BitmapUsed by:616 639 645 651 657 670
Symbol 616 GraphicUses:615Used by:653 678
Symbol 617 BitmapUsed by:618 632 636 640 648 651 654 658 665 671 675
Symbol 618 GraphicUses:617Used by:653
Symbol 619 BitmapUsed by:620 631 634 641 643 649 651 655 659 666
Symbol 620 GraphicUses:619Used by:653
Symbol 621 BitmapUsed by:622 635 660 667 672
Symbol 622 GraphicUses:621Used by:653 678
Symbol 623 BitmapUsed by:624 642 650 652 656 661 668 673 676 677
Symbol 624 GraphicUses:623Used by:653
Symbol 625 BitmapUsed by:626 644 652 662 669 673 676 677
Symbol 626 GraphicUses:625Used by:653 678
Symbol 627 BitmapUsed by:628 647 652 663 669 674
Symbol 628 GraphicUses:627Used by:653 678
Symbol 629 BitmapUsed by:630 633 637 638 646 652 664 669 674
Symbol 630 GraphicUses:629Used by:653 678
Symbol 631 GraphicUses:619Used by:653
Symbol 632 GraphicUses:617Used by:653
Symbol 633 GraphicUses:629Used by:653
Symbol 634 GraphicUses:619Used by:653
Symbol 635 GraphicUses:621Used by:653
Symbol 636 GraphicUses:617Used by:653
Symbol 637 GraphicUses:629Used by:653
Symbol 638 GraphicUses:629Used by:653
Symbol 639 GraphicUses:615Used by:653
Symbol 640 GraphicUses:617Used by:653
Symbol 641 GraphicUses:619Used by:653
Symbol 642 GraphicUses:623Used by:653
Symbol 643 GraphicUses:619Used by:653
Symbol 644 GraphicUses:625Used by:653
Symbol 645 GraphicUses:615Used by:653
Symbol 646 GraphicUses:629Used by:653
Symbol 647 GraphicUses:627Used by:653
Symbol 648 GraphicUses:617Used by:653
Symbol 649 GraphicUses:619Used by:653
Symbol 650 GraphicUses:623Used by:653
Symbol 651 GraphicUses:619 617 615Used by:653
Symbol 652 GraphicUses:629 627 625 623Used by:653
Symbol 653 MovieClipUses:616 618 620 622 624 626 628 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652Used by:679 1507
Symbol 654 GraphicUses:617Used by:678
Symbol 655 GraphicUses:619Used by:678
Symbol 656 GraphicUses:623Used by:678
Symbol 657 GraphicUses:615Used by:678
Symbol 658 GraphicUses:617Used by:678
Symbol 659 GraphicUses:619Used by:678
Symbol 660 GraphicUses:621Used by:678
Symbol 661 GraphicUses:623Used by:678
Symbol 662 GraphicUses:625Used by:678
Symbol 663 GraphicUses:627Used by:678
Symbol 664 GraphicUses:629Used by:678
Symbol 665 GraphicUses:617Used by:678
Symbol 666 GraphicUses:619Used by:678
Symbol 667 GraphicUses:621Used by:678
Symbol 668 GraphicUses:623Used by:678
Symbol 669 GraphicUses:629 627 625Used by:678
Symbol 670 GraphicUses:615Used by:678
Symbol 671 GraphicUses:617Used by:678
Symbol 672 GraphicUses:621Used by:678
Symbol 673 GraphicUses:625 623Used by:678
Symbol 674 GraphicUses:629 627Used by:678
Symbol 675 GraphicUses:617Used by:678
Symbol 676 GraphicUses:625 623Used by:678
Symbol 677 GraphicUses:625 623Used by:678
Symbol 678 MovieClipUses:153 616 654 655 622 656 626 628 630 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677Used by:679
Symbol 679 MovieClip [enemy_mc7]Uses:153 653 678 491Used by:1532
Symbol 680 BitmapUsed by:681 704 710 716 722 733 735 736 737
Symbol 681 GraphicUses:680Used by:718 738
Symbol 682 BitmapUsed by:683 697 701 705 713 716 719 729 733 735 736 737
Symbol 683 GraphicUses:682Used by:718
Symbol 684 BitmapUsed by:685 696 699 706 708 714 716 720 723 730 733 735 736 737
Symbol 685 GraphicUses:684Used by:718
Symbol 686 BitmapUsed by:687 700 724 731 733 735 736 737
Symbol 687 GraphicUses:686Used by:718 738
Symbol 688 BitmapUsed by:689 707 715 717 721 725 732 735 736 737
Symbol 689 GraphicUses:688Used by:718
Symbol 690 BitmapUsed by:691 709 717 726 734 735 736 737
Symbol 691 GraphicUses:690Used by:718 738
Symbol 692 BitmapUsed by:693 712 717 727 734 735 736 737
Symbol 693 GraphicUses:692Used by:718 738
Symbol 694 BitmapUsed by:695 698 702 703 711 717 728 734 735 736 737
Symbol 695 GraphicUses:694Used by:718 738
Symbol 696 GraphicUses:684Used by:718
Symbol 697 GraphicUses:682Used by:718
Symbol 698 GraphicUses:694Used by:718
Symbol 699 GraphicUses:684Used by:718
Symbol 700 GraphicUses:686Used by:718
Symbol 701 GraphicUses:682Used by:718
Symbol 702 GraphicUses:694Used by:718
Symbol 703 GraphicUses:694Used by:718
Symbol 704 GraphicUses:680Used by:718
Symbol 705 GraphicUses:682Used by:718
Symbol 706 GraphicUses:684Used by:718
Symbol 707 GraphicUses:688Used by:718
Symbol 708 GraphicUses:684Used by:718
Symbol 709 GraphicUses:690Used by:718
Symbol 710 GraphicUses:680Used by:718
Symbol 711 GraphicUses:694Used by:718
Symbol 712 GraphicUses:692Used by:718
Symbol 713 GraphicUses:682Used by:718
Symbol 714 GraphicUses:684Used by:718
Symbol 715 GraphicUses:688Used by:718
Symbol 716 GraphicUses:684 682 680Used by:718
Symbol 717 GraphicUses:694 692 690 688Used by:718
Symbol 718 MovieClipUses:681 683 685 687 689 691 693 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717Used by:739 1507
Symbol 719 GraphicUses:682Used by:738
Symbol 720 GraphicUses:684Used by:738
Symbol 721 GraphicUses:688Used by:738
Symbol 722 GraphicUses:680Used by:738
Symbol 723 GraphicUses:684Used by:738
Symbol 724 GraphicUses:686Used by:738
Symbol 725 GraphicUses:688Used by:738
Symbol 726 GraphicUses:690Used by:738
Symbol 727 GraphicUses:692Used by:738
Symbol 728 GraphicUses:694Used by:738
Symbol 729 GraphicUses:682Used by:738
Symbol 730 GraphicUses:684Used by:738
Symbol 731 GraphicUses:686Used by:738
Symbol 732 GraphicUses:688Used by:738
Symbol 733 GraphicUses:686 684 682 680Used by:738
Symbol 734 GraphicUses:694 692 690Used by:738
Symbol 735 GraphicUses:694 692 690 688 686 684 682 680Used by:738
Symbol 736 GraphicUses:694 692 690 688 686 684 682 680Used by:738
Symbol 737 GraphicUses:694 692 690 688 686 684 682 680Used by:738
Symbol 738 MovieClipUses:153 681 719 720 687 721 691 693 695 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737Used by:739
Symbol 739 MovieClip [enemy_mc7b]Uses:153 718 738 491Used by:1532
Symbol 740 BitmapUsed by:741 758 760 764 768 774 780 783 786 790
Symbol 741 GraphicUses:740Used by:759 781
Symbol 742 BitmapUsed by:743 756 758 760 764 769 775 780 782 790
Symbol 743 GraphicUses:742Used by:759 781 791
Symbol 744 BitmapUsed by:745 758 762 764 770 776 780 783 786 790
Symbol 745 GraphicUses:744Used by:759 767 781
Symbol 746 BitmapUsed by:747 758 761 764 771 777 780 783 786 790
Symbol 747 GraphicUses:746Used by:759 781
Symbol 748 BitmapUsed by:749 757 758 761 764 772 778 780 787 790
Symbol 749 GraphicUses:748Used by:759 781 791
Symbol 750 BitmapUsed by:751 754 758 764 765 773 779 780 784 788 790
Symbol 751 GraphicUses:750Used by:759 767 781
Symbol 752 BitmapUsed by:753 755 758 763 764 766 773 779 780 785 789 790
Symbol 753 GraphicUses:752Used by:759 767 781
Symbol 754 GraphicUses:750Used by:759 767
Symbol 755 GraphicUses:752Used by:759
Symbol 756 GraphicUses:742Used by:759
Symbol 757 GraphicUses:748Used by:759
Symbol 758 GraphicUses:752 750 748 746 744 742 740Used by:759 767
Symbol 759 MovieClipUses:741 743 745 747 749 751 753 754 755 756 757 758Used by:792 1507
Symbol 760 GraphicUses:742 740Used by:767
Symbol 761 GraphicUses:748 746Used by:767
Symbol 762 GraphicUses:744Used by:767
Symbol 763 GraphicUses:752Used by:767
Symbol 764 GraphicUses:752 750 748 746 744 742 740Used by:767
Symbol 765 GraphicUses:750Used by:767
Symbol 766 GraphicUses:752Used by:767
Symbol 767 MovieClipUses:760 745 761 751 753 762 754 763 764 765 766 758Used by:792
Symbol 768 GraphicUses:740Used by:781
Symbol 769 GraphicUses:742Used by:781
Symbol 770 GraphicUses:744Used by:781
Symbol 771 GraphicUses:746Used by:781
Symbol 772 GraphicUses:748Used by:781
Symbol 773 GraphicUses:752 750Used by:781
Symbol 774 GraphicUses:740Used by:781
Symbol 775 GraphicUses:742Used by:781
Symbol 776 GraphicUses:744Used by:781
Symbol 777 GraphicUses:746Used by:781
Symbol 778 GraphicUses:748Used by:781
Symbol 779 GraphicUses:752 750Used by:781
Symbol 780 GraphicUses:752 750 748 746 744 742 740Used by:781
Symbol 781 MovieClipUses:153 741 743 745 747 749 751 753 768 769 770 771 772 773 774 775 776 777 778 779 780 SS4Used by:792
Symbol 782 GraphicUses:742Used by:791
Symbol 783 GraphicUses:746 744 740Used by:791
Symbol 784 GraphicUses:750Used by:791
Symbol 785 GraphicUses:752Used by:791
Symbol 786 GraphicUses:746 744 740Used by:791
Symbol 787 GraphicUses:748Used by:791
Symbol 788 GraphicUses:750Used by:791
Symbol 789 GraphicUses:752Used by:791
Symbol 790 GraphicUses:752 750 748 746 744 740 742Used by:791
Symbol 791 MovieClipUses:782 783 749 784 785 743 786 787 788 789 790Used by:792
Symbol 792 MovieClip [enemy_mc8]Uses:153 759 767 781 791Used by:1532
Symbol 793 BitmapUsed by:794 809 825
Symbol 794 GraphicUses:793Used by:826
Symbol 795 BitmapUsed by:796 810 825 829 838 846 853
Symbol 796 GraphicUses:795Used by:826
Symbol 797 BitmapUsed by:798 811 822 825 830 839 847 853
Symbol 798 GraphicUses:797Used by:826
Symbol 799 BitmapUsed by:800 818 822 825 831 840 848 853
Symbol 800 GraphicUses:799Used by:826
Symbol 801 BitmapUsed by:802 812 818 822 825 832 840 848 853
Symbol 802 GraphicUses:801Used by:826
Symbol 803 BitmapUsed by:804 813 818 822 825 833 841 849 853
Symbol 804 GraphicUses:803Used by:826
Symbol 805 BitmapUsed by:806 814 825
Symbol 806 GraphicUses:805Used by:826
Symbol 807 BitmapUsed by:808 815 820 825 835 843 852 853
Symbol 808 GraphicUses:807Used by:826
Symbol 809 GraphicUses:793Used by:826
Symbol 810 GraphicUses:795Used by:826
Symbol 811 GraphicUses:797Used by:826
Symbol 812 GraphicUses:801Used by:826
Symbol 813 GraphicUses:803Used by:826
Symbol 814 GraphicUses:805Used by:826
Symbol 815 GraphicUses:807Used by:826
Symbol 816 BitmapUsed by:817 819 821 823 824 827 828 834 836 837 842 844 845 850 851 853
Symbol 817 GraphicUses:816Used by:826
Symbol 818 GraphicUses:803 801 799Used by:826
Symbol 819 GraphicUses:816Used by:826
Symbol 820 GraphicUses:807Used by:826
Symbol 821 GraphicUses:816Used by:826
Symbol 822 GraphicUses:803 801 799 797Used by:826
Symbol 823 GraphicUses:816Used by:826 854
Symbol 824 GraphicUses:816Used by:826
Symbol 825 GraphicUses:807 805 803 801 799 797 795 793Used by:826
Symbol 826 MovieClipUses:794 796 798 800 802 804 806 808 809 810 811 812 813 814 815 817 818 819 820 821 822 823 824 825Used by:855 1507
Symbol 827 GraphicUses:816Used by:854
Symbol 828 GraphicUses:816Used by:854
Symbol 829 GraphicUses:795Used by:854
Symbol 830 GraphicUses:797Used by:854
Symbol 831 GraphicUses:799Used by:854
Symbol 832 GraphicUses:801Used by:854
Symbol 833 GraphicUses:803Used by:854
Symbol 834 GraphicUses:816Used by:854
Symbol 835 GraphicUses:807Used by:854
Symbol 836 GraphicUses:816Used by:854
Symbol 837 GraphicUses:816Used by:854
Symbol 838 GraphicUses:795Used by:854
Symbol 839 GraphicUses:797Used by:854
Symbol 840 GraphicUses:801 799Used by:854
Symbol 841 GraphicUses:803Used by:854
Symbol 842 GraphicUses:816Used by:854
Symbol 843 GraphicUses:807Used by:854
Symbol 844 GraphicUses:816Used by:854
Symbol 845 GraphicUses:816Used by:854
Symbol 846 GraphicUses:795Used by:854
Symbol 847 GraphicUses:797Used by:854
Symbol 848 GraphicUses:801 799Used by:854
Symbol 849 GraphicUses:803Used by:854
Symbol 850 GraphicUses:816Used by:854
Symbol 851 GraphicUses:816Used by:854
Symbol 852 GraphicUses:807Used by:854
Symbol 853 GraphicUses:807 816 803 801 799 797 795Used by:854
Symbol 854 MovieClipUses:153 827 828 829 830 831 832 833 834 823 835 583 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853Used by:855
Symbol 855 MovieClip [enemy_mc9]Uses:153 826 854Used by:1532
Symbol 856 BitmapUsed by:857 860 862 865 867 869 871 873 874 876
Symbol 857 GraphicUses:856Used by:863
Symbol 858 BitmapUsed by:859 861 862 866 868 869 872 873 875 876
Symbol 859 GraphicUses:858Used by:863
Symbol 860 GraphicUses:856Used by:863
Symbol 861 GraphicUses:858Used by:863
Symbol 862 GraphicUses:858 856Used by:863
Symbol 863 MovieClipUses:857 859 860 861 862Used by:878 1507
Symbol 864 GraphicUsed by:878
Symbol 865 GraphicUses:856Used by:870 877
Symbol 866 GraphicUses:858Used by:870 877
Symbol 867 GraphicUses:856Used by:870
Symbol 868 GraphicUses:858Used by:870
Symbol 869 GraphicUses:858 856Used by:870
Symbol 870 MovieClipUses:153 865 866 583 867 868 869Used by:878
Symbol 871 GraphicUses:856Used by:877
Symbol 872 GraphicUses:858Used by:877
Symbol 873 GraphicUses:858 856Used by:877
Symbol 874 GraphicUses:856Used by:877
Symbol 875 GraphicUses:858Used by:877
Symbol 876 GraphicUses:858 856Used by:877
Symbol 877 MovieClipUses:865 866 871 872 873 874 875 876Used by:878
Symbol 878 MovieClip [enemy_mc10]Uses:153 863 864 870 877Used by:1532
Symbol 879 BitmapUsed by:880 896 904 906 912
Symbol 880 GraphicUses:879Used by:905 913
Symbol 881 BitmapUsed by:882 897 902 904 907 912
Symbol 882 GraphicUses:881Used by:905 913
Symbol 883 BitmapUsed by:884 898 904 912
Symbol 884 GraphicUses:883Used by:905 913
Symbol 885 BitmapUsed by:886 893 899 903 904 908 912
Symbol 886 GraphicUses:885Used by:905 913
Symbol 887 BitmapUsed by:888 900 904 909 912
Symbol 888 GraphicUses:887Used by:905 913
Symbol 889 BitmapUsed by:890 894 904 910 912
Symbol 890 GraphicUses:889Used by:905 913
Symbol 891 BitmapUsed by:892 895 901 904 911 912
Symbol 892 GraphicUses:891Used by:905 913
Symbol 893 GraphicUses:885Used by:905
Symbol 894 GraphicUses:889Used by:905
Symbol 895 GraphicUses:891Used by:905
Symbol 896 GraphicUses:879Used by:905
Symbol 897 GraphicUses:881Used by:905
Symbol 898 GraphicUses:883Used by:905
Symbol 899 GraphicUses:885Used by:905
Symbol 900 GraphicUses:887Used by:905
Symbol 901 GraphicUses:891Used by:905
Symbol 902 GraphicUses:881Used by:905
Symbol 903 GraphicUses:885Used by:905
Symbol 904 GraphicUses:891 889 887 885 883 881 879Used by:905
Symbol 905 MovieClipUses:880 882 884 886 888 890 892 893 894 895 896 897 898 899 900 901 902 903 904Used by:914 1507
Symbol 906 GraphicUses:879Used by:913
Symbol 907 GraphicUses:881Used by:913
Symbol 908 GraphicUses:885Used by:913
Symbol 909 GraphicUses:887Used by:913
Symbol 910 GraphicUses:889Used by:913
Symbol 911 GraphicUses:891Used by:913
Symbol 912 GraphicUses:891 889 887 885 883 881 879Used by:913
Symbol 913 MovieClipUses:153 880 882 884 886 888 890 892 491 906 907 908 909 910 911 912Used by:914
Symbol 914 MovieClip [enemy_mc11]Uses:153 905 913Used by:1532
Symbol 915 BitmapUsed by:916 930 933 937 946 951
Symbol 916 GraphicUses:915Used by:938 952
Symbol 917 BitmapUsed by:918 925 926 929 932 934 936 937 939 941 942 945 947 950 951
Symbol 918 GraphicUses:917Used by:938 952
Symbol 919 BitmapUsed by:920 927 937 940 943 948 951
Symbol 920 GraphicUses:919Used by:938 952
Symbol 921 BitmapUsed by:922 937 944 951
Symbol 922 GraphicUses:921Used by:938 952
Symbol 923 BitmapUsed by:924 928 931 935 937 949 951
Symbol 924 GraphicUses:923Used by:938 952
Symbol 925 GraphicUses:917Used by:938 952
Symbol 926 GraphicUses:917Used by:938
Symbol 927 GraphicUses:919Used by:938
Symbol 928 GraphicUses:923Used by:938
Symbol 929 GraphicUses:917Used by:938
Symbol 930 GraphicUses:915Used by:938
Symbol 931 GraphicUses:923Used by:938
Symbol 932 GraphicUses:917Used by:938
Symbol 933 GraphicUses:915Used by:938
Symbol 934 GraphicUses:917Used by:938
Symbol 935 GraphicUses:923Used by:938 952
Symbol 936 GraphicUses:917Used by:938
Symbol 937 GraphicUses:917 923 921 919 915Used by:938
Symbol 938 MovieClipUses:916 918 920 922 924 925 926 927 928 929 930 931 932 933 934 935 936 937Used by:953 1507
Symbol 939 GraphicUses:917Used by:952
Symbol 940 GraphicUses:919Used by:952
Symbol 941 GraphicUses:917Used by:952
Symbol 942 GraphicUses:917Used by:952
Symbol 943 GraphicUses:919Used by:952
Symbol 944 GraphicUses:921Used by:952
Symbol 945 GraphicUses:917Used by:952
Symbol 946 GraphicUses:915Used by:952
Symbol 947 GraphicUses:917Used by:952
Symbol 948 GraphicUses:919Used by:952
Symbol 949 GraphicUses:923Used by:952
Symbol 950 GraphicUses:917Used by:952
Symbol 951 GraphicUses:917 923 921 919 915Used by:952
Symbol 952 MovieClipUses:153 916 918 920 922 924 925 583 939 940 935 941 942 943 944 945 946 947 948 949 950 951Used by:953
Symbol 953 MovieClip [enemy_mc12]Uses:153 938 952Used by:1532
Symbol 954 BitmapUsed by:955 970 980 989 995 997 1005 1013 1021
Symbol 955 GraphicUses:954Used by:996
Symbol 956 BitmapUsed by:957 971 978 981 987 990 995 998 1006 1014 1021
Symbol 957 GraphicUses:956Used by:996
Symbol 958 BitmapUsed by:959 972 982 991 995 999 1007 1015 1021
Symbol 959 GraphicUses:958Used by:996
Symbol 960 BitmapUsed by:961 973 983 995 1000 1008 1016 1021
Symbol 961 GraphicUses:960Used by:996
Symbol 962 BitmapUsed by:963 974 984 992 995 1001 1009 1017 1021
Symbol 963 GraphicUses:962Used by:996
Symbol 964 BitmapUsed by:965 975 995 1002 1010 1018 1021
Symbol 965 GraphicUses:964Used by:996
Symbol 966 BitmapUsed by:967 976 985 993 995 1003 1011 1019 1021
Symbol 967 GraphicUses:966Used by:996
Symbol 968 BitmapUsed by:969 977 979 986 988 994 995 1004 1012 1020 1021
Symbol 969 GraphicUses:968Used by:996
Symbol 970 GraphicUses:954Used by:996
Symbol 971 GraphicUses:956Used by:996
Symbol 972 GraphicUses:958Used by:996
Symbol 973 GraphicUses:960Used by:996
Symbol 974 GraphicUses:962Used by:996
Symbol 975 GraphicUses:964Used by:996
Symbol 976 GraphicUses:966Used by:996
Symbol 977 GraphicUses:968Used by:996
Symbol 978 GraphicUses:956Used by:996
Symbol 979 GraphicUses:968Used by:996
Symbol 980 GraphicUses:954Used by:996
Symbol 981 GraphicUses:956Used by:996
Symbol 982 GraphicUses:958Used by:996
Symbol 983 GraphicUses:960Used by:996
Symbol 984 GraphicUses:962Used by:996
Symbol 985 GraphicUses:966Used by:996
Symbol 986 GraphicUses:968Used by:996
Symbol 987 GraphicUses:956Used by:996
Symbol 988 GraphicUses:968Used by:996
Symbol 989 GraphicUses:954Used by:996
Symbol 990 GraphicUses:956Used by:996
Symbol 991 GraphicUses:958Used by:996
Symbol 992 GraphicUses:962Used by:996
Symbol 993 GraphicUses:966Used by:996
Symbol 994 GraphicUses:968Used by:996
Symbol 995 GraphicUses:968 966 964 962 960 958 956 954Used by:996
Symbol 996 MovieClipUses:955 957 959 961 963 965 967 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995Used by:1023 1506
Symbol 997 GraphicUses:954Used by:1022
Symbol 998 GraphicUses:956Used by:1022
Symbol 999 GraphicUses:958Used by:1022
Symbol 1000 GraphicUses:960Used by:1022
Symbol 1001 GraphicUses:962Used by:1022
Symbol 1002 GraphicUses:964Used by:1022
Symbol 1003 GraphicUses:966Used by:1022
Symbol 1004 GraphicUses:968Used by:1022
Symbol 1005 GraphicUses:954Used by:1022
Symbol 1006 GraphicUses:956Used by:1022
Symbol 1007 GraphicUses:958Used by:1022
Symbol 1008 GraphicUses:960Used by:1022
Symbol 1009 GraphicUses:962Used by:1022
Symbol 1010 GraphicUses:964Used by:1022
Symbol 1011 GraphicUses:966Used by:1022
Symbol 1012 GraphicUses:968Used by:1022
Symbol 1013 GraphicUses:954Used by:1022
Symbol 1014 GraphicUses:956Used by:1022
Symbol 1015 GraphicUses:958Used by:1022
Symbol 1016 GraphicUses:960Used by:1022
Symbol 1017 GraphicUses:962Used by:1022
Symbol 1018 GraphicUses:964Used by:1022
Symbol 1019 GraphicUses:966Used by:1022
Symbol 1020 GraphicUses:968Used by:1022
Symbol 1021 GraphicUses:968 966 964 962 960 958 956 954Used by:1022
Symbol 1022 MovieClipUses:997 998 999 1000 1001 1002 1003 1004 296 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021Used by:1023
Symbol 1023 MovieClip [enemy_mc13]Uses:996 1022Used by:1532
Symbol 1024 BitmapUsed by:1025 1040 1048 1055 1061 1063 1071 1079
Symbol 1025 GraphicUses:1024Used by:1062
Symbol 1026 BitmapUsed by:1027 1041 1049 1056 1061 1064 1072 1079
Symbol 1027 GraphicUses:1026Used by:1062
Symbol 1028 BitmapUsed by:1029 1042 1050 1057 1061 1065 1073 1079
Symbol 1029 GraphicUses:1028Used by:1062
Symbol 1030 BitmapUsed by:1031 1043 1051 1061 1066 1074 1079
Symbol 1031 GraphicUses:1030Used by:1062
Symbol 1032 BitmapUsed by:1033 1044 1052 1058 1061 1067 1075 1079
Symbol 1033 GraphicUses:1032Used by:1062
Symbol 1034 BitmapUsed by:1035 1045 1061 1068 1076 1079
Symbol 1035 GraphicUses:1034Used by:1062
Symbol 1036 BitmapUsed by:1037 1046 1053 1059 1061 1069 1077 1079
Symbol 1037 GraphicUses:1036Used by:1062
Symbol 1038 BitmapUsed by:1039 1047 1054 1060 1061 1070 1078 1079
Symbol 1039 GraphicUses:1038Used by:1062
Symbol 1040 GraphicUses:1024Used by:1062
Symbol 1041 GraphicUses:1026Used by:1062
Symbol 1042 GraphicUses:1028Used by:1062
Symbol 1043 GraphicUses:1030Used by:1062
Symbol 1044 GraphicUses:1032Used by:1062
Symbol 1045 GraphicUses:1034Used by:1062
Symbol 1046 GraphicUses:1036Used by:1062
Symbol 1047 GraphicUses:1038Used by:1062
Symbol 1048 GraphicUses:1024Used by:1062
Symbol 1049 GraphicUses:1026Used by:1062
Symbol 1050 GraphicUses:1028Used by:1062
Symbol 1051 GraphicUses:1030Used by:1062
Symbol 1052 GraphicUses:1032Used by:1062
Symbol 1053 GraphicUses:1036Used by:1062
Symbol 1054 GraphicUses:1038Used by:1062
Symbol 1055 GraphicUses:1024Used by:1062
Symbol 1056 GraphicUses:1026Used by:1062
Symbol 1057 GraphicUses:1028Used by:1062
Symbol 1058 GraphicUses:1032Used by:1062
Symbol 1059 GraphicUses:1036Used by:1062
Symbol 1060 GraphicUses:1038Used by:1062
Symbol 1061 GraphicUses:1038 1036 1034 1032 1030 1028 1026 1024Used by:1062
Symbol 1062 MovieClipUses:1025 1027 1029 1031 1033 1035 1037 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061Used by:1081 1506
Symbol 1063 GraphicUses:1024Used by:1080
Symbol 1064 GraphicUses:1026Used by:1080
Symbol 1065 GraphicUses:1028Used by:1080
Symbol 1066 GraphicUses:1030Used by:1080
Symbol 1067 GraphicUses:1032Used by:1080
Symbol 1068 GraphicUses:1034Used by:1080
Symbol 1069 GraphicUses:1036Used by:1080
Symbol 1070 GraphicUses:1038Used by:1080
Symbol 1071 GraphicUses:1024Used by:1080
Symbol 1072 GraphicUses:1026Used by:1080
Symbol 1073 GraphicUses:1028Used by:1080
Symbol 1074 GraphicUses:1030Used by:1080
Symbol 1075 GraphicUses:1032Used by:1080
Symbol 1076 GraphicUses:1034Used by:1080
Symbol 1077 GraphicUses:1036Used by:1080
Symbol 1078 GraphicUses:1038Used by:1080
Symbol 1079 GraphicUses:1038 1036 1034 1032 1030 1028 1026 1024Used by:1080
Symbol 1080 MovieClipUses:1063 1064 1065 1066 1067 1068 1069 1070 296 1071 1072 1073 1074 1075 1076 1077 1078 1079Used by:1081
Symbol 1081 MovieClip [enemy_mc13b]Uses:1062 1080Used by:1532
Symbol 1082 BitmapUsed by:1083 1101 1102 1104 1111 1115 1122
Symbol 1083 GraphicUses:1082Used by:1103
Symbol 1084 BitmapUsed by:1085 1097 1102 1105 1112 1116 1122
Symbol 1085 GraphicUses:1084Used by:1103
Symbol 1086 BitmapUsed by:1087 1098 1102 1106 1117 1122
Symbol 1087 GraphicUses:1086Used by:1103
Symbol 1088 BitmapUsed by:1089 1099 1102 1107 1113 1118 1122
Symbol 1089 GraphicUses:1088Used by:1103
Symbol 1090 BitmapUsed by:1091 1100 1102 1108 1119 1122
Symbol 1091 GraphicUses:1090Used by:1103
Symbol 1092 BitmapUsed by:1093 1096 1102 1109 1120 1122
Symbol 1093 GraphicUses:1092Used by:1103
Symbol 1094 BitmapUsed by:1095 1102 1110 1114 1121 1122
Symbol 1095 GraphicUses:1094Used by:1103
Symbol 1096 GraphicUses:1092Used by:1103
Symbol 1097 GraphicUses:1084Used by:1103
Symbol 1098 GraphicUses:1086Used by:1103
Symbol 1099 GraphicUses:1088Used by:1103
Symbol 1100 GraphicUses:1090Used by:1103
Symbol 1101 GraphicUses:1082Used by:1103
Symbol 1102 GraphicUses:1094 1092 1090 1088 1086 1084 1082Used by:1103
Symbol 1103 MovieClipUses:1083 1085 1087 1089 1091 1093 1095 1096 1097 1098 1099 1100 1101 1102Used by:1124 1507
Symbol 1104 GraphicUses:1082Used by:1123
Symbol 1105 GraphicUses:1084Used by:1123
Symbol 1106 GraphicUses:1086Used by:1123
Symbol 1107 GraphicUses:1088Used by:1123
Symbol 1108 GraphicUses:1090Used by:1123
Symbol 1109 GraphicUses:1092Used by:1123
Symbol 1110 GraphicUses:1094Used by:1123
Symbol 1111 GraphicUses:1082Used by:1123
Symbol 1112 GraphicUses:1084Used by:1123
Symbol 1113 GraphicUses:1088Used by:1123
Symbol 1114 GraphicUses:1094Used by:1123
Symbol 1115 GraphicUses:1082Used by:1123
Symbol 1116 GraphicUses:1084Used by:1123
Symbol 1117 GraphicUses:1086Used by:1123
Symbol 1118 GraphicUses:1088Used by:1123
Symbol 1119 GraphicUses:1090Used by:1123
Symbol 1120 GraphicUses:1092Used by:1123
Symbol 1121 GraphicUses:1094Used by:1123
Symbol 1122 GraphicUses:1094 1092 1090 1088 1086 1084 1082Used by:1123
Symbol 1123 MovieClipUses:153 1104 1105 1106 1107 1108 1109 1110 244 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122Used by:1124
Symbol 1124 MovieClip [enemy_mc14]Uses:153 1103 1123Used by:1532
Symbol 1125 GraphicUsed by:1213 1253
Symbol 1126 BitmapUsed by:1127 1144 1152 1160 1165 1171 1187 1195 1197 1206 1212 1214 1220 1222 1231 1240
Symbol 1127 GraphicUses:1126Used by:1166 1196 1213 1215 1221 1252
Symbol 1128 BitmapUsed by:1129 1145 1153 1161 1165 1167 1172 1180 1187 1189 1195 1198 1212 1214 1216 1220 1223 1232 1241
Symbol 1129 GraphicUses:1128Used by:1166 1252
Symbol 1130 BitmapUsed by:1131 1146 1154 1165 1173 1181 1187 1190 1195 1199 1207 1212 1214 1217 1220 1224 1233 1242
Symbol 1131 GraphicUses:1130Used by:1166 1196 1213 1215 1221 1252
Symbol 1132 BitmapUsed by:1133 1155 1165 1174 1182 1187 1191 1195 1200 1212 1214 1220 1225 1234 1243
Symbol 1133 GraphicUses:1132Used by:1166 1196 1213 1215 1221 1252
Symbol 1134 BitmapUsed by:1135 1147 1156 1162 1165 1175 1187 1195 1201 1208 1212 1214 1220 1226 1235 1244
Symbol 1135 GraphicUses:1134Used by:1166 1196 1213 1215 1221 1252
Symbol 1136 BitmapUsed by:1137 1148 1157 1163 1165 1177 1184 1187 1193 1195 1202 1209 1212 1214 1218 1220 1227 1236 1245
Symbol 1137 GraphicUses:1136Used by:1166 1196 1213 1215 1221 1252
Symbol 1138 BitmapUsed by:1139 1149 1158 1164 1165 1169 1178 1185 1187 1194 1195 1203 1210 1212 1214 1219 1220 1228 1237 1246
Symbol 1139 GraphicUses:1138Used by:1166 1252
Symbol 1140 BitmapUsed by:1141 1150 1165 1168 1176 1183 1187 1192 1195 1204 1212 1214 1220 1229 1238 1247 1250
Symbol 1141 GraphicUses:1140Used by:1166 1252
Symbol 1142 BitmapUsed by:1143 1151 1159 1165 1170 1179 1186 1195 1205 1211 1212 1214 1220 1230 1239 1248 1251
Symbol 1143 GraphicUses:1142Used by:1166
Symbol 1144 GraphicUses:1126Used by:1166
Symbol 1145 GraphicUses:1128Used by:1166
Symbol 1146 GraphicUses:1130Used by:1166
Symbol 1147 GraphicUses:1134Used by:1166
Symbol 1148 GraphicUses:1136Used by:1166
Symbol 1149 GraphicUses:1138Used by:1166
Symbol 1150 GraphicUses:1140Used by:1166
Symbol 1151 GraphicUses:1142Used by:1166
Symbol 1152 GraphicUses:1126Used by:1166
Symbol 1153 GraphicUses:1128Used by:1166
Symbol 1154 GraphicUses:1130Used by:1166
Symbol 1155 GraphicUses:1132Used by:1166
Symbol 1156 GraphicUses:1134Used by:1166
Symbol 1157 GraphicUses:1136Used by:1166
Symbol 1158 GraphicUses:1138Used by:1166
Symbol 1159 GraphicUses:1142Used by:1166 1252
Symbol 1160 GraphicUses:1126Used by:1166
Symbol 1161 GraphicUses:1128Used by:1166
Symbol 1162 GraphicUses:1134Used by:1166
Symbol 1163 GraphicUses:1136Used by:1166
Symbol 1164 GraphicUses:1138Used by:1166
Symbol 1165 GraphicUses:1142 1140 1138 1136 1134 1132 1130 1128 1126Used by:1166
Symbol 1166 MovieClipUses:1127 1129 1131 1133 1135 1137 1139 1141 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165Used by:1253 1507
Symbol 1167 GraphicUses:1128Used by:1196 1213 1215 1221 1252
Symbol 1168 GraphicUses:1140Used by:1196 1213 1215 1221 1252
Symbol 1169 GraphicUses:1138Used by:1196 1213 1215 1221 1252
Symbol 1170 GraphicUses:1142Used by:1196 1213 1215 1221 1252
Symbol 1171 GraphicUses:1126Used by:1196 1215 1221 1252
Symbol 1172 GraphicUses:1128Used by:1196 1215 1221 1252
Symbol 1173 GraphicUses:1130Used by:1196 1215 1221 1252
Symbol 1174 GraphicUses:1132Used by:1196 1215 1221 1252
Symbol 1175 GraphicUses:1134Used by:1196 1215 1221 1252
Symbol 1176 GraphicUses:1140Used by:1196 1215 1221 1252
Symbol 1177 GraphicUses:1136Used by:1196 1215 1221 1252
Symbol 1178 GraphicUses:1138Used by:1196 1215 1221 1252
Symbol 1179 GraphicUses:1142Used by:1196 1215 1221 1252
Symbol 1180 GraphicUses:1128Used by:1196
Symbol 1181 GraphicUses:1130Used by:1196
Symbol 1182 GraphicUses:1132Used by:1196 1221
Symbol 1183 GraphicUses:1140Used by:1196 1221
Symbol 1184 GraphicUses:1136Used by:1196
Symbol 1185 GraphicUses:1138Used by:1196
Symbol 1186 GraphicUses:1142Used by:1196 1221
Symbol 1187 GraphicUses:1138 1136 1140 1134 1132 1130 1128 1126Used by:1196
Symbol 1188 SoundUsed by:1196
Symbol 1189 GraphicUses:1128Used by:1196 1221
Symbol 1190 GraphicUses:1130Used by:1196 1221
Symbol 1191 GraphicUses:1132Used by:1196 1221
Symbol 1192 GraphicUses:1140Used by:1196 1221
Symbol 1193 GraphicUses:1136Used by:1196 1221
Symbol 1194 GraphicUses:1138Used by:1196 1221
Symbol 1195 GraphicUses:1142 1138 1136 1140 1134 1132 1130 1128 1126Used by:1196 1221
Symbol 1196 MovieClipUses:1127 1167 1131 1133 1135 1168 1137 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195Used by:1253
Symbol 1197 GraphicUses:1126Used by:1213
Symbol 1198 GraphicUses:1128Used by:1213
Symbol 1199 GraphicUses:1130Used by:1213
Symbol 1200 GraphicUses:1132Used by:1213
Symbol 1201 GraphicUses:1134Used by:1213
Symbol 1202 GraphicUses:1136Used by:1213
Symbol 1203 GraphicUses:1138Used by:1213
Symbol 1204 GraphicUses:1140Used by:1213
Symbol 1205 GraphicUses:1142Used by:1213
Symbol 1206 GraphicUses:1126Used by:1213
Symbol 1207 GraphicUses:1130Used by:1213
Symbol 1208 GraphicUses:1134Used by:1213
Symbol 1209 GraphicUses:1136Used by:1213
Symbol 1210 GraphicUses:1138Used by:1213
Symbol 1211 GraphicUses:1142Used by:1213
Symbol 1212 GraphicUses:1142 1140 1138 1136 1134 1132 1130 1128 1126Used by:1213
Symbol 1213 MovieClipUses:1125 1127 1167 1131 1133 1135 1137 1169 1168 1170 1197 1198 1199 1200 1201 1202 1203 1204 1205 491 1206 1207 1208 1209 1210 1211 1212Used by:1253
Symbol 1214 GraphicUses:1142 1140 1138 1136 1134 1132 1130 1128 1126Used by:1215 1252
Symbol 1215 MovieClipUses:1127 1167 1131 1133 1135 1137 1169 1168 1170 1171 1172 1173 1174 1175 1177 1178 1176 1179 1214Used by:1253
Symbol 1216 GraphicUses:1128Used by:1221
Symbol 1217 GraphicUses:1130Used by:1221
Symbol 1218 GraphicUses:1136Used by:1221
Symbol 1219 GraphicUses:1138Used by:1221
Symbol 1220 GraphicUses:1142 1138 1136 1140 1134 1132 1130 1128 1126Used by:1221
Symbol 1221 MovieClipUses:1127 1167 1131 1133 1135 1168 1137 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1216 1217 1182 1183 1218 1219 1186 1220 1189 1190 1191 1192 1193 1194 1195Used by:1253
Symbol 1222 GraphicUses:1126Used by:1252
Symbol 1223 GraphicUses:1128Used by:1252
Symbol 1224 GraphicUses:1130Used by:1252
Symbol 1225 GraphicUses:1132Used by:1252
Symbol 1226 GraphicUses:1134Used by:1252
Symbol 1227 GraphicUses:1136Used by:1252
Symbol 1228 GraphicUses:1138Used by:1252
Symbol 1229 GraphicUses:1140Used by:1252
Symbol 1230 GraphicUses:1142Used by:1252
Symbol 1231 GraphicUses:1126Used by:1252
Symbol 1232 GraphicUses:1128Used by:1252
Symbol 1233 GraphicUses:1130Used by:1252
Symbol 1234 GraphicUses:1132Used by:1252
Symbol 1235 GraphicUses:1134Used by:1252
Symbol 1236 GraphicUses:1136Used by:1252
Symbol 1237 GraphicUses:1138Used by:1252
Symbol 1238 GraphicUses:1140Used by:1252
Symbol 1239 GraphicUses:1142Used by:1252
Symbol 1240 GraphicUses:1126Used by:1252
Symbol 1241 GraphicUses:1128Used by:1252
Symbol 1242 GraphicUses:1130Used by:1252
Symbol 1243 GraphicUses:1132Used by:1252
Symbol 1244 GraphicUses:1134Used by:1252
Symbol 1245 GraphicUses:1136Used by:1252
Symbol 1246 GraphicUses:1138Used by:1252
Symbol 1247 GraphicUses:1140Used by:1252
Symbol 1248 GraphicUses:1142Used by:1252
Symbol 1249 SoundUsed by:1252
Symbol 1250 GraphicUses:1140Used by:1252
Symbol 1251 GraphicUses:1142Used by:1252
Symbol 1252 MovieClipUses:1127 1129 1131 1133 1135 1137 1139 1141 1159 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1167 1169 1168 1170 1171 1172 1173 1174 1175 1177 1178 1176 1179 1214Used by:1253
Symbol 1253 MovieClip [enemy_mc15]Uses:1125 1166 1196 1213 1215 1221 1252Used by:1532
Symbol 1254 BitmapUsed by:1255
Symbol 1255 GraphicUses:1254Used by:1264
Symbol 1256 BitmapUsed by:1257
Symbol 1257 GraphicUses:1256Used by:1264
Symbol 1258 BitmapUsed by:1259
Symbol 1259 GraphicUses:1258Used by:1264
Symbol 1260 BitmapUsed by:1261
Symbol 1261 GraphicUses:1260Used by:1264
Symbol 1262 BitmapUsed by:1263
Symbol 1263 GraphicUses:1262Used by:1264
Symbol 1264 MovieClip [blood_mc]Uses:1255 1257 1259 1261 1263Used by:1532
Symbol 1265 BitmapUsed by:1266
Symbol 1266 GraphicUses:1265Used by:1269 1272 1277
Symbol 1267 BitmapUsed by:1268
Symbol 1268 GraphicUses:1267Used by:1269
Symbol 1269 MovieClipUses:1266 1268Used by:1278 1532
Symbol 1270 BitmapUsed by:1271
Symbol 1271 GraphicUses:1270Used by:1272
Symbol 1272 MovieClipUses:1266 1271Used by:1278
Symbol 1273 BitmapUsed by:1274
Symbol 1274 GraphicUses:1273Used by:1278
Symbol 1275 BitmapUsed by:1276
Symbol 1276 GraphicUses:1275Used by:1277
Symbol 1277 MovieClipUses:1266 1276Used by:1278 1532
Symbol 1278 MovieClip [bullet]Uses:1269 123 1272 1274 1277Used by:1532
Symbol 1279 GraphicUsed by:1280
Symbol 1280 MovieClip [bullet_mc2]Uses:1279Used by:1532
Symbol 1281 GraphicUsed by:1497
Symbol 1282 TextUses:85Used by:1497
Symbol 1283 TextUses:85Used by:1497
Symbol 1284 TextUses:85Used by:1497
Symbol 1285 BitmapUsed by:1286
Symbol 1286 GraphicUses:1285Used by:1497
Symbol 1287 GraphicUsed by:1288
Symbol 1288 MovieClipUses:1287Used by:1494
Symbol 1289 GraphicUsed by:1494
Symbol 1290 EditableTextUses:85Used by:1494
Symbol 1291 EditableTextUses:85Used by:1494
Symbol 1292 EditableTextUses:85Used by:1494
Symbol 1293 EditableTextUses:85Used by:1494
Symbol 1294 GraphicUsed by:1297
Symbol 1295 GraphicUsed by:1297
Symbol 1296 GraphicUsed by:1297
Symbol 1297 MovieClipUses:1294 1295 1296Used by:1494
Symbol 1298 GraphicUsed by:1301
Symbol 1299 GraphicUsed by:1301
Symbol 1300 GraphicUsed by:1301
Symbol 1301 MovieClipUses:1298 1299 1300Used by:1494
Symbol 1302 FontUsed by:1303 1304 1305 1306 1307 1308 1309
Symbol 1303 TextUses:1302Used by:1494 1638 1673
Symbol 1304 TextUses:1302Used by:1494 1638 1671
Symbol 1305 TextUses:1302Used by:1494 1638 1675
Symbol 1306 TextUses:1302Used by:1494 1638 1679
Symbol 1307 TextUses:1302Used by:1494 1638 1677
Symbol 1308 TextUses:1302Used by:1494 1638 1681
Symbol 1309 TextUses:1302Used by:1494 1638 1683
Symbol 1310 GraphicUsed by:1494
Symbol 1311 EditableTextUses:85Used by:1494
Symbol 1312 EditableTextUses:85Used by:1494
Symbol 1313 FontUsed by:1314
Symbol 1314 TextUses:1313Used by:1317
Symbol 1315 GraphicUsed by:1317
Symbol 1316 GraphicUsed by:1317
Symbol 1317 MovieClipUses:1314 192 1315 1316Used by:1494
Symbol 1318 GraphicUsed by:1324 1454 1456 1458 1460 1462
Symbol 1319 GraphicUsed by:1320
Symbol 1320 MovieClipUses:1319Used by:1324 1454 1456 1458 1460 1462
Symbol 1321 GraphicUsed by:1322
Symbol 1322 MovieClipUses:1321Used by:1324 1454 1456 1458 1460 1462
Symbol 1323 EditableTextUses:85Used by:1324
Symbol 1324 MovieClipUses:1318 1320 1322 1323Used by:1494
Symbol 1325 GraphicUsed by:1327
Symbol 1326 GraphicUsed by:1327
Symbol 1327 MovieClipUses:1325 1326Used by:1494 1733 1735 1737
Symbol 1328 GraphicUsed by:1494
Symbol 1329 BitmapUsed by:1330 1331 1347 1623
Symbol 1330 GraphicUses:1329Used by:1494
Symbol 1331 GraphicUses:1329Used by:1494
Symbol 1332 GraphicUsed by:1444
Symbol 1333 BitmapUsed by:1334 1451 1590 1672
Symbol 1334 GraphicUses:1333Used by:1444
Symbol 1335 BitmapUsed by:1336 1451 1589 1668
Symbol 1336 GraphicUses:1335Used by:1444
Symbol 1337 BitmapUsed by:1338 1451
Symbol 1338 GraphicUses:1337Used by:1444
Symbol 1339 BitmapUsed by:1340 1451
Symbol 1340 GraphicUses:1339Used by:1444
Symbol 1341 BitmapUsed by:1342
Symbol 1342 GraphicUses:1341Used by:1444
Symbol 1343 BitmapUsed by:1344 1588
Symbol 1344 GraphicUses:1343Used by:1444
Symbol 1345 BitmapUsed by:1346
Symbol 1346 GraphicUses:1345Used by:1444
Symbol 1347 GraphicUses:1329Used by:1444
Symbol 1348 GraphicUsed by:1353
Symbol 1349 BitmapUsed by:1350
Symbol 1350 GraphicUses:1349Used by:1351
Symbol 1351 MovieClipUses:1350Used by:1353 1760
Symbol 1352 GraphicUsed by:1353 1760
Symbol 1353 MovieClipUses:1348 210 1351 1352Used by:1444
Symbol 1354 TextUses:85Used by:1444
Symbol 1355 TextUses:85Used by:1444
Symbol 1356 TextUses:85Used by:1444
Symbol 1357 BitmapUsed by:1358 1381
Symbol 1358 GraphicUses:1357Used by:1382
Symbol 1359 BitmapUsed by:1360 1376 1381
Symbol 1360 GraphicUses:1359Used by:1382
Symbol 1361 BitmapUsed by:1362 1381
Symbol 1362 GraphicUses:1361Used by:1382
Symbol 1363 BitmapUsed by:1364 1377 1381
Symbol 1364 GraphicUses:1363Used by:1382
Symbol 1365 BitmapUsed by:1366 1381
Symbol 1366 GraphicUses:1365Used by:1382
Symbol 1367 BitmapUsed by:1368 1374 1381
Symbol 1368 GraphicUses:1367Used by:1382
Symbol 1369 BitmapUsed by:1370 1378 1381
Symbol 1370 GraphicUses:1369Used by:1382
Symbol 1371 BitmapUsed by:1372 1379 1381
Symbol 1372 GraphicUses:1371Used by:1382
Symbol 1373 ShapeTweeningUsed by:1382
Symbol 1374 GraphicUses:1367Used by:1382
Symbol 1375 GraphicUsed by:1382
Symbol 1376 GraphicUses:1359Used by:1382
Symbol 1377 GraphicUses:1363Used by:1382
Symbol 1378 GraphicUses:1369Used by:1382
Symbol 1379 GraphicUses:1371Used by:1382
Symbol 1380 ShapeTweeningUsed by:1382
Symbol 1381 GraphicUses:1371 1369 1367 1365 1363 1361 1359 1357Used by:1382
Symbol 1382 MovieClipUses:1358 1360 1362 1364 1366 1368 1370 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381Used by:1444 1649 1656
Symbol 1383 MovieClip [coin]Uses:73Used by:1384
Symbol 1384 MovieClipUses:1383Used by:1444
Symbol 1385 BitmapUsed by:1386
Symbol 1386 GraphicUses:1385Used by:1415
Symbol 1387 BitmapUsed by:1388
Symbol 1388 GraphicUses:1387Used by:1415
Symbol 1389 BitmapUsed by:1390 1412
Symbol 1390 GraphicUses:1389Used by:1415
Symbol 1391 BitmapUsed by:1392 1407 1412
Symbol 1392 GraphicUses:1391Used by:1415
Symbol 1393 BitmapUsed by:1394 1412
Symbol 1394 GraphicUses:1393Used by:1415
Symbol 1395 BitmapUsed by:1396
Symbol 1396 GraphicUses:1395Used by:1415
Symbol 1397 BitmapUsed by:1398 1408 1413
Symbol 1398 GraphicUses:1397Used by:1415
Symbol 1399 BitmapUsed by:1400 1413
Symbol 1400 GraphicUses:1399Used by:1415
Symbol 1401 BitmapUsed by:1402 1409
Symbol 1402 GraphicUses:1401Used by:1415
Symbol 1403 BitmapUsed by:1404 1410 1414
Symbol 1404 GraphicUses:1403Used by:1415
Symbol 1405 BitmapUsed by:1406 1411 1414
Symbol 1406 GraphicUses:1405Used by:1415
Symbol 1407 GraphicUses:1391Used by:1415
Symbol 1408 GraphicUses:1397Used by:1415
Symbol 1409 GraphicUses:1401Used by:1415
Symbol 1410 GraphicUses:1403Used by:1415
Symbol 1411 GraphicUses:1405Used by:1415
Symbol 1412 GraphicUses:1393 1391 1389Used by:1415
Symbol 1413 GraphicUses:1399 1397Used by:1415
Symbol 1414 GraphicUses:1405 1403Used by:1415
Symbol 1415 MovieClipUses:1386 1388 1390 1392 1394 1396 1398 1400 1402 1404 1406 1407 1408 1409 1410 1411 1412 1413 1414Used by:1444 1649 1656
Symbol 1416 ShapeTweeningUsed by:1418
Symbol 1417 GraphicUsed by:1418
Symbol 1418 MovieClipUses:1416 1417Used by:1444
Symbol 1419 BitmapUsed by:1420 1427 1429
Symbol 1420 GraphicUses:1419Used by:1430
Symbol 1421 BitmapUsed by:1422 1429
Symbol 1422 GraphicUses:1421Used by:1430
Symbol 1423 BitmapUsed by:1424 1429
Symbol 1424 GraphicUses:1423Used by:1430
Symbol 1425 BitmapUsed by:1426 1428 1429
Symbol 1426 GraphicUses:1425Used by:1430
Symbol 1427 GraphicUses:1419Used by:1430
Symbol 1428 GraphicUses:1425Used by:1430
Symbol 1429 GraphicUses:1425 1423 1421 1419Used by:1430
Symbol 1430 MovieClipUses:1420 1422 1424 1426 1427 1428 1429Used by:1444 1649 1656
Symbol 1431 BitmapUsed by:1439
Symbol 1432 BitmapUsed by:1439 1441
Symbol 1433 BitmapUsed by:1439
Symbol 1434 BitmapUsed by:1439 1441
Symbol 1435 BitmapUsed by:1439 1441
Symbol 1436 BitmapUsed by:1439 1441 1736
Symbol 1437 BitmapUsed by:1439 1441 1736
Symbol 1438 BitmapUsed by:1439 1441 1736
Symbol 1439 GraphicUses:1431 1432 114 1433 1434 1435 1436 1437 1438Used by:1442 1658
Symbol 1440 BitmapUsed by:1441
Symbol 1441 GraphicUses:1440 1432 1434 1435 1436 1437 1438Used by:1442 1658
Symbol 1442 MovieClipUses:1439 1441Used by:1444
Symbol 1443 MovieClipUses:115Used by:1444
Symbol 1444 MovieClipUses:1332 1334 1336 1338 1340 1342 1344 1346 1347 1353 1354 1355 1356 1382 1384 1415 1418 1430 1442 1443Used by:1494
Symbol 1445 BitmapUsed by:1451 1596 1680 1723
Symbol 1446 BitmapUsed by:1451 1597 1682 1724
Symbol 1447 BitmapUsed by:1451
Symbol 1448 BitmapUsed by:1451 1734
Symbol 1449 BitmapUsed by:1451
Symbol 1450 BitmapUsed by:1451 1593 1676 1721
Symbol 1451 GraphicUses:1445 1446 1339 1447 1448 1449 1335 1337 1333 1450Used by:1494
Symbol 1452 EditableTextUses:85Used by:1494
Symbol 1453 EditableTextUses:85Used by:1454
Symbol 1454 MovieClipUses:1318 1320 1322 1453Used by:1494
Symbol 1455 EditableTextUses:85Used by:1456
Symbol 1456 MovieClipUses:1318 1320 1322 1455Used by:1494
Symbol 1457 EditableTextUses:85Used by:1458
Symbol 1458 MovieClipUses:1318 1320 1322 1457Used by:1494
Symbol 1459 EditableTextUses:85Used by:1460
Symbol 1460 MovieClipUses:1318 1320 1322 1459Used by:1494
Symbol 1461 EditableTextUses:85Used by:1462
Symbol 1462 MovieClipUses:1318 1320 1322 1461Used by:1494
Symbol 1463 GraphicUsed by:1465
Symbol 1464 GraphicUsed by:1465
Symbol 1465 MovieClipUses:1463 1464Used by:1494  Timeline
Symbol 1466 EditableTextUses:85Used by:1494
Symbol 1467 EditableTextUses:85Used by:1494
Symbol 1468 TextUses:85Used by:1494  Timeline
Symbol 1469 FontUsed by:1470 1605 1748 1801 1811 1821
Symbol 1470 EditableTextUses:1469Used by:1494
Symbol 1471 EditableTextUses:85Used by:1494
Symbol 1472 EditableTextUses:85Used by:1494
Symbol 1473 EditableTextUses:85Used by:1494
Symbol 1474 TextUses:85Used by:1494
Symbol 1475 GraphicUsed by:1494
Symbol 1476 EditableTextUses:85Used by:1494
Symbol 1477 GraphicUsed by:1494
Symbol 1478 BitmapUsed by:1479 1486 1513 1771
Symbol 1479 GraphicUses:1478Used by:1484 1769
Symbol 1480 FontUsed by:1481 1581 1582 1586 1587 1607 1608 1621
Symbol 1481 TextUses:1480Used by:1484
Symbol 1482 BitmapUsed by:1483 1487 1514 1772
Symbol 1483 GraphicUses:1482Used by:1484 1505 1530 1769
Symbol 1484 MovieClipUses:1479 1481 1483Used by:1494
Symbol 1485 BitmapUsed by:1486 1487
Symbol 1486 GraphicUses:1485 1478Used by:1488
Symbol 1487 GraphicUses:1485 1482Used by:1488
Symbol 1488 MovieClipUses:1486 1487Used by:1494 1519 1531 1550 1786
Symbol 1489 GraphicUsed by:1493
Symbol 1490 EditableTextUses:85Used by:1493
Symbol 1491 BitmapUsed by:1492
Symbol 1492 GraphicUses:1491Used by:1493
Symbol 1493 MovieClipUses:1489 1490 1492Used by:1494
Symbol 1494 MovieClipUses:1288 1289 1290 1291 1292 1293 1297 1301 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1317 1324 1327 1328 1330 1331 1444 1451 1452 1454 1456 1458 1460 1462 1465 1466 1467 1468 1470 1471 1472 1473 1474 1475 1476 1477 1484 1488 1493Used by:1497
Symbol 1495 GraphicUsed by:1497
Symbol 1496 GraphicUsed by:1497
Symbol 1497 MovieClip [wavecomplete]Uses:1281 1282 1283 1284 1286 1494 1495 1496Used by:1532
Symbol 1498 GraphicUsed by:1499
Symbol 1499 MovieClipUses:1498Used by:1519
Symbol 1500 TextUses:85Used by:1519
Symbol 1501 GraphicUsed by:1502
Symbol 1502 MovieClipUses:1501Used by:1519 1531 1578 1638
Symbol 1503 GraphicUsed by:1505
Symbol 1504 TextUses:180Used by:1505
Symbol 1505 MovieClipUses:1503 1504 1483Used by:1519 1531
Symbol 1506 MovieClipUses:996 1062Used by:1507
Symbol 1507 MovieClipUses:236 287 346 411 483 521 541 565 176 152 653 718 759 826 863 905 938 1103 1166 1506Used by:1519
Symbol 1508 TextUses:85Used by:1511
Symbol 1509 BitmapUsed by:1510 1775 1785
Symbol 1510 GraphicUses:1509Used by:1511 1563 1577
Symbol 1511 MovieClipUses:1508 1510Used by:1519
Symbol 1512 BitmapUsed by:1513 1514
Symbol 1513 GraphicUses:1512 1478Used by:1515
Symbol 1514 GraphicUses:1512 1482Used by:1515
Symbol 1515 MovieClipUses:1513 1514Used by:1519 1531 1786
Symbol 1516 TextUses:177Used by:1518
Symbol 1517 TextUses:177Used by:1518
Symbol 1518 MovieClipUses:1516 1517Used by:1519 1531
Symbol 1519 MovieClip [wavecomplete2]Uses:1499 1500 1502 1505 1507 1511 1515 1518 1488Used by:1532
Symbol 1520 FontUsed by:1521
Symbol 1521 EditableTextUses:1520Used by:1522
Symbol 1522 MovieClip [waveNo]Uses:1521Used by:1532
Symbol 1523 MovieClip [healthbar]Uses:66 69Used by:1532
Symbol 1524 GraphicUsed by:1531
Symbol 1525 SoundUsed by:1531
Symbol 1526 GraphicUsed by:1531
Symbol 1527 GraphicUsed by:1530
Symbol 1528 TextUses:180Used by:1530
Symbol 1529 TextUses:180Used by:1530
Symbol 1530 MovieClipUses:1527 1528 1529 1483Used by:1531
Symbol 1531 MovieClip [gameOver_mc]Uses:1524 1525 1526 1502 19 1530 1515 1488 1505 1518Used by:1532
Symbol 1532 MovieClipUses:210 264 323 391 454 500 542 545 576 595 614 679 739 792 855 878 914 953 1023 1081 1124 1253 1264 1278 1280 1269 1277 116 113 1497 1519 1522 1523 1531Used by:Timeline
Symbol 1533 Sound [forestsound]Used by:1537
Symbol 1534 Sound [swampsound]Used by:1537
Symbol 1535 Sound [bgsound]Used by:1537
Symbol 1536 Sound [upgradesound]Used by:1537
Symbol 1537 MovieClipUses:1533 1534 1535 1536Used by:Timeline
Symbol 1538 BitmapUsed by:1539
Symbol 1539 GraphicUses:1538Used by:Timeline
Symbol 1540 BitmapUsed by:1541
Symbol 1541 GraphicUses:1540Used by:1542
Symbol 1542 MovieClipUses:1541Used by:Timeline
Symbol 1543 GraphicUsed by:1546
Symbol 1544 TextUses:180Used by:1546
Symbol 1545 GraphicUsed by:1546 1549
Symbol 1546 MovieClipUses:1543 1544 1545Used by:1550
Symbol 1547 GraphicUsed by:1549
Symbol 1548 TextUses:180Used by:1549
Symbol 1549 MovieClipUses:1547 1548 1545Used by:1550
Symbol 1550 MovieClipUses:183 1488 1546 1549Used by:Timeline
Symbol 1551 BitmapUsed by:1552
Symbol 1552 GraphicUses:1551Used by:1553
Symbol 1553 MovieClipUses:1552Used by:Timeline
Symbol 1554 BitmapUsed by:1555
Symbol 1555 GraphicUses:1554Used by:1556
Symbol 1556 MovieClipUses:1555Used by:Timeline
Symbol 1557 BitmapUsed by:1558 1559 1560 1561
Symbol 1558 GraphicUses:1557Used by:1562
Symbol 1559 GraphicUses:1557Used by:1562
Symbol 1560 GraphicUses:1557Used by:1562
Symbol 1561 GraphicUses:1557Used by:1562
Symbol 1562 MovieClipUses:1558 1559 1560 1561Used by:Timeline
Symbol 1563 MovieClipUses:1510Used by:Timeline
Symbol 1564 TextUses:180Used by:1578
Symbol 1565 TextUses:180Used by:1578
Symbol 1566 TextUses:180Used by:1578
Symbol 1567 MovieClipUses:188 189Used by:1568
Symbol 1568 MovieClipUses:188 189 1567Used by:1578  Timeline
Symbol 1569 TextUses:180Used by:1578
Symbol 1570 TextUses:180Used by:1578
Symbol 1571 TextUses:180Used by:1578
Symbol 1572 TextUses:180Used by:1578
Symbol 1573 GraphicUsed by:1575
Symbol 1574 TextUses:180Used by:1575
Symbol 1575 MovieClipUses:1573 1574 182Used by:1578
Symbol 1576 TextUses:180Used by:1578
Symbol 1577 MovieClipUses:1510Used by:1578
Symbol 1578 MovieClipUses:1502 1564 1565 1566 1568 1569 1570 1571 1572 1575 1576 1577Used by:Timeline
Symbol 1579 BitmapUsed by:1580
Symbol 1580 GraphicUses:1579Used by:1638
Symbol 1581 TextUses:1480Used by:1638
Symbol 1582 TextUses:1480Used by:1638
Symbol 1583 GraphicUsed by:1638
Symbol 1584 TextUses:85Used by:1638
Symbol 1585 TextUses:85Used by:1638
Symbol 1586 TextUses:1480Used by:1638
Symbol 1587 TextUses:1480Used by:1638
Symbol 1588 GraphicUses:1343Used by:1638
Symbol 1589 GraphicUses:1335Used by:1638
Symbol 1590 GraphicUses:1333Used by:1638
Symbol 1591 BitmapUsed by:1592 1674 1720
Symbol 1592 GraphicUses:1591Used by:1638
Symbol 1593 GraphicUses:1450Used by:1638
Symbol 1594 BitmapUsed by:1595 1678 1722
Symbol 1595 GraphicUses:1594Used by:1638
Symbol 1596 GraphicUses:1445Used by:1638
Symbol 1597 GraphicUses:1446Used by:1638
Symbol 1598 GraphicUsed by:1600
Symbol 1599 GraphicUsed by:1600
Symbol 1600 MovieClipUses:1598 1599Used by:1601  Timeline
Symbol 1601 MovieClipUses:1600Used by:1638
Symbol 1602 TextUses:85Used by:1638
Symbol 1603 TextUses:85Used by:1638
Symbol 1604 TextUses:85Used by:1638  Timeline
Symbol 1605 TextUses:1469Used by:1638
Symbol 1606 GraphicUsed by:1638
Symbol 1607 TextUses:1480Used by:1638
Symbol 1608 TextUses:1480Used by:1638
Symbol 1609 GraphicUsed by:1612
Symbol 1610 TextUses:180Used by:1612
Symbol 1611 TextUses:180Used by:1612
Symbol 1612 MovieClipUses:1609 1610 182 1611Used by:1638
Symbol 1613 GraphicUsed by:1616
Symbol 1614 TextUses:180Used by:1616
Symbol 1615 TextUses:180Used by:1616
Symbol 1616 MovieClipUses:1613 1614 182 1615Used by:1638
Symbol 1617 GraphicUsed by:1620
Symbol 1618 TextUses:180Used by:1620
Symbol 1619 TextUses:180Used by:1620
Symbol 1620 MovieClipUses:1617 1618 182 1619Used by:1638
Symbol 1621 TextUses:1480Used by:1638
Symbol 1622 GraphicUses:71Used by:1638
Symbol 1623 GraphicUses:1329Used by:1626 1643
Symbol 1624 BitmapUsed by:1625
Symbol 1625 GraphicUses:1624Used by:1626
Symbol 1626 MovieClipUses:1623 1625Used by:1638 1644
Symbol 1627 BitmapUsed by:1628 1631
Symbol 1628 GraphicUses:1627Used by:1632
Symbol 1629 BitmapUsed by:1630
Symbol 1630 GraphicUses:1629Used by:1632
Symbol 1631 GraphicUses:1627Used by:1632 1650
Symbol 1632 MovieClipUses:1628 1630 1631Used by:1638 1651
Symbol 1633 BitmapUsed by:1634
Symbol 1634 GraphicUses:1633Used by:1638
Symbol 1635 GraphicUsed by:1637
Symbol 1636 GraphicUsed by:1637
Symbol 1637 MovieClipUses:1635 1636Used by:1638
Symbol 1638 MovieClipUses:1580 1502 1581 453 1582 1583 1584 1585 1586 1587 287 263 1588 1304 1589 1303 1590 1305 1592 1307 1593 1306 1595 1308 1596 1309 1597 1601 1602 1603 1604 1605 1606 1607 1608 1612 1616 1620 1621 1622 1626 1632 1634 1637Used by:Timeline
Symbol 1639 BitmapUsed by:1640
Symbol 1640 GraphicUses:1639Used by:1641
Symbol 1641 MovieClipUses:1640Used by:Timeline
Symbol 1642 MovieClipUses:210Used by:Timeline
Symbol 1643 MovieClipUses:1623Used by:1644
Symbol 1644 MovieClipUses:1626 1643 109Used by:Timeline
Symbol 1645 BitmapUsed by:1646
Symbol 1646 GraphicUses:1645Used by:1649
Symbol 1647 GraphicUsed by:1649 1656
Symbol 1648 GraphicUsed by:1649
Symbol 1649 MovieClipUses:1646 1382 1647 1648 1415 1430Used by:Timeline
Symbol 1650 MovieClipUses:1631Used by:1651
Symbol 1651 MovieClipUses:1632 1650 109Used by:Timeline
Symbol 1652 BitmapUsed by:1653
Symbol 1653 GraphicUses:1652Used by:1656
Symbol 1654 GraphicUsed by:1656
Symbol 1655 GraphicUsed by:1656
Symbol 1656 MovieClipUses:1653 1382 1647 1654 1415 1655 1430Used by:Timeline
Symbol 1657 SoundUsed by:1658
Symbol 1658 MovieClipUses:1439 1441 1657Used by:1659
Symbol 1659 MovieClipUses:1658Used by:Timeline
Symbol 1660 BitmapUsed by:1661
Symbol 1661 GraphicUses:1660Used by:Timeline
Symbol 1662 BitmapUsed by:1663
Symbol 1663 GraphicUses:1662Used by:1684
Symbol 1664 EditableTextUses:85Used by:1684
Symbol 1665 EditableTextUses:81Used by:1684
Symbol 1666 BitmapUsed by:1667
Symbol 1667 GraphicUses:1666Used by:1671 1673 1675 1677 1679 1681 1683
Symbol 1668 GraphicUses:1335Used by:1671
Symbol 1669 BitmapUsed by:1670
Symbol 1670 GraphicUses:1669Used by:1671 1673 1675 1677 1679 1681 1683
Symbol 1671 MovieClipUses:1667 1304 1668 1670Used by:1684
Symbol 1672 GraphicUses:1333Used by:1673
Symbol 1673 MovieClipUses:1667 1303 1672 1670Used by:1684
Symbol 1674 GraphicUses:1591Used by:1675
Symbol 1675 MovieClipUses:1667 1305 1674 1670Used by:1684
Symbol 1676 GraphicUses:1450Used by:1677
Symbol 1677 MovieClipUses:1667 1307 1676 1670Used by:1684
Symbol 1678 GraphicUses:1594Used by:1679
Symbol 1679 MovieClipUses:1667 1306 1678 1670Used by:1684
Symbol 1680 GraphicUses:1445Used by:1681
Symbol 1681 MovieClipUses:1667 1308 1680 1670Used by:1684
Symbol 1682 GraphicUses:1446Used by:1683
Symbol 1683 MovieClipUses:1667 1309 1682 1670Used by:1684
Symbol 1684 MovieClipUses:1663 1664 1665 1671 1673 1675 1677 1679 1681 1683Used by:1685
Symbol 1685 MovieClipUses:1684Used by:Timeline
Symbol 1686 GraphicUsed by:1709
Symbol 1687 BitmapUsed by:1688 1703 1707
Symbol 1688 GraphicUses:1687Used by:1709
Symbol 1689 BitmapUsed by:1690 1707
Symbol 1690 GraphicUses:1689Used by:1709
Symbol 1691 BitmapUsed by:1692 1704 1707
Symbol 1692 GraphicUses:1691Used by:1709
Symbol 1693 BitmapUsed by:1694
Symbol 1694 GraphicUses:1693Used by:1709
Symbol 1695 BitmapUsed by:1696 1705 1708
Symbol 1696 GraphicUses:1695Used by:1709
Symbol 1697 BitmapUsed by:1698 1708
Symbol 1698 GraphicUses:1697Used by:1709
Symbol 1699 BitmapUsed by:1700 1708
Symbol 1700 GraphicUses:1699Used by:1709
Symbol 1701 BitmapUsed by:1702 1706 1708
Symbol 1702 GraphicUses:1701Used by:1709
Symbol 1703 GraphicUses:1687Used by:1709
Symbol 1704 GraphicUses:1691Used by:1709
Symbol 1705 GraphicUses:1695Used by:1709
Symbol 1706 GraphicUses:1701Used by:1709
Symbol 1707 GraphicUses:1691 1689 1687Used by:1709
Symbol 1708 GraphicUses:1701 1699 1697 1695Used by:1709
Symbol 1709 MovieClipUses:1686 1688 1690 1692 1694 1696 1698 1700 1702 1703 1704 1705 1706 1707 1708Used by:Timeline
Symbol 1710 GraphicUsed by:Timeline
Symbol 1711 BitmapUsed by:1715
Symbol 1712 BitmapUsed by:1715
Symbol 1713 BitmapUsed by:1715
Symbol 1714 BitmapUsed by:1715
Symbol 1715 GraphicUses:1711 1712 1713 1714Used by:1729
Symbol 1716 BitmapUsed by:1717
Symbol 1717 GraphicUses:1716Used by:1725
Symbol 1718 BitmapUsed by:1719
Symbol 1719 GraphicUses:1718Used by:1725
Symbol 1720 GraphicUses:1591Used by:1725
Symbol 1721 GraphicUses:1450Used by:1725
Symbol 1722 GraphicUses:1594Used by:1725
Symbol 1723 GraphicUses:1445Used by:1725
Symbol 1724 GraphicUses:1446Used by:1725
Symbol 1725 MovieClipUses:1717 1719 1720 1721 1722 1723 1724Used by:1729
Symbol 1726 BitmapUsed by:1727
Symbol 1727 GraphicUses:1726Used by:1729
Symbol 1728 MovieClipUsed by:1729
Symbol 1729 MovieClipUses:1715 1725 1727 1728Used by:Timeline
Symbol 1730 BitmapUsed by:1732 1734 1736
Symbol 1731 BitmapUsed by:1732
Symbol 1732 GraphicUses:1730 1731Used by:1733
Symbol 1733 MovieClipUses:1327 1732Used by:Timeline
Symbol 1734 GraphicUses:1730 1448Used by:1735
Symbol 1735 MovieClipUses:1327 1734Used by:Timeline
Symbol 1736 GraphicUses:1730 1436 1438 1437Used by:1737
Symbol 1737 MovieClipUses:1327 1736Used by:Timeline
Symbol 1738 EditableTextUses:85Used by:Timeline
Symbol 1739 EditableTextUses:85Used by:Timeline
Symbol 1740 EditableTextUses:85Used by:Timeline
Symbol 1741 GraphicUses:71Used by:1742
Symbol 1742 MovieClipUses:1741Used by:Timeline
Symbol 1743 GraphicUsed by:1747
Symbol 1744 GraphicUsed by:1745
Symbol 1745 MovieClipUses:1744Used by:1747
Symbol 1746 GraphicUsed by:1747
Symbol 1747 MovieClipUses:1743 210 1745 1746Used by:Timeline
Symbol 1748 EditableTextUses:1469Used by:Timeline
Symbol 1749 GraphicUsed by:Timeline
Symbol 1750 GraphicUsed by:1751
Symbol 1751 MovieClipUses:1750Used by:Timeline
Symbol 1752 GraphicUsed by:1754
Symbol 1753 GraphicUsed by:1754
Symbol 1754 MovieClipUses:1752 1753Used by:Timeline
Symbol 1755 EditableTextUses:85Used by:Timeline
Symbol 1756 EditableTextUses:85Used by:Timeline
Symbol 1757 EditableTextUses:85Used by:Timeline
Symbol 1758 EditableTextUses:85Used by:Timeline
Symbol 1759 EditableTextUses:180Used by:Timeline
Symbol 1760 MovieClipUses:66 210 1351 1352Used by:Timeline
Symbol 1761 EditableTextUses:85Used by:Timeline
Symbol 1762 TextUses:85Used by:1763
Symbol 1763 MovieClipUses:192 1762Used by:Timeline
Symbol 1764 GraphicUsed by:1786
Symbol 1765 EditableTextUses:180Used by:1769
Symbol 1766 BitmapUsed by:1767
Symbol 1767 GraphicUses:1766Used by:1769
Symbol 1768 EditableTextUses:180Used by:1769
Symbol 1769 MovieClipUses:1479 1765 1767 1483 1768Used by:1786
Symbol 1770 BitmapUsed by:1771 1772
Symbol 1771 GraphicUses:1770 1478Used by:1773
Symbol 1772 GraphicUses:1770 1482Used by:1773
Symbol 1773 MovieClipUses:1771 1772Used by:1786
Symbol 1774 BitmapUsed by:1775
Symbol 1775 GraphicUses:1774 1509Used by:1786
Symbol 1776 GraphicUsed by:1778
Symbol 1777 TextUses:180Used by:1778
Symbol 1778 MovieClipUses:1776 1777 182Used by:1786
Symbol 1779 GraphicUsed by:1781
Symbol 1780 TextUses:180Used by:1781
Symbol 1781 MovieClipUses:1779 1780 182Used by:1786
Symbol 1782 TextUses:85Used by:1786
Symbol 1783 TextUses:85Used by:1786
Symbol 1784 TextUses:85Used by:1786
Symbol 1785 GraphicUses:1509Used by:1786
Symbol 1786 MovieClipUses:1764 1515 1488 1769 1773 1775 1778 1781 1782 1783 1784 1785Used by:Timeline
Symbol 1787 MovieClipUsed by:Timeline
Symbol 1788 TextUses:177Used by:1789
Symbol 1789 MovieClipUses:1788Used by:Timeline
Symbol 1790 ShapeTweeningUsed by:1791
Symbol 1791 MovieClipUses:1790 192Used by:Timeline
Symbol 1792 GraphicUsed by:1795
Symbol 1793 GraphicUsed by:1795
Symbol 1794 GraphicUsed by:1795
Symbol 1795 MovieClipUses:1792 1793 1794Used by:Timeline
Symbol 1796 GraphicUsed by:Timeline
Symbol 1797 EditableTextUses:85Used by:Timeline
Symbol 1798 EditableTextUses:85Used by:Timeline
Symbol 1799 EditableTextUses:85Used by:Timeline
Symbol 1800 TextUses:85Used by:Timeline
Symbol 1801 EditableTextUses:1469Used by:Timeline
Symbol 1802 EditableTextUses:85Used by:Timeline
Symbol 1803 EditableTextUses:85Used by:Timeline
Symbol 1804 EditableTextUses:85Used by:Timeline
Symbol 1805 EditableTextUses:85Used by:Timeline
Symbol 1806 EditableTextUses:85Used by:Timeline
Symbol 1807 GraphicUsed by:Timeline
Symbol 1808 EditableTextUses:85Used by:Timeline
Symbol 1809 EditableTextUses:85Used by:Timeline
Symbol 1810 EditableTextUses:85Used by:Timeline
Symbol 1811 EditableTextUses:1469Used by:Timeline
Symbol 1812 EditableTextUses:85Used by:Timeline
Symbol 1813 EditableTextUses:85Used by:Timeline
Symbol 1814 EditableTextUses:85Used by:Timeline
Symbol 1815 EditableTextUses:85Used by:Timeline
Symbol 1816 EditableTextUses:85Used by:Timeline
Symbol 1817 GraphicUsed by:Timeline
Symbol 1818 EditableTextUses:85Used by:Timeline
Symbol 1819 EditableTextUses:85Used by:Timeline
Symbol 1820 EditableTextUses:85Used by:Timeline
Symbol 1821 EditableTextUses:1469Used by:Timeline
Symbol 1822 EditableTextUses:85Used by:Timeline
Symbol 1823 EditableTextUses:85Used by:Timeline
Symbol 1824 EditableTextUses:85Used by:Timeline
Symbol 1825 EditableTextUses:85Used by:Timeline
Symbol 1826 EditableTextUses:85Used by:Timeline
Streaming Sound 1Used by:Timeline
Streaming Sound 2Used by:Symbol 209 MovieClip
Streaming Sound 3Used by:Symbol 442 MovieClip
Streaming Sound 4Used by:Symbol 781 MovieClip

Instance Names

"loaded_txt"Frame 1Symbol 178 EditableText
"loadingbox"Frame 1Symbol 183 MovieClip
"adBox"Frame 1Symbol 185 MovieClip
"notdopplerintro"Frame 1Symbol 209 MovieClip
"creditsbox"Frame 3Symbol 1578 MovieClip
"tutorial"Frame 3Symbol 1638 MovieClip
"effectHolder_mc"Frame 4Symbol 1641 MovieClip
"wall"Frame 4Symbol 1642 MovieClip
"crate1"Frame 4Symbol 1644 MovieClip
"ally_crate1"Frame 4Symbol 1649 MovieClip
"crate2"Frame 4Symbol 1651 MovieClip
"ally_crate2"Frame 4Symbol 1656 MovieClip
"crate3"Frame 4Symbol 1644 MovieClip
"ally_crate3"Frame 4Symbol 1649 MovieClip
"sisbow3"Frame 4Symbol 1659 MovieClip
"sisbow2"Frame 4Symbol 1659 MovieClip
"sisbow1"Frame 4Symbol 1659 MovieClip
"wall2"Frame 4Symbol 1642 MovieClip
"wall3"Frame 4Symbol 1642 MovieClip
"wall4"Frame 4Symbol 1642 MovieClip
"wall5"Frame 4Symbol 1642 MovieClip
"weaponbar"Frame 4Symbol 1685 MovieClip
"player_anim"Frame 4Symbol 1709 MovieClip
"notYet_mc"Frame 4Symbol 88 MovieClip [notbuy_mc]
"player_mc"Frame 4Symbol 1729 MovieClip
"shooter"Frame 4Symbol 1600 MovieClip
"momIcon"Frame 4Symbol 1733 MovieClip
"dadIcon"Frame 4Symbol 1735 MovieClip
"sisIcon"Frame 4Symbol 1737 MovieClip
"upg_btn1"Frame 4Symbol 1465 MovieClip
"macDam"Frame 4Symbol 1738 EditableText
"upg_btn2"Frame 4Symbol 1465 MovieClip
"macRel"Frame 4Symbol 1739 EditableText
"upg_btn3"Frame 4Symbol 1465 MovieClip
"CoinTxt"Frame 4Symbol 1740 EditableText
"moneycounter"Frame 4Symbol 1742 MovieClip
"clip_mc"Frame 4Symbol 1747 MovieClip
"macAmmo"Frame 4Symbol 1748 EditableText
"Btn_Mute"Frame 4Symbol 1754 MovieClip
"macStats1"Frame 4Symbol 1755 EditableText
"macStats2"Frame 4Symbol 1756 EditableText
"macStats3"Frame 4Symbol 1757 EditableText
"macInfo"Frame 4Symbol 1758 EditableText
"waveTxt"Frame 4Symbol 1759 EditableText
"life_mc"Frame 4Symbol 1760 MovieClip
"macLife"Frame 4Symbol 1761 EditableText
"pause_mc"Frame 4Symbol 1786 MovieClip
"shaker"Frame 4Symbol 1787 MovieClip
"showmessage_mc"Frame 4Symbol 1789 MovieClip
"player_mc"Frame 33Symbol 1729 MovieClip
"momIcon"Frame 33Symbol 1733 MovieClip
"dadIcon"Frame 33Symbol 1735 MovieClip
"sisIcon"Frame 33Symbol 1737 MovieClip
"upg_btn1"Frame 33Symbol 1465 MovieClip
"macDam"Frame 33Symbol 1797 EditableText
"upg_btn2"Frame 33Symbol 1465 MovieClip
"macRel"Frame 33Symbol 1798 EditableText
"upg_btn3"Frame 33Symbol 1465 MovieClip
"CoinTxt"Frame 33Symbol 1799 EditableText
"macAmmo"Frame 33Symbol 1801 EditableText
"life_mc"Frame 33Symbol 1760 MovieClip
"Btn_Mute"Frame 33Symbol 1754 MovieClip
"macStats1"Frame 33Symbol 1802 EditableText
"macStats2"Frame 33Symbol 1803 EditableText
"macStats3"Frame 33Symbol 1804 EditableText
"macInfo"Frame 33Symbol 1805 EditableText
"macLife"Frame 33Symbol 1806 EditableText
"player_mc"Frame 34Symbol 1729 MovieClip
"macDam"Frame 34Symbol 1808 EditableText
"macRel"Frame 34Symbol 1809 EditableText
"CoinTxt"Frame 34Symbol 1810 EditableText
"macAmmo"Frame 34Symbol 1811 EditableText
"macStats1"Frame 34Symbol 1812 EditableText
"macStats2"Frame 34Symbol 1813 EditableText
"macStats3"Frame 34Symbol 1814 EditableText
"macInfo"Frame 34Symbol 1815 EditableText
"macLife"Frame 34Symbol 1816 EditableText
"effectHolder_mc"Frame 36Symbol 1641 MovieClip
"wall"Frame 36Symbol 1642 MovieClip
"crate1"Frame 36Symbol 1644 MovieClip
"ally_crate1"Frame 36Symbol 1649 MovieClip
"crate2"Frame 36Symbol 1651 MovieClip
"ally_crate2"Frame 36Symbol 1656 MovieClip
"crate3"Frame 36Symbol 1644 MovieClip
"ally_crate3"Frame 36Symbol 1649 MovieClip
"wall2"Frame 36Symbol 1642 MovieClip
"wall3"Frame 36Symbol 1642 MovieClip
"wall4"Frame 36Symbol 1642 MovieClip
"player_anim"Frame 36Symbol 1709 MovieClip
"notYet_mc"Frame 36Symbol 88 MovieClip [notbuy_mc]
"player_mc"Frame 36Symbol 1729 MovieClip
"shooter"Frame 36Symbol 1600 MovieClip
"upg_btn1"Frame 36Symbol 1465 MovieClip
"macDam"Frame 36Symbol 1818 EditableText
"upg_btn2"Frame 36Symbol 1465 MovieClip
"macRel"Frame 36Symbol 1819 EditableText
"upg_btn3"Frame 36Symbol 1465 MovieClip
"CoinTxt"Frame 36Symbol 1820 EditableText
"moneycounter"Frame 36Symbol 1742 MovieClip
"clip_mc"Frame 36Symbol 1747 MovieClip
"macAmmo"Frame 36Symbol 1821 EditableText
"life_mc"Frame 36Symbol 1760 MovieClip
"Btn_Mute"Frame 36Symbol 1754 MovieClip
"macStats1"Frame 36Symbol 1822 EditableText
"macStats2"Frame 36Symbol 1823 EditableText
"macStats3"Frame 36Symbol 1824 EditableText
"macInfo"Frame 36Symbol 1825 EditableText
"macLife"Frame 36Symbol 1826 EditableText
"pause_mc"Frame 36Symbol 1786 MovieClip
"bar_mc"Symbol 70 MovieClip [bosshealthbar] Frame 1Symbol 69 MovieClip
"bar_mc"Symbol 70 MovieClip [bosshealthbar] Frame 1Symbol 69 MovieClip
"txtMsg"Symbol 88 MovieClip [notbuy_mc] Frame 2Symbol 86 EditableText
"txtMsg"Symbol 88 MovieClip [notbuy_mc] Frame 3Symbol 87 EditableText
"yes_btn"Symbol 1324 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1324 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1324 MovieClip Frame 2Symbol 1323 EditableText
"bar_mc"Symbol 1353 MovieClip Frame 1Symbol 1351 MovieClip
"bar_mc"Symbol 1353 MovieClip Frame 6Symbol 1351 MovieClip
"bar_mc"Symbol 1353 MovieClip Frame 11Symbol 1351 MovieClip
"bar_mc"Symbol 1353 MovieClip Frame 16Symbol 1351 MovieClip
"yes_btn"Symbol 1454 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1454 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1454 MovieClip Frame 2Symbol 1453 EditableText
"yes_btn"Symbol 1456 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1456 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1456 MovieClip Frame 2Symbol 1455 EditableText
"yes_btn"Symbol 1458 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1458 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1458 MovieClip Frame 2Symbol 1457 EditableText
"yes_btn"Symbol 1460 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1460 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1460 MovieClip Frame 2Symbol 1459 EditableText
"yes_btn"Symbol 1462 MovieClip Frame 2Symbol 1320 MovieClip
"no_btn"Symbol 1462 MovieClip Frame 2Symbol 1322 MovieClip
"CoinTxt"Symbol 1462 MovieClip Frame 2Symbol 1461 EditableText
"macLife"Symbol 1493 MovieClip Frame 2Symbol 1490 EditableText
"CoinTxt"Symbol 1494 MovieClip Frame 1Symbol 1290 EditableText
"CoinTxt"Symbol 1494 MovieClip Frame 1Symbol 1291 EditableText
"macLife"Symbol 1494 MovieClip Frame 1Symbol 1292 EditableText
"CoinTxt"Symbol 1494 MovieClip Frame 1Symbol 1293 EditableText
"weaponTrans"Symbol 1494 MovieClip Frame 1Symbol 1297 MovieClip
"btn1"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn2"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn3"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn4"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn5"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn6"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"btn7"Symbol 1494 MovieClip Frame 1Symbol 1301 MovieClip
"itemCostText"Symbol 1494 MovieClip Frame 1Symbol 1311 EditableText
"macName"Symbol 1494 MovieClip Frame 1Symbol 1312 EditableText
"buy_btn"Symbol 1494 MovieClip Frame 1Symbol 1317 MovieClip
"choice_btn"Symbol 1494 MovieClip Frame 1Symbol 1324 MovieClip
"btn_8"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"btn_9"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"btn_12"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"btn_13"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"btn_11"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"btn_10"Symbol 1494 MovieClip Frame 1Symbol 1327 MovieClip
"weaponsart"Symbol 1494 MovieClip Frame 1Symbol 1444 MovieClip
"macInfo"Symbol 1494 MovieClip Frame 1Symbol 1452 EditableText
"choice_btn2"Symbol 1494 MovieClip Frame 1Symbol 1454 MovieClip
"choice_btn3"Symbol 1494 MovieClip Frame 1Symbol 1456 MovieClip
"choice_btn4"Symbol 1494 MovieClip Frame 1Symbol 1458 MovieClip
"choice_btn5"Symbol 1494 MovieClip Frame 1Symbol 1460 MovieClip
"choice_btn6"Symbol 1494 MovieClip Frame 1Symbol 1462 MovieClip
"upg_btn1"Symbol 1494 MovieClip Frame 1Symbol 1465 MovieClip
"macDam"Symbol 1494 MovieClip Frame 1Symbol 1466 EditableText
"upg_btn2"Symbol 1494 MovieClip Frame 1Symbol 1465 MovieClip
"macRel"Symbol 1494 MovieClip Frame 1Symbol 1467 EditableText
"upg_btn3"Symbol 1494 MovieClip Frame 1Symbol 1465 MovieClip
"macAmmo"Symbol 1494 MovieClip Frame 1Symbol 1470 EditableText
"macStats1"Symbol 1494 MovieClip Frame 1Symbol 1471 EditableText
"macStats2"Symbol 1494 MovieClip Frame 1Symbol 1472 EditableText
"macStats3"Symbol 1494 MovieClip Frame 1Symbol 1473 EditableText
"macDesc"Symbol 1494 MovieClip Frame 1Symbol 1476 EditableText
"next_btn"Symbol 1494 MovieClip Frame 1Symbol 1484 MovieClip
"coverstats"Symbol 1494 MovieClip Frame 1Symbol 1493 MovieClip
"buyUpgrades"Symbol 1497 MovieClip [wavecomplete] Frame 18Symbol 1494 MovieClip
"submitbtn"Symbol 1519 MovieClip [wavecomplete2] Frame 13Symbol 1505 MovieClip
"parade"Symbol 1519 MovieClip [wavecomplete2] Frame 13Symbol 1507 MovieClip
"hsloader"Symbol 1519 MovieClip [wavecomplete2] Frame 14Symbol 1518 MovieClip
"txtScore"Symbol 1522 MovieClip [waveNo] Frame 1Symbol 1521 EditableText
"bar_mc"Symbol 1523 MovieClip [healthbar] Frame 1Symbol 69 MovieClip
"bar_mc"Symbol 1523 MovieClip [healthbar] Frame 1Symbol 69 MovieClip
"continue_btn"Symbol 1531 MovieClip [gameOver_mc] Frame 53Symbol 1530 MovieClip
"submitbtn"Symbol 1531 MovieClip [gameOver_mc] Frame 53Symbol 1505 MovieClip
"hsloader"Symbol 1531 MovieClip [gameOver_mc] Frame 54Symbol 1518 MovieClip
"crate_mc"Symbol 1644 MovieClip Frame 1Symbol 1626 MovieClip
"bounce_mc"Symbol 1644 MovieClip Frame 2Symbol 1643 MovieClip
"sis_mc"Symbol 1649 MovieClip Frame 4Symbol 1430 MovieClip
"crate_mc"Symbol 1651 MovieClip Frame 1Symbol 1632 MovieClip
"sis_mc"Symbol 1656 MovieClip Frame 4Symbol 1430 MovieClip
"bowstrike"Symbol 1659 MovieClip Frame 2Symbol 1658 MovieClip
"scoreTxt"Symbol 1684 MovieClip Frame 1Symbol 1664 EditableText
"macRem"Symbol 1684 MovieClip Frame 1Symbol 1665 EditableText
"weapon2"Symbol 1684 MovieClip Frame 1Symbol 1671 MovieClip
"weapon1"Symbol 1684 MovieClip Frame 1Symbol 1673 MovieClip
"weapon3"Symbol 1684 MovieClip Frame 1Symbol 1675 MovieClip
"weapon4"Symbol 1684 MovieClip Frame 1Symbol 1677 MovieClip
"weapon5"Symbol 1684 MovieClip Frame 1Symbol 1679 MovieClip
"weapon6"Symbol 1684 MovieClip Frame 1Symbol 1681 MovieClip
"weapon7"Symbol 1684 MovieClip Frame 1Symbol 1683 MovieClip
"weaponbar"Symbol 1685 MovieClip Frame 1Symbol 1684 MovieClip
"dummy_mc"Symbol 1729 MovieClip Frame 1Symbol 1728 MovieClip
"btn_11"Symbol 1733 MovieClip Frame 1Symbol 1327 MovieClip
"btn_11"Symbol 1735 MovieClip Frame 1Symbol 1327 MovieClip
"btn_11"Symbol 1737 MovieClip Frame 1Symbol 1327 MovieClip
"bar_mc"Symbol 1747 MovieClip Frame 1Symbol 1745 MovieClip
"bar_mc"Symbol 1760 MovieClip Frame 1Symbol 1351 MovieClip
"quitbtn"Symbol 1786 MovieClip Frame 2Symbol 1515 MovieClip
"moregames"Symbol 1786 MovieClip Frame 2Symbol 1488 MovieClip
"quality_btn"Symbol 1786 MovieClip Frame 2Symbol 1769 MovieClip
"unpause"Symbol 1786 MovieClip Frame 2Symbol 1773 MovieClip
"nobtn"Symbol 1786 MovieClip Frame 3Symbol 1781 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "fleshsound"
ExportAssets (56)Timeline Frame 1Symbol 2 as "3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "2"
ExportAssets (56)Timeline Frame 1Symbol 4 as "1"
ExportAssets (56)Timeline Frame 1Symbol 5 as "machgunsound"
ExportAssets (56)Timeline Frame 1Symbol 6 as "gatlingsound"
ExportAssets (56)Timeline Frame 1Symbol 7 as "zombiesound"
ExportAssets (56)Timeline Frame 1Symbol 8 as "hoversound"
ExportAssets (56)Timeline Frame 1Symbol 9 as "snipersound"
ExportAssets (56)Timeline Frame 1Symbol 10 as "reloadsound"
ExportAssets (56)Timeline Frame 1Symbol 11 as "gunsound"
ExportAssets (56)Timeline Frame 1Symbol 12 as "flamesound"
ExportAssets (56)Timeline Frame 1Symbol 13 as "errorsound"
ExportAssets (56)Timeline Frame 1Symbol 14 as "elecsound"
ExportAssets (56)Timeline Frame 1Symbol 15 as "crashsound"
ExportAssets (56)Timeline Frame 1Symbol 16 as "coinsound"
ExportAssets (56)Timeline Frame 1Symbol 17 as "clicksound"
ExportAssets (56)Timeline Frame 1Symbol 18 as "registersound"
ExportAssets (56)Timeline Frame 1Symbol 19 as "gatesound"
ExportAssets (56)Timeline Frame 1Symbol 60 as "bomb_mc"
ExportAssets (56)Timeline Frame 1Symbol 63 as "spark2"
ExportAssets (56)Timeline Frame 1Symbol 64 as "spark"
ExportAssets (56)Timeline Frame 1Symbol 70 as "bosshealthbar"
ExportAssets (56)Timeline Frame 1Symbol 74 as "coin2"
ExportAssets (56)Timeline Frame 1Symbol 77 as "coin3"
ExportAssets (56)Timeline Frame 1Symbol 80 as "earthquake"
ExportAssets (56)Timeline Frame 1Symbol 84 as "fps"
ExportAssets (56)Timeline Frame 1Symbol 88 as "notbuy_mc"
ExportAssets (56)Timeline Frame 1Symbol 109 as "flame"
ExportAssets (56)Timeline Frame 1Symbol 113 as "bullets2"
ExportAssets (56)Timeline Frame 1Symbol 116 as "bullets"
ExportAssets (56)Timeline Frame 1Symbol 123 as "flame_mc"
ExportAssets (56)Timeline Frame 2Symbol 264 as "enemy_mc"
ExportAssets (56)Timeline Frame 2Symbol 323 as "enemy_mc2"
ExportAssets (56)Timeline Frame 2Symbol 391 as "enemy_mc2b"
ExportAssets (56)Timeline Frame 2Symbol 454 as "enemy_mc3"
ExportAssets (56)Timeline Frame 2Symbol 500 as "enemy_mc3b"
ExportAssets (56)Timeline Frame 2Symbol 542 as "enemy_mc4"
ExportAssets (56)Timeline Frame 2Symbol 545 as "enemy_mc4b"
ExportAssets (56)Timeline Frame 2Symbol 576 as "enemy_mc5"
ExportAssets (56)Timeline Frame 2Symbol 595 as "enemy_mc6"
ExportAssets (56)Timeline Frame 2Symbol 614 as "enemy_mc6b"
ExportAssets (56)Timeline Frame 2Symbol 679 as "enemy_mc7"
ExportAssets (56)Timeline Frame 2Symbol 739 as "enemy_mc7b"
ExportAssets (56)Timeline Frame 2Symbol 792 as "enemy_mc8"
ExportAssets (56)Timeline Frame 2Symbol 855 as "enemy_mc9"
ExportAssets (56)Timeline Frame 2Symbol 878 as "enemy_mc10"
ExportAssets (56)Timeline Frame 2Symbol 914 as "enemy_mc11"
ExportAssets (56)Timeline Frame 2Symbol 953 as "enemy_mc12"
ExportAssets (56)Timeline Frame 2Symbol 1023 as "enemy_mc13"
ExportAssets (56)Timeline Frame 2Symbol 1081 as "enemy_mc13b"
ExportAssets (56)Timeline Frame 2Symbol 1124 as "enemy_mc14"
ExportAssets (56)Timeline Frame 2Symbol 1253 as "enemy_mc15"
ExportAssets (56)Timeline Frame 2Symbol 1264 as "blood_mc"
ExportAssets (56)Timeline Frame 2Symbol 1278 as "bullet"
ExportAssets (56)Timeline Frame 2Symbol 1280 as "bullet_mc2"
ExportAssets (56)Timeline Frame 2Symbol 1383 as "coin"
ExportAssets (56)Timeline Frame 2Symbol 1497 as "wavecomplete"
ExportAssets (56)Timeline Frame 2Symbol 1519 as "wavecomplete2"
ExportAssets (56)Timeline Frame 2Symbol 1522 as "waveNo"
ExportAssets (56)Timeline Frame 2Symbol 1523 as "healthbar"
ExportAssets (56)Timeline Frame 2Symbol 1531 as "gameOver_mc"
ExportAssets (56)Timeline Frame 2Symbol 1533 as "forestsound"
ExportAssets (56)Timeline Frame 2Symbol 1534 as "swampsound"
ExportAssets (56)Timeline Frame 2Symbol 1535 as "bgsound"
ExportAssets (56)Timeline Frame 2Symbol 1536 as "upgradesound"

Labels

"Bounce"Frame 33
"Roast"Frame 34
"Boom"Frame 35

Dynamic Text Variables

fpsSymbol 82 EditableText"<p align="left"></p>"
qualitytextSymbol 1765 EditableText"Med"
qualitytextSymbol 1768 EditableText"Med"




http://swfchan.com/23/112359/info.shtml
Created: 12/3 -2019 10:22:03 Last modified: 12/3 -2019 10:22:03 Server time: 22/12 -2024 09:06:32