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);
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 dUp = Key.isDown(40);
var dRight = Key.isDown(37);
var dLeft = Key.isDown(39);
var dZ = Key.isDown(90);
var dX = Key.isDown(88);
var dDown = 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 32
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 15;
_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 32
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 32
onClipEvent (load) {
var bulletTime = 3;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 32
onClipEvent (load) {
var bulletTime = 3;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 32
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 32
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 32
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 9;
var bulletType = "PurpleLaser2";
var bulletRotation = 90;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
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 355 MovieClip "mainPlayer" in Frame 32
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 729 MovieClip "levelSpeedTimer" in Frame 32
onClipEvent (load) {
_root.levelSeconds = 35;
_root.engAllowMovement = false;
_root.engReset = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.engReset) {
_root.levelSeconds = 35;
gotoAndPlay (1);
}
}
}
Frame 33
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 13;
_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 33
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 33
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 33
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 "2" in Frame 33
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "PurpleLaser2";
var bulletRotation = 0;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 0;
var delayDuration = 0;
var xSpeed = 15;
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])) {
_root.playerHit();
}
}
i++;
}
}
Instance of Symbol 266 MovieClip in Frame 33
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 33
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 33
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 33
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 33
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 12;
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 266 MovieClip in Frame 33
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_root.playerHit();
}
i++;
}
}
Frame 34
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 14;
_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 34
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 34
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 34
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 34
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 452 MovieClip in Frame 34
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 34
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 34
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 = 0.75;
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 = 0.75;
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 35
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 16;
_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 35
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 35
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 35
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 35
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 35
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 35
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 35
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 36
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 19;
_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 "0" in Frame 36
onClipEvent (load) {
var bulletTime = 19;
var bulletSpawnTime = 24;
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 "1" in Frame 36
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 24;
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 36
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
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 "3" in Frame 36
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 180;
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 "4" in Frame 36
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 10;
_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 37
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 2;
_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 513 MovieClip in Frame 37
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] = 1;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 271 MovieClip "0" in Frame 37
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 50;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
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 37
onClipEvent (load) {
var bulletTime = 25;
var bulletSpawnTime = 50;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 1;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
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 37
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 5;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
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 436 MovieClip "mainThought" in Frame 37
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 367 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 1) {
_root.mainThought.gotoAndStop("crawl");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
_root.levelThought = 2;
}
}
}
Instance of Symbol 367 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 2) {
_root.mainThought.gotoAndStop("walljump");
_root.mainThought._visible = false;
_root.levelThought = 3;
} else if (_root.levelThought == 3) {
_root.mainThought.gotoAndStop("walljump");
_root.mainThought._visible = true;
_root.levelThought = 4;
}
}
}
Frame 38
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 4;
_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 266 MovieClip in Frame 38
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 38
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 38
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 38
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 8;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = -10;
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 "1" in Frame 38
onClipEvent (load) {
var bulletTime = 2;
var bulletSpawnTime = 8;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = -10;
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 "2" in Frame 38
onClipEvent (load) {
var bulletTime = 4;
var bulletSpawnTime = 8;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 6;
var delayDuration = -8;
var xSpeed = -10;
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 266 MovieClip in Frame 38
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 38
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 38
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 "4" in Frame 38
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 14;
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 "5" in Frame 38
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 14;
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 266 MovieClip in Frame 38
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 "7" in Frame 38
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 14;
var bulletType = "RedFire";
var bulletRotation = 0;
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 38
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 14;
var bulletType = "RedFire";
var bulletRotation = 0;
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 367 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 1) {
_root.mainThought.gotoAndStop("diasprjump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
_root.levelThought = 2;
}
}
}
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer)) {
if (_root.levelThought == 2) {
_root.mainThought.gotoAndStop("dive");
_root.mainThought._visible = false;
_root.levelThought = 3;
} else if (_root.levelThought == 3) {
_root.mainThought.gotoAndStop("dive");
_root.mainThought._visible = true;
_root.levelThought = 4;
}
}
}
Frame 39
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 1;
_root.engAllowDeath = true;
_root.engReset = false;
_root.respawnPlayer();
_root.engSuccess = false;
_root.engAllowMovement = false;
_root.mainPlayer._visible = false;
_root.levelStopper = true;
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 810 MovieClip "levelBlockVis" in Frame 39
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "0" in Frame 39
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 0;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 1;
var delayDuration = -999;
var xSpeed = -12;
var ySpeed = 0;
var levelSwitch = 0;
_root.levelSwitches = new Array(0, 0);
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[0] == 0) {
_visible = false;
} else if (_root.levelSwitches[0] == 3) {
_visible = false;
} else {
_visible = true;
}
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.playerHitIntro();
_root.levelSwitches[0] = 2;
}
}
i++;
}
}
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 39
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;
_root.engAllowMovement = 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)) {
_root.tutorialAllow = true;
_root.tutorialDid = "stand";
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 (_root.tutorialAllow) {
_root.tutorialDid = "sprjump";
if (dLeft || (dRight)) {
_root.tutorialDid = "diasprjump";
}
}
} else {
speedJump = speedInitial;
if (_root.tutorialAllow) {
_root.tutorialDid = "jump";
}
}
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;
if (_root.tutorialAllow) {
_root.tutorialDid = "walljump";
}
}
} else if (modeWallJump == -2) {
if (dUp) {
modeStand = false;
ktimeUp = -1;
speedJump = speedInitial;
modeFall = false;
modeJump = true;
ktimeRight = 1;
ktimeWallJump = -1;
if (_root.tutorialAllow) {
_root.tutorialDid = "walljump";
}
}
}
}
}
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 (_root.tutorialAllow) {
_root.tutorialDid = "dash";
if (modeJump || (modeFall)) {
_root.tutorialDid = "airdash";
}
}
}
}
}
}
}
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 (_root.tutorialAllow) {
_root.tutorialDid = "dash";
if (modeJump || (modeFall)) {
_root.tutorialDid = "airdash";
}
}
}
}
}
}
}
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 (_root.tutorialAllow) {
_root.tutorialDid = "dbljump";
}
}
}
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");
if (_root.tutorialAllow) {
_root.tutorialDid = "dive";
}
} else if (modeVisual == "hover") {
gotoAndStop ("hover");
if (_root.tutorialAllow) {
_root.tutorialDid = "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 367 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
if (_root.levelStopper) {
if (_root.levelSwitches[0] == 0) {
_root.engAllowMovement = false;
_root.levelTutTur.play();
_root.mainThought._visible = false;
if (_root.levelSpeach._currentframe == 7) {
_root.levelSpeach.nextFrame();
}
}
}
}
}
Frame 40
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 5;
_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 452 MovieClip in Frame 40
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 40
onClipEvent (load) {
var spinSpeed = -2;
}
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 40
onClipEvent (load) {
var spinSpeed = -2;
}
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 "1" in Frame 40
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 48;
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 266 MovieClip in Frame 40
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 40
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 40
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 40
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 40
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 367 MovieClip in Frame 40
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 41
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 10;
_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 41
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 271 MovieClip "0" in Frame 41
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 58;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 6;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
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 41
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 58;
var bulletType = "RedFire";
var bulletRotation = 270;
var xSpeed = 0;
var ySpeed = 6;
var levelSwitch = 0;
_root["bulletList" + _name] = new Array("");
}
onClipEvent (enterFrame) {
if (_root.levelSwitches[levelSwitch] == 1) {
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 41
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 3;
var delayDuration = -13;
var xSpeed = 0;
var ySpeed = 5;
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 41
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 270;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 3;
var delayDuration = -13;
var xSpeed = 0;
var ySpeed = 5;
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 41
onClipEvent (load) {
var bulletTime = 36;
var bulletSpawnTime = 72;
var bulletType = "RedFire";
var bulletRotation = 0;
var xSpeed = -8;
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 513 MovieClip in Frame 41
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] = 1;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Frame 42
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 9;
_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 "1" in Frame 42
onClipEvent (load) {
var bulletTime = 5;
var bulletSpawnTime = 8;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 3;
var delayDuration = -48;
var xSpeed = -9;
var ySpeed = 9;
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 "0" in Frame 42
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -13;
var xSpeed = 9;
var ySpeed = 9;
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 513 MovieClip in Frame 42
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] = 1;
_root.xSpawn = _x;
_root.ySpawn = _y - 20;
}
}
Instance of Symbol 271 MovieClip "3" in Frame 42
onClipEvent (load) {
var bulletTime = 8;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
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 271 MovieClip "2" in Frame 42
onClipEvent (load) {
var bulletTime = 0;
var bulletSpawnTime = 10;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = true;
var delayCount = 0;
var delaySwitch = 5;
var delayDuration = -11;
var xSpeed = 5;
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 271 MovieClip "4" in Frame 42
onClipEvent (load) {
var bulletTime = 5;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -13;
var xSpeed = 9;
var ySpeed = 9;
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 "5" in Frame 42
onClipEvent (load) {
var bulletTime = 10;
var bulletSpawnTime = 12;
var bulletType = "RedFire";
var bulletRotation = 225;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -13;
var xSpeed = 9;
var ySpeed = 9;
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 452 MovieClip in Frame 42
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++;
}
}
Frame 43
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 7;
_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 452 MovieClip in Frame 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
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 43
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 24;
var bulletType = "RedFire";
var bulletRotation = 315;
var delayFunction = false;
var delayCount = 0;
var delaySwitch = 7;
var delayDuration = -14;
var xSpeed = -9;
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 43
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++;
}
}
Frame 44
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 8;
_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 44
onClipEvent (load) {
var spinSpeed = 8;
}
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 "1" in Frame 44
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 48;
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 "0" in Frame 44
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 48;
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 "3" in Frame 44
onClipEvent (load) {
var bulletTime = 12;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 180;
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 44
onClipEvent (load) {
var bulletTime = 6;
var bulletSpawnTime = 48;
var bulletType = "RedFire";
var bulletRotation = 180;
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 355 MovieClip "mainPlayer" in Frame 44
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 44
onClipEvent (load) {
_root.levelSeconds = 9;
_root.engAllowMovement = false;
_root.engReset = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.engReset) {
_root.levelSeconds = 9;
gotoAndPlay (1);
}
}
}
Frame 45
_root.xSpawn = _root.mainPlayer._x;
_root.ySpawn = _root.mainPlayer._y;
_root.engChamNum = 99;
_root.engAllowDeath = true;
_root.respawnPlayer();
_root.engSuccess = false;
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 355 MovieClip "mainPlayer" in Frame 45
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 46
_root.clearBullets();
gotoAndStop(_root.nextLevel);
Frame 47
_root.clearBullets();
gotoAndStop(_root.nextLevel);
Symbol 13 MovieClip [sprDeath] Frame 17
_root.sprDeath.removeMovieClip();
Symbol 15 MovieClip [fxRedFire] Frame 16
stop();
Symbol 25 MovieClip [splshRedFire] Frame 6
stop();
_root.removeMovieClip(_name);
Symbol 30 MovieClip [fxThrust] Frame 15
stop();
Symbol 52 Button
on (release) {
_root.fxSelection.start(0, 1);
_root.nextFrame();
}
Symbol 53 MovieClip Frame 1
_root.percentPreloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.percentPreloaded != 100) {
preloaderBar._xscale = _root.percentPreloaded;
var loadedText = int(_root.percentPreloaded);
_root.percentPreloadedDis = loadedText + "%";
} else {
_root.percentPreloadedDis = "100%";
gotoAndStop (3);
}
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 55 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 68 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 71 MovieClip Frame 164
_root.nextFrame();
Symbol 82 MovieClip Frame 1
_root.mscTitle.start(0, 100);
Symbol 82 MovieClip Frame 245
_parent.nextFrame();
Symbol 83 Button
on (release) {
nextFrame();
}
Symbol 87 Button
on (release) {
_root.soundOn = false;
stopAllSounds();
nextFrame();
}
Symbol 89 Button
on (release) {
_root.soundOn = true;
if (_root.soundCurrent == "title") {
_root.mscTitle.start(0, 1);
} else if (_root.soundCurrent == "normal") {
_root.mscNormal.start(0, 1);
} else if (_root.soundCurrent == "dance") {
_root.mscDance.start(0, 1);
} else if (_root.soundCurrent == "hardcore") {
_root.mscHardcore.start(0, 1);
}
prevFrame();
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 96 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_root.gotoAndStop(39);
}
Symbol 117 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (2);
}
Symbol 118 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (3);
}
Symbol 119 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (2);
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (4);
}
on (keyPress "<Space>") {
_root.fxSelection.start(0, 1);
_root.gotoAndStop(39);
}
Symbol 122 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (3);
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
on (keyPress "<Space>") {
_root.fxSelection.start(0, 1);
_root.gotoAndStop("frmLevel");
}
Symbol 123 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
Symbol 124 Button
on (release) {
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_root.gotoAndStop("frmLevel");
}
Symbol 126 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (2);
}
on (keyPress "<Space>") {
getURL ("http://armorgames.com", "_blank");
}
Symbol 127 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
Symbol 128 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (2);
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 137 Button
on (release) {
getURL ("http://jaqoshinou.newgrounds.com", "_blank");
}
Symbol 141 Button
on (release) {
getURL ("http://twitter.com/armorgames", "_blank");
}
Symbol 143 Button
on (release) {
getURL ("http://www.facebook.com/pages/Armor-Games/19522089061", "_blank");
}
Symbol 147 Button
on (release) {
_root.clearBullets();
gotoAndStop ("frmMenu");
}
Symbol 160 Button
on (release) {
_root.mainClear.gotoAndStop(2);
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 171 Button
on (release) {
gotoAndStop (1);
}
Symbol 172 Button
on (release) {
var savefile = SharedObject.getLocal("Evade");
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;
stopAllSounds();
_root.gotoAndStop(1);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 30
stop();
Symbol 185 Button
on (release) {
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
prevFrame();
}
Symbol 188 Button
on (rollOver) {
if (_name.length == 2) {
_root.levelNumChosen = _name.substr(0, 1);
_root.disLevelDisplayer.gotoAndStop(2);
} else if (_name.length == 3) {
_root.levelNumChosen = _name.substr(0, 2);
_root.disLevelDisplayer.gotoAndStop(2);
}
}
on (rollOut) {
_root.disLevelDisplayer.gotoAndStop(1);
}
on (release) {
if (_name.length == 2) {
if (_root.levelLocked[_name.substr(1, 1)] == 1) {
num = int(_name.substr(0, 1));
roomNum = "cham" + (num + 1);
_root.gotoAndStop(roomNum);
}
} else if (_name.length == 3) {
if (_root.levelLocked[_name.substr(2, 1)] == 1) {
num = int(_name.substr(0, 2));
roomNum = "cham" + (num + 1);
_root.gotoAndStop(roomNum);
}
}
}
Symbol 189 Button
on (rollOver) {
if (_name.length == 2) {
_root.levelNumChosen = _name.substr(0, 1);
_root.disLevelDisplayer.gotoAndStop(2);
} else if (_name.length == 3) {
_root.levelNumChosen = _name.substr(0, 2);
_root.disLevelDisplayer.gotoAndStop(2);
}
}
on (rollOut) {
_root.disLevelDisplayer.gotoAndStop(1);
}
on (release) {
if (_name.length == 2) {
if (_root.levelLocked[_name.substr(1, 1)] == 1) {
num = int(_name.substr(0, 1));
roomNum = "cham" + (num + 1);
_root.gotoAndStop(roomNum);
}
} else if (_name.length == 3) {
if (_root.levelLocked[_name.substr(2, 1)] == 1) {
num = int(_name.substr(0, 2));
roomNum = "cham" + (num + 1);
_root.gotoAndStop(roomNum);
}
}
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 249 Button
on (release) {
gotoAndStop (1);
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
_root.disLevelDisplayer.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
_root.nameDisplay = _root.disLevelName[_root.levelNumChosen];
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 8
gotoAndStop (1);
Symbol 314 MovieClip Frame 5
if ((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(40))) {
gotoAndPlay (7);
}
Symbol 314 MovieClip Frame 6
gotoAndPlay (4);
Symbol 314 MovieClip Frame 8
if (Key.isDown(40)) {
gotoAndPlay (21);
_root.engCrawl = true;
}
Symbol 314 MovieClip Frame 14
if (Key.isDown(39) || (Key.isDown(37))) {
play();
_root.engCrawl = true;
} else {
gotoAndPlay (21);
}
if (_root.tutorialAllow) {
_root.tutorialDid = "crawl";
}
Symbol 314 MovieClip Frame 20
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndPlay ("crawl");
} else {
gotoAndPlay (21);
}
Symbol 314 MovieClip Frame 21
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndPlay ("crawl");
}
Symbol 314 MovieClip Frame 22
gotoAndPlay (21);
Symbol 320 MovieClip Frame 5
_root.visDashStopDone = true;
Symbol 328 MovieClip Frame 7
stop();
Symbol 338 MovieClip Frame 7
stop();
_root.visGetUpDone = true;
Symbol 351 MovieClip Frame 4
_root.visDashStopDone = true;
Symbol 369 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
nextFrame();
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (3);
}
on (keyPress "<Space>") {
_root.clearBullets();
_root.respawnPlayer();
_parent.gotoAndStop(1);
}
Symbol 370 Button
on (release) {
_root.clearBullets();
_root.respawnPlayer();
_parent.gotoAndStop(1);
}
Symbol 371 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (2);
}
Symbol 372 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (3);
}
Symbol 373 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
nextFrame();
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
prevFrame();
}
on (keyPress "<Space>") {
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_root.clearBullets();
if (_root.levelStatus[_root.engChamNum] == 1) {
_root.nextLevel = "cham" + (_root.engChamNum + 1);
_root.gotoAndStop("frmSwitch");
} else {
_root.gotoAndStop("frmLevel");
}
_root.levelLowVisibilty.swapDepths(-1);
_parent.gotoAndStop(1);
}
Symbol 374 Button
on (rollOver) {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
Symbol 375 Button
on (release) {
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_root.clearBullets();
if (_root.levelStatus[_root.engChamNum] == 1) {
_root.nextLevel = "cham" + (_root.engChamNum + 1);
_root.gotoAndStop("frmSwitch");
} else {
_root.gotoAndStop("frmLevel");
}
_root.levelLowVisibilty.swapDepths(-1);
_parent.gotoAndStop(1);
}
Symbol 376 Button
on (keyPress "<Down>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
gotoAndStop (1);
}
on (keyPress "<Up>") {
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
prevFrame();
}
on (keyPress "<Space>") {
_root.clearBullets();
_root.levelLowVisibilty.swapDepths(-1);
_root.gotoAndStop("frmMenu");
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_parent.gotoAndStop(1);
}
Symbol 377 Button
on (release) {
_root.clearBullets();
_root.levelLowVisibilty.swapDepths(-1);
_root.gotoAndStop("frmMenu");
if (_root.soundOn) {
_root.fxSelection.start(0, 1);
}
_parent.gotoAndStop(1);
}
Symbol 378 MovieClip Frame 1
if (soundOn) {
_root.fxSelection2.start(0, 1);
}
stop();
Symbol 378 MovieClip Frame 2
if (soundOn) {
_root.fxSelection2.start(0, 1);
}
Symbol 378 MovieClip Frame 3
if (soundOn) {
_root.fxSelection2.start(0, 1);
}
Symbol 383 MovieClip Frame 1
var chamNum = (int(_root.engChamNum) - 1);
_root.displaySuccess = _root.disLevelName[chamNum];
Symbol 384 MovieClip Frame 15
_root.clearBullets();
var savefile = SharedObject.getLocal("Evade");
var completeChamNum = (int(_root.engChamNum) - 1);
if (_root.levelStatus[completeChamNum] == 1) {
_root.levelStatus[completeChamNum] = 2;
_root.totalCompletedLevels++;
var savefile = SharedObject.getLocal("Evade");
savefile.data.totalCompletedLevels = _root.totalCompletedLevels;
savefile.data.levelStatus = _root.levelStatus;
savefile.flush();
}
_root.levelLowVisibilty.gotoAndStop("clear");
_root.levelLowVisibilty.swapDepths(-1);
if (_root.levelStatus[_root.engChamNum] == 1) {
_root.nextLevel = "cham" + (_root.engChamNum + 1);
_root.gotoAndStop("frmComSwitch");
} else {
_root.gotoAndStop("frmLevel");
}
_parent.gotoAndStop(1);
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 385 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.clearBullets();
}
Symbol 385 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 65
stop();
Symbol 391 MovieClip Frame 1
_root.disTestName = _root.disLevelName[_root.engChamNum - 1];
Symbol 392 MovieClip Frame 56
stop();
Symbol 413 MovieClip Frame 10
gotoAndStop (1);
Symbol 436 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 1
stop();
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_parent.play();
}
}
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (enterFrame) {
var i = 0;
while (i <= 2) {
if (this["bar" + i].hitTest(_root.mainPlayer)) {
_root.playerHit();
}
i++;
}
}
Symbol 443 MovieClip Frame 79
_root.levelSwitches[0] = 1;
Symbol 443 MovieClip Frame 80
stop();
_root.levelSwitches[0] = 0;
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_parent.play();
}
}
Symbol 443 MovieClip Frame 169
_root.levelSwitches[1] = 1;
Symbol 443 MovieClip Frame 170
stop();
_root.levelSwitches[1] = 0;
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) {
_parent.play();
}
}
Symbol 443 MovieClip Frame 254
_root.levelSwitches[2] = 1;
Symbol 443 MovieClip Frame 255
_root.levelSwitches[2] = 0;
Symbol 443 MovieClip Frame 310
stop();
Symbol 491 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 491 MovieClip Frame 96
_root.engReset = true;
_root.engAllowMovement = true;
Symbol 491 MovieClip Frame 120
_root.levelSeconds--;
if (_root.levelSeconds <= 0) {
gotoAndStop (1);
_root.playerHit();
} else {
gotoAndPlay ("restart");
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 188
gotoAndPlay (1);
Symbol 609 MovieClip Frame 189
stop();
Symbol 612 Button
on (release) {
_root.levelLowVisibilty.swapDepths(-1);
_root.levelLowVisibilty.gotoAndStop("clear");
_root.clearBullets();
gotoAndStop ("frmMenu");
}
Symbol 729 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 729 MovieClip Frame 96
_root.engReset = true;
_root.engAllowMovement = true;
Symbol 729 MovieClip Frame 120
_root.levelSeconds--;
if (_root.levelSeconds <= 0) {
gotoAndStop (1);
_root.levelSwitches[0] = 0;
} else {
gotoAndPlay ("restart");
}
Symbol 772 MovieClip Frame 97
gotoAndPlay (1);
Symbol 805 MovieClip Frame 217
_root.levelSpeach.gotoAndStop(2);
Symbol 805 MovieClip Frame 300
stop();
Symbol 805 MovieClip Frame 301
_root.introTutLevel = 1;
Symbol 805 MovieClip Frame 344
_root.tutorialDid = "";
_root.tutorialAllow = false;
Symbol 805 MovieClip Frame 345
stop();
_root.mainThought.gotoAndStop("jump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 345
onClipEvent (enterFrame) {
if (_root.tutorialDid == "jump") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 346
stop();
_root.mainThought.gotoAndStop("dbljump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 346
onClipEvent (enterFrame) {
if (_root.tutorialDid == "dbljump") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 347
stop();
_root.mainThought.gotoAndStop("crawl");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 347
onClipEvent (enterFrame) {
if (_root.tutorialDid == "crawl") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 348
stop();
_root.mainThought.gotoAndStop("sprjump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 348
onClipEvent (enterFrame) {
if (_root.tutorialDid == "sprjump") {
_parent.gotoAndPlay("success");
} else if (_root.tutorialDid == "diasprjump") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 349
stop();
_root.mainThought.gotoAndStop("dash");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 349
onClipEvent (enterFrame) {
if (_root.tutorialDid == "dash") {
_parent.gotoAndPlay("success");
} else if (_root.tutorialDid == "airdash") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 350
stop();
_root.mainThought.gotoAndStop("airdash");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 350
onClipEvent (enterFrame) {
if (_root.tutorialDid == "airdash") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 351
stop();
_root.mainThought.gotoAndStop("walljump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 351
onClipEvent (enterFrame) {
if (_root.tutorialDid == "walljump") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 352
stop();
_root.mainThought.gotoAndStop("dive");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 352
onClipEvent (enterFrame) {
if (_root.tutorialDid == "dive") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 353
stop();
_root.mainThought.gotoAndStop("hover");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 353
onClipEvent (enterFrame) {
if (_root.tutorialDid == "hover") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 354
stop();
_root.mainThought.gotoAndStop("diasprjump");
_root.mainThought._visible = false;
_root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 354
onClipEvent (enterFrame) {
if (_root.tutorialDid == "diasprjump") {
_parent.gotoAndPlay("success");
}
}
Symbol 805 MovieClip Frame 355
if (_root.soundOn) {
_root.fxSelection2.start(0, 1);
}
_root.introTutLevel++;
Symbol 805 MovieClip Frame 400
_root.tutorialDid = "";
_root.tutorialAllow = false;
if (_root.introTutLevel == 1) {
gotoAndStop ("jump");
} else if (_root.introTutLevel == 2) {
gotoAndStop ("dbljump");
} else if (_root.introTutLevel == 3) {
gotoAndStop ("crawl");
} else if (_root.introTutLevel == 4) {
gotoAndStop ("sprjump");
} else if (_root.introTutLevel == 5) {
gotoAndStop ("diasprjump");
} else if (_root.introTutLevel == 6) {
gotoAndStop ("dive");
} else if (_root.introTutLevel == 7) {
gotoAndStop ("dash");
} else if (_root.introTutLevel == 8) {
gotoAndStop ("airdash");
} else if (_root.introTutLevel == 9) {
gotoAndStop ("walljump");
} else if (_root.introTutLevel == 10) {
gotoAndStop ("hover");
}
Symbol 805 MovieClip Frame 483
_root.levelSpeach.nextFrame();
Symbol 805 MovieClip Frame 536
stop();
Symbol 814 Button
on (release, keyPress "<Space>") {
nextFrame();
}
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 3
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 4
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 5
_root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 6
_root.levelIntro.gotoAndPlay(2);
Symbol 835 MovieClip Frame 7
_root.levelMonitor.gotoAndPlay("med");
_root.mainThought._visible = true;
Symbol 835 MovieClip Frame 67
stop();
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 68
stop();
_root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 69
stop();
_root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 70
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 71
stop();
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 72
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 73
stop();
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 74
_root.levelFlash.gotoAndPlay(2);
Symbol 835 MovieClip Frame 75
stop();
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 76
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 77
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 78
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 79
stop();
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 80
stop();
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 81
stop();
_root.levelFlash.gotoAndPlay("flash2");
_root.levelMonitor.gotoAndPlay("med");
Symbol 841 MovieClip Frame 1
stop();
stop();
Symbol 841 MovieClip Frame 95
_root.levelSwitches[0] = 1;
Symbol 841 MovieClip Frame 96
stop();
Symbol 843 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 843 MovieClip Frame 2
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");
}
}
}
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 44
_root.mainPlayer._visible = true;
Symbol 847 MovieClip Frame 65
stop();
_root.engAllowMovement = true;
_root.levelSpeach.nextFrame();
Symbol 850 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
_root.levelTarget._visible = false;
_root.levelTutTur._visible = false;
_root.levelTurCir._visible = false;
_root.levelSwitches[0] = 3;
_root.engReset = true;
_root.engAllowMovement = true;
_root.engBounds.block1.gotoAndStop(2);
_root.respawnPlayer();
_root.levelMonitor.gotoAndPlay("tutorial");
Symbol 854 MovieClip Frame 30
stop();
_root.engAllowMovement = true;
Symbol 854 MovieClip Frame 32
_root.engBounds.block2.gotoAndStop(2);
_root.levelExit.gotoAndStop(2);
_root.levelBlockVis._visible = true;
Symbol 854 MovieClip Frame 65
stop();