Frame 1
btPlay.onPress = function () {
getURL ("http://www.flashninjaclan.com");
};
btPlay2.onPress = function () {
gotoAndStop (2);
};
sound123 = new Sound();
sound123.attachSound("musicmp3");
isplaying = 0;
stop();
Frame 2
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("b9f1eb79", this, 10301, true);
mcPlay1.onPress = function () {
mcTrans.play();
_root.dif = 1;
};
mcPlay2.onPress = function () {
mcTrans.play();
_root.dif = 2;
};
mcPlay3.onPress = function () {
mcTrans.play();
_root.dif = 3;
};
mcPlay4.onPress = function () {
mcTrans.play();
_root.dif = 4;
};
mcControls.onPress = function () {
_root.gotoAndStop(5);
};
mcInstructions.onPress = function () {
_root.gotoAndStop(6);
};
mcMoregames.onPress = function () {
getURL ("http://www.flashninjaclan.com");
};
soundtitle = new Sound();
soundtitle.attachSound("titlemusic");
if (isplaying == 0) {
soundtitle.stop();
soundtitle.start(0, 999999999);
isplaying = 1;
}
onEnterFrame = function () {
};
stop();
Frame 3
keyW = 87;
keyA = 65;
keyS = 83;
keyD = 68;
xspeed = 0;
yspeed = 0;
quitcount = 0;
maxspeed = 6;
increasespeed = 0.4;
decreasemultiplier = 0.85;
playerHealth = 100;
bulletSpeed = 11;
bulletTimer = 6;
bulletsize = 0.5;
if (dif == 1) {
playerHealth = 250;
bulletSpeed = 13;
bulletTimer = 5;
bulletsize = 0.9;
}
if (dif == 2) {
playerHealth = 100;
bulletSpeed = 11;
bulletTimer = 6;
bulletsize = 0.7;
}
if (dif == 3) {
playerHealth = 50;
bulletSpeed = 9;
bulletTimer = 9;
bulletsize = 0.6;
}
if (dif == 4) {
playerHealth = 100;
bulletSpeed = 12;
bulletTimer = 7;
bulletsize = 0.8;
}
firetimer = 0;
firing = 0;
bTimer = 0;
score = 0;
hint = "";
soundtitle.stop();
sound123.start(0, 9999999999);
_root.createEmptyMovieClip("baddy", 10);
baddyCount = 0;
_root.createEmptyMovieClip("playerbullet", 11);
bulletCount = 0;
_root.createEmptyMovieClip("baddybullet", 12);
baddybulletCount = 0;
_root.createEmptyMovieClip("explosions", 13);
explosionCount = 0;
_root.onMouseDown = function () {
if (firetimer <= 0) {
fireBullet(3);
fireBullet(-3);
fireBullet(0);
firetimer = bulletTimer;
firing = 1;
}
};
_root.onMouseUp = function () {
firing = 0;
};
fireBullet = function (rot) {
nm = "mcBullet" + bulletCount;
playerbullet.attachMovie("Playerbullet", nm, bulletCount);
playerbullet[nm].gtd = 0;
playerbullet[nm]._x = mcPlayer._x + (Math.cos(Math.atan2(_root._ymouse - _root.mcPlayer._y, _root._xmouse - _root.mcPlayer._x)) * 15.5);
playerbullet[nm]._y = mcPlayer._y + (Math.sin(Math.atan2(_root._ymouse - _root.mcPlayer._y, _root._xmouse - _root.mcPlayer._x)) * 15.5);
playerbullet[nm]._rotation = mcPlayer._rotation;
playerbullet[nm].xspeed = Math.cos(((_root.mcPlayer._rotation + rot) * Math.PI) / 180) * bulletSpeed;
playerbullet[nm].yspeed = Math.sin(((_root.mcPlayer._rotation + rot) * Math.PI) / 180) * bulletSpeed;
playerbullet[nm]._xscale = playerbullet[nm]._xscale * _root.bulletsize;
playerbullet[nm]._yscale = playerbullet[nm]._yscale * _root.bulletsize;
playerbullet[nm].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.baddy.hitTest(this._x, this._y, true) == 1) {
this.gtd++;
}
if (this.gtd == 3) {
this.removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
bulletCount = bulletCount + 1;
};
createBaddy = function () {
nmTwo = "mcBaddy" + baddyCount;
baddy.attachMovie("Baddy1", nmTwo, baddyCount);
baddy[nmTwo]._x = random(380) + 20;
baddy[nmTwo]._y = random(380) + 20;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
this.mcMask1._alpha = 50;
} else {
this.mcMask1._alpha = 0;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion2", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 0.6;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 0.6;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.i = 0;
_root.i++;
_root.score = _root.score + 300;
this.removeMovieClip();
}
};
};
createBaddy2 = function () {
nmTwo = "mcBaddy2" + baddyCount;
baddy.attachMovie("Baddy2", nmTwo, baddyCount);
baddy[nmTwo]._x = random(320) + 50;
baddy[nmTwo]._y = random(320) + 50;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
this.mcMask2._alpha = 50;
} else {
this.mcMask2._alpha = 0;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 0.7;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 0.7;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.score = _root.score + 600;
this.removeMovieClip();
}
};
};
createBaddy3 = function () {
nmTwo = "mcBaddy3" + baddyCount;
baddy.attachMovie("Baddy3", nmTwo, baddyCount);
baddy[nmTwo]._x = random(380) + 20;
baddy[nmTwo]._y = -30;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
this.mcMask3._alpha = 50;
} else {
this.mcMask3._alpha = 0;
}
if ((_root.explosions.hitTest(this._x, this._y, true) == 1) && ((this._y > 0) == 1)) {
this.health = this.health - 1;
}
if (this.hitTest(_root.mcPlayer._x, _root.mcPlayer._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 15;
this.health = 0;
}
if (this.health <= 0) {
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 0.6;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 0.6;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.score = _root.score + 200;
this.removeMovieClip();
}
};
};
createBaddy4 = function () {
nmTwo = "mcBaddy4" + baddyCount;
baddy.attachMovie("Baddy4", nmTwo, baddyCount);
baddy[nmTwo]._x = random(220) + 100;
baddy[nmTwo]._y = random(220) + 100;
baddyCount = baddyCount + 1;
this.iii = 0;
this.iii2 = 180;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
this.mcMask4._alpha = 50;
} else {
this.mcMask4._alpha = 0;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion2", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 0.9;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 0.9;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.score = _root.score + 1000;
this.removeMovieClip();
}
};
};
createBaddy5 = function () {
nmTwo = "mcBaddy5" + baddyCount;
baddy.attachMovie("Baddy5", nmTwo, baddyCount);
baddy[nmTwo]._x = random(380) + 20;
baddy[nmTwo]._y = random(380) + 20;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion2" + _root.explosionCount;
_root.explosions.attachMovie("Explosion2", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 2;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 2;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.playerHealth = _root.playerHealth + 33;
sound1234 = new Sound();
sound1234.attachSound("healthpowerupwav");
sound1234.start();
this.removeMovieClip();
}
};
};
createBaddy6 = function () {
nmTwo = "mcBaddy6" + baddyCount;
baddy.attachMovie("Baddy6", nmTwo, baddyCount);
baddy[nmTwo]._x = random(380) + 20;
baddy[nmTwo]._y = random(380) + 20;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion2" + _root.explosionCount;
_root.explosions.attachMovie("Explosion2", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 2;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 2;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.playerHealth = _root.playerHealth + 10;
_root.bulletSpeed = _root.bulletSpeed + 2;
_root.bulletTimer = _root.bulletTimer - 1;
_root.bulletsize = _root.bulletsize + 0.15;
sound12345 = new Sound();
sound12345.attachSound("weaponpowerupwav");
sound12345.start();
this.removeMovieClip();
}
};
};
createBaddy7 = function () {
nmTwo = "mcBaddy7" + baddyCount;
baddy.attachMovie("Baddy7", nmTwo, baddyCount);
baddy[nmTwo]._x = 220;
baddy[nmTwo]._y = 220;
baddyCount = baddyCount + 1;
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion2", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 5;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 5;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = baddy[nmTwo]._x;
_root.explosions[_root.expname]._y = baddy[nmTwo]._y;
_root.explosionCount = _root.explosionCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (_root.explosions.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 2;
}
if (this.health <= 0) {
_root.expname = "mcExplosion" + _root.explosionCount;
_root.explosions.attachMovie("Explosion", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 5;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 5;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
_root.score = _root.score + 3000;
this.removeMovieClip();
}
};
};
createBaddy8 = function () {
nmTwo = "mcBaddy8" + baddyCount;
baddy.attachMovie("Baddy8", nmTwo, baddyCount);
baddy[nmTwo]._x = random(380) + 20;
baddy[nmTwo]._y = random(380) + 20;
baddyCount = baddyCount + 1;
baddy[nmTwo].onEnterFrame = function () {
if (_root.playerbullet.hitTest(this._x, this._y, true) == 1) {
this.health = this.health - 1;
}
if (this.health <= 0) {
_root.expname = "mcExplosion1" + _root.explosionCount;
_root.explosions.attachMovie("Explosion", _root.expname, _root.explosions.getNextHighestDepth());
_root.explosions[_root.expname]._xscale = _root.explosions[_root.expname]._xscale * 6;
_root.explosions[_root.expname]._yscale = _root.explosions[_root.expname]._yscale * 6;
_root.explosions[_root.expname]._rotation = random(360);
_root.explosions[_root.expname]._x = this._x;
_root.explosions[_root.expname]._y = this._y;
_root.explosionCount = _root.explosionCount + 1;
this.removeMovieClip();
}
};
};
this.onEnterFrame = function () {
score = score + 1;
mcScore.swapDepths(_root.getNextHighestDepth());
mcMessage.swapDepths(_root.getNextHighestDepth());
mcMessage.mcText.text = String(_root.hint);
if (playerHealth < 1) {
nextFrame();
}
if (bTimer == 1) {
clearInterval(b1);
b1 = setInterval(createBaddy, 1500);
_root.hint = "DESTROY EVERYTHING THAT GETS IN YOUR WAY";
}
if (bTimer == 250) {
clearInterval(b2);
b2 = setInterval(createBaddy2, 5050);
}
if (bTimer == 700) {
clearInterval(b1);
b1 = setInterval(createBaddy, 3600);
createBaddy3();
createBaddy3();
_root.hint = "WARNING: HIGHLY EXPLOSIVE";
}
if (bTimer == 1000) {
createBaddy4();
clearInterval(b4);
b4 = setInterval(createBaddy4, 9150);
_root.hint = "THESE MAY BE HARD TO HIT";
}
if (bTimer == 2100) {
clearInterval(b1);
clearInterval(b2);
clearInterval(b3);
clearInterval(b4);
clearInterval(b5);
b5 = setInterval(createBaddy3, 1500);
createBaddy5();
_root.hint = "OH NO, MORE EXPLOSIVES";
}
if (bTimer == 2900) {
createBaddy();
createBaddy();
createBaddy();
}
if (bTimer == 3100) {
clearInterval(b5);
}
if (bTimer == 3300) {
createBaddy6();
_root.hint = "A WEAPON POWERUP, NICE.";
clearInterval(b6);
clearInterval(b7);
b6 = setInterval(createBaddy, 3000);
b7 = setInterval(createBaddy3, 5000);
}
if (bTimer == 3800) {
clearInterval(b8);
b8 = setInterval(createBaddy2, 3000);
createBaddy5();
_root.hint = "GET READY FOR A BOSS";
}
if (bTimer == 4000) {
clearInterval(b6);
clearInterval(b7);
clearInterval(b8);
_root.hint = "HERE IT COMES";
}
if (bTimer == 4180) {
createBaddy8();
createBaddy8();
clearInterval(b9);
b9 = setInterval(createBaddy8, 11000);
createBaddy7();
_root.hint = "MAYBE THOSE BOMBS COULD BE OF USE";
}
if (bTimer == 4600) {
_root.hint = "BLOW UP THE BOMBS. IT MIGHT HURT HIM";
}
if (bTimer == 6300) {
clearInterval(b9);
createBaddy5();
createBaddy5();
_root.hint = "WE ARE SENDING HEALTH POWERUPS, DID YOU GET THEM?";
}
if (bTimer == 6500) {
_root.hint = "UH OH, MORE ENEMIES COMING";
clearInterval(b10);
b10 = setInterval(createBaddy4, 4000);
clearInterval(b11);
b11 = setinterval(createBaddy2, 6000);
}
if (bTimer == 7000) {
createBaddy();
createBaddy();
}
if (bTimer == 7200) {
createBaddy2();
}
if (bTimer == 7500) {
clearInterval(b10);
clearInterval(b11);
clearInterval(b12);
b12 = setInterval(createBaddy, 1510);
_root.hint = "WATCH OUT!";
}
if (bTimer == 8000) {
clearInterval(b12);
createBaddy8();
createBaddy8();
createBaddy8();
createBaddy8();
}
if (bTimer == 8300) {
createBaddy5();
createBaddy6();
clearInterval(b13);
b13 = setInterval(createBaddy2, 1000);
_root.hint = "OH NO. THIS IS THE END OF YOU";
}
if (bTimer == 8700) {
clearInterval(b13);
clearInterval(b14);
b14 = setInterval(createBaddy1, 900);
}
if (bTimer == 9400) {
createBaddy5();
createBaddy8();
_root.hint = "FINALLY, SOME HEALTH.";
}
if (bTimer == 9500) {
clearInterval(b14);
clearInterval(b15);
b15 = setInterval(createBaddy3, 800);
_root.hint = "HANG IN THERE...";
}
if (bTimer == 10000) {
clearInterval(b15);
clearInterval(b16);
createBaddy6();
_root.hint = "HERE IS A WEAPON POWERUP FOR YOU.";
}
if (bTimer == 10400) {
createBaddy7();
clearInterval(b17);
b16 = setInterval(createBaddy2, 600);
b17 = setInterval(createBaddy, 500);
_root.hint = "OH NO. THEY SENT ANOTHER!";
}
if (dif != 4) {
bTimer = bTimer + 1;
}
if ((dif == 4) && (bTimer == 0)) {
_root.hint = "SURVIVAL MODE. SURVIVE AS LONG AS YOU CAN.";
d1 = setInterval(createBaddy, 2000);
d2 = setInterval(createBaddy2, 3000);
d3 = setInterval(createBaddy3, 3200);
d4 = setInterval(createBaddy4, 5000);
bTimer = -1;
}
firetimer = firetimer - 1;
if ((firetimer <= 0) && (firing == 1)) {
fireBullet(3);
fireBullet(-3);
fireBullet(0);
firetimer = bulletTimer;
}
if ((Key.isDown(keyW) == 1) || (Key.isDown(38) == 1)) {
yspeed = yspeed + (-increasespeed);
}
if ((Key.isDown(keyA) == 1) || (Key.isDown(37) == 1)) {
xspeed = xspeed + (-increasespeed);
}
if ((Key.isDown(keyS) == 1) || (Key.isDown(40) == 1)) {
yspeed = yspeed + increasespeed;
}
if ((Key.isDown(keyD) == 1) || (Key.isDown(39) == 1)) {
xspeed = xspeed + increasespeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if ((((Key.isDown(keyW) == 0) && (Key.isDown(keyS) == 0)) && (Key.isDown(38) == 0)) && (Key.isDown(40) == 0)) {
yspeed = yspeed * decreasemultiplier;
if ((yspeed < 0.3) && (yspeed > 0)) {
yspeed = 0;
}
if ((yspeed > -0.3) && (yspeed < 0)) {
yspeed = 0;
}
}
if ((((Key.isDown(keyA) == 0) && (Key.isDown(keyD) == 0)) && (Key.isDown(37) == 0)) && (Key.isDown(39) == 0)) {
xspeed = xspeed * decreasemultiplier;
if ((xspeed < 0.3) && (xspeed > 0)) {
xspeed = 0;
}
if ((xspeed > -0.3) && (xspeed < 0)) {
xspeed = 0;
}
}
mcPlayer._x = mcPlayer._x + xspeed;
mcPlayer._y = mcPlayer._y + yspeed;
if (mcPlayer._x > 420) {
mcPlayer._x = 420;
}
if (mcPlayer._x < 0) {
mcPlayer._x = 0;
}
if (mcPlayer._y > 420) {
mcPlayer._y = 420;
}
if (mcPlayer._y < 0) {
mcPlayer._y = 0;
}
mcPlayer._rotation = Math.round((Math.atan2(_root._ymouse - mcPlayer._y, _root._xmouse - mcPlayer._x) * 180) / Math.PI);
mcTarget._x = _root._xmouse;
mcTarget._y = _root._ymouse;
Mouse.hide();
mcHealthbar._x = mcPlayer._x;
mcHealthbar._y = mcPlayer._y - 30;
mcHealthbar._xscale = playerHealth;
if (playerHealth <= 0) {
playerHealth = 0;
mcHealthbar._xscale = 0;
}
mcHealthbar.gotoAndStop(_root.playerHealth);
mcMute.swapDepths(_root.getNextHighestDepth());
mcTarget.swapDepths(_root.getNextHighestDepth());
if (Key.isDown(77) == 1) {
quitcount = quitcount + 1;
} else {
quitcount = 0;
}
if (quitcount == 60) {
_root.nextFrame();
}
if (_root.playerHealth <= 1) {
_root.mcPlayer.removeMovieClip;
}
};
stop();
Frame 4
removeMovieClip(baddy);
removeMovieClip(baddybullet);
removeMovieClip(playerbullet);
removeMovieClip(explosions);
removeMovieClip(mcMessage);
removeMovieClip(mcScore);
removeMovieClip(mcHealthbar);
removeMovieClip(mcTarget);
removeMovieClip(mcPlayer);
removeMovieClip(mcMute);
clearInterval(b1);
clearInterval(b2);
clearInterval(b3);
clearInterval(b4);
clearInterval(b5);
clearInterval(b6);
clearInterval(b7);
clearInterval(b8);
clearInterval(b9);
clearInterval(b10);
clearInterval(b11);
clearInterval(b12);
clearInterval(b13);
clearInterval(b14);
clearInterval(b15);
clearInterval(b16);
clearInterval(b17);
clearInterval(b18);
clearInterval(b19);
clearInterval(b20);
clearInterval(d1);
clearInterval(d2);
clearInterval(d3);
clearInterval(d4);
sound123.stop();
sounddeath = new Sound();
sounddeath.attachSound("deadwav");
sounddeath.setVolume(100);
sounddeath.start(0, 1);
sounddeath.setVolume(75);
sounddeath.start(0, 0);
sounddeath.setVolume(50);
sounddeath.start(0, 0);
sounddeath.setVolume(25);
sounddeath.start(0, 0);
sounddeath.setVolume(10);
sounddeath.start(0, 0);
Mouse.show();
isplaying = 0;
_root.onEnterFrame = function () {
};
mcMoregames.onPress = function () {
getURL ("http://www.flashninjaclan.com");
};
mcGameover.mcTryagain.onPress = function () {
removeMovieClip(mcScore2);
sounddeath.setVolume(100);
_root.gotoAndStop(2);
};
stop();
Frame 5
stop();
mcYes.onPress = function () {
gotoAndStop (2);
};
Frame 6
stop();
mcYes.onPress = function () {
gotoAndStop (2);
};
Symbol 15 MovieClip [Baddy1] Frame 1
baddybulletSpeed = 9.5;
this.bullettimer = 26;
fireBaddyBullet = function () {
nmThree = "mcBaddyBullet" + _root.baddybulletCount;
_root.baddybullet.attachMovie("Baddybullet2", nmThree, _root.baddybulletCount);
_root.baddybullet[nmThree]._x = _x + (Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 13.5);
_root.baddybullet[nmThree]._y = _y + (Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 13.5);
_root.baddybullet[nmThree]._rotation = _rotation;
_root.baddybullet[nmThree].xspeed = Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree].yspeed = Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree]._xscale = _root.baddybullet[nmThree]._xscale * 0.8;
_root.baddybullet[nmThree]._yscale = _root.baddybullet[nmThree]._yscale * 0.8;
_root.baddybullet[nmThree].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.mcPlayer.hitTest(this._x, this._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 2;
removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
_root.baddybulletCount = _root.baddybulletCount + 1;
};
stop();
Instance of Symbol 12 MovieClip "mcBaddy" in Symbol 15 MovieClip [Baddy1] Frame 1
onClipEvent (load) {
this._parent.health = 10;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
gotoAndStop(_parent.health + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.health + 1);
growth = growth + 0.08;
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
this._parent._rotation = 57.2957795130823 * Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x);
onEnterFrame = function () {
this._parent.bullettimer--;
if (this._parent.bullettimer == 0) {
this._parent.fireBaddyBullet();
this._parent.bullettimer = 40;
}
};
}
Symbol 17 MovieClip Frame 1
if (playok == 1) {
sound1 = new Sound();
sound1.attachSound("shootbaddywav");
sound1.start();
}
stop();
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip [Baddybullet] Frame 1
onClipEvent (load) {
playok = 0;
}
Symbol 23 MovieClip [Playerbullet] Frame 1
mcBulletMask._visible = 0;
stop();
sound1 = new Sound();
sound1.attachSound("shootplayerwav");
sound1.start();
Symbol 29 MovieClip [Baddy2] Frame 1
baddybulletSpeed = 4;
this.bullettimer = 60;
fireBaddyBullet2 = function (var1, var2) {
nmThree = "mcBaddyBullet" + _root.baddybulletCount;
_root.baddybullet.attachMovie("Baddybullet", nmThree, _root.baddybulletCount);
_root.baddybullet[nmThree]._x = _x;
_root.baddybullet[nmThree]._y = _y;
_root.baddybullet[nmThree].xspeed = var1 * baddybulletSpeed;
_root.baddybullet[nmThree].yspeed = var2 * baddybulletSpeed;
_root.baddybullet[nmThree]._xscale = _root.baddybullet[nmThree]._xscale * 1;
_root.baddybullet[nmThree]._yscale = _root.baddybullet[nmThree]._yscale * 1;
_root.baddybullet[nmThree].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.mcPlayer.hitTest(this._x, this._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 2;
removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
_root.baddybulletCount = _root.baddybulletCount + 1;
};
stop();
Instance of Symbol 26 MovieClip [Baddy2Art] "mcBaddy2" in Symbol 29 MovieClip [Baddy2] Frame 1
onClipEvent (load) {
this._parent.health = 5;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
gotoAndStop(_parent.health + 1);
basex = _parent._x;
iii = 0;
}
onClipEvent (enterFrame) {
_parent._x = basex + (Math.sin(this.iii) * 50);
iii = iii + 0.03;
gotoAndStop(_parent.health + 1);
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
growth = growth + 0.07;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
this._parent.bullettimer--;
if (this._parent.bullettimer == 0) {
this._parent.fireBaddyBullet2(1, 0);
_root.baddybullet[_parent.nmThree]._rotation = 0;
this._parent.fireBaddyBullet2(0, -1);
_root.baddybullet[_parent.nmThree]._rotation = 270;
this._parent.fireBaddyBullet2(-1, 0);
_root.baddybullet[_parent.nmThree]._rotation = 180;
this._parent.fireBaddyBullet2(0, 1);
_root.baddybullet[_parent.nmThree]._rotation = 90;
this._parent.bullettimer = 20;
}
}
Symbol 33 MovieClip [Explosion] Frame 1
sound1 = new Sound();
sound1.attachSound("boomwav");
sound1.start();
Symbol 33 MovieClip [Explosion] Frame 17
this.removeMovieClip(this);
Instance of Symbol 36 MovieClip "mcBaddy3" in Symbol 39 MovieClip [Baddy3] Frame 1
onClipEvent (load) {
this._parent.health = 12;
selfSpeed = 2.5;
gotoAndStop(_parent.health + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.health + 1);
this._parent._rotation = 57.2957795130823 * Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x);
this.xspeed = Math.cos(Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x)) * this.selfSpeed;
this.yspeed = Math.sin(Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x)) * this.selfSpeed;
_parent._x = _parent._x + this.xspeed;
_parent._y = _parent._y + this.yspeed;
}
Symbol 47 MovieClip [Baddy4] Frame 1
baddybulletSpeed = 1;
this.bullettimer = 30;
fireBaddyBullet = function () {
nmThree = "mcBaddyBullet" + _root.baddybulletCount;
_root.baddybullet.attachMovie("Baddybullet3", nmThree, _root.baddybulletCount);
_root.baddybullet[nmThree]._x = _x + (Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 13.5);
_root.baddybullet[nmThree]._y = _y + (Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 13.5);
_root.baddybullet[nmThree]._rotation = _rotation;
_root.baddybullet[nmThree].xspeed = Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree].yspeed = Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.mcPlayer.hitTest(this._x, this._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 2;
removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
_root.baddybulletCount = _root.baddybulletCount + 1;
};
stop();
Instance of Symbol 44 MovieClip "mcBaddy4" in Symbol 47 MovieClip [Baddy4] Frame 1
onClipEvent (load) {
this._parent.health = 40;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
_parent.bullettimer = 40;
_parent.baddybulletSpeed = 7;
this.iii = 0;
basex = _parent._x;
basey = _parent._y;
}
onClipEvent (enterFrame) {
this._parent._rotation = 57.2957795130823 * Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x);
if (growth < 1) {
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
growth = growth + 0.02;
}
if (growth >= 1) {
growth = 1;
}
this.iii = this.iii + 0.015;
_parent._x = basex + (Math.sin(this.iii) * 100);
_parent._y = basey + (Math.cos(this.iii) * 100);
this._parent.bullettimer--;
if (this._parent.bullettimer == 0) {
_parent.fireBaddyBullet();
this._parent.bullettimer = 24;
}
}
Symbol 52 MovieClip [Explosion2] Frame 1
sound1 = new Sound();
sound1.attachSound("plasmaexplosionwav");
sound1.start();
Symbol 52 MovieClip [Explosion2] Frame 25
this.removeMovieClip(this);
Instance of Symbol 17 MovieClip in Symbol 53 MovieClip [Baddybullet2] Frame 1
onClipEvent (load) {
playok = 1;
}
Instance of Symbol 17 MovieClip in Symbol 54 MovieClip [Baddybullet3] Frame 1
onClipEvent (load) {
playok = 1;
}
Instance of Symbol 56 MovieClip "mcBaddy5" in Symbol 57 MovieClip [Baddy5] Frame 1
onClipEvent (load) {
this._parent.health = 10;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
onClipEvent (enterFrame) {
growth = growth + 0.05;
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip [Baddy6] Frame 1
onClipEvent (load) {
this._parent.health = 20;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
onClipEvent (enterFrame) {
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
growth = growth + 0.05;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
}
Symbol 66 MovieClip [Baddy7] Frame 1
baddybulletSpeed2 = 8;
this.bullettimer2 = 300;
fireBaddyBullet2 = function () {
nmThree = "mcBaddyBullet" + _root.baddybulletCount;
_root.baddybullet.attachMovie("Baddybullet", nmThree, _root.baddybulletCount);
_root.baddybullet[nmThree]._x = _x + (Math.cos(((mcAttach._rotation + _rotation) * Math.PI) / 180) * 10.8);
_root.baddybullet[nmThree]._y = _y + (Math.sin(((mcAttach._rotation + _rotation) * Math.PI) / 180) * 10.8);
_root.baddybullet[nmThree]._rotation = mcAttach._rotation + _rotation;
_root.baddybullet[nmThree].xspeed = Math.cos(((mcAttach._rotation + _rotation) * Math.PI) / 180) * baddybulletSpeed;
_root.baddybullet[nmThree].yspeed = Math.sin(((mcAttach._rotation + _rotation) * Math.PI) / 180) * baddybulletSpeed;
_root.baddybullet[nmThree]._xscale = _root.baddybullet[nmThree]._xscale * 0.7;
_root.baddybullet[nmThree]._yscale = _root.baddybullet[nmThree]._yscale * 0.7;
_root.baddybullet[nmThree].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.mcPlayer.hitTest(this._x, this._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 1;
removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
_root.baddybulletCount = _root.baddybulletCount + 1;
};
stop();
baddybulletSpeed = 7.5;
this.bullettimer = 300;
fireBaddyBullet = function () {
nmThree = "mcBaddyBullet" + _root.baddybulletCount;
_root.baddybullet.attachMovie("Baddybullet2", nmThree, _root.baddybulletCount);
_root.baddybullet[nmThree]._x = _x + (Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 36.8);
_root.baddybullet[nmThree]._y = _y + (Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * 36.8);
_root.baddybullet[nmThree]._rotation = _rotation;
_root.baddybullet[nmThree].xspeed = Math.cos(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree].yspeed = Math.sin(Math.atan2(_root.mcPlayer._y - _y, _root.mcPlayer._x - _x)) * baddybulletSpeed;
_root.baddybullet[nmThree]._xscale = _root.baddybullet[nmThree]._xscale * 1;
_root.baddybullet[nmThree]._yscale = _root.baddybullet[nmThree]._yscale * 1;
_root.baddybullet[nmThree].onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (_root.mcPlayer.hitTest(this._x, this._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 4;
removeMovieClip(this);
}
if (this._x > 430) {
removeMovieClip(this);
}
if (this._x < -10) {
removeMovieClip(this);
}
if (this._y > 430) {
removeMovieClip(this);
}
if (this._y < -10) {
removeMovieClip(this);
}
};
_root.baddybulletCount = _root.baddybulletCount + 1;
};
stop();
Instance of Symbol 63 MovieClip in Symbol 66 MovieClip [Baddy7] Frame 1
onClipEvent (load) {
speed = function () {
if (selfSpeed == 2) {
selfSpeed = 3.5;
} else {
selfSpeed = 2;
}
};
this._parent.health = 600;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0.3;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
gotoAndStop(_parent.health + 1);
selfSpeed = 2;
clearInterval(speedup);
speedup = setInterval(speed, 1500);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.health + 1);
growth = growth + 0.005;
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
if (_root.mcPlayer.hitTest(_parent._x, _parent._y, true) == 1) {
_root.playerHealth = _root.playerHealth - 0.1;
}
this.xspeed = Math.cos(Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x)) * (this.selfSpeed * growth);
this.yspeed = Math.sin(Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x)) * (this.selfSpeed * growth);
_parent._x = _parent._x + this.xspeed;
_parent._y = _parent._y + this.yspeed;
this._parent._rotation = 57.2957795130823 * Math.atan2(_root.mcPlayer._y - this._parent._y, _root.mcPlayer._x - this._parent._x);
onEnterFrame = function () {
this._parent.bullettimer--;
if (this._parent.bullettimer == 0) {
this._parent.fireBaddyBullet();
this._parent.bullettimer = 10;
}
};
}
Instance of Symbol 65 MovieClip "mcAttach" in Symbol 66 MovieClip [Baddy7] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 6;
this._parent.bullettimer2--;
if (this._parent.bullettimer2 == 0) {
this._parent.fireBaddyBullet2();
this._parent.bullettimer2 = 7;
}
}
Instance of Symbol 69 MovieClip in Symbol 70 MovieClip [Baddy8] Frame 1
onClipEvent (load) {
this._parent.health = 15;
basexscale = _xscale;
baseyscale = _yscale;
growth = 0;
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
onClipEvent (enterFrame) {
growth = growth + 0.05;
if (growth >= 1) {
growth = 1;
}
if (growth < 1) {
this._parent._xscale = growth * basexscale;
this._parent._yscale = growth * baseyscale;
}
}
Symbol 101 MovieClip Frame 42
stop();
Symbol 101 MovieClip Frame 87
_root.nextFrame();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 100
stop();
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
aaa = 1;
}
onClipEvent (enterFrame) {
onPress = function () {
if (aaa == 1) {
_root.sound123.stop();
aaa = 0;
} else {
_root.sound123.start(0, 9999999);
aaa = 1;
}
};
}
Symbol 138 Button
on (release) {
nukescore = _root.score;
nukename = _root.inputname;
loadVariablesNum ("http://www.flashninjaclan.com/games/venomblood/newscore.php", 0, "POST");
_root.removeMovieClip(_root.mcScore2);
_root.sounddeath.setVolume(100);
_root.gotoAndStop(2);
}