Frame 1
stop();
Frame 2
stop();
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__("4f613983", this, 10301, true);
Frame 3
_y = 0;
_x = 0;
_root._quality = "HIGH";
stopAllSounds();
for (cObject in _root) {
if (typeof(_root[cObject]) == "movieclip") {
_root[cObject].removeMovieClip();
}
}
stop();
Instance of Symbol 26 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 29 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_root.play();
}
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
on (release) {
getURL ("http://www.deadtoast.com", "_blank");
}
Instance of Symbol 32 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Instance of Symbol 34 MovieClip in Frame 3
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = false;
} else {
_visible = true;
}
}
Frame 5
_y = 0;
_x = 0;
_root._quality = "HIGH";
for (cObject in _root) {
if (typeof(_root[cObject]) == "movieclip") {
_root[cObject].removeMovieClip();
}
}
stop();
Frame 6
function main() {
mainMusic.setVolume(soundVolume);
if ((score > 0) && (score < 700)) {
level = 1;
} else if ((score > 700) && (score < 1500)) {
level = 2;
} else if ((score > 1500) && (score < 2600)) {
level = 3;
} else if ((score > 2600) && (score < 4000)) {
level = 4;
} else if ((score > 4000) && (score < 6200)) {
level = 5;
} else if ((score > 6200) && (score < 8500)) {
level = 6;
} else if ((score > 8500) && (score < 10000)) {
level = 7;
} else if ((score > 10000) && (score < 13000)) {
level = 8;
} else if ((score > 13000) && (score < 17000)) {
level = 9;
} else if (score > 17000) {
level = 10;
}
if (cLevel != level) {
interFace.lvlUp.go = true;
if ((player.health + 25) <= 100) {
player.health = player.health + 25;
} else {
player.health = 100;
}
cLevel = level;
}
if (enemies < (level * 3.5)) {
enemyTimer = enemyTimer - (speed / 30);
enemy2Timer = enemy2Timer - (speed / 30);
enemy3Timer = enemy3Timer - (speed / 30);
}
if ((enemy3Timer <= 0) && (level >= 4)) {
duplicateMovieClip (arrowEnemy, "e3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemy3Timer = 500 + random(50);
}
if ((enemy2Timer <= 0) && (level >= 3)) {
duplicateMovieClip (enemy2, "e2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemy2Timer = 120 + random(50);
}
if (enemyTimer <= 0) {
duplicateMovieClip (enemy1, "e1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemyTimer = 50 + random(50);
}
if (playerKilled == false) {
speed = (((level * 10) + speed2) + (player.xSpeed / 2)) + 10;
}
if (player.fallspeed == 0) {
player.legs.play();
} else {
player.legs.stop();
}
if (Key.isDown(68)) {
if (press68 == false) {
defendSound.start();
player.defendTime = 17;
}
press68 = true;
if (player.defendTime > 0) {
player.defend = true;
} else {
player.defend = false;
}
} else {
press68 = false;
player.defend = false;
}
player.defendTime = player.defendTime - 1;
if (player.defend == true) {
player.arm._rotation = player.arm._rotation + ((120 - player.arm._rotation) * 0.4);
} else {
player.arm._rotation = player.arm._rotation + ((-player.arm._rotation) * 0.4);
}
if (Key.isDown(83)) {
if (press83 == false) {
if (powerSpeedTimer > 5) {
powerSpeedStart.start();
speedField.wind.start(0, 999);
}
powerSpeedTimer = powerSpeedTimer - 5;
}
press83 = true;
if (powerSpeedTimer > 0) {
powerSpeed = true;
}
} else {
speedField.wind.stop();
press83 = false;
powerSpeed = false;
}
if (Key.isDown(65)) {
if (playerKilled == false) {
if (press65 == false) {
if (powerSpeedTimer > 7) {
player.dragonBallLoad.start();
}
player.arm.play();
}
press65 = true;
if (magic.go == false) {
if (powerSpeedTimer > 1) {
magicPower = magicPower + ((100 - magicPower) * 0.07);
}
if ((magicPower > 5) && (magicPower < 95)) {
if (powerSpeedTimer <= 0) {
powerSpeedTimer = 0;
}
powerSpeedTimer = powerSpeedTimer - 0.5;
}
}
}
} else {
player.dragonBallLoad.stop();
if (magicPower >= 50) {
magic.speed = magicPower;
dragonBallShoot.start();
magic.go = true;
}
magicPower = -180;
press65 = false;
}
treeTimer = treeTimer - (speed / 20);
if (treeTimer <= 0) {
duplicateMovieClip (_root.tree, "t" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
treeTimer = 15 + random(10);
}
_x = (_x + ((((-player._x) + (screenResX / 2)) - _x) * 0.2));
_y = (_y + ((((-player._y) + (screenResY / 2)) - _y) * 0.2));
if (_x > 100) {
_x = 100;
}
if (_x < -100) {
_x = -100;
}
if (_y < -100) {
_y = -100;
}
if (_y > 250) {
_y = 250;
}
if (Key.isDown(39)) {
player.xSpeed2 = 4;
} else if (Key.isDown(37)) {
player.xSpeed2 = -4;
} else {
player.xSpeed2 = 0;
}
if (Key.isDown(38) && (player.fallspeed == 0)) {
newSmokeName = "s" + _root.getNextHighestDepth();
duplicateMovieClip (_root.smoke, newSmokeName, _root.getNextHighestDepth());
_root[newSmokeName]._x = player._x - 10;
_root[newSmokeName]._y = player._y + 30;
player.jump = 20;
} else if (Key.isDown(40)) {
player.jump = 0;
player.fallspeed = player.fallspeed + 1;
}
if (player.jump > 0) {
if (Key.isDown(38)) {
player.fallspeed = player.fallspeed + ((-10 - player.fallspeed) * 0.2);
} else {
player.jump = 0;
}
player.jump = player.jump - 1;
}
player.fallspeed = player.fallspeed + 0.3;
player._y = player._y + player.fallspeed;
player.xSpeed = player.xSpeed + ((player.xSpeed2 - player.xSpeed) * 0.2);
player._x = player._x + player.xSpeed;
if (player._y > 500) {
player._y = 500;
player._x = player._x - speed;
}
if (player._x < -100) {
player._x = -100;
}
if (player._x > ((-_x) + screenResX)) {
player._x = (-_x) + screenResX;
}
if (player._y < ((-_y) - 40)) {
player.fallspeed = 1;
player._y = (-_y) - 40;
}
if ((player._y > 470) && (player._x < ((-_x) + 30))) {
player.health = player.health - 20;
player.fallspeed = -15;
player.xSpeed2 = (player.xSpeed = 10);
player._x = player._x + 35;
player._y = player._y - 35;
}
if (powerSpeed == true) {
speed2 = speed2 + ((100 - speed2) * 0.2);
powerSpeedTimer = powerSpeedTimer - 0.5;
if (powerSpeedTimer <= 0) {
powerSpeed = false;
powerSpeedTimer = 0;
}
} else {
speedField.wind.stop();
speed2 = speed2 + (((player._x * 0.01) - speed2) * 0.1);
}
if (player._x > 450) {
player._x = player._x + ((450 - player._x) * 0.1);
}
if (magic.go == false) {
magic._x = player._x;
magic._y = player._y;
magic._alpha = (magic._xscale = (magic._yscale = magicPower * 0.8));
} else {
magic._x = magic._x + (magic.speed / 4);
magic._xscale = (magic._yscale = magic._yscale + (((magic.speed / 2) - magic._yscale) * 0.3));
magic._alpha = magic._alpha + ((magic.speed - magic._alpha) * 0.05);
if (magic._x > (((-_x) + screenResX) + 50)) {
magic._xscale = (magic._yscale = (magic._alpha = 0));
magic.go = false;
}
}
if ((magic.speed / 4) <= 10) {
magic.go = false;
}
if ((powerSpeedTimer < 20) && (!Key.isDown(83))) {
powerSpeedTimer = powerSpeedTimer + 0.1;
}
if (powerSpeedTimer < 0) {
powerSpeedTimer = 0;
}
if ((player.health <= 0) && (playerKilled == false)) {
player.health = 0;
createBlood(player._x, player._y, 9);
playerDead._x = player._x;
playerDead._y = player._y;
playerKilled = true;
}
if (playerKilled == true) {
magic._visible = false;
player.xSpeed = 0;
player.xSpeed2 = 0;
player.fallspeed = 0;
player.gotoAndStop(2);
speed = speed * 0.9;
playerDead.xSpeed = playerDead.xSpeed * 0.95;
playerDead.fallspeed = playerDead.fallspeed + 0.3;
playerDead._rotation = playerDead._rotation - playerDead.xSpeed;
playerDead._x = playerDead._x + playerDead.xSpeed;
playerDead._y = playerDead._y + playerDead.fallspeed;
if (Key.isDown(32)) {
_root.gotoAndStop(3);
}
}
}
function createBlood(xPos, yPos, amount) {
newBloodName = "b" + _root.getNextHighestDepth();
duplicateMovieClip (_root.blood, newBloodName, _root.getNextHighestDepth());
_root[newBloodName]._x = xPos;
_root[newBloodName]._y = yPos;
i = 0;
while (i < amount) {
newBloodName = "b" + _root.getNextHighestDepth();
duplicateMovieClip (_root.bloodDrip, newBloodName, _root.getNextHighestDepth());
_root[newBloodName]._x = xPos;
_root[newBloodName]._y = yPos;
i++;
}
}
function bloodCode(obj) {
if (obj.speed == undefined) {
obj._rotation = 100 - random(200);
obj.speed = (2 + random(7)) + (0.1 * random(9));
}
obj._xscale = (obj._yscale = obj._yscale + ((100 - obj._yscale) * (0.02 * obj.speed)));
if ((obj._rotation < 180) && (obj._rotation > 0)) {
obj._rotation = obj._rotation + ((180 - obj._rotation) * 0.05);
} else if ((obj._rotation < 0) && (obj._rotation > -180)) {
obj._rotation = obj._rotation + ((-180 - obj._rotation) * 0.05);
}
obj._alpha = obj._alpha - (obj.speed * 0.7);
if (obj._alpha <= 0) {
obj.removeMovieClip();
}
obj._x = obj._x - (speed / 2);
obj.speed = obj.speed + 0.3;
obj._x = obj._x - (Math.sin(((-obj._rotation) * Math.PI) / 180) * obj.speed);
obj._y = obj._y - (Math.cos(((-obj._rotation) * Math.PI) / 180) * obj.speed);
}
function eBodyPart(obj) {
if (obj.speed == undefined) {
obj._alpha = 600;
obj._rotation = 30 - random(60);
obj.speed = (2 + random(7)) + (0.1 * random(9));
}
obj._xscale = (obj._yscale = obj._yscale + ((100 - obj._yscale) * (0.02 * obj.speed)));
if ((obj._rotation < 180) && (obj._rotation > 0)) {
obj._rotation = obj._rotation + ((180 - obj._rotation) * 0.05);
} else if ((obj._rotation < 0) && (obj._rotation > -180)) {
obj._rotation = obj._rotation + ((-180 - obj._rotation) * 0.05);
}
obj._alpha = obj._alpha - 10;
if (obj._alpha <= 0) {
obj.removeMovieClip();
}
obj._x = obj._x - (speed / 1.15);
obj.speed = obj.speed + 0.3;
obj._x = obj._x - (Math.sin(((-obj._rotation) * Math.PI) / 180) * obj.speed);
obj._y = obj._y - (Math.cos(((-obj._rotation) * Math.PI) / 180) * obj.speed);
}
function powder(xPos, yPos) {
if (random(2) == 1) {
powder1.start();
} else {
powder2.start();
}
var _local6 = "nf" + _root.getNextHighestDepth();
duplicateMovieClip (whiteFlash, _local6, _root.getNextHighestDepth());
_root[_local6]._x = xPos;
_root[_local6]._y = yPos;
var _local3 = 0;
while (_local3 < 5) {
var _local2 = "pow" + _root.getNextHighestDepth();
duplicateMovieClip (magicPowder, _local2, _root.getNextHighestDepth());
_root[_local2]._x = xPos;
_root[_local2]._y = yPos;
_local3++;
}
createBlood(xPos, yPos, 4);
}
function sparks(obj) {
if (obj.xSpeed == undefined) {
obj.xSpeed = -5 + random(10);
obj.fallspeed = -5 + random(10);
}
obj.fallspeed = obj.fallspeed + 0.3;
obj.xSpeed = obj.xSpeed * 0.99;
obj._alpha = obj._alpha + ((-obj._alpha) * 0.1);
obj._y = obj._y + obj.fallspeed;
obj._x = obj._x + obj.xSpeed;
if (obj._alpha <= 0) {
obj.removeMovieClip();
}
}
function addSparks(xPos, yPos, amount) {
s = 0;
while (s < amount) {
sparkName = "spark" + _root.getNextHighestDepth();
duplicateMovieClip (spark, sparkName, _root.getNextHighestDepth());
_root[sparkName]._x = xPos;
_root[sparkName]._y = yPos;
s++;
}
}
function glowCode(obj) {
if (obj.sizeXY == undefined) {
obj.sizeXY = 30;
obj._width = (obj._height = obj.sizeXY);
}
obj._width = (obj._height = obj.sizeXY);
obj._alpha = obj.sizeXY;
obj.sizeXY = obj.sizeXY + ((-obj.sizeXY) * 0.15);
if (obj._alpha <= 0) {
obj.removeMovieClip();
}
}
function createGlow(xPos, yPos, alpha, size) {
glowName = "glow" + _root.getNextHighestDepth();
duplicateMovieClip (glow, glowName, _root.getNextHighestDepth());
_root[glowName]._x = xPos;
_root[glowName]._y = yPos;
_root[glowName]._alpha = alpha;
_root[glowName]._width = size;
_root[glowName]._height = size;
}
for (cObject in _root) {
if (typeof(_root[cObject]) == "movieclip") {
_root[cObject].removeMovieClip();
}
}
clearInterval(mainInterval);
soundVolume = 100;
defendSound = new Sound(this);
defendSound.attachSound("defendSwing");
swordSwing = new Sound(this);
swordSwing.attachSound("swordSwing");
ninjaDead1 = new Sound(this);
ninjaDead1.attachSound("ninjaDead1");
ninjaDead12 = new Sound(this);
ninjaDead12.attachSound("ninjaDead12");
ninjaDead13 = new Sound(this);
ninjaDead13.attachSound("ninjaDead13");
defendHit1 = new Sound(this);
defendHit1.attachSound("defendHit1");
defendHit2 = new Sound(this);
defendHit2.attachSound("defendHit2");
defendHit3 = new Sound(this);
defendHit3.attachSound("defendHit3");
dragonBallShoot = new Sound(this);
dragonBallShoot.attachSound("dragonBallShoot");
powder1 = new Sound(this);
powder1.attachSound("powder1");
powder2 = new Sound(this);
powder2.attachSound("powder2");
speedField.wind = new Sound(speedField);
speedField.wind.attachSound("wind");
player.dragonBallLoad = new Sound(player);
player.dragonBallLoad.attachSound("dragonBallLoad");
powerSpeedStart = new Sound(this);
powerSpeedStart.attachSound("powerSpeedStart");
orbAbsorb = new Sound(this);
orbAbsorb.attachSound("orbAbsorb");
mainMusic = new Sound(this);
mainMusic.attachSound("mainMusic");
screenResX = 650;
screenResY = 450;
player.xSpeed = 0;
player.xSpeed2 = 0;
player.fallspeed = -15;
player.height = player._height;
playerKilled = false;
playerDead.fallspeed = -5;
playerDead.xSpeed = -7;
enemies = 0;
var magicPower = 0;
magic.go = false;
score = 0;
player.health = 100;
player.defend = false;
player.defendTime = 0;
enemyTimer = 50 + random(50);
enemy2Timer = 120 + random(50);
enemy3Timer = 500 + random(50);
_root._quality = "LOW";
treeTimer = 10 + random(10);
speed2 = 20;
level = 1;
var cLevel = 1;
speed = ((level * 20) + speed2) + (player.xSpeed / 2);
powerSpeed = false;
powerSpeedTimer = 100;
var mainInterval = setInterval(main, 31.25);
stop();
Instance of Symbol 119 MovieClip "interFace" in Frame 6
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = (-_root._y);
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 122 MovieClip in Frame 6
onClipEvent (load) {
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_x = (startX + (_root._x * 0.1));
_y = (startY + (_root._y * 0.1));
}
Instance of Symbol 122 MovieClip in Frame 6
onClipEvent (load) {
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_x = (startX + (_root._x * 0.2));
_y = (startY + (_root._y * 0.2));
}
Instance of Symbol 122 MovieClip in Frame 6
onClipEvent (load) {
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_x = (startX + (_root._x * 0.25));
_y = (startY + (_root._y * 0.25));
}
Instance of Symbol 122 MovieClip in Frame 6
onClipEvent (load) {
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_x = (startX + (_root._x * 0.3));
_y = (startY + (_root._y * 0.3));
}
Instance of Symbol 123 MovieClip in Frame 6
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.powerSpeed == true) {
_alpha = (_alpha + ((60 - _alpha) * 0.1));
} else {
_alpha = (_alpha + ((-_alpha) * 0.2));
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.15));
_x = (xPos + (_root._x * 0.15));
xPos = xPos - (_root.speed * 0.1);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.15));
_x = (xPos + (_root._x * 0.15));
xPos = xPos - (_root.speed * 0.1);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.15));
_x = (xPos + (_root._x * 0.15));
xPos = xPos - (_root.speed * 0.1);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.15));
_x = (xPos + (_root._x * 0.15));
xPos = xPos - (_root.speed * 0.1);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.3));
_x = (xPos + (_root._x * 0.3));
xPos = xPos - (_root.speed * 0.2);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.3));
_x = (xPos + (_root._x * 0.3));
xPos = xPos - (_root.speed * 0.2);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.3));
_x = (xPos + (_root._x * 0.3));
xPos = xPos - (_root.speed * 0.2);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 132 MovieClip "tree2" in Frame 6
onClipEvent (load) {
xPos = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_y = (startY + (_root._y * 0.3));
_x = (xPos + (_root._x * 0.3));
xPos = xPos - (_root.speed * 0.2);
if (_x < -250) {
xPos = 850;
_x = 800;
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (load) {
var speed = (_root.speed * 0.5);
var startX = _x;
var startY = _y;
}
onClipEvent (enterFrame) {
speed = _root.speed * 0.5;
_x = (startX + (_root._x * 0.3));
_y = (startY + (_root._y * 0.3));
}
Instance of Symbol 149 MovieClip "player" in Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
_x = 48.8;
_y = 443.1;
height = _height;
}
Instance of Symbol 153 MovieClip "tree" in Frame 6
onClipEvent (enterFrame) {
if (_name != "tree") {
_x = (_x - _root.speed);
if (_x < -250) {
this.removeMovieClip();
}
}
}
Instance of Symbol 153 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_name != "tree") {
_x = (_x - _root.speed);
if (_x < -250) {
this.removeMovieClip();
}
}
}
Instance of Symbol 153 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_name != "tree") {
_x = (_x - _root.speed);
if (_x < -250) {
this.removeMovieClip();
}
}
}
Instance of Symbol 153 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_name != "tree") {
_x = (_x - _root.speed);
if (_x < -250) {
this.removeMovieClip();
}
}
}
Instance of Symbol 155 MovieClip "smoke" in Frame 6
onClipEvent (enterFrame) {
if (_name != "smoke") {
_alpha = (_alpha - 5);
_yscale = (_yscale + 5);
_xscale = (_yscale + 5);
_y = (_y - 1);
_x = (_x - _root.speed);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 157 MovieClip "blood" in Frame 6
onClipEvent (enterFrame) {
if (_name != "blood") {
_alpha = (_alpha - 10);
_yscale = (_yscale + 5);
_xscale = (_yscale + 5);
_x = (_x - (_root.speed / 2));
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 159 MovieClip "bloodDrip" in Frame 6
onClipEvent (load) {
_yscale = 10;
_xscale = 10;
}
onClipEvent (enterFrame) {
if (_name != "bloodDrip") {
_root.bloodCode(this);
}
}
Instance of Symbol 161 MovieClip "powerSpeedPowerUp" in Frame 6
onClipEvent (load) {
if (_name != "powerSpeedPowerUp") {
_y = (_y + (-100 + random(200)));
var scale = 1;
_yscale = 1;
_xscale = 1;
var excist = true;
}
}
onClipEvent (enterFrame) {
if ((_name != "powerSpeedPowerUp") && (excist == true)) {
if (this.hitTest(_root.player)) {
_root.orbAbsorb.start();
_root.score = _root.score + 5;
_root.powerSpeedTimer = 100;
excist = false;
}
_x = (_x - (_root.speed * 0.3));
scale = scale + (80 - _xscale);
scale = scale / 1.05;
if (_x < ((-_root._x) - 20)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
_yscale = (_yscale + scale);
_xscale = (_yscale + scale);
}
if (excist == false) {
_x = (_x + ((_root.player._x - _x) * 0.3));
_y = (_y + ((_root.player._y - _y) * 0.3));
_alpha = (_alpha - 3);
_yscale = (_alpha - 3);
_xscale = (_alpha - 3);
if (_alpha <= 0) {
this.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
}
Instance of Symbol 176 MovieClip "arrowEnemy" in Frame 6
onClipEvent (load) {
if (_name != "arrowEnemy") {
var movementTimer = 0;
var targetX = 0;
var targetY = 0;
_root.enemies++;
}
}
onClipEvent (enterFrame) {
if (_name != "arrowEnemy") {
movementTimer--;
if (movementTimer <= 0) {
targetX = -150 + random(200);
targetY = -70 + random(140);
movementTimer = 50;
}
if (_root.powerSpeed == true) {
_x = (_x - _root.speed);
}
_x = (_x + ((((_root.player._x + targetX) + 200) - _x) * 0.04));
_y = (_y + (((_root.player._y + targetY) - _y) * 0.04));
if (hitTest(_root.player.arm.hitbox)) {
ranNum = random(3);
if (ranNum == 1) {
_root.ninjaDead1.start();
} else if (ranNum == 2) {
_root.ninjaDead12.start();
} else {
_root.ninjaDead13.start();
}
_root.createBlood(_x, _y, 5);
newEDownName = "eDown" + _root.getNextHighestDepth();
duplicateMovieClip (_root.eDown2, newEDownName, _root.getNextHighestDepth());
_root[newEDownName]._x = _x;
_root[newEDownName]._y = _y;
newEUpName = "eUp" + _root.getNextHighestDepth();
duplicateMovieClip (_root.eUp2, newEUpName, _root.getNextHighestDepth());
_root[newEUpName]._x = _x;
_root[newEUpName]._y = _y;
_root.score = _root.score + 40;
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (hitTest(_root.magic) && (_root.magic.go == true)) {
_root.score = _root.score + 45;
_root.magic.speed = _root.magic.speed / 2;
_root.powder(_x, _y);
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
Instance of Symbol 174 MovieClip "enemyArrow" in Frame 6
onClipEvent (load) {
var hit = false;
var speed = 15;
var stuckInPlayer = false;
var xDist = 0;
var yDist = 0;
_alpha = 250;
}
onClipEvent (enterFrame) {
if (_name != "enemyArrow") {
if (stuckInPlayer == false) {
_x = (_x - (_root.speed / 10));
_x = (_x + (Math.sin((_rotation + 90) * (Math.PI/180)) * speed));
_y = (_y - (Math.cos((_rotation + 90) * (Math.PI/180)) * speed));
} else {
_alpha = (_alpha - 5);
_x = (_root.player._x + xDist);
_y = (_root.player._y + yDist);
}
if (stuckInPlayer == false) {
if (hitTest(_root.player.arm.hitbox) || (hitTest(_root.player) && (_root.player.defend == true))) {
if (hit == false) {
_root.addSparks(_root.player._x + 5, _root.player._y, 5);
_root.createGlow(_root.player._x + 5, _root.player._y, 50, 100);
ranNum = random(3);
if (ranNum == 1) {
_root.defendHit1.start();
} else if (ranNum == 2) {
_root.defendHit2.start();
} else {
_root.defendHit3.start();
}
speed = speed * 2;
this._rotation = -90 + random(180);
hit = true;
}
} else if ((((_x < (_root.player._x + 15)) && (_x > (_root.player._x - 15))) && (_y > (_root.player._y - 15))) && (_y < (_root.player._y + 15))) {
_root.player.health = _root.player.health - 3;
_root.createBlood(_x, _y, 3);
xDist = -(_root.player._x - _x);
yDist = -(_root.player._y - _y);
hit = true;
stuckInPlayer = true;
}
}
if ((_x < -200) || (_alpha <= 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 178 MovieClip "eUp2" in Frame 6
onClipEvent (enterFrame) {
if (_name != "eUp2") {
_root.eBodyPart(this);
}
}
Instance of Symbol 180 MovieClip "eDown2" in Frame 6
onClipEvent (enterFrame) {
if (_name != "eDown2") {
_root.eBodyPart(this);
}
}
Instance of Symbol 182 MovieClip "healthPowerUp" in Frame 6
onClipEvent (load) {
if (_name != "healthPowerUp") {
_y = (_y + (-100 + random(200)));
var scale = 1;
_yscale = 1;
_xscale = 1;
var excist = true;
}
}
onClipEvent (enterFrame) {
if ((_name != "healthPowerUp") && (excist == true)) {
if (this.hitTest(_root.player)) {
_root.orbAbsorb.start();
_root.player.health = _root.player.health + 25;
if (_root.player.health > 100) {
_root.player.health = 100;
}
_root.score = _root.score + 5;
excist = false;
}
_x = (_x - (_root.speed * 0.3));
scale = scale + (80 - _xscale);
scale = scale / 1.05;
if (_x < ((-_root._x) - 20)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
_yscale = (_yscale + scale);
_xscale = (_yscale + scale);
}
if (excist == false) {
_x = (_x + ((_root.player._x - _x) * 0.3));
_y = (_y + ((_root.player._y - _y) * 0.3));
_alpha = (_alpha - 3);
_yscale = (_alpha - 3);
_xscale = (_alpha - 3);
if (_alpha <= 0) {
this.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
}
Instance of Symbol 186 MovieClip "eDown" in Frame 6
onClipEvent (enterFrame) {
if (_name != "eDown") {
_root.eBodyPart(this);
}
}
Instance of Symbol 188 MovieClip "eUp" in Frame 6
onClipEvent (enterFrame) {
if (_name != "eUp") {
_root.eBodyPart(this);
}
}
Instance of Symbol 198 MovieClip "enemy1" in Frame 6
onClipEvent (load) {
if (_name != "enemy1") {
_y = (_y - (-200 + random(400)));
var timer = (100 + random(30));
var targetX = ((_root.player._x + 150) + random(150));
var targetY = ((_root.player._y - 40) + random(80));
_root.enemies++;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy1") {
if (_root.powerSpeed == true) {
_x = (_x - (_root.speed * 0.5));
}
timer = timer - 1;
if (timer > 30) {
_x = (_x + ((targetX - _x) * 0.05));
_y = (_y + ((targetY - _y) * 0.05));
} else if (timer < 30) {
_x = (_x + (((_root.player._x + 20) - _x) * 0.1));
_y = (_y + ((_root.player._y - _y) * 0.1));
}
if (timer <= 0) {
targetX = (_root.player._x + 150) + random(150);
if (random(2) == 1) {
targetY = (_root.player._y - 60) - random(30);
} else {
targetY = (_root.player._y + 60) + random(30);
}
timer = 100 + random(30);
}
if (hitTest(_root.player.arm.hitbox)) {
ranNum = random(3);
if (ranNum == 1) {
_root.ninjaDead1.start();
} else if (ranNum == 2) {
_root.ninjaDead12.start();
} else {
_root.ninjaDead13.start();
}
_root.createBlood(_x, _y, 6);
_root.score = _root.score + 27;
var randomNr = random(10);
if (randomNr == 7) {
newPSPU = "newPSPU" + _root.getNextHighestDepth();
duplicateMovieClip (_root.powerSpeedPowerUp, newPSPU, _root.getNextHighestDepth());
} else if (randomNr == 5) {
duplicateMovieClip (_root.healthPowerUp, "newHealth" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
var newEDownName = ("eDown" + _root.getNextHighestDepth());
duplicateMovieClip (_root.eDown, newEDownName, _root.getNextHighestDepth());
_root[newEDownName]._x = _x;
_root[newEDownName]._y = _y;
var newEUpName = ("eUp" + _root.getNextHighestDepth());
duplicateMovieClip (_root.eUp, newEUpName, _root.getNextHighestDepth());
_root[newEUpName]._x = _x;
_root[newEUpName]._y = _y;
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (hitTest(_root.magic) && (_root.magic.go == true)) {
_root.score = _root.score + 35;
_root.magic.speed = _root.magic.speed / 2;
_root.powder(_x, _y);
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
}
Instance of Symbol 203 MovieClip "enemy2" in Frame 6
onClipEvent (load) {
if (_name != "enemy2") {
_x = (_root.player._x + 400);
var fallspeed = (-21 - random(8));
var dead = false;
var xSpeed = (-(_root.speed / 4));
_root.enemies++;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy2") {
fallspeed = fallspeed + 0.5;
if (((((dead == false) && (_root.player._x > (_x - 50))) && (_root.player._x < (_x + 20))) && (_root.player._y < (_y + 50))) && (_root.player._y > (_y - 50))) {
this.arm.go = true;
}
if ((dead == false) && (hitTest(_root.player.arm.hitbox))) {
ranNum = random(3);
if (ranNum == 1) {
_root.ninjaDead1.start();
} else if (ranNum == 2) {
_root.ninjaDead12.start();
} else {
_root.ninjaDead13.start();
}
_root.score = _root.score + 35;
_root.createBlood(_x, _y, 4);
this.gotoAndStop(2);
xSpeed = 7;
fallspeed = -5;
dead = true;
}
if (dead == true) {
xSpeed = xSpeed * 0.99;
_rotation = (_rotation + xSpeed);
} else if (_root.powerSpeed == false) {
xSpeed = -10;
} else {
xSpeed = (-_root.speed) / 4;
}
if (hitTest(_root.magic) && (_root.magic.go == true)) {
_root.score = _root.score + 42;
_root.magic.speed = _root.magic.speed / 2;
_root.powder(_x, _y);
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (_y > 800) {
_root.enemies--;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
_x = (_x + xSpeed);
_y = (_y + fallspeed);
}
}
Instance of Symbol 205 MovieClip "spark" in Frame 6
onClipEvent (enterFrame) {
if (_name != "spark") {
_root.sparks(this);
}
}
Instance of Symbol 207 MovieClip "glow" in Frame 6
onClipEvent (enterFrame) {
if (_name != "glow") {
_root.glowCode(this);
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (load) {
var speed = (_root.speed * 1.1);
}
onClipEvent (enterFrame) {
speed = _root.speed * 1.1;
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 209 MovieClip "speedField" in Frame 6
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = _root.player._y;
_rotation = (_rotation + ((_root.player.fallspeed - _rotation) * 0.1));
if (_root.powerSpeed == true) {
_alpha = (_alpha + ((100 - _alpha) * 0.1));
} else {
_alpha = (_alpha * 0.9);
}
}
Instance of Symbol 213 MovieClip "magic" in Frame 6
onClipEvent (load) {
_visible = true;
}
Instance of Symbol 89 MovieClip "magicPowder" in Frame 6
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 215 MovieClip "whiteFlash" in Frame 6
onClipEvent (enterFrame) {
if (_name != "whiteFlash") {
_alpha = (_alpha * 0.9);
_yscale = (_alpha * 0.9);
_xscale = (_alpha * 0.9);
_x = (_x - (_root.speed / 2));
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Symbol 6 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 12 MovieClip Frame 189
_root.play();
Instance of Symbol 13 MovieClip in Symbol 17 MovieClip Frame 1
on (release) {
getURL ("http://www.deadtoast.com/", "_blank");
}
Instance of Symbol 13 MovieClip in Symbol 17 MovieClip Frame 1
on (release) {
getURL ("http://www.deadtoast.com/", "_blank");
}
Symbol 17 MovieClip Frame 150
_root.play();
Symbol 54 MovieClip Frame 1
stopAllSounds();
stopAllSounds();
Instance of Symbol 69 MovieClip in Symbol 75 MovieClip Frame 1
on (release) {
getURL ("http://www.deadtoast.com", "_blank");
}
Instance of Symbol 74 MovieClip in Symbol 75 MovieClip Frame 1
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip Frame 1
on (release) {
_parent.go = false;
}
Symbol 93 MovieClip Frame 1
stop();
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
var startX = _x;
}
onClipEvent (enterFrame) {
if (_parent.scroll.go == false) {
_x = (_x + ((42.25 - _x) * 0.2));
} else {
_x = (_x + ((startX - _x) * 0.2));
}
}
on (release) {
stopAllSounds();
_parent.play();
}
Instance of Symbol 64 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
var startX = _x;
}
onClipEvent (enterFrame) {
if (_parent.scroll.go == false) {
_x = (_x + ((1.3 - _x) * 0.2));
} else {
_x = (_x + ((startX - _x) * 0.2));
}
}
on (release) {
_parent.scroll.go = true;
}
Instance of Symbol 66 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
var startX = _x;
}
onClipEvent (enterFrame) {
if (_parent.scroll.go == false) {
_x = (_x + ((43.6 - _x) * 0.2));
} else {
_x = (_x + ((startX - _x) * 0.2));
}
}
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Instance of Symbol 75 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + ((-235.7 - _y) * 0.05));
}
Instance of Symbol 85 MovieClip "scroll" in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
var startY = _y;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_y = (_y + ((-44.25 - _y) * 0.2));
} else {
_y = (_y + ((startY - _y) * 0.3));
}
}
Instance of Symbol 87 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_alpha >= 0) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 89 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
if (_name != "magicPowder") {
var xSpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
var ySpeed = ((-(0.1 * random(10))) + (2 * (0.1 * random(10))));
_yscale = 0;
_xscale = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "magicPowder") {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_x = (_x - (_root.speed / 2));
_yscale = (_yscale + ((150 - _yscale) * 0.1));
_xscale = (_yscale + ((150 - _yscale) * 0.1));
_alpha = (_alpha - 1.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Symbol 93 MovieClip Frame 90
_root.play();
Symbol 96 MovieClip Frame 1
function whitePixel(obj) {
if (obj.startX == undefined) {
obj.startY = obj._y;
obj.startX = obj._x;
if (random(2) == 1) {
obj.startX2 = 500 + random(1000);
} else {
obj.startX2 = -500 - random(1000);
}
obj.startY2 = obj._y;
obj._x = obj.startX2;
obj._y = obj.startY2;
}
obj._alpha = 100 - (Math.sqrt(((obj.startX - obj._x) * (obj.startX - obj._x)) + ((obj.startY - obj._y) * (obj.startY - obj._y))) / 1);
if (go == true) {
obj._x = obj._x + ((obj.startX - obj._x) * 0.15);
obj._y = obj._y + ((obj.startY - obj._y) * 0.15);
} else {
obj._x = obj._x + ((obj.startX2 - obj._x) * 0.2);
obj._y = obj._y + ((obj.startY2 - obj._y) * 0.2);
}
}
onEnterFrame = function () {
if (go == undefined) {
timer = 90;
go = false;
}
if ((go == true) && (timer >= 0)) {
timer--;
}
if (timer <= 0) {
go = false;
timer = 90;
}
};
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.whitePixel(this);
}
Instance of Symbol 99 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent._alpha >= 100) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 101 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent._alpha >= 100) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 32 MovieClip in Symbol 103 MovieClip Frame 1
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Instance of Symbol 105 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.powerSpeed == true) {
_yscale = (_yscale + ((130 - _yscale) * 0.3));
} else {
_yscale = (_yscale + ((100 - _yscale) * 0.4));
}
}
Instance of Symbol 105 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.powerSpeed == true) {
_yscale = (_yscale + ((130 - _yscale) * 0.3));
} else {
_yscale = (_yscale + ((100 - _yscale) * 0.4));
}
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.playerKilled == true) {
_visible = false;
}
}
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.player.health;
if (_root.playerKilled == true) {
_visible = false;
}
}
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.powerSpeedTimer;
}
Instance of Symbol 103 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
_alpha = -200;
}
onClipEvent (enterFrame) {
if ((_root.playerKilled == true) && (_alpha <= 100)) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 114 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
_alpha = 400;
}
onClipEvent (enterFrame) {
if ((_root.playerKilled == true) && (_alpha >= 0)) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 118 MovieClip "musicVolScale" in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.soundVolume = _xscale;
}
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_parent.musicVolScale._width = _parent._xmouse - _x;
}
}
on (press) {
go = true;
}
on (release) {
go = false;
}
on (releaseOutside) {
go = false;
}
Symbol 130 MovieClip Frame 1
stop();
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.speed);
if (_x <= -310) {
_x = 230;
}
}
Symbol 147 MovieClip Frame 1
_visible = false;
Symbol 148 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x < ((_parent._x + _x) + _width))) && (_root.player._x > (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x < ((_parent._x + _x) + _width))) && (_root.player._x > (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x > ((_parent._x + _x) - _width))) && (_root.player._x < (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x > ((_parent._x + _x) - _width))) && (_root.player._x < (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x < ((_parent._x + _x) + _width))) && (_root.player._x > (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x > ((_parent._x + _x) - _width))) && (_root.player._x < (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Instance of Symbol 130 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4));
_y = (_y + (-50 + random(100)));
}
onClipEvent (enterFrame) {
if ((((((!Key.isDown(40)) && (_root.player._x < ((_parent._x + _x) + _width))) && (_root.player._x > (_parent._x + _x))) && ((_root.player._y + (_root.player.height / 3)) > ((_parent._y + _y) - (_height / 2)))) && ((_root.player._y + (_root.player.height / 3)) < (_parent._y + _y))) && (_root.player.fallspeed >= 0)) {
if (_root.powerSpeed == false) {
_root.player._x = _root.player._x - ((_root.speed * 0.3) * (0.1 * (10 - _root.level)));
} else {
_root.player._x = _root.player._x - (_root.speed * 0.08);
}
_root.player._y = ((_parent._y + _y) - (_height / 2)) - (_root.player.height / 3);
_root.player.fallspeed = 0;
}
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 44
newArrow = "arrow" + _root.getNextHighestDepth();
duplicateMovieClip (_root.enemyArrow, newArrow, _root.getNextHighestDepth());
_root[newArrow]._x = _parent._x;
_root[newArrow]._y = _parent._y + 10;
_root[newArrow]._rotation = _rotation - 180;
Instance of Symbol 163 MovieClip "arm1" in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x < (_parent._x - 30)) {
_rotation = (((Math.atan2(_root.player._y - _parent._y, _root.player._x - _parent._x) * 180) / Math.PI) - 180);
} else {
_rotation = (_rotation * 0.9);
}
}
Instance of Symbol 166 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x < (_parent._x - 30)) {
_rotation = (((Math.atan2(_root.player._y - _parent._y, _root.player._x - _parent._x) * 180) / Math.PI) - 180);
} else {
_rotation = (_rotation * 0.9);
}
}
Instance of Symbol 168 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.arm1._rotation;
}
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x < (_parent._x - 30)) {
_rotation = (((Math.atan2(_root.player._y - _parent._y, _root.player._x - _parent._x) * 180) / Math.PI) - 180);
} else {
_rotation = (_rotation * 0.9);
}
if ((_root.player._x < _parent._x) && (_parent._name != "arrowEnemy")) {
this.play();
}
}
Symbol 195 MovieClip Frame 1
stop();
Instance of Symbol 147 MovieClip in Symbol 195 MovieClip Frame 7
onClipEvent (load) {
function action() {
_root.createBlood(_root.player._x, _root.player._y, 3);
_root.player.xSpeed = (_root.player.xSpeed2 = -5 - random(5));
_root.player.fallspeed = -1 - random(4);
_root.player.health = _root.player.health - 4;
}
if (this.hitTest(_root.player)) {
if (_root.player.defend == false) {
action();
} else {
_root.addSparks(_root.player._x + 5, _root.player._y, 5);
_root.createGlow(_root.player._x + 5, _root.player._y, 50, 100);
ranNum = random(3);
if (ranNum == 1) {
_root.defendHit1.start();
} else if (ranNum == 2) {
_root.defendHit2.start();
} else {
_root.defendHit3.start();
}
}
}
_visible = false;
}
Instance of Symbol 190 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
rotation = 0;
rotTarget = 0;
}
onClipEvent (enterFrame) {
rotTarget = _parent.xSpeed;
rotation = rotation + (rotTarget - _rotation);
rotation = rotation / 1.2;
_rotation = (_rotation + rotation);
}
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x < (_parent._x - 30)) {
_rotation = (((Math.atan2(_root.player._y - _parent._y, _root.player._x - _parent._x) * 180) / Math.PI) - 180);
}
if ((((_root.player._x < _parent._x) && (_root.player._x > (_parent._x - 60))) && (_root.player._y > (_parent._y - 60))) && (_root.player._y < (_parent._y + 60))) {
this.play();
}
}
Instance of Symbol 197 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x < (_parent._x - 30)) {
_rotation = (((Math.atan2(_root.player._y - _parent._y, _root.player._x - _parent._x) * 180) / Math.PI) - 180);
} else {
_rotation = (_rotation * 0.9);
}
}
Instance of Symbol 147 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
function action() {
if ((hitPlayer == false) && (_root.player.defend == false)) {
_root.createBlood(_root.player._x, _root.player._y, 3);
_root.player.health = _root.player.health - 5;
hitPlayer = true;
}
}
hitPlayer = false;
if (this.hitTest(_root.player)) {
if (_root.player.defend == false) {
action();
} else {
ranNum = random(3);
if (ranNum == 1) {
_root.defendHit1.start();
} else if (ranNum == 2) {
_root.defendHit2.start();
} else {
_root.defendHit3.start();
}
}
}
}
onClipEvent (enterFrame) {
if ((_parent.go == true) && (this.hitTest(_root.player))) {
if (_root.player.defend == false) {
action();
} else {
ranNum = random(3);
if (ranNum == 1) {
_root.defendHit1.start();
} else if (ranNum == 2) {
_root.defendHit2.start();
} else {
_root.defendHit3.start();
}
}
}
}
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 201 MovieClip "arm" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.go == true) {
this._rotation = this._rotation + ((-180 - _rotation) * 0.4);
}
}
Instance of Symbol 212 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.go == true) {
_xscale = (_xscale + ((300 - _xscale) * 0.1));
} else {
_xscale = 100;
}
}