Frame 1
stop();
Frame 2
function playerHit() {
if (_root.engAllowDeath) {
_root.mainPlayer._visible = false;
_root.attachMovie("sprDeath", "sprDeath", 99998);
if (_root.mainPlayer._xscale < 0) {
_root.sprDeath._xscale = -100;
} else {
_root.sprDeath._xscale = 100;
}
_root.sprDeath._yscale = 100;
_root.sprDeath._x = _root.mainPlayer._x;
_root.sprDeath._y = _root.mainPlayer._y;
_root.mainPlayer._x = -100;
_root.mainPlayer._y = -100;
_root.totalDeaths++;
_root.mainOverlay.swapDepths(999999);
_root.mainOverlay.gotoAndPlay("death");
var _local2 = SharedObject.getLocal("Evade");
_local2.data.totalDeaths = _root.totalDeaths;
_local2.flush();
_root.levelSpeedTimer.gotoAndStop(1);
_root.engAllowDeath = false;
_root.mainThought._visible = false;
}
}
function clearBullets() {
var _local3 = 0;
var _local2 = 0;
while (_local3 < 35) {
_local2 = 0;
while (_local2 <= 100) {
_root[("bul" + _local3) + _local2].removeMovieClip();
_local2++;
}
_local3++;
}
}
function respawnPlayer() {
_root.mainPlayer._visible = true;
_root.engReset = true;
_root.engAllowDeath = true;
_root.mainPlayer._x = xSpawn;
_root.mainPlayer._y = ySpawn;
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_root.levelReaction.gotoAndStop(1);
_root.engBounds.levelMovingPlats2.gotoAndPlay(50);
}
function playerHitIntro() {
if (_root.engAllowDeath) {
_root.mainPlayer._visible = false;
_root.attachMovie("sprDeath", "sprDeath", 99998);
if (_root.mainPlayer._xscale < 0) {
_root.sprDeath._xscale = -100;
} else {
_root.sprDeath._xscale = 100;
}
_root.sprDeath._yscale = 100;
_root.sprDeath._x = _root.mainPlayer._x;
_root.sprDeath._y = _root.mainPlayer._y;
_root.mainPlayer._x = -100;
_root.mainPlayer._y = -100;
_root.engAllowDeath = false;
_root.levelSpeach.play();
_root.levelStopper = false;
}
}
stop();
fxSelection = new Sound();
fxSelection.attachSound("fxSelection");
fxSelection2 = new Sound();
fxSelection2.attachSound("fxSelection2");
mscTitle = new Sound();
mscTitle.attachSound("mscTitle");
mscNormal = new Sound();
mscNormal.attachSound("mscNormal");
mscDance = new Sound();
mscDance.attachSound("mscDance");
mscHardcore = new Sound();
mscHardcore.attachSound("mscHardcore");
fxFart1 = new Sound();
fxFart1.attachSound("fxFart1");
fxFart2 = new Sound();
fxFart2.attachSound("fxFart2");
fxFart3 = new Sound();
fxFart3.attachSound("fxFart3");
_root.soundCurrent = "title";
_root.soundOn = true;
_root.disLevelName = new Array(40);
_root.disLevelName[0] = "Introduction";
_root.disLevelName[1] = "The Basics";
_root.disLevelName[2] = "Performance in a Tunnel";
_root.disLevelName[3] = "Vertical Boost Capabilities";
_root.disLevelName[4] = "Hop Timing";
_root.disLevelName[5] = "Competency with Simple Stairs";
_root.disLevelName[6] = "Precision Landing";
_root.disLevelName[7] = "General Speed";
_root.disLevelName[8] = "Ascension and Descension";
_root.disLevelName[9] = "Fear of Tight Spaces";
_root.disLevelName[10] = "Competency of Falling, Floating and Climbing";
_root.disLevelName[11] = "Infiltration Skills of a Laser-Guarded Fortress";
_root.disLevelName[12] = "Aerial Maneuvering Skills";
_root.disLevelName[13] = "Mobility in Deep Space";
_root.disLevelName[14] = "Patience";
_root.disLevelName[15] = "Dexterity within Circles of Danger";
_root.disLevelName[16] = "Potential Ability to Use an Underground Subway";
_root.disLevelName[17] = "Focused Speed";
_root.disLevelName[18] = "Ability to Read Patterns";
_root.disLevelName[19] = "Hurdle Jumping Skills";
_root.disLevelName[20] = "Paranoia";
_root.disLevelName[21] = "Operation within Malfunction";
_root.disLevelName[22] = "Performance in Low Visibility";
_root.disLevelName[23] = "Basic Reaction Speed";
_root.disLevelName[24] = "Simplistic Timing of Deporting from a Vehicle";
_root.disLevelName[25] = "Air Movement Control and Timing";
_root.disLevelName[26] = "Performance with Forced Hyperactivity";
_root.disLevelName[27] = "Accuracy of Diagonal Movement";
_root.disLevelName[28] = "High Speed";
_root.disLevelName[29] = "Visualization and Imagination";
_root.disLevelName[30] = "Ninja-Like Movements";
_root.disLevelName[31] = "Humor";
_root.disLevelName[32] = "Perseverance when Working Around the Clock";
_root.disLevelName[33] = "Ability to Deal with a Sticky Situation";
_root.disLevelName[34] = "Tolerance of Gradually Decreasing Temperature";
_root.disLevelName[35] = "Jumping Aim into a Precise Target";
_root.disLevelName[36] = "Concentration and Speed";
_root.disLevelName[37] = "Punctuality in Catching Moving Transportation";
_root.disLevelName[38] = "Capability to Cope with Depressing Weather";
_root.disLevelName[39] = "Determination to Conquer the Waterfall of Fire";
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
_root.menu = root_cm;
var savefile = SharedObject.getLocal("Evade");
if (savefile.data.levelStatus == undefined) {
savefile.data.levelStatus = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2);
savefile.data.levelLocked = new Array(1, 1, 1, 1, 1);
savefile.data.totalCompletedLevels = 0;
savefile.data.totalDeaths = 0;
savefile.data.totalDeathsFinal = 0;
savefile.data.gameDone = false;
savefile.flush();
_root.levelStatus = savefile.data.levelStatus;
_root.levelLocked = savefile.data.levelLocked;
_root.totalCompletedLevels = savefile.data.totalCompletedLevels;
_root.totalDeaths = savefile.data.totalDeaths;
_root.totalDeathsFinal = savefile.data.totalDeathsFinal;
_root.gameDone = savefile.data.gameDone;
} else {
_root.levelStatus = savefile.data.levelStatus;
_root.levelLocked = savefile.data.levelLocked;
_root.totalCompletedLevels = savefile.data.totalCompletedLevels;
_root.totalDeaths = savefile.data.totalDeaths;
_root.totalDeathsFinal = savefile.data.totalDeathsFinal;
_root.gameDone = savefile.data.gameDone;
}
Frame 3
var chosenMusic = "title";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 161 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.totalCompletedLevels == 40) {
gotoAndStop (2);
}
}
Frame 4
var chosenMusic = "title";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 190 MovieClip "00" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "10" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "20" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "30" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "40" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "50" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "60" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "70" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "81" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "91" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "101" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "111" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "121" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "131" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "141" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "151" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "162" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "172" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "182" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "192" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "202" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "212" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "222" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "232" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "243" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "253" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "263" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "273" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "283" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "293" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "303" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "313" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "324" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "334" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "344" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "354" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "364" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "374" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "384" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 190 MovieClip "394" in Frame 4
onClipEvent (enterFrame) {
if (_name.length == 2) {
if (_root.levelStatus[_name.substr(0, 1)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_name.length == 3) {
if (_root.levelStatus[_name.substr(0, 2)] == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[0] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[1] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[2] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[3] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.levelLocked[4] == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 237 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.totalCompletedLevels == 40) {
if (_root.totalDeathsFinal == 0) {
_root.totalDeathsFinal = _root.totalDeaths;
var savefile = SharedObject.getLocal("Evade");
savefile.data.totalDeathsFinal = _root.totalDeathsFinal;
savefile.flush();
}
gotoAndStop (2);
}
}
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.totalCompletedLevels == 40) {
if (!_root.gameDone) {
_root.gameDone = true;
var savefile = SharedObject.getLocal("Evade");
savefile.data.totalDeathsFinal = _root.totalDeathsFinal;
savefile.data.gameDone = _root.gameDone;
savefile.flush();
gotoAndStop (2);
}
}
}
Instance of Symbol 255 MovieClip "disLevelDisplayer" in Frame 4
onClipEvent (enterFrame) {
startDrag ("", true);
}
Frame 5
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 28;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 5
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = -10;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 5
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = -10;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 5
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = 10;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 5
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Instance of Symbol 385 MovieClip "mainOverlay" in Frame 5
onClipEvent (load) {
this.swapDepths(999999);
}
Instance of Symbol 392 MovieClip "miscEntrance" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(999999);
}
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
_root.playerHit();
}
}
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
if (!_root.engSuccess) {
_root.engSuccess = true;
_root.engAllowDeath = false;
_root.mainOverlay.swapDepths(999999);
_root.mainOverlay.gotoAndPlay("success");
}
}
}
Frame 6
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 3;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 6
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 40;
var bulletType = "RedFire";
var bulletRotation = 0;
var xSpeed = -10;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
gotoAndPlay (2);
break;
}
i++;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 6
onClipEvent (load) {
var bulletTime = 20;
var bulletSpawnTime = 40;
var bulletType = "RedFire";
var bulletRotation = 0;
var xSpeed = -10;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
gotoAndPlay (2);
break;
}
i++;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Frame 7
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 36;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 7
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 7
onClipEvent (load) {
var bulletTime = 24;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 7
onClipEvent (load) {
var bulletTime = 24;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = -5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 7
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 7
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = -5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Frame 8
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 24;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
_root.levelThought = 1;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 413 MovieClip "2" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "1" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "0" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 0;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "5" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "4" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "3" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -25;
var ySpeed = 0;
var levelSwitch = 1;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "8" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -15;
var ySpeed = 0;
var levelSwitch = 2;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 2;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "7" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -15;
var ySpeed = 0;
var levelSwitch = 2;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 2;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "6" in Frame 8
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -15;
var ySpeed = 0;
var levelSwitch = 2;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.engReset) {
var bulletTime = 0;
var bulletSpawnTime = 1;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -9999;
var xSpeed = -30;
var ySpeed = 0;
var levelSwitch = 2;
}
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 367 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 1) {
_root.mainThought.gotoAndStop("reaction");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
_root.levelThought = 2;
}
}
}
Instance of Symbol 436 MovieClip "mainThought" in Frame 8
onClipEvent (load) {
var visualTime = 0;
var visualMax = 140;
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (visualTime <= -1) {
visualTime--;
} else {
visualTime++;
}
if (visualTime >= visualMax) {
visualTime = -1;
}
if (visualTime == 1) {
_alpha = 10;
} else if (visualTime == 3) {
_alpha = 50;
} else if (visualTime == 5) {
_alpha = 70;
} else if (visualTime == 8) {
_alpha = 85;
} else if (visualTime == 11) {
_alpha = 95;
} else if (visualTime == 14) {
_alpha = 100;
}
_x = _root.mainPlayer._x;
_y = _root.mainPlayer._y;
if (visualTime == -1) {
_alpha = 95;
} else if (visualTime == -3) {
_alpha = 85;
} else if (visualTime == -5) {
_alpha = 70;
} else if (visualTime == -8) {
_alpha = 50;
} else if (visualTime == -11) {
_alpha = 20;
} else if (visualTime == -14) {
_visible = false;
}
}
if (!_visible) {
_alpha = 0;
var visualTime = 0;
}
}
Instance of Symbol 443 MovieClip "levelReaction" in Frame 8
onClipEvent (load) {
_root.levelSwitches = new Array(0, 0, 0);
_root.levelReactionTime = 0;
}
onClipEvent (enterFrame) {
if (_root.engReset) {
_root.levelSwitches = new Array(0, 0, 0);
_root.levelReactionTime = 0;
}
}
Frame 9
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 37;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 9
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 9
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 9
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 9
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 9
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 9
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
_root.engAllowMovement = true;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engAllowMovement) {
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
} else {
gotoAndStop (1);
_xscale = scaledTo;
}
}
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 9
onClipEvent (load) {
_root.levelSeconds = 6;
_root.engAllowMovement = false;
_root.engReset = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.engReset) {
_root.levelSeconds = 6;
gotoAndPlay (1);
}
}
}
Frame 10
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 31;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 10
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 10
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 10
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 10
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 10
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 11
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 11;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
_root.levelThought = 1;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 11
onClipEvent (load) {
var bulletTime = 16;
var bulletSpawnTime = 32;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 11
onClipEvent (load) {
var bulletTime = 8;
var bulletSpawnTime = 32;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 11
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 32;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 513 MovieClip in Frame 11
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 0;
_root.levelSwitches[1] = 0;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 367 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 1) {
_root.mainThought.gotoAndStop("hover");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
_root.levelThought = 2;
}
}
}
Instance of Symbol 436 MovieClip "mainThought" in Frame 11
onClipEvent (load) {
var visualTime = 0;
var visualMax = 140;
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (visualTime <= -1) {
visualTime--;
} else {
visualTime++;
}
if (visualTime >= visualMax) {
visualTime = -1;
}
if (visualTime == 1) {
_alpha = 10;
} else if (visualTime == 3) {
_alpha = 50;
} else if (visualTime == 5) {
_alpha = 70;
} else if (visualTime == 8) {
_alpha = 85;
} else if (visualTime == 11) {
_alpha = 95;
} else if (visualTime == 14) {
_alpha = 100;
}
_x = _root.mainPlayer._x;
_y = _root.mainPlayer._y;
if (visualTime == -1) {
_alpha = 95;
} else if (visualTime == -3) {
_alpha = 85;
} else if (visualTime == -5) {
_alpha = 70;
} else if (visualTime == -8) {
_alpha = 50;
} else if (visualTime == -11) {
_alpha = 20;
} else if (visualTime == -14) {
_visible = false;
}
}
if (!_visible) {
_alpha = 0;
var visualTime = 0;
}
}
Frame 12
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 25;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 12
onClipEvent (load) {
var bulletTime = 20;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 12
onClipEvent (load) {
var bulletTime = 10;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 12
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Frame 13
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 12;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 413 MovieClip "0" in Frame 13
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser2";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = -15;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "2" in Frame 13
onClipEvent (load) {
var bulletTime = 25;
var bulletSpawnTime = 50;
var bulletType = "PurpleLaser2";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = -15;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "3" in Frame 13
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 50;
var bulletType = "PurpleLaser2";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = -15;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "1" in Frame 13
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 96;
var bulletType = "PurpleLaser2";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 15;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 13
onClipEvent (load) {
var spinSpeed = -1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 14
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 33;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "2" in Frame 14
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 135;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = -8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 14
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 45;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = -8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 14
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 14
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 14
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 14
onClipEvent (load) {
var spinSpeed = 0.5;
var levelStart = 0;
}
onClipEvent (enterFrame) {
if (_root.engReset) {
_rotation = 0;
levelStart = 0;
}
if (levelStart <= 52) {
levelStart++;
} else {
_rotation = (_rotation + spinSpeed);
}
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 15
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 18;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 15
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 42;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
gotoAndPlay (2);
break;
}
i++;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 15
onClipEvent (load) {
var bulletTime = 21;
var bulletSpawnTime = 42;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
gotoAndPlay (2);
break;
}
i++;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 15
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
_root.engAllowMovement = true;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engAllowMovement) {
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
} else {
gotoAndStop (1);
_xscale = scaledTo;
}
}
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 15
onClipEvent (load) {
_root.levelSeconds = 12;
_root.engAllowMovement = false;
_root.engReset = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.engReset) {
_root.levelSeconds = 12;
gotoAndPlay (1);
}
}
}
Frame 16
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 38;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 16
onClipEvent (load) {
var bulletTime = 20;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 16
onClipEvent (load) {
var bulletTime = 10;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 6;
var delaySwitch = 7;
var delayDuration = -24;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 16
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 16
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "5" in Frame 16
onClipEvent (load) {
var bulletTime = 14;
var bulletSpawnTime = 50;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 3;
var delaySwitch = 7;
var delayDuration = -24;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "6" in Frame 16
onClipEvent (load) {
var bulletTime = 22;
var bulletSpawnTime = 45;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "7" in Frame 16
onClipEvent (load) {
var bulletTime = 44;
var bulletSpawnTime = 45;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "8" in Frame 16
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 30;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -24;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "9" in Frame 16
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "10" in Frame 16
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "11" in Frame 16
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = 0;
var ySpeed = 9;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 513 MovieClip in Frame 16
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 0;
_root.levelSwitches[1] = 0;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 16
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 17
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 17;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 17
onClipEvent (load) {
var bulletTime = 24;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 17
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 17
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 17
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 72;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 17
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 72;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = -5;
var ySpeed = 5;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Frame 18
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 20;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 18
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 18
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 19
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 26;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 413 MovieClip "0" in Frame 19
onClipEvent (load) {
var bulletTime = 49;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "1" in Frame 19
onClipEvent (load) {
var bulletTime = 42;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "2" in Frame 19
onClipEvent (load) {
var bulletTime = 35;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "3" in Frame 19
onClipEvent (load) {
var bulletTime = 28;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "4" in Frame 19
onClipEvent (load) {
var bulletTime = 21;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "5" in Frame 19
onClipEvent (load) {
var bulletTime = 14;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "6" in Frame 19
onClipEvent (load) {
var bulletTime = 7;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "7" in Frame 19
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 56;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 0;
var ySpeed = 15;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 19
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 20
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 40;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 513 MovieClip in Frame 20
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 1;
_root.levelSwitches[1] = 1;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 20
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 20
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 20
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 20
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 20
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "5" in Frame 20
onClipEvent (load) {
var bulletTime = 30;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "6" in Frame 20
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "7" in Frame 20
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "8" in Frame 20
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Frame 21
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 6;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "2" in Frame 21
onClipEvent (load) {
var bulletTime = 14;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = true;
var delayCount = 6;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 21
onClipEvent (load) {
var bulletTime = 7;
var bulletSpawnTime = 42;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = true;
var delayCount = 3;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 21
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 21
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 21
onClipEvent (load) {
var bulletTime = 24;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 22
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 35;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 22
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
var defaultSpeedHori = 10;
var freezetime = 0;
var freezemax = 42;
}
onClipEvent (enterFrame) {
freezetime++;
if (freezetime == freezemax) {
if (defaultSpeedHori != 0) {
defaultSpeedHori--;
freezetime = 0;
}
}
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
var defaultSpeedHori = 10;
var freezetime = 0;
var freezemax = 42;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Instance of Symbol 600 MovieClip in Frame 22
onClipEvent (load) {
var total = 440;
var time = 0;
var per = 0;
}
onClipEvent (enterFrame) {
if (time != total) {
time++;
per = int((time / total) * 100);
this._alpha = per;
} else if (time == total) {
_root.playerHit();
total = 440;
time = 0;
per = 0;
}
if (_root.engReset) {
total = 440;
time = 0;
per = 0;
}
}
Frame 23
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 23;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 23
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 23
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 23
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 36;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 23
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 120;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 23
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Instance of Symbol 609 MovieClip "levelLowVisibilty" in Frame 23
onClipEvent (enterFrame) {
this.swapDepths(99999);
}
Frame 24
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 39;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 413 MovieClip "0" in Frame 24
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "1" in Frame 24
onClipEvent (load) {
var bulletTime = 3;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "2" in Frame 24
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "3" in Frame 24
onClipEvent (load) {
var bulletTime = 13;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "4" in Frame 24
onClipEvent (load) {
var bulletTime = 13;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "5" in Frame 24
onClipEvent (load) {
var bulletTime = 22;
var bulletSpawnTime = 30;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "6" in Frame 24
onClipEvent (load) {
var bulletTime = 11;
var bulletSpawnTime = 48;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "7" in Frame 24
onClipEvent (load) {
var bulletTime = 5;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "8" in Frame 24
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "9" in Frame 24
onClipEvent (load) {
var bulletTime = 11;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "10" in Frame 24
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "11" in Frame 24
onClipEvent (load) {
var bulletTime = 20;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "12" in Frame 24
onClipEvent (load) {
var bulletTime = 18;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "13" in Frame 24
onClipEvent (load) {
var bulletTime = 23;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "14" in Frame 24
onClipEvent (load) {
var bulletTime = 20;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -48;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "15" in Frame 24
onClipEvent (load) {
var bulletTime = 15;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "16" in Frame 24
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "17" in Frame 24
onClipEvent (load) {
var bulletTime = 21;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "18" in Frame 24
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "19" in Frame 24
onClipEvent (load) {
var bulletTime = 5;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "20" in Frame 24
onClipEvent (load) {
var bulletTime = 3;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "21" in Frame 24
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser";
var bulletRotation = 110;
var delayFunction = false;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = -4;
var ySpeed = 10;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Frame 25
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 30;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 25
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -60;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 25
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 25
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "5" in Frame 25
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 25
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 25
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = -8;
var ySpeed = 8;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 25
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 25
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 513 MovieClip in Frame 25
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 0;
_root.levelSwitches[1] = 0;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Frame 26
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 32;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 26
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
var fartTime = 0;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (fartTime == 0) {
var randomFart = int((Math.random() * 3) + 1);
if (randomFart == 1) {
_root.fxFart1.start(0, 1);
} else if (randomFart == 2) {
_root.fxFart2.start(0, 1);
} else if (randomFart == 3) {
_root.fxFart3.start(0, 1);
}
fartTime = 1;
}
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
var fartTime = 0;
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
if (fartTime == 0) {
var randomFart = int((Math.random() * 3) + 1);
if (randomFart == 1) {
_root.fxFart1.start(0, 1);
} else if (randomFart == 2) {
_root.fxFart2.start(0, 1);
} else if (randomFart == 3) {
_root.fxFart3.start(0, 1);
}
fartTime = 1;
}
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
if (fartTime == 0) {
var randomFart = int((Math.random() * 3) + 1);
if (randomFart == 1) {
_root.fxFart1.start(0, 1);
} else if (randomFart == 2) {
_root.fxFart2.start(0, 1);
} else if (randomFart == 3) {
_root.fxFart3.start(0, 1);
}
fartTime = 1;
}
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
if (fartTime == 0) {
var randomFart = int((Math.random() * 3) + 1);
if (randomFart == 1) {
_root.fxFart1.start(0, 1);
} else if (randomFart == 2) {
_root.fxFart2.start(0, 1);
} else if (randomFart == 3) {
_root.fxFart3.start(0, 1);
}
fartTime = 1;
}
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
if (fartTime == 0) {
var randomFart = int((Math.random() * 3) + 1);
if (randomFart == 1) {
_root.fxFart1.start(0, 1);
} else if (randomFart == 2) {
_root.fxFart2.start(0, 1);
} else if (randomFart == 3) {
_root.fxFart3.start(0, 1);
}
fartTime = 1;
}
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 27
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 27;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "normal";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 413 MovieClip "0" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "1" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 4;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "2" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "3" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "4" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "5" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -10;
var xSpeed = 0;
var ySpeed = 15;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 413 MovieClip "6" in Frame 27
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 50;
var bulletType = "PurpleLaser2";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -50;
var xSpeed = 12;
var ySpeed = 0;
var levelSwitch = 0;
_root.levelSwitches = new Array(1, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 27
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 25;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 25;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 28
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 34;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 28
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 29
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 29;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "dance";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) {
var spinSpeed = 4;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) {
var spinSpeed = -4;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) {
var spinSpeed = 4;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) {
var spinSpeed = -4;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 402 MovieClip in Frame 29
onClipEvent (load) {
var spinSpeed = -3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 29
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
_root.engAllowMovement = true;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engAllowMovement) {
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
} else {
gotoAndStop (1);
_xscale = scaledTo;
}
}
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 29
onClipEvent (load) {
_root.levelSeconds = 5;
_root.engAllowMovement = false;
_root.engReset = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.engReset) {
_root.levelSeconds = 5;
gotoAndPlay (1);
}
}
}
Frame 30
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 21;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 6;
var delaySwitch = 7;
var delayDuration = -80;
var xSpeed = 0;
var ySpeed = 10;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "13" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -300;
var xSpeed = 0;
var ySpeed = 10;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "11" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -25;
var xSpeed = 0;
var ySpeed = -8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "1" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 9;
var delaySwitch = 10;
var delayDuration = -70;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -150;
var xSpeed = -8;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "8" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 6;
var delaySwitch = 10;
var delayDuration = -150;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "14" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -400;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "7" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -190;
var xSpeed = 0;
var ySpeed = 8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "10" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 7;
var delayDuration = -300;
var xSpeed = 0;
var ySpeed = 8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "12" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 1;
var delaySwitch = 2;
var delayDuration = -210;
var xSpeed = 0;
var ySpeed = -8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "2" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 90;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 2;
var delayDuration = -80;
var xSpeed = 0;
var ySpeed = -10;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "5" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 9;
var delaySwitch = 10;
var delayDuration = -220;
var xSpeed = 0;
var ySpeed = 8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "9" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 2;
var delaySwitch = 3;
var delayDuration = -220;
var xSpeed = 0;
var ySpeed = 8;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 513 MovieClip in Frame 30
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 1;
_root.levelSwitches[1] = 0;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -10;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 271 MovieClip "6" in Frame 30
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 180;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -110;
var xSpeed = 8;
var ySpeed = 0;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 30
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
}
onClipEvent (enterFrame) {
var dUpLeft = (Key.isDown(38) && (Key.isDown(37)));
var dUpRight = (Key.isDown(38) && (Key.isDown(39)));
var dDownLeft = (Key.isDown(40) && (Key.isDown(37)));
var dDownRight = (Key.isDown(40) && (Key.isDown(39)));
var dDown = Key.isDown(40);
var dLeft = Key.isDown(37);
var dRight = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dUp = Key.isDown(32);
var dUp2 = Key.isDown(38);
if (_root.engReset) {
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);
var attHalfWidth = Math.floor(_width / 2);
var attQuarterWidth = Math.floor(_width / 4);
var attHeightDefault = attHeight;
var attHalfHeightDefault = attHalfHeight;
var attHeightCrawl = 20;
var attHalfHeightCrawl = 10;
var ktimeLeft = 0;
var ktimeRight = 0;
var ktimeUp = 0;
var ktimeUp2 = 0;
var ktimeDown = 0;
var ktimeDown2 = 0;
var ktimeWallJump = 0;
var ktimeDRight = 0;
var ktimeDRight2 = 0;
var ktimeDLeft = 0;
var ktimeDLeft2 = 0;
var ktimeThrust = 0;
var ktimeThrust2 = 0;
var ktimeHover = -1;
var ktimeDive = 0;
var thrustPlusX = 0;
var thrustPlusY = 0;
var hoverDuration = 0;
var hoverDurationMax = 24;
var scaledTo = 100;
var crawlZone = false;
_root.engReset = false;
}
if (dRight) {
_xscale = scaledTo;
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeRight = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -1;
} else {
modeWallJump = 0;
}
ktimeRight = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x + speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) {
_x = (_x+1);
}
easeHori = 0;
}
}
if (dLeft) {
_xscale = (-scaledTo);
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
if (modeVisual != "dashstop") {
if (modeVisual != "hover") {
if (modeVisual != "dive") {
modeVisual = "run";
}
}
}
}
}
_root.visGetUpDone = true;
ktimeLeft = -1;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
} else if (modeHover) {
speedHori = speedHover;
} else {
speedHori = defaultSpeedHori;
}
} else if (modeHover) {
speedHori = speedHover;
} else if (crawlZone) {
speedHori = speedCrouch;
} else if (modeVisual == "dive") {
speedHori = speedRoll;
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
}
if (easeHori == 0) {
if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 2;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) {
if (!modeStand) {
modeVisual = "walldrag";
}
if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) {
modeWallJump = -2;
} else {
modeWallJump = 0;
}
ktimeLeft = 0;
easeHori = 3;
} else {
modeWallJump = 0;
_x = (_x - speedHori);
}
}
if (easeHori == 1) {
while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 2) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
if (easeHori == 3) {
while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) {
_x = (_x-1);
}
easeHori = 0;
}
}
if (_root.engCrawl) {
attHeight = attHeightCrawl;
attHalfHeight = attHalfHeightCrawl;
if (_currentframe != 2) {
_root.engCrawl = false;
}
if (engBounds.hitTest(_x, _y - attHeightDefault, true)) {
crawlZone = true;
} else {
crawlZone = false;
}
} else {
attHeight = attHeightDefault;
attHalfHeight = attHalfHeightDefault;
crawlZone = false;
}
if (modeHover) {
if (!dUp2) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
} else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
hoverDuration++;
if (hoverDuration >= hoverDurationMax) {
modeHover = false;
modeFall = true;
speedDrop = 2;
ktimeHover = -1;
}
} else {
ktimeThrust2 = 0;
hoverDuration = 0;
}
if (modeFall) {
if (modeVisual != "walldrag") {
if (modeVisual != "dash") {
if (modeVisual != "dive") {
modeVisual = "fall";
}
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 1;
} else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) {
ktimeUp = 0;
easeVert = 2;
} else {
_y = (_y + speedDrop);
speedDrop = speedDrop + speedIncVelocity;
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) {
_y = (_y+1);
}
speedDrop = speedDropReset;
easeVert = 0;
modeFall = false;
}
}
if (modeJump) {
if (modeVisual != "dbljump") {
if (modeVisual != "dash") {
modeVisual = "jump";
}
}
if (dUp2) {
if (ktimeHover == 0) {
modeVisual = "hover";
modeHover = true;
modeJump = false;
modeFall = false;
ktimeThrust2 = 1;
ktimeUp = 0;
}
}
if (!modeDive) {
if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) {
if (!dDown) {
ktimeDown = -2;
}
}
if (ktimeDown == -2) {
if (dDown) {
ktimeDown = -1;
ktimeDown2 = 0;
}
}
}
if (easeVert == 0) {
if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) {
easeVert = 1;
ktimeUp = 0;
} else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) {
easeVert = 2;
ktimeUp = 0;
} else {
if (speedJump > 0) {
_y = (_y - speedJump);
speedJump = speedJump - speedIncVelocity;
}
if (speedJump <= 0) {
modeFall = true;
modeJump = false;
speedDrop = 0;
if (modeSuperJump) {
ktimeThrust = 1;
thrustPlusY = -15;
if (dLeft) {
thrustPlusX = 15;
} else if (dRight) {
thrustPlusX = -15;
}
}
}
}
if (easeVert == 1) {
while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
if (easeVert == 2) {
while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) {
_y = (_y-1);
}
easeVert = 0;
modeFall = true;
modeJump = false;
speedDrop = speedJump;
}
}
}
if (((!modeFall) && (!modeJump)) && (!modeHover)) {
modeStand = true;
modeSuperJump = false;
modeDive = false;
modeWallJump = 0;
ktimeHover = 0;
ktimeDown = 0;
ktimeDown2 = 0;
if (defaultSpeedHori == undefined) {
defaultSpeedHori = speedHori;
}
if (crawlZone) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else if (dDown) {
if (modeStand) {
speedHori = speedCrouch;
modeCrouch = true;
modeVisual = "crouch";
} else {
speedHori = defaultSpeedHori;
}
} else {
speedHori = defaultSpeedHori;
modeCrouch = false;
if ((!dLeft) && (!dRight)) {
if (modeVisual == "fall") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dive") {
modeVisual = "getup";
_root.visGetUpDone = false;
gotoAndStop ("getup");
modeExInsert = 1;
} else if (modeVisual == "dash") {
modeVisual = "dashstop";
_root.visDashStopDone = false;
gotoAndStop ("dashstop");
modeExInsert = 2;
}
if (modeExInsert == 1) {
if (_root.visGetUpDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else if (modeExInsert == 2) {
if (_root.visDashStopDone) {
modeVisual = "stand";
ktimeDLeft2 = 0;
ktimeDRight2 = 0;
modeExInsert = 0;
}
} else {
modeVisual = "stand";
}
}
}
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
if (ktimeUp2 == 0) {
if (!crawlZone) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
ktimeWallJump = -1;
ktimeUp2 = -1;
if (modeCrouch) {
speedJump = speedCrouchIni;
modeSuperJump = true;
ktimeUp = 0;
ktimeThrust = 1;
} else {
speedJump = speedInitial;
}
modeJump = true;
}
}
}
while (engBounds.hitTest(_x, _y, true)) {
_y = (_y-1);
}
if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) {
modeFall = true;
speedDrop = speedDropReset;
ktimeUp = -1;
}
}
if (defaultIncVelocity == undefined) {
defaultIncVelocity = speedIncVelocity;
}
if (modeFall) {
if (modeWallJump <= -1) {
speedDrop = speedWallDrop;
speedIncVelocity = 1;
ktimeThrust = 0;
}
} else {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump == 0) {
speedIncVelocity = defaultIncVelocity;
}
if (modeWallJump <= -1) {
if ((!dLeft) && (!dRight)) {
modeVisual = "fall";
modeWallJump = 0;
}
}
if (ktimeWallJump == 0) {
if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) {
if (modeWallJump == -1) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeLeft = 1;
ktimeWallJump = -1;
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
}
}
}
}
if (ktimeUp2 == -1) {
if (!dUp) {
ktimeUp2 = 0;
}
}
if (ktimeDown == -1) {
if (dDown) {
ktimeDown = 1;
}
}
if (ktimeRight == -1) {
if (!dRight) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
} else {
ktimeRight = 1;
ktimeDRight = 1;
}
}
}
if (ktimeLeft == -1) {
if (!dLeft) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
} else {
ktimeLeft = 1;
ktimeDLeft = 1;
}
}
}
if (ktimeUp == -1) {
if (!dUp) {
ktimeUp = 1;
}
}
if (ktimeWallJump == -1) {
if (!dUp) {
ktimeWallJump = 0;
}
}
if (ktimeDown > 0) {
ktimeDown++;
if (!dDown) {
ktimeDown2 = -1;
}
}
if (ktimeDown == 7) {
ktimeDown = 0;
ktimeDown2 = 0;
}
if (ktimeDown2 == -1) {
if (dDown) {
modeVisual = "dive";
modeDive = true;
ktimeThrust = 1;
ktimeDive = 1;
}
}
if (ktimeDive > 0) {
ktimeDive++;
if (ktimeDive == 2) {
speedDrop = speedDrop + 10;
} else if (ktimeDive == 3) {
speedDrop = speedDrop + 5;
} else if (ktimeDive == 4) {
speedDrop = speedDrop + 2;
}
}
if (ktimeRight > 0) {
if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) {
ktimeRight = 0;
}
ktimeRight++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeRight == 2) {
_x = (_x + 10);
} else if (ktimeRight == 3) {
_x = (_x + 5);
} else if (ktimeRight == 4) {
_x = (_x + 3);
} else if (ktimeRight == 5) {
_x = (_x + 2);
} else if (ktimeRight == 6) {
_x = (_x + 1);
} else if (ktimeRight == 7) {
ktimeRight = 0;
}
}
}
}
if (ktimeLeft > 0) {
if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) {
ktimeLeft = 0;
}
ktimeLeft++;
}
if (!dDown) {
if (!modeHover) {
if (!crawlZone) {
if (ktimeLeft == 2) {
_x = (_x - 10);
} else if (ktimeLeft == 3) {
_x = (_x - 5);
} else if (ktimeLeft == 4) {
_x = (_x - 3);
} else if (ktimeLeft == 5) {
_x = (_x - 2);
} else if (ktimeLeft == 6) {
_x = (_x - 1);
} else if (ktimeLeft == 7) {
ktimeLeft = 0;
}
}
}
}
if (ktimeDRight > 0) {
ktimeDRight++;
}
if (ktimeDRight >= 1) {
if (dRight) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDRight2 = 1;
ktimeThrust = 1;
thrustPlusX = -25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDRight == 4) {
ktimeDRight = 0;
}
if (ktimeDRight2 > 0) {
ktimeDRight2++;
}
if (ktimeDRight2 == 1) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) {
_x = (_x + 10);
}
} else if (ktimeDRight2 == 2) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) {
_x = (_x + 25);
}
} else if (ktimeDRight2 == 3) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) {
_x = (_x + 5);
}
} else if (ktimeDRight2 == 5) {
if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) {
_x = (_x + 2);
}
} else if (ktimeDRight2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDRight2 = 0;
}
if (ktimeDLeft > 0) {
ktimeDLeft++;
}
if (ktimeDLeft >= 1) {
if (dLeft) {
if (!modeHover) {
if (!modeDive) {
if (!crawlZone) {
ktimeDLeft2 = 1;
ktimeThrust = 1;
thrustPlusX = 25;
thrustPlusY = -10;
modeVisual = "dash";
}
}
}
}
}
if (ktimeDLeft == 4) {
ktimeDLeft = 0;
}
if (ktimeDLeft2 > 0) {
ktimeDLeft2++;
}
if (ktimeDLeft2 == 1) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) {
_x = (_x - 10);
}
} else if (ktimeDLeft2 == 2) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) {
_x = (_x - 25);
}
} else if (ktimeDLeft2 == 3) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) {
_x = (_x - 5);
}
} else if (ktimeDLeft2 == 5) {
if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) {
_x = (_x - 2);
}
} else if (ktimeDLeft2 == 9) {
if (modeVisual != "stand") {
modeExInsert = 0;
if (modeVisual != "hover") {
if (!crawlZone) {
modeVisual = "run";
}
}
}
ktimeDLeft2 = 0;
}
if (ktimeUp == 1) {
if (dUp) {
modeVisual = "dbljump";
ktimeWallJump = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeUp = 0;
}
}
if (ktimeThrust > 0) {
ktimeThrust++;
}
if (ktimeThrust == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x + thrustPlusX;
_root.fxThrust1._y = _y + thrustPlusY;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x + thrustPlusX;
_root.fxThrust2._y = _y + thrustPlusY;
_root.fxThrust2._rotation = random(360);
} else if (ktimeThrust == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x + thrustPlusX;
_root.fxThrust3._y = _y + thrustPlusY;
_root.fxThrust3._rotation = random(360);
} else if (ktimeThrust == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x + thrustPlusX;
_root.fxThrust4._y = _y + thrustPlusY;
_root.fxThrust4._rotation = random(360);
} else if (ktimeThrust == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x + thrustPlusX;
_root.fxThrust5._y = _y + thrustPlusY;
_root.fxThrust5._rotation = random(360);
} else if (ktimeThrust == 7) {
_root.attachMovie("fxThrust", "fxThrust6", 56);
_root.fxThrust6._x = _x + thrustPlusX;
_root.fxThrust6._y = _y + thrustPlusY;
_root.fxThrust6._rotation = random(360);
} else if (ktimeThrust == 8) {
_root.attachMovie("fxThrust", "fxThrust7", 57);
_root.fxThrust7._x = _x + thrustPlusX;
_root.fxThrust7._y = _y + thrustPlusY;
_root.fxThrust7._rotation = random(360);
} else if (ktimeThrust == 9) {
_root.attachMovie("fxThrust", "fxThrust8", 58);
_root.fxThrust8._x = _x + thrustPlusX;
_root.fxThrust8._y = _y + thrustPlusY;
_root.fxThrust8._rotation = random(360);
ktimeThrust = 0;
thrustPlusX = 0;
thrustPlusY = 0;
}
if (ktimeThrust2 > 0) {
ktimeThrust2++;
}
if (ktimeThrust2 == 2) {
_root.attachMovie("fxThrust", "fxThrust1", 51);
_root.fxThrust1._x = _x;
_root.fxThrust1._y = _y + 5;
_root.fxThrust1._rotation = random(360);
} else if (ktimeThrust2 == 3) {
_root.attachMovie("fxThrust", "fxThrust2", 52);
_root.fxThrust2._x = _x;
_root.fxThrust2._y = _y + 5;
_root.fxThrust2._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 10;
} else if (ktimeThrust2 == 4) {
_root.attachMovie("fxThrust", "fxThrust3", 53);
_root.fxThrust3._x = _x;
_root.fxThrust3._y = _y + 5;
_root.fxThrust3._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 5;
_root.fxThrust2._y = _root.fxThrust2._y + 10;
} else if (ktimeThrust2 == 5) {
_root.attachMovie("fxThrust", "fxThrust4", 54);
_root.fxThrust4._x = _x;
_root.fxThrust4._y = _y + 5;
_root.fxThrust4._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 3;
_root.fxThrust2._y = _root.fxThrust2._y + 5;
_root.fxThrust3._y = _root.fxThrust3._y + 10;
} else if (ktimeThrust2 == 6) {
_root.attachMovie("fxThrust", "fxThrust5", 55);
_root.fxThrust5._x = _x;
_root.fxThrust5._y = _y + 5;
_root.fxThrust5._rotation = random(360);
_root.fxThrust1._y = _root.fxThrust1._y + 1;
_root.fxThrust2._y = _root.fxThrust2._y + 3;
_root.fxThrust3._y = _root.fxThrust3._y + 5;
_root.fxThrust4._y = _root.fxThrust4._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust2._y = _root.fxThrust2._y + 1;
_root.fxThrust3._y = _root.fxThrust3._y + 3;
_root.fxThrust4._y = _root.fxThrust4._y + 5;
_root.fxThrust5._y = _root.fxThrust5._y + 10;
} else if (ktimeThrust2 == 7) {
_root.fxThrust3._y = _root.fxThrust3._y + 1;
_root.fxThrust4._y = _root.fxThrust4._y + 3;
_root.fxThrust5._y = _root.fxThrust5._y + 5;
} else if (ktimeThrust2 == 8) {
_root.fxThrust4._y = _root.fxThrust4._y + 1;
_root.fxThrust5._y = _root.fxThrust5._y + 3;
ktimeThrust2 = 2;
}
if (modeVisual == "dive") {
gotoAndStop ("dive");
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
} else if (modeVisual == "dash") {
gotoAndStop ("dash");
} else if (modeVisual == "dbljump") {
gotoAndStop ("dblJump");
} else if (modeVisual == "walldrag") {
gotoAndStop ("walldrag");
} else if (modeVisual == "jump") {
gotoAndStop ("jump");
} else if (modeVisual == "fall") {
gotoAndStop ("fall");
} else if (modeVisual == "run") {
gotoAndStop ("run");
} else if (modeVisual == "crouch") {
gotoAndStop ("crouch");
} else if (modeVisual == "stand") {
gotoAndStop ("stand");
}
}
Frame 31
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 22;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
var chosenMusic = "hardcore";
if (_root.soundOn) {
if (_root.soundCurrent != chosenMusic) {
stopAllSounds();
if (chosenMusic == "title") {
_root.mscTitle.start(0, 100);
} else if (chosenMusic == "normal") {
_root.mscNormal.start(0, 100);
} else if (chosenMusic == "hardcore") {
_root.mscHardcore.start(0, 100);
} else if (chosenMusic == "dance") {
_root.mscDance.start(0, 100);
}
_root.soundCurrent = chosenMusic;
}
}
_root.soundCurrent = chosenMusic;
Instance of Symbol 513 MovieClip in Frame 31
onClipEvent (load) {
_root.levelSwitches = new Array(1, 0);
_root.levelCheckPoint = new Array();
_root.levelCheckPoint[0] = 0;
var checkpointNum = 0;
}
onClipEvent (enterFrame) {
if (_root.levelCheckPoint[checkpointNum] == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.mainPlayer.hitTest(this)) {
_root.levelCheckPoint[checkpointNum] = 1;
_root.levelSwitches[0] = 1;
_root.levelSwitches[1] = 1;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 402 MovieClip in Frame 31
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 452 MovieClip in Frame 31
onClipEvent (load) {
var spinSpeed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spinSpeed);
var i = 0;
while (i <= 4) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 31
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -13;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
bulletTime++;
if (delayCount >= 0) {
if (bulletTime == bulletSpawnTime) {
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == "") {
var newDepth = ((100 * _name) + i);
_root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth);
_root[("bul" + _name) + i]._x = _x;
_root[("bul" + _name) + i]._y = _y;
_root[("bul" + _name) + i]._rotation = bulletRotation;
_root["bulletList" + _name][i] = ("bul" + _name) + i;
_root["bulletList" + _name].push("");
bulletTime = 0;
if (delayFunction) {
delayCount++;
if (delayCount == delaySwitch) {
delayCount = -1;
}
}
gotoAndPlay (2);
break;
}
i++;
}
}
} else if (delayCount <= -1) {
delayCount--;
if (delayCount <= delayDuration) {
delayCount = 0;
bulletTime = 0;
}
}
}
var i = 0;
while (i <= _root["bulletList" + _name].length) {
if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) {
_root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed;
_root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed;
if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) {
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) {
var lastDepth = _root[("bul" + _name) + i].getDepth();
var lastx = _root[("bul" + _name) + i]._x;
var lasty = _root[("bul" + _name) + i]._y;
_root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth);
_root[("splsh" + _name) + i]._x = lastx;
_root[("splsh" + _name) + i]._y = lasty;
_root[("splsh" + _name) + i]._rotation = bulletRotation;
_root[("bul" + _name) + i].removeMovieClip();
_root["bulletList" + _name][i] = "";
}
if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 31
onClipEvent (load) {
var engBounds = _root.engBounds;
_root.engCrawl = false;
var modeVisual = "stand";
var modeExInsert = 0;
var modeFall = true;
var modeJump = false;
var modeStand = false;
var modeCrouch = false;
var modeSuperJump = false;
var modeHover = false;
var modeDive = false;
var modeWallJump = 0;
var easeVert = 0;
var easeHori = 0;
var speedHori = 10;
var speedInitial = 15;
var speedCrouchIni = 25;
var speedIncVelocity = 2;
var speedDrop = 3;
var speedDropReset = speedDrop;
var speedJump = 0;
var speedWallDrop = 4;
var speedCrouch = 3;
var speedHover = 3;
var speedRoll = 17;
var attHeight = Math.floor(_height);
var attHalfHeight = Math.floor(_height / 2);