Frame 1
Log.View(1237, "2ce5ef309556", root.loaderInfo.loaderURL);
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) {
lockme = true;
showAds();
fakeBox._visible = false;
}
}
function showAds() {
trace("showing");
var _local1 = "2772Q486D8B6D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + _local1);
}
urls_allowed = ["www8.agame.com", "3.xiaoyouxi.cn", "files.game.com.cn", "files.game.asia"];
sitelock(urls_allowed);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
function mochiSend() {
var _local2 = {n:[9, 6, 14, 1, 14, 13, 2, 1, 7, 7, 5, 3, 3, 0, 6, 3], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3, score:waveNumber});
}
function showHighscores() {
var _local2 = {n:[9, 6, 14, 1, 14, 13, 2, 1, 7, 7, 5, 3, 3, 0, 6, 3], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3});
}
mochi.as2.MochiAd.showPreGameAd({id:"c91044286b9cd452", res:"640x480"});
mochi.as2.MochiServices.connect("c91044286b9cd452");
function onEnterFrame() {
loadingText.text = percentage;
percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) && (timer <= 0)) {
clearInterval(countdownInterval);
delete this.onEnterFrame;
loadingText.text = "";
loadingbox._visible = true;
playbtn._visible = true;
}
}
loadingbox._visible = false;
playbtn._visible = false;
stop();
timer = 0;
countdown = function () {
timer--;
if (timer == 0) {
clearInterval(countdownInterval);
}
};
countdownInterval = setInterval(countdown, 1000);
Instance of Symbol 539 MovieClip "axesp" in Frame 1
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
Instance of Symbol 544 MovieClip "loadingbox" in Frame 1
on (release) {
_root.axesp.gotoAndPlay(2);
this._visible = false;
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Frame 2
var weaponDatabase = new Array();
var tempWeapon = {itemName:"Default", itemDesc:"Every hero starts with a puny weapon called Default.", itemCost:500, bulletNumber:1, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:99999, bulletAmmo:99999, bulletClip:99999, bulletDamage:1, bulletOffset:0, bulletSpeed:15, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:true, appleon:false, hammeron:false, swordon:false, gunon:false, dynamiteon:false, pulsegunon:false, upgradeCrateOn:false, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:false, reloadSpeed:280, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Uzi Type", itemDesc:"You know, basically the same as default bullet but faster burst.", itemCost:1500, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:1, bulletAmmo:9, bulletClip:9, bulletDamage:1, bulletOffset:7, bulletSpeed:15, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:false, appleon:true, hammeron:false, swordon:false, gunon:false, dynamiteon:false, upgradeCrateOn:false, buyCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, repairCrateOn:false, reloadSpeed:150, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Sniper", itemDesc:"You always fall for this, heavy damage but oh so slow. Simply irresistable.", itemCost:12000, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:0.5, bulletAmmo:30, bulletClip:30, bulletDamage:15, bulletOffset:0, bulletSpeed:15, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:false, appleon:false, hammeron:false, swordon:true, gunon:false, dynamiteon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:750, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Lazer", itemDesc:"Cool looking for the fast talking futuristic looking Mr. G!", itemCost:15900, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:1, bulletAmmo:60, bulletClip:60, bulletDamage:4, bulletOffset:0, bulletSpeed:20, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:false, appleon:false, hammeron:false, swordon:false, gunon:true, dynamiteon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:150, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Expensive", itemDesc:"Don't try getting this early, this is just too expensive. High damage, big bullet, fastest burst and shower shot!", itemCost:45000, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:3, bulletAmmo:60, bulletClip:60, bulletDamage:5, bulletOffset:50, bulletSpeed:20, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:false, appleon:false, hammeron:false, swordon:false, gunon:false, dynamiteon:true, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:200, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Shotgun", itemDesc:"The shower shot or shotgun is an staple weapon you can't resist. ", itemCost:10500, stats1Cost:stats1Inc, stats2Cost:stats1Inc, stats3Cost:stats1Inc, bulletNumber:3, bulletAmmo:60, bulletClip:60, bulletDamage:2, bulletOffset:23, bulletSpeed:20, bulletMaxAge:99999, barrelLength:15, reloadComplete:true, clubon:false, appleon:false, hammeron:true, swordon:false, gunon:false, dynamiteon:false, buyCrateOn:false, repairCrateOn:false, upgradeCrateOn:false, buyMomOn:false, buyDadOn:false, buySisOn:false, reloadSpeed:300, reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Heal", itemDesc:"They come in different shapes, mushrooms, heart containers, power pellets, potions.", itemCost:500, 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:"Life Up", itemDesc:"Extend your lifebar!", itemCost:500, itemLevel:1, 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:"Defense Up", itemDesc:"RPG's revolutionized leveling up heroes. Now we can just up about everything!", itemCost:500, itemLevel:1, 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:"Speed Up", itemDesc:"Fun fact, tigers can't catch giraffes. Google it up.", itemCost:500, itemLevel:1, 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:"Double Jump", itemDesc:"White giraffes can jump. Twice.", 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:"Power Up", itemDesc:"You'll definitely want to upgrade this. This is the single most upgraded stat in every game according to surveys.", itemCost:500, itemLevel:1, 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);
var tempWeapon = {itemName:"Magician", itemDesc:"His neck is often used for misdirection."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Sombrero", itemDesc:"El Giraffo Gwapito."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Paper Hat", itemDesc:"Giraffe folded this himself."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Kid Cap", itemDesc:"A light cheerful cap for the light hearted fellow."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Fashionista", itemDesc:"Do the catwalk with those strong long legs."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Party Hat", itemDesc:"Fun fact: Giraffe's Birthday is the same as yours."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Baseball Cap", itemDesc:"If you want to have more fun, try stacking caps!"};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Lucky Hat", itemDesc:"He can win every round of card games with that long neck."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Adventurer's Hat", itemDesc:"Horses, Camels and Giraffes. The latter can dig their head in the ground."};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Iron Mask", itemDesc:"Beware of the masked long necked crusader!"};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Locked", itemDesc:"Get new hats as you progress in the game.\nDress up your giraffe for the kill!"};
weaponDatabase.push(tempWeapon);
var bulletArray = new Array();
var enemyArray = new Array();
var playerWeapon = new Object();
var mouseClicked = false;
var radians = (Math.PI/180);
var radians2 = 57.2957795130823;
var splatsound = new Sound(this);
splatsound.attachSound("splatsound");
var fleshsound = new Sound(this);
fleshsound.attachSound("fleshsound");
var registersound = new Sound(this);
registersound.attachSound("registersound");
var jumpsound = new Sound(this);
jumpsound.attachSound("jumpsound");
var dynasound = new Sound(this);
dynasound.attachSound("dynasound");
var hurtsound = new Sound(this);
hurtsound.attachSound("hurtsound");
var buttonsound = new Sound(this);
buttonsound.attachSound("buttonsound");
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 coinsound = new Sound(this);
coinsound.attachSound("coinsound");
function trackplay() {
Log.Play();
}
var dynamiteselected = false;
var dynamitebought = false;
var gunselected = false;
var gunbought = false;
var swordselected = false;
var swordbought = false;
var hammerselected = false;
var hammerbought = false;
var appleselected = false;
var applebought = false;
var mainHeight = 100;
var score = 0;
var shopOpen = false;
var mainWidth = 61.4;
var wingame = false;
var defense = 0;
var lifePrice = 500;
var healPrice = 500;
var speedPrice = 500;
var powerPrice = 500;
var defensePrice = 500;
var powerbonus = 0;
var changeWeapon = false;
var doublejumpbought = false;
var coins = 0;
var gamedone = false;
var buttontimer = 0;
var buttontimer2 = 0;
var shakeQuan = 5;
var bottomPipe = 425;
var topPipe = 85;
var midPipe = 220;
var snailHealth = 7;
var mosquitoHealth = 5;
var frogHealth = 15;
var turtleHealth = 27;
var waspHealth = 19;
var batHealth = 35;
var fishHealth = 25;
var leopardHealth = 55;
var elephantHealth = 70;
var pteroHealth = 90;
var bossHealth = 250;
var hurtCounter = 0;
var hurtOnce = false;
var hurtWay = 1;
var blinkCounter = 0;
var quickSpeed = 9;
var fastSpeed = 5;
var normalSpeed = 3.5;
var joggingSpeed = 1.5;
var walkSpeed = 0.9;
var slowSpeed = 0.6;
hat1on = false;
var tinyDrop = 10;
var smallDrop = 300;
var mediumDrop = 700;
var bigDrop = 45;
var hugeDrop = 70;
var maxDrop = 150;
var midbossDrop = 500;
var okDrop = 450;
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
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__("fe1edc4c", this, 10301, true);
function gotoMysSite() {
getURL ("http://www.andkon.com/arcade/", "_blank");
}
function gotoHisSite() {
getURL ("http://www.andkon.com/arcade/", "_blank");
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
_quality = "HIGH";
stopAllSounds();
towerLife = 20;
restart = false;
var bgsound = new Sound(this);
bgsound.attachSound("bgsound");
_root.bgsound.start(0, 99);
_root.pause_mc.gotoAndStop(1);
mcMain.removeMovieClip();
pipeline.removeMovieClip();
shooter.removeMovieClip();
gameover.removeMovieClip();
gamecomplete.removeMovieClip();
k = 0;
while (k < 7) {
_root["gem" + k].removeMovieClip();
k++;
}
l = 0;
while (l < 7) {
_root["blood" + l].removeMovieClip();
l++;
}
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["coinbell_b" + g].removeMovieClip();
_root.bellHolder["barbell_b" + g].removeMovieClip();
_root.bellHolder["bloodbell_b" + g].removeMovieClip();
g++;
}
h = 0;
while (h < 199) {
_root.bellHolder["bell_c" + h].removeMovieClip();
_root.bellHolder["coinbell_c" + h].removeMovieClip();
_root.bellHolder["barbell_c" + h].removeMovieClip();
_root.bellHolder["bloodbell_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 < 9999) {
_root.bellHolder["b" + r].removeMovieClip();
r++;
}
Instance of Symbol 548 MovieClip in Frame 2
on (release) {
_root.clicksound.start(0, 1);
_root.trackplay();
_root.gotoAndStop(3);
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Instance of Symbol 551 MovieClip in Frame 2
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Instance of Symbol 553 MovieClip in Frame 2
on (release) {
_root.achieve_mc.gotoAndPlay(2);
_root.clicksound.start(0, 1);
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Instance of Symbol 480 MovieClip in Frame 2
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Frame 3
clubbought = true;
_quality = "HIGH";
var bulletAmmoCounter = 0;
var reloadingNow = false;
var jumpedonce = 0;
var mainSpeed = 4;
var mainJumping = false;
var jumpSpeedLimit = 17;
var jumpSpeed = jumpSpeedLimit;
var mainOnGround = false;
var row = 0;
var mainOnLadder = false;
var mainBumping = false;
var bumpSpeed = 0;
var mainScore = 0;
if (!restart) {
_root.attachMovie("pipeline", "pipeline", _root.getNextHighestDepth());
pipeline._x = -38.7;
pipeline._y = -39.2;
}
_root.onEnterFrame = function () {
pipeline.swapDepths(999);
macLife.text = (towerLife + " / ") + towerLifeOrig;
coinsglow.CoinTxt.text = "$" + coins;
amm.text = playerWeapon.bulletAmmo;
if ((gemgoal == 6) && (!wingame)) {
gameOver = true;
gpause = true;
_root.attachMovie("gamecomplete", "gamecomplete", _root.getNextHighestDepth());
gamecomplete._x = -640;
gamecomplete._y = 0;
wingame = true;
}
shooter._x = _root._xmouse;
shooter.swapDepths(_root.getNextHighestDepth());
shooter._y = _root._ymouse;
if ((towerLife <= 0) && (!mainJumping)) {
if (!gamedone) {
gpause = true;
_root.gameOver = true;
_root.restart = true;
mcMain.gotoAndStop("death");
mcMain.swapDepths(99);
mouseClicked = false;
_root.attachMovie("gameOver_mc", "gameover", _root.getNextHighestDepth());
gameover._x = -640;
gameover._y = 0;
Mouse.show();
gamedone = true;
}
}
if (!gpause) {
if (playerWeapon.bulletAmmo <= 0) {
bulletAmmoCounter++;
clip_mc.bar_mc._x = clip_mc.bar_mc._x + 4.28571428571429;
}
if (bulletAmmoCounter >= 7) {
playerWeapon.bulletAmmo = playerWeapon.bulletClip;
clip_mc.bar_mc._x = -15;
clearInterval(playerWeapon.reloadTimer);
playerWeapon.reloadTimer = 0;
reloadingNow = false;
changeWeapon = false;
gunReloaded();
_root.reloadsound.start(0, 1);
bulletAmmoCounter = 0;
}
if (button_mc.buttonhit.hitTest(mcMain.hitgem)) {
if (!buttonsoundplayed) {
buttonsound.start(0, 1);
buttonsoundplayed = true;
}
button_mc.gotoAndStop(2);
buttontimer++;
if (buttontimer < 84) {
lvlHolder.blockHolder.mcBlock3._y = lvlHolder.blockHolder.mcBlock3._y + 0.4;
lvlHolder.bumperHolder.Bumper3._y = lvlHolder.bumperHolder.Bumper3._y + 0.4;
cage._y = cage._y + 0.4;
}
if (buttontimer >= 84) {
buttontimer = 84;
lvlHolder.blockHolder.mcBlock3._y = 369.35;
lvlHolder.bumperHolder.Bumper3._y = 402.5;
cage._y = 33.05;
}
} else {
button_mc.gotoAndStop(1);
buttontimer = buttontimer - 1;
buttonsoundplayed = false;
if (buttontimer > 0) {
lvlHolder.blockHolder.mcBlock3._y = lvlHolder.blockHolder.mcBlock3._y - 0.4;
lvlHolder.bumperHolder.Bumper3._y = lvlHolder.bumperHolder.Bumper3._y - 0.4;
cage._y = cage._y - 0.4;
}
if (buttontimer <= 0) {
buttontimer = 0;
lvlHolder.blockHolder.mcBlock3._y = 336.15;
lvlHolder.bumperHolder.Bumper3._y = 369.3;
cage._y = 0.05;
}
}
}
k = 0;
while (k < 7) {
if (!gpause) {
if (_root["gem" + k].hitTest(mcMain.hitgem)) {
_root["gem" + k].touchedonce = true;
}
if (_root["gem" + k].hitTest(moneycounter2)) {
_root["gem" + k].gotoAndStop(2);
_root.coinsound.start(0, 1);
gemgoal = gemgoal + 1;
coins = coins + tinyDrop;
score = score + tinyDrop;
}
if (_root["gem" + k].touchedonce) {
xMouse2 = moneycounter2._x;
yMouse2 = moneycounter2._y;
if (Math.abs(xMouse - this._x) < 1) {
_root["gem" + k]._x = xMouse2;
_root["gem" + k]._y = yMouse2;
} else {
_root["gem" + k]._x = _root["gem" + k]._x - ((_root["gem" + k]._x - xMouse2) / 3);
_root["gem" + k]._y = _root["gem" + k]._y - ((_root["gem" + k]._y - yMouse2) / 3);
}
}
}
k++;
}
if (mcMain._x > (640 - (mcMain._width / 2))) {
mcMain._x = 640 - mcMain._width;
}
if (mcMain._x < (-(mcMain._width / 2))) {
mcMain._x = -(mcMain._width / 2);
}
if (!gpause) {
mcMain._alpha = 100;
if (hurtOnce) {
hurtCounter++;
if (hurtCounter <= 50) {
blinkCounter++;
if (blinkCounter > 5) {
mcMain._alpha = 40;
blinkCounter = 0;
} else {
mcMain._alpha = 70;
}
}
}
if (hurtCounter > 50) {
hurtCounter = 0;
hurtOnce = false;
}
dinobar.dinoLife.text = ((dinosaur.healthno / 1000) * 100) + "%";
macWave.text = "Wave " + waveNumber;
coinsglow.macGoal.text = ("Gems " + gemgoal) + "/6";
coinsglow.macRem.text = "Enemies:" + ((totalEnemiesGoal - totalKillsCount) + 1);
coinsglow.macScore.text = "Score:" + score;
if ((totalEnemies <= totalEnemiesGoal) && (!gameOver)) {
makeLvl();
}
}
if (totalKillsCount >= (totalEnemiesGoal + 1)) {
if (!winonce) {
_root.gpause = false;
_root.prev1 = "UNPAUSED";
mouseClicked = false;
if (waveNumber <= 19) {
_root.attachMovie("wavecomplete", "wavecomplete", _root.getNextHighestDepth());
wavecomplete._x = -640;
wavecomplete._y = 0;
} else if (waveNumber == 20) {
_root.attachMovie("gamecomplete_mc", "gamecomplete", _root.getNextHighestDepth());
gamecomplete._x = -640;
gamecomplete._y = 0;
}
winonce = true;
_root.notYet_mc.gotoAndStop(1);
}
}
if ((mouseClicked && (playerWeapon.bulletAmmo > 0)) && (!reloadingNow)) {
fireWeapon();
mcMain.arm_mc.gotoAndStop(2);
} else {
mcMain.arm_mc.gotoAndStop(1);
}
updateBullets();
rotatePlayer();
player_mc._x = mcMain._x + 20;
player_mc._y = mcMain._y + 20;
if (!gpause) {
if (_xmouse < mcMain._x) {
mcMain.head_mc.gotoAndStop(2);
mcMain.head_mc2.gotoAndStop(2);
mcMain.head_mc3.gotoAndStop(1);
mcMain.head_mc4.gotoAndStop(1);
mcMain.head_mc5.gotoAndStop(1);
}
if (_xmouse >= mcMain._x) {
mcMain.head_mc.gotoAndStop(1);
mcMain.head_mc2.gotoAndStop(1);
mcMain.head_mc3.gotoAndStop(2);
mcMain.head_mc4.gotoAndStop(2);
mcMain.head_mc5.gotoAndStop(2);
}
if (_ymouse < mcMain._y) {
mcMain.head_mc.eye_mc._yscale = 100;
mcMain.head_mc2.eye_mc._yscale = 100;
mcMain.head_mc3.eye_mc._yscale = 100;
}
if (_ymouse >= mcMain._y) {
mcMain.head_mc.eye_mc._yscale = -100;
mcMain.head_mc2.eye_mc._yscale = -100;
mcMain.head_mc3.eye_mc._yscale = -100;
}
if (((Key.isDown(32) && (!shopOpen)) && (!winonce)) && (!gameOver)) {
_root.attachMovie("upgradesShop", "upgradesShop", _root.getNextHighestDepth());
upgradesShop._x = -640;
upgradesShop._y = 0;
shopOpen = true;
shopOpen2 = false;
}
if (Key.isDown(37) || (Key.isDown(65))) {
mcMain._x = mcMain._x - mainSpeed;
mcMain.gotoAndStop("runningleft");
playerfaceright = false;
buttshine.gotoAndStop(1);
} else if (Key.isDown(39) || (Key.isDown(68))) {
mcMain._x = mcMain._x + mainSpeed;
mcMain.gotoAndStop("running");
playerfaceright = true;
buttshine.gotoAndStop(1);
} else {
if (!playerfaceright) {
if (crouchdown) {
mcMain.gotoAndStop("crouchfrog2");
} else {
mcMain.gotoAndStop("standingleft");
}
mcMain.runfrog._xscale = -100;
}
if (playerfaceright) {
if (crouchdown) {
mcMain.gotoAndStop("crouchfrog");
} else {
mcMain.gotoAndStop("runningstand");
}
mcMain.standfrog._xscale = 100;
mcMain.runfrog._xscale = 100;
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (mainOnLadder) {
mcMain._y = mcMain._y - mainSpeed;
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (mainOnGround) {
crouchdown = true;
}
if (mainOnLadder) {
mcMain._y = mcMain._y + mainSpeed;
}
} else {
crouchdown = false;
}
mainJump();
}
for (var _local6 in lvlHolder.blockHolder) {
if (mcMain.hitTest(lvlHolder.blockHolder[_local6]) && (mcMain._y < lvlHolder.blockHolder[_local6]._y)) {
mainOnGround = true;
break;
}
mainOnGround = false;
}
if (!mainOnGround) {
mainJumping = true;
}
for (var _local3 in lvlHolder.ladderHolder) {
if (mcMain.hitTest(lvlHolder.ladderHolder[_local3])) {
if (mcMain._x >= ((lvlHolder.ladderHolder[_local3]._x + lvlHolder._x) - 10)) {
if (mcMain._x <= ((lvlHolder.ladderHolder[_local3]._x + lvlHolder._x) + 35)) {
mainOnLadder = true;
jumpSpeed = jumpSpeedLimit;
break;
}
}
}
mainOnLadder = false;
}
for (var _local5 in lvlHolder.bumperHolder) {
if (mcMain.hitgem.hitTest(lvlHolder.bumperHolder[_local5])) {
mainBumping = true;
bumpSpeed = 10;
}
}
mainBump();
for (var _local4 in lvlHolder.trampHolder) {
if (mcMain.hitTest(lvlHolder.trampHolder[_local4])) {
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
mcMain._y = mcMain._y + jumpSpeed;
}
}
if (mcMain._y > Stage.height) {
_root.deathsound.start(0, 1);
resetLvl();
timer.deaths = timer.deaths + 1;
deathsdata = deathsdata + 1;
mcMushroom._x = orig_x;
mcMushroom._y = orig_y;
}
timer.txtScore.text = mainScore;
if (!gpause) {
if (Key.isDown(49)) {
if (!pressed1) {
pressed1 = true;
loadWeapon("Default");
highlighter.gotoAndStop(1);
weaponFired = false;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = true;
appleselected = false;
hammerselected = false;
swordselected = false;
gunselected = false;
dynamiteselected = false;
}
}
} else {
pressed1 = false;
}
if (Key.isDown(50)) {
if (!pressed2) {
pressed2 = true;
if (applebought) {
loadWeapon("Uzi Type");
highlighter.gotoAndStop(2);
weaponFired = false;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = false;
appleselected = true;
hammerselected = false;
swordselected = false;
gunselected = false;
dynamiteselected = false;
}
} else {
showNotYet();
}
}
} else {
pressed2 = false;
}
if (Key.isDown(51)) {
if (!pressed3) {
pressed3 = true;
if (hammerbought) {
loadWeapon("Shotgun");
highlighter.gotoAndStop(3);
weaponFired = false;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = false;
appleselected = false;
hammerselected = true;
swordselected = false;
gunselected = false;
dynamiteselected = false;
}
} else {
showNotYet();
}
}
} else {
pressed3 = false;
}
if (Key.isDown(52)) {
if (!pressed4) {
pressed4 = true;
if (swordbought) {
loadWeapon("Sniper");
highlighter.gotoAndStop(4);
weaponFired = false;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = false;
appleselected = false;
hammerselected = false;
swordselected = true;
gunselected = false;
dynamiteselected = false;
}
} else {
showNotYet();
}
}
} else {
pressed4 = false;
}
if (Key.isDown(53)) {
if (!pressed5) {
pressed5 = true;
if (gunbought) {
loadWeapon("Lazer");
highlighter.gotoAndStop(5);
weaponFired = true;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = false;
appleselected = false;
hammerselected = false;
swordselected = false;
gunselected = true;
dynamiteselected = false;
}
} else {
showNotYet();
}
}
} else {
pressed5 = false;
}
if (Key.isDown(54)) {
if (!pressed6) {
pressed6 = true;
if (dynamitebought) {
loadWeapon("Expensive");
highlighter.gotoAndStop(6);
weaponFired = false;
if (!changeWeapon) {
playerWeapon.bulletAmmo = 0;
reloadingNow = true;
clip_mc.bar_mc._x = -15;
changeWeapon = false;
bulletAmmoCounter = 0;
clubselected = false;
appleselected = false;
hammerselected = false;
swordselected = false;
gunselected = false;
dynamiteselected = true;
}
} else {
showNotYet();
}
}
} else {
pressed6 = false;
}
}
};
mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (!gpause) {
if (!gameOver) {
mouseClicked = true;
}
}
};
mouseListener.onMouseUp = function () {
mouseClicked = false;
};
Mouse.addListener(mouseListener);
function showNotYet() {
notYet_mc.gotoAndStop(2);
}
function mainJump() {
if ((Key.isDown(38) && (jumpedonce < 2)) || (Key.isDown(87) && (jumpedonce < 2))) {
if (pressed77 == false) {
pressed77 = true;
if (!mainOnLadder) {
_root.jumpsound.start(0, 1);
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
mcMain._y = mcMain._y + jumpSpeed;
if (!doublejumpbought) {
jumpedonce = 2;
} else {
jumpedonce = jumpedonce + 1;
}
}
}
} else {
pressed77 = false;
}
if (!mainOnLadder) {
if (jumpSpeed < 0) {
if (playerfaceright) {
mcMain.gotoAndStop("jumpupright");
}
if (!playerfaceright) {
mcMain.gotoAndStop("jumpupleft");
}
buttshine.gotoAndStop(3);
jumpSpeed = jumpSpeed * (1 - (jumpSpeedLimit / 125));
if (jumpSpeed > ((-jumpSpeedLimit) * 0.2)) {
jumpSpeed = jumpSpeed * -1;
}
}
if ((jumpSpeed > 0) && (jumpSpeed <= jumpSpeedLimit)) {
if (!playerfaceright) {
mcMain.gotoAndStop("jumpdownleft");
}
if (playerfaceright) {
mcMain.gotoAndStop("jumpdownright");
}
jumpSpeed = jumpSpeed * (1 + (jumpSpeedLimit / 50));
}
mcMain._y = mcMain._y + jumpSpeed;
for (var _local2 in lvlHolder.blockHolder) {
if (mcMain.hitTest(lvlHolder.blockHolder[_local2])) {
mcMain.gotoAndStop("jumpdown");
if (jumpSpeed > 0) {
mainJumping = false;
if (mcMain._y < (lvlHolder.blockHolder[_local2]._y - (mainHeight / 2))) {
mcMain._y = lvlHolder.blockHolder[_local2]._y - mainHeight;
mainOnGround = true;
jumpedonce = 0;
pressed77 = false;
break;
}
}
}
}
}
}
function mainBump() {
if (!gpause) {
var _local1;
if (Key.isDown(37) || (Key.isDown(65))) {
_local1 = 1;
} else if (Key.isDown(39) || (Key.isDown(68))) {
_local1 = -1;
}
if (mainBumping) {
mcMain._x = mcMain._x + (_local1 * bumpSpeed);
bumpSpeed = bumpSpeed * 0.5;
if (bumpSpeed <= 1) {
mainBumping = false;
}
}
}
}
function rotatePlayer() {
player_mc._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2;
}
function hurtMe(mcMain, xhitter) {
if ((!hurtOnce) && (!xhitter.notdead)) {
shakeScreen();
_root.hurtsound.start(0, 1);
if ((mcMain._x < xhitter._x) && (mcMain._x > 40)) {
hurtWay = 1;
} else if ((mcMain._x > xhitter._x) && (mcMain._x < 600)) {
hurtWay = -1;
}
mcMain.gotoAndStop("hurted");
jumpSpeed = jumpSpeedLimit * -0.35;
mcMain._y = mcMain._y - jumpSpeed;
hurtOnce = true;
soundPlay.start(0, 1);
life_mc.bar_mc._x = life_mc.bar_mc._x + ((xhitter.damage / towerLifeOrig) * 30);
towerLife = towerLife - xhitter.damage;
}
}
function loadDefault() {
if (dynamiteselected && (dynamitebought)) {
loadWeapon("Expensive");
highlighter.gotoAndStop(6);
} else if (gunselected && (gunbought)) {
loadWeapon("Lazer");
highlighter.gotoAndStop(5);
} else if (swordselected && (swordbought)) {
loadWeapon("Sniper");
highlighter.gotoAndStop(4);
} else if (hammerselected && (hammerbought)) {
loadWeapon("Shotgun");
highlighter.gotoAndStop(3);
} else if (appleselected && (applebought)) {
loadWeapon("Uzi Type");
highlighter.gotoAndStop(2);
} else {
loadWeapon("Default");
highlighter.gotoAndStop(1);
}
}
function shakeScreen() {
shaker.play();
}
function continueGame() {
bgsound.start(0, 999);
mcMain._x = 301.4;
buttontimer = 0;
lvlHolder.blockHolder.mcBlock3._y = 336.15;
lvlHolder.bumperHolder.Bumper3._y = 369.3;
cage._y = 0.05;
playerWeapon.reloadComplete = true;
gpause = false;
Mouse.hide();
winonce = false;
life_mc.bar_mc._x = -15;
dayview.gotoAndPlay(2);
r = 0;
while (r < 999) {
_root.bellHolder["b" + r].removeMovieClip();
r++;
}
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;
restart = false;
score = score * 0.5;
score = Math.round(score);
towerLife = towerLifeOrig;
gameover.removeMovieClip();
gameOver_mc.removeMovieClip();
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["coinbell_b" + g].removeMovieClip();
_root.bellHolder["barbell_b" + g].removeMovieClip();
_root.bellHolder["bloodbell_b" + g].removeMovieClip();
g++;
}
h = 0;
while (h < 199) {
_root.bellHolder["bell_c" + h].removeMovieClip();
_root.bellHolder["coinbell_c" + h].removeMovieClip();
_root.bellHolder["barbell_c" + h].removeMovieClip();
_root.bellHolder["bloodbell_c" + h].removeMovieClip();
_root.bellHolder["enembulletbell_c" + h].removeMovieClip();
h++;
}
j = 0;
while (j < 99) {
_root.bellHolder["bell_d" + j].removeMovieClip();
_root.bellHolder["coinbell_d" + j].removeMovieClip();
_root.bellHolder["barbell_d" + j].removeMovieClip();
_root.bellHolder["bloodbell_d" + j].removeMovieClip();
j++;
}
k = 0;
while (k < 99) {
_root.bellHolder["bell_e" + k].removeMovieClip();
_root.bellHolder["coinbell_e" + k].removeMovieClip();
_root.bellHolder["barbell_e" + k].removeMovieClip();
_root.bellHolder["bloodbell_e" + k].removeMovieClip();
gpause = false;
k++;
}
}
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) {
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.swordon) {
_local2.gotoAndStop(4);
}
if (playerWeapon.gunon) {
_local2.gotoAndStop(5);
_local2._rotation = Math.atan2(_ymouse - player_mc._y, _xmouse - player_mc._x) * radians2;
}
if (playerWeapon.dynamiteon) {
_local2.gotoAndStop(6);
}
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++;
if (!gpause) {
_local1._x = _local1._x + _local1.xSpeed;
_local1._y = _local1._y + _local1.ySpeed;
}
if (playerWeapon.flamethroweron) {
if (flameLifeCount >= 17) {
removeBullet(_local1);
checkWallHit2(_local1);
checkWallHit(_local1);
checkStageHit4(_local1);
checkStageHit3(_local1);
checkStageHit2(_local1);
checkStageHit(_local1);
gameoverHit(_local1);
flameLifeCount = 0;
}
} else if (!playerWeapon.flamethroweron) {
checkWallHit2(_local1);
checkWallHit(_local1);
checkStageHit4(_local1);
checkStageHit3(_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 > 615) {
destroyBullet(_bullet);
}
}
function checkStageHit3(_bullet) {
if (_bullet._x < 25) {
destroyBullet(_bullet);
}
}
function checkStageHit2(_bullet) {
if (_bullet._y > 455) {
destroyBullet(_bullet);
}
}
function checkStageHit4(_bullet) {
if (_bullet._y < 25) {
destroyBullet(_bullet);
}
}
function gameoverHit(_bullet) {
if (gameOver) {
destroyBullet(_bullet);
}
}
loadWeapon("Default");
effectHolder_mc.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth());
function checkWallHit(_bullet) {
j = 0;
while (j < 99) {
if (bellHolder["bell_b" + j].hitTest(_bullet)) {
shakeScreen();
if (!playerWeapon.dynamiteon) {
_root.fleshsound.start(0, 1);
} else {
dynasound.start(0, 1);
}
bellHolder["bloodbell_b" + j].removeMovieClip();
if ((!bellHolder["barbell_b" + j].healthno) == 0) {
bellHolder["bell_b" + j].yspeed = bellHolder["bell_b" + j].yorigspeed;
if (!playerWeapon.flamethroweron) {
if (!playerWeapon.dynamiteon) {
bellHolder["bell_b" + j].gotoAndPlay(3);
} else {
bellHolder["bell_b" + j].gotoAndPlay(3);
}
}
bellHolder["bell_b" + j]._x = bellHolder["bell_b" + j]._x + 3;
destroyBullet(_bullet);
bellHolder["barbell_b" + j].bar_mc._x = bellHolder["barbell_b" + j].bar_mc._x - (((playerWeapon.bulletDamage + powerbonus) / bellHolder["barbell_b" + j].healthorigno) * 30);
bellHolder["barbell_b" + j].healthno = bellHolder["barbell_b" + j].healthno - (playerWeapon.bulletDamage + powerbonus);
}
if ((bellHolder["barbell_b" + j].healthno <= 0) && (!bellHolder["bell_b" + j].notdead)) {
bellHolder["bell_b" + j].notdead = true;
bellHolder.attachMovie("coin", "coinbell_b" + j, bellHolder.getNextHighestDepth());
bellHolder["coinbell_b" + j]._x = bellHolder["bell_b" + j]._x;
bellHolder["coinbell_b" + j]._y = bellHolder["bell_b" + j]._y + 17;
bellHolder["coinbell_b" + j].coinFall = 3;
bellHolder["coinbell_b" + j].justdied = false;
bellHolder["coinbell_b" + j].onEnterFrame = function () {
if (!gpause) {
if (!this.justdied) {
this._y = this._y - (this.coinFall * 10);
this.justdied = true;
} else {
this._y = this._y + this.coinFall;
}
if (this.hitTest(ground) && (this.justdied)) {
this.coinFall = 0;
this._y = ground._y - 8;
}
if (this.hitTest(mcMain)) {
this.touchedonce = true;
}
if (this.hitTest(moneycounter)) {
this.removeMovieClip();
_root.coinsound.start(0, 1);
coins = coins + smallDrop;
score = score + smallDrop;
}
if (this.touchedonce || (winonce)) {
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) / 3);
this._y = this._y - ((this._y - yMouse1) / 3);
}
}
}
};
enemyCount2 = enemyCount2 - 1;
totalKillsCount = totalKillsCount + 1;
score = score + 100;
bellHolder["bell_b" + j].yspeed = 0;
bellHolder["barbell_b" + j].removeMovieClip();
bellHolder["bell_b" + j].gotoAndStop(2);
}
}
if (bellHolder["bell_e" + j].hitTest(_bullet)) {
shakeScreen();
if (!playerWeapon.dynamiteon) {
_root.fleshsound.start(0, 1);
} else {
dynasound.start(0, 1);
}
bellHolder["bloodbell_e" + j].removeMovieClip();
if ((!bellHolder["barbell_e" + j].healthno) == 0) {
if (!playerWeapon.flamethroweron) {
if (!playerWeapon.dynamiteon) {
bellHolder["bell_e" + j].gotoAndPlay(3);
} else {
bellHolder["bell_e" + j].gotoAndPlay(3);
}
}
destroyBullet(_bullet);
bellHolder["barbell_e" + j].bar_mc._x = bellHolder["barbell_e" + j].bar_mc._x - (((playerWeapon.bulletDamage + powerbonus) / bellHolder["barbell_e" + j].healthorigno) * 30);
bellHolder["barbell_e" + j].healthno = bellHolder["barbell_e" + j].healthno - (playerWeapon.bulletDamage + powerbonus);
}
if ((bellHolder["barbell_e" + j].healthno <= 0) && (!bellHolder["bell_e" + j].notdead)) {
bellHolder["bell_e" + j].notdead = true;
bellHolder.attachMovie("coin", "coinbell_e" + j, bellHolder.getNextHighestDepth());
bellHolder["coinbell_e" + j]._x = bellHolder["bell_e" + j]._x;
bellHolder["coinbell_e" + j]._y = bellHolder["bell_e" + j]._y + 17;
bellHolder["coinbell_e" + j].coinFall = 3;
bellHolder["coinbell_e" + j].justdied = false;
bellHolder["coinbell_e" + j].onEnterFrame = function () {
if (!gpause) {
if (!this.justdied) {
this._y = this._y - (this.coinFall * 10);
this.justdied = true;
} else {
this._y = this._y + this.coinFall;
}
if (this.hitTest(ground) && (this.justdied)) {
this.coinFall = 0;
this._y = ground._y - 8;
}
if (this.hitTest(mcMain)) {
this.touchedonce = true;
}
if (this.hitTest(moneycounter)) {
this.removeMovieClip();
_root.coinsound.start(0, 1);
coins = coins + mediumDrop;
score = score + mediumDrop;
}
if (this.touchedonce || (winonce)) {
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) / 3);
this._y = this._y - ((this._y - yMouse1) / 3);
}
}
}
};
enemyCount5 = enemyCount5 - 1;
totalKillsCount = totalKillsCount + 1;
score = score + 100;
bellHolder["bell_e" + j].yspeed = 0;
bellHolder["barbell_e" + j].removeMovieClip();
bellHolder["bell_e" + j].gotoAndStop(2);
}
}
if (bellHolder["bell_d" + j].hitTest(_bullet)) {
shakeScreen();
if (!playerWeapon.dynamiteon) {
_root.fleshsound.start(0, 1);
} else {
dynasound.start(0, 1);
}
bellHolder["bloodbell_d" + j].removeMovieClip();
if ((!bellHolder["barbell_d" + j].healthno) == 0) {
bellHolder["bell_d" + j].yspeed = bellHolder["bell_d" + j].yorigspeed;
if (!playerWeapon.flamethroweron) {
if (!playerWeapon.dynamiteon) {
bellHolder["bell_d" + j].gotoAndPlay(3);
} else {
bellHolder["bell_d" + j].gotoAndPlay(3);
}
}
bellHolder["bell_d" + j]._x = bellHolder["bell_d" + j]._x + 3;
destroyBullet(_bullet);
bellHolder["barbell_d" + j].bar_mc._x = bellHolder["barbell_d" + j].bar_mc._x - (((playerWeapon.bulletDamage + powerbonus) / bellHolder["barbell_d" + j].healthorigno) * 30);
bellHolder["barbell_d" + j].healthno = bellHolder["barbell_d" + j].healthno - (playerWeapon.bulletDamage + powerbonus);
}
if ((bellHolder["barbell_d" + j].healthno <= 0) && (!bellHolder["bell_d" + j].notdead)) {
bellHolder["bell_d" + j].notdead = true;
bellHolder.attachMovie("coin", "coinbell_d" + j, bellHolder.getNextHighestDepth());
bellHolder["coinbell_d" + j]._x = bellHolder["bell_d" + j]._x;
bellHolder["coinbell_d" + j]._y = bellHolder["bell_d" + j]._y + 17;
bellHolder["coinbell_d" + j].coinFall = 3;
bellHolder["coinbell_d" + j].justdied = false;
bellHolder["coinbell_d" + j].onEnterFrame = function () {
if (!gpause) {
if (!this.justdied) {
this._y = this._y - (this.coinFall * 10);
this.justdied = true;
} else {
this._y = this._y + this.coinFall;
}
if (this.hitTest(ground) && (this.justdied)) {
this.coinFall = 0;
this._y = ground._y - 8;
}
if (this.hitTest(mcMain)) {
this.touchedonce = true;
}
if (this.hitTest(moneycounter)) {
this.removeMovieClip();
_root.coinsound.start(0, 1);
coins = coins + mediumDrop;
score = score + mediumDrop;
}
if (this.touchedonce || (winonce)) {
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) / 3);
this._y = this._y - ((this._y - yMouse1) / 3);
}
}
}
};
enemyCount4 = enemyCount4 - 1;
totalKillsCount = totalKillsCount + 1;
score = score + 100;
bellHolder["bell_d" + j].yspeed = 0;
bellHolder["barbell_d" + j].removeMovieClip();
bellHolder["bell_d" + j].gotoAndStop(2);
}
}
if (bellHolder["bell_c" + j].hitTest(_bullet)) {
shakeScreen();
if (!playerWeapon.dynamiteon) {
_root.fleshsound.start(0, 1);
} else {
dynasound.start(0, 1);
}
bellHolder["bloodbell_c" + j].removeMovieClip();
if ((!bellHolder["barbell_c" + j].healthno) == 0) {
bellHolder["bell_c" + j].yspeed = bellHolder["bell_c" + j].yorigspeed;
if (!playerWeapon.flamethroweron) {
if (!playerWeapon.dynamiteon) {
bellHolder["bell_c" + j].gotoAndPlay(3);
} else {
bellHolder["bell_c" + j].gotoAndPlay(3);
}
}
bellHolder["bell_c" + j]._x = bellHolder["bell_c" + j]._x + 3;
destroyBullet(_bullet);
bellHolder["barbell_c" + j].bar_mc._x = bellHolder["barbell_c" + j].bar_mc._x - (((playerWeapon.bulletDamage + powerbonus) / bellHolder["barbell_c" + j].healthorigno) * 30);
bellHolder["barbell_c" + j].healthno = bellHolder["barbell_c" + j].healthno - (playerWeapon.bulletDamage + powerbonus);
}
if ((bellHolder["barbell_c" + j].healthno <= 0) && (!bellHolder["bell_c" + j].notdead)) {
bellHolder["bell_c" + j].notdead = true;
bellHolder.attachMovie("coin", "coinbell_c" + j, bellHolder.getNextHighestDepth());
bellHolder["coinbell_c" + j]._x = bellHolder["bell_c" + j]._x;
bellHolder["coinbell_c" + j]._y = bellHolder["bell_c" + j]._y + 15;
bellHolder["coinbell_c" + j].coinFall = 3;
bellHolder["coinbell_c" + j].justdied = false;
bellHolder["coinbell_c" + j].onEnterFrame = function () {
if (!gpause) {
if (!this.justdied) {
this._y = this._y - (this.coinFall * 10);
this.justdied = true;
} else {
this._y = this._y + this.coinFall;
}
if ((this.hitTest(ground) && (this.justdied)) || ((this._y >= 500) && (this.justdied))) {
this.coinFall = 0;
this._y = ground._y - 8;
}
if (this.hitTest(mcMain)) {
this.touchedonce = true;
}
if (this.hitTest(moneycounter)) {
this.removeMovieClip();
_root.coinsound.start(0, 1);
coins = coins + okDrop;
score = score + okDrop;
}
if (this.touchedonce || (winonce)) {
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) / 3);
this._y = this._y - ((this._y - yMouse1) / 3);
}
}
}
};
enemyCount3 = enemyCount3 - 1;
totalKillsCount = totalKillsCount + 1;
score = score + 100;
bellHolder["bell_c" + j].yspeed = 0;
bellHolder["barbell_c" + j].removeMovieClip();
bellHolder["bell_c" + j].gotoAndStop(2);
}
}
if (bellHolder["bell_a" + j].hitTest(_bullet)) {
shakeScreen();
if (!playerWeapon.dynamiteon) {
_root.fleshsound.start(0, 1);
} else {
dynasound.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) {
if (!playerWeapon.dynamiteon) {
bellHolder["bell_a" + j].gotoAndPlay(3);
} else {
bellHolder["bell_a" + j].gotoAndPlay(3);
}
}
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 + powerbonus) / bellHolder["barbell_a" + j].healthorigno) * 30);
bellHolder["barbell_a" + j].healthno = bellHolder["barbell_a" + j].healthno - (playerWeapon.bulletDamage + powerbonus);
}
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 + 17;
bellHolder["coinbell_a" + j].coinFall = 3;
bellHolder["coinbell_a" + j].justdied = false;
bellHolder["coinbell_a" + j].onEnterFrame = function () {
if (!gpause) {
if (!this.justdied) {
this._y = this._y - (this.coinFall * 10);
this.justdied = true;
} else {
this._y = this._y + this.coinFall;
}
if ((this.hitTest(ground) && (this.justdied)) || ((this._y >= 500) && (this.justdied))) {
this.coinFall = 0;
this._y = ground._y - 8;
}
if (this.hitTest(mcMain)) {
this.touchedonce = true;
}
if (this.hitTest(moneycounter)) {
this.removeMovieClip();
_root.coinsound.start(0, 1);
coins = coins + smallDrop;
score = score + smallDrop;
}
if (this.touchedonce || (winonce)) {
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) / 3);
this._y = this._y - ((this._y - yMouse1) / 3);
}
}
}
};
enemyCount1 = enemyCount1 - 1;
totalKillsCount = totalKillsCount + 1;
score = score + 100;
bellHolder["bell_a" + j].yspeed = 0;
bellHolder["barbell_a" + j].removeMovieClip();
bellHolder["bell_a" + j].gotoAndStop(2);
}
}
j++;
}
}
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = 1;
_root.attachMovie("mcMain_mc", "mcMain", _root.getNextHighestDepth());
mcMain._x = 301.4;
mcMain._y = 200.1;
mcMain._height = mainHeight;
mcMain._width = mainWidth;
_root.attachMovie("shooter_mc", "shooter", _root.getNextHighestDepth());
Mouse.hide();
shooter._height = 18;
shooter._width = 18;
_root.dinobar._visible = true;
}
stop();
var wave1 = true;
var gpause = false;
var towerLife = 20;
var towerLifeOrig = 20;
var restart = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 3;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bellTopright = 600;
var bellTopleft = 40;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 75;
var bellLimit = 81;
var bellTotal = 0;
var bellTime2 = 70;
var bellLimit2 = 75;
var bellTotal2 = 0;
var bellTime3 = 520;
var bellLimit3 = 851;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Instance of Symbol 587 MovieClip "wall3" in Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 600 MovieClip "Btn_Mute" in Frame 3
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 614 MovieClip "pause_mc" in Frame 3
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 480 MovieClip in Frame 3
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
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 4
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
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 = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 1 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = mosquitoHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
var wave1 = false;
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 5;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 60;
var bellLimit = 71;
var bellTotal = 0;
var bellTime2 = 80;
var bellLimit2 = 93;
var bellTotal2 = 0;
var bellTime3 = 520;
var bellLimit3 = 857;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 50;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 5
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
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 = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 1 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = mosquitoHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gamedone = false;
var gpause = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 7;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 80;
var bellLimit = 101;
var bellTotal = 0;
var bellTime2 = 80;
var bellLimit2 = 143;
var bellTotal2 = 0;
var bellTime3 = 520;
var bellLimit3 = 857;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 50;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 6
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
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 = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 1 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = mosquitoHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 2)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 10;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 70;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 170;
var bellLimit2 = 193;
var bellTotal2 = 0;
var bellTime3 = 170;
var bellLimit3 = 187;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 50;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 7
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
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 = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 1 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = mosquitoHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 2)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc3", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 12;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 70;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 170;
var bellLimit2 = 193;
var bellTotal2 = 0;
var bellTime3 = 170;
var bellLimit3 = 187;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Instance of Symbol 794 MovieClip "achieve_mc" in Frame 7
onClipEvent (enterFrame) {
if (_root.mindJolt) {
this._visible = false;
} else if (!_root.mindJolt) {
this._visible = true;
}
}
Frame 8
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 3)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc4", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 2 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = turtleHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 35;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc5", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = waspHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + 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 = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 12;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 70;
var bellLimit = 71;
var bellTotal = 0;
var bellTime2 = 0;
var bellLimit2 = 183;
var bellTotal2 = 0;
var bellTime3 = 0;
var bellLimit3 = 137;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 9
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 5)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 1 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
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 = snailHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
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 = midPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = walkSpeed;
bellHolder["bell_b" + bellTotal2].damage = 1 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = mosquitoHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 15;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 60;
var bellLimit = 71;
var bellTotal = 0;
var bellTime2 = 80;
var bellLimit2 = 93;
var bellTotal2 = 0;
var bellTime3 = 520;
var bellLimit3 = 857;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 10
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc6", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + 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 = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 14;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 11
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc6", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 14;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 12
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 14;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime13 = 20;
var bellLimit13 = 51;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 13
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 2)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].landing = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 17;
bellHolder["bell_a" + bellTotal].jumpSpeed = 17;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 30) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 130));
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 / 170));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 14;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime13 = 23;
var bellLimit13 = 57;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 14
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 2)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].landing = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 17;
bellHolder["bell_a" + bellTotal].jumpSpeed = 17;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 30) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 130));
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 / 170));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc1b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = walkSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 17;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var enemyCount4 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 151;
var bellTotal4 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 15
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 2)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].landing = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 17;
bellHolder["bell_a" + bellTotal].jumpSpeed = 17;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 30) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 130));
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 / 170));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc1b", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = midPipe;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc3b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = walkSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 17;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var enemyCount4 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 151;
var bellTotal4 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 16
function makeLvl() {
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime5++;
if ((bellTime5 >= bellLimit5) && (enemyCount5 < 1)) {
bellTotal5++;
bellHolder.attachMovie("enemy_mc9", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5]._y = groundHeight;
bellHolder["bell_e" + bellTotal5].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_e" + bellTotal5].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_e" + bellTotal5].thisway = 1;
bellHolder["bell_e" + bellTotal5]._xscale = 100;
} else if (bellHolder["bell_e" + bellTotal5].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_e" + bellTotal5].thisway = -1;
bellHolder["bell_e" + bellTotal5]._xscale = -100;
}
enemyCount5 = enemyCount5 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_e" + bellTotal5].yspeed = normalSpeed - 0.3;
bellHolder["bell_e" + bellTotal5].damage = 2 - defense;
if (bellHolder["bell_e" + bellTotal5].damage < 1) {
bellHolder["bell_e" + bellTotal5].damage = 1;
}
bellHolder["bell_e" + bellTotal5].attackTime = 60;
bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed;
bellHolder["bell_e" + bellTotal5]._x = bellTop;
bellHolder["bell_e" + bellTotal5].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 150) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc3", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name].thisway2 = this.thisway;
bellHolder["poo" + this._name]._x = this._x - (this.thisway * 25);
bellHolder["poo" + this._name]._y = this._y + 3;
bellHolder["poo" + this._name].fallSpeed = 7;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._x = this._x - (this.fallSpeed * this.thisway2);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(wall1) || (this.hitTest(wall2))) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_e" + bellTotal5].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall3)) {
this.yspeed = 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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc1b", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = midPipe;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc3b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = walkSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 18;
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 groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 151;
var bellTotal4 = 0;
var bellTime5 = 140;
var bellLimit5 = 152;
var bellTotal5 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 17
function makeLvl() {
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime5++;
if ((bellTime5 >= bellLimit5) && (enemyCount5 < 1)) {
bellTotal5++;
bellHolder.attachMovie("enemy_mc9", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5]._y = groundHeight;
bellHolder["bell_e" + bellTotal5].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_e" + bellTotal5].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_e" + bellTotal5].thisway = 1;
bellHolder["bell_e" + bellTotal5]._xscale = 100;
} else if (bellHolder["bell_e" + bellTotal5].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_e" + bellTotal5].thisway = -1;
bellHolder["bell_e" + bellTotal5]._xscale = -100;
}
enemyCount5 = enemyCount5 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_e" + bellTotal5].yspeed = normalSpeed - 0.3;
bellHolder["bell_e" + bellTotal5].damage = 2 - defense;
if (bellHolder["bell_e" + bellTotal5].damage < 1) {
bellHolder["bell_e" + bellTotal5].damage = 1;
}
bellHolder["bell_e" + bellTotal5].attackTime = 60;
bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed;
bellHolder["bell_e" + bellTotal5]._x = bellTop;
bellHolder["bell_e" + bellTotal5].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 150) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc3", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name].thisway2 = this.thisway;
bellHolder["poo" + this._name]._x = this._x - (this.thisway * 25);
bellHolder["poo" + this._name]._y = this._y + 3;
bellHolder["poo" + this._name].fallSpeed = 7;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._x = this._x - (this.fallSpeed * this.thisway2);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(wall1) || (this.hitTest(wall2))) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_e" + bellTotal5].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall3)) {
this.yspeed = 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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc1b", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = midPipe;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc3b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = walkSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 22;
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 groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 152;
var bellTotal4 = 0;
var bellTime5 = 140;
var bellLimit5 = 155;
var bellTotal5 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 18
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = fastSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 23;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 141;
var bellLimit = 150;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime13 = 23;
var bellLimit13 = 57;
var bellTotal13 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 19
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 2)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc7b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].landing = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 17;
bellHolder["bell_a" + bellTotal].jumpSpeed = 17;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 30) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 130));
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 / 170));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = fastSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc1b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 23;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var enemyCount4 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 152;
var bellTotal4 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 20
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 2)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc8", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = groundHeight;
bellHolder["bell_a" + bellTotal].landing = groundHeight;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = fastSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 17;
bellHolder["bell_a" + bellTotal].jumpSpeed = 17;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 30) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 130));
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 / 170));
}
if (this._y > this.landing) {
if (this.jumpSpeed > 0) {
this.jumpSpeed = this.jumpSpeedLimit * -1;
this._y = this.landing;
this.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = fastSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime5++;
if ((bellTime5 >= bellLimit5) && (enemyCount5 < 1)) {
bellTotal5++;
bellHolder.attachMovie("enemy_mc9", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5]._y = groundHeight;
bellHolder["bell_e" + bellTotal5].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_e" + bellTotal5].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_e" + bellTotal5].thisway = 1;
bellHolder["bell_e" + bellTotal5]._xscale = 100;
} else if (bellHolder["bell_e" + bellTotal5].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_e" + bellTotal5].thisway = -1;
bellHolder["bell_e" + bellTotal5]._xscale = -100;
}
enemyCount5 = enemyCount5 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed - 0.3;
bellHolder["bell_e" + bellTotal5].damage = 2 - defense;
if (bellHolder["bell_e" + bellTotal5].damage < 1) {
bellHolder["bell_e" + bellTotal5].damage = 1;
}
bellHolder["bell_e" + bellTotal5].attackTime = 60;
bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed;
bellHolder["bell_e" + bellTotal5]._x = bellTop;
bellHolder["bell_e" + bellTotal5].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 150) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc3", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name].thisway2 = this.thisway;
bellHolder["poo" + this._name]._x = this._x - (this.thisway * 25);
bellHolder["poo" + this._name]._y = this._y + 3;
bellHolder["poo" + this._name].fallSpeed = 7;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._x = this._x - (this.fallSpeed * this.thisway2);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(wall1) || (this.hitTest(wall2))) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_e" + bellTotal5].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall3)) {
this.yspeed = 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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc1b", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = midPipe;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = slowSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
bellTime4++;
if ((bellTime4 >= bellLimit4) && (enemyCount4 < 4)) {
bellTotal4++;
bellHolder.attachMovie("enemy_mc3b", "bell_d" + bellTotal4, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4]._y = bottomPipe;
bellHolder["bell_d" + bellTotal4].landing = bottomPipe;
bellHolder["bell_d" + bellTotal4].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_d" + bellTotal4].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_d" + bellTotal4].thisway = 1;
bellHolder["bell_d" + bellTotal4]._xscale = 100;
} else if (bellHolder["bell_d" + bellTotal4].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_d" + bellTotal4].thisway = -1;
bellHolder["bell_d" + bellTotal4]._xscale = -100;
}
enemyCount4 = enemyCount4 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_d" + bellTotal4].yspeed = fastSpeed;
bellHolder["bell_d" + bellTotal4].damage = 3 - defense;
if (bellHolder["bell_d" + bellTotal4].damage < 1) {
bellHolder["bell_d" + bellTotal4].damage = 1;
}
bellHolder["bell_d" + bellTotal4].attackTime = 0;
bellHolder["bell_d" + bellTotal4].jumpSpeedLimit = 10;
bellHolder["bell_d" + bellTotal4].jumpSpeed = 10;
bellHolder["bell_d" + bellTotal4].yorigspeed = bellHolder["bell_d" + bellTotal4].yspeed;
bellHolder["bell_d" + bellTotal4]._x = bellTop;
bellHolder["bell_d" + bellTotal4].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
if (!bellHolder["bell_d" + bellTotal4].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_d" + bellTotal4].baron = true;
bellHolder["bar" + this._name].healthno = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
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 groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime4 = 140;
var bellLimit4 = 152;
var bellTotal4 = 0;
var bellTime5 = 141;
var bellLimit5 = 157;
var bellTotal5 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 21
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 35;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime5++;
if ((bellTime5 >= bellLimit5) && (enemyCount5 < 1)) {
bellTotal5++;
bellHolder.attachMovie("enemy_mc9", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5]._y = groundHeight;
bellHolder["bell_e" + bellTotal5].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_e" + bellTotal5].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_e" + bellTotal5].thisway = 1;
bellHolder["bell_e" + bellTotal5]._xscale = 100;
} else if (bellHolder["bell_e" + bellTotal5].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_e" + bellTotal5].thisway = -1;
bellHolder["bell_e" + bellTotal5]._xscale = -100;
}
enemyCount5 = enemyCount5 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed - 0.3;
bellHolder["bell_e" + bellTotal5].damage = 2 - defense;
if (bellHolder["bell_e" + bellTotal5].damage < 1) {
bellHolder["bell_e" + bellTotal5].damage = 1;
}
bellHolder["bell_e" + bellTotal5].attackTime = 60;
bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed;
bellHolder["bell_e" + bellTotal5]._x = bellTop;
bellHolder["bell_e" + bellTotal5].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 150) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc3", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name].thisway2 = this.thisway;
bellHolder["poo" + this._name]._x = this._x - (this.thisway * 25);
bellHolder["poo" + this._name]._y = this._y + 3;
bellHolder["poo" + this._name].fallSpeed = 7;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._x = this._x - (this.fallSpeed * this.thisway2);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(wall1) || (this.hitTest(wall2))) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_e" + bellTotal5].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall3)) {
this.yspeed = 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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 15;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var enemyCount5 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime5 = 140;
var bellLimit5 = 152;
var bellTotal5 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Frame 22
function makeLvl() {
bellTime++;
if ((bellTime >= bellLimit) && (enemyCount1 < 4)) {
bellTotal++;
bellHolder.attachMovie("enemy_mc1b", "bell_a" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bell_a" + bellTotal]._y = bottomPipe;
bellHolder["bell_a" + bellTotal].landing = bottomPipe;
bellHolder["bell_a" + bellTotal].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_a" + bellTotal].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_a" + bellTotal].thisway = 1;
bellHolder["bell_a" + bellTotal]._xscale = 100;
} else if (bellHolder["bell_a" + bellTotal].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_a" + bellTotal].thisway = -1;
bellHolder["bell_a" + bellTotal]._xscale = -100;
}
enemyCount1 = enemyCount1 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_a" + bellTotal].yspeed = walkSpeed;
bellHolder["bell_a" + bellTotal].damage = 3 - defense;
if (bellHolder["bell_a" + bellTotal].damage < 1) {
bellHolder["bell_a" + bellTotal].damage = 1;
}
bellHolder["bell_a" + bellTotal].attackTime = 0;
bellHolder["bell_a" + bellTotal].jumpSpeedLimit = 10;
bellHolder["bell_a" + bellTotal].jumpSpeed = 10;
bellHolder["bell_a" + bellTotal].yorigspeed = bellHolder["bell_a" + bellTotal].yspeed;
bellHolder["bell_a" + bellTotal]._x = bellTop;
bellHolder["bell_a" + bellTotal].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
if (this.jumpSpeed < 0) {
this.jumpSpeed = this.jumpSpeed * (1 - (this.jumpSpeedLimit / 230));
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 / 270));
}
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.attackTime = 0;
this.gotoAndStop(1);
}
}
}
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 = fishHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 15;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
bellTime2++;
if ((bellTime2 >= bellLimit2) && (enemyCount2 < 3)) {
bellTotal2++;
bellHolder.attachMovie("enemy_mc2b", "bell_b" + bellTotal2, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2]._y = topPipe;
bellHolder["bell_b" + bellTotal2].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_b" + bellTotal2].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_b" + bellTotal2].thisway = 1;
bellHolder["bell_b" + bellTotal2]._xscale = 100;
} else if (bellHolder["bell_b" + bellTotal2].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_b" + bellTotal2].thisway = -1;
bellHolder["bell_b" + bellTotal2]._xscale = -100;
}
enemyCount2 = enemyCount2 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_b" + bellTotal2].yspeed = normalSpeed - 0.3;
bellHolder["bell_b" + bellTotal2].damage = 2 - defense;
if (bellHolder["bell_b" + bellTotal2].damage < 1) {
bellHolder["bell_b" + bellTotal2].damage = 1;
}
bellHolder["bell_b" + bellTotal2].attackTime = 60;
bellHolder["bell_b" + bellTotal2].yorigspeed = bellHolder["bell_b" + bellTotal2].yspeed;
bellHolder["bell_b" + bellTotal2]._x = bellTop;
bellHolder["bell_b" + bellTotal2].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 120) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc2", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name]._x = this._x;
bellHolder["poo" + this._name]._y = this._y;
bellHolder["poo" + this._name].fallSpeed = 3;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._y = this._y + this.fallSpeed;
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(ground)) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_b" + bellTotal2].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_b" + bellTotal2].baron = true;
bellHolder["bar" + this._name].healthno = batHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 35;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
bellTime5++;
if ((bellTime5 >= bellLimit5) && (enemyCount5 < 1)) {
bellTotal5++;
bellHolder.attachMovie("enemy_mc10", "bell_e" + bellTotal5, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5]._y = groundHeight;
bellHolder["bell_e" + bellTotal5].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_e" + bellTotal5].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_e" + bellTotal5].thisway = 1;
bellHolder["bell_e" + bellTotal5]._xscale = 100;
} else if (bellHolder["bell_e" + bellTotal5].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_e" + bellTotal5].thisway = -1;
bellHolder["bell_e" + bellTotal5]._xscale = -100;
}
enemyCount5 = enemyCount5 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_e" + bellTotal5].yspeed = fastSpeed - 0.3;
bellHolder["bell_e" + bellTotal5].damage = 2 - defense;
if (bellHolder["bell_e" + bellTotal5].damage < 1) {
bellHolder["bell_e" + bellTotal5].damage = 1;
}
bellHolder["bell_e" + bellTotal5].attackTime = 60;
bellHolder["bell_e" + bellTotal5].yorigspeed = bellHolder["bell_e" + bellTotal5].yspeed;
bellHolder["bell_e" + bellTotal5]._x = bellTop;
bellHolder["bell_e" + bellTotal5].onEnterFrame = function () {
if (!gpause) {
this.attackTime++;
if ((this.attackTime > 150) && (!this.notdead)) {
bellHolder.attachMovie("poo_mc3", "poo" + this._name, bellHolder.getNextHighestDepth());
bellHolder["poo" + this._name].thisway2 = this.thisway;
bellHolder["poo" + this._name]._x = this._x - (this.thisway * 25);
bellHolder["poo" + this._name]._y = this._y + 3;
bellHolder["poo" + this._name].fallSpeed = 7;
bellHolder["poo" + this._name].damage = 2;
this.attackTime = 0;
}
bellHolder["poo" + this._name].onEnterFrame = function () {
if (!gpause) {
this._x = this._x - (this.fallSpeed * this.thisway2);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
this.removeMovieClip();
}
if (this.hitTest(wall1) || (this.hitTest(wall2))) {
this.removeMovieClip();
}
if (gameOver) {
this.removeMovieClip();
}
}
};
if (!bellHolder["bell_e" + bellTotal5].baron) {
bellHolder.attachMovie("healthbar", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_e" + bellTotal5].baron = true;
bellHolder["bar" + this._name]._width = bellHolder["bar" + this._name]._width * 2;
bellHolder["bar" + this._name].healthno = bossHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 25;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall3)) {
this.yspeed = 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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
bellTime3++;
if ((bellTime3 >= bellLimit3) && (enemyCount3 < 3)) {
bellTotal3++;
bellHolder.attachMovie("enemy_mc8", "bell_c" + bellTotal3, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3]._y = groundHeight;
bellHolder["bell_c" + bellTotal3].randomSpawn = Math.floor(Math.random() * 2) + 1;
if (bellHolder["bell_c" + bellTotal3].randomSpawn == 1) {
bellTop = bellTopright;
bellHolder["bell_c" + bellTotal3].thisway = 1;
bellHolder["bell_c" + bellTotal3]._xscale = 100;
} else if (bellHolder["bell_c" + bellTotal3].randomSpawn == 2) {
bellTop = bellTopleft;
bellHolder["bell_c" + bellTotal3].thisway = -1;
bellHolder["bell_c" + bellTotal3]._xscale = -100;
}
enemyCount3 = enemyCount3 + 1;
totalEnemies = totalEnemies + 1;
bellHolder["bell_c" + bellTotal3].yspeed = normalSpeed;
bellHolder["bell_c" + bellTotal3].damage = 1 - defense;
if (bellHolder["bell_c" + bellTotal3].damage < 1) {
bellHolder["bell_c" + bellTotal3].damage = 1;
}
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", "bar" + this._name, bellHolder.getNextHighestDepth());
bellHolder["bell_c" + bellTotal3].baron = true;
bellHolder["bar" + this._name].healthno = frogHealth;
bellHolder["bar" + this._name].healthorigno = bellHolder["bar" + this._name].healthno;
}
bellHolder["bar" + this._name]._x = this._x;
bellHolder["bar" + this._name]._y = this._y - 45;
bellHolder["bar" + this._name].onEnterFrame = function () {
if (_root.gameOver) {
this.removeMovieClip();
}
};
this._x = this._x - (this.yspeed * this.thisway);
if (this.hitTest(mcMain.hitgem) || (this.hitTest(mcMain.head_mc))) {
hurtMe(mcMain, this);
}
if (this.hitTest(wall1)) {
this.thisway = -1;
this._xscale = -100;
}
if (this.hitTest(wall2)) {
this.thisway = 1;
this._xscale = 100;
}
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 - 5;
}
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(mcMain)) {
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 = 0;
bellHolder["bar" + this._name].removeMovieClip();
this.gotoAndStop(2);
}
}
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if (restart) {
continueGame();
} else {
waveNumber = waveNumber + 1;
}
loadDefault();
stop();
var gpause = false;
var gamedone = false;
var winonce = false;
var pressed23 = false;
var prev1 = "UNPAUSED";
var totalEnemiesGoal = 39;
var totalEnemiesGoalRatio = totalEnemiesGoal;
var totalKillsCount = 0;
var totalEnemies = 0;
var enemyCount1 = 0;
var enemyCount2 = 0;
var enemyCount3 = 0;
var enemyCount5 = 0;
var bulletAmmoCounter = 0;
var changeWeapon = false;
var reloadingNow = false;
var weaponFired = false;
var groundHeight = 357;
var shakeQuan = 1;
var randomSpawn = (Math.floor(Math.random() * 1) + 1);
if (randomSpawn == 1) {
bellTop = 700;
} else if (randomSpawn == 2) {
bellTop = -10;
}
var shakeTime = 0;
var gameOver = false;
var bellTime = 140;
var bellLimit = 151;
var bellTotal = 0;
var bellTime2 = 110;
var bellLimit2 = 123;
var bellTotal2 = 0;
var bellTime3 = 110;
var bellLimit3 = 147;
var bellTotal3 = 0;
var bellTime5 = 140;
var bellLimit5 = 155;
var bellTotal5 = 0;
_root.playerWeapon.bulletAmmo = _root.playerWeapon.bulletClip;
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
Symbol 21 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 31 MovieClip [gamecomplete] Frame 13
submitbtn.onRelease = function () {
_root.mcMain.removeMovieClip();
_root.gamecomplete.swapDepths(10);
_root.mochiSend();
};
stop();
close_btn.onRelease = function () {
gotoAndPlay (15);
};
this.onEnterFrame = function () {
dayText.text = _root.waveNumber + " Days!";
};
Instance of Symbol 18 MovieClip in Symbol 31 MovieClip [gamecomplete] Frame 13
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Instance of Symbol 21 MovieClip "submitbtn" in Symbol 31 MovieClip [gamecomplete] Frame 13
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 26 MovieClip "close_btn" in Symbol 31 MovieClip [gamecomplete] Frame 13
on (release) {
_root.clicksound.start(0, 1);
_root.gpause = false;
_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(2);
}
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 29 MovieClip in Symbol 31 MovieClip [gamecomplete] Frame 13
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://www.flashgamesnexus.com/", "_blank");
}
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 31 MovieClip [gamecomplete] Frame 26
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 3
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 39 MovieClip [gameOver_mc] Frame 40
_root.mouseClicked = false;
_root.effectHolder_mc.enabled = false;
Mouse.show();
_root.gpause = true;
_root.shooter._visible = false;
_root.gameOver = true;
_root.mouseClicked = false;
Symbol 39 MovieClip [gameOver_mc] Frame 52
this.onEnterFrame = function () {
if (_root.wave1) {
continue_btn._visible = false;
} else {
continue_btn._visible = true;
}
};
stop();
_root.mouseClicked = false;
continue_btn.onRelease = function () {
Mouse.hide();
stopAllSounds();
_root.bgsound.start(0, 99);
_root.forestsound.start(0, 99);
_root.shooter._visible = true;
_root.towerLife = _root.towerLifeOrig;
_root.gameOver = true;
_root.waveNumber = _root.waveNumber - 1;
gotoAndPlay (69);
_root.prevFrame();
};
Instance of Symbol 36 MovieClip "continue_btn" in Symbol 39 MovieClip [gameOver_mc] Frame 52
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 38 MovieClip "quitbtn" in Symbol 39 MovieClip [gameOver_mc] Frame 52
on (release) {
_root.clicksound.start(0, 1);
_root.gpause = false;
_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(2);
}
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 29 MovieClip in Symbol 39 MovieClip [gameOver_mc] Frame 52
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
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 39 MovieClip [gameOver_mc] Frame 53
stop();
_root.gpause = false;
this.removeMovieClip();
Symbol 49 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 10
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 109 MovieClip [upgradesShop] Frame 1
_root.mouseClicked = false;
_root.effectHolder_mc.enabled = false;
Mouse.show();
_root.gpause = true;
_root.shooter._visible = false;
Symbol 109 MovieClip [upgradesShop] Frame 13
stop();
macMessage.text = "";
this.onEnterFrame = function () {
if (Key.isDown(32) && (!_root.shopOpen2)) {
Mouse.hide();
_root.loadDefault();
_root.effectHolder_mc.enabled = true;
_root.shopOpen2 = true;
_root.clicksound.start(0, 1);
_root.shooter._visible = true;
gotoAndPlay (14);
_root.gpause = false;
}
if (!_root.applebought) {
price2.text = "$1500";
} else {
price2.text = "Bought";
}
if (!_root.hammerbought) {
price3.text = "$10500";
} else {
price3.text = "Bought";
}
if (!_root.swordbought) {
price4.text = "$12000";
} else {
price4.text = "Bought";
}
if (!_root.gunbought) {
price5.text = "$15900";
} else {
price5.text = "Bought";
}
if (!_root.dynamitebought) {
price6.text = "$45000";
} else {
price6.text = "Bought";
}
if (_root.towerLife < _root.towerLifeOrig) {
price7.text = "$" + _root.healPrice;
} else {
price7.text = "Max";
}
if (_root.towerLifeOrig < 45) {
price8.text = "$" + _root.lifePrice;
} else {
price8.text = "Max";
}
if (_root.powerbonus < 2.5) {
price9.text = "$" + _root.powerPrice;
} else {
price9.text = "Max";
}
if (_root.defense < 4) {
price10.text = "$" + _root.defensePrice;
} else {
price10.text = "Max";
}
if (_root.mainSpeed < 8) {
price11.text = "$" + _root.speedPrice;
} else {
price11.text = "Max";
}
if (!_root.doublejumpbought) {
price12.text = "$5000";
} else {
price12.text = "Bought";
}
if ((((_root.playerWeapon.itemName == "Life Up") || (_root.playerWeapon.itemName == "Power Up")) || (_root.playerWeapon.itemName == "Speed Up")) || (_root.playerWeapon.itemName == "Defense Up")) {
macLevel.text = "Level " + _root.playerWeapon.itemLevel;
} else {
macLevel.text = "";
}
coinTxt.text = "Your Money: " + _root.coins;
macDesc.text = _root.playerWeapon.itemDesc;
macName.text = _root.playerWeapon.itemName;
};
_root.upgradesound.start(0, 1);
buyUpgrades.weaponTrans.gotoAndPlay(2);
next_btn.onRelease = function () {
Mouse.hide();
_root.clicksound.start(0, 1);
_root.shooter._visible = true;
_root.loadDefault();
gotoAndPlay (14);
_root.effectHolder_mc.enabled = true;
_root.gpause = false;
};
btn1.onRelease = function () {
if (!_root.clubbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.clubbought = true;
_root.clubselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn2.onRelease = function () {
if (!_root.applebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.applebought = true;
_root.appleselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn3.onRelease = function () {
if (!_root.hammerbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.hammerbought = true;
_root.hammerselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn4.onRelease = function () {
if (!_root.swordbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.swordbought = true;
_root.swordselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn5.onRelease = function () {
if (!_root.gunbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.gunbought = true;
_root.gunselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn6.onRelease = function () {
if (!_root.dynamitebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.dynamitebought = true;
_root.dynamiteselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn7.onRelease = function () {
if (_root.towerLife < _root.towerLifeOrig) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.healPrice = _root.healPrice + 100;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost + 100;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed out!";
}
};
btn8.onRelease = function () {
if (_root.towerLifeOrig < 45) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.lifePrice = _root.lifePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.towerLifeOrig = _root.towerLifeOrig + 5;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn10.onRelease = function () {
if (_root.defense < 4) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.defensePrice = _root.defensePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.defense = _root.defense + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn9.onRelease = function () {
if (_root.powerbonus < 2.5) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.powerPrice = _root.powerPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.powerbonus = _root.powerbonus + 0.5;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn11.onRelease = function () {
if (_root.mainSpeed < 8) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.speedPrice = _root.speedPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.mainSpeed = _root.mainSpeed + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn12.onRelease = function () {
if (!_root.doublejumpbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.doublejumpbought = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
hat1.onRelease = function () {
_root.hat1on = true;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
};
hat2.onRelease = function () {
_root.hat1on = false;
_root.hat2on = true;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
};
hat3.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat3on = true;
};
hat4.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat4on = true;
};
hat5.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat5on = true;
};
hat6.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat6on = true;
};
hat7.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat7on = true;
};
hat8.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat9on = false;
_root.hat10on = false;
_root.hat8on = true;
};
hat9.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat10on = false;
_root.hat9on = true;
};
hat10.onRelease = function () {
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = true;
};
Instance of Symbol 49 MovieClip "next_btn" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn1" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Default");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn2" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Uzi Type");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn3" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Shotgun");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn4" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Sniper");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn5" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Lazer");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn6" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Expensive");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn7" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Heal");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn8" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Life Up");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn9" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Power Up");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn10" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Defense Up");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn11" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Speed Up");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 57 MovieClip "btn12" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Double Jump");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat1" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Sombrero");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat2" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Magician");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat3" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Paper Hat");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat4" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Kid Cap");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat5" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Fashionista");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat6" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Party Hat");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat7" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Lucky Hat");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat8" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Baseball Cap");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat9" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Adventurer's Hat");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 92 MovieClip "hat10" in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Iron Mask");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 96 MovieClip in Symbol 109 MovieClip [upgradesShop] Frame 13
on (release) {
_root.mcMain.head_mc.hat_mc.gotoAndStop(1);
_root.hat1on = false;
_root.hat2on = false;
_root.hat3on = false;
_root.hat4on = false;
_root.hat5on = false;
_root.hat6on = false;
_root.hat7on = false;
_root.hat8on = false;
_root.hat9on = false;
_root.hat10on = false;
}
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.loadWeapon("Club");
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 104 MovieClip in Symbol 109 MovieClip [upgradesShop] Frame 13
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (enterFrame) {
if ((_root.waveNumber == 1) || (_root.waveNumber == 2)) {
this.gotoAndStop(1);
} else if ((_root.waveNumber == 3) || (_root.waveNumber == 4)) {
this.gotoAndStop(2);
} else if ((_root.waveNumber == 5) || (_root.waveNumber == 6)) {
this.gotoAndStop(3);
} else if ((_root.waveNumber == 7) || (_root.waveNumber == 8)) {
this.gotoAndStop(4);
} else if ((_root.waveNumber == 9) || (_root.waveNumber == 10)) {
this.gotoAndStop(5);
} else if ((_root.waveNumber == 11) || (_root.waveNumber == 12)) {
this.gotoAndStop(6);
} else if ((_root.waveNumber == 13) || (_root.waveNumber == 14)) {
this.gotoAndStop(7);
} else {
this.gotoAndStop(8);
}
}
on (rollOver) {
_root.loadWeapon("Locked");
Mouse.show();
_root.hoversound.start(0, 1);
}
Symbol 109 MovieClip [upgradesShop] Frame 24
stop();
_root.shopOpen = false;
_root.effectHolder_mc.enabled = true;
_root.gpause = false;
_root.prev1 = "UNPAUSED";
this.removeMovieClip();
Symbol 111 MovieClip Frame 88
stop();
Symbol 115 MovieClip [gamecomplete_mc] Frame 29
_root.mouseClicked = false;
_root.effectHolder_mc.enabled = false;
Mouse.show();
_root.gpause = true;
_root.mcMain.runner.stop();
_root.shooter._visible = false;
Symbol 115 MovieClip [gamecomplete_mc] Frame 41
stop();
macMessage.text = "";
this.onEnterFrame = function () {
if (!_root.applebought) {
price2.text = "$150";
} else {
price2.text = "Bought";
}
if (!_root.hammerbought) {
price3.text = "$350";
} else {
price3.text = "Bought";
}
if (!_root.swordbought) {
price4.text = "$650";
} else {
price4.text = "Bought";
}
if (!_root.gunbought) {
price5.text = "$850";
} else {
price5.text = "Bought";
}
if (!_root.dynamitebought) {
price6.text = "$1500";
} else {
price6.text = "Bought";
}
if (_root.towerLife < _root.towerLifeOrig) {
price7.text = "$50";
} else {
price7.text = "Max";
}
if (_root.towerLifeOrig < 45) {
price8.text = "$" + _root.lifePrice;
} else {
price8.text = "Max";
}
if (_root.powerbonus < 2.5) {
price9.text = "$" + _root.powerPrice;
} else {
price9.text = "Max";
}
if (_root.defense < 4) {
price10.text = "$" + _root.defensePrice;
} else {
price10.text = "Max";
}
if (_root.mainSpeed < 8) {
price11.text = "$" + _root.speedPrice;
} else {
price11.text = "Max";
}
if (!_root.doublejumpbought) {
price12.text = "$500";
} else {
price12.text = "Bought";
}
if ((((_root.playerWeapon.itemName == "Lifebar+") || (_root.playerWeapon.itemName == "Power+")) || (_root.playerWeapon.itemName == "Speed+")) || (_root.playerWeapon.itemName == "Defense+")) {
macLevel.text = "Level " + _root.playerWeapon.itemLevel;
} else {
macLevel.text = "";
}
coinTxt.text = "Your Money: " + _root.coins;
macDesc.text = _root.playerWeapon.itemDesc;
macName.text = _root.playerWeapon.itemName;
};
_root.gameOver = true;
_root.upgradesound.start(0, 1);
buyUpgrades.weaponTrans.gotoAndPlay(2);
next_btn.onRelease = function () {
Mouse.hide();
_root.clicksound.start(0, 1);
_root.shooter._visible = true;
gotoAndPlay (41);
};
btn1.onRelease = function () {
if (!_root.clubbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.clubbought = true;
_root.clubselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn2.onRelease = function () {
if (!_root.applebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.applebought = true;
_root.appleselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn3.onRelease = function () {
if (!_root.hammerbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.hammerbought = true;
_root.hammerselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn4.onRelease = function () {
if (!_root.swordbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.swordbought = true;
_root.swordselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn5.onRelease = function () {
if (!_root.gunbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.gunbought = true;
_root.gunselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn6.onRelease = function () {
if (!_root.dynamitebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.dynamitebought = true;
_root.dynamiteselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn7.onRelease = function () {
if (_root.towerLife < _root.towerLifeOrig) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed out!";
}
};
btn8.onRelease = function () {
if (_root.towerLifeOrig < 45) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.lifePrice = _root.lifePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.towerLifeOrig = _root.towerLifeOrig + 5;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn10.onRelease = function () {
if (_root.defense < 4) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.defensePrice = _root.defensePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.defense = _root.defense + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn9.onRelease = function () {
if (_root.powerbonus < 2.5) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.powerPrice = _root.powerPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.powerbonus = _root.powerbonus + 0.5;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn11.onRelease = function () {
if (_root.mainSpeed < 8) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.speedPrice = _root.speedPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.mainSpeed = _root.mainSpeed + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn12.onRelease = function () {
if (!_root.doublejumpbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.doublejumpbought = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
Instance of Symbol 38 MovieClip "quitbtn" in Symbol 115 MovieClip [gamecomplete_mc] Frame 41
on (release) {
_root.clicksound.start(0, 1);
_root.gpause = false;
_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(2);
}
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 29 MovieClip in Symbol 115 MovieClip [gamecomplete_mc] Frame 41
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
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 115 MovieClip [gamecomplete_mc] Frame 51
stop();
_root.mcMain.runner.play();
_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.dayview.gotoAndPlay(1);
if (!_root.finalwave) {
_root.nextFrame();
} else {
_root.gotoAndStop(15);
_root.finalwave = false;
}
_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");
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["coinbell_b" + g].removeMovieClip();
_root.bellHolder["barbell_b" + g].removeMovieClip();
_root.bellHolder["bloodbell_b" + g].removeMovieClip();
g++;
}
h = 0;
while (h < 199) {
_root.bellHolder["bell_c" + h].removeMovieClip();
_root.bellHolder["coinbell_c" + h].removeMovieClip();
_root.bellHolder["barbell_c" + h].removeMovieClip();
_root.bellHolder["bloodbell_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 < 9999) {
_root.bellHolder["b" + 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 117 MovieClip Frame 105
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 121 MovieClip [wavecomplete] Frame 29
_root.mouseClicked = false;
_root.effectHolder_mc.enabled = false;
Mouse.show();
_root.gpause = true;
_root.mcMain.runner.stop();
_root.shooter._visible = false;
Symbol 121 MovieClip [wavecomplete] Frame 41
stop();
macMessage.text = "";
this.onEnterFrame = function () {
if (!_root.applebought) {
price2.text = "$150";
} else {
price2.text = "Bought";
}
if (!_root.hammerbought) {
price3.text = "$350";
} else {
price3.text = "Bought";
}
if (!_root.swordbought) {
price4.text = "$650";
} else {
price4.text = "Bought";
}
if (!_root.gunbought) {
price5.text = "$850";
} else {
price5.text = "Bought";
}
if (!_root.dynamitebought) {
price6.text = "$1500";
} else {
price6.text = "Bought";
}
if (_root.towerLife < _root.towerLifeOrig) {
price7.text = "$50";
} else {
price7.text = "Max";
}
if (_root.towerLifeOrig < 45) {
price8.text = "$" + _root.lifePrice;
} else {
price8.text = "Max";
}
if (_root.powerbonus < 2.5) {
price9.text = "$" + _root.powerPrice;
} else {
price9.text = "Max";
}
if (_root.defense < 4) {
price10.text = "$" + _root.defensePrice;
} else {
price10.text = "Max";
}
if (_root.mainSpeed < 8) {
price11.text = "$" + _root.speedPrice;
} else {
price11.text = "Max";
}
if (!_root.doublejumpbought) {
price12.text = "$500";
} else {
price12.text = "Bought";
}
if ((((_root.playerWeapon.itemName == "Lifebar+") || (_root.playerWeapon.itemName == "Power+")) || (_root.playerWeapon.itemName == "Speed+")) || (_root.playerWeapon.itemName == "Defense+")) {
macLevel.text = "Level " + _root.playerWeapon.itemLevel;
} else {
macLevel.text = "";
}
coinTxt.text = "Your Money: " + _root.coins;
macDesc.text = _root.playerWeapon.itemDesc;
macName.text = _root.playerWeapon.itemName;
};
_root.gameOver = true;
_root.upgradesound.start(0, 1);
buyUpgrades.weaponTrans.gotoAndPlay(2);
next_btn.onRelease = function () {
Mouse.hide();
_root.clicksound.start(0, 1);
_root.shooter._visible = true;
gotoAndPlay (41);
};
btn1.onRelease = function () {
if (!_root.clubbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.clubbought = true;
_root.clubselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn2.onRelease = function () {
if (!_root.applebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.applebought = true;
_root.appleselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn3.onRelease = function () {
if (!_root.hammerbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.hammerbought = true;
_root.hammerselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn4.onRelease = function () {
if (!_root.swordbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.swordbought = true;
_root.swordselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn5.onRelease = function () {
if (!_root.gunbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.gunbought = true;
_root.gunselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn6.onRelease = function () {
if (!_root.dynamitebought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.dynamitebought = true;
_root.dynamiteselected = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
btn7.onRelease = function () {
if (_root.towerLife < _root.towerLifeOrig) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed out!";
}
};
btn8.onRelease = function () {
if (_root.towerLifeOrig < 45) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.lifePrice = _root.lifePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.towerLifeOrig = _root.towerLifeOrig + 5;
_root.towerLife = _root.towerLifeOrig;
_root.life_mc.bar_mc._x = -15;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn10.onRelease = function () {
if (_root.defense < 4) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.defensePrice = _root.defensePrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.defense = _root.defense + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn9.onRelease = function () {
if (_root.powerbonus < 2.5) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.powerPrice = _root.powerPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.powerbonus = _root.powerbonus + 0.5;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn11.onRelease = function () {
if (_root.mainSpeed < 8) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.playerWeapon.itemCost = _root.playerWeapon.itemCost * 2;
_root.speedPrice = _root.speedPrice * 2;
_root.playerWeapon.itemLevel = _root.playerWeapon.itemLevel + 1;
_root.mainSpeed = _root.mainSpeed + 1;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Maxed Out!";
}
};
btn12.onRelease = function () {
if (!_root.doublejumpbought) {
if (_root.coins >= _root.playerWeapon.itemCost) {
_root.coins = _root.coins - _root.playerWeapon.itemCost;
_root.doublejumpbought = true;
_root.registersound.start(0, 1);
macMessage.text = "Great!";
} else {
macMessage.text = "Not enough money!";
}
} else {
macMessage.text = "Already bought!";
}
};
Instance of Symbol 49 MovieClip "next_btn" in Symbol 121 MovieClip [wavecomplete] Frame 41
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 121 MovieClip [wavecomplete] Frame 51
stop();
_root.mcMain.runner.play();
_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.dayview.gotoAndPlay(1);
if (!_root.finalwave) {
_root.nextFrame();
} else {
_root.gotoAndStop(15);
_root.finalwave = false;
}
_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");
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["coinbell_b" + g].removeMovieClip();
_root.bellHolder["barbell_b" + g].removeMovieClip();
_root.bellHolder["bloodbell_b" + g].removeMovieClip();
g++;
}
h = 0;
while (h < 199) {
_root.bellHolder["bell_c" + h].removeMovieClip();
_root.bellHolder["coinbell_c" + h].removeMovieClip();
_root.bellHolder["barbell_c" + h].removeMovieClip();
_root.bellHolder["bloodbell_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 < 9999) {
_root.bellHolder["b" + 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 124 MovieClip [shooter_mc] Frame 1
stop();
Symbol 145 MovieClip [bullet] Frame 1
stop();
Symbol 152 MovieClip [flame_mc] Frame 25
stop();
Symbol 168 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.hat1on) {
gotoAndStop (2);
}
if (_root.hat2on) {
gotoAndStop (3);
}
if (_root.hat3on) {
gotoAndStop (4);
}
if (_root.hat4on) {
gotoAndStop (5);
}
if (_root.hat5on) {
gotoAndStop (6);
}
if (_root.hat6on) {
gotoAndStop (7);
}
if (_root.hat7on) {
gotoAndStop (8);
}
if (_root.hat8on) {
gotoAndStop (9);
}
if (_root.hat9on) {
gotoAndStop (10);
}
if (_root.hat10on) {
gotoAndStop (11);
}
};
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 1
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 2
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 3
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 4
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 5
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 6
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 7
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 8
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 9
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 10
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 11
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 12
stop();
Symbol 194 MovieClip [mcMain_mc] Frame 13
stop();
Symbol 256 MovieClip Frame 186
gotoAndPlay (62);
Symbol 256 MovieClip Frame 195
stop();
Symbol 258 MovieClip [enemy_mc10] Frame 1
stop();
Symbol 258 MovieClip [enemy_mc10] Frame 2
sniper.gotoAndPlay("death");
Symbol 268 MovieClip Frame 50
gotoAndPlay (1);
Symbol 268 MovieClip Frame 62
stop();
Symbol 270 MovieClip [enemy_mc6] Frame 1
stop();
Symbol 270 MovieClip [enemy_mc6] Frame 2
hangglider.gotoAndPlay(51);
Symbol 271 MovieClip [enemy_mc5] Frame 1
stop();
Symbol 271 MovieClip [enemy_mc5] Frame 2
hangglider.gotoAndPlay(51);
Symbol 280 MovieClip Frame 40
gotoAndPlay (1);
Symbol 280 MovieClip Frame 46
stop();
Symbol 281 MovieClip [enemy_mc2b] Frame 1
stop();
Symbol 281 MovieClip [enemy_mc2b] Frame 2
balloon.gotoAndPlay(41);
Symbol 285 MovieClip Frame 40
gotoAndPlay (1);
Symbol 285 MovieClip Frame 46
stop();
Symbol 286 MovieClip [enemy_mc2] Frame 1
stop();
Symbol 286 MovieClip [enemy_mc2] Frame 2
balloon.gotoAndPlay(41);
Symbol 290 MovieClip Frame 8
gotoAndPlay (1);
Symbol 290 MovieClip Frame 19
stop();
Symbol 292 MovieClip [enemy_mc7b] Frame 1
stop();
Symbol 292 MovieClip [enemy_mc7b] Frame 2
pixelbot.gotoAndPlay("death");
Symbol 299 MovieClip Frame 24
gotoAndPlay (1);
Symbol 299 MovieClip Frame 40
stop();
Symbol 300 MovieClip [enemy_mc7] Frame 1
stop();
Symbol 300 MovieClip [enemy_mc7] Frame 2
gem.gotoAndPlay("death");
Symbol 301 MovieClip [enemy_mc9] Frame 1
stop();
Symbol 301 MovieClip [enemy_mc9] Frame 2
sniper.gotoAndPlay("death");
Symbol 324 MovieClip Frame 46
gotoAndPlay (1);
Symbol 324 MovieClip Frame 76
stop();
Symbol 326 MovieClip [enemy_mc8] Frame 1
stop();
Symbol 326 MovieClip [enemy_mc8] Frame 2
zombee.gotoAndPlay("death");
Symbol 329 MovieClip Frame 59
gotoAndPlay (1);
Symbol 329 MovieClip Frame 75
stop();
Symbol 330 MovieClip [enemy_mc3b] Frame 1
stop();
Symbol 330 MovieClip [enemy_mc3b] Frame 2
circle.gotoAndPlay("death");
Symbol 343 MovieClip Frame 23
gotoAndPlay (1);
Symbol 343 MovieClip Frame 44
stop();
Symbol 344 MovieClip [enemy_mc3] Frame 1
stop();
Symbol 344 MovieClip [enemy_mc3] Frame 2
rollcube.gotoAndPlay(24);
Symbol 385 MovieClip Frame 24
gotoAndPlay (1);
Symbol 385 MovieClip Frame 45
stop();
Symbol 386 MovieClip [enemy_mc4] Frame 1
stop();
Symbol 386 MovieClip [enemy_mc4] Frame 2
penguin.gotoAndPlay(25);
Symbol 416 MovieClip Frame 24
gotoAndPlay (1);
Symbol 416 MovieClip Frame 40
stop();
Symbol 417 MovieClip [enemy_mc1b] Frame 1
stop();
Symbol 417 MovieClip [enemy_mc1b] Frame 2
penguin.gotoAndPlay(25);
Symbol 418 MovieClip [enemy_mc1] Frame 1
stop();
Symbol 418 MovieClip [enemy_mc1] Frame 2
penguin.gotoAndPlay(25);
Symbol 435 MovieClip [blood_mc] Frame 9
stop();
Symbol 446 MovieClip [blood_mc2] Frame 9
stop();
Symbol 456 MovieClip [gem_mc] Frame 1
stop();
Symbol 456 MovieClip [gem_mc] Frame 2
stop();
Symbol 469 MovieClip [notbuy_mc] Frame 1
stop();
Symbol 469 MovieClip [notbuy_mc] Frame 2
var timeLeft = 60;
this.onEnterFrame = function () {
this.timeLeft--;
if (this.timeLeft == 0) {
gotoAndStop (1);
}
};
Symbol 480 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 7
stop();
Symbol 538 MovieClip Frame 14
stop();
Symbol 538 MovieClip Frame 20
stop();
Symbol 539 MovieClip Frame 1
stop();
Instance of Symbol 480 MovieClip in Symbol 539 MovieClip Frame 1
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://ad.doubleclick.net/clk;229991247;54704702;n;pc=[TPAS_ID]", "_blank");
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Symbol 539 MovieClip Frame 216
_root.gotoAndStop(2);
Symbol 544 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 1
onEnterFrame = function () {
this._x = this._x - 4;
if (this._x <= -688) {
this._x = -7.6;
}
};
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 14
stop();
close_btn.onRelease = function () {
gotoAndPlay (15);
};
Instance of Symbol 18 MovieClip in Symbol 567 MovieClip Frame 14
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Symbol 567 MovieClip Frame 27
stop();
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 14
stop();
close_btn.onRelease = function () {
gotoAndPlay (15);
};
Instance of Symbol 18 MovieClip in Symbol 573 MovieClip Frame 14
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Instance of Symbol 49 MovieClip "next_btn" in Symbol 573 MovieClip Frame 14
on (release) {
_root.clicksound.start(0, 1);
_root.gotoAndStop(3);
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Symbol 573 MovieClip Frame 27
stop();
Symbol 577 MovieClip Frame 1
stop();
Instance of Symbol 574 MovieClip in Symbol 577 MovieClip Frame 2
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
_root.achieve_mc.gotoAndPlay("close");
}
Symbol 577 MovieClip Frame 10
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 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 603 MovieClip "quitbtn" in Symbol 614 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 29 MovieClip "moregames" in Symbol 614 MovieClip Frame 2
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://www.flashgamesnexus.com/", "_blank");
}
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 605 MovieClip "unpause" in Symbol 614 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);
}
Instance of Symbol 608 MovieClip in Symbol 614 MovieClip Frame 2
on (release) {
_root.clicksound.start(0, 1);
getURL ("http://www.fncgamesblog.com/2010/08/05/gem-defender-walkthrough", "_blank");
}
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 614 MovieClip Frame 3
nobtn.onRelease = function () {
_root.clicksound.start(0, 1);
gotoAndStop (2);
};
Instance of Symbol 611 MovieClip in Symbol 614 MovieClip Frame 3
on (release) {
_root.clicksound.start(0, 1);
_root.gpause = false;
_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(2);
}
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 613 MovieClip "nobtn" in Symbol 614 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 638 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 2
_root.lvlHolder._x = _root.lvlHolder._x + _root.shakeQuan;
_root.bellHolder._x = _root.bellHolder._x + _root.shakeQuan;
_root.lvlHolder._y = _root.lvlHolder._y + _root.shakeQuan;
_root.bellHolder._y = _root.bellHolder._y + _root.shakeQuan;
_root.mcMain._x = _root.mcMain._x + _root.shakeQuan;
_root.mcMain._y = _root.mcMain._y + _root.shakeQuan;
_root.pipeline._x = _root.pipeline._x + _root.shakeQuan;
_root.pipeline._y = _root.pipeline._y + _root.shakeQuan;
_root.button_mc._y = _root.button_mc._y + _root.shakeQuan;
_root.target1._x = _root.target1._x + _root.shakeQuan;
_root.target1._y = _root.target1._y + _root.shakeQuan;
_root.target2._y = _root.target2._y + _root.shakeQuan;
_root.target2._x = _root.target2._x + _root.shakeQuan;
_root.gem4._y = _root.gem4._y - _root.shakeQuan;
_root.gem4._x = _root.gem4._x + _root.shakeQuan;
_root.gem2._y = _root.gem2._y - (_root.shakeQuan * 2);
_root.gem2._x = _root.gem2._x + _root.shakeQuan;
Symbol 640 MovieClip Frame 3
_root.lvlHolder._x = _root.lvlHolder._x - _root.shakeQuan;
_root.bellHolder._x = _root.bellHolder._x - _root.shakeQuan;
_root.lvlHolder._y = _root.lvlHolder._y - _root.shakeQuan;
_root.bellHolder._y = _root.bellHolder._y - _root.shakeQuan;
_root.mcMain._x = _root.mcMain._x - _root.shakeQuan;
_root.mcMain._y = _root.mcMain._y - _root.shakeQuan;
_root.pipeline._x = _root.pipeline._x - _root.shakeQuan;
_root.pipeline._y = _root.pipeline._y - _root.shakeQuan;
_root.button_mc._y = _root.button_mc._y - _root.shakeQuan;
_root.target1._x = _root.target1._x - _root.shakeQuan;
_root.target1._y = _root.target1._y - _root.shakeQuan;
_root.target2._y = _root.target2._y - _root.shakeQuan;
_root.target2._x = _root.target2._x - _root.shakeQuan;
_root.gem4._y = _root.gem4._y + _root.shakeQuan;
_root.gem4._x = _root.gem4._x - _root.shakeQuan;
_root.gem2._y = _root.gem2._y + (_root.shakeQuan * 2);
_root.gem2._x = _root.gem2._x - _root.shakeQuan;
Symbol 640 MovieClip Frame 4
_root.lvlHolder._x = _root.lvlHolder._x + _root.shakeQuan;
_root.bellHolder._x = _root.bellHolder._x + _root.shakeQuan;
_root.lvlHolder._y = _root.lvlHolder._y + _root.shakeQuan;
_root.bellHolder._y = _root.bellHolder._y + _root.shakeQuan;
_root.mcMain._x = _root.mcMain._x + _root.shakeQuan;
_root.mcMain._y = _root.mcMain._y + _root.shakeQuan;
_root.pipeline._x = _root.pipeline._x + _root.shakeQuan;
_root.pipeline._y = _root.pipeline._y + _root.shakeQuan;
_root.button_mc._y = _root.button_mc._y + _root.shakeQuan;
_root.target1._x = _root.target1._x + _root.shakeQuan;
_root.target1._y = _root.target1._y + _root.shakeQuan;
_root.target2._y = _root.target2._y + _root.shakeQuan;
_root.target2._x = _root.target2._x + _root.shakeQuan;
_root.gem4._y = _root.gem4._y - _root.shakeQuan;
_root.gem4._x = _root.gem4._x + _root.shakeQuan;
_root.gem2._y = _root.gem2._y - (_root.shakeQuan * 2);
_root.gem2._x = _root.gem2._x + _root.shakeQuan;
Symbol 640 MovieClip Frame 5
_root.lvlHolder._x = _root.lvlHolder._x - _root.shakeQuan;
_root.bellHolder._x = _root.bellHolder._x - _root.shakeQuan;
_root.lvlHolder._y = _root.lvlHolder._y - _root.shakeQuan;
_root.bellHolder._y = _root.bellHolder._y - _root.shakeQuan;
_root.mcMain._x = _root.mcMain._x - _root.shakeQuan;
_root.mcMain._y = _root.mcMain._y - _root.shakeQuan;
_root.pipeline._x = _root.pipeline._x - _root.shakeQuan;
_root.pipeline._y = _root.pipeline._y - _root.shakeQuan;
_root.button_mc._y = _root.button_mc._y - _root.shakeQuan;
_root.target1._x = _root.target1._x - _root.shakeQuan;
_root.target1._y = _root.target1._y - _root.shakeQuan;
_root.target2._y = _root.target2._y - _root.shakeQuan;
_root.target2._x = _root.target2._x - _root.shakeQuan;
_root.gem4._y = _root.gem4._y + _root.shakeQuan;
_root.gem4._x = _root.gem4._x - _root.shakeQuan;
_root.gem2._y = _root.gem2._y + (_root.shakeQuan * 2);
_root.gem2._x = _root.gem2._x - _root.shakeQuan;
Symbol 658 MovieClip Frame 1
_root.unlock1 = 1;
_root.saveGame();
Symbol 658 MovieClip Frame 13
_root.unlockCapdet();
Symbol 658 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 667 MovieClip Frame 1
_root.unlock2 = 1;
_root.saveGame();
Symbol 667 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 676 MovieClip Frame 1
_root.unlock3 = 1;
_root.saveGame();
Symbol 676 MovieClip Frame 13
_root.unlockCapmmander();
Symbol 676 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 685 MovieClip Frame 1
_root.unlock4 = 1;
_root.saveGame();
Symbol 685 MovieClip Frame 13
_root.unlockCapmmodore();
Symbol 685 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 694 MovieClip Frame 1
_root.unlock5 = 1;
_root.saveGame();
Symbol 694 MovieClip Frame 13
_root.unlockMagician();
Symbol 694 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 703 MovieClip Frame 1
_root.unlock6 = 1;
_root.saveGame();
Symbol 703 MovieClip Frame 13
_root.unlockCowboy();
Symbol 703 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 712 MovieClip Frame 1
_root.unlock7 = 1;
_root.saveGame();
Symbol 712 MovieClip Frame 13
_root.unlockQuitter();
Symbol 712 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 721 MovieClip Frame 1
_root.unlock8 = 1;
_root.saveGame();
Symbol 721 MovieClip Frame 13
_root.unlockPerfectionist();
Symbol 721 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 730 MovieClip Frame 1
_root.unlock9 = 1;
_root.saveGame();
Symbol 730 MovieClip Frame 13
_root.unlockFirstHiscore();
Symbol 730 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 739 MovieClip Frame 1
_root.unlock10 = 1;
_root.saveGame();
Symbol 739 MovieClip Frame 13
_root.unlockBeatingyourown();
Symbol 739 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 748 MovieClip Frame 1
_root.unlock11 = 1;
_root.saveGame();
Symbol 748 MovieClip Frame 13
_root.unlockTouchtheSky();
Symbol 748 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 757 MovieClip Frame 1
_root.unlock12 = 1;
_root.saveGame();
Symbol 757 MovieClip Frame 13
_root.unlockStackBurner();
Symbol 757 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 766 MovieClip Frame 1
_root.unlock13 = 1;
_root.saveGame();
Symbol 766 MovieClip Frame 13
_root.unlockFirstCap();
Symbol 766 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 775 MovieClip Frame 1
_root.unlock14 = 1;
_root.saveGame();
Symbol 775 MovieClip Frame 13
_root.unlockAchiever();
Symbol 775 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 784 MovieClip Frame 1
_root.unlock15 = 1;
_root.saveGame();
Symbol 784 MovieClip Frame 12
_root.unlockKeys();
Symbol 784 MovieClip Frame 93
stop();
_root.achieve_mc.nextFrame();
Symbol 793 MovieClip Frame 1
_root.unlock16 = 1;
_root.saveGame();
Symbol 793 MovieClip Frame 13
_root.unlockBraggingRights();
Symbol 793 MovieClip Frame 93
stop();
Symbol 794 MovieClip Frame 2
stop();