Frame 1
Stage.showMenu = false;
Frame 5
stop();
playBut._x = playBut._x - 1000;
preloaderActive = true;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
Frame 6
_xscale = 100;
_yscale = 100;
stop();
Frame 7
medalNameArray = new Array(null, "SHELL SHOCKED", "APPRECIATOR", "SUPPORTER", "LEVEL BUILDER", "LITERATI", "ROAST HOG", "BLACKHOLE SON", "ESCAPE", "SPEEDY 8 MINS", "PAPERBOY", "PDA AVOIDER", "GREY GAMES PP", "Azurieq PP", "ASSORTED PP", "ALL PP'S BEAT", "QUITTER");
function setMusic(music) {
if (musicSwitch == true) {
stopAllSounds();
MUSIC.gotoAndStop(music);
MUSIC.gotoAndStop(1);
}
lastSound = music;
}
function loadSave(destructive) {
if ((savefile.data.saveActive != undefined) && (destructive != true)) {
medalArray = savefile.data.medalArray;
save_MapStart = savefile.data.save_MapStart;
save_playTime = savefile.data.save_playTime;
save_StartPoint = savefile.data.save_StartPoint;
save_gateArray = savefile.data.save_gateArray;
save_keyArray = savefile.data.save_keyArray;
save_mapArray = savefile.data.save_mapArray;
save_itemArray = savefile.data.save_itemArray;
save_noteArray = savefile.data.save_noteArray;
_root.genNote = savefile.data.genNote;
_root.gameActive = savefile.data.gameActive;
trace("SAVE LOADED");
} else {
save_playTime = 0;
save_StartPoint = undefined;
save_MapStart = undefined;
save_gateArray = new Array();
save_keyArray = new Array();
save_mapArray = new Array();
save_itemArray = new Array();
save_noteArray = new Array();
_root.genNote = "";
medalArray = new Array();
_root.gameActive = false;
trace("SAVE CREATED");
updateSave();
}
}
function saveGame() {
gameActive = true;
save_noteArray = noteArray;
save_playTime = playTime;
save_StartPoint = startPoint;
save_gateArray = gateArray;
save_keyArray = keyArray;
save_mapArray = mapArray;
save_MapStart = mapStart;
save_itemArray = itemArray;
updateSave();
}
function updateSave() {
savefile.data.gameActive = gameActive;
savefile.data.medalArray = medalArray;
savefile.data.saveActive = true;
savefile.data.save_playTime = save_playTime;
savefile.data.save_StartPoint = save_StartPoint;
savefile.data.save_MapStart = save_MapStart;
savefile.data.save_gateArray = save_gateArray;
savefile.data.save_keyArray = save_keyArray;
savefile.data.save_mapArray = save_mapArray;
savefile.data.save_itemArray = save_itemArray;
savefile.data.save_noteArray = save_noteArray;
savefile.data.genNote = _root.genNote;
trace("SAVE UPDATED");
}
function newMedal(medal) {
if (medalArray[medal] == undefined) {
trace("MEDAL AWARDED" + medal);
var _local2 = MEDALS.attachMovie("MedalPrompt", "M" + medalCounter, medalCounter++);
_local2.medalName = medal;
_local2._y = 475;
medalArray[medal] = true;
saveGame();
} else {
trace("MEDAL INACTIVE" + medal);
}
}
function gotoFrame(ID) {
FADER._alpha = 100;
_root.gotoAndStop(ID);
}
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
function scoreSystem(userName, score, game) {
if ((userName != "anonymous") && (userName != "")) {
var _local1 = new Date();
var _local3 = (((_local1.getDate() + ".") + _local1.getMonth()) + ".") + _local1.getFullYear();
_local1 = (_local1.getDate() + _local1.getMonth()) + _local1.getFullYear();
_local1 = (score * _local1) * (userName.length * 18041987);
while (_local1 > 1000000000000) {
_local1 = _local1 - 1000000000000;
}
if (game == "STORY") {
scoreSubmitStory(userName, _local3, score, _local1);
} else if (game == "GGPACK") {
scoreSubmitGG(userName, _local3, score, _local1);
} else if (game == "AZPACK") {
scoreSubmitAZ(userName, _local3, score, _local1);
} else if (game == "PPPACK") {
scoreSubmitPP(userName, _local3, score, _local1);
}
}
}
function scoreSubmitStory(userName, dateName, score, check1) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName;
bXlnYW1lX25hbWVfdmFyaWFibGW = dateName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = check1;
__rankz_send__("Mjc0N2olZSVhJW4lcw==", "YkFPT01TTWE=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX25hbWVfdmFyaWFibGW, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2);
}
function scoreSubmitGG(userName, dateName, score, check1) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName;
bXlnYW1lX25hbWVfdmFyaWFibGW = dateName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = check1;
__rankz_send__("Mjc0OGolZSVhJW4lcw==", "SlBmY1V6Qnc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX25hbWVfdmFyaWFibGW, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2);
}
function scoreSubmitPP(userName, dateName, score, check1) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName;
bXlnYW1lX25hbWVfdmFyaWFibGW = dateName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = check1;
__rankz_send__("Mjc1MGolZSVhJW4lcw==", "aWJxaFVzWWw=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX25hbWVfdmFyaWFibGW, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2);
}
function scoreSubmitAZ(userName, dateName, score, check1) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName;
bXlnYW1lX25hbWVfdmFyaWFibGW = dateName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = check1;
__rankz_send__("Mjc1MWolZSVhJW4lcw==", "dkJGRHpQT2I=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX25hbWVfdmFyaWFibGW, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2);
}
function __rankz_send__(par1, par2, par3, par4, par3n, par4n) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.bmFtZTI = par3n;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.c2NvcmUy = par4n;
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
preloaderActive = false;
_root.fancyPantsMan = false;
_xscale = 100;
_yscale = 100;
var musicSwitch = true;
var lastSound = "";
var startPoint = new Object();
createEmptyMovieClip("MEDALS", 10);
var medalArray;
var savefile = SharedObject.getLocal("SHIFT3SAVEFINAL2_GEN");
loadSave(false);
var medalCounter = 0;
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (((domain != "") && (domain != "newgrounds.com")) && (domain != "wii-flash.com")) {
}
trace(check1);
Instance of Symbol 29 MovieClip "FADER" in Frame 7
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Frame 8
_quality = "high";
editorActive = false;
stop();
setMusic("GEN");
_root.musicStart = undefined;
Instance of Symbol 732 MovieClip "FP" in Frame 8
onClipEvent (load) {
if (_root.medalArray[8] != true) {
this._x = this._x - 1000;
}
if (_root.fancyPantsMan == true) {
stop();
} else {
nextFrame();
}
}
on (release) {
trace(_root.fancyPantsMan);
if (_root.fancyPantsMan == true) {
_root.fancyPantsMan = false;
this.gotoAndStop(2);
} else {
_root.fancyPantsMan = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 735 MovieClip "FP" in Frame 8
onClipEvent (load) {
var medCount = 0;
var i = 0;
while (i < 20) {
if (_root.medalArray[i] == true) {
medCount++;
}
i++;
}
if (medCount != 16) {
this._x = this._x + 1000;
}
}
on (release) {
_root.gotoFrame("CC");
}
Frame 9
Mouse.show();
Frame 10
newMedal(2);
Frame 11
loadData();
if ((gameActive == undefined) || (gameActive == false)) {
contButton._alpha = 40;
}
Frame 12
_root.playTime = 0;
if (((_root.medalArray[12] == true) && (_root.medalArray[13] == true)) && (_root.medalArray[14] == true)) {
newMedal(15);
}
Frame 14
medalName = 0;
i = 1;
while (i < 17) {
medalName++;
this["M" + i].BGScroll.setMask(this["M" + i].MEDMASK);
this["M" + i].IDMaker = medalName;
this["M" + i].BGScroll.ID = this["M" + i].IDMaker;
this["M" + i].ID = this["M" + i].IDMaker;
if (_root.medalArray[i] != true) {
this["M" + i]._alpha = 10;
}
i++;
}
Frame 15
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = _root.HSCode1;
rankz_t10_send.flashkey = _root.HSCode2;
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["rankz_n" + (i + 1)].text = tempv[0];
_root["rankz_v" + (i + 1)].text = tempv[1] + " SECONDS";
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Frame 18
stopAllSounds();
Frame 24
Mouse.show();
levelText.text = "Level" + LevelNo;
Frame 25
if (_root.goodEnd == true) {
_root.goodEnd = false;
stopAllSounds();
gotoFrame("END_GOOD");
} else {
gotoFrame("GAME");
}
Frame 26
setMusic("ending");
Frame 27
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
gameActive = false;
newMedal(7);
Frame 28
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
gameActive = false;
newMedal(8);
if (score < 480) {
newMedal(9);
}
Instance of Symbol 556 MovieClip "Jim" in Frame 28
onClipEvent (load) {
b = 6;
}
Instance of Symbol 1010 MovieClip in Frame 28
on (press) {
this.startDrag();
}
onClipEvent (mouseUp) {
this.stopDrag();
alphaSwitch = true;
}
onClipEvent (enterFrame) {
if (alphaSwitch == true) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
this._x = 2000;
}
}
}
Frame 29
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
gameActive = false;
newMedal(8);
if (score < 480) {
newMedal(9);
}
Frame 31
_root.setMusic("DANP");
Frame 32
_root.setMusic("DANP");
Frame 33
_root.setMusic("DANP");
Frame 47
if (_root.LevelNo == 7) {
stopAllSounds();
gotoFrame(_root.packName + "RESULT");
} else {
if (_root.editorActive == true) {
_root.LevelNo--;
}
gotoFrame("SHIFT2GAME");
}
Frame 48
_quality = "high";
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
newMedal(12);
Frame 49
_quality = "high";
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
newMedal(14);
Frame 50
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
newMedal(13);
Frame 51
Mouse.show();
stopAllSounds();
stop();
editorActive = true;
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_root.backTo = "";
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
domain = domain.toLowerCase();
Instance of Symbol 1115 MovieClip in Frame 51
on (release) {
_root.backTo = "EDITORTITLE";
_root.editorLevel = "AAAB0010Z10Z10Z10Z10ZAAAC8015110Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAC9015110Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 51
on (release) {
_root.backTo = "LOADER";
_root.gotoAndStop("LOADER");
}
Instance of Symbol 1115 MovieClip in Frame 51
on (release) {
_root.backTo = "SAMPLES";
_root.gotoAndStop("SAMPLES");
}
Instance of Symbol 1115 MovieClip in Frame 51
on (release) {
setMusic("GEN");
_root.gotoFrame("TITLE");
}
Frame 52
stop();
stopAllSounds();
Instance of Symbol 1115 MovieClip in Frame 52
on (release) {
acceptArray = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "X", "Y", "Z");
supCode = "";
var i = 0;
while (i < _parent.LevelCodeBox.text.length) {
var curChar = _parent.LevelCodeBox.text.charAt(i);
goodCur = false;
ii = 0;
while (ii < acceptArray.length) {
if (curChar == acceptArray[ii]) {
goodCur = true;
}
ii++;
}
if (goodCur == true) {
supCode = supCode + _parent.LevelCodeBox.text.charAt(i);
}
i++;
}
_root.editorLevel = supCode;
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 52
on (release) {
_root.gotoAndStop("EDITORTITLE");
}
Frame 53
stopAllSounds();
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.editorLevel = "0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z10Z10Z10Z18XX110Z10Z10Z0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z100Z0Z10Z10Z100Z20X0Z10Z10Z0Z10Z10Z10Z10Z10Z100Z20X0Z10Z10Z00Z00Z0Z10Z10Z10XXY10Z10Z00Z00ZACZ00XXY0Z10Z00Z00ZA020Z10XXY0Z10Z00Z00ZA020Z10XX10Z10Z10Z00Z00Z00ZABXY10Z10Z10Z00Z00Z00Z00Z00Z90XX10Z10Z10Z00Z00Z00Z00Z00Z00XXXY";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "10Z10Z10Z10Z1211210Z10Z00Z9211200Z10Z10Z10Z101125011210Z1211210Z00Z10Z10Z00Z10Z10Z1011210Z10Z10Z1211200Z10Z10Z10ZC0010Z10Z10Z10Z10Z10Z00Z1211210Z10ZC0080Z10Z10Z00Z10Z10112C001211210Z10Z10ZB0Z10Z10Z00Z00Z10ZC0010Z10Z10Z10ZA010Z10Z10ZC0010ZC0050Z00Z10Z00ZA010Z10Z10ZB0ZB0ZC0010ZAB10Z10Z10Z10Z00ZC0010ZB0Z00ZA010Z10Z10ZA020Z10Z101121011210Z10Z10Z10Z10Z00ZA020Z10Z10Z10Z10Z10Z10Z10Z10Z00ZA020Z10Z5311210Z10Z10Z10Z10Z10Z";
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "70011A080Z50012600115201102001B2001020010200112001AB10ZCZ300113001C011C11C10200110Z12001A010ZC002C122001C012C1120010200110Z1C0110011C010ZC002C122211C012C112001020011C002001ACZC002C122001C012C112001020011C002211AA002C122001C012C11200102001120Z0211C003021150211032112C122001C012C11200102001020Z0211AA002C122001C012C112001020010201102001AA002C122001C012C1120010200102011AA00432112C122001C012C11200102001020110201100211020Z3212120Z300122001C012C11200151001522110201102011020Z3212532121321222001930012C1120011C1";
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "104Z04Z24122Z12Z12Z1234112Z12Z12Z12Z123Z02412824Z0Z52411A010Z00Z50ZA092112024120241210Z12411A010Z00ZA010Z10Z02412024Z0ZAB10Z00ZACZ53411B24Z0ZAB10Z10Z11411B0Z00311A010ZAAAA0Z0041153Z10Z10ZAAAAC0303Z21121211210ZAB00Z00ZAB504110341100Z00Z00Z00Z01411014115341201411C0011411014125341100Z00Z00Z00Z10Z10Z10Z01411C0011411414Z3Z13Z11412114121141210Z014110141101411C006141161411714125141213Z014120141101411014110141101411004116141161411";
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.gotoAndStop("EDITORTITLE");
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.editorLevel = "12Z13Z13Z13Z13Z13Z13Z13Z13Z13Z13Z10Z12Z13Z13Z13Z13Z13Z13Z02Z13Z13Z13Z13Z12Z5Z1AA0013ZAA0010Z12ZAAB013Z92ZA082Z10Z12ZAAB013ZAA0010Z12ZA010ZAAAC10Z10Z12ZA010ZAAB010Z10Z10Z12ZA010ZAA0010Z10Z10Z10Z12ZA010ZAB10Z10Z10Z10Z10Z12ZA010ZA010Z10Z10Z10Z10Z10Z12ZA010Z53ZC0010Z10Z10Z10Z10Z10Z12ZC0050Z10ZA010Z10Z10Z10Z10Z10Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.editorLevel = "AAB0823Z0Z10Z10Z10Z10Z10412AAAC10Z10Z10Z10Z10Z10ZAAB033Z10Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z4041210Z10Z10Z10ZAAB00343110Z10Z10Z10Z10Z10ZAAB03322110Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z10Z10Z10Z10Z10ZAAC0Z0252110Z4042210Z10Z10Z12521AAC0Z3333110Z10Z10Z10Z10Z10422ACZACZ10Z10Z10Z10Z10Z10ZB012200ZAB10Z4043210Z033Z0Z10ZB0Z00ZAB10Z10Z10Z033119231210Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.editorLevel = "1002150032C521005262042C21C0070011600316003160031500211002110021C521002162042C21B0031600216003160031600311002110021C52100216204210021B0031600216002160031600311002110021C5210021C2110021B0031600216002160021600311002110021C5210021C2110021B0031AA001002110021C5210021C2110021AAAC1002110021C5210021C2110021AA31C00800311002110021C5210021C2110021AAAC1002110021C5210021C2110021C21AA00600Z0021100216205210051C2110021AA0160011600Z00211002162052C21C2110021AB60011600116001192052100216205270051C2170042C007002160011600116001170031";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1115 MovieClip in Frame 53
on (release) {
_root.editorLevel = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
_root.gotoAndStop("EDITOR");
}
Frame 54
_xscale = 100;
_yscale = 100;
stopAllSounds();
Frame 55
if (_root.editorLevel == "NONE") {
previewLevel._alpha = 40;
} else {
previewLevel._alpha = 100;
}
stopAllSounds();
Instance of Symbol 1115 MovieClip in Frame 55
on (release) {
_root.prevFrame();
}
Instance of Symbol 1115 MovieClip "previewLevel" in Frame 55
on (release) {
if (_alpha == 100) {
_root.editorActive = true;
_root.gotoFrame("SHIFT2GAME");
}
}
Symbol 3 MovieClip [CT] Frame 1
function onEnterFrame() {
this._y = this._y + speed;
speed = speed + 0.2;
_yscale = (_yscale - 2);
_xscale = (_xscale - 2);
if (_xscale < 0) {
this.removeMovieClip();
_visible = false;
}
}
_xscale = 300;
_yscale = 300;
speed = -13;
Symbol 8 MovieClip Frame 1
stop();
if (_root.fancyPantsMan == true) {
nextFrame();
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
stop();
if (_parent.BGColour == 2) {
DoorAnim.Top.gotoAndStop(2);
DoorAnim.Bottom.gotoAndStop(2);
} else {
DoorAnim.Top.gotoAndStop(1);
DoorAnim.Bottom.gotoAndStop(1);
}
Symbol 19 MovieClip [LEVEL_Block_Exit] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
sprite.gotoAndStop(2);
}
Symbol 22 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 27 MovieClip [LEVEL_Block_Door] Frame 1
function onEnterFrame() {
if (_root.shift3Mode == false) {
if (_parent._parent["doorRotate" + linkage] > 0) {
_rotation = (_rotation + _parent._parent.doorSpeed);
}
}
}
if (_root.shift3Mode == false) {
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if (_rotation == 0) {
_x = (_x - 20);
} else if (_rotation == 90) {
_y = (_y - 20);
} else if (_rotation == 180) {
_x = (_x + 20);
} else {
_rotation = -90;
if (-90) {
_y = (_y + 20);
}
}
}
Symbol 29 MovieClip Frame 1
_alpha = 0;
Symbol 31 MovieClip [LEVEL_Block_Spike] Frame 1
function onEnterFrame() {
if (hit.hitTest(_parent._parent.MAN.spikeHit)) {
_parent._parent.spikeMan();
}
}
stop();
Symbol 33 MovieClip [LEVEL_Block_Grey] Frame 1
function onEnterFrame() {
if (_parent._parent["greyRotateSwitch" + linkage] == true) {
if (_xscale > 0) {
_xscale = (_xscale - 10);
_yscale = (_yscale - 10);
}
} else if (_xscale < 100) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 35 MovieClip [LEVEL_Block_Gravity] Frame 1
function onEnterFrame() {
if (this.hit.hitTest(_parent._parent.MAN.hit)) {
_parent._parent.gravityFlip(_rotation, _x, _y);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
var hitSwitch = false;
Symbol 37 MovieClip [LEVEL_Block_GreySwitch] Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if (this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) {
_parent._parent.setgrey(linkage);
_visible = false;
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 39 MovieClip [LEVEL_Block_Key] Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if ((this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) && (_parent._parent.gameActive == true)) {
_parent._parent.doorShakeTimer = 40;
if (_root.gateArray[linkage] == undefined) {
_root.gateArray[linkage] = 1;
} else {
_root.gateArray[linkage]++;
}
trace(_root.gateArray[linkage]);
_root.keyArray[linkage] = true;
_parent._parent.setDoor(linkage);
_visible = false;
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if (_root.shift3Mode == true) {
if (_root.keyArray[linkage] == true) {
_visible = false;
}
}
Symbol 53 MovieClip [Rubble] Frame 1
function onEnterFrame() {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
ySpeed++;
}
Symbol 74 MovieClip Frame 1
gotoAndStop(_parent.ID);
Symbol 78 MovieClip [MEDAL_CASE] Frame 1
function onEnterFrame() {
BGScroll._x = BGScroll._x + 0.5;
if (BGScroll._x > 0) {
BGScroll._x = BGScroll._x - (BGScroll._width / 2);
}
}
function onRollOver() {
_parent.medalText = _parent.medalNameArray[BGScroll.ID];
}
Symbol 79 MovieClip [MedalPrompt] Frame 1
function onEnterFrame() {
if (timer < 10) {
_x = (_x + 35);
} else if ((timer > 150) && (timer < 170)) {
_x = (_x - 35);
} else if (timer > 210) {
this.removeMovieClip();
}
timer++;
}
_x = (_x - 300);
var timer = 0;
MED.BGScroll.setMask(MED.MEDMASK);
MED.IDMaker = medalName;
MED.BGScroll.ID = MED.IDMaker;
MED.ID = MED.IDMaker;
medText = _root.medalNameArray[medalName];
Symbol 98 MovieClip [MESSAGE] Frame 1
function onEnterFrame() {
_x = (_x + ((xPos - _x) / 10));
if (Key.isDown(32) && (spaceSwitch == true)) {
xPos = 800;
} else if (Key.isDown(32) == false) {
spaceSwitch = true;
}
if (_x > 700) {
_root.promptFreeze = false;
this.removeMovieClip();
}
}
var spaceSwitch = false;
active = true;
xPos = 0;
Symbol 98 MovieClip [MESSAGE] Frame 4
stop();
Symbol 98 MovieClip [MESSAGE] Frame 5
stop();
Symbol 187 MovieClip Frame 67
gotoAndPlay (1);
Symbol 217 MovieClip Frame 1
onEnterFrame = function () {
if ((Math.abs(_root.Char.hairRL) > Math.abs(_root.Char.hairUD)) || (Math.abs(_root.Char.hairUD) < 2)) {
if (Math.abs(_root.Char.hairRL) < 4) {
hairGoTo = 24;
} else if ((_root.Char._xscale * _root.Char.hairRL) > 0) {
if (Math.abs(_root.Char.hairRL) < 15) {
hairGoTo = 13;
} else {
hairGoTo = 2;
}
} else if (Math.abs(_root.Char.hairRL) < 15) {
hairGoTo = 35;
} else {
hairGoTo = 46;
}
} else if (_root.Char.hairUD > 0) {
hairGoTo = 13;
} else {
hairGoTo = 35;
}
if (_root.Char.hairGel > hairGoTo) {
_root.Char.hairGel--;
}
if (_root.Char.hairGel < hairGoTo) {
_root.Char.hairGel++;
}
gotoAndStop(_root.Char.hairGel);
};
onEnterFrame();
Symbol 556 MovieClip Frame 73
if (b == 0) {
b = 6;
} else {
b--;
gotoAndPlay (1);
}
Symbol 556 MovieClip Frame 154
Symbol 556 MovieClip Frame 290
gotoAndPlay (244);
Instance of Symbol 556 MovieClip "sprite" in Symbol 598 MovieClip Frame 1
onClipEvent (load) {
b = 6;
}
Instance of Symbol 556 MovieClip "Idle" in Symbol 598 MovieClip Frame 5
onClipEvent (load) {
b = 6;
}
Symbol 619 MovieClip Frame 5
stop();
Symbol 625 MovieClip Frame 1
stop();
if (_root.fancyPantsMan == true) {
nextFrame();
}
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 4
_visible = false;
Symbol 628 MovieClip [OBJECT_MAN] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
stop();
Symbol 633 Button
on (release) {
_root.play();
}
Symbol 636 MovieClip Frame 1
function onEnterFrame() {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
_xscale = PercentLoaded;
} else {
_root.playBut._x = 240;
}
}
_root.playBut._x = 2400;
Symbol 665 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 667 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 1
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((random(4) == 0) || (domain == "")) {
stop();
} else {
nextFrame();
}
Symbol 679 MovieClip Frame 2
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 21;
System.security.allowDomain("server.cpmstar.com");
var cloneAd = adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Symbol 694 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 697 MovieClip Frame 1
_visible = false;
Symbol 697 MovieClip Frame 2
_visible = true;
Symbol 697 MovieClip Frame 181
_root.play();
Symbol 704 MovieClip Frame 1
stop();
Symbol 706 Button
on (rollOver, dragOver) {
menuText.text = "TAKE A GANDER AT THE FINE SOULS WHO CONTRIBUTED TO THIS MONSTER.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("CREDITS");
}
Symbol 710 Button
on (rollOver, dragOver) {
menuText.text = "BEGIN YOUR TEST. \nBUT THIS IS NO ORDINARY EXPERIMENT. \nTHIS IS SHIFT - IN A PLATFORM PUZZLE ADVENTURE SETTING!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if ((Key.isDown(32) && (Key.isDown(40))) && (Key.isDown(39))) {
gotoFrame("ENDMOVIE_GOOD");
} else {
_root.shift3Mode = true;
gotoFrame("STORY");
}
}
Symbol 712 Button
on (rollOver, dragOver) {
menuText.text = "For those looking for some classic shift action, these player packs will test your meddle in exchange for medals.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
_root.shift3Mode = false;
gotoFrame("PLAYERSPACKS");
}
Symbol 714 Button
on (rollOver, dragOver) {
menuText.text = "View which achievements you've reached by playing \nShift 3 - and view the secrets unlocked by them.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("MEDALS");
}
Symbol 715 Button
on (rollOver, dragOver) {
menuText.text = "build your own level in the highly praised 'Shift-ed' and share them with your friends via handy dandy level codes!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
_root.LevelNo = 1;
_root.shift3Mode = false;
gotoFrame("EDITORTITLE");
}
Symbol 718 Button
on (rollOver, dragOver) {
menuText.text = "READ UP ON THE LATEST ANTICS OF THE ARMOR OFFICE.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
newMedal(5);
getURL ("http://www.armorblog.com", "_blank");
}
Symbol 720 Button
on (rollOver, dragOver) {
menuText.text = "PLAY MORE GAMES LIKE THIS ONE - OR EVEN PLAY THIS ONE AGAIN, IF YOU'D PREFER TO PLAY IT ON ARMOR.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
newMedal(3);
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 724 MovieClip Frame 1
function onEnterFrame() {
if (_xscale == scaleTarg) {
scaleTarg = (xStart + random(6)) - 3;
} else if (_xscale < scaleTarg) {
_xscale = (_xscale + 0.1);
_yscale = (_yscale + 0.1);
} else {
_xscale = (_xscale - 0.1);
_yscale = (_yscale - 0.1);
}
}
xStart = _xscale;
scaleTarg = _xscale;
Symbol 725 Button
on (release) {
gotoFrame("CLEAR");
}
Instance of Symbol 556 MovieClip "Jim" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
b = 6;
}
Instance of Symbol 556 MovieClip "Jum" in Symbol 732 MovieClip Frame 2
onClipEvent (load) {
b = 6;
}
Symbol 739 Button
on (rollOver, dragOver) {
menuText.text = "No Experience? Play SHIFT 1 at Armor Games here.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
getURL ("http://armorgames.com/play/751/shift", "_blank");
}
Symbol 741 Button
on (rollOver, dragOver) {
menuText.text = "Thirsty for more? Play Shift 2 at Armor Games here!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
getURL ("http://armorgames.com/play/964/shift-2", "_blank");
}
Symbol 743 Button
on (rollOver, dragOver) {
menuText.text = "Here are the version changes/fixes for you nerdy types.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("CHANGES");
}
Symbol 745 Button
on (rollOver, dragOver) {
menuText.text = "WEBMASTER? GET THIS GAME FOR YOUOR WEBSITE BY CLICKING HERE!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
getURL ("http://armorgames.com/free-website-games", "_blank");
}
Symbol 749 Button
on (release) {
gotoFrame("TITLE");
}
Symbol 752 Button
on (release) {
gotoFrame("CAT");
}
Symbol 756 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 757 Button
on (release) {
getURL ("http://armorgames.com/user/Tony", "_blank");
}
Symbol 758 Button
on (release) {
getURL ("http://armorgames.com/user/danielmcneely", "_blank");
}
Symbol 759 Button
on (release) {
getURL ("http://armorgames.com/user/nqkoi1", "_blank");
}
Symbol 760 Button
on (release) {
getURL ("http://www.bornegames.com/", "_blank");
}
Symbol 761 Button
on (release) {
getURL ("http://dca.durhamcollege.ca/~100321415/SUKdesigngroup/index.html", "_blank");
}
Symbol 762 Button
on (release) {
getURL ("http://www.synj.net/", "_blank");
}
Symbol 763 Button
on (release) {
getURL ("http://dereks.newgrounds.com/", "_blank");
}
Symbol 764 Button
on (release) {
getURL ("http://sorohanro.newgrounds.com/", "_blank");
}
Symbol 765 Button
on (release) {
getURL ("http://www.joelatkinson.blogspot.com", "_blank");
}
Symbol 766 Button
on (release) {
getURL ("http://www.pburtonvg.com", "_blank");
}
Symbol 767 Button
on (release) {
getURL ("http://armorgames.com/user/morbid_giggle", "_blank");
}
Symbol 768 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 769 Button
on (release) {
getURL ("http://www.valvesoftware.com/", "_blank");
}
Symbol 778 Button
on (rollOver, dragOver) {
menuText.text = "BEGIN YOUR TEST. TRAVEL THROUGH THE LAB TO EARN A REAL TROPHY WHILE WE EXAMINE THE PHENOMENON OF 'SHIFTING' - NO STRINGS ATTACHED!.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
levelNo = 0;
_root.genNote = "";
_root.mapStart = undefined;
var playTime = 0;
startPoint = undefined;
_root.noteArray = new Array();
_root.gateArray = new Array();
_root.keyArray = new Array();
_root.mapArray = new Array();
_root.itemArray = new Array();
gotoFrame("GAME");
}
Symbol 780 Button
on (rollOver, dragOver) {
menuText.text = "BEGIN YOUR TEST. TRAVEL THROUGH THE LAB TO EARN A REAL TROPHY WHILE WE EXAMINE THE PHENOMENON OF 'SHIFTING' - NO STRINGS ATTACHED!.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (contButton._alpha == 100) {
loadSave();
var playTime = save_playTime;
startPoint = save_StartPoint;
mapStart = save_MapStart;
_root.noteArray = save_noteArray;
_root.gateArray = save_gateArray;
_root.keyArray = save_keyArray;
_root.mapArray = save_mapArray;
_root.itemArray = save_itemArray;
_root.gateArray[50] = 0;
_root.gateArray[51] = 0;
_root.gateArray[52] = 0;
_root.gateArray[53] = 0;
gotoFrame("GAME");
}
}
Symbol 787 Button
on (rollOver, dragOver) {
menuText.text = "6 Levels found across the net picked for what I feel to be great gameplay experiences. Difficulty ranges from medium to extreme!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
LevelNo = 1;
packName = "pp";
gotoFrame("SHIFT2GAME");
}
Symbol 790 Button
on (rollOver, dragOver) {
menuText.text = "Levels from the Shift 2 Level pack found at \nhttp://grey-games.weebly.com/ - thanks guys! These easy levels will get you into the swing of things.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
LevelNo = 1;
_root.packName = "gg";
gotoFrame("SHIFT2GAME");
}
Symbol 792 Button
on (rollOver, dragOver) {
menuText.text = "Levels created by the newgrounds user 'Azurieq' Picked for their unique feel - each one feels like a marathon!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
LevelNo = 1;
packName = "az";
gotoFrame("SHIFT2GAME");
}
Symbol 795 Button
on (release) {
_root.HSTitle = "GREY GAMES";
_root.HSCode1 = "Mjc0OGolZSVhJW4lcw";
_root.HSCode2 = "SlBmY1V6Qnc";
gotoFrame("HIGHSCORES");
}
Symbol 797 Button
on (release) {
_root.HSTitle = "Azurieq level pack";
_root.HSCode1 = "Mjc1MWolZSVhJW4lcw";
_root.HSCode2 = "dkJGRHpQT2I";
gotoFrame("HIGHSCORES");
}
Symbol 798 Button
on (release) {
_root.HSTitle = "Assorted Level Pack";
_root.HSCode1 = "Mjc1MGolZSVhJW4lcw";
_root.HSCode2 = "aWJxaFVzWWw";
gotoFrame("HIGHSCORES");
}
Symbol 804 Button
on (release) {
loadSave(true);
_root.fancyPantsMan = false;
_root.gotoAndPlay("firstLoad");
}
Symbol 844 Button
on (release) {
if (_root.HSTitle == "STORY MODE") {
gotoFrame("TITLE");
} else {
gotoFrame("PLAYERSPACKS");
}
}
Symbol 874 MovieClip Frame 1
stop();
Symbol 889 MovieClip Frame 1
stop();
_visible = false;
Symbol 889 MovieClip Frame 14
stop();
Symbol 893 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 5);
}
Instance of Symbol 917 MovieClip in Symbol 919 MovieClip Frame 1
onClipEvent (load) {
if (_root.medalArray[6] == undefined) {
} else {
_visible = false;
}
scaler = 0;
stop();
burnSwitch = false;
hogTimer = 20;
}
onClipEvent (enterFrame) {
if (hogTimer > 0) {
hogTimer--;
} else {
_rotation = (_rotation + 1);
_x = (_x + 0.5);
_y = (_y + 0.06);
_xscale = (_xscale - scaler);
_yscale = (_yscale - scaler);
if (_yscale < 0) {
if (burnSwitch == false) {
burnSwitch = true;
_yscale = 10;
_xscale = 10;
gotoAndStop (2);
} else {
_root.newMedal(6);
_yscale = 0;
_xscale = 0;
}
}
scaler = scaler + 0.0008;
}
}
Symbol 938 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 1
_alpha = 0;
Symbol 946 MovieClip Frame 1
if (_root.fancyPantsMan == true) {
fpIntro = "WELL WELL WELL, FANCY PANTS MAN... \n YOUR PANTS ARE COMPLETELY TRANSPARENT! \n TO CALL THEM FANCY NOW WOULD BE A GROSS EXAGGERATION! FOR SHAME! \n MAYBE THIS FACILITY HOLDS THE SECRET TO YOUR UNFORTUNATE SITUATION...";
}
Instance of Symbol 874 MovieClip "expCorner" in Symbol 946 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this._alpha == 100) {
if (this.hitTest(_parent._parent.MAN) || (_root.itemArray[0] != undefined)) {
if (_root.itemArray[0] != true) {
stopAllSounds();
_root.setMusic("BANG");
_root.lastSound = "";
ssmed = true;
}
_root.itemArray[0] = true;
this.gotoAndStop(2);
_parent.scExp._visible = true;
_parent.scExp.play();
if (_parent._parent.MAN._x > -50) {
_parent._parent.xSpeed = 80;
}
this._alpha = 60;
}
}
if (ssmed == true) {
if (ssTimer == undefined) {
ssTimer = 0;
}
if (ssTimer < 90) {
ssTimer++;
} else if (ssTimer == 90) {
_root.newMedal(1);
ssTimer++;
}
}
}
Instance of Symbol 29 MovieClip "blackSpace" in Symbol 946 MovieClip Frame 5
onClipEvent (load) {
if (_root.itemArray[1] != undefined) {
_parent.PDA._visible = false;
} else {
_parent.PDA.gotoAndStop("PDA");
}
_parent.P1.gotoAndStop("PAPER");
}
onClipEvent (enterFrame) {
if (_parent.P1.hitTest(_parent._parent.MAN) && (_parent.P1._visible == true)) {
_parent.P1._visible = false;
_root.itemArray[2] = true;
_root.itemArray[18] = 24;
_parent._parent.newPrompt("PAP1");
_root.PAP1 = true;
}
if (_parent.PDA.hitTest(_parent._parent.MAN) && (_parent.PDA._visible == true)) {
_parent.PDA._visible = false;
_root.FADER._alpha = 100;
_root.itemArray[1] = true;
_root.HUD._y = 490;
_root.HUD._alpha = 100;
_parent._parent.newPrompt("PDA");
}
if (this.hitTest(_parent._parent.MAN)) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.keyArray[2] == undefined) {
_parent.txtBox.text = "What the!? Two Exit doors? Well it seems you can only reach one anyway...";
} else {
_parent.txtBox.text = "Notice anything different since you got that key?";
}
}
Instance of Symbol 893 MovieClip "P3" in Symbol 946 MovieClip Frame 6
onClipEvent (load) {
if (_root.itemArray[4] != undefined) {
_parent.P3._visible = false;
} else {
_parent.P3.gotoAndStop("PAPER");
}
}
onClipEvent (enterFrame) {
if (_parent.P3.hitTest(_parent._parent.MAN) && (_parent.P3._visible == true)) {
_parent.P3._visible = false;
_root.itemArray[4] = true;
_root.itemArray[17] = 71;
_parent._parent.newPrompt("PAP4");
_root.PAP4 = true;
}
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 7
onClipEvent (load) {
selfTimer = 0;
_parent.txtBox._alpha = 0;
}
onClipEvent (enterFrame) {
_parent.hiddenBox._visible = true;
if (_parent.hiddenBox.hitTest(_parent._parent.MAN)) {
if (_parent.hiddenBox._alpha > 0) {
_parent.hiddenBox._alpha = _parent.hiddenBox._alpha - 10;
}
} else if (_parent.hiddenBox._alpha < 100) {
_parent.hiddenBox._alpha = _parent.hiddenBox._alpha + 10;
}
if (_root.keyArray[2] == undefined) {
_parent.txtBox.text = "";
} else if (selfTimer < 60) {
selfTimer++;
} else {
trace("HERE");
if (_parent.txtBox._alpha < 100) {
_parent.txtBox._alpha = _parent.txtBox._alpha + 3;
_parent.txtBox.text = "Some keys unlock gates in other rooms. Go back and see!";
}
}
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 10
onClipEvent (load) {
if ((_root.gateArray[8] != undefined) && (_root.gateArray[8] != 0)) {
hitSwitch = false;
} else {
hitSwitch = true;
}
trace("BIBIBIBIGB" + _root.gateArray[8]);
}
onClipEvent (enterFrame) {
if ((hitSwitch == true) && ((_root.gateArray[8] != undefined) && (_root.gateArray[8] != 0))) {
hitSwitch = false;
_parent._parent.newPrompt("REACTOR");
_parent._parent.MAN.sprite.gotoAndStop("woop");
}
}
Symbol 946 MovieClip Frame 11
trace("JIMMY TWO SHOES");
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 12
onClipEvent (load) {
if ((_root.gateArray[10] != undefined) && (_root.gateArray[10] != 0)) {
hitSwitch = false;
} else {
hitSwitch = true;
}
trace("BIBIBIBIGB" + _root.gateArray[10]);
}
onClipEvent (enterFrame) {
if ((hitSwitch == true) && ((_root.gateArray[10] != undefined) && (_root.gateArray[10] != 0))) {
hitSwitch = false;
_parent._parent.newPrompt("REACTOR");
_parent._parent.MAN.sprite.gotoAndStop("woop");
}
}
Instance of Symbol 29 MovieClip "hiddenBox" in Symbol 946 MovieClip Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN)) {
hitSwitch = true;
} else {
hitSwitch = false;
}
if (hitSwitch == true) {
if (this._alpha > 0) {
_alpha = (_alpha - 5);
}
} else if (this._alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 893 MovieClip "P2" in Symbol 946 MovieClip Frame 14
onClipEvent (load) {
if (_root.itemArray[3] != undefined) {
_parent.P2._visible = false;
} else {
_parent.P2.gotoAndStop("PAPER");
}
}
onClipEvent (enterFrame) {
if (_parent.P2.hitTest(_parent._parent.MAN) && (_parent.P2._visible == true)) {
_parent.P2._visible = false;
_root.itemArray[19] = 18;
_root.itemArray[3] = true;
_parent._parent.newPrompt("PAP2");
_root.PAP2 = true;
}
}
Instance of Symbol 29 MovieClip "blackSpace" in Symbol 946 MovieClip Frame 17
onClipEvent (load) {
blackSwitch = false;
if (_root.itemArray[1] != undefined) {
_parent.PDA._visible = false;
} else {
_parent.PDA.gotoAndStop("PDA");
}
if (_root.itemArray[2] != undefined) {
_parent.P1._visible = false;
} else {
_parent.P1.gotoAndStop("PAPER");
}
}
onClipEvent (enterFrame) {
if (_parent.P1.hitTest(_parent._parent.MAN) && (_parent.P1._visible == true)) {
_parent.P1._visible = false;
_root.itemArray[2] = true;
_parent._parent.newPrompt("PAP1");
}
if (_parent.PDA.hitTest(_parent._parent.MAN) && (_parent.PDA._visible == true)) {
_parent.PDA._visible = false;
_root.FADER._alpha = 100;
_root.itemArray[1] = true;
_root.HUD._y = 490;
_root.HUD._alpha = 100;
_parent._parent.newPrompt("PDA");
}
if (this.hitTest(_parent._parent.MAN) || (_parent.blackSpace2.hitTest(_parent._parent.MAN))) {
blackSwitch = true;
}
if (blackSwitch == true) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
_parent.blackSpace2._alpha = _parent.blackSpace2._alpha - 20;
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
_parent.blackSpace2._alpha = _parent.blackSpace2._alpha + 20;
}
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 17
onClipEvent (load) {
if ((_root.gateArray[17] != undefined) && (_root.gateArray[17] != 0)) {
hitSwitch = false;
} else {
hitSwitch = true;
}
trace("BIBIBIBIGB" + _root.gateArray[8]);
}
onClipEvent (enterFrame) {
if ((hitSwitch == true) && ((_root.gateArray[17] != undefined) && (_root.gateArray[17] != 0))) {
hitSwitch = false;
_parent._parent.newPrompt("REACTOR");
_parent._parent.MAN.sprite.gotoAndStop("woop");
}
}
Instance of Symbol 893 MovieClip "P3" in Symbol 946 MovieClip Frame 18
onClipEvent (load) {
if (_root.itemArray[5] != undefined) {
_visible = false;
} else {
gotoAndStop ("PAPER");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN) && (this._visible == true)) {
this._visible = false;
_root.itemArray[5] = true;
_root.itemArray[16] = 33;
_parent._parent.newPrompt("PAP3");
_root.PAP3 = true;
}
}
Symbol 946 MovieClip Frame 19
var i = 20;
while (i < 26) {
_root.mapArray[i] = undefined;
i++;
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 23
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_parent.timeText = Math.round(_root.playTime / 35);
}
Symbol 946 MovieClip Frame 25
if (_root.itemArray[1] != true) {
_root.newMedal(11);
}
Instance of Symbol 29 MovieClip "grav" in Symbol 946 MovieClip Frame 25
onClipEvent (load) {
_alpha = 40;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN)) {
_parent._parent.floating = true;
}
}
Instance of Symbol 29 MovieClip in Symbol 946 MovieClip Frame 25
onClipEvent (load) {
doorSwitch = false;
doorTimer = 0;
_parent.spikeWall._visible = false;
}
onClipEvent (enterFrame) {
if ((((_parent.faceInput.text == "18") && (_parent.heartInput.text == "33")) && (_parent.crossInput.text == "71")) && (_parent.starInput.text == "24")) {
doorSwitch = true;
}
if (doorSwitch == true) {
doorTimer++;
if (doorTimer == 10) {
_root.gateArray[50] = 1;
} else if (doorTimer == 50) {
_root.gateArray[51] = 1;
} else if (doorTimer == 90) {
_root.gateArray[52] = 1;
} else if (doorTimer == 130) {
_root.gateArray[53] = 1;
}
if (_parent.escapeDoor.hitTest(_parent._parent.MAN)) {
if (_parent.escapeDoor._alpha > 0) {
_root.gateArray[50] = 2;
_root.gateArray[51] = 2;
_root.gateArray[52] = 2;
_root.gateArray[53] = 2;
_parent.escSign.gotoAndStop(2);
_parent.escapeDoor._alpha = _parent.escapeDoor._alpha - 10;
}
}
trace(_parent._parent.MAN._x);
if ((_parent.codeBang._alpha > 0) && (_parent._parent.MAN._x > 220)) {
if (_root.fancyPantsMan == false) {
_root.gotoFrame("ENDMOVIE_GOOD");
} else {
_root.gotoFrame("FP_ENDMOVIE_GOOD");
}
}
if (_parent.escapeDoor._alpha < 100) {
_parent.spikeWall._visible = true;
if (_parent.spikeWall._y > 400) {
if (_parent._parent.gamePaused == false) {
_parent.spikeWall._y = _parent.spikeWall._y - 0.5;
}
} else if (_parent.scExp._visible == false) {
_parent.scExp._visible = true;
_parent.scExp.play();
_parent.codeBang._alpha = 80;
if (_parent._parent.MAN._x > 200) {
if (_parent._parent.MAN._x > 210) {
_parent._parent.MAN._x = 210;
}
_parent._parent.speed = -40;
}
_root.setMusic("BANG");
_parent.CEHOLE._alpha = 100;
_parent.escSign.gotoAndStop(3);
_parent.spikeWall._rotation = _parent.spikeWall._rotation + 10;
}
}
}
}
Symbol 947 MovieClip Frame 1
function gravityFlip(ammount, xPos, yPos) {
if ((flipFreeze != true) && (levelRotateFreeze == false)) {
if ((ammount == 90) || (ammount == -90)) {
ammount = ammount + 180;
}
if (ammount < 0) {
ammount = ammount + 360;
}
rotateTarget = ammount + 180;
currentRotation = _rotation;
if (currentRotation < 0) {
currentRotation = currentRotation + 360;
}
if (rotateTarget >= (currentRotation + 270)) {
rotateTarget = rotateTarget - 360;
} else if (rotateTarget <= (currentRotation - 270)) {
rotateTarget = rotateTarget + 360;
}
if (rotateTarget != currentRotation) {
levelRotateFreeze = true;
levelRotateMan = true;
MAN._x = xPos + ITEMS._x;
MAN._y = yPos + ITEMS._y;
xSpeed = 0;
ySpeed = 0;
}
}
}
function setDirs() {
if (_rotation == 0) {
xDir = 0;
yDir = 1;
controlReverse = 1;
} else if ((_rotation == 180) || (_rotation == -180)) {
xDir = 0;
yDir = -1;
controlReverse = 1;
} else if (_rotation == 90) {
xDir = 1;
yDir = 0;
controlReverse = -1;
} else if (_rotation == -90) {
xDir = -1;
yDir = 0;
controlReverse = -1;
}
}
function newPrompt(type) {
_root.promptFreeze = true;
var _local2 = _root.attachMovie("MESSAGE", "M", 99);
_local2._x = -1000;
_local2._y = 245;
MESSAGES._rotation = -_rotation;
_local2.gotoAndStop(type);
trace("PPPPP" + _root.PAP1);
trace(("Type" + type) + "ISITBLANK?");
_root[type] = true;
trace("PPPPP" + _root.PAP1);
if ((((_root.PAP1 == _root.PAP2) == _root.PAP3) == _root.PAP4) == true) {
_root.newMedal(10);
}
}
function onEnterFrame() {
if (_root.noteFreeze == true) {
} else if (_root.promptFreeze == false) {
controlKeyPressUp();
if (_root.editorActive == false) {
if (Key.isDown(80) && (gamePauseSwitch == false)) {
gamePauseSwitch = true;
if (gamePaused == true) {
gamePaused = false;
_root.pauseScreen._visible = false;
} else {
_root.pauseScreen._visible = true;
gamePaused = true;
}
} else if (Key.isDown(80) == false) {
gamePauseSwitch = false;
}
}
if (_root.editorActive == true) {
if (Key.isDown(81)) {
_root.gotoFrame("EDITOR");
}
}
_root.playTime++;
updateSplat();
EOL();
gameActive = false;
if (doorFreeze == false) {
jumpActive++;
}
doorManagement();
if (gamePaused == false) {
if (doorFreeze == true) {
if (jumpActive < 4) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (flipFreeze == true) {
MAN.sprite.gotoAndStop("stand");
if (MAN._yscale != (-100 * inversion)) {
MAN._yscale = MAN._yscale - (invertSpeed * inversion);
MAN._x = MAN._x + (4.2 * xDir);
MAN._y = MAN._y + (4.2 * yDir);
if (MAN._yscale == 20) {
setTintObject(MAN, 0, 0, 0, 100);
} else if ((MAN._yscale == -20) || (invertSpeed > 20)) {
setTintObject(MAN, 255, 255, 255, 100);
}
} else {
flipFreeze = false;
invertSpeed = 20;
inversion = inversion * -1;
rotateTarget = _rotation + 180;
levelRotateMan = false;
levelRotateFreeze = true;
xSpeed = 0;
ySpeed = 0;
}
} else if ((levelRotateFreeze == true) && (flipFreeze == false)) {
if (levelRotateMan == false) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpDown");
}
if (currentRotation < rotateTarget) {
currentRotation = currentRotation + (rotateSpeed * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation - (rotateSpeed * rotateDir);
}
} else if (currentRotation > rotateTarget) {
currentRotation = currentRotation - (rotateSpeed * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation + (rotateSpeed * rotateDir);
}
} else {
setDirs();
if (rotateSpeed == 90) {
rotateSpeed = 45;
} else {
rotateSpeed = 15;
}
levelRotateFreeze = false;
trace("JIMMY");
initRotation = false;
}
_rotation = currentRotation;
} else if ((levelRotateFreeze == false) && (flipFreeze == false)) {
if (floating == true) {
MAN._y = MAN._y + 1.45;
MAN._x = MAN._x + 0.25;
MAN.sprite._rotation = MAN.sprite._rotation + 2;
floatTime--;
if (floatTime > 0) {
MAN.sprite.gotoAndStop("float");
} else {
if (ManFloat == true) {
if (floatScale > 0.5) {
ManFloat = false;
floatScale = 3.5;
} else {
floatScale = floatScale + 0.012;
}
}
MAN.sprite.gotoAndStop("floatDead");
if (floatTime < -200) {
_xscale = (_xscale - floatScale);
_yscale = (_yscale - floatScale);
if (floatScale > 0) {
floatScale = floatScale - 0.1;
_y = (_y + 4);
_x = (_x - 4);
}
trace("FS" + floatScale);
if (floatTime < -500) {
stopAllSounds();
_root.gotoFrame("ENDMOVIE_BAD");
}
}
}
} else {
gameActive = true;
manageDoorActivation();
shiftActive = 1;
jump();
if (_root.FADER._alpha <= 80) {
ySpeed++;
if (ySpeed > 15) {
ySpeed = 15;
}
if (eolSwitch == false) {
MAN._x = MAN._x + (ySpeed * xDir);
MAN._y = MAN._y + (ySpeed * yDir);
if (Key.isDown(39)) {
xSpeed = xSpeed + 3;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - 3;
}
MAN._x = MAN._x + ((xSpeed * yDir) * controlReverse);
MAN._y = MAN._y + ((xSpeed * xDir) * controlReverse);
}
}
xSpeed = xSpeed / 2;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
if (initRotation == false) {
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x - ((1 * xDir) * inversion);
MAN._y = MAN._y - ((1 * yDir) * inversion);
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
shiftChecking();
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x + ((1 * xDir) * inversion);
MAN._y = MAN._y + ((1 * yDir) * inversion);
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x - (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y - (((1 * xDir) * controlReverse) * inversion);
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x + (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y + (((1 * xDir) * controlReverse) * inversion);
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
shift();
spriteManagement();
}
}
}
cameraMan(camElast);
if (camElast < 2) {
camElast = camElast + 0.1;
}
}
}
}
function shiftChecking() {
rotatedXY(15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(-15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(0, 21 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
jumpActive = 0;
}
}
function spikeMan() {
if (gameActive == true) {
dead = true;
newSplat(MAN._x, MAN._y);
MAN._visible = false;
}
}
function rotatedXY(xPos, yPos, rotate) {
var _local1 = 0.0174444444444444 * rotate;
var _local3 = Math.sin(_local1);
var _local2 = Math.cos(_local1);
rotatedXYLocX = (xPos * _local2) - (yPos * _local3);
rotatedXYLocY = (xPos * _local3) + (yPos * _local2);
}
function legacy_loadLevel() {
var _local2 = 0;
trace(("LEGACY" + LevelCode) + "=LC");
var _local4 = 0;
while (_local4 < 144) {
if (Number(LevelCode.charAt(_local2)) == 1) {
var _local3 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 2) {
var _local3 = SPIKES.attachMovie("LEVEL_Block_Spike", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 3) {
var _local3 = WALLS.attachMovie("LEVEL_Block_Door", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
_local3.gotoAndStop(Number(LevelCode.charAt(_local2 + 2)));
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 4) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Key", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 5) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Gravity", "B" + blockCount, blockCount++);
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 6) {
var _local3 = GREYSPACE.attachMovie("LEVEL_Block_Grey", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 7) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_GreySwitch", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 8) {
var _local3 = attachMovie("OBJECT_MAN", "MAN", 4);
if (_root.fancyPantsMan != true) {
_local3.gotoAndStop(2);
}
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 9) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Exit", "DOOR", blockCount++);
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else {
blockArray.push(null);
}
_local2 = _local2 + 5;
_local4++;
}
}
function arrangeTiles() {
var _local3 = 0;
var _local1 = 0;
var _local2 = 0;
_local3 = 0;
while (_local3 < 12) {
_local1 = 0;
while (_local1 < 12) {
blockArray[_local2]._x = (_local3 * 40) + 20;
blockArray[_local2]._y = (_local1 * 40) + 20;
_local2++;
_local1++;
}
_local3++;
}
placeMan();
}
function addBlackSpace(xPos, yPos) {
var _local1 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
_local1._x = xPos;
_local1._y = yPos;
}
function spriteManagement() {
if (eolSwitch == true) {
if (EOLTimer > 30) {
_root.endPoint.sprite.DoorAnim.Top._x = _root.endPoint.sprite.DoorAnim.Top._x + 3;
} else if ((EOLTimer < 20) && (EOLTimer > 9)) {
MAN._visible = false;
_root.endPoint.sprite.DoorAnim.Top._x = _root.endPoint.sprite.DoorAnim.Top._x - 3;
}
MAN._x = MAN._x + (((_root.endPoint._x - MAN._x) - 240) / 2);
MAN._y = MAN._y + (((_root.endPoint._y - MAN._y) - 240) / 2);
MAN.sprite.gotoAndStop("eol");
} else if (jumpActive > 1) {
if (ySpeed > 0) {
MAN.sprite.gotoAndStop("jumpDown");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (Key.isDown(39)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = scale * inversion;
} else if (Key.isDown(37)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = (-scale) * inversion;
} else {
MAN.sprite.gotoAndStop("stand");
}
}
function jump() {
if ((Key.isDown(32) && (jumpSwitch == false)) && (jumpActive < jumpBuffer)) {
ySpeed = -11;
jumpSwitch = true;
} else if ((!Key.isDown(32)) && (jumpActive < 2)) {
jumpSwitch = false;
}
}
function shift() {
if (initRotation == false) {
if (((_root.autoShift == true) || (Key.isDown(16))) && (shiftSwitch == false)) {
shiftSwitch = true;
var _local2 = true;
if ((((ySpeed == 1) && (flipFreeze != true)) && (levelRotateFreeze == false)) && (shiftActive == 3)) {
rotatedXY(-10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local2 = false;
}
rotatedXY(10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local2 = false;
}
if (_local2 == true) {
_root.autoShift = false;
flipFreeze = true;
}
}
} else if (!Key.isDown(16)) {
shiftSwitch = false;
}
}
}
function manageDoorActivation() {
if (_root.shift3Mode == false) {
var _local3 = 1;
while (_local3 < 6) {
if (this["doorRotateSwitch" + _local3] == true) {
this["doorRotate" + _local3] = this["doorRotate" + _local3] + 36;
this["doorRotateSwitch" + _local3] = false;
}
_local3++;
}
}
}
function setDoor(linkage) {
if (_root.shift3Mode == false) {
this["doorRotateSwitch" + linkage] = true;
}
}
function doorSetup() {
if (_root.shift3Mode == true) {
trace("DOORSETUPACTIVE");
var _local2 = 0;
while (_local2 < doorArray.length) {
if (doorArray[_local2].BGColour == 2) {
addBlackSpace(doorArray[_local2]._x, doorArray[_local2]._y);
}
if (doorArray[_local2]._rotation == 0) {
doorArray[_local2]._x = doorArray[_local2]._x - 20;
} else if (doorArray[_local2]._rotation == 90) {
doorArray[_local2]._y = doorArray[_local2]._y - 20;
} else if (doorArray[_local2]._rotation == 180) {
doorArray[_local2]._x = doorArray[_local2]._x + 20;
} else if ((doorArray[_local2]._rotation = -90)) {
doorArray[_local2]._y = doorArray[_local2]._y + 20;
}
while (doorArray[_local2].currentRot < _root.gateArray[doorArray[_local2].linkage]) {
doorArray[_local2].spinTime = doorArray[_local2].spinTime + 20;
doorArray[_local2].currentRot++;
}
while (doorArray[_local2].spinTime > 0) {
doorArray[_local2]._rotation = doorArray[_local2]._rotation + 9;
doorArray[_local2].spinTime--;
}
_local2++;
}
trace("DOORSETUPOVER");
}
}
function doorManagement() {
doorFreeze = false;
if (doorShakeTimer > 0) {
doorFreeze = true;
doorShakeTimer--;
_root._x = _root._x + shakeFlip;
_root._y = _root._y + shakeFlip;
shakeFlip = shakeFlip * -1;
}
var _local2 = 0;
while (_local2 < doorArray.length) {
if (doorArray[_local2].currentRot < _root.gateArray[doorArray[_local2].linkage]) {
doorArray[_local2].spinTime = doorArray[_local2].spinTime + 40;
doorArray[_local2].currentRot++;
}
if (doorArray[_local2].spinTime > 0) {
doorArray[_local2]._rotation = doorArray[_local2]._rotation + 4.5;
doorArray[_local2].spinTime--;
doorFreeze = true;
}
_local2++;
}
}
function setgrey(linkage) {
if (this["greyRotateSwitch" + linkage] == true) {
this["greyRotateSwitch" + linkage] = false;
} else {
this["greyRotateSwitch" + linkage] = true;
}
}
function setTintObject(target, r, g, b, amount) {
var _local1 = new Color(target);
_local1.setTint(r, g, b, amount);
}
function EOL() {
if (eolSwitch == true) {
if (EOLTimer > 0) {
EOLTimer--;
} else {
if (_root.shift3Mode == false) {
_root.LevelNo++;
}
_root.gotoAndStop("BLANK");
}
} else {
var _local2 = 0;
while (_local2 < doorCount) {
checkDoor(ITEMS["DOOR" + _local2]);
_local2++;
}
}
}
function checkDoor(doorID) {
manRot = MAN._rotation;
var _local2;
if (MAN._yscale > 0) {
if ((doorID._rotation == 180) && (MAN._rotation == -180)) {
_local2 = 360;
} else {
_local2 = 0;
}
} else if (doorID._rotation < 0) {
_local2 = -180;
} else {
_local2 = 180;
}
if ((((jumpActive < 2) && (MAN.doorHit.hitTest(doorID))) && ((MAN._rotation + _local2) == doorID._rotation)) && (KeyPressUp == true)) {
_root.startPoint = doorRef_Dest[doorID.linkage];
_root.mapStart = doorRef_Room[_root.startPoint];
trace("DOOR DESTINATION MAP IS " + _root.mapStart);
trace("DOOR LINKAGE IS " + _root.startPoint);
_root.endPoint = doorID;
eolSwitch = true;
}
}
function controlKeyPressUp() {
if ((Key.isDown(38) && (upSwitch == false)) && (jumpActive < jumpBuffer)) {
KeyPressUp = true;
upSwitch = true;
} else if ((Key.isDown(38) == false) && (jumpActive < jumpBuffer)) {
upSwitch = false;
} else {
KeyPressUp = false;
}
}
function newSplat(xPos, yPos) {
if (MAN._visible == true) {
attachMovie("BloodContainer", "BC", 12);
BC._rotation = MAN._rotation;
BC._yscale = -MAN._yscale;
BC._x = xPos;
BC._y = yPos;
var _local2;
var _local3 = 0;
while (_local3 < 60) {
if (_root.fancyPantsMan == false) {
_local2 = BC.attachMovie("Blood", "B" + BCounter, BCounter++);
} else {
_local2 = BC.attachMovie("Blood_FP", "B" + BCounter, BCounter++);
}
_local2._rotation = random(360);
_local2._xscale = random(150) + 50;
_local2._yscale = _local2._xscale;
_local2.gotoAndStop(random(3) + 1);
_local2.ySpeed = random(100) / 10;
_local2.xSpeed = (random(300) - 150) / 10;
splatArray.push(_local2);
_local3++;
}
}
}
function updateSplat() {
if (floating == true) {
splatAlpha = splatAlpha - 0.1;
}
var _local2 = 0;
while (_local2 < splatArray.length) {
splatArray[_local2]._x = splatArray[_local2]._x + splatArray[_local2].xSpeed;
splatArray[_local2]._y = splatArray[_local2]._y + splatArray[_local2].ySpeed;
splatArray[_local2]._rotation = splatArray[_local2]._rotation + 2;
if ((floating == false) && (_root.fancyPantsMan == false)) {
splatArray[_local2].xSpeed = splatArray[_local2].xSpeed / 1.05;
splatArray[_local2].ySpeed--;
} else {
splatArray[_local2].ySpeed = splatArray[_local2].ySpeed / 1.01;
splatArray[_local2].xSpeed = splatArray[_local2].xSpeed / 1.01;
if ((_root.fancyPantsMan == true) && (_root.mapStart != 25)) {
splatArray[_local2]._alpha = splatArray[_local2]._alpha - 0.5;
} else {
splatArray[_local2]._alpha = Math.round(splatAlpha);
}
}
if ((splatArray[_local2]._y < -3000) || (splatArray[_local2]._alpha < 0)) {
_root.gotoAndStop("BLANK");
}
_local2++;
}
}
function ZCOMPILE(code, Dest, Target, Compression) {
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
var _local1 = 0;
while (_local1 < Compression) {
_local3 = _local3 + Dest;
_local1++;
}
} else {
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
return(_local3);
}
function loadLevel() {
var _local2 = 0;
var _local4 = 0;
while (_local4 < 144) {
if (Number(LevelCode[_local2]) == 1) {
var _local3 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 2) {
var _local3 = SPIKES.attachMovie("LEVEL_Block_Spike", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 3) {
var _local3 = WALLS.attachMovie("LEVEL_Block_Door", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
blockArray.push(_local3);
if (_root.gateArray[_local3.linkage] == undefined) {
_root.gateArray[_local3.linkage] = 0;
}
_local3.currentRot = 0;
_local3.spinTime = 0;
doorArray.push(_local3);
trace("GN" + _root.gateArray[_local3.linkage]);
_local3.gotoAndStop(Number(LevelCode[_local2 + 2]));
} else if (Number(LevelCode[_local2]) == 4) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Key", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 5) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Gravity", "B" + blockCount, blockCount++);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 6) {
var _local3 = GREYSPACE.attachMovie("LEVEL_Block_Grey", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 7) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_GreySwitch", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 9) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Exit", "DOOR" + doorCount, blockCount++);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
_local3.linkage = Number(LevelCode[_local2 + 3]);
doorCount++;
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
blockArray.push(_local3);
} else {
blockArray.push(null);
}
_local2 = _local2 + 5;
_local4++;
}
}
function placeMan() {
clone = attachMovie("OBJECT_MAN", "MAN", 4);
if (_root.fancyPantsMan != true) {
clone.gotoAndStop(2);
}
if (_root.startPoint != undefined) {
_root.FADER._alpha = 150;
i = 0;
while (i < doorCount) {
if (ITEMS["DOOR" + i].linkage == _root.startPoint) {
doorSel = ITEMS["DOOR" + i];
if (doorSel.BGColour == 2) {
trace("CHILLINGS");
_root.autoShift = true;
startFreeze = true;
rotateSpeed = 90;
invertSpeed = 100;
}
startX = doorSel._x;
startY = doorSel._y;
trace("FOUND");
}
i++;
}
} else {
startX = 20;
startY = 200;
}
clone._x = startX;
clone._y = startY;
}
function cameraMan(elas) {
if (_root.cameraType != 0) {
_root._xscale = scaleTarg;
_root._yscale = scaleTarg;
var _local2 = new Object();
_local2.x = MAN._x;
_local2.y = MAN._y;
localToGlobal(_local2);
_root._x = _root._x + ((_x - _local2.x) / elas);
_root._y = _root._y + ((_y - _local2.y) / elas);
_root.FADER._x = (-_root._x) + 240;
_root.FADER._y = (-_root._y) + 240;
_root._x = Math.round(_root._x);
_root._y = Math.round(_root._y);
}
}
trace("MS" + _root.mapStart);
var doorArray = new Array();
var blockCount = 0;
var doorCount = 0;
rotateSpeed = 15;
var floating = false;
var floatTime = 90;
var floatScale = 0;
invertSpeed = 20;
var blockArray = new Array();
createEmptyMovieClip("GROUND", 0);
createEmptyMovieClip("SPIKES", 1);
createEmptyMovieClip("GREYSPACE", 2);
createEmptyMovieClip("ITEMS", 3);
createEmptyMovieClip("MESSAGES", 8);
WALLS.swapDepths(6);
SCRIPTLAYER.swapDepths(7);
createEmptyMovieClip("BLOOD", 5);
WALLS.fixedWalls.swapDepths(999);
var colStart = false;
var LevelCode;
if (_root.shift3Mode == false) {
var Level1 = "C00800ZC01C0404311C01C01C01C0305121052130521C01C011C01C01C01AB0432105321052100432C01A01C01C01B001A0104321052100432C01AAA001B0432104321052100432C01A01C1AC0010051200512104321052110432C01A01C1AC001005120051200532C0010512C01A010022AC001C012C01A1B001AAA001C002C01A2B001A01043210432A1C002C01A2B001C001C01C01C01043210412C002C01C0404212B001C01A01C01C0101321C01C11C1C012AC01B0432C001C040412104121C01C09023130432";
var Level2 = "313527125152Z00Z00Z00Z00Z00Z00Z10Z43Z82Z4222100Z00Z00Z00Z00Z00Z00Z00Z10Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z10Z10Z33Z1011200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z221121011200Z00Z00Z00Z00Z00Z00Z0211250Z20112221123222200Z00Z00Z00Z00Z00Z00Z00Z00Z201122211200Z4223100Z00Z00Z00Z0Z100Z00Z00Z00Z221121223200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z221123223200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z2211200Z4014100Z00Z00Z00Z00Z00Z00Z00Z00Z2211200Z1014100Z00Z00Z00Z00Z00Z00Z6125161251222423324200Z0225100112001124015100Z00Z00Z6125192112";
var Level3 = "80Z12Z12Z12Z02Z12Z12Z12Z12Z12Z12Z12Z12Z02Z12Z02Z52Z02Z12Z12Z12Z12Z12Z12Z02Z00Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z5211202Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z1211212Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z5011212Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z90Z12Z12Z10Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z10Z12Z12Z12Z02Z12Z521121011200112";
var Level4 = "523116233100Z0034200Z00312103Z0Z10Z701516032190311623316233100Z00Z00ZB0Z103Z0Z00Z6032160321003316233100Z00Z00332703420031280Z10Z00Z60331603316035160332703226033260332603320031200Z10Z00Z6035100311601411031100Z00Z00Z0031100Z00Z10Z00Z60151003516014110Z10Z10Z10Z1014210Z10Z6034200Z6015100Z60141601416014160141601416014160141601416014100Z6015100Z00Z00Z00Z00ZAB00ZB0Z6015100Z60151601516015160151601516015160151601516015160151601513031100Z3031100Z00Z00Z00Z00ZACZ303110031100Z00ZB0Z00ZACZ00Z00Z00Z003117033100ZB0Z00Z00Z00Z00Z00Z4031100Z50311";
var Level5 = "91132601325Z100Z5011223Z00Z00Z5011210ZC0050Z10Z6013200Z00Z1015110Z00Z32221121222212260Z60Z10Z6013200Z53Z10Z10Z5Z10222110Z22122C0080Z10Z6013200Z00Z2115110Z00Z3222110Z2212200Z60Z10Z6013200Z00Z23Z1311200Z0222110Z22122B0Z10Z6013253Z00Z10Z10Z00Z322211212222122C0060Z10Z6013200Z50Z10Z10Z00Z0222110Z22122B0Z10Z601325Z100Z10Z2115100Z3222110Z22122C0060Z10Z6013252Z00Z1311223Z00Z0222110Z22122B0Z10Z6013200Z00Z10Z10Z00Z322211212222122C0060Z10Z6013200Z53Z10Z10Z00Z0222110Z2212200Z00Z5313210Z00Z50Z10Z13Y11322214012222122C0070Z";
var Level6 = "701311313100131013323045101332C3140Z10131101313124251242C314321200131013320133201332C31C3110131101311013110131C31131310013101332013320133240121C313Z2101311013110131C314322232551C31C31C31C31C3110131101311013110131C31131310255132551C3140231C31C3131222101311013110131C3143232025510255102352C31C31C3110131613326133261332C311313102131C3102351C31B003131332101311013141342C310135202131C31C31C31C31C3110131613326133261332001310135202131013320013100131001310013110131101311013110131001310212202131001310013100131001310013110131101311013110131001310013100131001310013Z3520135201352932421013110131101310013100131001310013Z35211352413528255113242101313124210131";
var Level7 = "Z112Z12Z12Z12Z210Z10Z10Z10Z22ZB0Z22Z0Z10Z10Y11210Z10Z10Z10ZA05Z122ZAAB020Y1210ZA00Z222ZB3ZAB20Y1293ZC00Z12Z1222Z60Z60Z60ZAB5Z2Z12Z12C00Z1222Z70Z80Z60Z03Z20Z10ZAA00Z1222Z60Z60Z60ZC0020Z10ZAA00Z1222ZAAAC521120Z10Z1C00Z1222ZBZ102Z20XZ110ZBZ1C00Z1222ZA00Z1403110Z10Z103Z0Z12311223112Z1222Z002210031102Z32122XZ112Z12Z12Z12Z1222Z3031153ZA042121AACZ233521";
var Level8 = "AAB080Z10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAB090Z10Z10Z10Z10Z10Z10Z";
var Level9 = "AAB080411604Z04Z04Z04Z04Z0411AAAC604Z041160431104Z041160421AAAC60441104Z04Z04Z04Z0411AAAC004110041100411004110041100411AAAC004110041100411004110041100411AAAC004110041100411B041100411AAAA0411B04110041100411AAAA041100411B041100411AAAC0041100411AC41100411AAAC004110041100411004110041100411AAC041100411604Z04Z04Z04Z041160451AAC041100411604Z041160441104Z041190411";
var Level10 = "70011A080Z50012600115201102001B2001020010200112001AB10ZCZ300113001C011C11C10200110Z12001A010ZC002C122001C012C1120010200110Z1C0110011C010ZC002C122211C012C112001020011C002001ACZC002C122001C012C112001020011C002211AA002C122001C012C11200102001120Z0211C003021150211032112C122001C012C11200102001020Z0211AA002C122001C012C112001020010201102001AA002C122001C012C1120010200102011AA00432112C122001C012C11200102001020110201100211020Z3212120Z300122001C012C11200151001522110201102011020Z3212532121321222001930012C1120011C1";
var Level11 = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
var Level12 = "104Z04Z24122Z12Z12Z1234112Z12Z12Z12Z123Z02412824Z0Z52411A010Z00Z50ZA092112024120241210Z12411A010Z00ZA010Z10Z02412024Z0ZAB10Z00ZACZ53411B24Z0ZAB10Z10Z11411B0Z00311A010ZAAAA0Z0041153Z10Z10ZAAAAC0303Z21121211210ZAB00Z00ZAB504110341100Z00Z00Z00Z01411014115341201411C0011411014125341100Z00Z00Z00Z10Z10Z10Z01411C0011411414Z3Z13Z11412114121141210Z014110141101411C006141161411714125141213Z014120141101411014110141101411004116141161411";
var Level13 = "2C051512105Z04Z2C12C1031200312003124031210322134112C0105Z2C104Z2C12C103120031200312003211032212Z2C0105Z2C104110051202C02C0031212Z103Z342212Z2C01C01C012Z12Z120Z2C12Z12Z1142212Z1C02C01C01C012Z10Z02C8200110Z1C11041210412134222C01C01C012Z10Z9200102C10Z1C11032210321134222C01C01051212Z10Z1151202C10Z1C12132210322134222C03051212C12Z10Z105121051210Z12321503212042213422203221132211322123Z23Z0512105121032110321C002042213422203221132211322103211032110512105121032150512003213032112C203221132211322103Z051210512B031100311B3421503220051221512215122151201512AC31100311B342140322";
var Level14 = "20Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z20Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z20Z10Z10Z10XX10Z10Z10Z10Z10Z0Z10Z19Z100XZ1ACZ10Z10Z10Z00Z00Z0Z10XZ1100Z53Z00Z10Z10Z10Z00Z00Z0Z10Z12Z12Z103ZB0X0Z10Z00Z00ZACZ00Z20XX10Z10Z00Z00ZAA0020XX10Z10Z00Z00ZAACZ10Z10Z110Z10Z10Z00Z00Z00ZAB0Z10Z18Z110Z10Z10Z00Z00Z00Z00Z00Z00Z00Z00Z0Z110Z10Z10Z00Z00Z00Z00Z00Z00Z00Z00Z00Z2Z12Z12Z1";
var Level15 = "6001260012600126001260012600126001260012600126001260012600121C01C01C01C01C01C01C01C01B0019C160012B0ZAB40021C21C21C0010012C1260012A01C01C01C01C01B012C0010012C1260012C0010ZAAB010012C1210012C1260012C0010ZA010Z10ZC0010012C1210012C1260012C0010ZC0010Z402Z0Z800Z0012C1210012C1260012C0010ZC0010Z10ZA010012C1210012C1260012C0010ZC00302Z0Z10Z10Z10ZC1210012C1260012C0010ZAAAB0010012C1260012C0010Z10Z10Z10Z10Z10Z10Z10Z10ZC1260012C0032121AAAAA60012";
var Level16 = "AAAAC010Z10Z10Z10ZAAAB0080Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAC010Z10Z10Z10ZB0Z00Z00Z00Z00Z00Z00Z10Z10Z10Z10ZB0Z00Z20Z10Z10Z10Z10Z10Z10Z10Z10ZB0Z00Z20Z10Z10Z10Z10Z10Z10Z10Z10ZB0Z00Z00Z00Z00Z00Z00Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAB0090Z10Z10Z10Z10ZAAAAC010Z10Z10Z10Z";
var Level17 = "AAAB0010Z10Z10Z10Z10ZAAB070Z001120011210Z10Z10Z10ZAAAZ00Z001126011210Z10Z10ZAA00201211012110112101126011210Z10Z10ZB0Z00Z00Z20121101211011200Z6011210Z10Z10ZB0Z00Z00Z201211012170121001216011210Z10Z10ZB0Z00Z00Z20121101211011200Z6011210Z10Z10ZB0Z00Z00Z201211012110112101126011210Z10Z10ZAAAA0Z6011210Z10Z10ZAAAAC01011210Z10Z10ZAAAB0060121601216012210Z10ZAAAC801216012190Z6012210Z10Z";
var Level18 = "AAAC414Z04110041100411C0080ZAAAB00104110041100411AAAAA11421013110041140411AAAAC011421AAAAAC004132Z42Z42131311AAAAA11421AAAAAA001311AAAAAA011421AAAAAA011421AB31121AAAAAC0031221AAAAAC0031321AAAAAC0031421A090411";
var Level19 = "03131731410Z103Z8XZ110Z10Z10Z1C005XX10Z10Z161121611210Z10Z10041103Z0Z10314103ZB3ZC00X10Z10Z10041103Z0Z10Z103Z03ZA0X100411BZ10Z103Z0Z103Z03ZBXZ110Z10Z10Z10Z10Z1631127112XXY110Z10Z10Z10Z10Z16311263112XXY10Z10Z10Z10Z10Z10Z10Z10Z1021210Z10Z10Z1BZ10Z10Z10Z10Z10Z113ZA00Z10Z10Z10Z10Z10Z153Z02Z00332Z11A00Z103XXZ12Z12B0112Z11A00Z163131611310Z10Z10Z10Z171131C00611410Z1C0013Z13Y110Z10Z10Z193Z";
var Level20 = "80Y12Z12Z11521216112161121711210Z100Z6213120112X1701121011261121611210Z10Z1B0411621312011263XX6112150Z0Z1121122211270131601312013103Z63XY1120Z10Z11211212112221120Z10011203Z03Z63Z2Z2Z12Z120Z11211212112Z120Z10013103Z03Z03Z03Z2Z2Z120Z20Z2021125011260131601310Z10Z10Z10Z10Z2101120011200112231121011260131601312311223112231122311213112Z12231122311213112Z12601316013152112Z12Z12Z12Z12Z12Z12Z12Z12Z12221120211200Z2Z22Z2001120011200112001120011200112Z120Z10Z25Z10011203112001127114152112611410Z20Z20Z250Z00112101121011210Z101121011210112101121011212112101121011290112";
var Level21 = "723216234103332033320333203332033320333203332033320233113332623416254262542625422333223332233322333213332133320233142311523316254262542133321333213332133321333213332023310242102331033326254241352133321333213332023310233102331023315242202331033321333213332133320033100331003310033102222323225322102331033321333213332133320033153332523320033112331123223232103332033328233130151033320033150332513320033113332133322233203332033321333212322023310033100312003310033113332133322233202331033322333123312023310333223331133321333213332133322233250151503314332213332513320333213332123311333212331133321233162321123313021213332133321333213332533325333253332133327234262331723311233103332033320333203332113312133121331213316231192331";
var Level22 = "80Z12Z12Z12Z02Z12Z12Z12Z12Z12Z12Z12Z12Z02Z12Z02Z52Z02Z12Z12Z12Z12Z12Z12Z02Z00Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z5211202Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z1211212Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z5011212Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z90Z12Z12Z10Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z10Z12Z12Z12Z02Z12Z521121011200112";
var Level23 = "AAAZ00Z00Z00Z00Z00Z10ZAAAC00Z00Z00Z00Z00Z10ZAAB082Z6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011292Z00Z00Z50Z10ZAAAC6011210Z10Z10Z10Z10Z";
var Level24 = "AAAAAC0010Z10ZAAAAA80Z10Z10ZAAAAAC0010Z10ZAAAAA10Z10Z10ZAAAAC010Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAA10Z10Z10ZAAAAC060Z60Z6011210ZAAAAC060Z90Z6011210Z";
var Level25 = "40151602116021160211602116021160211325413Z1A080Z00Z60211301316021130Z602116021160211AB02Z401416021160211302416021160211602116021102ZB0Z02Z00Z30321301516021130131303216021160211A002Z02Z4013160211602113121100Z602116021160211A002Z02Z00Z60211602116021160211602113133100ZA002Z02Z4012160211602113125101311602116021160211ACZ02Z00Z60211602116021160211602116021160211AC21100Z40Z00211002110021100211002110021100211A05021102ZC006021130151602113013160211602116021102Z02Z02Z02ZC00602116021130211B0ZC003351102Z02Z00Z3345152Z3031100Z00Z00Z30311321513051132151321517021190Z";
var Level29 = "6011260112601226012260122601326013260132601526015160142601420014160Z00141001416012100141001416013100141001416014100141C0060ZC00701216012100ZC006013100151001516014100141C0060ZB01216012100ZC0060131B0Z6014100141C0060ZB01216012100ZC0060131B0Z60141001418015160ZB0Z6012100ZC0060131B0Z6014100141C0060ZB0Z6012100ZC0060131C00701516014190151C0060ZB0Z6012100ZC0060131B0Z6014100141C0060ZB0Z6012100ZC0060131B0Z601410014170Z60Z00151001516012100Z7013160131B015160141001410014160Z00141001416012100141001416013100141001416014100141601126011260122601226012260132601326013260152601516014260142";
var LevelArray = new Array(8, 9, 16, 18, 1, 14, 17, 19, 3, 10, 4, 5, 6, 7, 20, 23, 24, 25, 29);
if (_root.editorActive == false) {
if (_root.LevelNo == 0) {
_root.setMusic("game");
}
_root.LevelNo = 3;
SCRIPTLAYER.gotoAndStop(LevelArray[_root.LevelNo]);
levelLoaded = this["Level" + LevelArray[_root.LevelNo]];
trace("LEVEL LOADED = " + levelLoaded);
} else {
SCRIPTLAYER.gotoAndStop(40);
levelLoaded = _root.editorLevel;
}
trace("UNCOMPILED");
LevelCode = ZCOMPILE(levelLoaded, "0", "A", 9);
LevelCode = ZCOMPILE(LevelCode, "0", "B", 6);
LevelCode = ZCOMPILE(LevelCode, "0", "C", 3);
LevelCode = ZCOMPILE(LevelCode, "1", "X", 9);
LevelCode = ZCOMPILE(LevelCode, "1", "Y", 6);
LevelCode = ZCOMPILE(LevelCode, "1", "Z", 3);
trace("COMPILED");
legacy_loadLevel();
trace("LEGACYLOADEDLEVEL");
} else {
var doorRef_Door = new Array(null, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57);
var doorRef_Room = new Array(null, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 6, 8, 8, 9, 9, 10, 8, 11, 11, 12, 12, 13, 13, 12, 11, 14, 13, 14, 8, 15, 15, 15, 16, 17, 17, 18, 19, 19, 0, 0, 8, 7, 5, 20, 20, 21, 21, 21, 22, 22, 23, 23, 24, 24, 25);
var doorRef_Dest = new Array(null, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15, 18, 17, 20, 19, 22, 21, 24, 23, 26, 25, 28, 27, 30, 29, 32, 31, 35, 36, 33, 34, 38, 37, 43, 46, 0, 0, 39, 45, 44, 40, 49, 47, 47, 51, 50, 53, 52, 55, 54, 57, 56);
}
// swfAction0x01 // Unknown action
Symbol 950 Button
on (release) {
_root.newMedal(16);
_root.setMusic("GEN");
_root.gotoFrame("title");
}
Symbol 952 Button
on (release) {
_root.musicSwitch = true;
_root.setMusic(_root.lastSound);
}
Symbol 954 Button
on (release) {
_root.musicSwitch = false;
stopAllSounds();
}
Symbol 958 Button
on (release) {
_root.gotoFrame("BLANK");
}
Symbol 962 Button
on (release) {
_root.gotoFrame("title");
}
Symbol 964 Button
on (release) {
gotoAndStop (1);
}
Symbol 966 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 1
_parent.curRoomText = ("Room " + _root.mapStart) + " notes.";
if (_root.mapStart == undefined) {
_root.mapArray[1] = true;
this.M1.gotoAndStop(3);
} else {
if ((_root.mapStart == 5) && (_root.mapArray[_root.mapStart] != true)) {
_root.setMusic("MWC");
}
if ((_root.mapStart == 20) && (_root.mapArray[_root.mapStart] != true)) {
_root.itemArray[9] = true;
_root.setMusic("GEN");
}
_root.mapArray[_root.mapStart] = true;
var i = 0;
while (i < _root.mapArray.length) {
if (_root.mapArray[i] != undefined) {
this["M" + i].gotoAndStop(2);
}
i++;
}
this["M" + _root.mapStart].gotoAndStop(3);
}
this.S1._visible = false;
var i = 0;
while (i < 10) {
if (_root.mapArray[i + 19] == undefined) {
this["M" + (i + 19)]._visible = false;
this["S" + i]._visible = false;
} else {
this.S1._visible = true;
}
i++;
}
this.M19._visible = true;
if (_root.itemArray[1] == undefined) {
_parent._alpha = 0;
_parent._y = 1000;
}
Symbol 983 Button
on (release) {
if (noteText == "SAVE NOTES") {
if (noteTaker.roomNotes.text.length != roomNoteLen) {
_root.noteArray[_root.mapStart] = noteTaker.roomNotes.text;
roomNoteLen = noteTaker.roomNotes.text.length;
}
noteTaker._y = 200;
_root.genNote = genNotes.text;
_root.noteFreeze = false;
noteText = "TAKE NOTES";
} else {
noteTaker._y = 17.3;
_root.noteFreeze = true;
noteText = "SAVE NOTES";
}
}
Symbol 995 MovieClip Frame 1
function onEnterFrame() {
i = 16;
while (i < 20) {
if (_root.itemArray[i] == undefined) {
this["NCODE" + i] = "";
} else {
this["NCODE" + i] = _root.itemArray[i];
}
i++;
}
if (_root.noteFreeze == true) {
_root.FADER._alpha = 80;
}
roomNotes.text = noteTaker.roomNotes.text;
genNotes.text = noteTaker.genNotes.text;
}
trace("MS" + _root.noteArray);
if (_root.noteArray[_root.mapStart] == undefined) {
_root.noteArray[_root.mapStart] = " ";
}
trace("MS" + _root.noteArray[_root.mapStart]);
noteTaker.roomNotes.text = _root.noteArray[_root.mapStart];
noteTaker.genNotes.text = _root.genNote;
Symbol 998 Button
on (release) {
_root.gameActive = undefined;
_root.updateSave();
setMusic("GEN");
gotoFrame("title");
}
Symbol 1000 Button
on (release) {
var i = 20;
while (i < 26) {
_root.mapArray[i] = undefined;
i++;
}
_root.startPoint = 39;
_root.mapStart = 19;
gotoFrame("GAME");
}
Symbol 1006 Button
on (release) {
_root.scoreSystem(userName.text, score, "STORY");
_root.gameActive = undefined;
_root.updateSave();
setMusic("GEN");
gotoFrame("title");
}
Symbol 1028 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 4);
}
Symbol 1029 MovieClip Frame 1
function onEnterFrame() {
_x = (_x + 0.2);
}
Symbol 1030 MovieClip Frame 1
function onEnterFrame() {
_x = (_x - 0.1);
_y = (_y - 0.45);
if (this._y < 0) {
shrinkSwitch = true;
}
if (shrinkSwitch == true) {
if (_xscale > 2) {
_xscale = (_xscale - 0.15);
_yscale = (_yscale - 0.15);
} else {
if (_alpha == 100) {
_root.FADER._alpha = 100;
} else if (_alpha < -100) {
_alpha = 500;
stopAllSounds();
_root.gotoFrame("END_BAD");
}
_alpha = (_alpha-1);
trace("ALPHA DOWN");
}
_rotation = (_rotation + 2);
}
if (magnet < 850) {
_x = (_x + ((_parent.BHOLE._x - _x) / magnet));
_y = (_y + ((_parent.BHOLE._y - _y) / magnet));
}
magnet = magnet - 1;
if (magnet < 10) {
magnet = 10;
}
trace(magnet);
_rotation = (_rotation + 2);
}
magnet = 1500;
shrinkSwitch = false;
Symbol 1031 MovieClip Frame 1
function onEnterFrame() {
if (creditTimer < 80) {
creditTimer++;
} else {
if (creditArray[creditCount] != undefined) {
creditTimer = 0;
var _local1 = attachMovie("CT", "C" + creditCount, getNextHighestDepth());
_local1.creditText = creditArray[creditCount];
_local1._x = 250;
_local1._y = 600;
trace("MADECLONE");
}
creditCount++;
}
}
_quality = "medium";
creditArray = new Array("SHIFT 3 WAS\nBROUGHT TO YOU BY", "ARMOR GAMES", "CONCEPT DESIGN AND\n PROGRAMMING BY", "ANTONY LAVELLE", "LEAD ARTIST", "CHRIS IGNATOV", "ASST DESIGN", "DAN MCNEELY", "MUSIC BY", "DAN PALADIN", "DEREKS", "M SOROHAN", "SPECIAL THANKS TO", "JOEL A", "PHIL B", "JOHN C", "LUCY K", "BRAD B", "COPYRIGHT 2008\nARMOR GAMES", "THANKS FOR \nPLAYING");
creditTimer = 0;
creditCount = 0;
Symbol 1032 Button
on (release) {
_root.gotoFrame("END_BAD");
}
Symbol 1048 MovieClip Frame 1
stop();
Symbol 1048 MovieClip Frame 45
stop();
Symbol 1068 MovieClip Frame 40
MAN.gotoAndStop(2);
MAN.sprite.gotoAndStop("RUN");
Symbol 1068 MovieClip Frame 81
MAN.sprite.gotoAndStop("STAND");
Symbol 1068 MovieClip Frame 752
BG.play();
Symbol 1068 MovieClip Frame 1552
stopAllSounds();
_root.gotoFrame("END_GOOD");
Symbol 1069 Button
on (release) {
_root.gotoFrame("END_GOOD");
}
Instance of Symbol 1075 MovieClip in Symbol 1084 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 1084 MovieClip Frame 40
MAN.gotoAndStop(1);
MAN.sprite.gotoAndStop("RUN");
Symbol 1084 MovieClip Frame 81
MAN.sprite.gotoAndStop("STAND");
Symbol 1084 MovieClip Frame 625
MAN.sprite.sprite.gotoAndPlay(1);
Symbol 1084 MovieClip Frame 752
BG.play();
Symbol 1084 MovieClip Frame 1148
MAN.sprite.sprite.gotoAndPlay(1);
Symbol 1084 MovieClip Frame 1455
stopAllSounds();
_root.gotoFrame("END_GOOD_FP");
Symbol 1085 Button
on (release) {
_root.gotoFrame("END_GOOD_FP");
}
Symbol 1092 MovieClip Frame 1
if (_root.fancyPantsMan == true) {
fpIntro = "WELL WELL WELL, FANCY PANTS MAN... \n YOUR PANTS ARE COMPLETELY TRANSPARENT! \n TO CALL THEM FANCY NOW WOULD BE A GROSS EXAGERATION! FOR SHAME! \n MAYBE THIS FACILITY HOLDS THE SECRET TO YOUR UNFORTUNATE SITUATION...";
}
Instance of Symbol 1091 MovieClip "spikeWall" in Symbol 1092 MovieClip Frame 41
onClipEvent (load) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded == 100) {
_parent._parent._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN)) {
_parent._parent.spikeMan();
}
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this._y = this._y + ((yPos - _y) / 20);
if (PercentLoaded != 100) {
yPos = 1400 - (PercentLoaded * 14);
} else {
_root.playBut._x = 350;
}
percentCurrent = Math.round((PercentLoaded - 50) * 2);
if (percentCurrent < 0) {
percentCurrent = 0;
}
loadText = percentCurrent + "% LOADED";
}
Symbol 1093 MovieClip Frame 1
function ZCOMPILE(code, Dest, Target, Compression) {
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
var _local1 = 0;
while (_local1 < Compression) {
_local3 = _local3 + Dest;
_local1++;
}
} else {
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
return(_local3);
}
function gravityFlip(ammount, xPos, yPos) {
if ((flipFreeze != true) && (levelRotateFreeze == false)) {
if ((ammount == 90) || (ammount == -90)) {
ammount = ammount + 180;
}
if (ammount < 0) {
ammount = ammount + 360;
}
rotateTarget = ammount + 180;
currentRotation = _rotation;
if (currentRotation < 0) {
currentRotation = currentRotation + 360;
}
if (rotateTarget >= (currentRotation + 270)) {
rotateTarget = rotateTarget - 360;
} else if (rotateTarget <= (currentRotation - 270)) {
rotateTarget = rotateTarget + 360;
}
if (rotateTarget != currentRotation) {
levelRotateFreeze = true;
levelRotateMan = true;
MAN._x = xPos + ITEMS._x;
MAN._y = yPos + ITEMS._y;
xSpeed = 0;
ySpeed = 0;
}
}
}
function setDirs() {
if (_rotation == 0) {
xDir = 0;
yDir = 1;
controlReverse = 1;
} else if ((_rotation == 180) || (_rotation == -180)) {
xDir = 0;
yDir = -1;
controlReverse = 1;
} else if (_rotation == 90) {
xDir = 1;
yDir = 0;
controlReverse = -1;
} else if (_rotation == -90) {
xDir = -1;
yDir = 0;
controlReverse = -1;
}
}
function onEnterFrame() {
if (manHoldX != undefined) {
MAN._x = manHoldX;
MAN._y = manHoldY;
}
if (Key.isDown(82)) {
spikeMan();
}
if (_root.editorActive == false) {
if (Key.isDown(80) && (gamePauseSwitch == false)) {
gamePauseSwitch = true;
if (gamePaused == true) {
gamePaused = false;
_root.pauseScreen._visible = false;
} else {
_root.pauseScreen._visible = true;
gamePaused = true;
}
} else if (Key.isDown(80) == false) {
gamePauseSwitch = false;
}
}
if (_root.editorActive == true) {
if (Key.isDown(81)) {
_root.gotoFrame("EDITOR");
}
}
_root.playTime++;
updateSplat();
EOL();
gameActive = false;
if (doorFreeze == false) {
jumpActive++;
}
doorManagement();
if (gamePaused == false) {
if (doorFreeze == true) {
if (jumpActive < 4) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (flipFreeze == true) {
MAN.sprite.gotoAndStop("stand");
if (MAN._yscale != (-100 * inversion)) {
MAN._yscale = MAN._yscale - (20 * inversion);
MAN._x = MAN._x + (4.2 * xDir);
MAN._y = MAN._y + (4.2 * yDir);
if (MAN._yscale == 20) {
setTintObject(MAN, 0, 0, 0, 100);
} else if (MAN._yscale == -20) {
setTintObject(MAN, 255, 255, 255, 100);
}
} else {
flipFreeze = false;
inversion = inversion * -1;
rotateTarget = _rotation + 180;
levelRotateMan = false;
levelRotateFreeze = true;
xSpeed = 0;
ySpeed = 0;
}
} else if ((levelRotateFreeze == true) && (flipFreeze == false)) {
if (levelRotateMan == false) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpDown");
}
if (currentRotation < rotateTarget) {
currentRotation = currentRotation + (15 * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation - (15 * rotateDir);
}
} else if (currentRotation > rotateTarget) {
currentRotation = currentRotation - (15 * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation + (15 * rotateDir);
}
} else {
setDirs();
levelRotateFreeze = false;
}
_rotation = currentRotation;
} else if ((levelRotateFreeze == false) && (flipFreeze == false)) {
gameActive = true;
manageDoorActivation();
jump();
ySpeed++;
if (ySpeed > 15) {
ySpeed = 15;
}
if (eolSwitch == false) {
MAN._x = MAN._x + (ySpeed * xDir);
MAN._y = MAN._y + (ySpeed * yDir);
if (Key.isDown(39)) {
xSpeed = xSpeed + 3;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - 3;
}
MAN._x = MAN._x + ((xSpeed * yDir) * controlReverse);
MAN._y = MAN._y + ((xSpeed * xDir) * controlReverse);
}
xSpeed = xSpeed / 1.9;
shiftActive = 1;
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x - ((1 * xDir) * inversion);
MAN._y = MAN._y - ((1 * yDir) * inversion);
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(-15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(0, 21 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
jumpActive = 0;
}
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x + ((1 * xDir) * inversion);
MAN._y = MAN._y + ((1 * yDir) * inversion);
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x - (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y - (((1 * xDir) * controlReverse) * inversion);
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x + (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y + (((1 * xDir) * controlReverse) * inversion);
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
shift();
spriteManagement();
}
}
}
function spikeMan() {
if (gameActive == true) {
manHoldX = MAN._x;
manHoldY = MAN._y;
dead = true;
newSplat(MAN._x, MAN._y);
MAN._visible = false;
}
}
function rotatedXY(xPos, yPos, rotate) {
var _local1 = 0.0174444444444444 * rotate;
var _local3 = Math.sin(_local1);
var _local2 = Math.cos(_local1);
rotatedXYLocX = (xPos * _local2) - (yPos * _local3);
rotatedXYLocY = (xPos * _local3) + (yPos * _local2);
}
function loadLevel() {
var _local2 = 0;
var _local4 = 0;
while (_local4 < 144) {
if (Number(LevelCode.charAt(_local2)) == 1) {
var _local3 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 2) {
var _local3 = SPIKES.attachMovie("LEVEL_Block_Spike", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 3) {
var _local3 = WALLS.attachMovie("LEVEL_Block_Door", "B" + blockCount, blockCount++);
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
_local3.gotoAndStop(Number(LevelCode.charAt(_local2 + 2)));
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 4) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Key", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 5) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Gravity", "B" + blockCount, blockCount++);
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 6) {
var _local3 = GREYSPACE.attachMovie("LEVEL_Block_Grey", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 7) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_GreySwitch", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode.charAt(_local2 + 3));
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 8) {
var _local3 = attachMovie("OBJECT_MAN", "MAN", 4);
if (_root.fancyPantsMan == false) {
_local3.gotoAndStop(2);
}
blockArray.push(_local3);
} else if (Number(LevelCode.charAt(_local2)) == 9) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Exit", "DOOR", blockCount++);
_local3.BGColour = Number(LevelCode.charAt(_local2 + 4));
_local3._rotation = Number(LevelCode.charAt(_local2 + 1)) * 90;
blockArray.push(_local3);
} else {
blockArray.push(null);
}
_local2 = _local2 + 5;
_local4++;
}
}
function arrangeTiles() {
var _local3 = 0;
var _local1 = 0;
var _local2 = 0;
_local3 = 0;
while (_local3 < 12) {
_local1 = 0;
while (_local1 < 12) {
blockArray[_local2]._x = (_local3 * 40) + 20;
blockArray[_local2]._y = (_local1 * 40) + 20;
_local2++;
_local1++;
}
_local3++;
}
}
function addBlackSpace(xPos, yPos) {
var _local1 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
_local1._x = xPos;
_local1._y = yPos;
}
function spriteManagement() {
if (eolSwitch == true) {
MAN.sprite.gotoAndStop("eol");
} else if (jumpActive > 1) {
if (ySpeed > 0) {
MAN.sprite.gotoAndStop("jumpDown");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (Key.isDown(39)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = scale * inversion;
} else if (Key.isDown(37)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = (-scale) * inversion;
} else {
MAN.sprite.gotoAndStop("stand");
}
}
function jump() {
if ((Key.isDown(32) && (jumpSwitch == false)) && (jumpActive < jumpBuffer)) {
ySpeed = -11;
jumpSwitch = true;
} else if ((!Key.isDown(32)) && (jumpActive < 2)) {
jumpSwitch = false;
}
}
function shift() {
if (Key.isDown(16) && (shiftSwitch == false)) {
shiftSwitch = true;
var _local1 = true;
if (((flipFreeze != true) && (levelRotateFreeze == false)) && (shiftActive == 3)) {
rotatedXY(-10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local1 = false;
}
rotatedXY(10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local1 = false;
}
if (_local1 == true) {
flipFreeze = true;
}
}
} else if (!Key.isDown(16)) {
shiftSwitch = false;
}
}
function setDoor(linkage) {
this["doorRotateSwitch" + linkage] = true;
}
function manageDoorActivation() {
var _local2 = 1;
while (_local2 < 6) {
if (this["doorRotateSwitch" + _local2] == true) {
this["doorRotate" + _local2] = this["doorRotate" + _local2] + 36;
this["doorRotateSwitch" + _local2] = false;
}
_local2++;
}
}
function doorManagement() {
doorFreeze = false;
var _local2 = 1;
while (_local2 < 6) {
if (this["doorRotate" + _local2] > 0) {
doorFreeze = true;
this["doorRotate" + _local2] = this["doorRotate" + _local2] - 2;
}
_local2++;
}
}
function setgrey(linkage) {
if (this["greyRotateSwitch" + linkage] == true) {
this["greyRotateSwitch" + linkage] = false;
} else {
this["greyRotateSwitch" + linkage] = true;
}
}
function setTintObject(target, r, g, b, amount) {
var _local1 = new Color(target);
_local1.setTint(r, g, b, amount);
}
function EOL() {
if (eolSwitch == true) {
if (EOLTimer > 0) {
EOLTimer--;
} else {
_root.LevelNo++;
_root.gotoAndStop("S2BLANK");
}
} else {
manRot = MAN._rotation;
var _local2;
if (MAN._yscale > 0) {
if ((ITEMS.DOOR._rotation == 180) && (MAN._rotation == -180)) {
_local2 = 360;
} else {
_local2 = 0;
}
} else if (ITEMS.DOOR._rotation < 0) {
_local2 = -180;
} else {
_local2 = 180;
}
if (((jumpActive < 2) && (MAN.doorHit.hitTest(ITEMS.DOOR))) && ((MAN._rotation + _local2) == ITEMS.DOOR._rotation)) {
eolSwitch = true;
}
}
}
function newSplat(xPos, yPos) {
if (MAN._visible == true) {
splatTrue = true;
attachMovie("BloodContainer", "BC", 12);
BC._rotation = MAN._rotation;
BC._yscale = -MAN._yscale;
BC._x = xPos;
BC._y = yPos;
var _local2;
var _local3 = 0;
while (_local3 < 60) {
trace("FPMANACTIVE-" + _root.fancyPantsMan);
if (_root.fancyPantsMan == false) {
_local2 = BC.attachMovie("Blood", "B" + BCounter, BCounter++);
} else {
_local2 = BC.attachMovie("Blood_FP", "B" + BCounter, BCounter++);
}
_local2._rotation = random(360);
_local2._xscale = random(150) + 50;
_local2._yscale = _local2._xscale;
_local2.gotoAndStop(random(3) + 1);
_local2.ySpeed = random(100) / 10;
_local2.xSpeed = (random(300) - 150) / 10;
splatArray.push(_local2);
_local3++;
}
}
}
function updateSplat() {
if (splatTrue == true) {
splatTimer--;
if (splatTimer == 0) {
_root.gotoAndStop("S2BLANK");
}
}
if (manHoldX != undefined) {
MAN._x = manHoldX;
MAN._y = manHoldY;
}
if (floating == true) {
splatAlpha = splatAlpha - 0.1;
}
var _local2 = 0;
while (_local2 < splatArray.length) {
splatArray[_local2]._x = splatArray[_local2]._x + splatArray[_local2].xSpeed;
splatArray[_local2]._y = splatArray[_local2]._y + splatArray[_local2].ySpeed;
splatArray[_local2]._rotation = splatArray[_local2]._rotation + 2;
if ((floating == false) && (_root.fancyPantsMan == false)) {
splatArray[_local2].xSpeed = splatArray[_local2].xSpeed / 1.05;
splatArray[_local2].ySpeed--;
} else {
splatArray[_local2].ySpeed = splatArray[_local2].ySpeed / 1.01;
splatArray[_local2].xSpeed = splatArray[_local2].xSpeed / 1.01;
if ((_root.fancyPantsMan == true) && (_root.mapStart != 25)) {
splatArray[_local2]._alpha = splatArray[_local2]._alpha - 0.5;
} else {
splatArray[_local2]._alpha = Math.round(splatAlpha);
}
}
_local2++;
}
}
floating = false;
var az_level_5 = "10Z131125Z202ZC0062Z62121621311011240112C0080Z10ZC0052ZA010122701220012290ZA010Z10ZAA0012ZACZ30211C0010Z10ZA072ZC0012ZACZ00121C0010Z531127213112Z12Z12Z12ZACZ10Z10Z10Z10Z12131AAAA0ZB0Z10ZAAB010Z10Z10Z10Z00Z10Z10ZAAB020Z10ZC0010ZC0010Z10ZAAB020Z10ZC0010Z10Z10Z13112AAB010Z10Z00Z10Z10Z10Z10ZAAB010Z10Z00Z10Z10Z10Z10ZAA0050Z10Z10Z00Z10Z10Z10Z";
var az_level_5_Author = "Azurieq";
var az_level_2 = "00Z00ZC0010ZAAAZ10Z10Z00Z10ZC0010Z00Z10ZC0010Z10Z10ZB0Z10Z10ZC0010Z10Z10Z10Z10Z10Z00Z10Z00Z10ZB0Z10ZC0010ZB0Z10Z10Z10Z00Z10ZC0010ZA010Z10ZACZ10Z10Z10ZC0010ZC0010Z10ZC0010Z10Z10Z00Z10Z10Z00Z10ZC0010ZAB00Z10Z00Z10Z10ZC0010ZC0010Z10Z10Z10ZC0010ZC0090Z10ZC0010ZAB00Z10Z10Z10Z10Z10Z10ZC0010Z00ZAAC0Z10ZC0080Z10ZAAAAAC0010Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z";
var az_level_2_Author = "Azurieq";
var az_level_3 = "00Z20Z10Z101121011210112101121011210112101121011210Z90Z10112101121011200ZAB20Z10Z101125011200ZAB10Z10ZA020Z10Z10Z1011210Z10Z10ZB0Z00ZC0010Z10Z10Z10Z10Z10Z00Z00ZACZC0010ZAB10ZB0Z10Z10Z00ZA010ZAB20ZB0Z00Z10Z10Z10Z00Z00ZAB20Z00Z00Z00Z00Z00Z00Z00Z00Z10ZACZ00Z00Z00Z00Z00Z10Z10ZC0010Z00Z10Z00Z00Z00Z20Z10Z10Z10Z10Z10Z10ZC0010Z10Z00Z00Z00Z00Z20Z10Z10ZC0020Z10Z10Z10Z50Z00Z10Z10Z10Z10Z10Z00Z20Z10Z80Z10Z";
var az_level_3_Author = "Azurieq";
var az_level_4 = "C0090Z10Z00112C0010ZAAB050Z20Z1011210112101121011250112AAB020ZB0112001120011200112AAAC20ZB0Z5011210ZAAAB0020ZA020Z10ZAAAB0020ZA020Z10ZAAAB0020ZAAAC00ZAA0020Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z20Z00Z00ZC0050Z00Z00ZAAB050Z00Z00Z00Z00Z00Z00Z20Z10Z10Z10Z10Z10Z00Z00Z00Z00Z20Z10Z10Z10Z10Z52Z00Z10Z00Z10Z10Z10Z10Z10Z10Z10Z22Z82ZC0050Z";
var az_level_4_Author = "Azurieq";
var az_level_6 = "C01AAAAC05C11C01C08C1C001AAB20331102311C01C01A4022100211AA0020331102311C01C01AAC32100221AB203311C01C01AA0303212C01AC002C01C01C01A00331C3140311AA002C01C01C01AAAAC303312C01C01C01A40331AA001A2C01C01C01AAAAB002C01C01C01AC004014140151AA002C01C01C01C03011230142301521AAB2C01C01C01C09C110Z1C05015200151AC1522C01C01C01C0";
var az_level_6_Author = "Azurieq";
var az_level_5 = "80Z101121232212322AAAC90Z60Z1011210112201121011200112001121011212322123220232212322C0010112001122011210112001120011210112AB12322C001011200112101121011270112603221011200312A012322C001011200112201121011270321C001011200112C00101211232240Z1011200112201121011222121001211011210121401221012112322C001011200112201121011222121501211011200121001210012112322C007011200112303121011222121501211011200122001220012200121C0010112103121031210112221215012110112023220232202322001210232210312103121011210112221210012110112AAA312103121011210112023220232210112AAAA0112B0112B0121AC1210011230121";
var az_level_5_Author = "Azurieq";
var az_level_1 = "9022110Z10Z10Z10Z10Z4021210Z10Z4022210Z50222C002122121221212223021221222212223022221222212223023210ZA040211A040221A040231C005123110ZA01122210221102211022122222512221022150222C0010ZB022150222AA00112225122110221C0010Z52222102215322200221C00512225022201222C0010221C0010Z10221B022100221C0010222C0011222C0010221C0040232102210022151222102221022250222C0011222C0010221C0010Z532221022150222AB53221C005022110221C0010ZA08022152222102211022110221102211022153222C0010Z132221322210ZC0060221C007022160211C00702115023110ZA010Z7023210Z602327024210Z6024210Z10Z53222";
var az_level_1_Author = "Azurieq";
var gg_level_1 = "AB10112C0080Z10Z1C11C11C11C11C1AB10112A010Z10Z10112101121011210112AB10112AC001C01A01011220112AB10112A01C11C11C1C001011220112AB10112A1C011C1C01A020112AB10112A1C01C01C01C01C0020112AB10112A1C01C01C01C01C0020112AB10112A1C011C1C01C01C0020112AB10112A01C11C11C1C011011220112AB10112AC001AB1011220112AB10112A01C11011210112101121011210112AB10112C009C11C11C11C11C11C11C1";
var gg_level_1_Author = "Grey Games";
var gg_level_3 = "AB8343110ZAAB01C02AAB10ZAAB01C02AAB10ZAB13431034311C02AAB10ZA00343113431034311C02AA0334Z0Z1AC0013431034311C02AAA004001230321C0013431034311C02AAAAB0012B001C02AAA001C002C02C12B001C02AAA001B002C0012B001C02AAA001C03015212C12B001C02AA01C01C01AA0904ZC02AAB403211C023C23C23C23C1C02C0";
var gg_level_3_Author = "Grey Games";
var gg_level_2 = "9043Z431AB1AAAAAA033311C031431AAAAA0333Z431AB03431AA0040031B333Z43131321A003431AAAC0333Z431AB03431AAB0400210333112C31211A003431AAAB0012AAAAAB00400Z2A2AAC001C01C01AC0012AAAAAAC02C022AAAA001C012C12C12C12AAAB804311AAAAAC0";
var gg_level_2_Author = "Grey Games";
var gg_level_4 = "AAAAA2C1C001C1A023001A02C1AAB01C1A01C1B3331AA002C1C001C1A01C1B3331230012300123001B3431C001C1A01C1B33311C01C01A03431C001C1A01C11C11C11C08C11C00200103431020011C1A01C11C11C11A1C092001C005C11C1A01C1A01C01C01AA01C1A01C1A0210012100121001AB1C1A01C1AAAC2C1C001C1A021001A02C1AAB01C1AAAAA2C1C001C1";
var gg_level_4_Author = "Grey Games";
var gg_level_5 = "C0080Z10Z2Z113Z13Z13X1C13Z13Z13ZA010ZAA005YB005200113ZA010ZAAB011AC013ZC005Z110ZAAAAC013ZAAAAAA013ZAAAAA01C90Z13ZAAAAA01C13Z13ZAAAAAAAAAAAAAAAAAB023ZC0023ZAAAC53Z23Z23Z13Z53Z13ZC0023Z13Z13Z13Z13Z13ZA013Z13Z13ZC00";
var gg_level_5_Author = "Grey Games";
var gg_level_6 = "C004021180241302110321203212032120321203212032120321220241B321203212AAAAC020241C002324123241A013241AAB02024103212032120321240221C0030221AAB020241032120321203212AAAAC020241A0032122324123241A013241B1B0020241A003212A040231C0030231B1B0020241A0032120321203212AAAC20241B32120321203212032122324123241A013241C0010241B321203212032120321203212C0040241C0030241C0010241A003212032120321203212032120321200241A010241032120321203212032120321203212032122324123241232419024110241";
var gg_level_6_Author = "Grey Games";
var pp_level_1 = "80501005013022160501020020200200501020020200202002C0050Z7252140221625210050160512020020050102002B2002A060551605516055100501605120050100501020020200223ZC0023Z90122605510200200512605120050100501020020200202002A060551605510200202002005120200200501005010050100501AB02002020020051200Z00Z00501005010050100501C0040ZB0512005120051210Z0200202002005010050102002B0ZB0512005120051220512AB0050100501B0ZAA0020512AAC050100501AAB02051200ZACZB0501AAB0205123041100Z00Z00Z00Z020027012150121701517015170151105125Z130411303113021130Z00Z60121";
var pp_level_1_Author = "Nyubis";
var pp_level_2 = "60012AAAC5021133211A0600118001160012600125021133211A03312103ZC006001160011A060012600126301263012AB6001160011AA006001260012AB6001160011AAAC6001260012A060011A003021AAB060012600126001160011A043021AAB0700116001260011AA0033211AA00600116001260012A0530113321130211AB6001160011C006001260012C00530113322150011C00600116001160011AB6001260012A0920116001160011AAAC6001260012C00600116001173211332213312103211732114321133321C006001253012";
var pp_level_2_Author = "Nyubis";
var pp_level_3 = "22Z70Z60ZC0070Z60ZAB50ZC0020Z60ZAB10Z1013110Z10Z10Z10Z10Z10Z52ZA060Z2Z1611316115161131A05113110ZAB60121C00611314Z1611313Z1C0082Z10Z60Z60Z601216012123Z611316113161131C003Z1C0020ZAAB010121AA003Z120ZA0101212113100Z1012133Z03ZAB20Z10121C006012153131C0010121AAB020Z10121C006012153131C0010121AAB020Z10121701216012153131C0010121AB20Z5Z220Z10121C006012153131C0010121A0Z31A020Z10121C007013210121101211012100ZC0091131B113120Z";
var pp_level_3_Author = "Memington";
var pp_level_4 = "AAAAAC002C01AAAAAAC001C043411AA00335113Z1AA001A43411AB3341131211AA001AC0043411A03331131311AA0031212AB43411034113321131411AAAAA8341133Z31511AA0090411AB43411C003321131411AAAB0043411A03331131311AA0031212C0043411B3511035113341131211AA001C043411AA00335113Z1AA001AAAAAA2C01C0";
var pp_level_4_Author = "Holyangel145";
var pp_level_5 = "0Z10Z10Z10Z1101211012110122021120Z12Z20Z18Z103312504120Z1404Y10Z12Z10Z20Z2001220Z20Z122Z0Z1BZ10Z10Z10Z123Z0Z1001220Z120Z22Z03Z0Z10Z10Z10Z10X0Z1001220Z120Z333120Z10Z1021120Z10Z10Z12Z10Z1001220Z10Z122Z0Z10Z10Z1034120Z10Z10Z123Z0Z10Z100Z521120Z10Z10Z10Z10Z10Z10Z110Z0112123Z0XX10Z10Z1921120Z10Y12Z121401220012222Z0X22Z0Z10Z10Z10Z10Z10Z10Z10Z122Z00332AB0Z10Z10Z103Z0Z10Z123Z22Z00112AB0Z10Z1311210Z10Z10X22Z0Z10XXXXXZ1";
var pp_level_5_Author = "DasLokumDk";
var pp_level_6 = "22Z6005140Z70221912213Z13112140021505411C0400115200122ZC31601216012153251A0Z21405411C031252C0070051C312012122121AAC1241C0031241C0022Z600412012122151AAC0051AB22ZC312012122AAB1552AB70041C312003132352AA513155231151A022Z60011200311AAB52002AB22ZC31200311AAB10051AB7001153031200311B05110051100511005110051AB22Z60131100311B05110051AAAC22Z8013112121520011005110051AAB05025170031C31121211200140051AAAB00";
var pp_level_6_Author = "Podifo";
var LevelArray = new Array(8, 9, 16, 18, 1, 14, 17, 19, 3, 10, 4, 5, 6, 7, 20, 23, 24, 25, 29);
if (_root.editorActive == false) {
trace("HEREEHEHE" + _root.packName);
if (_root.LevelNo == 1) {
if (_root.packName == "gg") {
_root.setMusic("GEN");
} else if (_root.packName == "az") {
_root.setMusic("DANP");
} else if (_root.packName == "pp") {
_root.setMusic("MWC");
}
}
SCRIPTLAYER.gotoAndStop(LevelArray[_root.LevelNo]);
levelLoaded = this[(_root.packName + "_level_") + _root.LevelNo];
_parent.lName = (("Level " + _root.LevelNo) + ". Special thanks to ") + this[((_root.packName + "_level_") + _root.LevelNo) + "_Author"];
} else if (_root.preloaderActive == true) {
SCRIPTLAYER.gotoAndStop(41);
_root.fancyPantsMan = false;
levelLoaded = "90Z123110241102411424Z1421014210142101421014210142101421123Z2311AB11421AAAC123Z2311AB11421AAAC123Z2311AB11421AAB083421123Z2311AB11421B2411AA00123Z2311AB11421AAB010Z123Z2311534216241162411624116241162411A010Z10Z123Z2311C0062411AB62411C0010Z10Z10Z123Z2311C0062411AB624Z0Z10Z10Z10Z123Z2311C0062411AA0010Z10Z10Z10Z123Z2311C0062411A012412C0010Z10Z10Z10Z123Z2311024Z24Z23Z241212412C0010Z124Z0Z12412";
} else {
_root.newMedal(4);
SCRIPTLAYER.gotoAndStop(40);
levelLoaded = _root.editorLevel;
}
var LevelCode = ZCOMPILE(levelLoaded, "0", "A", 9);
LevelCode = ZCOMPILE(LevelCode, "0", "B", 6);
LevelCode = ZCOMPILE(LevelCode, "0", "C", 3);
LevelCode = ZCOMPILE(LevelCode, "1", "X", 9);
LevelCode = ZCOMPILE(LevelCode, "1", "Y", 6);
LevelCode = ZCOMPILE(LevelCode, "1", "Z", 3);
var blockCount = 0;
var blockArray = new Array();
createEmptyMovieClip("GROUND", 0);
createEmptyMovieClip("SPIKES", 1);
createEmptyMovieClip("GREYSPACE", 2);
createEmptyMovieClip("ITEMS", 3);
WALLS.swapDepths(5);
SCRIPTLAYER.swapDepths(6);
createEmptyMovieClip("BLOOD", 7);
WALLS.fixedWalls.swapDepths(999);
loadLevel();
arrangeTiles();
MAN._x = MAN._x - 240;
MAN._y = MAN._y - 240;
GROUND._x = GROUND._x - 240;
GROUND._y = GROUND._y - 240;
ITEMS._x = ITEMS._x - 240;
ITEMS._y = ITEMS._y - 240;
SPIKES._x = SPIKES._x - 240;
SPIKES._y = SPIKES._y - 240;
GREYSPACE._x = GREYSPACE._x - 240;
GREYSPACE._y = GREYSPACE._y - 240;
var gravityXSpeed;
var gravityYSpeed;
var ySpeed = 0;
var xSpeed = 0;
var rotateTarget = 0;
var rotateDir = 1;
var currentRotation = 0;
var xDir = 0;
var yDir = 1;
var controlReverse = 1;
var levelRotateFreeze = false;
var flipFreeze = false;
var inversion = 1;
var inversionCollision = new Array(false, true, true);
var shiftActive = 0;
var doorFreeze = false;
var jumpActive = 0;
var jumpBuffer = 5;
var gamePaused = false;
var gamePauseSwitch = false;
_root.pauseScreen._visible = false;
var manHoldX = undefined;
var manHoldY = undefined;
var rotatedXYLocX;
var rotatedXYLocY;
var scale = MAN.sprite._xscale;
var jumpSwitch = false;
var shiftSwitch = false;
var doorRotate1 = 0;
var doorRotate2 = 0;
var doorRotate3 = 0;
var doorRotate4 = 0;
var doorRotate5 = 0;
var doorRotateSwitch1 = false;
var doorRotateSwitch2 = false;
var doorRotateSwitch3 = false;
var doorRotateSwitch4 = false;
var doorRotateSwitch5 = false;
var doorSpeed = 10;
var greyRotateSwitch1 = false;
var greyRotateSwitch2 = false;
var greyRotateSwitch3 = false;
var greyRotateSwitch4 = false;
var greyRotateSwitch5 = false;
var greySpeed = 5;
var EOLTimer = 40;
var eolSwitch = false;
var manRot = MAN._rotation;
var splatArray = new Array();
var BCounter = 0;
splatTimer = 100;
splatTrue = false;
Symbol 1096 Button
on (release) {
gotoAndStop (1);
}
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1100 Button
on (release) {
_root.scoreSystem(userName.text, score, "GGPACK");
setMusic("GEN");
gotoFrame("PLAYERSPACKS");
}
Symbol 1104 Button
on (release) {
_root.scoreSystem(userName.text, score, "PPPACK");
setMusic("GEN");
gotoFrame("PLAYERSPACKS");
}
Symbol 1108 Button
on (release) {
_root.scoreSystem(userName.text, score, "AZPACK");
setMusic("GEN");
gotoFrame("PLAYERSPACKS");
}
Symbol 1172 MovieClip Frame 1
stop();
Symbol 1172 MovieClip Frame 3
stop();
Symbol 1172 MovieClip Frame 6
_visible = false;
Symbol 1177 MovieClip Frame 1
function newBoard() {
var _local7 = 0;
var _local4 = 0;
var _local3 = 0;
var _local5 = 0;
var _local6 = _root.editorLevel;
_local4 = 0;
while (_local4 < 12) {
_local3 = 0;
while (_local3 < 12) {
var _local2 = BOARD.attachMovie("EDITOR_block", "EB" + _local5, _local5++);
_local2._x = (_local4 * 40) - 220;
_local2._y = (_local3 * 40) - 220;
BlockArray.push(_local2);
BlockType.push(1);
BlockBGColour.push(0);
BlockRotation.push(0);
BlockLength.push(0);
BlockLinkage.push(0);
_local2.gotoAndStop(1);
_local3++;
}
_local4++;
}
}
function checkBlocks() {
var _local1 = 0;
while (_local1 < BlockArray.length) {
if (BlockArray[_local1].hit.hitTest(MOUSEMC.hit)) {
updateBlock(_local1);
}
_local1++;
}
}
function updateBlock(ID) {
BlockType[ID] = Data_Type;
BlockBGColour[ID] = DataBGColour;
BlockRotation[ID] = DataRotation;
BlockLength[ID] = DataLength;
BlockLinkage[ID] = DataLinkage;
BlockArray[ID].gotoAndStop(Data_Type);
BlockArray[ID].ColDisplay.gotoAndStop(DataBGColour);
BlockArray[ID]._rotation = DataRotation;
BlockArray[ID].Door._xscale = DataLength * 100;
BlockArray[ID].linkIndicator = DataLinkage;
if (Data_Type == 4) {
BlockArray[ID].swapDepths(0);
}
}
function spinBoard() {
boardRotateCurrent = boardRotateCurrent + ((boardRotate - boardRotateCurrent) / 2);
BOARD._rotation = boardRotateCurrent;
if (Key.isDown(39) && (boardRotateSwitch == false)) {
boardRotateSwitch = true;
boardRotate = boardRotate + 90;
} else if (Key.isDown(37) && (boardRotateSwitch == false)) {
boardRotateSwitch = true;
boardRotate = boardRotate - 90;
} else if ((!Key.isDown(39)) && (!Key.isDown(37))) {
boardRotateSwitch = false;
}
}
function onMouseDown() {
mousePressed = true;
}
function onMouseUp() {
mousePressed = false;
}
function onEnterFrame() {
spinBoard();
rotateTile();
PROPERTIES._x = PROPERTIES._x + ((propertiesX - PROPERTIES._x) / 3);
selectBox._x = selectBox._x + ((selectBoxLoc - selectBox._x) / 2);
MOUSEMC._rotation = BOARD._rotation;
MOUSEMC._x = Math.round(_xmouse / 40) * 40;
MOUSEMC._y = Math.round(_ymouse / 40) * 40;
MOUSEMC.Display.gotoAndStop(Data_Type);
MOUSEMC.Display.ColDisplay.gotoAndStop(DataBGColour);
MOUSEMC.Display._rotation = DataRotation;
MOUSEMC.Display.Door._xscale = DataLength * 100;
MOUSEMC.Display.linkIndicator = DataLinkage;
if (mousePressed == true) {
MOUSEMC._x = Math.round(_xmouse / 40) * 40;
MOUSEMC._y = Math.round(_ymouse / 40) * 40;
checkBlocks();
}
}
function rotateTile() {
if (Key.isDown(38) && (tileRotateSwitch == false)) {
tileRotateSwitch = true;
if (DataRotation > 0) {
DataRotation = DataRotation - 90;
} else {
DataRotation = 270;
}
} else if (Key.isDown(40) && (tileRotateSwitch == false)) {
tileRotateSwitch = true;
if (DataRotation < 270) {
DataRotation = DataRotation + 90;
} else {
DataRotation = 0;
}
} else if ((!Key.isDown(38)) && (!Key.isDown(40))) {
tileRotateSwitch = false;
}
}
function ZCRUSH(code, Target, Dest, DestNo) {
var _local1 = 0;
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
_local1++;
if (_local1 == DestNo) {
_local3 = _local3 + Dest;
_local1 = 0;
}
} else {
var _local5 = 0;
while (_local5 < _local1) {
_local3 = _local3 + Target;
_local5++;
}
_local1 = 0;
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
var _local5 = 0;
while (_local5 < _local1) {
_local3 = _local3 + Target;
_local5++;
}
return(_local3);
}
function ZCOMPILE(code, Dest, Target, Compression) {
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
var _local1 = 0;
while (_local1 < Compression) {
_local3 = _local3 + Dest;
_local1++;
}
} else {
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
return(_local3);
}
function loadBoard() {
var _local3 = 0;
var _local2 = ZCOMPILE(_root.editorLevel, "0", "A", 9);
_local2 = ZCOMPILE(_local2, "0", "B", 6);
_local2 = ZCOMPILE(_local2, "0", "C", 3);
_local2 = ZCOMPILE(_local2, "1", "X", 9);
_local2 = ZCOMPILE(_local2, "1", "Y", 6);
_local2 = ZCOMPILE(_local2, "1", "Z", 3);
_local2 = cleanupCode(_local2, " ");
if (_local2.length == 720) {
var _local4 = 0;
while (_local4 < 144) {
if (Number(_local2.charAt(_local3)) == " ") {
_local4--;
_local3++;
} else {
Data_Type = Number(_local2.charAt(_local3)) + 1;
DataRotation = Number(_local2.charAt(_local3 + 1)) * 90;
DataLength = Number(_local2.charAt(_local3 + 2));
DataLinkage = Number(_local2.charAt(_local3 + 3));
DataBGColour = Number(_local2.charAt(_local3 + 4));
updateBlock(_local4);
_local3 = _local3 + 5;
}
_local4++;
}
}
}
function setPropertiesBox(target) {
if (PROPERTIES._currentframe != target) {
PROPERTIES._x = PROPERTIES._x + 200;
PROPERTIES._visible = true;
PROPERTIES.gotoAndStop(target);
}
}
function cleanupCode(code, char) {
code = code.split("");
var _local1 = 0;
while (_local1 < code.length) {
if (code[_local1] == char) {
code.splice(_local1, 1);
}
_local1++;
}
var _local3 = "";
_local1 = 0;
while (_local1 < code.length) {
if (code[_local1] != ",") {
_local3 = _local3 + code[_local1];
}
_local1++;
}
return(_local3);
}
stop();
var Data_Type = 1;
var DataBGColour = 1;
var DataRotation = 0;
var DataLength = 1;
var DataLinkage = 1;
var BlockArray = new Array();
var BlockType = new Array();
var BlockBGColour = new Array();
var BlockRotation = new Array();
var BlockLength = new Array();
var BlockLinkage = new Array();
var mousePressed = false;
var boardRotate = 0;
var boardRotateCurrent = 0;
var boardRotateSwitch = false;
var selectBoxLoc = selectBox._x;
var propertiesX = PROPERTIES._x;
PROPERTIES._x = PROPERTIES._x + 200;
PROPERTIES._visible = false;
newBoard();
loadBoard();
_xscale = 80;
_yscale = 80;
EdButTypeSub.onPress = function () {
if (Data_Type > 1) {
Data_Type--;
} else {
Data_Type = 4;
}
};
EdButTypePlus.onPress = function () {
if (Data_Type < 4) {
Data_Type++;
} else {
Data_Type = 1;
}
};
PROPERTIES.EdButLenSub.onPress = function () {
if (DataLength > 1) {
DataLength--;
} else {
DataLength = 5;
}
};
PROPERTIES.EdButLenPlus.onPress = function () {
if (DataLength < 5) {
DataLength++;
} else {
DataLength = 1;
}
};
PROPERTIES.EdButLinkSub.onPress = function () {
if (DataLinkage > 1) {
DataLinkage--;
} else {
DataLinkage = 5;
}
};
PROPERTIES.EdButLinkPlus.onPress = function () {
if (DataLinkage < 5) {
DataLinkage++;
} else {
DataLinkage = 1;
}
};
EdBut_White.gotoAndStop(1);
EdBut_Black.gotoAndStop(2);
EdBut_Spike.gotoAndStop(3);
EdBut_Door_W.gotoAndStop(4);
EdBut_Door_W.ColDisplay.gotoAndStop(1);
EdBut_Door_B.gotoAndStop(4);
EdBut_Door_B.ColDisplay.gotoAndStop(2);
EdBut_Key_W.gotoAndStop(5);
EdBut_Key_W.ColDisplay.gotoAndStop(1);
EdBut_Key_B.gotoAndStop(5);
EdBut_Key_B.ColDisplay.gotoAndStop(2);
EdBut_Flip_W.gotoAndStop(6);
EdBut_Flip_W.ColDisplay.gotoAndStop(1);
EdBut_Flip_B.gotoAndStop(6);
EdBut_Flip_B.ColDisplay.gotoAndStop(2);
EdBut_Grey_W.gotoAndStop(7);
EdBut_Grey_W.ColDisplay.gotoAndStop(1);
EdBut_Grey_B.gotoAndStop(7);
EdBut_Grey_B.ColDisplay.gotoAndStop(2);
EdBut_GreySwitch_W.gotoAndStop(8);
EdBut_GreySwitch_W.ColDisplay.gotoAndStop(1);
EdBut_GreySwitch_B.gotoAndStop(8);
EdBut_GreySwitch_B.ColDisplay.gotoAndStop(2);
EdBut_Start_W.gotoAndStop(9);
EdBut_Start_W.ColDisplay.gotoAndStop(1);
EdBut_Start_B.gotoAndStop(9);
EdBut_Start_B.ColDisplay.gotoAndStop(2);
EdBut_Exit_W.gotoAndStop(10);
EdBut_Exit_W.ColDisplay.gotoAndStop(1);
EdBut_Exit_B.gotoAndStop(10);
EdBut_Exit_B.ColDisplay.gotoAndStop(2);
EdBut_White.onPress = function () {
selName = "WHITESPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_White._x;
Data_Type = 1;
};
EdBut_Black.onPress = function () {
selName = "BLACKSPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_Black._x;
Data_Type = 2;
};
EdBut_Spike.onPress = function () {
selName = "SPIKES";
setPropertiesBox(6);
selectBoxLoc = EdBut_Spike._x;
Data_Type = 3;
};
EdBut_Door_W.onPress = function () {
selName = "DOOR (WHITE BG)";
setPropertiesBox(2);
selectBoxLoc = EdBut_Door_W._x;
Data_Type = 4;
DataBGColour = 1;
};
EdBut_Door_B.onPress = function () {
selName = "DOOR (BLACK BG)";
setPropertiesBox(2);
selectBoxLoc = EdBut_Door_B._x;
Data_Type = 4;
DataBGColour = 2;
};
EdBut_Key_W.onPress = function () {
selName = "KEY (WHITE BG)";
setPropertiesBox(3);
selectBoxLoc = EdBut_Key_W._x;
Data_Type = 5;
DataBGColour = 1;
};
EdBut_Key_B.onPress = function () {
selName = "KEY (BLACK BG)";
setPropertiesBox(3);
selectBoxLoc = EdBut_Key_B._x;
Data_Type = 5;
DataBGColour = 2;
};
EdBut_Flip_W.onPress = function () {
selName = "GRAVITYFLIP (WHITE BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Flip_W._x;
Data_Type = 6;
DataBGColour = 1;
};
EdBut_Flip_B.onPress = function () {
selName = "GRAVITYFLIP (BLACK BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Flip_B._x;
Data_Type = 6;
DataBGColour = 2;
};
EdBut_Grey_W.onPress = function () {
selName = "CHECKSPACE (WHITE BG)";
setPropertiesBox(4);
selectBoxLoc = EdBut_Grey_W._x;
Data_Type = 7;
DataBGColour = 1;
};
EdBut_Grey_B.onPress = function () {
selName = "CHECKSPACE (BLACK BG)";
setPropertiesBox(4);
selectBoxLoc = EdBut_Grey_B._x;
Data_Type = 7;
DataBGColour = 2;
};
EdBut_GreySwitch_W.onPress = function () {
selName = "CHECKSWITCH (WHITE BG)";
setPropertiesBox(5);
selectBoxLoc = EdBut_GreySwitch_W._x;
Data_Type = 8;
DataBGColour = 1;
};
EdBut_GreySwitch_B.onPress = function () {
selName = "CHECKSWITCH (BLACK BG)";
setPropertiesBox(5);
selectBoxLoc = EdBut_GreySwitch_B._x;
Data_Type = 8;
DataBGColour = 2;
};
EdBut_Start_W.onPress = function () {
selName = "PLAYER START POINT";
setPropertiesBox(6);
selectBoxLoc = EdBut_Start_W._x;
Data_Type = 9;
DataBGColour = 1;
};
EdBut_Start_B.onPress = function () {
selName = "EXIT POINT (WHITE BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Start_B._x;
Data_Type = 9;
DataBGColour = 2;
};
EdBut_Exit_W.onPress = function () {
selName = "EXIT POINT (BLACK BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Exit_W._x;
Data_Type = 10;
DataBGColour = 1;
};
EdBut_Exit_B.onPress = function () {
setPropertiesBox(6);
selectBoxLoc = EdBut_Exit_B._x;
Data_Type = 10;
DataBGColour = 2;
};
BTN_COMPILE.onPress = function () {
var _local3 = "";
var _local4 = 0;
var _local5 = 0;
var _local6 = "";
var _local2 = 0;
while (_local2 < BlockArray.length) {
if (BlockType[_local2] == 9) {
_local4++;
}
if (BlockType[_local2] == 10) {
_local5++;
}
_local3 = _local3 + (BlockType[_local2] - 1);
_local3 = _local3 + (BlockRotation[_local2] / 90);
_local3 = _local3 + BlockLength[_local2];
_local3 = _local3 + BlockLinkage[_local2];
_local3 = _local3 + BlockBGColour[_local2];
_local2++;
}
if (_local4 == 0) {
_local6 = _local6 + "COMPILE ERROR: NO START POINT SET \n";
} else if (_local4 > 1) {
_local6 = _local6 + "COMPILE ERROR: MORE THAN ONE STARTPOINT! \n";
}
if (_local5 == 0) {
_local6 = _local6 + "COMPILE ERROR: NO EXIT POINT SET \n";
} else if (_local5 > 1) {
_local6 = _local6 + "COMPILE ERROR: MORE THAN ONE EXIT POINT SET! \n";
}
_local3 = ZCRUSH(_local3, "0", "A", 9);
_local3 = ZCRUSH(_local3, "0", "B", 6);
_local3 = ZCRUSH(_local3, "0", "C", 3);
_local3 = ZCRUSH(_local3, "1", "X", 9);
_local3 = ZCRUSH(_local3, "1", "Y", 6);
_local3 = ZCRUSH(_local3, "1", "Z", 3);
_root.editorLevel = _local3;
if (_local6 != "") {
_root.codeOut = _local6;
_root.editorLevel = "NONE";
} else {
_root.codeOut = _local3;
_root.editorLevel = _local3;
}
_root.nextFrame();
};
selName = "WHITESPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_White._x;
Data_Type = 1;
Instance of Symbol 1115 MovieClip in Symbol 1177 MovieClip Frame 1
on (release) {
_root.gotoAndStop(_root.backTo);
}