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

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

giraffe-got-game.swf

This is the info page for
Flash #125467

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


Text
Submit

Congratulations!

99 Days!

You recovered all 6 gems in

Close

World's Manliest Rituals

Continue

Score gets halved

Quit

Go!

Go!

UPGRADES SCREEN

Default

Bought

Uzi Type

$350

Shotgun

$480

Sniper

$300

Lazer

$300

Expensive

$300

S

Heal

$300

Life Up

$300

Power Up

$300

Defense Up

$300

Speed Up

$300

Double  Jump

$300

P

HATS

Remove

Remove

Description

Adventurer's Hat

Not enough money!

Game Complete!

Thank you for playing!

Wave Complete!

Strike a pose!

Never heard of upgrades???

(Click here to find out more)

(Click here to find out more)

(Click here to find out more)

(Click here to find out more)

Loading 100%

Play

Play

World's Manliest Rituals

World's Manliest Rituals

Credits

Giraffe Got Game

A Parody on Flash Games

Credits

Ari Feldman
www.flyingyogi.com

<p align="center"><font face="Funny Pages" size="22" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http:www.dopiephilippines.com"><b>Keybol</b></a></font></p><p align="center"></p>

Developed by

Graphics by

Kevin MacLeod
www.incompetech.com

Music by

How to Play

Use your keyboard to jump, move and duck.

Use mouse to aim at enemies.

Collect money and buy upgrades in the shop!

Giraffe Got Game 2010
Sponsored by Axe
Developed by Keybol
Music by Kevin MacLeod

200/200

Quit

Resume

PAUSED

Walkthrough

Quit now?

Yes

No

1

2

3

4

5

6

Upgrades Shop (SPACEBAR)

$99999

Remaining:

Score:

towerLife

Oh noes! Penguins!
Arrow keys or WASD to avoid them, and
mouse to PWN them all!

Press Spacebar to bring up the ever
requested overused Upgrades Screen.

Watch your head! Press down or S to
duck from Balloons! Yes, Balloons!

Smiley boxes! Dieeeeeee!

Achievements
As sure as death and taxes,
there will be.

Achievement!

First!!!

Another One!

Bring It On!

Where's All These
Coming From?

Ok Enough!

Hey Stop This!

Anyone?!

Ok, Very Funny.

Annoying

Please?

...

You'll Get Tired

Is This the Dozenth?

Ok, We're Done Now!

There's Still More?

Alright Stop.

Resized penguins and
bloody stick figures FTW!

Deja Vu? No it's called filler level.

This is a flash game
It doesn't have to make sense
Jumping shiny gems

Zombies for the umpteenth time!
Hoozah!

Swimming Penguins, Balloons
shooting darts and moar Zombies...
teh world is safe once again.

Let's send these Pixel Drones
to WHEN they belong.

Bring it on!

Rolling Rounds and
flying penguins from launchers!

Sniper dudes are here to obliterate
you, beware of neckshots!

Faster and stronger,
I hope you're prepared!

It's an all out war against everything
already seen and done.

Bring it on! 2

It's over 9000!

You have reached the obligatory easy
break level before the last stage!

Meet Mr. Long Lifebar...
The Boss.

ActionScript [AS1/AS2]

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();

Library Items

