Frame 1
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Instance of Symbol 53 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
}
Instance of Symbol 77 MovieClip in Frame 2
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
onClipEvent (load) {
stX = _x;
stY = _y;
_alpha = 0;
timer = 150;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer < 21) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if (timer < 1) {
_root.gotoAndStop(3);
}
_x = ((stX + random(10)) - 5);
_y = ((stY + random(10)) - 5);
}
Frame 3
function submitOurScore2(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.name;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.playerName = playerNameSave;
mySharedObject.flush();
_root.playerNameSave = _root.pausescreen.name;
Tosend.score = _root.kill;
Tosend.gameId = "120";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(6).toString() + random(7).toString()) + random(2).toString()) + random(2).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(3).toString()) + random(8).toString()) + random(8).toString()) + random(3).toString()) + random(6).toString()) + random(3).toString()) + random(9).toString()) + random(1).toString()) + random(7).toString()) + random(0).toString()) + random(5).toString()) + random(7).toString()) + random(6).toString()) + random(0).toString()) + random(5).toString()) + random(0).toString()) + random(1).toString()) + random(5).toString()) + random(0).toString()) + random(5).toString()) + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(1).toString()) + random(0).toString()) + random(4).toString()) + random(5).toString()) + random(9).toString()) + random(8).toString()) + random(4).toString()) + random(3).toString()) + random(1).toString()) + random(3).toString()) + random(2).toString()) + random(4).toString()) + random(0).toString()) + random(5).toString()) + random(3).toString()) + random(1).toString()) + random(2).toString()) + random(3).toString()) + random(6).toString()) + random(0).toString()) + random(0).toString()) + random(7).toString()) + random(5).toString()) + random(0).toString()) + random(8).toString()) + random(1).toString()) + random(1).toString()) + random(4).toString()) + random(5).toString()) + random(9).toString()) + random(7).toString()) + random(7).toString()) + random(0).toString()) + random(1).toString()) + random(2).toString()) + random(0).toString()) + random(9).toString()) + random(7).toString()) + random(3).toString()) + random(1).toString()) + random(1).toString()) + random(5).toString()) + random(5).toString()) + random(1).toString()) + random(0).toString()) + random(9).toString()) + random(3).toString()) + random(3).toString()) + random(3).toString()) + random(0).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(9).toString()) + random(4).toString()) + random(6).toString()) + random(0).toString()) + random(5).toString()) + random(1).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(3).toString()) + random(6).toString()) + random(9).toString()) + random(6).toString()) + random(6).toString()) + random(9).toString()) + random(4).toString()) + random(9).toString()) + random(0).toString()) + random(6).toString()) + random(5).toString()) + random(6).toString()) + random(7).toString()) + random(6).toString()) + random(6).toString()) + random(1).toString()) + random(0).toString()) + random(9).toString()) + random(1).toString()) + random(4).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(7).toString()) + random(6).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(1).toString()) + random(8).toString()) + random(5).toString()) + random(5).toString()) + random(4).toString()) + random(5).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=120", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore3(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.playerName;
_root.playerNameSave = _root.pausescreen.playerName;
Tosend.score = _root.counter.kill;
Tosend.gameId = "99";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(3).toString() + random(2).toString()) + random(5).toString()) + random(9).toString()) + random(8).toString()) + random(1).toString()) + random(7).toString()) + random(7).toString()) + random(5).toString()) + random(7).toString()) + random(7).toString()) + random(3).toString()) + random(2).toString()) + random(6).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(8).toString()) + random(4).toString()) + random(0).toString()) + random(7).toString()) + random(6).toString()) + random(7).toString()) + random(4).toString()) + random(0).toString()) + random(6).toString()) + random(4).toString()) + random(6).toString()) + random(6).toString()) + random(2).toString()) + random(8).toString()) + random(0).toString()) + random(5).toString()) + random(3).toString()) + random(9).toString()) + random(4).toString()) + random(5).toString()) + random(6).toString()) + random(1).toString()) + random(0).toString()) + random(4).toString()) + random(9).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(7).toString()) + random(5).toString()) + random(9).toString()) + random(5).toString()) + random(0).toString()) + random(0).toString()) + random(3).toString()) + random(7).toString()) + random(7).toString()) + random(8).toString()) + random(7).toString()) + random(4).toString()) + random(2).toString()) + random(4).toString()) + random(0).toString()) + random(5).toString()) + random(2).toString()) + random(1).toString()) + random(1).toString()) + random(6).toString()) + random(0).toString()) + random(6).toString()) + random(1).toString()) + random(7).toString()) + random(7).toString()) + random(1).toString()) + random(1).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(2).toString()) + random(2).toString()) + random(4).toString()) + random(2).toString()) + random(8).toString()) + random(4).toString()) + random(2).toString()) + random(1).toString()) + random(1).toString()) + random(0).toString()) + random(9).toString()) + random(9).toString()) + random(4).toString()) + random(2).toString()) + random(3).toString()) + random(5).toString()) + random(8).toString()) + random(5).toString()) + random(6).toString()) + random(9).toString()) + random(1).toString()) + random(7).toString()) + random(6).toString()) + random(2).toString()) + random(5).toString()) + random(4).toString()) + random(4).toString()) + random(6).toString()) + random(1).toString()) + random(0).toString()) + random(5).toString()) + random(3).toString()) + random(2).toString()) + random(9).toString()) + random(5).toString()) + random(0).toString()) + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(6).toString()) + random(8).toString()) + random(1).toString()) + random(5).toString()) + random(2).toString()) + random(3).toString()) + random(8).toString()) + random(7).toString()) + random(2).toString()) + random(4).toString()) + random(3).toString()) + random(1).toString()) + random(6).toString()) + random(1).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=99", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore4(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.playerName;
_root.playerNameSave = _root.pausescreen.playerName;
Tosend.score = _root.counter.kill;
Tosend.gameId = "100";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(0).toString() + random(0).toString()) + random(8).toString()) + random(9).toString()) + random(9).toString()) + random(7).toString()) + random(0).toString()) + random(2).toString()) + random(2).toString()) + random(5).toString()) + random(8).toString()) + random(8).toString()) + random(9).toString()) + random(9).toString()) + random(9).toString()) + random(0).toString()) + random(7).toString()) + random(5).toString()) + random(9).toString()) + random(2).toString()) + random(8).toString()) + random(8).toString()) + random(8).toString()) + random(2).toString()) + random(4).toString()) + random(6).toString()) + random(1).toString()) + random(8).toString()) + random(9).toString()) + random(3).toString()) + random(9).toString()) + random(9).toString()) + random(3).toString()) + random(8).toString()) + random(9).toString()) + random(2).toString()) + random(5).toString()) + random(0).toString()) + random(5).toString()) + random(8).toString()) + random(5).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(0).toString()) + random(1).toString()) + random(4).toString()) + random(3).toString()) + random(0).toString()) + random(2).toString()) + random(2).toString()) + random(2).toString()) + random(7).toString()) + random(8).toString()) + random(3).toString()) + random(5).toString()) + random(8).toString()) + random(7).toString()) + random(4).toString()) + random(7).toString()) + random(1).toString()) + random(3).toString()) + random(7).toString()) + random(4).toString()) + random(9).toString()) + random(7).toString()) + random(9).toString()) + random(7).toString()) + random(3).toString()) + random(3).toString()) + random(3).toString()) + random(8).toString()) + random(6).toString()) + random(0).toString()) + random(4).toString()) + random(7).toString()) + random(2).toString()) + random(9).toString()) + random(1).toString()) + random(2).toString()) + random(2).toString()) + random(3).toString()) + random(5).toString()) + random(9).toString()) + random(1).toString()) + random(8).toString()) + random(4).toString()) + random(0).toString()) + random(6).toString()) + random(9).toString()) + random(7).toString()) + random(7).toString()) + random(3).toString()) + random(5).toString()) + random(2).toString()) + random(2).toString()) + random(3).toString()) + random(1).toString()) + random(9).toString()) + random(6).toString()) + random(5).toString()) + random(3).toString()) + random(5).toString()) + random(2).toString()) + random(3).toString()) + random(9).toString()) + random(0).toString()) + random(5).toString()) + random(8).toString()) + random(1).toString()) + random(8).toString()) + random(1).toString()) + random(5).toString()) + random(3).toString()) + random(0).toString()) + random(7).toString()) + random(2).toString()) + random(5).toString()) + random(7).toString()) + random(8).toString()) + random(5).toString()) + random(5).toString()) + random(6).toString()) + random(8).toString()) + random(0).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=100", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore5(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.name;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.playerName = playerNameSave;
mySharedObject.flush();
_root.playerNameSave = _root.pausescreen.name;
Tosend.score = _root.kill;
Tosend.gameId = "169";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(6).toString() + random(7).toString()) + random(2).toString()) + random(2).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(3).toString()) + random(8).toString()) + random(8).toString()) + random(3).toString()) + random(6).toString()) + random(3).toString()) + random(9).toString()) + random(1).toString()) + random(7).toString()) + random(0).toString()) + random(5).toString()) + random(7).toString()) + random(6).toString()) + random(0).toString()) + random(5).toString()) + random(0).toString()) + random(1).toString()) + random(5).toString()) + random(0).toString()) + random(5).toString()) + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(1).toString()) + random(0).toString()) + random(4).toString()) + random(5).toString()) + random(9).toString()) + random(8).toString()) + random(4).toString()) + random(3).toString()) + random(1).toString()) + random(3).toString()) + random(2).toString()) + random(4).toString()) + random(0).toString()) + random(5).toString()) + random(3).toString()) + random(1).toString()) + random(2).toString()) + random(3).toString()) + random(6).toString()) + random(0).toString()) + random(0).toString()) + random(7).toString()) + random(5).toString()) + random(0).toString()) + random(8).toString()) + random(1).toString()) + random(1).toString()) + random(4).toString()) + random(5).toString()) + random(9).toString()) + random(7).toString()) + random(7).toString()) + random(0).toString()) + random(1).toString()) + random(2).toString()) + random(0).toString()) + random(9).toString()) + random(7).toString()) + random(3).toString()) + random(1).toString()) + random(1).toString()) + random(5).toString()) + random(5).toString()) + random(1).toString()) + random(0).toString()) + random(9).toString()) + random(3).toString()) + random(3).toString()) + random(3).toString()) + random(0).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(9).toString()) + random(4).toString()) + random(6).toString()) + random(0).toString()) + random(5).toString()) + random(1).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(3).toString()) + random(6).toString()) + random(9).toString()) + random(6).toString()) + random(6).toString()) + random(9).toString()) + random(4).toString()) + random(9).toString()) + random(0).toString()) + random(6).toString()) + random(5).toString()) + random(6).toString()) + random(7).toString()) + random(6).toString()) + random(6).toString()) + random(1).toString()) + random(0).toString()) + random(9).toString()) + random(1).toString()) + random(4).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(7).toString()) + random(6).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(1).toString()) + random(8).toString()) + random(5).toString()) + random(5).toString()) + random(4).toString()) + random(5).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=169", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore6(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.playerName;
_root.playerNameSave = _root.pausescreen.playerName;
Tosend.score = _root.counter.kill;
Tosend.gameId = "101";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(8).toString() + random(5).toString()) + random(3).toString()) + random(2).toString()) + random(4).toString()) + random(4).toString()) + random(9).toString()) + random(2).toString()) + random(0).toString()) + random(7).toString()) + random(4).toString()) + random(3).toString()) + random(8).toString()) + random(9).toString()) + random(1).toString()) + random(1).toString()) + random(6).toString()) + random(1).toString()) + random(6).toString()) + random(6).toString()) + random(3).toString()) + random(9).toString()) + random(7).toString()) + random(7).toString()) + random(9).toString()) + random(1).toString()) + random(2).toString()) + random(6).toString()) + random(1).toString()) + random(0).toString()) + random(0).toString()) + random(9).toString()) + random(5).toString()) + random(4).toString()) + random(1).toString()) + random(0).toString()) + random(8).toString()) + random(0).toString()) + random(2).toString()) + random(8).toString()) + random(8).toString()) + random(7).toString()) + random(2).toString()) + random(6).toString()) + random(7).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(5).toString()) + random(4).toString()) + random(9).toString()) + random(9).toString()) + random(4).toString()) + random(6).toString()) + random(7).toString()) + random(4).toString()) + random(8).toString()) + random(0).toString()) + random(0).toString()) + random(9).toString()) + random(0).toString()) + random(1).toString()) + random(8).toString()) + random(5).toString()) + random(5).toString()) + random(9).toString()) + random(5).toString()) + random(3).toString()) + random(0).toString()) + random(8).toString()) + random(2).toString()) + random(8).toString()) + random(6).toString()) + random(5).toString()) + random(5).toString()) + random(3).toString()) + random(9).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(7).toString()) + random(5).toString()) + random(5).toString()) + random(2).toString()) + random(2).toString()) + random(3).toString()) + random(6).toString()) + random(0).toString()) + random(4).toString()) + random(6).toString()) + random(9).toString()) + random(4).toString()) + random(8).toString()) + random(7).toString()) + random(0).toString()) + random(3).toString()) + random(7).toString()) + random(6).toString()) + random(7).toString()) + random(8).toString()) + random(4).toString()) + random(0).toString()) + random(6).toString()) + random(0).toString()) + random(5).toString()) + random(1).toString()) + random(4).toString()) + random(5).toString()) + random(5).toString()) + random(0).toString()) + random(1).toString()) + random(3).toString()) + random(6).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(0).toString()) + random(2).toString()) + random(8).toString()) + random(4).toString()) + random(9).toString()) + random(7).toString()) + random(9).toString()) + random(7).toString()) + random(5).toString()) + random(9).toString()) + random(1).toString()) + random(3).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=101", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore7(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.playerName;
_root.playerNameSave = _root.pausescreen.playerName;
Tosend.score = _root.counter.kill;
Tosend.gameId = "102";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(5).toString() + random(0).toString()) + random(4).toString()) + random(2).toString()) + random(2).toString()) + random(7).toString()) + random(1).toString()) + random(5).toString()) + random(3).toString()) + random(7).toString()) + random(3).toString()) + random(5).toString()) + random(9).toString()) + random(5).toString()) + random(9).toString()) + random(3).toString()) + random(6).toString()) + random(8).toString()) + random(1).toString()) + random(3).toString()) + random(9).toString()) + random(0).toString()) + random(2).toString()) + random(5).toString()) + random(5).toString()) + random(1).toString()) + random(8).toString()) + random(2).toString()) + random(0).toString()) + random(7).toString()) + random(6).toString()) + random(5).toString()) + random(7).toString()) + random(1).toString()) + random(8).toString()) + random(0).toString()) + random(8).toString()) + random(0).toString()) + random(5).toString()) + random(2).toString()) + random(7).toString()) + random(9).toString()) + random(7).toString()) + random(7).toString()) + random(4).toString()) + random(7).toString()) + random(0).toString()) + random(1).toString()) + random(5).toString()) + random(1).toString()) + random(5).toString()) + random(5).toString()) + random(1).toString()) + random(8).toString()) + random(0).toString()) + random(7).toString()) + random(0).toString()) + random(8).toString()) + random(0).toString()) + random(0).toString()) + random(5).toString()) + random(7).toString()) + random(6).toString()) + random(3).toString()) + random(8).toString()) + random(4).toString()) + random(3).toString()) + random(7).toString()) + random(5).toString()) + random(9).toString()) + random(9).toString()) + random(2).toString()) + random(8).toString()) + random(7).toString()) + random(0).toString()) + random(3).toString()) + random(4).toString()) + random(0).toString()) + random(4).toString()) + random(0).toString()) + random(2).toString()) + random(0).toString()) + random(5).toString()) + random(4).toString()) + random(8).toString()) + random(5).toString()) + random(2).toString()) + random(8).toString()) + random(4).toString()) + random(2).toString()) + random(9).toString()) + random(9).toString()) + random(9).toString()) + random(5).toString()) + random(3).toString()) + random(7).toString()) + random(0).toString()) + random(7).toString()) + random(4).toString()) + random(5).toString()) + random(6).toString()) + random(4).toString()) + random(8).toString()) + random(4).toString()) + random(1).toString()) + random(9).toString()) + random(8).toString()) + random(5).toString()) + random(0).toString()) + random(3).toString()) + random(6).toString()) + random(2).toString()) + random(3).toString()) + random(1).toString()) + random(7).toString()) + random(2).toString()) + random(7).toString()) + random(9).toString()) + random(1).toString()) + random(1).toString()) + random(2).toString()) + random(0).toString()) + random(0).toString()) + random(1).toString()) + random(5).toString()) + random(4).toString()) + random(9).toString()) + random(6).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=102", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScore8(playerName, playerScore) {
_root.pausescreen.hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pausescreen.playerName;
_root.playerNameSave = _root.pausescreen.playerName;
Tosend.score = _root.counter.kill;
Tosend.gameId = "103";
Tosend.gameVersion = gameVer;
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(2).toString() + random(7).toString()) + random(8).toString()) + random(0).toString()) + random(4).toString()) + random(2).toString()) + random(8).toString()) + random(3).toString()) + random(1).toString()) + random(8).toString()) + random(5).toString()) + random(3).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(5).toString()) + random(0).toString()) + random(0).toString()) + random(0).toString()) + random(0).toString()) + random(0).toString()) + random(4).toString()) + random(6).toString()) + random(5).toString()) + random(7).toString()) + random(3).toString()) + random(7).toString()) + random(3).toString()) + random(2).toString()) + random(9).toString()) + random(8).toString()) + random(5).toString()) + random(6).toString()) + random(7).toString()) + random(6).toString()) + random(0).toString()) + random(0).toString()) + random(4).toString()) + random(3).toString()) + random(1).toString()) + random(3).toString()) + random(9).toString()) + random(5).toString()) + random(6).toString()) + random(6).toString()) + random(0).toString()) + random(1).toString()) + random(6).toString()) + random(0).toString()) + random(2).toString()) + random(7).toString()) + random(0).toString()) + random(6).toString()) + random(3).toString()) + random(5).toString()) + random(4).toString()) + random(6).toString()) + random(3).toString()) + random(7).toString()) + random(9).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(9).toString()) + random(3).toString()) + random(2).toString()) + random(0).toString()) + random(3).toString()) + random(7).toString()) + random(4).toString()) + random(5).toString()) + random(0).toString()) + random(3).toString()) + random(0).toString()) + random(6).toString()) + random(9).toString()) + random(0).toString()) + random(8).toString()) + random(6).toString()) + random(1).toString()) + random(1).toString()) + random(3).toString()) + random(2).toString()) + random(8).toString()) + random(6).toString()) + random(7).toString()) + random(2).toString()) + random(3).toString()) + random(1).toString()) + random(0).toString()) + random(3).toString()) + random(5).toString()) + random(6).toString()) + random(8).toString()) + random(4).toString()) + random(0).toString()) + random(0).toString()) + random(4).toString()) + random(3).toString()) + random(8).toString()) + random(8).toString()) + random(9).toString()) + random(8).toString()) + random(2).toString()) + random(0).toString()) + random(5).toString()) + random(1).toString()) + random(0).toString()) + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(5).toString()) + random(1).toString()) + random(4).toString()) + random(3).toString()) + random(8).toString()) + random(2).toString()) + random(5).toString()) + random(2).toString()) + random(4).toString()) + random(6).toString()) + random(5).toString()) + random(9).toString()) + random(2).toString()) + random(4).toString()) + random(3).toString()) + random(3).toString()) + random(4).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
_root.pausescreen.hsOutput.text = "Sent!";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=103", "_BLANK");
} else if (this.ok == 0) {
_root.pausescreen.hsOutput.text = "Error Submitting Score.";
} else if (this.ok == 2) {
_root.pausescreen.hsOutput.text = "Invalid Game Version.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
mySharedObject = SharedObject.getLocal("userData");
file = mySharedObject.data.file;
if (_root.file == true) {
beaten = mySharedObject.data.beaten;
playerNameSave = mySharedObject.data.playerName;
} else {
_root.beaten = 0;
playerNameSave = "Enter Name Here";
file = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = beaten;
mySharedObject.data.playerName = playerNameSave;
mySharedObject.data.file = file;
mySharedObject.flush();
}
lvSt = 0;
Mouse.show();
multiplier = random(200) + 1;
gameVer = 1;
Instance of Symbol 83 MovieClip in Frame 3
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
Instance of Symbol 113 MovieClip in Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.5);
}
Instance of Symbol 121 MovieClip in Frame 3
on (release) {
getURL ("http://www.crazymonkeygames.com", _blank);
}
Frame 5
kill = 0;
health = 100;
m = random(50) + 1;
stop();
time = "";
k = 0;
Instance of Symbol 366 MovieClip "ground" in Frame 5
onClipEvent (load) {
modifier = 0;
yModifier = 0;
}
onClipEvent (enterFrame) {
while (((character._x + _x) > (275 + modifier)) && (_x > (384 + modifier))) {
_x = (_x - 1);
}
while (((character._x + _x) < (275 + modifier)) && (_x < (996 + modifier))) {
_x = (_x + 1);
}
while (((character._y + _y) > (200 + yModifier)) && (_y > (240 + yModifier))) {
_y = (_y - 1);
}
while (((character._y + _y) < (200 + yModifier)) && (_y < (1001 + yModifier))) {
_y = (_y + 1);
}
if (_x < 384) {
_x = 384;
}
if (_x > 996) {
_x = 996;
}
if (_y < 240) {
_y = 240;
}
if (_y > 1001) {
_y = 1001;
}
_x = (_x + modifier);
_y = (_y + yModifier);
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
_root.health = character.health;
}
Instance of Symbol 402 MovieClip in Frame 5
onClipEvent (load) {
_root.pause = false;
pReady = true;
}
onClipEvent (enterFrame) {
if (((Key.isDown(80) && (pReady == true)) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
if (_root.pause == false) {
_root.pause = true;
gotoAndStop (2);
} else {
_root.pause = false;
gotoAndStop (1);
}
pReady = false;
}
if (!Key.isDown(80)) {
pReady = true;
}
if ((_root.ground.character.health < 1) && (_currentframe < 3)) {
_root.sfx.gotoAndPlay(16);
gotoAndStop (4);
_root.pause = true;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _root.ground.character._x;
_root.ground["spark" + _root.ground.character.i]._y = _root.ground.character._y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.character.removeMovieClip("");
}
}
Instance of Symbol 405 MovieClip "countDown" in Frame 5
onClipEvent (load) {
_root.time = "";
kTal = 0;
level = _root.lvSt;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
obj0 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "1", newline, "I", "n", "d", "u", "c", "t", "i", "o", "n", " ", "o", "f", " ", "E", "v", "i", "l", ":", " ", "K", "i", "l", "l", " ", "1", "0", "0", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj1 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "2", newline, "R", "e", "d", " ", "S", "c", "a", "r", "e", ":", " ", "K", "i", "l", "l", " ", "5", "0", " ", "R", "e", "d", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj2 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "3", newline, "R", "e", "d", " ", "O", "v", "e", "r", "l", "o", "r", "d", ":", " ", "K", "i", "l", "l", " ", "R", "e", "d", " ", "B", "o", "s", "s");
obj3 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "4", newline, "E", "x", "p", "l", "o", "s", "i", "v", "e", " ", "R", "e", "s", "u", "l", "t", "s", ":", " ", "K", "i", "l", "l", " ", "2", "0", "0", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj4 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "5", newline, "W", "a", "l", "l", "s", " ", "E", "l", "e", "c", "t", "r", "i", "f", "i", "e", "d", ":", " ", "K", "i", "l", "l", " ", "1", "0", "0", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj5 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "6", newline, "B", "o", "m", "b", "s", " ", "A", "w", "a", "y", ":", " ", "K", "i", "l", "l", " ", "1", "5", "0", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj6 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "7", newline, "B", "o", "m", "b", " ", "B", "o", "s", "s", ":", " ", "K", "i", "l", "l", " ", "T", "h", "e", " ", "E", "x", "p", "l", "o", "s", "i", "v", "e", " ", "O", "v", "e", "r", "l", "o", "r", "d");
obj7 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "8", newline, "F", "i", "n", "a", "l", " ", "T", "h", "r", "o", "w", "s", ":", " ", "S", "u", "r", "v", "i", "v", "e", " ", "5", " ", "M", "i", "n", "u", "t", "e", "s");
letter = 0;
inBetweenTimer = 0;
name = "";
time = 0;
_alpha = 0;
scaleMode = 3;
alTimer = 0;
totalKill = 0;
if (level == 0) {
maxKillCount = 100;
} else if (level == 1) {
maxKillCount = 50;
} else if (level == 2) {
maxKillCount = 0;
} else if (level == 3) {
maxKillCount = 200;
} else if (level == 4) {
maxKillCount = 100;
} else if (level == 5) {
maxKillCount = 150;
} else if (level == 6) {
maxKillCount = 1;
} else if (level == 7) {
maxKillCount = 1;
}
rKill = 0;
bKill = 0;
sevenTimer = 0;
}
onClipEvent (enterFrame) {
_root.kill = _root.k / _root.multiplier;
if (level == 0) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 2) {
mySharedObject.data.beaten = 1;
mySharedObject.flush();
}
level = 1;
maxKillCount = 50;
}
} else if (level == 1) {
if (rKill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
rKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 3) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 2;
mySharedObject.flush();
}
level = 2;
maxKillCount = 0;
}
} else if (level == 2) {
if ((bKill == 1) && (_root.ground.dup.enemyCount == 0)) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
rKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 4) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 3;
mySharedObject.flush();
}
level = 3;
maxKillCount = 200;
}
} else if (level == 3) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 5) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 4;
mySharedObject.flush();
}
level = 4;
maxKillCount = 100;
}
} else if (level == 4) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 6) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 5;
mySharedObject.flush();
}
level = 5;
maxKillCount = 150;
}
} else if (level == 5) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 7) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 6;
mySharedObject.flush();
}
level = 6;
maxKillCount = 1;
}
} else if (level == 6) {
if ((_root.ground.dup.enemyCount < 1) && (bKill == 1)) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 8) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 7;
mySharedObject.flush();
}
level = 7;
maxKillCount = 1;
}
} else if (level == 7) {
if (_root.pause == false) {
sevenTimer = sevenTimer + 1;
remainingTime = 9000 - sevenTimer;
minute = 0;
second = 0;
while (remainingTime > 1800) {
remainingTime = remainingTime - 1800;
minute = minute + 1;
}
while (remainingTime > 30) {
remainingTime = remainingTime - 30;
second = second + 1;
}
_root.time = (minute + ":") + second;
}
if (sevenTimer > 9000) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal, newline, "T", "o", "t", "a", "l", " ", "K", "i", "l", "l", "s", ":", totalKill);
_root.k = 0;
_root.kill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 9) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 8;
mySharedObject.flush();
}
level = 8;
_root.pause = true;
maxKillCount = 1;
}
}
if (inBetweenTimer > 1) {
_alpha = 100;
inBetweenTimer = inBetweenTimer - 1;
tArray = lvlComplete;
time = time + 1;
if (time > 1) {
time = 0;
}
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
}
} else if (inBetweenTimer == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
time = 0;
_alpha = 0;
alTimer = 0;
letter = 0;
inBetweenTimer = 0;
if (level == 8) {
_root.lvSt = 8;
stopAllSounds();
_root.gotoAndStop(6);
}
}
}
if (alTimer < 120) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time = time + 1;
if (time > 1) {
time = 0;
}
tArray = eval ("obj" + level);
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
} else {
alTimer = alTimer + 1;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
}
}
Instance of Symbol 407 MovieClip "bar" in Frame 5
onClipEvent (enterFrame) {
_xscale = _root.health;
_root.hud2.gotoAndStop(_root.meh.length);
}
Instance of Symbol 432 MovieClip "sfx" in Frame 5
onClipEvent (load) {
gotoAndPlay (50);
}
Instance of Symbol 436 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Frame 6
stop();
time = "";
k = 0;
Instance of Symbol 454 MovieClip "ground" in Frame 6
onClipEvent (load) {
modifier = 0;
yModifier = 0;
}
onClipEvent (enterFrame) {
while (((character._x + _x) > (275 + modifier)) && (_x > (384 + modifier))) {
_x = (_x - 1);
}
while (((character._x + _x) < (275 + modifier)) && (_x < (996 + modifier))) {
_x = (_x + 1);
}
while (((character._y + _y) > (200 + yModifier)) && (_y > (240 + yModifier))) {
_y = (_y - 1);
}
while (((character._y + _y) < (200 + yModifier)) && (_y < (1001 + yModifier))) {
_y = (_y + 1);
}
if (_x < 384) {
_x = 384;
}
if (_x > 996) {
_x = 996;
}
if (_y < 240) {
_y = 240;
}
if (_y > 1001) {
_y = 1001;
}
_x = (_x + modifier);
_y = (_y + yModifier);
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
_root.health = character.health;
}
Instance of Symbol 402 MovieClip in Frame 6
onClipEvent (load) {
_root.pause = false;
pReady = true;
}
onClipEvent (enterFrame) {
if (((Key.isDown(80) && (pReady == true)) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
if (_root.pause == false) {
_root.pause = true;
gotoAndStop (2);
} else {
_root.pause = false;
gotoAndStop (1);
}
pReady = false;
}
if (!Key.isDown(80)) {
pReady = true;
}
if ((_root.ground.character.health < 1) && (_currentframe < 3)) {
gotoAndStop (4);
_root.sfx.gotoAndPlay(16);
_root.pause = true;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _root.ground.character._x;
_root.ground["spark" + _root.ground.character.i]._y = _root.ground.character._y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.character.removeMovieClip("");
}
}
Instance of Symbol 405 MovieClip "countDown" in Frame 6
onClipEvent (load) {
kTal = 0;
_root.kill = 0;
level = _root.lvSt;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
obj8 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "0", "9", newline, "I", "n", "f", "e", "r", "n", "a", "l", " ", "A", "f", "f", "a", "i", "r", "s", ":", " ", "K", "i", "l", "l", " ", "2", "0", "0", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj9 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "1", "0", newline, "A", "n", " ", "E", "n", "e", "m", "y", " ", "D", "i", "v", "i", "d", "e", "d", ":", "K", "i", "l", "l", " ", "A", "l", "l", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj10 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "1", "1", newline, "R", "e", "d", " ", "R", "e", "t", "u", "r", "n", ":", " ", "K", "i", "l", "l", " ", "R", "e", "d", " ", "O", "p", "p", "o", "n", "e", "n", "t", "s");
obj11 = new Array("O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "1", "2", newline, "S", "u", "r", "v", "i", "v", "a", "l", " ", "2", ":", " ", "S", "u", "r", "v", "i", "v", "e", " ", "10", " ", "M", "i", "n", "u", "t", "e", "s");
letter = 0;
inBetweenTimer = 0;
name = "";
time = 0;
_alpha = 0;
scaleMode = 3;
alTimer = 0;
totalKill = 0;
if (level == 8) {
maxKillCount = 200;
} else if (level == 9) {
maxKillCount = 64;
} else if (level == 10) {
maxKillCount = 100;
} else if (level == 11) {
maxKillCount = 1;
}
rKill = 0;
bKill = 0;
sevenTimer = 0;
}
onClipEvent (enterFrame) {
if (level == 8) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.kill = 0;
_root.k = 0;
rKill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 10) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 9;
mySharedObject.flush();
}
level = 9;
maxKillCount = 64;
}
} else if (level == 9) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.kill = 0;
_root.k = 0;
rKill = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 11) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 10;
mySharedObject.flush();
}
level = 10;
maxKillCount = 100;
}
} else if (level == 10) {
if (_root.kill >= maxKillCount) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 150;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
_root.kill = 0;
_root.k = 0;
mySharedObject = SharedObject.getLocal("userData");
beaten = mySharedObject.data.beaten;
if (beaten < 12) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 11;
mySharedObject.flush();
}
level = 11;
maxKillCount = 1;
}
} else if (level == 11) {
if (_root.pause == false) {
sevenTimer = sevenTimer + 1;
remainingTime = 18000 - sevenTimer;
minute = 0;
second = 0;
while (remainingTime > 1800) {
remainingTime = remainingTime - 1800;
minute = minute + 1;
}
while (remainingTime > 30) {
remainingTime = remainingTime - 30;
second = second + 1;
}
_root.time = (minute + ":") + second;
}
if (sevenTimer > 18000) {
totalKill = totalKill + _root.kill;
inBetweenTimer = 180;
letter = 0;
bKill = 0;
kTal = _root.kill;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal, newline, "T", "o", "t", "a", "l", " ", "K", "i", "l", "l", "s", ":", totalKill, newline, "O", "b", "j", "e", "c", "t", "i", "v", "e", " ", "M", "o", "d", "e", " ", "C", "o", "m", "p", "l", "e", "t", "e");
_root.kill = 0;
_root.k = 0;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.beaten = 13;
mySharedObject.flush();
level = 12;
maxKillCount = 1;
_root.pause = true;
}
}
if (inBetweenTimer > 1) {
_alpha = 100;
inBetweenTimer = inBetweenTimer - 1;
tArray = lvlComplete;
time = time + 1;
if (time > 1) {
time = 0;
}
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
}
} else if (inBetweenTimer == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
time = 0;
_alpha = 0;
alTimer = 0;
letter = 0;
inBetweenTimer = 0;
if (level == 12) {
stopAllSounds();
_root.gotoAndStop(7);
}
}
}
if (alTimer < 120) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time = time + 1;
if (time > 1) {
time = 0;
}
tArray = eval ("obj" + level);
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
} else {
alTimer = alTimer + 1;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
}
}
Instance of Symbol 432 MovieClip "sfx" in Frame 6
onClipEvent (load) {
gotoAndPlay (54);
}
Frame 7
k = 0;
Instance of Symbol 466 MovieClip "ground" in Frame 7
onClipEvent (load) {
modifier = 0;
yModifier = 0;
}
onClipEvent (enterFrame) {
while (((character._x + _x) > (275 + modifier)) && (_x > (384 + modifier))) {
_x = (_x - 1);
}
while (((character._x + _x) < (275 + modifier)) && (_x < (996 + modifier))) {
_x = (_x + 1);
}
while (((character._y + _y) > (200 + yModifier)) && (_y > (240 + yModifier))) {
_y = (_y - 1);
}
while (((character._y + _y) < (200 + yModifier)) && (_y < (1001 + yModifier))) {
_y = (_y + 1);
}
if (_x < 384) {
_x = 384;
}
if (_x > 996) {
_x = 996;
}
if (_y < 240) {
_y = 240;
}
if (_y > 1001) {
_y = 1001;
}
_x = (_x + modifier);
_y = (_y + yModifier);
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
_root.health = character.health;
}
Instance of Symbol 402 MovieClip "pausescreen" in Frame 7
onClipEvent (load) {
_root.pause = false;
pReady = true;
}
onClipEvent (enterFrame) {
if ((((Key.isDown(80) && (pReady == true)) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) && (_currentframe < 3)) {
if (_root.pause == false) {
_root.pause = true;
gotoAndStop (2);
} else {
_root.pause = false;
gotoAndStop (1);
}
pReady = false;
}
if (!Key.isDown(80)) {
pReady = true;
}
if ((_root.ground.character.health < 1) && (_currentframe < 3)) {
gotoAndStop (3);
_root.sfx.gotoAndPlay(16);
_root.pause = true;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _root.ground.character._x;
_root.ground["spark" + _root.ground.character.i]._y = _root.ground.character._y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.character.removeMovieClip("");
}
}
Instance of Symbol 405 MovieClip "countDown" in Frame 7
onClipEvent (load) {
kTal = 0;
_root.kill = 0;
level = 13;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
obj13 = new Array("S", "u", "r", "v", "i", "v", "a", "l", " ", "M", "o", "d", "e");
letter = 0;
inBetweenTimer = 0;
name = "";
time = 0;
_alpha = 0;
scaleMode = 3;
alTimer = 0;
totalKill = 0;
maxKillCount = 200;
rKill = 0;
bKill = 0;
sevenTimer = 0;
}
onClipEvent (enterFrame) {
if (inBetweenTimer > 1) {
_alpha = 100;
inBetweenTimer = inBetweenTimer - 1;
tArray = lvlComplete;
time = time + 1;
if (time > 1) {
time = 0;
}
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
}
} else if (inBetweenTimer == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
time = 0;
_alpha = 0;
alTimer = 0;
letter = 0;
inBetweenTimer = 0;
}
}
if (alTimer < 120) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time = time + 1;
if (time > 1) {
time = 0;
}
tArray = eval ("obj" + level);
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
} else {
alTimer = alTimer + 1;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
}
}
Instance of Symbol 432 MovieClip "sfx" in Frame 7
onClipEvent (load) {
gotoAndPlay (52);
}
Frame 8
k = 0;
Instance of Symbol 470 MovieClip "ground" in Frame 8
onClipEvent (load) {
modifier = 0;
yModifier = 0;
}
onClipEvent (enterFrame) {
while (((character._x + _x) > (275 + modifier)) && (_x > (384 + modifier))) {
_x = (_x - 1);
}
while (((character._x + _x) < (275 + modifier)) && (_x < (996 + modifier))) {
_x = (_x + 1);
}
while (((character._y + _y) > (200 + yModifier)) && (_y > (240 + yModifier))) {
_y = (_y - 1);
}
while (((character._y + _y) < (200 + yModifier)) && (_y < (1001 + yModifier))) {
_y = (_y + 1);
}
if (_x < 384) {
_x = 384;
}
if (_x > 996) {
_x = 996;
}
if (_y < 240) {
_y = 240;
}
if (_y > 1001) {
_y = 1001;
}
_x = (_x + modifier);
_y = (_y + yModifier);
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
_root.health = character.health;
}
Instance of Symbol 405 MovieClip "countDown" in Frame 8
onClipEvent (load) {
kTal = 0;
level = 13;
_root.kill = 0;
lvlComplete = new Array("L", "e", "v", "e", "l", " ", "C", "o", "m", "p", "l", "e", "t", "e", newline, "K", "i", "l", "l", "s", ":", " ", kTal);
obj13 = new Array("S", "u", "r", "v", "i", "v", "a", "l", " ", "M", "o", "d", "e");
letter = 0;
inBetweenTimer = 0;
name = "";
time = 0;
_alpha = 0;
scaleMode = 3;
alTimer = 0;
totalKill = 0;
maxKillCount = 200;
rKill = 0;
bKill = 0;
sevenTimer = 0;
}
onClipEvent (enterFrame) {
if (inBetweenTimer > 1) {
_alpha = 100;
inBetweenTimer = inBetweenTimer - 1;
tArray = lvlComplete;
time = time + 1;
if (time > 1) {
time = 0;
}
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
}
} else if (inBetweenTimer == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
time = 0;
_alpha = 0;
alTimer = 0;
letter = 0;
inBetweenTimer = 0;
}
}
if (alTimer < 120) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time = time + 1;
if (time > 1) {
time = 0;
}
tArray = eval ("obj" + level);
if ((letter < tArray.length) && (time == 1)) {
name = name + tArray[letter];
letter = letter + 1;
} else {
alTimer = alTimer + 1;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
name = "";
}
}
Instance of Symbol 432 MovieClip "sfx" in Frame 8
onClipEvent (load) {
gotoAndPlay (50);
}
Frame 9
k = 0;
Instance of Symbol 474 MovieClip "ground" in Frame 9
onClipEvent (load) {
modifier = 0;
yModifier = 0;
}
onClipEvent (enterFrame) {
while (((character._x + _x) > (275 + modifier)) && (_x > (384 + modifier))) {
_x = (_x - 1);
}
while (((character._x + _x) < (275 + modifier)) && (_x < (996 + modifier))) {
_x = (_x + 1);
}
while (((character._y + _y) > (200 + yModifier)) && (_y > (240 + yModifier))) {
_y = (_y - 1);
}
while (((character._y + _y) < (200 + yModifier)) && (_y < (1001 + yModifier))) {
_y = (_y + 1);
}
if (_x < 384) {
_x = 384;
}
if (_x > 996) {
_x = 996;
}
if (_y < 240) {
_y = 240;
}
if (_y > 1001) {
_y = 1001;
}
_x = (_x + modifier);
_y = (_y + yModifier);
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
_root.health = character.health;
}
Instance of Symbol 432 MovieClip "sfx" in Frame 9
onClipEvent (load) {
gotoAndPlay (54);
}
Symbol 36 Button
on (release) {
_root.nextFrame();
}
Symbol 37 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (enterFrame) {
bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if ((bar._xscale == 100) && (_parent._parent._currentframe == 81)) {
_parent.nextFrame();
}
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 23 MovieClip in Symbol 53 MovieClip Frame 1
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 53 MovieClip Frame 81
stop();
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 81
onClipEvent (enterFrame) {
chance = random(90);
if (chance == 1) {
play();
}
}
Instance of Symbol 61 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 63 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 5
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 6
stop();
Instance of Symbol 73 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 68 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
stX = _x;
stY = _y;
}
onClipEvent (enterFrame) {
_alpha = random(50);
_x = ((stX + random(20)) - 10);
_y = ((stY + random(20)) - 10);
_xscale = (random(75) + 75);
_yscale = (random(75) + 75);
}
Symbol 95 Button
on (release) {
if (_root.beaten == 0) {
_root.lvSt = 0;
stopAllSounds();
_root.gotoAndStop(5);
} else {
_root.menu.gotoAndStop(_root.beaten + 2);
if (_root.menu._currentframe > 13) {
_root.menu.gotoAndStop(13);
}
}
}
Symbol 100 Button
on (release) {
if (_root.beaten >= 12) {
_root.menu.gotoAndStop(14);
} else {
_root.menu.gotoAndStop(15);
}
}
Symbol 106 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=169", "_BLANK");
}
Symbol 111 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", _blank);
}
Symbol 128 Button
on (release) {
gotoAndStop (1);
}
Symbol 133 Button
on (release) {
_root.lvSt = 0;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 137 Button
on (release) {
_root.lvSt = 1;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 141 Button
on (release) {
_root.lvSt = 2;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 146 Button
on (release) {
_root.lvSt = 3;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 151 Button
on (release) {
_root.lvSt = 4;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 156 Button
on (release) {
_root.lvSt = 5;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 161 Button
on (release) {
_root.lvSt = 6;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 166 Button
on (release) {
_root.lvSt = 7;
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 171 Button
on (release) {
_root.lvSt = 8;
stopAllSounds();
_root.gotoAndStop(6);
}
Symbol 176 Button
on (release) {
_root.lvSt = 9;
stopAllSounds();
_root.gotoAndStop(6);
}
Symbol 181 Button
on (release) {
_root.lvSt = 10;
stopAllSounds();
_root.gotoAndStop(6);
}
Symbol 186 Button
on (release) {
_root.lvSt = 11;
stopAllSounds();
_root.gotoAndStop(6);
}
Symbol 193 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(8);
}
Symbol 197 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(9);
}
Symbol 201 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(7);
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 9
stop();
Instance of Symbol 238 MovieClip in Symbol 289 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.debris, "debris" + _root.character.i, _root.character.i);
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_root.ground.stuff["debris" + _root.character.i]._x = (x - _root.ground._x) - _root.ground.stuff._x;
_root.ground.stuff["debris" + _root.character.i]._y = (y - _root.ground._y) - _root.ground.stuff._y;
_root.ground.stuff["debris" + _root.character.i]._xscale = random(100) + 50;
_root.ground.stuff["debris" + _root.character.i]._yscale = random(100) + 50;
_root.ground.stuff["debris" + _root.character.i]._rotation = random(360);
_root.ground.stuff["debris" + _root.character.i].gotoAndStop(random(35));
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["debris" + _root.character.i].removeMovieClip("");
_parent.removeMovieClip("");
}
Instance of Symbol 289 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
if (_parent._name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 289 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
if (_parent._name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 289 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
if (_parent._name != "spark") {
play();
} else {
stop();
}
}
Symbol 290 MovieClip Frame 11
removeMovieClip("");
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 312 MovieClip in Symbol 329 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 329 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 329 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 329 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 328 MovieClip in Symbol 329 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + 15);
_yscale = _xscale;
_alpha = (_alpha - 10);
}
Symbol 329 MovieClip Frame 20
removeMovieClip("");
Symbol 333 MovieClip Frame 8
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 3
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 3
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 3
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 3
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Symbol 342 MovieClip Frame 9
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 21
removeMovieClip("");
Symbol 342 MovieClip Frame 22
stop();
Symbol 342 MovieClip Frame 23
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.countDown.rKill = _root.countDown.rKill + 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 24
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 24
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 24
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 24
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Symbol 342 MovieClip Frame 30
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(2);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 42
removeMovieClip("");
Symbol 342 MovieClip Frame 43
if (_root._currentframe == 5) {
health = 150;
} else {
health = 20;
}
stop();
Symbol 342 MovieClip Frame 44
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.countDown.bKill = _root.countDown.bKill + 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Symbol 342 MovieClip Frame 51
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(3);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 63
removeMovieClip("");
Symbol 342 MovieClip Frame 64
stop();
Symbol 342 MovieClip Frame 65
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 65
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 65
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 65
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Instance of Symbol 312 MovieClip in Symbol 342 MovieClip Frame 65
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
Symbol 342 MovieClip Frame 72
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(4);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 84
removeMovieClip("");
Symbol 342 MovieClip Frame 85
stop();
Symbol 342 MovieClip Frame 86
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Symbol 342 MovieClip Frame 93
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 105
removeMovieClip("");
Symbol 342 MovieClip Frame 106
stop();
health = 150;
Symbol 342 MovieClip Frame 107
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.countDown.bKill = 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Symbol 342 MovieClip Frame 114
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(5);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 126
removeMovieClip("");
Symbol 342 MovieClip Frame 127
health = 150;
stop();
Symbol 342 MovieClip Frame 128
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.character.i]._xscale = random(100) + 150;
_root.ground.stuff["spark" + _root.character.i]._yscale = _root.ground.stuff["spark" + _root.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
Symbol 342 MovieClip Frame 135
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(3);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 147
removeMovieClip("");
Symbol 342 MovieClip Frame 148
stop();
health = 100;
Symbol 342 MovieClip Frame 149
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = (_x + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z]._y = (_y + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(158);
_root.ground.character.targets.push("enemy" + _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z].done = true;
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
n++;
}
Symbol 342 MovieClip Frame 156
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(6);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
removeMovieClip("");
Symbol 342 MovieClip Frame 157
removeMovieClip("");
Symbol 342 MovieClip Frame 158
health = 50;
Symbol 342 MovieClip Frame 159
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
n = 0;
while (n < 4) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = (_x + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z]._y = (_y + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(168);
_root.ground.character.targets.push("enemy" + _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z].done = true;
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
n++;
}
Symbol 342 MovieClip Frame 166
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(7);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 167
removeMovieClip("");
Symbol 342 MovieClip Frame 168
health = 25;
Symbol 342 MovieClip Frame 169
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount - 1;
n = 0;
while (n < 4) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = (_x + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z]._y = (_y + random(60)) - 30;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(1);
_root.ground.character.targets.push("enemy" + _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z].done = true;
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
n++;
}
Symbol 342 MovieClip Frame 176
_root.character.i++;
duplicateMovieClip (_root.ground.stuff.corpse1, "spark" + _root.character.i, _root.character.i);
_root.ground.stuff["spark" + _root.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.character.i]._rotation = _rotation;
_root.ground.stuff["spark" + _root.character.i].gotoAndStop(7);
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.character.i].removeMovieClip("");
Symbol 342 MovieClip Frame 177
removeMovieClip("");
Symbol 355 MovieClip Frame 1
stop();
Instance of Symbol 210 MovieClip "meh" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(1162.8, 1161.8, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_parent.flr);
_parent.flr.swapDepths(1005);
_parent.flr.removeMovieClip("");
}
Instance of Symbol 290 MovieClip "spark" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 307 MovieClip "bullet" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (enemyBullet != true) {
l = _root.ground.character.l;
if ((((l == 3) || (l == 6)) || (l == 9)) || (l == 12)) {
maxTime = 10;
} else if ((((l == 2) || (l == 5)) || (l == 8)) || (l == 11)) {
maxTime = 15;
} else if ((((l == 1) || (l == 4)) || (l == 7)) || (l == 10)) {
maxTime = 20;
}
}
rot = _rotation + 180;
speed = -20;
time = 0;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
_alpha = 100;
h = 0;
r = false;
mH = 1;
l = _root.ground.character.l;
if ((l > 3) && (l < 7)) {
mH = 2;
} else if ((l > 6) && (l < 10)) {
mH = 3;
} else if ((l > 9) && (l < 13)) {
mH = 1000;
r = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
time = time + 1;
if (time > maxTime) {
_alpha = (_alpha - 30);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (enemyBullet == true) {
if (_currentframe == 2) {
_x = (_x + (x / 2));
_y = (_y + (y / 2));
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
removeMovieClip("");
}
} else if (_currentframe == 3) {
_x = (_x + x);
_y = (_y + y);
x = x * 0.9;
y = y * 0.9;
if ((x < 0.5) && (y < 0.5)) {
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 100) {
_root.character.health = _root.character.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
} else if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
removeMovieClip("");
}
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
}
} else {
_x = (_x + x);
_y = (_y + y);
if (nf == true) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 60) {
tar.health = tar.health - 3;
}
m++;
}
removeMovieClip("");
}
if (_root.countDown.level != 6) {
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 20) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
h = h + 1;
tar.health = tar.health - 1;
if (h > mH) {
removeMovieClip("");
}
}
if ((r == true) && (h > 0)) {
nf = true;
}
m++;
}
} else {
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
if (tar._currentframe == 127) {
dNum = 30;
} else {
dNum = 60;
}
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < dNum) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
removeMovieClip("");
}
m++;
}
}
}
if ((((_y < -950) || (_x < -950)) || (_x > 117)) || (_y > 112)) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 342 MovieClip "dup" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
if (_name != "dup") {
if (_root.countDown.level == 0) {
gotoAndStop (1);
} else if (_root.countDown.level == 1) {
chance = random(2);
if (chance == 1) {
gotoAndStop (22);
} else {
gotoAndStop (1);
}
} else if (_root.countDown.level == 2) {
if (_parent.dup.bDone != true) {
gotoAndStop (43);
_parent.dup.bDone = true;
} else {
chance = random(2);
if (chance == 1) {
gotoAndStop (22);
} else {
gotoAndStop (1);
}
}
} else if ((_root.countDown.level == 3) || (_root.countDown.level == 4)) {
chance = random(3);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else {
gotoAndStop (1);
}
} else if (_root.countDown.level == 5) {
chance = random(4);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else {
gotoAndStop (1);
}
} else if (_root.countDown.level == 7) {
chance = random(4);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else {
gotoAndStop (1);
}
}
stFra = _currentframe;
cacheAsBitmap = true;
health = 3;
fraEvent = 29;
rotChange = random(20);
maxSpeed = random(3) + 2;
if (_y < -950) {
_y = -950;
}
if (_x < -950) {
_x = -950;
}
if (_y > 117) {
_y = 117;
}
if (_x > 117) {
_x = 117;
}
} else {
z = 90;
enemyCount = 0;
xSpawn = new Array(-655, -169, 137, 137, -172, -655, -977, -977);
ySpawn = new Array(-970, -970, -636, -167, 144, 144, -164, -636);
spNum = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "dup") {
if (done != true) {
if (_currentframe != 127) {
_name = ("enemy" + _parent.dup.z);
}
_root.ground.character.targets.push(_name);
done = true;
}
if (_currentframe == stFra) {
fraEvent = fraEvent + 1;
if (_currentframe == 1) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if ((_currentframe == 22) || (_currentframe == 85)) {
if (fraEvent == 30) {
shootChance = 0;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 60) {
speed = 0;
if (_currentframe == 22) {
shootChance = random(2);
} else {
shootChance = 1;
}
} else {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
if (_currentframe == 22) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.character.health = _root.ground.character.health - 1;
} else {
play();
_root.ground.character.health = _root.ground.character.health - 5;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
}
}
}
} else if (_currentframe == 43) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 64) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
}
}
} else if (_currentframe == 106) {
if (redDone != true) {
redArr = new Array();
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = _x;
_parent["enemy" + _root.ground.dup.z]._y = _y;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(127);
if (n == 0) {
_parent["enemy" + _root.ground.dup.z].rot = 180;
} else if (n == 1) {
_parent["enemy" + _root.ground.dup.z].rot = -60;
} else if (n == 2) {
_parent["enemy" + _root.ground.dup.z].rot = 60;
}
_parent["enemy" + _root.ground.dup.z].t = eval ("_root.ground." + _name);
redArr.push(eval (_root.ground["enemy" + _root.ground.dup.z]));
_root.ground.dup.spNum = _root.ground.dup.spNum + 1;
if (_root.ground.dup.spNum > 7) {
_root.ground.dup.spNum = 0;
}
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
n++;
}
fraEvent = 9;
redDone = true;
}
v = 0;
while (v < 3) {
tgt = redArr[v];
if (tgt.health > 0) {
health = 150;
}
v++;
}
shootChance = random(100) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
} else if (shootChance == 50) {
if (_root.ground.dup.enemyCount < 5) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "en", _root.ground.dup.z);
sd = 60;
xds = Math.sin(_rotation * (Math.PI/180)) * sd;
yds = (Math.cos(_rotation * (Math.PI/180)) * sd) * -1;
_parent.en._x = _x + xds;
_parent.en._y = _y + yds;
_parent.en.gotoAndStop(85);
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
}
}
} else if (_currentframe == 127) {
shootChance = random(40) + 1;
sd = 100;
xds = Math.sin(rot * (Math.PI/180)) * sd;
yds = (Math.cos(rot * (Math.PI/180)) * sd) * -1;
_rotation = t._rotation;
_x = (t._x + xds);
_y = (t._y + yds);
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
_x = (_x + xV);
_y = (_y + yV);
if (_currentframe == 106) {
if ((_y < -840) || (_y > 5)) {
_y = (_y - yV);
}
if ((_x < -840) || (_x > 5)) {
_x = (_x - xV);
}
} else {
if ((_y < -950) || (_y > 117)) {
_y = (_y - yV);
}
if ((_x < -950) || (_x > 117)) {
_x = (_x - xV);
}
}
if (health < 1) {
play();
}
} else if (done2 != true) {
a = 0;
while (a < _root.ground.character.targets.length) {
if (_root.ground.character.targets[a] == _name) {
_root.ground.character.targets.splice(a, 1);
itemChance = random(20) + 1;
if (itemChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.powerup, "powerup" + _root.ground.character.i, _root.ground.character.i);
_root.ground["powerup" + _root.ground.character.i]._x = _x;
_root.ground["powerup" + _root.ground.character.i]._y = _y;
}
a = 1000;
_name = "";
_root.k = _root.k + _root.multiplier;
}
a++;
}
done2 = true;
}
} else if (_root.countDown.level == 0) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 10) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 1) {
if ((_root.countDown.rKill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 2) {
if (_root.countDown.bKill != 1) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 3) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 4) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 10) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 5) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 6) {
if (boss2Done != true) {
if ((_root.countDown.alTimer == 120) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
if (_parent.en._y < -840) {
_parent.en._y = -840;
}
if (_parent.en._x < -840) {
_parent.en._x = -840;
}
if (_parent.en._y > 5) {
_parent.en._y = 5;
}
if (_parent.en._x > 5) {
_parent.en._x = 5;
}
_parent.en.gotoAndStop(106);
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
boss2Done = true;
}
}
} else if (_root.countDown.level == 7) {
if (((enemyCount < 20) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
}
}
Instance of Symbol 329 MovieClip "explosion" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explosion") {
stop();
} else {
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
}
}
Instance of Symbol 355 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.countDown.level == 4) {
gotoAndStop (1);
if (_root.ground.character._y < -419) {
_y = -940;
} else {
_y = 100;
}
_x = _root.ground.character._x;
if ((_x + (_width / 2)) > 117) {
_x = (117 - (_width / 2));
}
if ((_x - (_width / 2)) < -950) {
_x = (-950 + (_width / 2));
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 355 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.countDown.level == 4) {
gotoAndStop (1);
if (_root.ground.character._x < -419) {
_x = -940;
} else {
_x = 100;
}
_y = _root.ground.character._y;
if ((_y + (_height / 2)) > 117) {
_y = (117 - (_height / 2));
}
if ((_y - (_height / 2)) < -950) {
_y = (-950 + (_height / 2));
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 359 MovieClip "powerup" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
time = 0;
gotoAndStop(random(3) + 1);
if ((_currentframe == 2) && (_root.ground.character.l > (_root.countDown.level + 1))) {
gotoAndStop (3);
}
}
}
onClipEvent (enterFrame) {
tar = eval ("_root.ground." + _root.ground.character);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
if (_currentframe == 1) {
_root.sfx.gotoAndPlay(12);
_root.ground.character.health = _root.ground.character.health + 25;
if (_root.ground.character.health > 100) {
_root.ground.character.health = 100;
}
removeMovieClip("");
} else if (_currentframe == 2) {
_root.sfx.gotoAndPlay(14);
_root.ground.character.l = _root.ground.character.l + 1;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.sfx.gotoAndPlay(16);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 200) {
tar.health = tar.health - 3;
}
m++;
}
_root.ground.modifier = 60;
_root.ground.yModifier = 60;
removeMovieClip("");
}
}
}
Instance of Symbol 365 MovieClip "character" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
del = 3;
if (l <= 6) {
if (l == 1) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
} else if (l == 2) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
} else if (l == 3) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
} else if (l == 4) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 5) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 6) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
}
} else if (l == 7) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 8) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 9) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 10) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 11) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 12) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
}
_root.sfx.gotoAndPlay(2);
}
l = 1;
del = 0;
swapDepths(1000);
x = 0;
i = 125;
maxSpeed = 30;
decel = 0.2;
y = 0;
modifier = 0;
yModifier = 0;
targets = new Array(a);
health = 100;
}
onClipEvent (enterFrame) {
if (l > 12) {
l = 12;
}
_root.wpn = "Weapon Lv: " + l;
if (_root.pause == false) {
if (i > 500) {
i = 125;
}
myRadians = Math.atan2(_root._ymouse - (this._y + _root.ground._y), _root._xmouse - (this._x + _root.ground._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 180);
rot = _rotation;
if (Key.isDown(65) || (Key.isDown(37))) {
if (x < maxSpeed) {
x = x + 1;
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
if (x > (-maxSpeed)) {
x = x - 1;
}
} else {
if (x > 0) {
x = x - decel;
}
if (x < 0) {
x = x + decel;
}
if (Math.abs(x) < decel) {
x = 0;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (y < maxSpeed) {
y = y + 1;
}
} else if (Key.isDown(87) || (Key.isDown(38))) {
if (y > (-maxSpeed)) {
y = y - 1;
}
} else {
if (y > 0) {
y = y - decel;
}
if (y < 0) {
y = y + decel;
}
if (Math.abs(y) < decel) {
y = 0;
}
}
_x = (_x - x);
_y = (_y + y);
if (_root.countDown.level == 4) {
if (_x > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = 75;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = 75;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
if (_x < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = -910;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = -910;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
} else {
if (_x > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = 117;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 0;
_x = 95;
x = x * -0.5;
}
if (_y > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = 117;
_root.ground["spark" + i]._rotation = 90;
_y = 95;
y = y * -0.5;
}
if (_x < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = -950;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 180;
_x = -930;
x = x * -0.5;
}
if (_y < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = -950;
_root.ground["spark" + i]._rotation = 270;
_y = -930;
y = y * -0.5;
}
}
del = del - 1;
if ((firing == true) && (del < 1)) {
shoot();
}
}
}
onClipEvent (mouseDown) {
firing = true;
}
onClipEvent (mouseUp) {
firing = false;
}
Symbol 372 Button
on (release) {
_root.pause = false;
gotoAndStop (1);
}
Symbol 377 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 382 Button
on (release) {
_root.pause = false;
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 392 Button
on (release) {
if (name == "Enter Name Here") {
_root.sfx.gotoAndPlay(56);
} else if (done != true) {
_root.submitOurScore5();
done = true;
}
}
Symbol 398 Button
on (release) {
_root.pause = false;
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 402 MovieClip Frame 1
stop();
Instance of Symbol 61 MovieClip in Symbol 402 MovieClip Frame 2
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 63 MovieClip in Symbol 402 MovieClip Frame 2
onClipEvent (load) {
_rotation = random(360);
}
Symbol 402 MovieClip Frame 3
kill = "Kills :" + _root.kill;
name = _root.playerNameSave;
done = false;
Symbol 417 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 2
gotoAndStop (1);
Symbol 432 MovieClip Frame 3
gotoAndStop (1);
Symbol 432 MovieClip Frame 5
gotoAndStop (1);
Symbol 432 MovieClip Frame 7
gotoAndStop (1);
Symbol 432 MovieClip Frame 9
gotoAndStop (1);
Symbol 432 MovieClip Frame 11
gotoAndStop (1);
Symbol 432 MovieClip Frame 13
gotoAndStop (1);
Symbol 432 MovieClip Frame 15
gotoAndStop (1);
Symbol 432 MovieClip Frame 17
gotoAndStop (1);
Symbol 432 MovieClip Frame 19
gotoAndStop (1);
Symbol 432 MovieClip Frame 21
gotoAndStop (1);
Symbol 432 MovieClip Frame 23
gotoAndStop (1);
Symbol 432 MovieClip Frame 51
gotoAndStop (1);
Symbol 432 MovieClip Frame 53
gotoAndStop (1);
Symbol 432 MovieClip Frame 55
gotoAndStop (1);
Symbol 432 MovieClip Frame 57
gotoAndStop (1);
Instance of Symbol 210 MovieClip "meh" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(1162.8, 1161.8, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_parent.flr);
_parent.flr.swapDepths(1005);
_parent.flr.removeMovieClip("");
}
Instance of Symbol 290 MovieClip "spark" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 307 MovieClip "bullet" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (enemyBullet != true) {
l = _root.ground.character.l;
if ((((l == 3) || (l == 6)) || (l == 9)) || (l == 12)) {
maxTime = 10;
} else if ((((l == 2) || (l == 5)) || (l == 8)) || (l == 11)) {
maxTime = 15;
} else if ((((l == 1) || (l == 4)) || (l == 7)) || (l == 10)) {
maxTime = 20;
}
}
rot = _rotation + 180;
speed = -20;
time = 0;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
_alpha = 100;
h = 0;
r = false;
mH = 1;
l = _root.ground.character.l;
if ((l > 3) && (l < 7)) {
mH = 2;
} else if ((l > 6) && (l < 10)) {
mH = 3;
} else if ((l > 9) && (l < 13)) {
mH = 10000;
r = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
time = time + 1;
if (time > maxTime) {
_alpha = (_alpha - 30);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (enemyBullet == true) {
if (_currentframe == 2) {
_x = (_x + (x / 2));
_y = (_y + (y / 2));
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
removeMovieClip("");
}
} else if (_currentframe == 3) {
_x = (_x + x);
_y = (_y + y);
x = x * 0.9;
y = y * 0.9;
if ((x < 0.5) && (y < 0.5)) {
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 100) {
_root.character.health = _root.character.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
} else if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
removeMovieClip("");
}
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
}
} else {
_x = (_x + x);
_y = (_y + y);
if (nf == true) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 60) {
tar.health = tar.health - 3;
}
m++;
}
removeMovieClip("");
}
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 20) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
h = h + 1;
tar.health = tar.health - 1;
if (h > mH) {
removeMovieClip("");
}
}
if ((r == true) && (h > 0)) {
nf = true;
}
m++;
}
}
if ((((_y < -950) || (_x < -950)) || (_x > 117)) || (_y > 112)) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 342 MovieClip "dup" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_name != "dup") {
if (_root.countDown.level == 8) {
chance = random(4);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else {
gotoAndStop (1);
}
} else if (_root.countDown.level == 9) {
if ((_currentframe == 1) && (_root.ground.dup.enemyCount < 2)) {
gotoAndStop (148);
}
} else if (_root.countDown.level == 10) {
chance = random(2);
if (chance == 1) {
gotoAndStop (22);
} else {
gotoAndStop (43);
}
} else if (_root.countDown.level == 11) {
chance = random(5);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else if (chance == 4) {
gotoAndStop (43);
} else {
gotoAndStop (1);
}
}
stFra = _currentframe;
cacheAsBitmap = true;
health = 3;
fraEvent = 29;
rotChange = random(20);
maxSpeed = random(3) + 2;
if (_y < -950) {
_y = -950;
}
if (_x < -950) {
_x = -950;
}
if (_y > 117) {
_y = 117;
}
if (_x > 117) {
_x = 117;
}
} else {
z = 90;
enemyCount = 0;
xSpawn = new Array(-655, -169, 137, 137, -172, -655, -977, -977);
ySpawn = new Array(-970, -970, -636, -167, 144, 144, -164, -636);
spNum = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "dup") {
if (done != true) {
_name = ("enemy" + _parent.dup.z);
_root.ground.character.targets.push(_name);
done = true;
}
if (_currentframe == stFra) {
fraEvent = fraEvent + 1;
if (_currentframe == 1) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if ((_currentframe == 22) || (_currentframe == 85)) {
if (fraEvent == 30) {
shootChance = 0;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 60) {
speed = 0;
if (_currentframe == 22) {
shootChance = random(2);
} else {
shootChance = 1;
}
} else {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
if (_currentframe == 22) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.character.health = _root.ground.character.health - 1;
} else {
play();
_root.ground.character.health = _root.ground.character.health - 5;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
}
}
}
} else if (_currentframe == 43) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 64) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
}
}
} else if (_currentframe == 106) {
if (redDone != true) {
redArr = new Array();
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = _x;
_parent["enemy" + _root.ground.dup.z]._y = _y;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(127);
if (n == 0) {
_parent["enemy" + _root.ground.dup.z].rot = 180;
} else if (n == 1) {
_parent["enemy" + _root.ground.dup.z].rot = -60;
} else if (n == 2) {
_parent["enemy" + _root.ground.dup.z].rot = 60;
}
_parent["enemy" + _root.ground.dup.z].t = eval ("_root.ground." + _name);
redArr.push(eval (_root.ground["enemy" + _root.ground.dup.z]));
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
n++;
}
fraEvent = 9;
redDone = true;
}
v = 0;
while (v < 3) {
tgt = redArr[v];
if (tgt.health > 0) {
health = 150;
}
v++;
}
shootChance = random(100) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
} else if (shootChance == 50) {
if (_root.ground.dup.enemyCount < 5) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "en", _root.ground.dup.z);
sd = 60;
xds = Math.sin(_rotation * (Math.PI/180)) * sd;
yds = (Math.cos(_rotation * (Math.PI/180)) * sd) * -1;
_parent.en._x = _x + xds;
_parent.en._y = _y + yds;
_parent.en.gotoAndStop(85);
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
}
}
} else if (_currentframe == 127) {
shootChance = random(40) + 1;
sd = 100;
xds = Math.sin(rot * (Math.PI/180)) * sd;
yds = (Math.cos(rot * (Math.PI/180)) * sd) * -1;
_rotation = t._rotation;
_x = (t._x + xds);
_y = (t._y + yds);
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
} else if (_currentframe == 148) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 158) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 168) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
}
_x = (_x + xV);
_y = (_y + yV);
if (_currentframe == 148) {
if ((_y < -840) || (_y > 5)) {
_y = (_y - yV);
}
if ((_x < -840) || (_x > 5)) {
_x = (_x - xV);
}
} else {
if ((_y < -950) || (_y > 117)) {
_y = (_y - yV);
}
if ((_x < -950) || (_x > 117)) {
_x = (_x - xV);
}
}
if (health < 1) {
play();
}
} else if (done2 != true) {
a = 0;
while (a < _root.ground.character.targets.length) {
if (_root.ground.character.targets[a] == _name) {
_root.ground.character.targets.splice(a, 1);
itemChance = random(20) + 1;
if (itemChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.powerup, "powerup" + _root.ground.character.i, _root.ground.character.i);
_root.ground["powerup" + _root.ground.character.i]._x = _x;
_root.ground["powerup" + _root.ground.character.i]._y = _y;
}
a = 1000;
_name = "";
_root.k = _root.k + _root.multiplier;
}
a++;
}
done2 = true;
}
} else if (_root.countDown.level == 8) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 9) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 1) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
if (_parent.en._y < -840) {
_parent.en._y = -840;
}
if (_parent.en._x < -840) {
_parent.en._x = -840;
}
if (_parent.en._y > 5) {
_parent.en._y = 5;
}
if (_parent.en._x > 5) {
_parent.en._x = 5;
}
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 10) {
if ((_root.kill + enemyCount) < _root.countDown.maxKillCount) {
if (((enemyCount < 15) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
} else if (_root.countDown.level == 11) {
if (((enemyCount < 25) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
}
}
Instance of Symbol 329 MovieClip "explosion" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explosion") {
stop();
} else {
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
}
}
Instance of Symbol 365 MovieClip "character" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
del = 3;
if (l <= 6) {
if (l == 1) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
} else if (l == 2) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
} else if (l == 3) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
} else if (l == 4) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 5) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 6) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
}
} else if (l == 7) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 8) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 9) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 10) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 11) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 12) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
}
_root.sfx.gotoAndPlay(2);
}
l = 1;
del = 0;
swapDepths(1000);
x = 0;
i = 125;
maxSpeed = 30;
decel = 0.2;
y = 0;
modifier = 0;
yModifier = 0;
targets = new Array(a);
health = 100;
}
onClipEvent (enterFrame) {
if (l > 12) {
l = 12;
}
_root.kill = _root.k / _root.multiplier;
_root.wpn = "Weapon Lv: " + l;
if (_root.pause == false) {
if (i > 500) {
i = 125;
}
myRadians = Math.atan2(_root._ymouse - (this._y + _root.ground._y), _root._xmouse - (this._x + _root.ground._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 180);
rot = _rotation;
if (Key.isDown(65) || (Key.isDown(37))) {
if (x < maxSpeed) {
x = x + 1;
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
if (x > (-maxSpeed)) {
x = x - 1;
}
} else {
if (x > 0) {
x = x - decel;
}
if (x < 0) {
x = x + decel;
}
if (Math.abs(x) < decel) {
x = 0;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (y < maxSpeed) {
y = y + 1;
}
} else if (Key.isDown(87) || (Key.isDown(38))) {
if (y > (-maxSpeed)) {
y = y - 1;
}
} else {
if (y > 0) {
y = y - decel;
}
if (y < 0) {
y = y + decel;
}
if (Math.abs(y) < decel) {
y = 0;
}
}
_x = (_x - x);
_y = (_y + y);
if (_root.countDown.level == 4) {
if (_x > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = 75;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = 75;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
if (_x < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = -910;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = -910;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
} else {
if (_x > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = 117;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 0;
_x = 95;
x = x * -0.5;
}
if (_y > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = 117;
_root.ground["spark" + i]._rotation = 90;
_y = 95;
y = y * -0.5;
}
if (_x < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = -950;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 180;
_x = -930;
x = x * -0.5;
}
if (_y < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = -950;
_root.ground["spark" + i]._rotation = 270;
_y = -930;
y = y * -0.5;
}
}
del = del - 1;
if ((firing == true) && (del < 1)) {
shoot();
}
}
}
onClipEvent (mouseDown) {
firing = true;
}
onClipEvent (mouseUp) {
firing = false;
}
Instance of Symbol 359 MovieClip "powerup" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
time = 0;
gotoAndStop(random(3) + 1);
if ((_currentframe == 2) && (_root.ground.character.l > (_root.countDown.level + 1))) {
gotoAndStop (3);
}
}
}
onClipEvent (enterFrame) {
tar = eval ("_root.ground." + _root.ground.character);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
if (_currentframe == 1) {
_root.sfx.gotoAndPlay(12);
_root.ground.character.health = _root.ground.character.health + 25;
if (_root.ground.character.health > 100) {
_root.ground.character.health = 100;
}
removeMovieClip("");
} else if (_currentframe == 2) {
_root.sfx.gotoAndPlay(14);
_root.ground.character.l = _root.ground.character.l + 1;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.sfx.gotoAndPlay(16);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 200) {
tar.health = tar.health - 3;
}
m++;
}
_root.ground.modifier = 60;
_root.ground.yModifier = 60;
removeMovieClip("");
}
}
}
Instance of Symbol 210 MovieClip "meh" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(1162.8, 1161.8, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_parent.flr);
_parent.flr.swapDepths(1005);
_parent.flr.removeMovieClip("");
}
Instance of Symbol 290 MovieClip "spark" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 307 MovieClip "bullet" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (enemyBullet != true) {
l = _root.ground.character.l;
if ((((l == 3) || (l == 6)) || (l == 9)) || (l == 12)) {
maxTime = 10;
} else if ((((l == 2) || (l == 5)) || (l == 8)) || (l == 11)) {
maxTime = 15;
} else if ((((l == 1) || (l == 4)) || (l == 7)) || (l == 10)) {
maxTime = 20;
}
}
rot = _rotation + 180;
speed = -20;
time = 0;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
_alpha = 100;
h = 0;
r = false;
mH = 1;
l = _root.ground.character.l;
if ((l > 3) && (l < 7)) {
mH = 2;
} else if ((l > 6) && (l < 10)) {
mH = 3;
} else if ((l > 9) && (l < 13)) {
mH = 10000;
r = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
time = time + 1;
if (time > maxTime) {
_alpha = (_alpha - 30);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (enemyBullet == true) {
if (_currentframe == 2) {
_x = (_x + (x / 2));
_y = (_y + (y / 2));
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
removeMovieClip("");
}
} else if (_currentframe == 3) {
_x = (_x + x);
_y = (_y + y);
x = x * 0.9;
y = y * 0.9;
if ((x < 0.5) && (y < 0.5)) {
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 100) {
_root.character.health = _root.character.health - 1;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
} else if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
}
} else {
_x = (_x + x);
_y = (_y + y);
if (nf == true) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 60) {
tar.health = tar.health - 3;
}
m++;
}
removeMovieClip("");
}
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 20) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
h = h + 1;
tar.health = tar.health - 1;
if (h > mH) {
removeMovieClip("");
}
}
if ((r == true) && (h > 0)) {
nf = true;
}
m++;
}
}
if ((((_y < -950) || (_x < -950)) || (_x > 117)) || (_y > 112)) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 342 MovieClip "dup" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
if (_name != "dup") {
chance = random(5);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else if (chance == 4) {
chance2 = random(100) + 1;
if (chance2 == 1) {
gotoAndStop (148);
}
} else {
gotoAndStop (1);
}
stFra = _currentframe;
cacheAsBitmap = true;
health = 3;
fraEvent = 29;
rotChange = random(20);
maxSpeed = random(3) + 2;
if (_y < -950) {
_y = -950;
}
if (_x < -950) {
_x = -950;
}
if (_y > 117) {
_y = 117;
}
if (_x > 117) {
_x = 117;
}
} else {
z = 90;
enemyCount = 0;
xSpawn = new Array(-655, -169, 137, 137, -172, -655, -977, -977);
ySpawn = new Array(-970, -970, -636, -167, 144, 144, -164, -636);
spNum = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "dup") {
if (done != true) {
_name = ("enemy" + _parent.dup.z);
_root.ground.character.targets.push(_name);
done = true;
}
if (_currentframe == stFra) {
fraEvent = fraEvent + 1;
if (_currentframe == 1) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if ((_currentframe == 22) || (_currentframe == 85)) {
if (fraEvent == 30) {
shootChance = 0;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 60) {
speed = 0;
if (_currentframe == 22) {
shootChance = random(2);
} else {
shootChance = 1;
}
} else {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
if (_currentframe == 22) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.character.health = _root.ground.character.health - 1;
} else {
play();
_root.ground.character.health = _root.ground.character.health - 5;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
}
}
}
} else if (_currentframe == 43) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 64) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
}
}
} else if (_currentframe == 106) {
if (redDone != true) {
redArr = new Array();
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = _x;
_parent["enemy" + _root.ground.dup.z]._y = _y;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(127);
if (n == 0) {
_parent["enemy" + _root.ground.dup.z].rot = 180;
} else if (n == 1) {
_parent["enemy" + _root.ground.dup.z].rot = -60;
} else if (n == 2) {
_parent["enemy" + _root.ground.dup.z].rot = 60;
}
_parent["enemy" + _root.ground.dup.z].t = eval ("_root.ground." + _name);
redArr.push(eval (_root.ground["enemy" + _root.ground.dup.z]));
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
n++;
}
fraEvent = 9;
redDone = true;
}
v = 0;
while (v < 3) {
tgt = redArr[v];
if (tgt.health > 0) {
health = 150;
}
v++;
}
shootChance = random(100) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
} else if (shootChance == 50) {
if (_root.ground.dup.enemyCount < 5) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "en", _root.ground.dup.z);
sd = 60;
xds = Math.sin(_rotation * (Math.PI/180)) * sd;
yds = (Math.cos(_rotation * (Math.PI/180)) * sd) * -1;
_parent.en._x = _x + xds;
_parent.en._y = _y + yds;
_parent.en.gotoAndStop(85);
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
}
}
} else if (_currentframe == 127) {
shootChance = random(40) + 1;
sd = 100;
xds = Math.sin(rot * (Math.PI/180)) * sd;
yds = (Math.cos(rot * (Math.PI/180)) * sd) * -1;
_rotation = t._rotation;
_x = (t._x + xds);
_y = (t._y + yds);
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
} else if (_currentframe == 148) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 158) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 168) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
}
_x = (_x + xV);
_y = (_y + yV);
if (_currentframe == 148) {
if ((_y < -840) || (_y > 5)) {
_y = (_y - yV);
}
if ((_x < -840) || (_x > 5)) {
_x = (_x - xV);
}
} else {
if ((_y < -950) || (_y > 117)) {
_y = (_y - yV);
}
if ((_x < -950) || (_x > 117)) {
_x = (_x - xV);
}
}
if (health < 1) {
play();
}
} else if (done2 != true) {
a = 0;
while (a < _root.ground.character.targets.length) {
if (_root.ground.character.targets[a] == _name) {
_root.ground.character.targets.splice(a, 1);
itemChance = random(20) + 1;
if (itemChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.powerup, "powerup" + _root.ground.character.i, _root.ground.character.i);
_root.ground["powerup" + _root.ground.character.i]._x = _x;
_root.ground["powerup" + _root.ground.character.i]._y = _y;
}
a = 1000;
_name = "";
_root.k = _root.k + _root.multiplier;
}
a++;
}
done2 = true;
}
} else if (((enemyCount < 20) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
}
Instance of Symbol 329 MovieClip "explosion" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explosion") {
stop();
} else {
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
}
}
Instance of Symbol 365 MovieClip "character" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
del = 3;
if (l <= 6) {
if (l == 1) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
} else if (l == 2) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
} else if (l == 3) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
} else if (l == 4) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 5) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 6) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
}
} else if (l == 7) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 8) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 9) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 10) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 11) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 12) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
}
_root.sfx.gotoAndPlay(2);
}
l = 1;
del = 0;
swapDepths(1000);
x = 0;
i = 125;
maxSpeed = 30;
decel = 0.2;
y = 0;
modifier = 0;
yModifier = 0;
targets = new Array(a);
health = 100;
}
onClipEvent (enterFrame) {
if (l > 12) {
l = 12;
}
_root.kill = _root.k / _root.multiplier;
_root.wpn = "Weapon Lv: " + l;
if (_root.pause == false) {
if (i > 500) {
i = 125;
}
myRadians = Math.atan2(_root._ymouse - (this._y + _root.ground._y), _root._xmouse - (this._x + _root.ground._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 180);
rot = _rotation;
if (Key.isDown(65) || (Key.isDown(37))) {
if (x < maxSpeed) {
x = x + 1;
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
if (x > (-maxSpeed)) {
x = x - 1;
}
} else {
if (x > 0) {
x = x - decel;
}
if (x < 0) {
x = x + decel;
}
if (Math.abs(x) < decel) {
x = 0;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (y < maxSpeed) {
y = y + 1;
}
} else if (Key.isDown(87) || (Key.isDown(38))) {
if (y > (-maxSpeed)) {
y = y - 1;
}
} else {
if (y > 0) {
y = y - decel;
}
if (y < 0) {
y = y + decel;
}
if (Math.abs(y) < decel) {
y = 0;
}
}
_x = (_x - x);
_y = (_y + y);
if (_root.countDown.level == 4) {
if (_x > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = 75;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = 75;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
if (_x < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = -910;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = -910;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
} else {
if (_x > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = 117;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 0;
_x = 95;
x = x * -0.5;
}
if (_y > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = 117;
_root.ground["spark" + i]._rotation = 90;
_y = 95;
y = y * -0.5;
}
if (_x < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = -950;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 180;
_x = -930;
x = x * -0.5;
}
if (_y < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = -950;
_root.ground["spark" + i]._rotation = 270;
_y = -930;
y = y * -0.5;
}
}
del = del - 1;
if ((firing == true) && (del < 1)) {
shoot();
}
}
}
onClipEvent (mouseDown) {
firing = true;
}
onClipEvent (mouseUp) {
firing = false;
}
Instance of Symbol 359 MovieClip "powerup" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
time = 0;
gotoAndStop(random(3) + 1);
if ((_currentframe == 2) && (_root.ground.character.l > (_root.countDown.level + 1))) {
gotoAndStop (3);
}
if (_currentframe == 1) {
gotoAndStop (3);
}
}
}
onClipEvent (enterFrame) {
tar = eval ("_root.ground." + _root.ground.character);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
if (_currentframe == 1) {
_root.sfx.gotoAndPlay(12);
_root.ground.character.health = _root.ground.character.health + 25;
if (_root.ground.character.health > 100) {
_root.ground.character.health = 100;
}
removeMovieClip("");
} else if (_currentframe == 2) {
_root.sfx.gotoAndPlay(14);
_root.ground.character.l = _root.ground.character.l + 1;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.sfx.gotoAndPlay(16);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 200) {
tar.health = tar.health - 3;
}
m++;
}
_root.ground.modifier = 60;
_root.ground.yModifier = 60;
removeMovieClip("");
}
}
}
Instance of Symbol 210 MovieClip "meh" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(1162.8, 1161.8, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_parent.flr);
_parent.flr.swapDepths(1005);
_parent.flr.removeMovieClip("");
}
Instance of Symbol 290 MovieClip "spark" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 307 MovieClip "bullet" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (enemyBullet != true) {
l = _root.ground.character.l;
if ((((l == 3) || (l == 6)) || (l == 9)) || (l == 12)) {
maxTime = 10;
} else if ((((l == 2) || (l == 5)) || (l == 8)) || (l == 11)) {
maxTime = 15;
} else if ((((l == 1) || (l == 4)) || (l == 7)) || (l == 10)) {
maxTime = 20;
}
}
rot = _rotation + 180;
speed = -20;
time = 0;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
_alpha = 100;
h = 0;
r = false;
mH = 1;
l = _root.ground.character.l;
if ((l > 3) && (l < 7)) {
mH = 2;
} else if ((l > 6) && (l < 10)) {
mH = 3;
} else if ((l > 9) && (l < 13)) {
mH = 10000;
r = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
time = time + 1;
if (time > maxTime) {
_alpha = (_alpha - 30);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (enemyBullet == true) {
if (_currentframe == 2) {
_x = (_x + (x / 2));
_y = (_y + (y / 2));
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
removeMovieClip("");
}
} else if (_currentframe == 3) {
_x = (_x + x);
_y = (_y + y);
x = x * 0.9;
y = y * 0.9;
if ((x < 0.5) && (y < 0.5)) {
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 100) {
_root.character.health = _root.character.health - 1;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
} else if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
}
} else {
_x = (_x + x);
_y = (_y + y);
if (nf == true) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 60) {
tar.health = tar.health - 3;
}
m++;
}
removeMovieClip("");
}
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 20) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
h = h + 1;
tar.health = tar.health - 1;
if (h > mH) {
removeMovieClip("");
}
}
if ((r == true) && (h > 0)) {
nf = true;
}
m++;
}
}
if ((((_y < -950) || (_x < -950)) || (_x > 117)) || (_y > 112)) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 342 MovieClip "dup" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
if (_name != "dup") {
chance = random(5);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else if (chance == 4) {
chance2 = random(100) + 1;
if (chance2 == 1) {
gotoAndStop (148);
}
} else {
gotoAndStop (1);
}
stFra = _currentframe;
cacheAsBitmap = true;
health = 3;
fraEvent = 29;
rotChange = random(20);
maxSpeed = random(3) + 2;
if (_y < -950) {
_y = -950;
}
if (_x < -950) {
_x = -950;
}
if (_y > 117) {
_y = 117;
}
if (_x > 117) {
_x = 117;
}
} else {
z = 90;
enemyCount = 0;
xSpawn = new Array(-655, -169, 137, 137, -172, -655, -977, -977);
ySpawn = new Array(-970, -970, -636, -167, 144, 144, -164, -636);
spNum = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "dup") {
if (done != true) {
_name = ("enemy" + _parent.dup.z);
_root.ground.character.targets.push(_name);
done = true;
}
if (_currentframe == stFra) {
fraEvent = fraEvent + 1;
if (_currentframe == 1) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if ((_currentframe == 22) || (_currentframe == 85)) {
if (fraEvent == 30) {
shootChance = 0;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 60) {
speed = 0;
if (_currentframe == 22) {
shootChance = random(2);
} else {
shootChance = 1;
}
} else {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
if (_currentframe == 22) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.character.health = _root.ground.character.health - 1;
} else {
play();
_root.ground.character.health = _root.ground.character.health - 5;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
}
}
}
} else if (_currentframe == 43) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 64) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
}
}
} else if (_currentframe == 106) {
if (redDone != true) {
redArr = new Array();
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = _x;
_parent["enemy" + _root.ground.dup.z]._y = _y;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(127);
if (n == 0) {
_parent["enemy" + _root.ground.dup.z].rot = 180;
} else if (n == 1) {
_parent["enemy" + _root.ground.dup.z].rot = -60;
} else if (n == 2) {
_parent["enemy" + _root.ground.dup.z].rot = 60;
}
_parent["enemy" + _root.ground.dup.z].t = eval ("_root.ground." + _name);
redArr.push(eval (_root.ground["enemy" + _root.ground.dup.z]));
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
n++;
}
fraEvent = 9;
redDone = true;
}
v = 0;
while (v < 3) {
tgt = redArr[v];
if (tgt.health > 0) {
health = 150;
}
v++;
}
shootChance = random(100) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
} else if (shootChance == 50) {
if (_root.ground.dup.enemyCount < 5) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "en", _root.ground.dup.z);
sd = 60;
xds = Math.sin(_rotation * (Math.PI/180)) * sd;
yds = (Math.cos(_rotation * (Math.PI/180)) * sd) * -1;
_parent.en._x = _x + xds;
_parent.en._y = _y + yds;
_parent.en.gotoAndStop(85);
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
}
}
} else if (_currentframe == 127) {
shootChance = random(40) + 1;
sd = 100;
xds = Math.sin(rot * (Math.PI/180)) * sd;
yds = (Math.cos(rot * (Math.PI/180)) * sd) * -1;
_rotation = t._rotation;
_x = (t._x + xds);
_y = (t._y + yds);
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
} else if (_currentframe == 148) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 158) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 168) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
}
_x = (_x + xV);
_y = (_y + yV);
if (_currentframe == 148) {
if ((_y < -840) || (_y > 5)) {
_y = (_y - yV);
}
if ((_x < -840) || (_x > 5)) {
_x = (_x - xV);
}
} else {
if ((_y < -950) || (_y > 117)) {
_y = (_y - yV);
}
if ((_x < -950) || (_x > 117)) {
_x = (_x - xV);
}
}
if (health < 1) {
play();
}
} else if (done2 != true) {
a = 0;
while (a < _root.ground.character.targets.length) {
if (_root.ground.character.targets[a] == _name) {
_root.ground.character.targets.splice(a, 1);
itemChance = random(20) + 1;
if (itemChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.powerup, "powerup" + _root.ground.character.i, _root.ground.character.i);
_root.ground["powerup" + _root.ground.character.i]._x = _x;
_root.ground["powerup" + _root.ground.character.i]._y = _y;
}
a = 1000;
_name = "";
_root.k = _root.k + _root.multiplier;
}
a++;
}
done2 = true;
}
} else if (((enemyCount < 20) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
}
Instance of Symbol 329 MovieClip "explosion" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explosion") {
stop();
} else {
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
}
}
Instance of Symbol 365 MovieClip "character" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
del = 3;
if (l <= 6) {
if (l == 1) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
} else if (l == 2) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
} else if (l == 3) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
} else if (l == 4) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 5) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 6) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
}
} else if (l == 7) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 8) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 9) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 10) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 11) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 12) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
}
_root.sfx.gotoAndPlay(2);
}
l = 1;
del = 0;
swapDepths(1000);
x = 0;
i = 125;
maxSpeed = 30;
decel = 0.2;
y = 0;
modifier = 0;
yModifier = 0;
targets = new Array(a);
health = 100;
}
onClipEvent (enterFrame) {
if (l > 12) {
l = 12;
}
_root.kill = _root.k / _root.multiplier;
_root.wpn = "Weapon Lv: " + l;
if (_root.pause == false) {
if (i > 500) {
i = 125;
}
myRadians = Math.atan2(_root._ymouse - (this._y + _root.ground._y), _root._xmouse - (this._x + _root.ground._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 180);
rot = _rotation;
if (Key.isDown(65) || (Key.isDown(37))) {
if (x < maxSpeed) {
x = x + 1;
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
if (x > (-maxSpeed)) {
x = x - 1;
}
} else {
if (x > 0) {
x = x - decel;
}
if (x < 0) {
x = x + decel;
}
if (Math.abs(x) < decel) {
x = 0;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (y < maxSpeed) {
y = y + 1;
}
} else if (Key.isDown(87) || (Key.isDown(38))) {
if (y > (-maxSpeed)) {
y = y - 1;
}
} else {
if (y > 0) {
y = y - decel;
}
if (y < 0) {
y = y + decel;
}
if (Math.abs(y) < decel) {
y = 0;
}
}
_x = (_x - x);
_y = (_y + y);
if (_root.countDown.level == 4) {
if (_x > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = 75;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = 75;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
if (_x < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = -910;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = -910;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
} else {
if (_x > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = 117;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 0;
_x = 95;
x = x * -0.5;
}
if (_y > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = 117;
_root.ground["spark" + i]._rotation = 90;
_y = 95;
y = y * -0.5;
}
if (_x < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = -950;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 180;
_x = -930;
x = x * -0.5;
}
if (_y < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = -950;
_root.ground["spark" + i]._rotation = 270;
_y = -930;
y = y * -0.5;
}
}
del = del - 1;
if ((firing == true) && (del < 1)) {
shoot();
}
}
}
onClipEvent (mouseDown) {
firing = true;
}
onClipEvent (mouseUp) {
firing = false;
}
Instance of Symbol 359 MovieClip "powerup" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
time = 0;
gotoAndStop(random(3) + 1);
if ((_currentframe == 2) && (_root.ground.character.l > (_root.countDown.level + 1))) {
gotoAndStop (3);
}
if (_currentframe == 1) {
gotoAndStop (3);
}
}
}
onClipEvent (enterFrame) {
tar = eval ("_root.ground." + _root.ground.character);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
if (_currentframe == 1) {
_root.sfx.gotoAndPlay(12);
_root.ground.character.health = _root.ground.character.health + 25;
if (_root.ground.character.health > 100) {
_root.ground.character.health = 100;
}
removeMovieClip("");
} else if (_currentframe == 2) {
_root.sfx.gotoAndPlay(14);
_root.ground.character.l = _root.ground.character.l + 1;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.sfx.gotoAndPlay(16);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 200) {
tar.health = tar.health - 3;
}
m++;
}
_root.ground.modifier = 60;
_root.ground.yModifier = 60;
removeMovieClip("");
}
}
}
Instance of Symbol 210 MovieClip "meh" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(1162.8, 1161.8, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_parent.flr);
_parent.flr.swapDepths(1005);
_parent.flr.removeMovieClip("");
}
Instance of Symbol 290 MovieClip "spark" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
play();
} else {
stop();
}
}
Instance of Symbol 307 MovieClip "bullet" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (enemyBullet != true) {
l = _root.ground.character.l;
if ((((l == 3) || (l == 6)) || (l == 9)) || (l == 12)) {
maxTime = 10;
} else if ((((l == 2) || (l == 5)) || (l == 8)) || (l == 11)) {
maxTime = 15;
} else if ((((l == 1) || (l == 4)) || (l == 7)) || (l == 10)) {
maxTime = 20;
}
}
rot = _rotation + 180;
speed = -20;
time = 0;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
_alpha = 100;
h = 0;
r = false;
mH = 1;
l = _root.ground.character.l;
if ((l > 3) && (l < 7)) {
mH = 2;
} else if ((l > 6) && (l < 10)) {
mH = 3;
} else if ((l > 9) && (l < 13)) {
mH = 10000;
r = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
time = time + 1;
if (time > maxTime) {
_alpha = (_alpha - 30);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (enemyBullet == true) {
if (_currentframe == 2) {
_x = (_x + (x / 2));
_y = (_y + (y / 2));
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 1;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
removeMovieClip("");
}
} else if (_currentframe == 3) {
_x = (_x + x);
_y = (_y + y);
x = x * 0.9;
y = y * 0.9;
if ((x < 0.5) && (y < 0.5)) {
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 100) {
_root.character.health = _root.character.health - 1;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
} else if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
tar = _root.ground.character;
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
tar.health = tar.health - 5;
removeMovieClip("");
}
}
} else {
_x = (_x + x);
_y = (_y + y);
if (nf == true) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 60) {
tar.health = tar.health - 3;
}
m++;
}
removeMovieClip("");
}
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 20) {
_root.ground.character.targets.slice(m);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
h = h + 1;
tar.health = tar.health - 1;
if (h > mH) {
removeMovieClip("");
}
}
if ((r == true) && (h > 0)) {
nf = true;
}
m++;
}
}
if ((((_y < -950) || (_x < -950)) || (_x > 117)) || (_y > 112)) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground.stuff["spark" + _root.ground.character.i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + _root.ground.character.i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + _root.ground.character.i]._rotation = random(360);
_root.ground.stuff["spark" + _root.ground.character.i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + _root.ground.character.i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + _root.ground.character.i]._yscale = _root.ground.stuff["spark" + _root.ground.character.i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + _root.ground.character.i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 342 MovieClip "dup" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
if (_name != "dup") {
chance = random(5);
if (chance == 1) {
gotoAndStop (22);
} else if (chance == 2) {
gotoAndStop (64);
} else if (chance == 3) {
gotoAndStop (85);
} else if (chance == 4) {
chance2 = random(100) + 1;
if (chance2 == 1) {
gotoAndStop (148);
}
} else {
gotoAndStop (1);
}
stFra = _currentframe;
cacheAsBitmap = true;
health = 3;
fraEvent = 29;
rotChange = random(20);
maxSpeed = random(3) + 2;
if (_y < -950) {
_y = -950;
}
if (_x < -950) {
_x = -950;
}
if (_y > 117) {
_y = 117;
}
if (_x > 117) {
_x = 117;
}
} else {
z = 90;
enemyCount = 0;
xSpawn = new Array(-655, -169, 137, 137, -172, -655, -977, -977);
ySpawn = new Array(-970, -970, -636, -167, 144, 144, -164, -636);
spNum = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "dup") {
if (done != true) {
_name = ("enemy" + _parent.dup.z);
_root.ground.character.targets.push(_name);
done = true;
}
if (_currentframe == stFra) {
fraEvent = fraEvent + 1;
if (_currentframe == 1) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if ((_currentframe == 22) || (_currentframe == 85)) {
if (fraEvent == 30) {
shootChance = 0;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 60) {
speed = 0;
if (_currentframe == 22) {
shootChance = random(2);
} else {
shootChance = 1;
}
} else {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
if (_currentframe == 22) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.character.i++;
duplicateMovieClip (_root.ground.spark, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
_root.sfx.gotoAndPlay((random(3) + 9) * 2);
_root.ground.character.health = _root.ground.character.health - 1;
} else {
play();
_root.ground.character.health = _root.ground.character.health - 5;
_root.ground.modifier = random(20) - 10;
_root.ground.yModifier = random(20) - 10;
}
}
}
} else if (_currentframe == 43) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 64) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
}
}
} else if (_currentframe == 106) {
if (redDone != true) {
redArr = new Array();
n = 0;
while (n < 3) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "enemy" + _root.ground.dup.z, _root.ground.dup.z);
_parent["enemy" + _root.ground.dup.z]._x = _x;
_parent["enemy" + _root.ground.dup.z]._y = _y;
_parent["enemy" + _root.ground.dup.z].gotoAndStop(127);
if (n == 0) {
_parent["enemy" + _root.ground.dup.z].rot = 180;
} else if (n == 1) {
_parent["enemy" + _root.ground.dup.z].rot = -60;
} else if (n == 2) {
_parent["enemy" + _root.ground.dup.z].rot = 60;
}
_parent["enemy" + _root.ground.dup.z].t = eval ("_root.ground." + _name);
redArr.push(eval (_root.ground["enemy" + _root.ground.dup.z]));
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
n++;
}
fraEvent = 9;
redDone = true;
}
v = 0;
while (v < 3) {
tgt = redArr[v];
if (tgt.health > 0) {
health = 150;
}
v++;
}
shootChance = random(100) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 90);
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((_rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((_rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(3);
} else if (shootChance == 50) {
if (_root.ground.dup.enemyCount < 5) {
_root.ground.dup.z++;
if (_root.ground.dup.z > 100) {
_root.ground.dup.z = 2;
}
duplicateMovieClip (_parent.dup, "en", _root.ground.dup.z);
sd = 60;
xds = Math.sin(_rotation * (Math.PI/180)) * sd;
yds = (Math.cos(_rotation * (Math.PI/180)) * sd) * -1;
_parent.en._x = _x + xds;
_parent.en._y = _y + yds;
_parent.en.gotoAndStop(85);
_root.ground.dup.enemyCount = _root.ground.dup.enemyCount + 1;
}
}
} else if (_currentframe == 127) {
shootChance = random(40) + 1;
sd = 100;
xds = Math.sin(rot * (Math.PI/180)) * sd;
yds = (Math.cos(rot * (Math.PI/180)) * sd) * -1;
_rotation = t._rotation;
_x = (t._x + xds);
_y = (t._y + yds);
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = _rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
} else if (_currentframe == 148) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 158) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
} else if (_currentframe == 168) {
if (fraEvent == 30) {
shootChance = random(5) + 1;
myRadians = Math.atan2(_root.ground.character._y - this._y, _root.ground.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
tur._rotation = myDegrees + 90;
dist = Math.sqrt(((_x - _root.ground.character._x) * (_x - _root.ground.character._x)) + ((_y - _root.ground.character._y) * (_y - _root.ground.character._y)));
if (Math.abs(dist) < 120) {
speed = 0;
} else if (dist > 300) {
rot = ((tur._rotation - 90) * Math.PI) / 180;
speed = maxSpeed;
} else {
speed = maxSpeed;
rot = ((tur._rotation - rotChange) * Math.PI) / 180;
}
xV = Math.cos(rot) * speed;
yV = Math.sin(rot) * speed;
fraEvent = 0;
if (shootChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + _root.ground.character.i, _root.ground.character.i);
_root.ground["bullet" + _root.ground.character.i]._x = _x;
_root.ground["bullet" + _root.ground.character.i]._y = _y;
_root.ground["bullet" + _root.ground.character.i]._rotation = tur._rotation;
_root.ground["bullet" + _root.ground.character.i].enemyBullet = true;
_root.ground["bullet" + _root.ground.character.i].gotoAndStop(2);
}
}
}
_x = (_x + xV);
_y = (_y + yV);
if (_currentframe == 148) {
if ((_y < -840) || (_y > 5)) {
_y = (_y - yV);
}
if ((_x < -840) || (_x > 5)) {
_x = (_x - xV);
}
} else {
if ((_y < -950) || (_y > 117)) {
_y = (_y - yV);
}
if ((_x < -950) || (_x > 117)) {
_x = (_x - xV);
}
}
if (health < 1) {
play();
}
} else if (done2 != true) {
a = 0;
while (a < _root.ground.character.targets.length) {
if (_root.ground.character.targets[a] == _name) {
_root.ground.character.targets.splice(a, 1);
itemChance = random(20) + 1;
if (itemChance == 1) {
_root.ground.character.i++;
duplicateMovieClip (_root.ground.powerup, "powerup" + _root.ground.character.i, _root.ground.character.i);
_root.ground["powerup" + _root.ground.character.i]._x = _x;
_root.ground["powerup" + _root.ground.character.i]._y = _y;
}
a = 1000;
_name = "";
_root.k = _root.k + _root.multiplier;
}
a++;
}
done2 = true;
}
} else if (((enemyCount < 20) && (_root.countDown.alTimer == 120)) && (_root.countDown.inBetweenTimer == 0)) {
z++;
if (z > 100) {
z = 2;
}
duplicateMovieClip (_parent.dup, "en", z);
_parent.en._x = xSpawn[spNum];
_parent.en._y = ySpawn[spNum];
spNum = spNum + 1;
if (spNum > 7) {
spNum = 0;
}
enemyCount = enemyCount + 1;
}
}
}
Instance of Symbol 329 MovieClip "explosion" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explosion") {
stop();
} else {
_root.sfx.gotoAndPlay((random(4) + 2) * 2);
}
}
Instance of Symbol 365 MovieClip "character" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
del = 3;
if (l <= 6) {
if (l == 1) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
} else if (l == 2) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
} else if (l == 3) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
} else if (l == 4) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 5) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(4);
} else if (l == 6) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(4);
}
} else if (l == 7) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 8) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 9) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(5);
} else if (l == 10) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 11) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) + 10;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = (_rotation - 90) - 10;
_root.ground["bullet" + i].gotoAndStop(6);
} else if (l == 12) {
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = _rotation - 90;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
i++;
duplicateMovieClip (_root.ground.bullet, "bullet" + i, i);
_root.ground["bullet" + i]._x = _x;
_root.ground["bullet" + i]._y = _y;
_root.ground["bullet" + i]._rotation = ((_rotation - 90) + random(40)) - 20;
_root.ground["bullet" + i].gotoAndStop(6);
}
_root.sfx.gotoAndPlay(2);
}
l = 1;
del = 0;
swapDepths(1000);
x = 0;
i = 125;
maxSpeed = 30;
decel = 0.2;
y = 0;
modifier = 0;
yModifier = 0;
targets = new Array(a);
health = 100;
}
onClipEvent (enterFrame) {
if (l > 12) {
l = 12;
}
_root.kill = _root.k / _root.multiplier;
_root.wpn = "Weapon Lv: " + l;
if (_root.pause == false) {
if (i > 500) {
i = 125;
}
myRadians = Math.atan2(_root._ymouse - (this._y + _root.ground._y), _root._xmouse - (this._x + _root.ground._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + 180);
rot = _rotation;
if (Key.isDown(65) || (Key.isDown(37))) {
if (x < maxSpeed) {
x = x + 1;
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
if (x > (-maxSpeed)) {
x = x - 1;
}
} else {
if (x > 0) {
x = x - decel;
}
if (x < 0) {
x = x + decel;
}
if (Math.abs(x) < decel) {
x = 0;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (y < maxSpeed) {
y = y + 1;
}
} else if (Key.isDown(87) || (Key.isDown(38))) {
if (y > (-maxSpeed)) {
y = y - 1;
}
} else {
if (y > 0) {
y = y - decel;
}
if (y < 0) {
y = y + decel;
}
if (Math.abs(y) < decel) {
y = 0;
}
}
_x = (_x - x);
_y = (_y + y);
if (_root.countDown.level == 4) {
if (_x > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = 75;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y > 75) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = 75;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
if (_x < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_x = -910;
x = x * -1.3;
if (Math.abs(x) > maxSpeed) {
if (x > 0) {
x = maxSpeed;
} else {
x = -maxSpeed;
}
}
}
if (_y < -910) {
_root.ground.modifier = random(40) - 20;
_root.ground.yModifier = random(40) - 20;
i++;
duplicateMovieClip (_root.ground.explosion, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = _rotation - 90;
i++;
duplicateMovieClip (_root.ground.stuff.burn, "spark" + i, i);
_root.ground.stuff["spark" + i]._x = _x - _root.ground.stuff._x;
_root.ground.stuff["spark" + i]._y = _y - _root.ground.stuff._y;
_root.ground.stuff["spark" + i]._rotation = random(360);
_root.ground.stuff["spark" + i].gotoAndStop(random(7) + 1);
_root.ground.stuff["spark" + i]._xscale = random(100) + 100;
_root.ground.stuff["spark" + i]._yscale = _root.ground.stuff["spark" + i]._xscale;
_root.ground.meh.myBitmap.draw(_root.ground.stuff);
_root.ground.stuff["spark" + i].removeMovieClip("");
health = health - 2;
_y = -910;
y = y * -1.3;
if (Math.abs(y) > maxSpeed) {
if (y > 0) {
y = maxSpeed;
} else {
y = -maxSpeed;
}
}
}
} else {
if (_x > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = 117;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 0;
_x = 95;
x = x * -0.5;
}
if (_y > 95) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = 117;
_root.ground["spark" + i]._rotation = 90;
_y = 95;
y = y * -0.5;
}
if (_x < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = -950;
_root.ground["spark" + i]._y = _y;
_root.ground["spark" + i]._rotation = 180;
_x = -930;
x = x * -0.5;
}
if (_y < -930) {
i++;
duplicateMovieClip (_root.ground.spark, "spark" + i, i);
_root.ground["spark" + i]._x = _x;
_root.ground["spark" + i]._y = -950;
_root.ground["spark" + i]._rotation = 270;
_y = -930;
y = y * -0.5;
}
}
del = del - 1;
if ((firing == true) && (del < 1)) {
shoot();
}
}
}
onClipEvent (mouseDown) {
firing = true;
}
onClipEvent (mouseUp) {
firing = false;
}
Instance of Symbol 359 MovieClip "powerup" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
time = 0;
gotoAndStop(random(3) + 1);
if ((_currentframe == 2) && (_root.ground.character.l > (_root.countDown.level + 1))) {
gotoAndStop (3);
}
if (_currentframe == 1) {
gotoAndStop (3);
}
}
}
onClipEvent (enterFrame) {
tar = eval ("_root.ground." + _root.ground.character);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 30) {
if (_currentframe == 1) {
_root.sfx.gotoAndPlay(12);
_root.ground.character.health = _root.ground.character.health + 25;
if (_root.ground.character.health > 100) {
_root.ground.character.health = 100;
}
removeMovieClip("");
} else if (_currentframe == 2) {
_root.sfx.gotoAndPlay(14);
_root.ground.character.l = _root.ground.character.l + 1;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.sfx.gotoAndPlay(16);
_root.ground.character.i++;
duplicateMovieClip (_root.ground.explosion, "spark" + _root.ground.character.i, _root.ground.character.i);
_root.ground["spark" + _root.ground.character.i]._x = _x;
_root.ground["spark" + _root.ground.character.i]._y = _y;
_root.ground["spark" + _root.ground.character.i]._xscale = 300;
_root.ground["spark" + _root.ground.character.i]._yscale = 300;
_root.ground["spark" + _root.ground.character.i]._rotation = _rotation - 90;
m = 0;
while (m < (_root.ground.character.targets.length + 1)) {
tar = eval ("_root.ground." + _root.ground.character.targets[m]);
dist = Math.sqrt(((_x - tar._x) * (_x - tar._x)) + ((_y - tar._y) * (_y - tar._y)));
if (dist < 200) {
tar.health = tar.health - 3;
}
m++;
}
_root.ground.modifier = 60;
_root.ground.yModifier = 60;
removeMovieClip("");
}
}
}