Frame 1
Stage.showMenu = false;
Frame 5
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);
};
stop();
Instance of Symbol 725 MovieClip in Frame 5
onClipEvent (load) {
hit = false;
}
on (rollOver, dragOver) {
hit = true;
}
on (rollOut, dragOut) {
hit = false;
gotoAndPlay (1);
}
onClipEvent (enterFrame) {
if (hit == true) {
gotoAndPlay ("textBit");
}
}
on (release) {
getURL ("http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=313404793&mt=8", "_blank");
}
Frame 6
_xscale = 100;
_yscale = 100;
stop();
Frame 7
function onEnterFrame() {
if (shakeTimer > 0) {
shakeTimer--;
_x = (_x + ((random(shakeSpeed * 100) - (shakeSpeed * 50)) / 100));
_y = (_y + ((random(shakeSpeed * 100) - (shakeSpeed * 50)) / 100));
}
_x = (_x / 1.1);
_y = (_y / 1.1);
}
function stopOneyMusic() {
ONEYACTIVE = false;
stopAllSounds();
clearInterval(ONEYTIMER);
}
function shakeScreen(ammount, time) {
shakeTimer = time;
shakeSpeed = ammount;
}
function startOneyMusic() {
if (_root.egoMusic != true) {
if (ONEYACTIVE == false) {
ONEYACTIVE = true;
stopAllSounds();
ONEY = null;
ONEY = new Sound();
ONEYTIMER = setInterval(controlOneyMusic, 92720);
ONEY.attachSound(ONEYTARGET);
ONEY.start();
}
}
}
function controlOneyMusic() {
if (_root.egoMusic != true) {
stopAllSounds();
if (ONEYACTIVE == true) {
stopAllSounds();
ONEY = null;
ONEY = new Sound();
ONEY.attachSound(ONEYTARGET);
clearInterval(ONEYTIMER);
ONEYTIMER = setInterval(controlOneyMusic, 86020);
ONEY.start(6.7);
}
}
}
function setMusic(music) {
}
function loadSave(destructive) {
if ((savefile.data.saveActive != undefined) && (destructive != true)) {
_root.CHAPSAVE = savefile.data.CHAPSAVE;
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;
} else {
_root.CHAPSAVE = new Array(null, false, false, false, false, false);
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;
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.CHAPSAVE = _root.CHAPSAVE;
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;
savefile.flush();
}
function newMedal(medal) {
if (_root.oldPlayer != true) {
if (medalArray[medal] == undefined) {
trace("MEDAL AWARDED" + medal);
var _local3 = MEDALS.attachMovie("MedalPrompt", "M" + medalCounter, medalCounter++);
_local3.medalName = medal;
_local3._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) {
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
function scoreSystem(userName, score, game) {
}
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) {
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
_root.editorMode = false;
medalNameArray = new Array(null, "CHAPTER 1", "APPRECIATOR", "SUPPORTER", "FAKE TIMER :P", "CHAPTER 2", "CHAPTER3", "WHOOPS", "WOOTS", "FORECLOSURE", "HARDCLASS");
var sPos = new Object();
sPos.x = 0;
sPos.y = 0;
sPos.rotation = 0;
sPos.shifted = false;
sPos.activated = false;
_root.numPlayers = 1;
_root.gravity = 1.05;
preloaderActive = false;
_root.fancyPantsMan = false;
_xscale = 100;
_yscale = 100;
var musicSwitch = true;
var lastSound = "";
var startPoint = new Object();
var ONEY = new Sound();
var ONEYTIMER;
var ONEYTARGET = "ONEYMUSIC";
var ONEYACTIVE = false;
var shakeTimer = 0;
var shakeSpeed = 0;
createEmptyMovieClip("MEDALS", 10);
var medalArray;
var savefile = SharedObject.getLocal("SHIFT4C");
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);
domain = domain.toLowerCase();
if ((((domain != "") && (domain != "yimg.com")) && (domain != "yahoo.com")) && (domain != "armorgames.com")) {
}
Instance of Symbol 37 MovieClip "FADER" in Frame 7
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Frame 8
_xscale = 100;
_yscale = 100;
_quality = "high";
editorActive = false;
_root.numPlayers = 1;
stop();
_root.musicStart = undefined;
var char1rot = 0;
var char1x = 0;
var char1y = 0;
var char1Shifted = false;
var char2rot = 0;
var char2x = 0;
var char2y = 0;
var char2Shifted = false;
var char3rot = 0;
var char3x = 0;
var char3y = 0;
var char3Shifted = false;
Frame 9
Mouse.show();
Frame 10
newMedal(2);
Frame 11
_root.minuteTime = 10;
_root.secondTime = 0;
_root.gravityGrab = false;
_root.lockCollect1 = false;
_root.lockCollect2 = false;
i = 1;
while (i < 6) {
if (_root.CHAPSAVE[i] != true) {
trace("WHHAHAHAHA");
this["chap" + i]._alpha = 10;
} else {
this["chap" + i]._alpha = 100;
}
i++;
}
trace(_root.CHAPSAVE);
loadData();
if ((gameActive == undefined) || (gameActive == false)) {
contButton._alpha = 40;
}
_root.forceRadar = false;
_root.editorMode = false;
_root.egoMusic = false;
_root.egoTimer = 0;
_root.oldPlayer = false;
Frame 12
_root.playTime = 0;
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++;
}
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Frame 18
stopAllSounds();
Frame 23
stopAllSounds();
Frame 24
Mouse.show();
levelText.text = "Level" + LevelNo;
if (ONEYTARGET != "ONEYMUSIC") {
ONEYACTIVE = false;
ONEYTARGET = "ONEYMUSIC";
}
startOneyMusic();
_root.shift3Mode = true;
Instance of Symbol 1025 MovieClip in Frame 24
onClipEvent (enterFrame) {
_rotation = (((_root.gravity * 170) - 90) - random(10));
if (_parent.timeFade._alpha > 0) {
_parent.timeFade._alpha = _parent.timeFade._alpha - 10;
}
if (_root.secondTime <= 0) {
_root.secondTime = 60;
_root.minuteTime = _root.minuteTime - 1;
if (_root.minuteTime < 0) {
if (_root.egoMusic == true) {
_root.gotoFrame("ENDMOVIE_BAD");
} else {
_root.newMedal(4);
_root.secondTime = 0.0333333333333333;
_parent.timeFade._alpha = 100;
}
}
}
_root.secondTime = _root.secondTime - 0.0333333333333333;
var secondTime = Math.floor(_root.secondTime);
if (String(secondTime).length < 2) {
secondTime = "0" + secondTime;
}
_root.countDown = _root.countDown - 0.0333333333333333;
_root.timeText = (_root.minuteTime + ":") + secondTime;
}
Frame 25
if (_root.goodEnd == true) {
gotoFrame("ENDMOVIE");
} else {
_root.gravity = 1.1;
gotoFrame("GAME");
}
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);
Frame 29
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
gameActive = false;
newMedal(8);
Frame 31
_root.setMusic("DANP");
Frame 32
gotoAndStop ("STARTMOVIE");
Frame 33
_root.setMusic("DANP");
_root.CHAPSAVE[1] = true;
_root.saveGame();
Frame 34
newMedal(1);
_root.CHAPSAVE[2] = true;
_root.saveGame();
Frame 35
newMedal(5);
_root.CHAPSAVE[3] = true;
_root.saveGame();
stopAllSounds();
gotoFrame("CHAPTERCOMPLETE");
Frame 37
stopAllSounds();
Frame 39
newMedal(6);
_root.CHAPSAVE[4] = true;
_root.saveGame();
stopAllSounds();
gotoFrame("CHAPTERCOMPLETE");
Frame 46
_root.oldPlayer = true;
if (ONEYTARGET != "ONEYMUSIC") {
ONEYACTIVE = false;
ONEYTARGET = "ONEYMUSIC";
}
startOneyMusic();
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";
Frame 49
_quality = "high";
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
Frame 50
var score = (Math.round((_root.playTime / 35) * 10) / 10);
dispText.text = score + " SECONDS";
_root.oldPlayer = false;
newMedal(10);
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();
stopOneyMusic();
Instance of Symbol 1305 MovieClip in Frame 51
on (release) {
_root.backTo = "EDITORTITLE";
_root.editorLevel = "AAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAC80Z10Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAC90Z10Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 51
on (release) {
_root.backTo = "LOADER";
_root.gotoAndStop("LOADER");
}
Instance of Symbol 1305 MovieClip in Frame 51
on (release) {
setMusic("GEN");
_root.gotoFrame("EXES");
}
Instance of Symbol 1305 MovieClip in Frame 51
on (release) {
var sp_room1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 9, 2, 1, 57, 2);
var editorTest = sp_room18;
_root.backTo = "EDITORTITLE";
_root.editorLevel = editorTest;
_root.gotoAndStop("EDITOR");
}
Frame 52
stop();
stopAllSounds();
stopOneyMusic();
Instance of Symbol 1305 MovieClip in Frame 52
on (release) {
_root.editorLevel = _parent.LevelCodeBox.text;
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 52
on (release) {
_root.gotoAndStop("EDITORTITLE");
}
Frame 53
stopAllSounds();
stopOneyMusic();
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.editorLevel = "0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z10Z10Z10Z18XX110Z10Z10Z0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z100Z0Z10Z10Z100Z20X0Z10Z10Z0Z10Z10Z10Z10Z10Z100Z20X0Z10Z10Z00Z00Z0Z10Z10Z10XXY10Z10Z00Z00ZACZ00XXY0Z10Z00Z00ZA020Z10XXY0Z10Z00Z00ZA020Z10XX10Z10Z10Z00Z00Z00ZABXY10Z10Z10Z00Z00Z00Z00Z00Z90XX10Z10Z10Z00Z00Z00Z00Z00Z00XXXY";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "10Z10Z10Z10Z1211210Z10Z00Z9211200Z10Z10Z10Z101125011210Z1211210Z00Z10Z10Z00Z10Z10Z1011210Z10Z10Z1211200Z10Z10Z10ZC0010Z10Z10Z10Z10Z10Z00Z1211210Z10ZC0080Z10Z10Z00Z10Z10112C001211210Z10Z10ZB0Z10Z10Z00Z00Z10ZC0010Z10Z10Z10ZA010Z10Z10ZC0010ZC0050Z00Z10Z00ZA010Z10Z10ZB0ZB0ZC0010ZAB10Z10Z10Z10Z00ZC0010ZB0Z00ZA010Z10Z10ZA020Z10Z101121011210Z10Z10Z10Z10Z00ZA020Z10Z10Z10Z10Z10Z10Z10Z10Z00ZA020Z10Z5311210Z10Z10Z10Z10Z10Z";
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "70011A080Z50012600115201102001B2001020010200112001AB10ZCZ300113001C011C11C10200110Z12001A010ZC002C122001C012C1120010200110Z1C0110011C010ZC002C122211C012C112001020011C002001ACZC002C122001C012C112001020011C002211AA002C122001C012C11200102001120Z0211C003021150211032112C122001C012C11200102001020Z0211AA002C122001C012C112001020010201102001AA002C122001C012C1120010200102011AA00432112C122001C012C11200102001020110201100211020Z3212120Z300122001C012C11200151001522110201102011020Z3212532121321222001930012C1120011C1";
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "104Z04Z24122Z12Z12Z1234112Z12Z12Z12Z123Z02412824Z0Z52411A010Z00Z50ZA092112024120241210Z12411A010Z00ZA010Z10Z02412024Z0ZAB10Z00ZACZ53411B24Z0ZAB10Z10Z11411B0Z00311A010ZAAAA0Z0041153Z10Z10ZAAAAC0303Z21121211210ZAB00Z00ZAB504110341100Z00Z00Z00Z01411014115341201411C0011411014125341100Z00Z00Z00Z10Z10Z10Z01411C0011411414Z3Z13Z11412114121141210Z014110141101411C006141161411714125141213Z014120141101411014110141101411004116141161411";
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_parent.LevelCodeBox.text = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.gotoAndStop("EDITORTITLE");
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.editorLevel = "12Z13Z13Z13Z13Z13Z13Z13Z13Z13Z13Z10Z12Z13Z13Z13Z13Z13Z13Z02Z13Z13Z13Z13Z12Z5Z1AA0013ZAA0010Z12ZAAB013Z92ZA082Z10Z12ZAAB013ZAA0010Z12ZA010ZAAAC10Z10Z12ZA010ZAAB010Z10Z10Z12ZA010ZAA0010Z10Z10Z10Z12ZA010ZAB10Z10Z10Z10Z10Z12ZA010ZA010Z10Z10Z10Z10Z10Z12ZA010Z53ZC0010Z10Z10Z10Z10Z10Z12ZC0050Z10ZA010Z10Z10Z10Z10Z10Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.editorLevel = "AAB0823Z0Z10Z10Z10Z10Z10412AAAC10Z10Z10Z10Z10Z10ZAAB033Z10Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z4041210Z10Z10Z10ZAAB00343110Z10Z10Z10Z10Z10ZAAB03322110Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z10Z10Z10Z10Z10ZAAC0Z0252110Z4042210Z10Z10Z12521AAC0Z3333110Z10Z10Z10Z10Z10422ACZACZ10Z10Z10Z10Z10Z10ZB012200ZAB10Z4043210Z033Z0Z10ZB0Z00ZAB10Z10Z10Z033119231210Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.editorLevel = "1002150032C521005262042C21C0070011600316003160031500211002110021C521002162042C21B0031600216003160031600311002110021C52100216204210021B0031600216002160031600311002110021C5210021C2110021B0031600216002160021600311002110021C5210021C2110021B0031AA001002110021C5210021C2110021AAAC1002110021C5210021C2110021AA31C00800311002110021C5210021C2110021AAAC1002110021C5210021C2110021C21AA00600Z0021100216205210051C2110021AA0160011600Z00211002162052C21C2110021AB60011600116001192052100216205270051C2170042C007002160011600116001170031";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 1305 MovieClip in Frame 53
on (release) {
_root.editorLevel = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
_root.gotoAndStop("EDITOR");
}
Frame 54
_xscale = 100;
_yscale = 100;
stopAllSounds();
stopOneyMusic();
Frame 55
if (_root.editorLevel == "NONE") {
previewLevel._alpha = 40;
} else {
previewLevel._alpha = 100;
}
stopAllSounds();
_root.editorMode = true;
_root.numPlayers = 3;
stopOneyMusic();
Instance of Symbol 1305 MovieClip in Frame 55
on (release) {
_root.prevFrame();
}
Instance of Symbol 1305 MovieClip "previewLevel" in Frame 55
on (release) {
if (_alpha == 100) {
_root.editorMode = true;
_root.gotoFrame("SHIFT2GAME");
}
}
Frame 56
setMusic("ending");
stopOneyMusic();
Symbol 5 MovieClip Frame 1
stop();
if (_root.fancyPantsMan == true) {
nextFrame();
}
Symbol 16 MovieClip Frame 1
doorNum = _parent._parent._parent.doorNum;
if (doorNum == undefined) {
doorNum = "";
}
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 19 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 20 MovieClip [LEVEL_Block_Exit] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
sprite.gotoAndStop(2);
}
Symbol 23 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 26 MovieClip Frame 1
_rotation = (random(4) * 90);
if (random(2) == 0) {
_xscale = (_xscale * -1);
}
Symbol 26 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 35 MovieClip [LEVEL_Block_Door] Frame 1
function onEnterFrame() {
if (_parent._parent["doorRotate" + linkage] > 0) {
_rotation = (_rotation + _parent._parent.doorSpeed);
}
}
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 37 MovieClip Frame 1
_alpha = 0;
Symbol 39 MovieClip [LEVEL_Block_Spike] Frame 1
function onEnterFrame() {
if (hit.hitTest(_parent._parent.MAN.spikeHit)) {
_parent._parent.spikeMan();
}
}
stop();
Symbol 41 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 43 MovieClip [GravityTEMP] Frame 1
function onEnterFrame() {
if (!this.hit.hitTest(_parent._parent.MAN.hit)) {
this.removeMovieClip();
} else {
_parent._parent.gravityFlip(_rotation, _x, _y);
}
}
Symbol 44 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 46 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 50 MovieClip Frame 1
stop();
Symbol 51 MovieClip [LEVEL_Block_HoldSwitch] Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if ((((this.hit.hitTest(_parent._parent.MAN.hit) || (this.hit.hitTest(_parent._parent.PLAYER1.hit))) || (this.hit.hitTest(_parent._parent.PLAYER2.hit))) || (this.hit.hitTest(_parent._parent.PLAYER0.hit))) && (_parent._parent.gameActive == true)) {
SPRITE.gotoAndStop(2);
if (currentHit == false) {
currentHit = true;
_parent._parent.doorShakeTimer = 40;
if (_root.gateArray[linkage] == undefined) {
_root.gateArray[linkage] = 1;
} else {
_root.gateArray[linkage]++;
}
}
} else if (((((!this.hit.hitTest(_parent._parent.MAN.hit)) && (!this.hit.hitTest(_parent._parent.PLAYER1.hit))) && (!this.hit.hitTest(_parent._parent.PLAYER2.hit))) && (!this.hit.hitTest(_parent._parent.PLAYER0.hit))) && (_parent._parent.gameActive == true)) {
if (currentHit == true) {
currentHit = false;
_parent._parent.doorShakeTimer = 40;
if (_root.gateArray[linkage] == undefined) {
_root.gateArray[linkage] = 1;
} else {
_root.gateArray[linkage]++;
}
}
SPRITE.gotoAndStop(1);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if (_root.shift3Mode == true) {
if (_root.keyArray[linkage] == true) {
_visible = false;
}
}
var currentHit = false;
Symbol 62 MovieClip [Rubble] Frame 1
function onEnterFrame() {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
ySpeed++;
}
Symbol 79 MovieClip Frame 1
gotoAndStop(_parent.ID);
Symbol 80 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 81 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 - 450);
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 100 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 100 MovieClip [MESSAGE] Frame 4
stop();
Symbol 100 MovieClip [MESSAGE] Frame 5
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip [HoldButton] Frame 1
function onEnterFrame() {
cancelHit = true;
if ((((this.hit.hitTest(_parent._parent.MAN.hit) || (this.hit.hitTest(_parent._parent.PLAYER1.hit))) || (this.hit.hitTest(_parent._parent.PLAYER2.hit))) || (this.hit.hitTest(_parent._parent.PLAYER0.hit))) && (_parent._parent.gameActive == true)) {
var _local4;
if (_parent._parent.MAN._yscale > 0) {
if ((this._rotation == 180) && (_parent._parent.MAN._rotation == -180)) {
_local4 = 360;
} else {
_local4 = 0;
}
} else if (this._rotation < 0) {
_local4 = -180;
} else {
_local4 = 180;
}
if ((((this.hit.hitTest(_parent._parent.MAN.hit) && ((_parent._parent.MAN._rotation + _local4) == this._rotation)) || (this.hit.hitTest(_parent._parent.PLAYER1.hit) && ((_parent._parent.PLAYER1._rotation + _local4) == this._rotation))) || (this.hit.hitTest(_parent._parent.PLAYER2.hit) && ((_parent._parent.PLAYER2._rotation + _local4) == this._rotation))) || (this.hit.hitTest(_parent._parent.PLAYER0.hit) && ((_parent._parent.PLAYER0._rotation + _local4) == this._rotation))) {
SPRITE.gotoAndStop(2);
if (currentHit == false) {
currentHit = true;
_parent._parent.doorShakeTimer = 40;
if (_root.gateArray[linkage] == undefined) {
_root.gateArray[linkage] = 1;
} else {
_root.gateArray[linkage]++;
}
}
cancelHit = false;
}
} else if (((((!this.hit.hitTest(_parent._parent.MAN.hit)) && (!this.hit.hitTest(_parent._parent.PLAYER1.hit))) && (!this.hit.hitTest(_parent._parent.PLAYER2.hit))) && (!this.hit.hitTest(_parent._parent.PLAYER0.hit))) && (_parent._parent.gameActive == true)) {
if (currentHit == true) {
currentHit = false;
_parent._parent.doorShakeTimer = 40;
if (_root.gateArray[linkage] == undefined) {
_root.gateArray[linkage] = 1;
} else {
_root.gateArray[linkage]++;
}
}
SPRITE.gotoAndStop(1);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if (_root.shift3Mode == true) {
if (_root.keyArray[linkage] == true) {
_visible = false;
}
}
if (this._rotation == 180) {
this._rotation = -180;
}
var cancelHit = false;
var currentHit = false;
Symbol 194 MovieClip Frame 67
gotoAndPlay (1);
Symbol 224 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 563 MovieClip Frame 73
if (b == 0) {
b = 6;
} else {
b--;
gotoAndPlay (1);
}
Symbol 563 MovieClip Frame 154
Symbol 563 MovieClip Frame 290
gotoAndPlay (244);
Instance of Symbol 563 MovieClip "sprite" in Symbol 605 MovieClip Frame 1
onClipEvent (load) {
b = 6;
}
Instance of Symbol 563 MovieClip "Idle" in Symbol 605 MovieClip Frame 5
onClipEvent (load) {
b = 6;
}
Symbol 608 MovieClip Frame 1
function onEnterFrame() {
if (_root.oldPlayer == false) {
if (_parent._yscale > 0) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
_visible = false;
}
}
Symbol 615 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 1
gotoAndStop(_root.activePlayer + 1);
Symbol 665 MovieClip Frame 5
stop();
Symbol 671 MovieClip Frame 5
stop();
Symbol 677 MovieClip Frame 5
stop();
Symbol 678 MovieClip Frame 1
gotoAndStop(_root.activePlayer + 1);
Symbol 684 MovieClip Frame 1
stop();
if (_root.fancyPantsMan == true) {
nextFrame();
}
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 4
_visible = false;
Symbol 687 MovieClip [OBJECT_MAN] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
stop();
Symbol 695 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);
}
Symbol 698 MovieClip Frame 1
stop();
Symbol 702 MovieClip Frame 8
stop();
Symbol 703 Button
on (release) {
_root.play();
}
Symbol 706 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 742 MovieClip Frame 1
_visible = false;
Symbol 742 MovieClip Frame 2
_visible = true;
Symbol 742 MovieClip Frame 181
_root.play();
Symbol 745 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 6648
gotoAndStop (1);
Symbol 749 MovieClip Frame 1
_root.stopOneyMusic();
Symbol 749 MovieClip Frame 3
stop();
Symbol 753 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 1
stop();
Symbol 758 Button
on (rollOver, dragOver) {
menuText.text = "Finish the fight in story mode \nor play through a user created set of levels.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
_root.shift3Mode = true;
gotoFrame("STORY");
}
Symbol 760 Button
on (rollOver, dragOver) {
menuText.text = "View your Medals and make your own levels!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("EXES");
}
Symbol 771 Button
on (rollOver, dragOver) {
menuText.text = "Shift is now available for portable play on the iPhone & iPod touch! Click here to download the free version!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
getURL ("http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=313404793&mt=8", "_blank");
}
Symbol 773 Button
on (rollOver, dragOver) {
menuText.text = "\nPlay through previous versions \nof the SHIFT series!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("OLDSHIFT");
}
Symbol 776 Button
on (release) {
gotoFrame("TITLE");
}
Symbol 779 Button
on (release) {
gotoFrame("CAT");
}
Symbol 784 Button
on (release) {
gotoFrame("EXES");
}
Symbol 788 Button
on (rollOver, dragOver) {
if (chap1._alpha == 100) {
menuText.text = "What are the chances of a Space Squid attack in this day and age? Honestly.";
} else {
menuText.text = "This chapter is locked. Complete a previous chapter to unlock it.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (chap1._alpha == 100) {
_root.CHAPTER = 1;
_root.numPlayers = 1;
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 790 Button
on (rollOver, dragOver) {
if (chap2._alpha == 100) {
menuText.text = "You've rescued Mom but Pops is still missing. Can you save him in time?";
} else {
menuText.text = "This chapter is locked. Complete a previous chapter to unlock it.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (chap2._alpha == 100) {
_root.CHAPTER = 2;
_root.numPlayers = 2;
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 792 Button
on (rollOver, dragOver) {
if (chap3._alpha == 100) {
menuText.text = "With the family reunited, it's time to find a way off this rock.";
} else {
menuText.text = "This chapter is locked. Complete a previous chapter to unlock it.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (chap3._alpha == 100) {
_root.CHAPTER = 3;
_root.numPlayers = 3;
levelNo = 20;
_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 794 Button
on (rollOver, dragOver) {
menuText.text = "Just when you thought our heroes were safe...";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
stopAllSounds();
gotoFrame("ENDMOVIE_GOOD");
}
Symbol 797 Button
on (rollOver, dragOver) {
if (chap3._alpha == 100) {
menuText.text = "Difficult choices are part of everyday life. Also, turn your speakers up!";
} else {
menuText.text = "This chapter is locked. Complete a previous chapter to unlock it.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (chap4._alpha == 100) {
_root.CHAPTER = 4;
_root.numPlayers = 1;
levelNo = 20;
_root.genNote = "";
_root.mapStart = 23;
var playTime = 0;
startPoint = 50;
_root.noteArray = new Array();
_root.gateArray = new Array();
_root.keyArray = new Array();
_root.mapArray = new Array();
_root.itemArray = new Array();
gotoFrame("GAME");
}
}
Symbol 801 Button
on (rollOver, dragOver) {
if (chap3._alpha == 100) {
menuText.text = "\n\n\nPrefer old style SHIFT? \nCan you beat these user created levels?";
} else {
menuText.text = "This chapter is locked. Complete a previous chapter to unlock it.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("PLAYERSPACKS");
}
Symbol 803 Button
on (rollOver, dragOver) {
if (chap5._alpha == 100) {
menuText.text = "Listen to the Shift parody of Isaac Hayes' 'Shaft' theme song. Written by Antony Lavelle / Egoraptor, music by Chris O'Neill vocals by EgoRaptor/Ciyfox.";
} else {
menuText.text = "Listen to the end song by Chris O'Neill starring EgoRaptor and featuring CiyFox again. Complete the game to unlock!.";
}
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
if (chap5._alpha == 100) {
stopAllSounds();
_root.egoMusic = true;
_root.EGOMUSIC.gotoAndPlay(3380);
_root.egoTimer = 3395;
_root.gotoFrame("ENDMOVIE");
}
}
Symbol 809 Button
on (rollOver, dragOver) {
menuText.text = "Levels from the Shift 2 Level pack by the grey games crew. 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 811 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 813 Button
on (release) {
gotoFrame("STORY");
}
Symbol 817 Button
on (release) {
loadSave(true);
_root.fancyPantsMan = false;
_root.gotoAndPlay("firstLoad");
}
Symbol 856 Button
on (release) {
if (_root.HSTitle == "STORY MODE") {
gotoFrame("TITLE");
} else {
gotoFrame("PLAYERSPACKS");
}
}
Symbol 860 Button
on (release) {
gotoFrame("MEDALS");
}
Symbol 862 Button
on (release) {
gotoFrame("EDITORTITLE");
}
Symbol 864 Button
on (release) {
newMedal(3);
gotoFrame("CREDITS");
}
Symbol 877 Button
on (release) {
newMedal(3);
getURL ("http://armorgames.com/play/751/shift", "_blank");
}
Symbol 879 Button
on (release) {
newMedal(3);
getURL ("http://armorgames.com/play/964/shift-2", "_blank");
}
Symbol 881 Button
on (release) {
newMedal(3);
getURL ("http://armorgames.com/play/1846/shift-3", "_blank");
}
Symbol 887 Button
on (release) {
newMedal(3);
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 892 MovieClip Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - 3);
_y = (_y - (random(3) + 1));
_x = (_x + (random(5) - 2));
_rotation = (_rotation + 5);
_yscale = (_yscale + random(3));
_xscale = (_xscale + random(3));
} else {
_xscale = 20;
_yscale = 20;
_alpha = (100 + random(100));
_y = yPos;
_x = xPos;
}
}
_alpha = (100 + random(100));
var yPos = _y;
var xPos = _x;
_xscale = 20;
_yscale = 20;
_rotation = random(360);
Symbol 898 MovieClip Frame 1
stop();
Instance of Symbol 898 MovieClip "base" in Symbol 900 MovieClip Frame 1
onClipEvent (load) {
stop();
if (_root.CHAPTER > 1) {
gotoAndStop (2);
}
}
Symbol 924 MovieClip Frame 1
function onEnterFrame() {
if (((hitT == false) && (this.hit.hitTest(_parent._parent.MAN.hit))) && (_parent._parent.gameActive == true)) {
hitT = true;
gotoAndStop (2);
_root.shakeScreen(30, 30);
_root.gravityGrab = true;
_parent.ITP._alpha = 100;
}
}
hitT = false;
_parent.ITP._alpha = 0;
if (_root.gravityGrab == true) {
gotoAndStop (2);
hitT = true;
_parent.ITP._alpha = 100;
}
stop();
Symbol 949 MovieClip Frame 58
stop();
Symbol 957 MovieClip Frame 1
if (_root.editorMode == true) {
gotoAndStop ("EDITOR");
}
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 2
onClipEvent (load) {
if (_root.CHAPTER == 1) {
_root.gravity = 1.1;
_parent.gravHoles._visible = false;
_parent.holesBG._visible = false;
_parent.GMASK._visible = false;
} else {
_parent.holesBG.setMask(_parent.GMASK);
_root.gravity = 0.3;
}
}
onClipEvent (enterFrame) {
if (_root.CHAPTER > 1) {
_parent.holesBG._rotation = _parent.holesBG._rotation + 1;
_root.shakeScreen(3, 3);
}
}
Instance of Symbol 914 MovieClip in Symbol 957 MovieClip Frame 7
onClipEvent (load) {
ySpeed = -10;
xSpeed = 10;
if (_root.numPlayers > 1) {
this._y = this._y - 4000;
}
}
onClipEvent (enterFrame) {
if (Bubble._visible == true) {
if (this.Person.hitTest(_parent._parent.MAN.hit) && (_parent._parent.gameActive == true)) {
Bubble._visible = false;
Person._visible = false;
if (_root.numPlayers == 1) {
_root.numPlayers = 2;
_parent._parent.PLAYER1._x = _parent._parent.MAN._x;
_parent._parent.PLAYER1._y = _parent._parent.MAN._y;
_root.sPos.x = _parent._parent.MAN._x;
_root.sPos.y = _parent._parent.MAN._y;
_root.sPos.rotation = 0;
_root.sPos.inversion = 1;
_root.instantSwitch = 1;
} else {
_root.numPlayers = 3;
_parent._parent.PLAYER2._x = _parent._parent.MAN._x;
_parent._parent.PLAYER2._y = _parent._parent.MAN._y;
_root.sPos.x = _parent._parent.MAN._x;
_root.sPos.y = _parent._parent.MAN._y;
_root.sPos.rotation = 0;
_root.sPos.inversion = 1;
_root.instantSwitch = 2;
}
}
} else {
this._y = this._y + ySpeed;
ySpeed++;
this._x = this._x + xSpeed;
xSpeed = xSpeed / 1.1;
_rotation = (_rotation + 15);
}
}
Instance of Symbol 919 MovieClip in Symbol 957 MovieClip Frame 9
onClipEvent (load) {
if (_root.CHAPTER == 3) {
_y = (_y - 3000);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN.hit)) {
_root.keyUpLock = true;
} else {
_root.keyUpLock = false;
}
}
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 11
onClipEvent (load) {
if (_root.gravityGrab == false) {
_root.gravity = 1.1;
_parent.gravHoles._visible = false;
_parent.holesBG._visible = false;
_parent.GMASK._visible = false;
_parent.impassText._visible = true;
} else {
_parent.impassText._visible = false;
_parent.holesBG.setMask(_parent.GMASK);
_root.gravity = 0.3;
}
}
onClipEvent (enterFrame) {
if (_root.gravityGrab == 2) {
_parent.holesBG._rotation = _parent.holesBG._rotation + 1;
_root.shakeScreen(3, 3);
}
}
Symbol 957 MovieClip Frame 15
_root.gravity = 1.1;
Instance of Symbol 914 MovieClip in Symbol 957 MovieClip Frame 15
onClipEvent (load) {
ySpeed = -10;
xSpeed = 10;
if (_root.numPlayers > 2) {
this._y = this._y - 4000;
}
}
onClipEvent (enterFrame) {
if (Bubble._visible == true) {
if (this.Person.hitTest(_parent._parent.MAN.hit) && (_parent._parent.gameActive == true)) {
Bubble._visible = false;
Person._visible = false;
if (_root.numPlayers == 1) {
_root.numPlayers = 2;
_parent._parent.PLAYER1._x = _parent._parent.MAN._x;
_parent._parent.PLAYER1._y = _parent._parent.MAN._y;
_root.sPos.x = _parent._parent.MAN._x;
_root.sPos.y = _parent._parent.MAN._y;
_root.sPos.rotation = 0;
_root.sPos.inversion = 1;
_root.instantSwitch = 1;
} else {
_root.numPlayers = 3;
_parent._parent.PLAYER2._x = _parent._parent.MAN._x;
_parent._parent.PLAYER2._y = _parent._parent.MAN._y;
_root.sPos.x = _parent._parent.MAN._x;
_root.sPos.y = _parent._parent.MAN._y;
_root.sPos.rotation = 0;
_root.sPos.inversion = 1;
_root.instantSwitch = 2;
}
}
} else {
this._y = this._y + ySpeed;
ySpeed++;
this._x = this._x + xSpeed;
xSpeed = xSpeed / 1.1;
_rotation = (_rotation + 15);
}
}
Symbol 957 MovieClip Frame 16
stop();
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 16
onClipEvent (load) {
hit = false;
autoTimer = 0;
}
onClipEvent (enterFrame) {
if (hit == true) {
if (_parent.lightBox._alpha > 0) {
_parent.lightBox._alpha = _parent.lightBox._alpha - 10;
}
}
if (this.hitTest(_parent._parent.MAN.hit) || (autoTimer == 200)) {
hit = true;
_root.newMedal(9);
}
}
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN.hit) && (_parent._parent.gameActive == true)) {
this._y = this._y - 2000;
if ((_root.lockCollect1 == true) && (_root.lockCollect2 == true)) {
if (_root.gateArray[44] == undefined) {
_root.gateArray[44] = 1;
} else {
_root.gateArray[44]++;
}
}
}
_alpha = 1;
}
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 19
onClipEvent (load) {
timer = 40;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN.hit) && (_parent._parent.gameActive == true)) {
this._y = this._y - 2000;
_parent._parent.KeyPressUp = true;
hit = true;
}
if (hit == true) {
timer--;
if (timer == 0) {
_root.gotoFrame("CHAPTER3COMPLETE");
}
}
_alpha = 1;
}
Instance of Symbol 944 MovieClip in Symbol 957 MovieClip Frame 19
onClipEvent (load) {
if (_root.lockCollect1 == false) {
_alpha = 20;
}
}
Instance of Symbol 944 MovieClip in Symbol 957 MovieClip Frame 19
onClipEvent (load) {
if (_root.lockCollect2 == false) {
_alpha = 20;
}
}
Instance of Symbol 695 MovieClip [LEVEL_Block_Key] in Symbol 957 MovieClip Frame 21
onClipEvent (load) {
var lockStore = _root.lockCollect1;
if (_root.lockCollect1 == true) {
_y = (_y - 3000);
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
if ((this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) && (_parent._parent.gameActive == true)) {
trace("LOCKCOL");
_parent._parent.doorShakeTimer = 40;
_root.lockCollect1 = true;
_visible = false;
}
if (_parent._parent.dead == true) {
_root.lockCollect1 = lockStore;
}
}
Instance of Symbol 695 MovieClip [LEVEL_Block_Key] in Symbol 957 MovieClip Frame 22
onClipEvent (load) {
if (_root.lockCollect2 == true) {
_y = (_y - 3000);
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
if ((this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) && (_parent._parent.gameActive == true)) {
trace("LOCKCOL");
_parent._parent.doorShakeTimer = 40;
_root.lockCollect2 = true;
_visible = false;
}
}
Instance of Symbol 37 MovieClip in Symbol 957 MovieClip Frame 23
onClipEvent (load) {
ySpeed = -3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN)) {
_parent._parent.MAN._xscale = 0;
_parent._parent.MAN._y = _parent._parent.MAN._y - 5000;
hit = true;
}
if (hit == true) {
ySpeed = ySpeed + 0.2;
_parent.Rocket._y = _parent.Rocket._y - ySpeed;
_parent.altText = "YOU SHOULDN'T HAVE DONE THAT.";
}
if (_parent.Rocket._y < -1300) {
stopAllSounds();
_root.gotoFrame("ENDMOVIE_BAD");
}
}
Symbol 957 MovieClip Frame 24
_root.stopOneyMusic();
_root.egoMusic = true;
_root.egoTimer = 0;
_root.minuteTime = 1;
_root.secondTime = 55;
_root.EGOMUSIC.gotoAndPlay(2);
Symbol 965 MovieClip Frame 1
gotoAndStop(_root.CHAPTER);
Symbol 972 MovieClip Frame 1
if (_root.editorMode == true) {
gotoAndStop ("EDITOR");
}
Instance of Symbol 37 MovieClip in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.gravity = 0.3;
if (((_root.CHAPTER == 1) && (this.hitTest(_parent._parent.MAN))) && (_root.numPlayers > 1)) {
_root.gotoFrame("CHAPTER1COMPLETE");
} else if (((_root.CHAPTER == 2) && (!this.hitTest(_parent._parent.MAN))) && (_root.numPlayers > 2)) {
_root.gotoFrame("CHAPTER2COMPLETE");
}
}
Instance of Symbol 969 MovieClip in Symbol 972 MovieClip Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.MAN)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
}
}
Symbol 973 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;
return(true);
}
return(false);
}
}
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);
_root[type] = true;
}
function onEnterFrame() {
_root.egoTimer++;
setSPosTime++;
if (setSPosTime == 15) {
_root.sPos = {x:MAN._x, y:MAN._y};
_root.sPos.rotation = MAN._rotation;
_root.sPos.shifted = inversion;
startSPos = _root.sPos;
if (_root.numPlayers > 1) {
PLAYER1._x = _root.sPos.x;
PLAYER1._y = _root.sPos.y;
PLAYER1._rotation = MAN._rotation;
PLAYER1._yscale = MAN._yscale;
}
if (_root.numPlayers > 2) {
PLAYER2._x = _root.sPos.x;
PLAYER2._y = _root.sPos.y;
PLAYER2._rotation = MAN._rotation;
PLAYER2._yscale = MAN._yscale;
}
}
if (_root.noteFreeze == true) {
} else if (_root.promptFreeze == false) {
controlKeyPressUp();
if ((_root.editorMode == false) && (_root.egoMusic != true)) {
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.editorMode == true) {
if (Key.isDown(81)) {
_root.gotoFrame("EDITOR");
}
}
if (_root.egoMusic == true) {
if (Key.isDown(81)) {
_root.gotoFrame("STORY");
}
}
_root.playTime++;
if (Key.isDown(82)) {
spikeMan();
}
updateSplat();
EOL();
gameActive = false;
if (doorFreeze == false) {
jumpActive++;
}
doorManagement();
if (gamePaused == false) {
if ((doorFreeze == false) && (_xscale < 101)) {
if (_root.egoMusic != true) {
checkNonePlayers();
}
}
_root.activePlayer = activePlayer;
if (((((dead != true) && ((_root.instantSwitch > 0) || (Key.isDown(17)))) && (playerSwitchLock != true)) && (jumpActive < jumpBuffer)) && (jumpSwitch == false)) {
playerSwitchLock = true;
_root.sPos = {x:MAN._x, y:MAN._y};
_root.sPos.rotation = MAN._rotation;
_root.sPos.shifted = inversion;
PLAYER0._visible = true;
PLAYER1._visible = true;
PLAYER2._visible = true;
this["PLAYER" + activePlayer]._x = MAN._x;
this["PLAYER" + activePlayer]._y = MAN._y;
this["PLAYER" + activePlayer]._rotation = MAN._rotation;
if (MAN.sprite._xscale > 0) {
this["PLAYER" + activePlayer]._xscale = 100;
} else {
this["PLAYER" + activePlayer]._xscale = -100;
}
this["PLAYER" + activePlayer]._yscale = MAN._yscale;
this["PLAYER" + activePlayer].sPos = _root.sPos;
if (_root.instantSwitch > 0) {
activePlayer = _root.instantSwitch;
} else {
activePlayer++;
if (activePlayer == _root.numPlayers) {
activePlayer = 0;
}
}
if (this["PLAYER" + activePlayer].sPos == undefined) {
if (_root.instantSwitch > 0) {
this["PLAYER" + activePlayer].sPos = startSPos;
this["PLAYER" + activePlayer].sPos.x = MAN._x;
this["PLAYER" + activePlayer].sPos.y = MAN._y;
} else {
this["PLAYER" + activePlayer].sPos = startSPos;
}
}
_root.sPos = this["PLAYER" + activePlayer].sPos;
SHIFT4SWITCH = true;
} else if (!Key.isDown(17)) {
playerSwitchLock = false;
}
_root.instantSwitch = 0;
if (SHIFT4SWITCH == true) {
MAN._visible = false;
if (inversion != _root.sPos.shifted) {
_root.autoShift = true;
flipFreeze = true;
} else {
_root.autoShift = false;
}
if (inversion == _root.sPos.shifted) {
MAN._x = _root.sPos.x;
MAN._y = _root.sPos.y;
this["PLAYER" + activePlayer]._x = -1000;
if (MAN._visible == false) {
ITEMS.GRAVTEMP.removeMovieClip();
ITEMS.attachMovie("GravityTemp", "GRAVTEMP", ITEMS.getNextHighestDepth());
ITEMS.GRAVTEMP._x = MAN._x - ITEMS._x;
ITEMS.GRAVTEMP._y = MAN._y - ITEMS._y;
if (_root.sPos.shifted == 1) {
ITEMS.GRAVTEMP._rotation = _root.sPos.rotation + 180;
} else {
ITEMS.GRAVTEMP._rotation = _root.sPos.rotation;
}
ITEMS.GRAVTEMP._alpha = 0;
}
this["PLAYER" + activePlayer]._visible = false;
MAN._visible = true;
SHIFT4SWITCH = false;
}
}
if (doorFreeze == true) {
if (jumpActive < 4) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (flipFreeze == true) {
_root._xscale = _root._xscale + ((100 - _root._xscale) / 5);
_root._yscale = _root._yscale + ((100 - _root._yscale) / 5);
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.sprite, 0, 0, 0, 100);
} else if ((MAN._yscale == -20) || (invertSpeed > 20)) {
setTintObject(MAN.sprite, 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;
initRotation = false;
}
_rotation = currentRotation;
} else if ((levelRotateFreeze == false) && (flipFreeze == false)) {
if (floating == true) {
} else {
gameActive = true;
manageDoorActivation();
shiftActive = 1;
jump();
ySpeed = ySpeed + _root.gravity;
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);
}
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(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);
}
MAN._x = Math.round(MAN._x);
MAN._y = Math.round(MAN._y);
shift();
spriteManagement();
}
}
}
cameraMan(camElast);
if (camElast < 4) {
camElast = camElast + 0.1;
}
}
}
if (MAN._yscale > 0) {
setTintObject(this["PLAYER" + activePlayer], 0, 0, 0, 100);
} else {
setTintObject(this["PLAYER" + activePlayer], 255, 255, 255, 100);
}
MAN.sprite.SPRITE.gotoAndStop(activePlayer + 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) {
_root.gateArray = save_gateArray;
_root.keyArray = save_keyArray;
_root.mapArray = save_mapArray;
_root.itemArray = save_itemArray;
_root.noteArray = save_noteArray;
dead = true;
_root.numPlayers = numPlayerStore;
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 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;
if (blockArray[_local2].BBC == true) {
}
_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)) {
_root.autoShift = false;
shiftSwitch = true;
var _local2 = true;
if ((((ySpeed == 1) && (flipFreeze != true)) && (levelRotateFreeze == false)) && (shiftActive >= 1)) {
rotatedXY(-10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
if (SHIFT4SWITCH != 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) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
if (SHIFT4SWITCH != 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) {
var _local2 = 0;
while (_local2 < doorArray.length) {
if (doorArray[_local2].BGColour == 2) {
addBlackSpace(doorArray[_local2]._x, doorArray[_local2]._y);
}
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].spinTime--;
}
_local2++;
}
}
}
function doorManagement() {
doorFreeze = false;
if (doorShakeTimer > 0) {
doorFreeze = true;
doorShakeTimer = doorShakeTimer - 4;
_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 + 18;
doorArray[_local2].spinTime = doorArray[_local2].spinTime - 4;
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) {
if (ITEMS["DOOR" + _local2]._visible == true) {
checkDoor(ITEMS["DOOR" + _local2]);
}
_local2++;
}
}
}
function checkDoor(doorID) {
manRot = MAN._rotation;
var _local3;
if (MAN._yscale > 0) {
if ((doorID._rotation == 180) && (MAN._rotation == -180)) {
_local3 = 360;
} else {
_local3 = 0;
}
} else if (doorID._rotation < 0) {
_local3 = -180;
} else {
_local3 = 180;
}
if ((((jumpActive < 2) && (MAN.doorHit.hitTest(doorID))) && ((MAN._rotation + _local3) == doorID._rotation)) && (KeyPressUp == true)) {
_root.startPoint = doorRef_Dest[doorID.linkage];
_root.mapStart = doorRef_Room[_root.startPoint];
if (doorID.linkage == 57) {
_root.gotoFrame("ENDMOVIE");
}
_root.endPoint = doorID;
eolSwitch = true;
}
}
function controlKeyPressUp() {
upTimer--;
if ((Key.isDown(38) && (upSwitch == false)) && (jumpActive < jumpBuffer)) {
if (_root.keyUpLock == false) {
if (_root.editorMode == false) {
if (upTimer < 0) {
KeyPressUp = true;
}
}
}
upSwitch = true;
} else if ((Key.isDown(38) == false) && (jumpActive < jumpBuffer)) {
upSwitch = false;
} else {
KeyPressUp = false;
}
}
function checkNonePlayers() {
if (dead != true) {
var _local3 = 0;
while (_local3 < 3) {
var _local2 = this["PLAYER" + _local3];
if (eolSwitch != true) {
rotatedXY(0, -10, _local2._rotation);
rotatedXY(rotatedXYLocX + _local2._x, rotatedXYLocY + _local2._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
newSplat(_local2._x, _local2._y);
_local2._alpha = 0;
_local2._visible = false;
_local2._xscale = 0;
dead = true;
}
} else {
_local2._alpha = _local2._alpha - 10;
}
_local3++;
}
}
}
function newSplat(xPos, yPos, targMan) {
if (targMan == undefined) {
targMan = MAN;
}
if (targMan._visible == true) {
attachMovie("BloodContainer", "BC", 12);
BC._rotation = targMan._rotation;
BC._yscale = -targMan._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)) {
if (_root.egoMusic == true) {
_root.mapStart = 24;
_root.startPoint = 52;
}
_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;
if (_root.editorMode == true) {
LevelCode = _root.editorLevel;
}
var _local5 = 0;
while (_local5 < 144) {
if (Number(LevelCode[_local2]) == 1) {
var _local3 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
_local3.BBC = true;
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);
_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]) == 10) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_HoldSwitch", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
blockArray.push(_local3);
} else if (Number(LevelCode[_local2]) == 11) {
var _local3 = ITEMS.attachMovie("HoldButton", "B" + blockCount, blockCount++);
_local3.linkage = Number(LevelCode[_local2 + 3]);
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
_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) || (Number(LevelCode[_local2]) == 8)) {
var _local3 = ITEMS.attachMovie("LEVEL_Block_Exit", "DOOR" + doorCount, blockCount++);
_local3.BGColour = Number(LevelCode[_local2 + 4]);
_local3.linkage = Number(LevelCode[_local2 + 3]);
var _local4 = doorRef_Dest[_local3.linkage];
_local4 = doorRef_Room[_local4];
_local3.doorNum = _local4;
doorCount++;
_local3._rotation = Number(LevelCode[_local2 + 1]) * 90;
if (Number(LevelCode[_local2]) == 8) {
_root.editorStart = _local3;
}
blockArray.push(_local3);
} else {
blockArray.push(null);
}
_local2 = _local2 + 5;
_local5++;
}
}
function placeMan() {
if (_root.editorMode == true) {
_root.levelNo = 0;
_root.genNote = "";
_root.mapStart = undefined;
_root.playTime = 0;
_root.startPoint = undefined;
_root.noteArray = new Array();
_root.gateArray = new Array();
_root.keyArray = new Array();
_root.mapArray = new Array();
_root.itemArray = new Array();
doorSel = _root.editorStart;
_root.startPoint = 0;
doorSel.linkage = _root.startPoint;
}
attachMovie("OBJECT_MAN", "MAN", 4);
if (_root.fancyPantsMan != true) {
MAN.gotoAndStop(2);
}
if (_root.startPoint != undefined) {
_root.FADER._alpha = 150;
i = 0;
while (i < doorCount) {
if (ITEMS["DOOR" + i].linkage == _root.startPoint) {
if (_root.editorMode == false) {
doorSel = ITEMS["DOOR" + i];
if ((_root.egoMusic == true) || (doorSel.linkage == 51)) {
doorSel._visible = false;
}
}
if (doorSel.BGColour == 2) {
_root.autoShift = true;
startFreeze = true;
rotateSpeed = 90;
invertSpeed = 100;
}
startX = doorSel._x;
startY = doorSel._y;
}
i++;
}
} else {
startX = 20;
startY = 200;
}
MAN._x = startX;
MAN._y = startY;
}
function cameraMan(elas) {
if (_root.cameraType != 0) {
_xscale = (_xscale + ((100 - _xscale) / scalerSpeed));
_yscale = (_yscale + ((100 - _yscale) / scalerSpeed));
_x = (_x + ((scalerPosX - _x) / scalerSpeed));
_y = (_y + ((scalerPosX - _y) / scalerSpeed));
if (scalerSpeed > 1) {
scalerSpeed--;
}
}
}
_root.keyUpLock = false;
if (Key.isDown(40)) {
}
var numPlayerStore = _root.numPlayers;
PLAYER0.gotoAndStop(1);
PLAYER1.gotoAndStop(2);
PLAYER2.gotoAndStop(3);
_root.keyArray = new Array();
var save_gateArray = _root.gateArray;
var save_keyArray = _root.keyArray;
var save_mapArray = _root.mapArray;
var save_itemArray = _root.itemArray;
var save_noteArray = _root.noteArray;
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);
PLAYER0.swapDepths(100);
PLAYER1.swapDepths(101);
PLAYER2.swapDepths(102);
MAN.swapDepths(110);
WALLS.swapDepths(600);
SCRIPTLAYER.swapDepths(103);
createEmptyMovieClip("BLOOD", 5);
WALLS.fixedWalls.swapDepths(999);
var colStart = false;
var LevelCode;
var sp_room1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0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, 0, 0, 2, 1, 2, 2, 0, 0, 0, 0, 0, 3, 3, 3, 3, 1, 2, 0, 4, 1, 2, 1, 2, 4, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 4, 2, 1, 4, 2, 2, 2, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 4, 4, 1, 3, 3, 1, 3, 1, 2, 0, 1, 3, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 4, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 5, 5, 1, 0, 2, 4, 1, 2, 4, 2, 1, 3, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 9, 2, 1, 57, 2);
var editorTest = sp_room18;
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, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 12, 12, 13, 13, 14, 14, 11, 15, 10, 16, 17, 17, 18, 18, 18, 19, 19, 20, 20, 20, 21, 22, 23, 23, 24, 24, 25, 25, 26, 26);
var doorRef_Dest = new Array(null, 2, 1, 6, 10, 20, 3, 8, 7, 12, 4, 19, 9, 14, 13, 18, 17, 16, 15, 11, 5, 24, 38, 33, 21, 27, 28, 25, 26, 30, 29, 32, 31, 23, 35, 34, 37, 36, 22, 40, 39, 43, 45, 41, 0, 42, 49, 48, 47, 46, 0, 52, 51, 54, 53, 56, 55, 666);
if (_root.startPoint != undefined) {
if (_root.musicStart == undefined) {
_root.musicStart = true;
if (_root.itemArray[0] == true) {
if (_root.itemArray[9] == true) {
_root.setMusic("GEN");
} else {
_root.setMusic("MWC");
}
} else {
_root.setMusic("DANP");
}
}
if (_root.mapStart == undefined) {
_root.mapStart = 1;
}
SCRIPTLAYER.gotoAndStop(_root.mapStart);
SCRIPTLAYER_B.gotoAndStop(_root.mapStart);
var roomLoad = ("sp_room" + _root.mapStart);
LevelCode = this[roomLoad];
} else {
LevelCode = sp_room1;
SCRIPTLAYER.gotoAndStop(1);
SCRIPTLAYER_B.gotoAndStop(1);
if (_root.musicStart == undefined) {
_root.musicStart = true;
_root.setMusic("DANP");
}
}
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;
MESSAGES._x = MESSAGES._x - 240;
MESSAGES._y = MESSAGES._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 doorShakeTimer = 0;
var jumpActive = 0;
var jumpBuffer = 5;
var gamePaused = false;
var gamePauseSwitch = false;
_root.promptFreeze = false;
_root.pauseScreen._visible = false;
var ManFloat = true;
var activePlayer = 0;
var setSPosTime = 0;
camElast = 1;
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 shakeFlip = 1;
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 upSwitch = false;
var upTimer = 30;
var splatArray = new Array();
var BCounter = 0;
var splatAlpha = 100;
scaleTarg = 100;
_xscale = 100;
_yscale = 100;
_root.cameraType = 1;
var scalerX = 200;
var scalerY = 200;
var scalerPosX = _x;
var scalerPosY = _y;
var scalerSpeed = 40;
if (_root.startPoint != undefined) {
if (doorSel.BGColour == 2) {
initRotation = true;
if (doorSel._rotation == 180) {
initRotation = false;
MAN._y = MAN._y - 60;
} else {
gravityFlip(doorSel._rotation, doorSel._x, doorSel._y);
}
} else {
initRotation = false;
if (doorSel._rotation == 90) {
gravityFlip(doorSel._rotation - 180, doorSel._x, doorSel._y);
} else {
gravityFlip(doorSel._rotation + 180, doorSel._x, doorSel._y);
}
}
} else {
initRotation = false;
}
doorSetup();
_root.saveGame();
_root.setMusic("H");
Symbol 976 Button
on (release) {
_root.gotoFrame("title");
}
Symbol 978 Button
on (release) {
_root.musicSwitch = true;
_root.ONEYACTIVE = false;
_root.startOneyMusic();
}
Symbol 980 Button
on (release) {
_root.musicSwitch = false;
stopAllSounds();
}
Symbol 984 Button
on (release) {
_root.gotoFrame("BLANK");
}
Symbol 990 Button
on (release) {
_root.gotoFrame("title");
}
Symbol 992 Button
on (release) {
gotoAndStop (1);
}
Symbol 994 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 1
var num = _name;
if (num.length > 2) {
num = num.charAt(1) + num.charAt(2);
} else {
num = num.charAt(1);
}
num = Number(num);
stop();
Symbol 1005 MovieClip Frame 1
if (_root.CHAPTER == 1) {
if (_root.numPlayers == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.CHAPTER == 2) {
if (_root.gravityGrab == false) {
gotoAndStop (3);
} else if (_root.numPlayers == 2) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
} else if (_root.CHAPTER == 3) {
if (_root.lockCollect1 == false) {
gotoAndStop (5);
} else if (_root.lockCollect2 == false) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
} else if (_root.CHAPTER == 4) {
gotoAndStop (8);
}
Symbol 1006 MovieClip Frame 1
trace(("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;
this.M19._visible = true;
Symbol 1020 MovieClip Frame 1
function onEnterFrame() {
if (_root.forceRadar == true) {
_root.itemArray[1] = true;
_root.HUD._y = 490;
_root.HUD._alpha = 100;
}
gamePassword = "";
if (_root.itemArray[1] == true) {
gamePassword = gamePassword + "RD";
} else {
gamePassword = gamePassword + "00";
}
if (_root.gateArray[8] == true) {
gamePassword = gamePassword + "GH";
} else {
gamePassword = gamePassword + "AB";
}
if (_root.gateArray[10] == true) {
gamePassword = gamePassword + "RB";
} else {
gamePassword = gamePassword + "CD";
}
if (_root.gateArray[17] == true) {
gamePassword = gamePassword + "MM";
} else {
gamePassword = gamePassword + "EF";
}
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;
}
if (_root.noteArray[_root.mapStart] == undefined) {
_root.noteArray[_root.mapStart] = " ";
}
noteTaker.roomNotes.text = _root.noteArray[_root.mapStart];
noteTaker.genNotes.text = _root.genNote;
Symbol 1035 Button
on (release) {
_root.ONEYACTIVE = false;
_root.startOneyMusic();
_root.CHAPTER = 4;
_root.numPlayers = 1;
levelNo = 20;
_root.genNote = "";
_root.mapStart = 23;
var playTime = 0;
startPoint = 50;
_root.noteArray = new Array();
_root.gateArray = new Array();
_root.keyArray = new Array();
_root.mapArray = new Array();
_root.itemArray = new Array();
gotoFrame("GAME");
}
Symbol 1040 Button
on (release) {
_root.CHAPSAVE[5] = true;
_root.saveGame();
gotoFrame("title");
}
Symbol 1044 Button
on (release) {
_root.scoreSystem(userName.text, score, "STORY");
_root.gameActive = undefined;
_root.updateSave();
setMusic("GEN");
gotoFrame("title");
}
Symbol 1060 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 4);
}
Symbol 1061 MovieClip Frame 1
function onEnterFrame() {
_x = (_x + 0.2);
}
Symbol 1062 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);
}
_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;
}
_rotation = (_rotation + 2);
}
magnet = 1500;
shrinkSwitch = false;
Symbol 1063 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;
}
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 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 45
stop();
Symbol 1099 MovieClip Frame 1
function onEnterFrame() {
if (Key.isDown(32)) {
_root.gotoAndStop("STARTMOVIE");
}
}
Symbol 1099 MovieClip Frame 40
MAN.gotoAndStop(2);
MAN.sprite.gotoAndStop("RUN");
Symbol 1099 MovieClip Frame 81
MAN.sprite.gotoAndStop("STAND");
Symbol 1099 MovieClip Frame 752
BG.play();
Symbol 1099 MovieClip Frame 1552
stopAllSounds();
_root.gotoFrame("STARTMOVIE");
Symbol 1100 Button
on (release) {
_root.gotoFrame("END_GOOD");
}
Symbol 1164 MovieClip Frame 1101
_root.startOneyMusic();
Symbol 1164 MovieClip Frame 1221
_root.shakeScreen(20, 120);
Symbol 1164 MovieClip Frame 1556
_root.levelNo = 0;
_root.genNote = "";
_root.mapStart = undefined;
_root.playTime = 0;
_root.startPoint = undefined;
_root.noteArray = new Array();
_root.gateArray = new Array();
_root.keyArray = new Array();
_root.mapArray = new Array();
_root.itemArray = new Array();
_root.CHAPTER = 1;
_root.gotoFrame("GAME");
Symbol 1165 Button
on (release) {
stopAllSounds();
_root.gotoFrame("STORY");
}
Symbol 1166 MovieClip Frame 58
_root.FADER._alpha = 100;
CHAP.base.gotoAndStop(2);
_root.shakeScreen(20, 10);
Symbol 1166 MovieClip Frame 151
stopAllSounds();
_root.gotoFrame("CHAPTERCOMPLETE");
Symbol 1172 MovieClip Frame 54
gotoAndPlay (44);
Symbol 1207 MovieClip Frame 150
stop();
Symbol 1210 MovieClip Frame 150
stop();
Symbol 1213 MovieClip Frame 150
stop();
Symbol 1216 MovieClip Frame 150
stop();
Symbol 1219 MovieClip Frame 150
stop();
Symbol 1222 MovieClip Frame 147
stop();
Symbol 1223 MovieClip Frame 1
stop();
Instance of Symbol 37 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.egoTimer++;
if (_root.egoTimer == 3515) {
_parent.gotoAndPlay(2);
}
}
Symbol 1223 MovieClip Frame 2479
_root.gotoFrame("END_GOOD");
Symbol 1223 MovieClip Frame 3534
_root.gotoFrame("END_GOOD");
Symbol 1224 Button
on (release) {
stopAllSounds();
_root.gotoFrame("END_GOOD");
}
Symbol 1228 MovieClip Frame 77
stop();
Symbol 1231 MovieClip Frame 50
stop();
Symbol 1234 MovieClip Frame 36
stop();
Symbol 1259 MovieClip Frame 35
stop();
Symbol 1260 MovieClip Frame 65
stop();
Symbol 1262 MovieClip Frame 15
stop();
Symbol 1263 MovieClip Frame 1172
_root.gotoFrame("END_BAD");
Symbol 1264 Button
on (release) {
stopAllSounds();
_root.gotoFrame("END_BAD");
}
Symbol 1265 Button
on (release) {
gotoFrame("STORY");
}
Symbol 1275 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 1274 MovieClip "spikeWall" in Symbol 1275 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 1276 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) {
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 = "AAB010ZC001211210Z2012210Z10122AAAC801511211212112311224211212122AAAC10Z12112121122012210Z42122AA0033Z10Z10Z12112121123112210Z12112AA00332Z32Z32Z21121211220122Z2210ZAAB0132Z32Z211212112311221122110ZAAB0132Z32Z211210Z2012210Z10ZAA00332Z32Z32Z211210Z31122Z2210ZAAB0132Z32Z211210Z00Z1012212122AAB0132Z32Z211210Z0011210Z10ZA040ZC00332Z32119015110Z10Z1212110Z10ZAAB0132Z321100Z5212210Z10Z50112";
var az_level_5_Author = "Jason Marcus";
var az_level_2 = "80Z10ZC0053311AB00Z00Z00Z00Z103115Z210Z00312533121031212Z1031210312103125031200Z5142152ZAA0032312B0Z00Z1231200Z00Z9245212Z12Z12ZC0012Z5242212122121224211200Z0243112121221216212162Z72Z62442B0Z00Z61431014316243112121221216212162Z62Z62442B0Z00Z614310143101431121212212162121721216212162442B0Z03121614316243101431121212212162121621217244162442B0Z32421614316143171431121211212122421214422344262442B0Z333216143161431614316045260452AB60452B0Z03121614316143123421604526045250452534527045Z421504221142Z42Z421514221142260452604526045210422104221042200Z00Z00Z00Z00Z42421";
var az_level_2_Author = "Stig Goldenbulllet";
var az_level_3 = "80Z7003140021AAAAC020Z23Z23Z23Z23Z1201123Z23AAC0020Z10Z10Z10Z10Z533217032110Z22AA4001193011C005132163021AAAB003351131421A063021B3331AAB033411AB63021630216333163331AA0033311AB63021C006303163031AA0033211AB63021030316303163031AA0033ZAB63021730316302163021AA005100123011230112301163021C00630116331163011AA00130Z30Z3011630217301163011630216332Z00163011C006301143011A063011630Z2011633214032Z0016302Z00152011";
var az_level_3_Author = "Racoonieboy";
var az_level_4 = "4012212512501321351222512915118152Z521AA001251212512135121351222512AC511AB405Z2512125124053213512131516001160011AAB012512125121351230332225125315160011AAB01251212512125123013233512605116051131511AA001251212512023120231202512AAAC505Z251212512025120231202512AAAB001251212512125121251233521605116051131521AAC3121125121251232312431121C21C21C21C243252132415301200122031210312103121C0021152211523124133451311513324130152A00312103121AB030014303140041400217321103121C005312103121AAAAC0";
var az_level_4_Author = "Spanone";
var az_level_6 = "901226012100Z00Z00Z00Z00Z00Z00Z02Z3313170Z121222212200Z00Z00Z00Z00Z00Z00Z02Z62Z02Z22Z021220212200Z00Z00Z00Z00Z00Z02Z6211200Z22Z00Z0012200Z00Z00Z00Z00Z00Z50Z00Z00Z22Z00Z0012200Z00Z00Z00Z00Z10Z10Z30Z00Z22Z00Z1212200Z00Z00Z00Z10Z00Z00Z00Z4011200Z00Z0012200Z00Z00Z00Z00Z00Z10Z00Z00Z03Z00Z5012200Z00Z00Z00Z00Z1012210Z00Z00Z00Z00Z0012200Z00Z00Z00Z201221012210Z00Z4012200Z00Z001221012200Z00Z00Z00Z00Z10Z00Z03Z00Z00Z00Z0012200Z00Z00Z00Z00Z00Z10Z4013100Z00Z00Z00Z7012200Z00Z00Z03Z03Z80Z30122";
var az_level_6_Author = "Jak Pineapple";
var az_level_5 = "20Z10Z10Z10Z10Z10Z10Z10Z10Z10Z8C11C020Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z20011521121011212011220115201140011AAB020011210ZC01C0100Z00Z00Z00Z00Z00Z001102C22001AAAAC05C102C3Z1220015200140021AB02C302221AA02C01C01C0301321C01C0200Z02221AC001C0220011C01C060011600Z2C2C01C01C21C01C01C022001C001C060011600ZA1C033222A02C022001C00100Z0011600ZAAA005003222011C11C0010011600ZC01C01C01C01C01C0400329200160011AAAAC07201150011";
var az_level_5_Author = "Lord Ceroth";
var az_level_1 = "10Z10Z10Z10Z10Z10ZC0010Z52112C0080Z9114210Z00Z10Z10Z10Z00ZA010ZA03312200Z50Z10Z10Z10Z10Z10ZB0Z10ZC0010Z00Z10Z10Z10Z00Z10Z10ZAA0010Z10Z10ZAB30312AA0010Z10Z10Z10ZB0Z00Z52ZC0012Z312315123110Z3322210ZACZ10Z10Z00Z10Z10Z10Z10Z10Z10ZACZ0212110Z10Z10Z0313100Z10Z00Z50112B0ZB0Z4012110Z10Z1313200Z4313100Z10Z10Z10Z4011210Z10Z10Z10Z03132131325113200Z00Z10Z00Z00Z10Z10Z00Z10Z1313Z112031310013100Z00Z00Z00Z10Z00Z50Z0313210Z131320Z203132";
var az_level_1_Author = "Bandicoot Power";
var gg_level_1 = "10131C0010121AAC0Z00Z00Z00Z00Z1013100131101317012100121C008015110Z10Z10Z10Z10Z10131C0010121AA0070Z00Z00Z50Z10Z10131AAAZ10Z10Z10Z1012110Z1013122ZAAA1210012100121001212012110Z52Z00131B0131AC1210012100121001212012110ZAB60Z60Z60Z10Z10Z10Z10Z10Z1013122ZAAB01012110Z10Z10Z10Z1013100ZAAA1210012100121001212012110131AB6012160121601211011210Z10Z10Z10Z10131AAC01219011200Z10Z10Z10Z10Z10131101311013110131101311013110Z0011210Z10Z10Z10Z";
var gg_level_1_Author = "Jeff";
var gg_level_3 = "5Z210Z10Z10Z10Z10Z10Z10Z10Z10Z10Z5011210Z52Z702216022170231602317024160241702516025100Z10Z10ZC005225210Z10Z10Z10Z10Z10Z5125200Z10Z10ZC0010Z22251A05125100Z5025110Z00Z10Z10ZC0010ZC0010Z10Z10Z5025200Z5025200Z10Z10ZC0010ZC001225152Z90Z10Z00Z10Z00Z10Z10ZC0010ZC0052252C0050Z10Z2125210Z00Z10Z10Z3Z110ZC0010Z10Z10Z2225200Z0125200Z10Z10ZC0010ZB0ZACZ2325210Z5025110Z10ZC005325210Z10Z10Z10Z10Z10Z5025200Z10Z52112C0040ZAB00Z0025200252002520025210Z82Z5211210Z10Z10Z10Z10Z10Z10Z10Z10Z53112";
var gg_level_3_Author = "Stig GoldenBullet";
var gg_level_2 = "0Z10Z10Z10Z10Z100211602Z02Z02Z0Z10Z10Z0Z10Z10Z10Z180211002116021192212Y0Z10Z102120Z10Z10Z10Z10Z100211602Z02Y110Z10Z10Z0Z10Z100Z0Z10Z10Z100Z20X0Z10Z10Z0Z10Z10Z10Z10Z10Z100Z20X0Z10Z10Z00Z00Z0Z10Z10Z10XXY10Z5021200Z00ZA02011210112XXZ0Z10Z00Z00ZA020Z10XXY0Z10Z00Z00ZACZ00XZ11021210Z102121021200Z00Z00ZC004Z1B221220212Y0Z10Z10Z00Z00Z00Z00Z00Z001120221220212Y0Z1021210Z00Z00Z00Z00Z00Z00211302Z021252212X170212";
var gg_level_2_Author = "Spanone";
var gg_level_4 = "51121AAAC00Z812Y20Z250221A05Z222ZAB00ZC00502120Z240221A012Z22ZAAB0Z120Z2AB12Z22ZAAB033ZC00112Z2Z12Z12Z22ZAAB001212332Z1211021120211212Z22ZAAB013ZC00112110211212Z12Z22ZAAB013ZC0041212C001311212Z22ZA023212301223022213212C0011211A012Z22ZC002021230122212210322Z212C0011211A012Z22ZC003012211212412110022Z212C001121193112C0012Z22ZC001012211212032120022Z212C001121153211C005311222Z531211012211212232212322Z212C0011211";
var gg_level_4_Author = "Spanone";
var gg_level_5 = "10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z40ZB0Z00Z50ZC008015110Z10Z10Z10Z10Z02311B0Z00ZB0Z10Z10Z10Z10Z10Z10Z52Z023110231100112C0020Z10Z10Z10Z10Z10Z10Z101121011200Z0011200Z10Z10Z10Z10Z10Z10Z10Z101121011200Z00Z20Z10Z10Z10Z10Z10Z10Z10Z101121011200Z0231210Z10Z10Z10Z10Z10Z10Z10Z1011230311C0020Z10Z10Z10Z10Z10Z10Z10Z10Z1011202312C0010Z10Z10Z10Z10Z10Z10Z10Z10Z00112C0020Z10Z10Z10Z10Z10Z10Z10Z10Z10ZA010Z10Z10Z10Z10Z10Z10Z10Z10Z10Z90Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z";
var gg_level_5_Author = "Ronald";
var gg_level_6 = "0Z20Z210Z10Z10Z0Z20Z20Z210Z10Z10Z10Z0Z2BZ2C0010Z0Z20Z2BZ20Z210Z10Z0Z210Z0Z20Z2BZ20Z210Z0Z20Z20Z220Z0Z210Z10Z0Z2C0010Z10Z10Z10Z0Z20Z2Z110Z2C0020Z10Z10Z22Z0Z2C0020XX0Z2BZ20Z240Z0Z20Z2BZ20Z2X122212C0020Z12Z12Z22Z0Z202Z02Z0Z20Z220Z0Z2C00512110Z2BZ20Z2BZ20Z2C00Z1152211BZ20Z2BZ20Z2C0020XX222110Z2202119121210211222110Z2BZ20Z2Z12Z12BZ20Z20Z20Z20Z20Z2BZ20Z20Z28Z122211C00202Z02Z0211222110Z250211332110Z20Z2Z12";
var gg_level_6_Author = "Variecs";
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) {
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 1280 Button
on (release) {
_root.gotoFrame("title");
}
Symbol 1282 Button
on (release) {
_root.musicSwitch = true;
_root.setMusic(_root.lastSound);
}
Symbol 1289 Button
on (release) {
gotoAndStop (1);
}
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1361 MovieClip Frame 3
stop();
Symbol 1361 MovieClip Frame 6
_visible = false;
Symbol 1366 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 1305 MovieClip in Symbol 1366 MovieClip Frame 1
on (release) {
_root.gotoAndStop(_root.backTo);
}
Symbol 1372 Button
on (release) {
_root.gameActive = undefined;
_root.updateSave();
setMusic("GEN");
gotoFrame("title");
}