Symbol 1 Sound [hurtsound]
Symbol 2 Sound [jumpsound]
Symbol 3 Sound [hoversound]
Symbol 4 Sound [dynasound]
Symbol 5 Sound [crashsound]
Symbol 6 Sound [coinsound]
Symbol 7 Sound [registersound]
Symbol 8 Sound [buttonsound]
Symbol 9 Sound [bloodsplat]Used by:281 286
Symbol 10 Sound [fleshsound]Used by:418
Symbol 11 Sound [clicksound]Used by:577
Symbol 12 GraphicUsed by:31 39 109 115 121 567 573 574
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:31 567 573
Symbol 15 BitmapUsed by:16 30
Symbol 16 GraphicUses:15Used by:31 567
Symbol 17 GraphicUsed by:18 21 26 29 38 551 553 587 603 605 608 611 613
Symbol 18 MovieClipUses:17Used by:31 567 573
Symbol 19 FontUsed by:20 22 23 24 25 560 561 562 563 564 565 566 602 604 606 607 609 610 612
Symbol 20 TextUses:19Used by:21
Symbol 21 MovieClipUses:17 20Used by:31
Symbol 22 TextUses:19Used by:31
Symbol 23 EditableTextUses:19Used by:31
Symbol 24 TextUses:19Used by:31
Symbol 25 TextUses:19Used by:26
Symbol 26 MovieClipUses:17 25Used by:31 567
Symbol 27 FontUsed by:28 34 35 37 45 48 50 58 59 60 61 62 63 64 65 66 67 68 69 74 75 76 77 78 79 80 81 82 83 84 85 89 94 95 105 106 107 108 110 116 468 541 543 547 549 550 552 569 570 571 572 596 623 624 625 626 628 631 641 642 643 644 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809
Symbol 28 TextUses:27Used by:29
Symbol 29 MovieClipUses:17 28Used by:31 39 115 614
Symbol 30 GraphicUses:15Used by:31 567
Symbol 31 MovieClip [gamecomplete]Uses:12 14 16 18 21 22 23 24 26 29 30
Symbol 32 GraphicUsed by:39 109 115 121
Symbol 33 GraphicUsed by:36
Symbol 34 TextUses:27Used by:36
Symbol 35 TextUses:27Used by:36
Symbol 36 MovieClipUses:33 34 35Used by:39
Symbol 37 TextUses:27Used by:38
Symbol 38 MovieClipUses:17 37Used by:39 115
Symbol 39 MovieClip [gameOver_mc]Uses:12 32 36 38 29
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:42
Symbol 42 MovieClipUses:41Used by:109  Timeline
Symbol 43 GraphicUsed by:109
Symbol 44 GraphicUsed by:49 96
Symbol 45 TextUses:27Used by:49
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:49
Symbol 48 TextUses:27Used by:49
Symbol 49 MovieClipUses:44 45 47 48Used by:109 121 573
Symbol 50 TextUses:27Used by:109
Symbol 51 GraphicUsed by:57
Symbol 52 GraphicUsed by:57
Symbol 53 GraphicUsed by:55
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:53 54Used by:57
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:51 52 55 56Used by:109  Timeline
Symbol 58 TextUses:27Used by:109
Symbol 59 TextUses:27Used by:109
Symbol 60 TextUses:27Used by:109
Symbol 61 EditableTextUses:27Used by:109
Symbol 62 TextUses:27Used by:109
Symbol 63 EditableTextUses:27Used by:109
Symbol 64 TextUses:27Used by:109
Symbol 65 EditableTextUses:27Used by:109
Symbol 66 TextUses:27Used by:109
Symbol 67 EditableTextUses:27Used by:109
Symbol 68 TextUses:27Used by:109
Symbol 69 EditableTextUses:27Used by:109
Symbol 70 GraphicUsed by:109
Symbol 71 FontUsed by:72 87
Symbol 72 TextUses:71Used by:109  Timeline
Symbol 73 GraphicUsed by:109
Symbol 74 TextUses:27Used by:109
Symbol 75 EditableTextUses:27Used by:109
Symbol 76 TextUses:27Used by:109
Symbol 77 EditableTextUses:27Used by:109
Symbol 78 TextUses:27Used by:109
Symbol 79 EditableTextUses:27Used by:109
Symbol 80 TextUses:27Used by:109
Symbol 81 EditableTextUses:27Used by:109
Symbol 82 TextUses:27Used by:109
Symbol 83 EditableTextUses:27Used by:109
Symbol 84 TextUses:27Used by:109
Symbol 85 EditableTextUses:27Used by:109
Symbol 86 GraphicUsed by:109
Symbol 87 TextUses:71Used by:109
Symbol 88 GraphicUsed by:109
Symbol 89 TextUses:27Used by:109
Symbol 90 GraphicUsed by:92
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:90 91Used by:109
Symbol 93 GraphicUsed by:109
Symbol 94 TextUses:27Used by:96
Symbol 95 TextUses:27Used by:96
Symbol 96 MovieClipUses:44 94 95Used by:109
Symbol 97 GraphicUsed by:104
Symbol 98 GraphicUsed by:104
Symbol 99 GraphicUsed by:104
Symbol 100 GraphicUsed by:104
Symbol 101 GraphicUsed by:104
Symbol 102 GraphicUsed by:104
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:97 98 99 100 101 102 103Used by:109
Symbol 105 EditableTextUses:27Used by:109
Symbol 106 EditableTextUses:27Used by:109
Symbol 107 EditableTextUses:27Used by:109
Symbol 108 EditableTextUses:27Used by:109
Symbol 109 MovieClip [upgradesShop]Uses:12 32 42 43 49 50 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 92 93 96 104 105 106 107 108
Symbol 110 TextUses:27Used by:111
Symbol 111 MovieClipUses:110Used by:115
Symbol 112 FontUsed by:113 118 556
Symbol 113 TextUses:112Used by:115
Symbol 114 SoundUsed by:115 121
Symbol 115 MovieClip [gamecomplete_mc]Uses:12 32 111 113 38 29 114
Symbol 116 TextUses:27Used by:117
Symbol 117 MovieClipUses:116Used by:121
Symbol 118 TextUses:112Used by:121
Symbol 119 GraphicUsed by:120 588 594 595
Symbol 120 MovieClipUses:119Used by:121
Symbol 121 MovieClip [wavecomplete]Uses:12 32 49 117 118 120 114
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:122Used by:124
Symbol 124 MovieClip [shooter_mc]Uses:123
Symbol 125 GraphicUsed by:127 133
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClipUses:125 126Used by:128
Symbol 128 MovieClipUses:127Used by:129
Symbol 129 MovieClip [coin]Uses:128
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:132
Symbol 132 MovieClip [healthbar]Uses:131
Symbol 133 MovieClipUses:125Used by:145
Symbol 134 SoundUsed by:145
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:145
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClipUses:139Used by:145
Symbol 141 GraphicUsed by:145
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:144
Symbol 144 MovieClipUses:143Used by:145
Symbol 145 MovieClip [bullet]Uses:133 134 137 140 141 144
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:152
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:152
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:152
Symbol 152 MovieClip [flame_mc]Uses:147 149 151
Symbol 153 BitmapUsed by:154
Symbol 154 GraphicUses:153Used by:155
Symbol 155 MovieClipUses:154Used by:194
Symbol 156 GraphicUsed by:194
Symbol 157 GraphicUsed by:170
Symbol 158 GraphicUsed by:168
Symbol 159 GraphicUsed by:168
Symbol 160 GraphicUsed by:168
Symbol 161 GraphicUsed by:168
Symbol 162 GraphicUsed by:168
Symbol 163 GraphicUsed by:168
Symbol 164 GraphicUsed by:168
Symbol 165 GraphicUsed by:168
Symbol 166 GraphicUsed by:168
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:158 159 160 161 162 163 164 165 166 167Used by:170
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:157 168 169Used by:194
Symbol 171 MovieClipUsed by:194  Timeline
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:194  Timeline
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:194  Timeline
Symbol 176 GraphicUsed by:179
Symbol 177 GraphicUsed by:179
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:176 177 178Used by:194
Symbol 180 GraphicUsed by:194
Symbol 181 GraphicUsed by:194
Symbol 182 GraphicUsed by:194
Symbol 183 GraphicUsed by:194
Symbol 184 GraphicUsed by:194
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 MovieClipUses:186Used by:194
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClipUses:188Used by:194 476
Symbol 190 GraphicUsed by:194
Symbol 191 GraphicUsed by:194
Symbol 192 GraphicUsed by:194
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClip [mcMain_mc]Uses:155 156 170 171 173 175 179 180 181 182 183 184 187 189 190 191 192 193
Symbol 195 GraphicUsed by:256
Symbol 196 GraphicUsed by:256
Symbol 197 GraphicUsed by:256
Symbol 198 GraphicUsed by:256
Symbol 199 GraphicUsed by:256
Symbol 200 GraphicUsed by:256
Symbol 201 GraphicUsed by:256
Symbol 202 GraphicUsed by:256
Symbol 203 GraphicUsed by:256
Symbol 204 GraphicUsed by:256
Symbol 205 GraphicUsed by:256
Symbol 206 GraphicUsed by:256
Symbol 207 GraphicUsed by:256
Symbol 208 GraphicUsed by:256
Symbol 209 GraphicUsed by:256
Symbol 210 GraphicUsed by:256
Symbol 211 GraphicUsed by:256
Symbol 212 GraphicUsed by:256
Symbol 213 GraphicUsed by:256
Symbol 214 GraphicUsed by:256
Symbol 215 GraphicUsed by:256
Symbol 216 GraphicUsed by:256
Symbol 217 GraphicUsed by:256
Symbol 218 GraphicUsed by:256
Symbol 219 GraphicUsed by:256
Symbol 220 GraphicUsed by:256
Symbol 221 GraphicUsed by:256
Symbol 222 GraphicUsed by:256
Symbol 223 GraphicUsed by:256
Symbol 224 GraphicUsed by:256
Symbol 225 GraphicUsed by:256
Symbol 226 GraphicUsed by:256
Symbol 227 GraphicUsed by:256
Symbol 228 GraphicUsed by:256
Symbol 229 GraphicUsed by:256
Symbol 230 GraphicUsed by:256
Symbol 231 GraphicUsed by:256
Symbol 232 GraphicUsed by:256
Symbol 233 GraphicUsed by:256
Symbol 234 GraphicUsed by:256
Symbol 235 GraphicUsed by:256
Symbol 236 GraphicUsed by:256
Symbol 237 GraphicUsed by:256
Symbol 238 GraphicUsed by:256
Symbol 239 GraphicUsed by:256
Symbol 240 GraphicUsed by:256
Symbol 241 GraphicUsed by:256
Symbol 242 GraphicUsed by:256
Symbol 243 GraphicUsed by:256
Symbol 244 GraphicUsed by:256
Symbol 245 GraphicUsed by:256
Symbol 246 GraphicUsed by:256
Symbol 247 GraphicUsed by:256
Symbol 248 GraphicUsed by:256
Symbol 249 GraphicUsed by:256
Symbol 250 GraphicUsed by:256
Symbol 251 GraphicUsed by:256
Symbol 252 GraphicUsed by:256 268
Symbol 253 GraphicUsed by:256 268
Symbol 254 GraphicUsed by:256 268
Symbol 255 GraphicUsed by:256
Symbol 256 MovieClipUses:195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255Used by:258 301
Symbol 257 SoundUsed by:258 271 301
Symbol 258 MovieClip [enemy_mc10]Uses:256 257
Symbol 259 GraphicUsed by:268
Symbol 260 GraphicUsed by:268
Symbol 261 GraphicUsed by:268
Symbol 262 GraphicUsed by:268
Symbol 263 GraphicUsed by:268
Symbol 264 GraphicUsed by:268
Symbol 265 GraphicUsed by:268
Symbol 266 GraphicUsed by:268
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:259 260 261 262 263 264 265 266 252 253 254 267Used by:270 271
Symbol 269 SoundUsed by:270
Symbol 270 MovieClip [enemy_mc6]Uses:268 269
Symbol 271 MovieClip [enemy_mc5]Uses:268 257
Symbol 272 GraphicUsed by:280
Symbol 273 GraphicUsed by:280
Symbol 274 GraphicUsed by:280
Symbol 275 GraphicUsed by:280 285
Symbol 276 GraphicUsed by:280 285
Symbol 277 GraphicUsed by:280 285
Symbol 278 GraphicUsed by:280 285
Symbol 279 GraphicUsed by:280 285
Symbol 280 MovieClipUses:272 273 274 275 276 277 278 279Used by:281
Symbol 281 MovieClip [enemy_mc2b]Uses:280 9
Symbol 282 GraphicUsed by:285
Symbol 283 GraphicUsed by:285
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:282 283 284 275 276 277 278 279Used by:286
Symbol 286 MovieClip [enemy_mc2]Uses:285 9
Symbol 287 GraphicUsed by:290
Symbol 288 GraphicUsed by:290
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClipUses:287 288 289Used by:292
Symbol 291 SoundUsed by:292
Symbol 292 MovieClip [enemy_mc7b]Uses:290 291
Symbol 293 GraphicUsed by:298
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:298
Symbol 296 GraphicUsed by:298
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClipUses:293 295 296 297Used by:299
Symbol 299 MovieClipUses:298Used by:300
Symbol 300 MovieClip [enemy_mc7]Uses:299
Symbol 301 MovieClip [enemy_mc9]Uses:256 257
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClipUses:302Used by:324
Symbol 304 GraphicUsed by:305
Symbol 305 MovieClipUses:304Used by:324
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:306Used by:324
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308Used by:324
Symbol 310 GraphicUsed by:311
Symbol 311 MovieClipUses:310Used by:324
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:324
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:324
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClipUses:316Used by:324
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:324
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:320Used by:324
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322Used by:324
Symbol 324 MovieClipUses:303 305 307 309 311 313 315 317 319 321 323Used by:326
Symbol 325 SoundUsed by:326
Symbol 326 MovieClip [enemy_mc8]Uses:324 325
Symbol 327 GraphicUsed by:329
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:327 328Used by:330
Symbol 330 MovieClip [enemy_mc3b]Uses:329
Symbol 331 BitmapUsed by:332 334 335 336 338 340 341
Symbol 332 GraphicUses:331Used by:343
Symbol 333 GraphicUsed by:343
Symbol 334 GraphicUses:331Used by:343
Symbol 335 GraphicUses:331Used by:343
Symbol 336 GraphicUses:331Used by:343
Symbol 337 GraphicUsed by:343
Symbol 338 GraphicUses:331Used by:343
Symbol 339 GraphicUsed by:343
Symbol 340 GraphicUses:331Used by:343
Symbol 341 GraphicUses:331Used by:342
Symbol 342 MovieClipUses:341Used by:343
Symbol 343 MovieClipUses:332 333 334 335 336 337 338 339 340 342Used by:344
Symbol 344 MovieClip [enemy_mc3]Uses:343
Symbol 345 GraphicUsed by:385
Symbol 346 GraphicUsed by:385 416
Symbol 347 GraphicUsed by:385
Symbol 348 GraphicUsed by:385
Symbol 349 GraphicUsed by:385 416
Symbol 350 GraphicUsed by:385
Symbol 351 GraphicUsed by:385
Symbol 352 GraphicUsed by:385
Symbol 353 GraphicUsed by:385
Symbol 354 GraphicUsed by:385
Symbol 355 GraphicUsed by:385
Symbol 356 GraphicUsed by:385
Symbol 357 GraphicUsed by:385
Symbol 358 GraphicUsed by:385
Symbol 359 GraphicUsed by:385
Symbol 360 GraphicUsed by:385
Symbol 361 GraphicUsed by:385
Symbol 362 GraphicUsed by:385
Symbol 363 GraphicUsed by:385
Symbol 364 GraphicUsed by:385
Symbol 365 GraphicUsed by:385 416
Symbol 366 GraphicUsed by:385
Symbol 367 GraphicUsed by:385
Symbol 368 GraphicUsed by:385
Symbol 369 GraphicUsed by:385
Symbol 370 GraphicUsed by:385
Symbol 371 GraphicUsed by:385
Symbol 372 GraphicUsed by:385
Symbol 373 GraphicUsed by:385
Symbol 374 GraphicUsed by:385
Symbol 375 GraphicUsed by:385
Symbol 376 GraphicUsed by:385
Symbol 377 GraphicUsed by:385
Symbol 378 GraphicUsed by:385
Symbol 379 GraphicUsed by:385
Symbol 380 GraphicUsed by:385
Symbol 381 GraphicUsed by:382
Symbol 382 MovieClipUses:381Used by:385 416
Symbol 383 GraphicUsed by:385
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 382 383 384Used by:386 418
Symbol 386 MovieClip [enemy_mc4]Uses:385
Symbol 387 GraphicUsed by:416
Symbol 388 GraphicUsed by:416
Symbol 389 GraphicUsed by:416
Symbol 390 GraphicUsed by:416
Symbol 391 GraphicUsed by:416
Symbol 392 GraphicUsed by:416
Symbol 393 GraphicUsed by:416
Symbol 394 GraphicUsed by:416
Symbol 395 GraphicUsed by:416
Symbol 396 GraphicUsed by:416
Symbol 397 GraphicUsed by:416
Symbol 398 GraphicUsed by:416
Symbol 399 GraphicUsed by:416
Symbol 400 GraphicUsed by:416
Symbol 401 GraphicUsed by:416
Symbol 402 GraphicUsed by:416
Symbol 403 GraphicUsed by:416
Symbol 404 GraphicUsed by:416
Symbol 405 GraphicUsed by:416
Symbol 406 GraphicUsed by:416
Symbol 407 GraphicUsed by:416
Symbol 408 GraphicUsed by:416
Symbol 409 GraphicUsed by:416
Symbol 410 GraphicUsed by:416
Symbol 411 GraphicUsed by:416
Symbol 412 GraphicUsed by:416
Symbol 413 GraphicUsed by:416
Symbol 414 GraphicUsed by:416
Symbol 415 GraphicUsed by:416
Symbol 416 MovieClipUses:387 346 388 389 349 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 365 406 407 408 409 410 411 412 413 414 415 382Used by:417
Symbol 417 MovieClip [enemy_mc1b]Uses:416
Symbol 418 MovieClip [enemy_mc1]Uses:385 10
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:435
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:435
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:435
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:435
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:435
Symbol 429 BitmapUsed by:430
Symbol 430 GraphicUses:429Used by:435
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:435
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:435
Symbol 435 MovieClip [blood_mc]Uses:420 422 424 426 428 430 432 434
Symbol 436 BitmapUsed by:437 438
Symbol 437 GraphicUses:436Used by:446
Symbol 438 GraphicUses:436Used by:446
Symbol 439 BitmapUsed by:440 441
Symbol 440 GraphicUses:439Used by:446
Symbol 441 GraphicUses:439Used by:446
Symbol 442 BitmapUsed by:443
Symbol 443 GraphicUses:442Used by:446
Symbol 444 BitmapUsed by:445
Symbol 445 GraphicUses:444Used by:446
Symbol 446 MovieClip [blood_mc2]Uses:437 438 440 441 443 445
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:455
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:455
Symbol 451 BitmapUsed by:452
Symbol 452 GraphicUses:451Used by:455
Symbol 453 BitmapUsed by:454
Symbol 454 GraphicUses:453Used by:455
Symbol 455 MovieClipUses:448 450 452 454Used by:456
Symbol 456 MovieClip [gem_mc]Uses:455
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClip [poo_mc3]Uses:457
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:461
Symbol 461 MovieClip [poo_mc2]Uses:460
Symbol 462 GraphicUsed by:464
Symbol 463 GraphicUsed by:464
Symbol 464 MovieClip [poo_mc]Uses:462 463
Symbol 465 GraphicUsed by:466
Symbol 466 MovieClipUses:465Used by:467
Symbol 467 MovieClip [pipeline]Uses:466
Symbol 468 EditableTextUses:27Used by:469
Symbol 469 MovieClip [notbuy_mc]Uses:468Used by:Timeline
Symbol 470 BitmapUsed by:471
Symbol 471 GraphicUses:470Used by:539
Symbol 472 GraphicUsed by:474
Symbol 473 GraphicUsed by:474
Symbol 474 MovieClipUses:472 473Used by:476
Symbol 475 GraphicUsed by:476
Symbol 476 MovieClipUses:189 474 475Used by:539
Symbol 477 BitmapUsed by:478 479
Symbol 478 GraphicUses:477Used by:480
Symbol 479 GraphicUses:477Used by:480
Symbol 480 MovieClipUses:478 479Used by:539  Timeline
Symbol 481 SoundUsed by:539
Symbol 482 BitmapUsed by:483 497 499 501 503 505 507
Symbol 483 GraphicUses:482Used by:484
Symbol 484 MovieClipUses:483Used by:539
Symbol 485 SoundUsed by:539
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:488
Symbol 488 MovieClipUses:487Used by:539
Symbol 489 BitmapUsed by:490
Symbol 490 GraphicUses:489Used by:491
Symbol 491 MovieClipUses:490Used by:539
Symbol 492 BitmapUsed by:493
Symbol 493 GraphicUses:492Used by:496
Symbol 494 BitmapUsed by:495 512 514 516 518
Symbol 495 GraphicUses:494Used by:496
Symbol 496 MovieClipUses:493 495Used by:539
Symbol 497 GraphicUses:482Used by:498
Symbol 498 MovieClipUses:497Used by:539
Symbol 499 GraphicUses:482Used by:500
Symbol 500 MovieClipUses:499Used by:539
Symbol 501 GraphicUses:482Used by:502
Symbol 502 MovieClipUses:501Used by:539
Symbol 503 GraphicUses:482Used by:504
Symbol 504 MovieClipUses:503Used by:539
Symbol 505 GraphicUses:482Used by:506
Symbol 506 MovieClipUses:505Used by:539
Symbol 507 GraphicUses:482Used by:508
Symbol 508 MovieClipUses:507Used by:539
Symbol 509 BitmapUsed by:510 523 525 527 531
Symbol 510 GraphicUses:509Used by:511
Symbol 511 MovieClipUses:510Used by:539
Symbol 512 GraphicUses:494Used by:513
Symbol 513 MovieClipUses:512Used by:539
Symbol 514 GraphicUses:494Used by:515
Symbol 515 MovieClipUses:514Used by:539
Symbol 516 GraphicUses:494Used by:517
Symbol 517 MovieClipUses:516Used by:539
Symbol 518 GraphicUses:494Used by:519
Symbol 519 MovieClipUses:518Used by:539
Symbol 520 BitmapUsed by:521
Symbol 521 GraphicUses:520Used by:522
Symbol 522 MovieClipUses:521Used by:539
Symbol 523 GraphicUses:509Used by:524
Symbol 524 MovieClipUses:523Used by:539
Symbol 525 GraphicUses:509Used by:526 530
Symbol 526 MovieClipUses:525Used by:539
Symbol 527 GraphicUses:509Used by:528 529
Symbol 528 MovieClipUses:527Used by:539
Symbol 529 MovieClipUses:527Used by:539
Symbol 530 MovieClipUses:525Used by:539
Symbol 531 GraphicUses:509Used by:532
Symbol 532 MovieClipUses:531Used by:539
Symbol 533 FontUsed by:534 535 536 537
Symbol 534 EditableTextUses:533Used by:538
Symbol 535 EditableTextUses:533Used by:538
Symbol 536 EditableTextUses:533Used by:538
Symbol 537 EditableTextUses:533Used by:538
Symbol 538 MovieClipUses:534 535 536 537Used by:539
Symbol 539 MovieClipUses:471 476 480 481 484 485 488 491 496 498 500 502 504 506 508 511 513 515 517 519 522 524 526 528 529 530 532 538Used by:Timeline
Symbol 540 GraphicUsed by:Timeline
Symbol 541 EditableTextUses:27Used by:Timeline
Symbol 542 GraphicUsed by:544 548
Symbol 543 TextUses:27Used by:544
Symbol 544 MovieClipUses:542 543Used by:Timeline
Symbol 545 Sound [bgsound]Used by:546
Symbol 546 MovieClipUses:545Used by:Timeline
Symbol 547 TextUses:27Used by:548
Symbol 548 MovieClipUses:542 547Used by:Timeline
Symbol 549 TextUses:27Used by:551
Symbol 550 TextUses:27Used by:551
Symbol 551 MovieClipUses:17 549 550Used by:Timeline
Symbol 552 TextUses:27Used by:553
Symbol 553 MovieClipUses:17 552Used by:Timeline
Symbol 554 GraphicUsed by:555
Symbol 555 MovieClipUses:554Used by:Timeline
Symbol 556 TextUses:112Used by:Timeline
Symbol 557 GraphicUsed by:Timeline
Symbol 558 FontUsed by:559 576
Symbol 559 TextUses:558Used by:Timeline
Symbol 560 TextUses:19Used by:567
Symbol 561 TextUses:19Used by:567
Symbol 562 EditableTextUses:19Used by:567
Symbol 563 TextUses:19Used by:567
Symbol 564 TextUses:19Used by:567
Symbol 565 TextUses:19Used by:567
Symbol 566 TextUses:19Used by:567
Symbol 567 MovieClipUses:12 14 16 18 560 26 561 562 563 564 565 566 30Used by:Timeline
Symbol 568 GraphicUsed by:573
Symbol 569 TextUses:27Used by:573
Symbol 570 TextUses:27Used by:573
Symbol 571 TextUses:27Used by:573
Symbol 572 TextUses:27Used by:573
Symbol 573 MovieClipUses:12 568 18 49 569 570 571 572 14Used by:Timeline
Symbol 574 MovieClipUses:12Used by:577
Symbol 575 GraphicUsed by:577
Symbol 576 TextUses:558Used by:577
Symbol 577 MovieClipUses:574 575 576 11Used by:Timeline
Symbol 578 GraphicUsed by:Timeline
Symbol 579 GraphicUsed by:Timeline
Symbol 580 GraphicUsed by:581
Symbol 581 MovieClipUses:580Used by:582
Symbol 582 MovieClipUses:581Used by:586
Symbol 583 GraphicUsed by:584
Symbol 584 MovieClipUses:583Used by:585
Symbol 585 MovieClipUses:584Used by:586
Symbol 586 MovieClipUses:582 585Used by:Timeline
Symbol 587 MovieClipUses:17Used by:Timeline
Symbol 588 MovieClipUses:119Used by:Timeline
Symbol 589 BitmapUsed by:590
Symbol 590 GraphicUses:589Used by:591
Symbol 591 MovieClipUses:590Used by:Timeline
Symbol 592 GraphicUsed by:595
Symbol 593 GraphicUsed by:594
Symbol 594 MovieClipUses:593 119Used by:595
Symbol 595 MovieClipUses:592 119 594Used by:Timeline
Symbol 596 EditableTextUses:27Used by:Timeline
Symbol 597 BitmapUsed by:598 599
Symbol 598 GraphicUses:597Used by:600
Symbol 599 GraphicUses:597Used by:600
Symbol 600 MovieClipUses:598 599Used by:Timeline
Symbol 601 GraphicUsed by:614
Symbol 602 TextUses:19Used by:603
Symbol 603 MovieClipUses:17 602Used by:614
Symbol 604 TextUses:19Used by:605
Symbol 605 MovieClipUses:17 604Used by:614
Symbol 606 TextUses:19Used by:614
Symbol 607 TextUses:19Used by:608
Symbol 608 MovieClipUses:17 607Used by:614
Symbol 609 TextUses:19Used by:614
Symbol 610 TextUses:19Used by:611
Symbol 611 MovieClipUses:17 610Used by:614
Symbol 612 TextUses:19Used by:613
Symbol 613 MovieClipUses:612 17Used by:614
Symbol 614 MovieClipUses:601 603 29 605 606 608 609 611 613Used by:Timeline
Symbol 615 FontUsed by:616 617 618 619 620 621
Symbol 616 TextUses:615Used by:622
Symbol 617 TextUses:615Used by:622
Symbol 618 TextUses:615Used by:622
Symbol 619 TextUses:615Used by:622
Symbol 620 TextUses:615Used by:622
Symbol 621 TextUses:615Used by:622
Symbol 622 MovieClipUses:616 617 618 619 620 621Used by:Timeline
Symbol 623 TextUses:27Used by:Timeline
Symbol 624 EditableTextUses:27Used by:627
Symbol 625 EditableTextUses:27Used by:627
Symbol 626 EditableTextUses:27Used by:627
Symbol 627 MovieClipUses:624 625 626Used by:Timeline
Symbol 628 EditableTextUses:27Used by:Timeline
Symbol 629 GraphicUsed by:Timeline
Symbol 630 GraphicUsed by:Timeline
Symbol 631 TextUses:27Used by:Timeline
Symbol 632 GraphicUsed by:638
Symbol 633 GraphicUsed by:638
Symbol 634 GraphicUsed by:638
Symbol 635 GraphicUsed by:638
Symbol 636 GraphicUsed by:638
Symbol 637 GraphicUsed by:638
Symbol 638 MovieClipUses:632 633 634 635 636 637Used by:Timeline
Symbol 639 MovieClipUsed by:Timeline
Symbol 640 MovieClipUsed by:Timeline
Symbol 641 TextUses:27Used by:Timeline
Symbol 642 TextUses:27Used by:Timeline
Symbol 643 TextUses:27Used by:Timeline
Symbol 644 TextUses:27Used by:Timeline
Symbol 645 GraphicUsed by:794
Symbol 646 FontUsed by:647 649 659 668 677 686 695 704 713 722 731 740 749 758 767 776 785
Symbol 647 TextUses:646Used by:658 667 676 685 694 703 712 721 730 739 748 757 766 775 784 793 794
Symbol 648 GraphicUsed by:658 667 676 685 694 703 712 721 730 739 748 757 766 775 784 793
Symbol 649 TextUses:646Used by:658
Symbol 650 GraphicUsed by:658
Symbol 651 GraphicUsed by:658 667 676 685 694 703 712 721 730 739 748 757 766 775 784 793
Symbol 652 GraphicUsed by:658
Symbol 653 GraphicUsed by:658
Symbol 654 GraphicUsed by:658
Symbol 655 GraphicUsed by:658
Symbol 656 GraphicUsed by:658
Symbol 657 GraphicUsed by:658
Symbol 658 MovieClipUses:648 649 650 647 651 652 653 654 655 656 657Used by:794
Symbol 659 TextUses:646Used by:667
Symbol 660 GraphicUsed by:667
Symbol 661 GraphicUsed by:667
Symbol 662 GraphicUsed by:667
Symbol 663 GraphicUsed by:667
Symbol 664 GraphicUsed by:667
Symbol 665 GraphicUsed by:667
Symbol 666 GraphicUsed by:667
Symbol 667 MovieClipUses:648 659 660 647 651 661 662 663 664 665 666Used by:794
Symbol 668 TextUses:646Used by:676
Symbol 669 GraphicUsed by:676
Symbol 670 GraphicUsed by:676
Symbol 671 GraphicUsed by:676
Symbol 672 GraphicUsed by:676
Symbol 673 GraphicUsed by:676
Symbol 674 GraphicUsed by:676
Symbol 675 GraphicUsed by:676
Symbol 676 MovieClipUses:648 668 669 647 651 670 671 672 673 674 675Used by:794
Symbol 677 TextUses:646Used by:685
Symbol 678 GraphicUsed by:685
Symbol 679 GraphicUsed by:685
Symbol 680 GraphicUsed by:685
Symbol 681 GraphicUsed by:685
Symbol 682 GraphicUsed by:685
Symbol 683 GraphicUsed by:685
Symbol 684 GraphicUsed by:685
Symbol 685 MovieClipUses:648 677 678 647 651 679 680 681 682 683 684Used by:794
Symbol 686 TextUses:646Used by:694
Symbol 687 GraphicUsed by:694
Symbol 688 GraphicUsed by:694
Symbol 689 GraphicUsed by:694
Symbol 690 GraphicUsed by:694
Symbol 691 GraphicUsed by:694
Symbol 692 GraphicUsed by:694
Symbol 693 GraphicUsed by:694
Symbol 694 MovieClipUses:648 686 687 647 651 688 689 690 691 692 693Used by:794
Symbol 695 TextUses:646Used by:703
Symbol 696 GraphicUsed by:703
Symbol 697 GraphicUsed by:703
Symbol 698 GraphicUsed by:703
Symbol 699 GraphicUsed by:703
Symbol 700 GraphicUsed by:703
Symbol 701 GraphicUsed by:703
Symbol 702 GraphicUsed by:703
Symbol 703 MovieClipUses:648 695 696 647 651 697 698 699 700 701 702Used by:794
Symbol 704 TextUses:646Used by:712
Symbol 705 GraphicUsed by:712
Symbol 706 GraphicUsed by:712
Symbol 707 GraphicUsed by:712
Symbol 708 GraphicUsed by:712
Symbol 709 GraphicUsed by:712
Symbol 710 GraphicUsed by:712
Symbol 711 GraphicUsed by:712
Symbol 712 MovieClipUses:648 704 705 647 651 706 707 708 709 710 711Used by:794
Symbol 713 TextUses:646Used by:721
Symbol 714 GraphicUsed by:721
Symbol 715 GraphicUsed by:721
Symbol 716 GraphicUsed by:721
Symbol 717 GraphicUsed by:721
Symbol 718 GraphicUsed by:721
Symbol 719 GraphicUsed by:721
Symbol 720 GraphicUsed by:721
Symbol 721 MovieClipUses:648 713 714 647 651 715 716 717 718 719 720Used by:794
Symbol 722 TextUses:646Used by:730
Symbol 723 GraphicUsed by:730
Symbol 724 GraphicUsed by:730
Symbol 725 GraphicUsed by:730
Symbol 726 GraphicUsed by:730
Symbol 727 GraphicUsed by:730
Symbol 728 GraphicUsed by:730
Symbol 729 GraphicUsed by:730
Symbol 730 MovieClipUses:648 722 723 647 651 724 725 726 727 728 729Used by:794
Symbol 731 TextUses:646Used by:739
Symbol 732 GraphicUsed by:739
Symbol 733 GraphicUsed by:739
Symbol 734 GraphicUsed by:739
Symbol 735 GraphicUsed by:739
Symbol 736 GraphicUsed by:739
Symbol 737 GraphicUsed by:739
Symbol 738 GraphicUsed by:739
Symbol 739 MovieClipUses:648 731 732 647 651 733 734 735 736 737 738Used by:794
Symbol 740 TextUses:646Used by:748
Symbol 741 GraphicUsed by:748
Symbol 742 GraphicUsed by:748
Symbol 743 GraphicUsed by:748
Symbol 744 GraphicUsed by:748
Symbol 745 GraphicUsed by:748
Symbol 746 GraphicUsed by:748
Symbol 747 GraphicUsed by:748
Symbol 748 MovieClipUses:648 740 741 647 651 742 743 744 745 746 747Used by:794
Symbol 749 TextUses:646Used by:757
Symbol 750 GraphicUsed by:757
Symbol 751 GraphicUsed by:757
Symbol 752 GraphicUsed by:757
Symbol 753 GraphicUsed by:757
Symbol 754 GraphicUsed by:757
Symbol 755 GraphicUsed by:757
Symbol 756 GraphicUsed by:757
Symbol 757 MovieClipUses:648 749 750 647 651 751 752 753 754 755 756Used by:794
Symbol 758 TextUses:646Used by:766
Symbol 759 GraphicUsed by:766
Symbol 760 GraphicUsed by:766
Symbol 761 GraphicUsed by:766
Symbol 762 GraphicUsed by:766
Symbol 763 GraphicUsed by:766
Symbol 764 GraphicUsed by:766
Symbol 765 GraphicUsed by:766
Symbol 766 MovieClipUses:648 758 759 647 651 760 761 762 763 764 765Used by:794
Symbol 767 TextUses:646Used by:775
Symbol 768 GraphicUsed by:775
Symbol 769 GraphicUsed by:775
Symbol 770 GraphicUsed by:775
Symbol 771 GraphicUsed by:775
Symbol 772 GraphicUsed by:775
Symbol 773 GraphicUsed by:775
Symbol 774 GraphicUsed by:775
Symbol 775 MovieClipUses:648 767 768 647 651 769 770 771 772 773 774Used by:794
Symbol 776 TextUses:646Used by:784
Symbol 777 GraphicUsed by:784
Symbol 778 GraphicUsed by:784
Symbol 779 GraphicUsed by:784
Symbol 780 GraphicUsed by:784
Symbol 781 GraphicUsed by:784
Symbol 782 GraphicUsed by:784
Symbol 783 GraphicUsed by:784
Symbol 784 MovieClipUses:648 776 777 647 651 778 779 780 781 782 783Used by:794
Symbol 785 TextUses:646Used by:793
Symbol 786 GraphicUsed by:793
Symbol 787 GraphicUsed by:793
Symbol 788 GraphicUsed by:793
Symbol 789 GraphicUsed by:793
Symbol 790 GraphicUsed by:793
Symbol 791 GraphicUsed by:793
Symbol 792 GraphicUsed by:793
Symbol 793 MovieClipUses:648 785 786 647 651 787 788 789 790 791 792Used by:794
Symbol 794 MovieClipUses:645 647 658 667 676 685 694 703 712 721 730 739 748 757 766 775 784 793Used by:Timeline
Symbol 795 TextUses:27Used by:Timeline
Symbol 796 TextUses:27Used by:Timeline
Symbol 797 TextUses:27Used by:Timeline
Symbol 798 TextUses:27Used by:Timeline
Symbol 799 TextUses:27Used by:Timeline
Symbol 800 TextUses:27Used by:Timeline
Symbol 801 TextUses:27Used by:Timeline
Symbol 802 TextUses:27Used by:Timeline
Symbol 803 TextUses:27Used by:Timeline
Symbol 804 TextUses:27Used by:Timeline
Symbol 805 TextUses:27Used by:Timeline
Symbol 806 TextUses:27Used by:Timeline
Symbol 807 TextUses:27Used by:Timeline
Symbol 808 TextUses:27Used by:Timeline
Symbol 809 TextUses:27Used by:Timeline

Instance Names

"axesp"Frame 1Symbol 539 MovieClip
"arm_mc"Frame 1Symbol 171 MovieClip
"hitgem"Frame 1Symbol 173 MovieClip
"loadingText"Frame 1Symbol 541 EditableText
"loadingbox"Frame 1Symbol 544 MovieClip
"arm_mc"Frame 2Symbol 171 MovieClip
"hitgem"Frame 2Symbol 173 MovieClip
"instructions"Frame 2Symbol 567 MovieClip
"credits"Frame 2Symbol 573 MovieClip
"achieve_mc"Frame 2Symbol 577 MovieClip
"lvlHolder"Frame 3Symbol 586 MovieClip
"wall3"Frame 3Symbol 587 MovieClip
"wall1"Frame 3Symbol 588 MovieClip
"wall2"Frame 3Symbol 588 MovieClip
"ground"Frame 3Symbol 588 MovieClip
"moneycounter"Frame 3Symbol 591 MovieClip
"life_mc"Frame 3Symbol 595 MovieClip
"macLife"Frame 3Symbol 596 EditableText
"Btn_Mute"Frame 3Symbol 600 MovieClip
"pause_mc"Frame 3Symbol 614 MovieClip
"notYet_mc"Frame 3Symbol 469 MovieClip [notbuy_mc]
"moneycounter2"Frame 3Symbol 591 MovieClip
"coinsglow"Frame 3Symbol 627 MovieClip
"macWave"Frame 3Symbol 628 EditableText
"highlighter"Frame 3Symbol 638 MovieClip
"player_mc"Frame 3Symbol 639 MovieClip
"shaker"Frame 3Symbol 640 MovieClip
"achieve_mc"Frame 7Symbol 794 MovieClip
"submitbtn"Symbol 31 MovieClip [gamecomplete] Frame 13Symbol 21 MovieClip
"dayText"Symbol 31 MovieClip [gamecomplete] Frame 13Symbol 23 EditableText
"close_btn"Symbol 31 MovieClip [gamecomplete] Frame 13Symbol 26 MovieClip
"continue_btn"Symbol 39 MovieClip [gameOver_mc] Frame 52Symbol 36 MovieClip
"quitbtn"Symbol 39 MovieClip [gameOver_mc] Frame 52Symbol 38 MovieClip
"next_btn"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 49 MovieClip
"btn1"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"btn2"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price2"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 61 EditableText
"btn3"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price3"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 63 EditableText
"btn4"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price4"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 65 EditableText
"btn5"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price5"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 67 EditableText
"btn6"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price6"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 69 EditableText
"btn7"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price7"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 75 EditableText
"btn8"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price8"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 77 EditableText
"btn9"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price9"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 79 EditableText
"btn10"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price10"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 81 EditableText
"btn11"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price11"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 83 EditableText
"btn12"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 57 MovieClip
"price12"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 85 EditableText
"hat1"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat2"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat3"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat4"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat5"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat6"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat7"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat8"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat9"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"hat10"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 92 MovieClip
"macDesc"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 105 EditableText
"macName"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 106 EditableText
"macMessage"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 107 EditableText
"macLevel"Symbol 109 MovieClip [upgradesShop] Frame 13Symbol 108 EditableText
"quitbtn"Symbol 115 MovieClip [gamecomplete_mc] Frame 41Symbol 38 MovieClip
"next_btn"Symbol 121 MovieClip [wavecomplete] Frame 41Symbol 49 MovieClip
"bar_mc"Symbol 132 MovieClip [healthbar] Frame 1Symbol 131 MovieClip
"bar_mc"Symbol 132 MovieClip [healthbar] Frame 1Symbol 131 MovieClip
"hat_mc"Symbol 170 MovieClip Frame 1Symbol 168 MovieClip
"standfrog"Symbol 194 MovieClip [mcMain_mc] Frame 1Symbol 155 MovieClip
"head_mc"Symbol 194 MovieClip [mcMain_mc] Frame 1Symbol 170 MovieClip
"arm_mc"Symbol 194 MovieClip [mcMain_mc] Frame 1Symbol 171 MovieClip
"hitgem"Symbol 194 MovieClip [mcMain_mc] Frame 1Symbol 173 MovieClip
"runner"Symbol 194 MovieClip [mcMain_mc] Frame 3Symbol 179 MovieClip
"hitgem"Symbol 194 MovieClip [mcMain_mc] Frame 13Symbol 173 MovieClip
"sniper"Symbol 258 MovieClip [enemy_mc10] Frame 1Symbol 256 MovieClip
"hangglider"Symbol 270 MovieClip [enemy_mc6] Frame 1Symbol 268 MovieClip
"hangglider"Symbol 271 MovieClip [enemy_mc5] Frame 1Symbol 268 MovieClip
"balloon"Symbol 281 MovieClip [enemy_mc2b] Frame 1Symbol 280 MovieClip
"balloon"Symbol 286 MovieClip [enemy_mc2] Frame 1Symbol 285 MovieClip
"pixelbot"Symbol 292 MovieClip [enemy_mc7b] Frame 1Symbol 290 MovieClip
"gem"Symbol 300 MovieClip [enemy_mc7] Frame 1Symbol 299 MovieClip
"sniper"Symbol 301 MovieClip [enemy_mc9] Frame 1Symbol 256 MovieClip
"zombee"Symbol 326 MovieClip [enemy_mc8] Frame 1Symbol 324 MovieClip
"circle"Symbol 330 MovieClip [enemy_mc3b] Frame 1Symbol 329 MovieClip
"rollcube"Symbol 344 MovieClip [enemy_mc3] Frame 1Symbol 343 MovieClip
"penguin"Symbol 386 MovieClip [enemy_mc4] Frame 1Symbol 385 MovieClip
"penguin"Symbol 417 MovieClip [enemy_mc1b] Frame 1Symbol 416 MovieClip
"penguin"Symbol 418 MovieClip [enemy_mc1] Frame 1Symbol 385 MovieClip
"txtMsg"Symbol 469 MovieClip [notbuy_mc] Frame 2Symbol 468 EditableText
"close_btn"Symbol 567 MovieClip Frame 14Symbol 26 MovieClip
"next_btn"Symbol 573 MovieClip Frame 14Symbol 49 MovieClip
"mcBlock1"Symbol 582 MovieClip Frame 1Symbol 581 MovieClip
"mcBlock2"Symbol 582 MovieClip Frame 1Symbol 581 MovieClip
"mcBlock1"Symbol 582 MovieClip Frame 1Symbol 581 MovieClip
"Bumper1"Symbol 585 MovieClip Frame 1Symbol 584 MovieClip
"Bumper2"Symbol 585 MovieClip Frame 1Symbol 584 MovieClip
"blockHolder"Symbol 586 MovieClip Frame 1Symbol 582 MovieClip
"bumperHolder"Symbol 586 MovieClip Frame 1Symbol 585 MovieClip
"bar_mc"Symbol 595 MovieClip Frame 1Symbol 594 MovieClip
"quitbtn"Symbol 614 MovieClip Frame 2Symbol 603 MovieClip
"moregames"Symbol 614 MovieClip Frame 2Symbol 29 MovieClip
"unpause"Symbol 614 MovieClip Frame 2Symbol 605 MovieClip
"nobtn"Symbol 614 MovieClip Frame 3Symbol 613 MovieClip
"CoinTxt"Symbol 627 MovieClip Frame 1Symbol 624 EditableText
"macRem"Symbol 627 MovieClip Frame 1Symbol 625 EditableText
"macScore"Symbol 627 MovieClip Frame 1Symbol 626 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "hurtsound"
ExportAssets (56)Timeline Frame 1Symbol 2 as "jumpsound"
ExportAssets (56)Timeline Frame 1Symbol 3 as "hoversound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "dynasound"
ExportAssets (56)Timeline Frame 1Symbol 5 as "crashsound"
ExportAssets (56)Timeline Frame 1Symbol 6 as "coinsound"
ExportAssets (56)Timeline Frame 1Symbol 7 as "registersound"
ExportAssets (56)Timeline Frame 1Symbol 8 as "buttonsound"
ExportAssets (56)Timeline Frame 1Symbol 9 as "bloodsplat"
ExportAssets (56)Timeline Frame 1Symbol 10 as "fleshsound"
ExportAssets (56)Timeline Frame 1Symbol 11 as "clicksound"
ExportAssets (56)Timeline Frame 1Symbol 31 as "gamecomplete"
ExportAssets (56)Timeline Frame 1Symbol 39 as "gameOver_mc"
ExportAssets (56)Timeline Frame 1Symbol 109 as "upgradesShop"
ExportAssets (56)Timeline Frame 1Symbol 115 as "gamecomplete_mc"
ExportAssets (56)Timeline Frame 1Symbol 121 as "wavecomplete"
ExportAssets (56)Timeline Frame 1Symbol 124 as "shooter_mc"
ExportAssets (56)Timeline Frame 1Symbol 129 as "coin"
ExportAssets (56)Timeline Frame 1Symbol 132 as "healthbar"
ExportAssets (56)Timeline Frame 1Symbol 145 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 152 as "flame_mc"
ExportAssets (56)Timeline Frame 1Symbol 194 as "mcMain_mc"
ExportAssets (56)Timeline Frame 1Symbol 258 as "enemy_mc10"
ExportAssets (56)Timeline Frame 1Symbol 270 as "enemy_mc6"
ExportAssets (56)Timeline Frame 1Symbol 271 as "enemy_mc5"
ExportAssets (56)Timeline Frame 1Symbol 281 as "enemy_mc2b"
ExportAssets (56)Timeline Frame 1Symbol 286 as "enemy_mc2"
ExportAssets (56)Timeline Frame 1Symbol 292 as "enemy_mc7b"
ExportAssets (56)Timeline Frame 1Symbol 300 as "enemy_mc7"
ExportAssets (56)Timeline Frame 1Symbol 301 as "enemy_mc9"
ExportAssets (56)Timeline Frame 1Symbol 326 as "enemy_mc8"
ExportAssets (56)Timeline Frame 1Symbol 330 as "enemy_mc3b"
ExportAssets (56)Timeline Frame 1Symbol 344 as "enemy_mc3"
ExportAssets (56)Timeline Frame 1Symbol 386 as "enemy_mc4"
ExportAssets (56)Timeline Frame 1Symbol 417 as "enemy_mc1b"
ExportAssets (56)Timeline Frame 1Symbol 418 as "enemy_mc1"
ExportAssets (56)Timeline Frame 1Symbol 435 as "blood_mc"
ExportAssets (56)Timeline Frame 1Symbol 446 as "blood_mc2"
ExportAssets (56)Timeline Frame 1Symbol 456 as "gem_mc"
ExportAssets (56)Timeline Frame 1Symbol 458 as "poo_mc3"
ExportAssets (56)Timeline Frame 1Symbol 461 as "poo_mc2"
ExportAssets (56)Timeline Frame 1Symbol 464 as "poo_mc"
ExportAssets (56)Timeline Frame 1Symbol 467 as "pipeline"
ExportAssets (56)Timeline Frame 1Symbol 469 as "notbuy_mc"
ExportAssets (56)Timeline Frame 2Symbol 545 as "bgsound"

Labels

"standing"Symbol 194 MovieClip [mcMain_mc] Frame 1
"standingleft"Symbol 194 MovieClip [mcMain_mc] Frame 2
"running"Symbol 194 MovieClip [mcMain_mc] Frame 3
"runningleft"Symbol 194 MovieClip [mcMain_mc] Frame 4
"jumpupright"Symbol 194 MovieClip [mcMain_mc] Frame 5
"jumpupleft"Symbol 194 MovieClip [mcMain_mc] Frame 6
"jumpdownright"Symbol 194 MovieClip [mcMain_mc] Frame 7
"jumpdownleft"Symbol 194 MovieClip [mcMain_mc] Frame 8
"hurted"Symbol 194 MovieClip [mcMain_mc] Frame 9
"crouchfrog"Symbol 194 MovieClip [mcMain_mc] Frame 10
"crouchfrog2"Symbol 194 MovieClip [mcMain_mc] Frame 11
"death"Symbol 194 MovieClip [mcMain_mc] Frame 12
"runningstand"Symbol 194 MovieClip [mcMain_mc] Frame 13
"death"Symbol 256 MovieClip Frame 187
"death"Symbol 290 MovieClip Frame 9
"death"Symbol 299 MovieClip Frame 25
"death"Symbol 324 MovieClip Frame 47
"death"Symbol 329 MovieClip Frame 60
"up"Symbol 538 MovieClip Frame 1
"down"Symbol 538 MovieClip Frame 7
"over"Symbol 538 MovieClip Frame 14
"out"Symbol 538 MovieClip Frame 20
"close"Symbol 577 MovieClip Frame 11




http://swfchan.com/26/125467/info.shtml
Created: 28/2 -2019 04:04:23 Last modified: 28/2 -2019 04:04:23 Server time: 05/05 -2024 11:14:03