Combined Code
// unknown tag 88 length 107
// unknown tag 88 length 64
frame 1 {
function gotoMySite() {
getURL('http://www.nutcasenightmare.com', '_blank');
}
function deaderClick() {}
function deadClick() {
getURL('http://twitter.com/home?status=Don't worry, you didn't miss a THING last decade. http://bit.ly/4s0GAE', '_blank');
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.builtInItems.quality = true;
var copyrightNotice = new ContextMenuItem('Tweet this game!', deadClick);
var mySiteLink = new ContextMenuItem('Visit Site', gotoMySite);
var logo = new ContextMenuItem('REPLAYING :the game:', deaderClick);
myMenu.customItems.push(logo, mySiteLink, copyrightNotice);
mySiteLink.separatorBefore = true;
_root.menu = myMenu;
}
frame 1 {
function blankSlate(i) {
thegame.data.gameArray[i].icon = ['0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16), 0, 0, 0, 100];
thegame.data.gameArray[i].word = ['UNTITLED', 'substandard subtitle', 'I HAVE NO NAME', 'I DON\'T NEED', 'YOUR LABELS', 'you have to one-up this one-liner'];
thegame.data.gameArray[i].char = [1, 1, 1, 1, 1];
thegame.data.gameArray[i].info = ['anonymous', 'no comment.'];
}
_global.levelArray = new Array('REPLAY', 'ART', 'APOCALYPSE', 'CHRISTIANITY', 'GUNS', 'PERVERTS', 'DIGITAL', 'STOCK', 'CALCULUS', 'MINDBODY', 'OPEN SOURCE', 'MACROECON', 'EDUCATION', 'IRAQ', 'UTILITARIANISM', 'FREUD', 'NP-COMPLETE', 'HAMLET', 'PALIN', 'INTELLIGENT DESIGN', 'CHEMISTRY', 'CANADA', 'EPICROLL', 'CULTURAL', 'LOVE', 'ATHEISM', 'AIG', 'CULT', 'NARCISSISM', 'THE END');
_global.ORIGINAL_ARRAY = _global.levelArray;
thegame = SharedObject.getLocal('thegame_profile');
alreadyExists = thegame.data.existence;
if (!alreadyExists) {
thegame.data.existence = true;
}
if (!alreadyExists) {
thegame.data.playedThrough = new Array();
thegame.data.playedThrough.push('REPLAY');
}
_global.fuck = function (string) {
number = -1;
i = 0;
while (i < _global.playedThrough.length) {
if (_global.playedThrough[i] == string) {
return i;
}
++i;
}
return number;
};
_global.hasItBeenPlayed = function (string) {
tmpHIBPvalue = fuck(string);
if (tmpHIBPvalue == -1) {
return false;
} else {
return true;
}
};
_global.playedThrough = thegame.data.playedThrough;
thegame.data.flush();
if (!alreadyExists) {
thegame.data.playlistArray = new Array(3);
i = 0;
while (i < 3) {
thegame.data.playlistArray[i] = new Object();
++i;
}
thegame.data.playlistArray[0].name = 'The Best of The Game';
thegame.data.playlistArray[1].name = 'The Sound of Violence';
thegame.data.playlistArray[2].name = 'Political Tickles';
thegame.data.playlistArray[0].series = new Array('APOCALYPSE', 'GUNS', 'MACROECON', 'STOCK', 'UTILITARIANISM', 'NP-COMPLETE', 'EPICROLL', 'THE END');
thegame.data.playlistArray[1].series = new Array('ART', 'APOCALYPSE', 'GUNS', 'UTILITARIANISM', 'AFGHANISTAN');
thegame.data.playlistArray[2].series = new Array('GUNS', 'MACROECON', 'IRAQ', 'AFGHANISTAN', 'PALIN', 'AIG');
}
_global.playlistArray = thegame.data.playlistArray;
thegame.data.flush();
if (!alreadyExists) {
thegame.data.gameArray = new Array();
i = 0;
while (i < 3) {
thegame.data.gameArray[i] = new Object();
thegame.data.gameArray[i].icon = new Array(5);
thegame.data.gameArray[i].word = new Array(6);
thegame.data.gameArray[i].char = new Array(5);
thegame.data.gameArray[i].info = new Array(2);
++i;
}
thegame.data.gameArray[0].icon = ['0xE6DA77', 0, 0, 30, 200];
thegame.data.gameArray[0].word = ['NEWGROUNDS', 'yayomg', 'FIRST', 'FLASH PORTAL', '', 'in both chronology and awesomeness.'];
thegame.data.gameArray[0].char = [76, 1, 1, 105, 106];
thegame.data.gameArray[0].info = ['nutcasenightmare', 'really nice guys, ya know?'];
blankSlate(1);
blankSlate(2);
}
_global.gameArray = thegame.data.gameArray;
thegame.data.flush();
if (!alreadyExists) {
thegame.data.unlockables = new Object();
thegame.data.unlockables.end = false;
thegame.data.unlockables.cake = false;
thegame.data.unlockables.no = false;
thegame.data.unlockables.blood = false;
thegame.data.unlockables.all = false;
thegame.data.unlockables.tweet = false;
thegame.data.unlockables.mona = false;
}
_global.unlockables = thegame.data.unlockables;
thegame.data.flush();
if (!alreadyExists) {
thegame.data.highscores = new Object();
thegame.data.highscores.aig = 0;
thegame.data.highscores.stock = 0;
thegame.data.highscores.education = 0;
thegame.data.highscores.utilitarianism = 0;
thegame.data.highscores.macroecon = 0;
}
_global.highscores = thegame.data.highscores;
thegame.data.flush();
if (!alreadyExists) {
thegame.data.censorOff = false;
}
_global.censorOff = thegame.data.censorOff;
thegame.data.flush();
}
movieClip 25 {
frame 4 {
stop();
}
}
movieClip 3320 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id;
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.y = Stage.height / 2;
_root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format);
_root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = v3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
_root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.length;
_root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = 'ERROR!';
_root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format);
_root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = v2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
frame 2 {
NewgroundsAPI.connectMovie(10362);
stop();
}
movieClip 31 {
}
movieClip 34 {
frame 40 {
_parent.playnow._visible = true;
}
}
movieClip 41 {
frame 8 {
stop();
}
}
movieClip 47 {
frame 8 {
stop();
}
}
movieClip 48 {
instance of movieClip 41 {
onClipEvent (load) {
_rotation = random(360);
}
}
instance of movieClip 47 {
onClipEvent (load) {
_rotation = random(360);
}
}
}
movieClip 49 {
instance blood of movieClip 48 {
onClipEvent (load) {
if (_name != 'blood') {
_visible = true;
gotoAndStop(random(2) + 1);
_rotation = random(360);
_yscale = scale * 2;
_xscale = scale * 2;
} else {
_visible = false;
gotoAndStop(3);
}
}
}
}
movieClip 51 {
}
movieClip 87 {
}
movieClip 91 {
instance of movieClip 87 {
onClipEvent (load) {
_parent.gotoAndStop(random(4) + 1);
if (_global.censorsOff) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
onClipEvent (enterFrame) {
if (_global.censorsOff) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
}
}
movieClip 95 {
}
movieClip 96 {
frame 1 {
stop();
}
}
movieClip 110 {
}
movieClip 111 {
}
button 116 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 117 {
}
movieClip 118 {
frame 1 {
function startAd(ngad_url) {
trace('opening ' + ngad_url);
System.security.allowDomain('70.87.128.99');
System.security.allowInsecureDomain('70.87.128.99');
System.security.allowDomain('ads.shizmoo.com');
System.security.allowInsecureDomain('ads.shizmoo.com');
System.security.allowDomain('www.cpmstar.com');
System.security.allowInsecureDomain('www.cpmstar.com');
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!');
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), 'GET');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
button 125 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 133 {
}
movieClip 138 {
}
movieClip 173 {
}
movieClip 199 {
}
movieClip 203 {
}
movieClip 276 {
instance of movieClip 138 {
onClipEvent (load) {
if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) {
_xscale = _xscale * -1;
}
}
}
}
movieClip 277 {
instance of movieClip 276 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 8 {
_parent._parent.soft_step.start(0, 0);
}
frame 11 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 16 {
_parent._parent.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 278 {
frame 1 {
stop();
}
}
movieClip 279 {
instance player of movieClip 278 {
onClipEvent (load) {
function hittyTest() {
if (_y > 356) {
it_hit_it = true;
} else {
it_hit_it = false;
}
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.6 + random(40) / 100;
grav = 2;
this.standing_frame = random(113) + 1;
walkDirection = random(2);
if (_name != 'player' && _visible) {
initscale = _xscale;
_xscale = Math.abs(initscale) * 1.4;
_yscale = initscale * 0.6;
_x = random(640);
}
}
onClipEvent (enterFrame) {
if (_name != 'player' && _visible) {
_xscale = Math.abs(_xscale);
if (Math.abs(_xscale - initscale) > 0.01) {
_xscale = initscale + (initscale - Math.abs(_xscale)) * 0.9;
} else {
_xscale = initscale;
}
if (Math.abs(_yscale - initscale) > 0.01) {
_yscale = initscale + (initscale - _yscale) * 0.9;
} else {
_yscale = initscale;
}
}
}
onClipEvent (enterFrame) {
if (_name != 'player' && _visible) {
if (!fall_off_edge) {
hittyTest();
up_ground();
hittyTest();
}
}
}
onClipEvent (enterFrame) {
if (_name != 'player' && _visible) {
if (walkDirection == 0) {
left_key_pressed = true;
right_key_pressed = false;
} else {
right_key_pressed = true;
left_key_pressed = false;
}
if (_x < -100) {
_x = 740;
}
if (_x > 740) {
_x = -100;
}
}
}
onClipEvent (enterFrame) {
if (_name != 'player' && _visible) {
if (!fall_off_edge) {
if (left_key_pressed && right_key_pressed) {
} else {
if (left_key_pressed) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_pressed) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (press) {
if (_name != 'player' && _visible) {
_visible = false;
_parent._parent.toss.addMore(_x, _y - _height / 2 - 5, x_speed, 0, standing_frame, true, Math.abs(_xscale) / _xscale, 5);
++_parent.countRemaining;
}
}
onClipEvent (enterFrame) {
if (_name != 'player' && _visible) {
if (_parent._parent.toss.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent._parent.toss.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent._parent.toss.hitTest((getBounds(_parent)).xMax, _y, true) || _parent._parent.toss.hitTest((getBounds(_parent)).xMin, _y, true)) {
_visible = false;
_parent._parent.toss.addMore(_x, _y - _height / 2 - 5, random(20) - 10, random(10) + 20, standing_frame, false, Math.abs(_xscale) / _xscale, random(3));
++_parent.countRemaining;
}
}
}
}
}
movieClip 280 {
instance toss of movieClip 276 {
onClipEvent (load) {
if (_name != 'toss') {
gotoAndStop(frame);
_visible = true;
} else {
gotoAndStop(1);
_visible = false;
}
rotateSpeed = random(20) - 10;
if (flip < 0) {
_xscale = _xscale * -1;
}
DidIHit = function () {
iDidHit = false;
if (_y < 137.5 + 122.5 * Math.abs(_x - 320) / 130 && _y > 137.5 - 122.5 * Math.abs(_x - 320) / 130) {
if (_x > 190 && _x < 320) {
_x = 190;
x_speed = Math.abs(x_speed);
rotateSpeed = -_rotation / 3;
_rotation = 0;
iDidHit = true;
}
if (_x > 320 && _x < 450) {
_x = 450;
x_speed = -Math.abs(x_speed);
rotateSpeed = -_rotation / 3;
_rotation = 0;
iDidHit = true;
}
}
if (_x < 320 + 130 * Math.abs(_y - 137.5) / 122.5 && _x > 320 - 130 * Math.abs(_y - 137.5) / 122.5) {
if (_y > 15 && _y < 137.5) {
_y = 15;
y_speed = Math.abs(y_speed);
tmp = 90 * Math.abs(_rotation) / _rotation;
rotateSpeed = -(_rotation - tmp) / 3;
_rotation = tmp;
iDidHit = true;
}
if (_y > 137.5 && _y < 260) {
_y = 260;
y_speed = -Math.abs(y_speed);
tmp = 90 * Math.abs(_rotation) / _rotation;
rotateSpeed = -(_rotation - tmp) / 3;
_rotation = tmp;
iDidHit = true;
}
}
if (_y + _height / 2 > 365) {
_y = 365 - _height / 2;
y_speed *= -0.7;
x_speed *= 0.6;
tmp = 90 * Math.abs(_rotation) / _rotation;
rotateSpeed = -(_rotation - tmp) / 3;
_rotation = tmp;
iDidHit = true;
}
if (_x < 0 || _x > 640) {
if (_x < 0) {
_x = 0;
} else {
_x = 640;
}
x_speed *= -0.8;
rotateSpeed = -_rotation / 3;
_rotation = 0;
iDidHit = true;
}
if (iDidHit) {
--bounce;
_parent._parent.smack.start(0, 0);
}
};
}
onClipEvent (mouseUp) {
if (attached) {
attached = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'toss' && _visible) {
if (attached) {
x_speed -= (_parent._xmouse - _x) / 8;
y_speed -= (_parent._ymouse - _y) / 8;
rotateSpeed += (_parent._xmouse - _x) / 8;
x_speed *= 0.8;
y_speed *= 0.8;
rotateSpeed *= 0.8;
DidIHit();
if (iDidHit) {
fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed);
if (fullSpeed > 15) {
_parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed);
_parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed);
}
rotateSpeed *= -1;
attached = false;
}
} else {
if (!pointAwarded) {
pointAwarded = true;
++_parent._parent.score.score;
}
y_speed -= 2;
if (bounce > 0) {
DidIHit();
if (iDidHit) {
fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed);
if (fullSpeed > 15) {
_parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed);
_parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed);
}
}
}
}
_x = _x - x_speed;
_y = _y - y_speed;
_rotation = _rotation + rotateSpeed;
if (_y > 450) {
_visible = false;
}
}
}
}
}
movieClip 281 {
frame 1 {
stop();
}
instance of movieClip 34 {
onClipEvent (load) {
stop();
waitAndHaveFun = 0;
PercentLoaded = 1 + Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 31 * waitAndHaveFun);
if (PercentLoaded != 31) {
gotoAndStop(PercentLoaded);
} else {
gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
if (waitAndHaveFun <= 1) {
waitAndHaveFun += 0.01111111111111111;
}
PercentLoaded = 1 + Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 31 * waitAndHaveFun);
if (PercentLoaded != 31) {
gotoAndStop(PercentLoaded);
} else {
gotoAndStop('lastframe');
}
}
}
instance blood2 of movieClip 49 {
onClipEvent (load) {
function addMore(xxx, yyy, myScale) {
if (myScale > 5 * i && i < 26) {
newname = 'blood' + i;
newdepth = blood.getDepth() + i + 1;
this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
}
if (i > 18) {
cacheAsBitmap = true;
}
}
_y = 0;
_x = 0;
initdepth = blood.getDepth();
i = 10;
}
}
instance playnow of movieClip 51 {
onClipEvent (load) {
inity = _y;
initx = _x;
_visible = false;
_y = 800;
}
onClipEvent (enterFrame) {
if (_visible) {
_y = inity + random(5) - 2;
_x = initx + random(10) - 5;
_rotation = (random(5) - 2) / 3;
if (Key.isDown(32)) {
_root.play();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
wanted_alpha = 30;
} else {
wanted_alpha = 100;
}
_alpha = (_alpha * 5 + wanted_alpha) / 6;
}
}
}
instance maintext of movieClip 96 {
onClipEvent (load) {
_parent.score._alpha = 100 - _alpha;
lulzArray = new Array(lengthOfThing);
lengthOfThing = 32;
i = 0;
while (i < lengthOfThing) {
lulzArray[i] = i;
++i;
}
i = 0;
while (i < lengthOfThing) {
tmp_i = random(lengthOfThing);
tmp_value = lulzArray[tmp_i];
lulzArray[tmp_i] = lulzArray[i];
lulzArray[i] = tmp_value;
++i;
}
n = 0;
}
onClipEvent (enterFrame) {
if (!begin && _parent.toss.i > 0) {
begin = true;
secondsCycle = 0;
}
}
onClipEvent (enterFrame) {
_parent.score._alpha = 100 - _alpha;
if (begin) {
++secondsCycle;
if (secondsCycle > 180) {
secondsCycle = 0;
}
if (secondsCycle > 0 && secondsCycle < 60) {
if (_currentframe == 2 && _alpha >= 90) {
gotoAndStop(3);
}
if (_alpha > 0) {
_alpha = _alpha - 5;
}
}
if (secondsCycle > 60 && secondsCycle < 180) {
if (_currentframe != 2 && _alpha <= 10) {
gotoAndStop(2);
words.gotoAndStop(lulzArray[n] + 1);
++n;
if (n >= lengthOfThing) {
n = 0;
}
}
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
}
instance score of movieClip 111 {
onClipEvent (load) {
score = 0;
}
onClipEvent (enterFrame) {
frame = int(score / 15) + 1;
youare.gotoAndStop(frame);
if (frame >= 11 && !alerted) {
alerted = true;
_root.alert.newUnlock = 'bloodbath';
_global.unlockables.blood = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
}
}
instance blood of movieClip 49 {
onClipEvent (load) {
function addMore(xxx, yyy, myScale) {
if (i < 45) {
if (i < 45 && (yyy > 300 || xxx > 100 && xxx < 540)) {
if (myScale > 1.8 * i || myScale > i && yyy < 190) {
_parent.splat.start(0, 0);
_parent.smack.start(0, 0);
newname = 'blood' + i;
newdepth = blood.getDepth() + i + 1;
this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
} else {
_parent.smack.start(0, 0);
}
} else {
_parent.smack.start(0, 0);
}
} else {
_parent.smack.start(0, 0);
}
if (i > 30) {
cacheAsBitmap = true;
}
}
_y = 0;
_x = 0;
initdepth = blood.getDepth();
i = 10;
}
}
instance of movieClip 279 {
onClipEvent (load) {
function addMore() {
newname = 'player' + i;
newdepth = player.getDepth() + i + 1;
duplicateMovieClip(this.player, newname, newdepth);
++i;
}
countRemaining = 5;
initdepth = player.getDepth();
i = 0;
}
onClipEvent (enterFrame) {
if (countRemaining > 0 && random(10) == 0) {
addMore();
--countRemaining;
}
}
}
instance toss of movieClip 280 {
onClipEvent (load) {
function addMore(xxx, yyy, xSpeed, ySpeed, theframe, grabbed, ohFlip, myBounce) {
newname = 'toss' + i;
newdepth = toss.getDepth() + i + 1;
this.toss.duplicateMovieClip(newname, newdepth, {'x_speed': xSpeed, 'y_speed': ySpeed, 'frame': theframe, 'attached': grabbed, 'flip': ohFlip, 'bounce': myBounce});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
}
initdepth = toss.getDepth();
i = 0;
}
}
}
instance of movieClip 281 {
onClipEvent (load) {
splat = new Sound();
splat.attachSound('Level_Bloodsplode');
smack = new Sound();
smack.attachSound('Level_Loud_Step');
}
}
movieClip 286 {
frame 1 {
stop();
}
}
instance alert of movieClip 286 {
onClipEvent (load) {
initx = _x;
hidex = _x - 300;
_x = hidex;
count = 0;
unlocked.embedFonts = true;
var gong = new Sound();
gong.attachSound('alert');
}
onClipEvent (enterFrame) {
if (count > 0) {
wantedx = initx;
--count;
} else {
wantedx = hidex;
}
_x = (_x * 2 + wantedx) / 3;
if (_x < -100) {
_visible = false;
} else {
_visible = true;
}
if (newUnlock != undefined) {
unlocked.text = newUnlock;
newUnlock = undefined;
gong.start(0, 0);
count = 60;
}
if (newScore != undefined) {
newScore = undefined;
gong.start(0, 0);
count = 60;
}
}
}
frame 3 {
stop();
}
movieClip 288 {
}
movieClip 297 {
}
movieClip 299 {
}
movieClip 303 {
}
movieClip 304 {
}
movieClip 307 {
}
movieClip 311 {
}
movieClip 314 {
}
movieClip 315 {
}
movieClip 317 {
}
movieClip 318 {
}
movieClip 319 {
}
movieClip 328 {
}
movieClip 329 {
}
movieClip 338 {
frame 278 {
_root.gotoAndStop('mainmenu');
}
}
button 342 {
on (press) {
_root.gotoAndStop('mainmenu');
}
}
frame 4 {
stop();
}
movieClip 344 {
instance toss of movieClip 276 {
onClipEvent (load) {
if (_name != 'toss') {
gotoAndStop(frame);
_visible = true;
} else {
gotoAndStop(1);
_visible = false;
}
rotateSpeed = random(20) - 10;
if (flip < 0) {
_xscale = _xscale * -1;
}
DidIHit = function () {
iDidHit = false;
if (_y + _height / 2 > 365) {
_y = 365 - _height / 2;
y_speed *= -0.7;
x_speed *= 0.6;
tmp = 90 * Math.abs(_rotation) / _rotation;
rotateSpeed = -(_rotation - tmp) / 3;
_rotation = tmp;
iDidHit = true;
}
if (_x < 0 || _x > 640) {
if (_x < 0) {
_x = 0;
} else {
_x = 640;
}
x_speed *= -0.8;
rotateSpeed = -_rotation / 3;
_rotation = 0;
iDidHit = true;
}
if (iDidHit) {
--bounce;
_parent.smack.start(0, 0);
}
};
}
onClipEvent (mouseUp) {
if (attached) {
attached = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'toss' && _visible) {
if (attached) {
x_speed -= (_parent._xmouse - _x) / 8;
y_speed -= (_parent._ymouse - _y) / 8;
rotateSpeed += (_parent._xmouse - _x) / 8;
x_speed *= 0.8;
y_speed *= 0.8;
rotateSpeed *= 0.8;
DidIHit();
if (iDidHit) {
fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed);
if (fullSpeed > 15) {
_parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed);
_parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed);
}
rotateSpeed *= -1;
attached = false;
}
} else {
if (!pointAwarded) {
pointAwarded = true;
++_parent._parent.score.score;
}
y_speed -= 2;
if (bounce > 0) {
DidIHit();
if (iDidHit) {
fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed);
if (fullSpeed > 15) {
_parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed);
_parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed);
}
}
}
}
_x = _x - x_speed;
_y = _y - y_speed;
_rotation = _rotation + rotateSpeed;
if (_y > 450) {
_visible = false;
}
}
}
}
}
movieClip 357 {
frame 1 {
stop();
}
frame 7 {
stop();
}
}
movieClip 358 {
}
movieClip 361 {
}
movieClip 363 {
}
movieClip 364 {
frame 1 {
stop();
}
instance of movieClip 358 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Play the main game, a series of completely disconnected levels starring faceless hopping amputees! \n\nFUN.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndPlay('STARTGAME');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'select level';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Replay any level you wish, just as long as you\'ve suffered it before.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('LevelSelect');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'level editor';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Create your own levels or play usermade levels created by others! \n\nAs they say... give a man a fish, something something, nom nom, human capital.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('LevelEditor');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'achievements';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'View your highscores and unlocked items. The elders will be proud.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_parent.gotoAndStop(3);
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'level playlists';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Create Level Playlists, and play all your favourite levels in succession! \n\nThe game has no unifying theme, so you might as well impose your own.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('LevelPlaylists');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'spread the game';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Readymade tweets, diggs, reddits, and stumbleupons. Just press the button, submit, and attain good karma.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('SpreadTheGame');
}
}
instance back of movieClip 363 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.gotoAndStop(1);
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'highscores';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Challenge yourself! You can totally do better than that! YOU JUST GOTTA BELIEVE!!!';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('Highscores');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'unlockables';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Unlockables: purposely locked in the first place so you\'ll stick around longer. So in a way, it\'s not the content that\'s locked, it is your MIND.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
onClipEvent (press) {
_root.gotoAndStop('Unlockables');
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'downloadables';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Download individual levels for your site, download wallpapers for your desktop, download songs for your iTunes. Freebies are awesome.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
}
instance of movieClip 361 {
onClipEvent (load) {
command.embedFonts = true;
command.text = 'spread the game';
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
if (highlight._currentframe == 1) {
highlight.gotoAndPlay(2);
}
_parent.infotext.text = 'Readymade tweets, diggs, reddits, and stumbleupons. Just press the button, submit, and attain good karma.';
}
onClipEvent (rollOut) {
wanted_scale = initscale;
highlight.gotoAndStop(1);
}
}
}
button 369 {
on (press) {
getURL('http://www.newgrounds.com/refer/nutcasenightmare', '_blank');
}
}
movieClip 370 {
instance blood2 of movieClip 49 {
onClipEvent (load) {
function addMore(xxx, yyy, myScale) {
if (myScale > i && i < 36) {
newname = 'blood' + i;
newdepth = blood.getDepth() + i + 1;
this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
}
if (i > 18) {
cacheAsBitmap = true;
}
}
_y = 0;
_x = 0;
initdepth = blood.getDepth();
i = 10;
}
}
instance blood of movieClip 49 {
onClipEvent (load) {
function addMore(xxx, yyy, myScale) {
if (i < 45) {
if (i < 45 && (yyy > 300 || xxx > 100 && xxx < 540)) {
if (myScale > 1.8 * i || myScale > i && yyy < 190) {
_parent.splat.start(0, 0);
_parent.smack.start(0, 0);
newname = 'blood' + i;
newdepth = blood.getDepth() + i + 1;
this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
} else {
_parent.smack.start(0, 0);
}
} else {
_parent.smack.start(0, 0);
}
} else {
_parent.smack.start(0, 0);
}
if (i > 30) {
cacheAsBitmap = true;
}
}
_y = 0;
_x = 0;
initdepth = blood.getDepth();
i = 10;
}
}
instance of movieClip 279 {
onClipEvent (load) {
function addMore() {
newname = 'player' + i;
newdepth = player.getDepth() + i + 1;
duplicateMovieClip(this.player, newname, newdepth);
++i;
}
countRemaining = 8;
initdepth = player.getDepth();
i = 0;
}
onClipEvent (enterFrame) {
if (countRemaining > 0 && random(10) == 0) {
addMore();
--countRemaining;
}
}
}
instance toss of movieClip 344 {
onClipEvent (load) {
function addMore(xxx, yyy, xSpeed, ySpeed, theframe, grabbed, ohFlip, myBounce) {
newname = 'toss' + i;
newdepth = toss.getDepth() + i + 1;
this.toss.duplicateMovieClip(newname, newdepth, {'x_speed': xSpeed, 'y_speed': ySpeed, 'frame': theframe, 'attached': grabbed, 'flip': ohFlip, 'bounce': myBounce});
eval(newname)._x = xxx;
eval(newname)._y = yyy;
++i;
}
initdepth = toss.getDepth();
i = 0;
}
}
instance of movieClip 364 {
onClipEvent (load) {
doing = new Sound();
doing.attachSound('doing');
infotext.embedFonts = true;
infotext.text = 'Welcome to REPLAYING :the game:, and let our warm pretentious greeting help you enjoy your stay. \n\nRoll over the buttons on the left to see info about them.';
lastCurrentframe = _currentframe;
}
onClipEvent (enterFrame) {
if (Math.abs(_rotation) > 0.01) {
_rotation = _rotation * -0.8;
} else {
_rotation = 0;
}
if (_currentframe != lastCurrentframe) {
_rotation = 20;
doing.start(0, 0);
}
lastCurrentframe = _currentframe;
}
}
}
instance of movieClip 370 {
onClipEvent (load) {
_global.levelArray = _global.ORIGINAL_ARRAY;
splat = new Sound();
splat.attachSound('Level_Bloodsplode');
smack = new Sound();
smack.attachSound('Level_Loud_Step');
}
}
movieClip 371 {
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(738);
}
}
movieClip 372 {
}
instance of movieClip 372 {
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 10;
} else {
_visible = false;
}
}
}
movieClip 374 {
}
instance of movieClip 374 {
onClipEvent (load) {
colour = new Color(this);
colour.setRGB('0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16));
}
}
movieClip 424 {
}
movieClip 457 {
}
movieClip 460 {
}
movieClip 462 {
frame 1 {
stop();
}
instance pic of movieClip 457 {
onClipEvent (load) {
stop();
}
}
instance highlight of movieClip 460 {
onClipEvent (load) {
_alpha = 0;
}
}
}
movieClip 463 {
instance icon of movieClip 462 {
onClipEvent (load) {
if (_currentframe != 2) {
if (_name != 'icon') {
scale_it = function (x) {
wut_x = Math.abs(x) * 90 / 600;
scale = Math.cos(wut_x * Math.PI / 180);
_yscale = scale * 100;
_xscale = scale * 100;
};
scale_it(_parent._x + _x);
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_currentframe != 2) {
if (_name != 'icon') {
if (Math.abs(_parent._x + _x) < 450) {
_visible = true;
} else {
_visible = false;
}
scale_it(_parent._x + _x);
}
}
}
onClipEvent (press) {
if (_currentframe != 2) {
foundIt = false;
index = 0;
for (;;) {
if (!(!foundIt && index < _global.levelArray.length)) break;
++index;
if (_global.levelArray[index] == myFrame) {
foundIt = true;
}
}
_root.levelIndex = index;
if (myFrame == 'REPLAY') {
_root.levelIndex = 0;
}
_root.fromLvlSelect = true;
_root.gotoAndPlay('STARTGAME');
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 2) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
}
}
}
movieClip 464 {
instance of movieClip 463 {
onClipEvent (load) {
var frame;
i = 0;
while (i < _global.levelArray.length) {
newname = 'icon' + i;
newdepth = icon.getDepth() + i + 1;
duplicateMovieClip(this.icon, newname, newdepth);
eval(newname)._x = 110 * i;
frame = _global.levelArray[i];
tellTarget ('newname') {
myFrame = _parent.frame;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
++i;
}
x_speed = 0;
end = -110 * (_global.levelArray.length - 1);
}
onClipEvent (enterFrame) {
if (Math.abs(_parent._ymouse) < 65) {
if (_parent._xmouse > 160) {
x_speed -= 2;
}
if (_parent._xmouse < -160) {
x_speed += 2;
}
}
_x = _x + x_speed;
x_speed *= 0.8;
if (_x > 0) {
_x = 0;
x_speed *= -0.9;
}
if (_x < end) {
_x = end;
x_speed *= -0.9;
}
}
}
}
movieClip 466 {
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
movieClip 470 {
}
movieClip 476 {
}
movieClip 477 {
instance thing of movieClip 476 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (load) {
highlight._alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (press) {
with (_parent) {
redirect();
}
}
}
}
button 486 {
on (press) {
getURL('http://pastebin.ca/', '_blank');
}
}
movieClip 489 {
}
button 496 {
on (press) {
_global.gameArray.unshift(decipherAndCreate(code.text));
_global.viewNumber = undefined;
_parent.select.last_chosen = undefined;
_parent.select.last_x = 0;
gotoAndStop(1);
}
}
button 504 {
on (press) {
trash = new Sound();
trash.attachSound('trash');
trash.start(0, 0);
_global.gameArray.splice(_global.viewNumber, 1);
_global.viewNumber = undefined;
_parent.select.last_chosen = undefined;
gotoAndStop(1);
}
}
button 506 {
on (press) {
gotoAndStop(2);
}
}
movieClip 509 {
}
movieClip 510 {
}
movieClip 511 {
instance playlist of movieClip 510 {
onClipEvent (press) {
_parent._parent.viewNumber = viewNumber;
_parent._parent.gotoAndStop(2);
}
onClipEvent (load) {
if (_name == 'playlist') {
_visible = false;
}
}
onClipEvent (load) {
highlight._alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
}
}
movieClip 513 {
frame 1 {
stop();
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(3);
redirect = function () {
_parent._parent.fade.goTo = 2;
_parent._parent.fade.viewTo = 0;
_global.gameArray.unshift(new Object());
_parent._parent.blankSlate(0);
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(4);
redirect = function () {
_parent.afterLoadingGoWhere = 1;
_parent.gotoAndStop(4);
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(1);
redirect = function () {
_parent._parent.fade.goTo = 3;
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(2);
redirect = function () {
_parent._parent.fade.goTo = 2;
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(6);
redirect = function () {
_parent.gotoAndStop(5);
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(3);
redirect = function () {
_parent._parent.fade.goTo = 2;
_parent._parent.fade.viewTo = 0;
_global.gameArray.unshift(new Object());
_parent._parent.blankSlate(0);
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(4);
redirect = function () {
_parent.afterLoadingGoWhere = 2;
_parent.gotoAndStop(4);
};
}
}
instance of movieClip 477 {
onClipEvent (load) {
thing.gotoAndStop(5);
redirect = function () {
_parent.generatedCode = _parent.generateCode(_global.gameArray[_global.viewNumber]);
_parent.gotoAndStop(3);
};
}
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.gotoAndStop(2);
}
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.gotoAndStop(_parent.afterLoadingGoWhere);
}
}
instance of movieClip 511 {
onClipEvent (enterFrame) {
if (_parent._parent.select.clicked != undefined) {
_parent._parent.select.clicked = undefined;
}
}
}
instance resetLight of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = _alpha / 2;
}
}
}
movieClip 515 {
frame 1 {
stop();
}
}
movieClip 516 {
}
movieClip 535 {
}
movieClip 671 {
instance of movieClip 138 {
onClipEvent (load) {
if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) {
_xscale = _xscale * -1;
}
}
}
instance of movieClip 138 {
onClipEvent (load) {
if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) {
_xscale = _xscale * -1;
}
}
}
}
movieClip 672 {
instance char of movieClip 671 {
onClipEvent (load) {
stop();
}
}
}
movieClip 674 {
}
movieClip 675 {
frame 1 {
stop();
}
instance chosen of movieClip 515 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_parent._parent.chosen == _parent._name) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance bg of movieClip 516 {
onClipEvent (load) {
}
}
instance highlight of movieClip 674 {
onClipEvent (load) {
_alpha = 0;
}
}
}
movieClip 676 {
instance icon of movieClip 675 {
onClipEvent (load) {
if (_name != 'icon') {
scale_it = function (x) {
wut_x = Math.abs(x) * 90 / 600;
scale = Math.cos(wut_x * Math.PI / 180);
_yscale = scale * 100;
_xscale = scale * 100;
};
scale_it(_parent._x + _x);
colour = new Color(bg);
colour.setRGB(rgb);
thing._x = x;
thing._y = y;
thing._rotation = rotation;
thing._yscale = thing._xscale * thingscale / 100;
thing._xscale = thing._yscale;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'icon') {
if (Math.abs(_parent._x + _x) < 450) {
_visible = true;
} else {
_visible = false;
}
scale_it(_parent._x + _x);
}
}
onClipEvent (press) {
_parent.chosen = _name;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
}
}
movieClip 677 {
frame 1 {
stop();
}
instance chooser of movieClip 676 {
onClipEvent (load) {
var frame;
i = 0;
while (i < _global.gameArray.length) {
newname = 'icon' + i;
newdepth = icon.getDepth() + i + 1;
duplicateMovieClip(this.icon, newname, newdepth);
eval(newname)._x = 110 * i;
tellTarget ('newname') {
rgb = _global.gameArray[_parent.i].icon[0];
x = _global.gameArray[_parent.i].icon[1];
y = _global.gameArray[_parent.i].icon[2];
rotation = _global.gameArray[_parent.i].icon[3];
thingscale = _global.gameArray[_parent.i].icon[4];
thing.char.gotoAndStop(_global.gameArray[_parent.i].char[0]);
title.text = _global.gameArray[_parent.i].word[0];
}
++i;
}
x_speed = 0;
end = -110 * (_global.gameArray.length - 1);
}
onClipEvent (enterFrame) {
if (Math.abs(_parent._ymouse) < 65) {
if (_parent._xmouse > 160) {
x_speed -= 2;
}
if (_parent._xmouse < -160) {
x_speed += 2;
}
}
_x = _x + x_speed;
x_speed *= 0.8;
if (_x > 0) {
_x = 0;
x_speed *= -0.9;
}
if (_x < end) {
_x = end;
x_speed *= -0.9;
}
parsedChosen = parseInt(chosen.charAt(4));
if (chosen != undefined && _global.viewNumber != parsedChosen) {
_parent._parent.editor.gotoAndStop(1);
_parent._parent.editor.gotoAndStop(2);
_global.viewNumber = parsedChosen;
}
}
onClipEvent (enterFrame) {
_parent.last_x = _x;
_parent.last_chosen = chosen;
}
}
}
movieClip 680 {
}
movieClip 682 {
}
movieClip 700 {
}
movieClip 705 {
frame 1 {
stop();
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance of movieClip 682 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 1) {
_parent.play();
_yscale = initscale;
_xscale = initscale;
}
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
++_parent.page_number;
_yscale = initscale;
_xscale = initscale;
}
}
}
instance back of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
--_parent.page_number;
_yscale = initscale;
_xscale = initscale;
}
}
}
instance of movieClip 700 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
_parent.play();
_yscale = initscale;
_xscale = initscale;
}
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
frame 20 {
stop();
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
instance infoclip of movieClip 680 {
onClipEvent (load) {
info.embedFonts = true;
}
}
frame 40 {
gotoAndStop(1);
}
}
movieClip 706 {
}
movieClip 709 {
}
movieClip 713 {
}
movieClip 715 {
instance icon of movieClip 709 {
onClipEvent (load) {
colour = new Color(bg);
colourString = _global.gameArray[_global.viewNumber].icon[0];
_parent.red._y = 290 - 240 * (parseInt(colourString.substr(2, 2), 16) / 255);
_parent.green._y = 290 - 240 * (parseInt(colourString.substr(4, 2), 16) / 255);
_parent.blue._y = 290 - 240 * (parseInt(colourString.substr(6, 2), 16) / 255);
thing._x = 1.46 * _global.gameArray[_global.viewNumber].icon[1];
thing._y = 1.46 * _global.gameArray[_global.viewNumber].icon[2];
thing._rotation = _global.gameArray[_global.viewNumber].icon[3];
initxscale = thing._xscale;
thing._yscale = 1.1 * initxscale * _global.gameArray[_global.viewNumber].icon[4] / 100;
thing._xscale = thing._yscale;
thing.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[0]);
title.text = _global.gameArray[_global.viewNumber].word[0];
}
onClipEvent (enterFrame) {
colourString = '0x' + redness + greeness + blueness;
colour.setRGB(colourString);
_global.gameArray[_global.viewNumber].icon[0] = colourString;
}
onClipEvent (load) {
shuffle = function () {
thing._rotation = random(360);
thing._x = random(100) - 50;
thing._y = random(100) - 50;
thing._yscale = 80 + random(100);
thing._xscale = thing._yscale;
_global.gameArray[_global.viewNumber].icon[1] = thing._x / 1.46;
_global.gameArray[_global.viewNumber].icon[2] = thing._y / 1.46;
_global.gameArray[_global.viewNumber].icon[3] = thing._rotation;
_global.gameArray[_global.viewNumber].icon[4] = 100 * (thing._xscale / 1.1) / initxscale;
};
}
onClipEvent (press) {
shuffle();
}
}
instance red of movieClip 713 {
onClipEvent (press) {
startDrag(this, true, _x, 50, _x, 290);
}
onClipEvent (mouseUp) {
stopDrag();
}
onClipEvent (load) {
colour = new Color(bg);
changeColour = function () {
ness = 255 * (1 - (_y - 50) / 240);
ness = ness.toString(16);
if (ness.length == 1) {
ness = '0' + ness;
}
_parent.icon.redness = ness;
};
}
onClipEvent (enterFrame) {
changeColour();
colour.setRGB('0x' + ness + '0000');
}
}
instance green of movieClip 713 {
onClipEvent (press) {
startDrag(this, true, _x, 50, _x, 290);
}
onClipEvent (mouseUp) {
stopDrag();
}
onClipEvent (load) {
colour = new Color(bg);
changeColour = function () {
ness = 255 * (1 - (_y - 50) / 240);
ness = ness.toString(16);
if (ness.length == 1) {
ness = '0' + ness;
}
_parent.icon.greeness = ness;
};
}
onClipEvent (enterFrame) {
changeColour();
colour.setRGB('0x00' + ness + '00');
}
}
instance blue of movieClip 713 {
onClipEvent (press) {
startDrag(this, true, _x, 50, _x, 290);
}
onClipEvent (mouseUp) {
stopDrag();
}
onClipEvent (load) {
colour = new Color(bg);
changeColour = function () {
ness = 255 * (1 - (_y - 50) / 240);
ness = ness.toString(16);
if (ness.length == 1) {
ness = '0' + ness;
}
_parent.icon.blueness = ness;
};
}
onClipEvent (enterFrame) {
changeColour();
colour.setRGB('0x0000' + ness);
}
}
}
movieClip 723 {
}
movieClip 727 {
instance of movieClip 138 {
onClipEvent (load) {
if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) {
_xscale = _xscale * -1;
}
}
}
}
button 730 {
on (press) {
_parent.editMe = _name;
_parent.selector.arrow._x = position * 500 - 250;
_parent.options = options;
flashit._alpha = 100;
}
}
movieClip 732 {
}
movieClip 733 {
frame 1 {
stop();
}
instance char of movieClip 727 {
onClipEvent (load) {
stop();
options = 114;
_parent.options = options;
_parent.position = (_global.gameArray[_global.viewNumber].char[_parent.iii] - 1) / (options - 1);
n = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent.editMe == _parent._name && _parent.position != _parent._parent.position) {
_parent.position = _parent._parent.position;
gotoAndStop(1 + Math.round(_parent.position * (options - 1)));
}
}
}
instance flashit of movieClip 516 {
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
}
instance glow of movieClip 732 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.editMe == _parent._name) {
_visible = true;
} else {
_visible = false;
}
}
}
instance char of movieClip 671 {
onClipEvent (load) {
stop();
options = 26;
_parent.options = options;
_parent.position = (_global.gameArray[_global.viewNumber].char[0] - 1) / 3 / (options - 1);
n = 0;
with (_parent) {
_parent.editMe = _name;
_parent.selector.arrow._x = position * 500 - 250;
_parent.options = options;
flashit._alpha = 100;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.editMe == _parent._name && _parent.position != _parent._parent.position) {
_parent.position = _parent._parent.position;
gotoAndStop(1 + 3 * Math.round(_parent.position * (options - 1)));
if (_currentframe == 61) {
_x = 26;
} else {
_x = 5.8;
}
}
}
}
instance flashit of movieClip 516 {
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 10;
}
}
}
}
button 737 {
on (press) {
arrow._x -= 500 / (_parent.options - 1);
if (arrow._x < -250) {
arrow._x = -250;
}
}
}
button 738 {
on (press) {
arrow._x += 500 / (_parent.options - 1);
if (arrow._x > 250) {
arrow._x = 250;
}
}
}
movieClip 740 {
}
movieClip 741 {
instance arrow of movieClip 740 {
onClipEvent (press) {
startDrag(this, true, -250, _y, 250, _y);
}
onClipEvent (mouseUp) {
stopDrag();
}
onClipEvent (enterFrame) {
whatsEdited = _parent._parent.editMe;
with (_parent._parent) {
position = (this._x + 250) / 500;
}
}
}
}
movieClip 742 {
instance walker1 of movieClip 733 {
onClipEvent (load) {
iii = 1;
}
}
instance walker2 of movieClip 733 {
onClipEvent (load) {
iii = 2;
}
}
instance follower1 of movieClip 733 {
onClipEvent (load) {
iii = 3;
}
}
instance follower2 of movieClip 733 {
onClipEvent (load) {
iii = 4;
}
}
}
movieClip 746 {
}
movieClip 747 {
frame 1 {
stop();
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.nextFrame();
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent._parent.fade.goTo = 1;
_global.viewNumber = undefined;
}
}
instance of movieClip 705 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' ICON MAKER');
text[i].push('');
text[i].push('~ Click and drag sliders to change the colour of icon.');
text[i].push('');
text[i].push('~ Click the icon for lulz.');
text[i].push(' (ok fine. it randomizes the position and rotation.)');
text[i].push('');
text[i].push('~ You can edit the character and the title in the');
text[i].push(' next few pages.');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
instance of movieClip 723 {
onClipEvent (load) {
function fixRedText(string) {
string = string.toUpperCase();
newString = '';
i = 0;
while (i < string.length) {
n = string.charCodeAt(i);
if (n >= 65 && n <= 90 || n >= 48 && n <= 57 || n == 32 || n == 39 || n == 63 || n == 33 || n == 58 || n == 46 || n == 59 || n == 44) {
newString += string.charAt(i);
}
++i;
}
return newString;
}
title.embedFonts = true;
sub.embedFonts = true;
end1.embedFonts = true;
end2.embedFonts = true;
end3.embedFonts = true;
oneliner.embedFonts = true;
title.text = _global.gameArray[_global.viewNumber].word[0];
sub.text = _global.gameArray[_global.viewNumber].word[1];
end1.text = _global.gameArray[_global.viewNumber].word[2];
end2.text = _global.gameArray[_global.viewNumber].word[3];
end3.text = _global.gameArray[_global.viewNumber].word[4];
oneliner.text = _global.gameArray[_global.viewNumber].word[5];
}
onClipEvent (enterFrame) {
title.text = fixRedText(title.text);
end1.text = fixRedText(end1.text);
end2.text = fixRedText(end2.text);
end3.text = fixRedText(end3.text);
_global.gameArray[_global.viewNumber].word[0] = title.text;
_global.gameArray[_global.viewNumber].word[1] = sub.text;
_global.gameArray[_global.viewNumber].word[2] = end1.text;
_global.gameArray[_global.viewNumber].word[3] = end2.text;
_global.gameArray[_global.viewNumber].word[4] = end3.text;
_global.gameArray[_global.viewNumber].word[5] = oneliner.text;
}
}
instance back of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.prevFrame();
}
}
instance of movieClip 705 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' WORDS, WORDS, WORDS');
text[i].push('');
text[i].push('~ NOW you can change the title, and include your');
text[i].push(' own itty bitty witty subtitle.');
text[i].push('');
text[i].push('~ You can also create the endscreen text.');
text[i].push(' If not all lines are filled, that\'s ok.');
text[i].push(' You then just get one or two lines.');
text[i].push(' Add the final one-liner while you\'re at it.');
text[i].push('');
text[i].push('~ NOTE: the red text may contain only letters, numbers,');
text[i].push(' and punctuation marks. This is because life is');
text[i].push(' a twisted, sadistic carnival of pain.');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
instance of movieClip 742 {
onClipEvent (load) {
editMe = 'main';
var options;
var position;
main.gotoAndStop(2);
main.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[0]);
walker1.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[1]);
walker2.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[2]);
follower1.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[3]);
follower2.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[4]);
}
onClipEvent (enterFrame) {
_global.gameArray[_global.viewNumber].char[0] = main.char._currentframe;
_global.gameArray[_global.viewNumber].char[1] = walker1.char._currentframe;
_global.gameArray[_global.viewNumber].char[2] = walker2.char._currentframe;
_global.gameArray[_global.viewNumber].char[3] = follower1.char._currentframe;
_global.gameArray[_global.viewNumber].char[4] = follower2.char._currentframe;
}
}
instance of movieClip 705 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' CHARACTERS');
text[i].push('');
text[i].push('~ This is the MEAT of the game. The CHARACTERS.');
text[i].push('');
text[i].push('~ There is exactly one playable character,');
text[i].push(' you may pick up to two characters that just walk around,');
text[i].push('\t and up to two characters that follow you to your death.');
text[i].push('');
text[i].push('~ Click a box, and move the slider to scroll through');
text[i].push(' characters. Pressing the triangles on the left and');
text[i].push(' right changes the character slowly. Leaving a box blank');
text[i].push(' means no character for that role.');
text[i].push('');
text[i].push('~ P.S: There are many more characters for the supplementary');
text[i].push(' roles, because I don\'t have to draw them jumping and');
text[i].push(' squatting and stuff. SO HAVE FUN.');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
instance of movieClip 746 {
onClipEvent (load) {
name.embedFonts = true;
info.embedFonts = true;
name.text = _global.gameArray[_global.viewNumber].info[0];
info.text = _global.gameArray[_global.viewNumber].info[1];
}
onClipEvent (enterFrame) {
_global.gameArray[_global.viewNumber].info[0] = name.text;
_global.gameArray[_global.viewNumber].info[1] = info.text;
}
}
instance of movieClip 705 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' THE CREDITS');
text[i].push('');
text[i].push('~ This really is just for shameless self-promotion.');
text[i].push(' Hey, I dunno. You COULD, theoretically, create');
text[i].push(' a funny game for a charitable cause, and use this');
text[i].push(' feature to promote said charity. You might even give');
text[i].push(' credit to whoever inspired you!');
text[i].push('');
text[i].push(' But we both know you\'re just going to add a biturl to');
text[i].push(' a rickroll. Don\'t. Use the Epicroll instead. =D');
text[i].push('');
text[i].push('');
text[i].push('');
text[i].push('~ P.S: have fun, don\'t take anything here too seriously,');
text[i].push(' and if you\'re afraid someone already did your idea,');
text[i].push(' remember: Family Guy ALWAYS already did it.');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
}
movieClip 790 {
}
movieClip 791 {
instance letter of movieClip 790 {
onClipEvent (load) {
if (_name == 'letter') {
_visible = false;
gotoAndStop(27);
} else {
if (frame < 0) {
if (frame >= -16 && frame <= -7) {
gotoAndStop(frame + 66);
} else {
switch (frame + 64) {
case 32:
gotoAndStop(27);
break;
case 39:
gotoAndStop(28);
break;
case 63:
gotoAndStop(29);
break;
case 33:
gotoAndStop(30);
break;
case 58:
gotoAndStop(31);
break;
case 46:
gotoAndStop(31);
break;
case 59:
gotoAndStop(32);
break;
case 44:
gotoAndStop(33);
}
}
} else {
gotoAndStop(frame);
}
}
}
}
}
movieClip 795 {
}
movieClip 796 {
frame 1 {
next_level = false;
}
instance of movieClip 795 {
onClipEvent (keyDown) {
if (n > delay) {
_parent.next_level = true;
}
}
onClipEvent (press) {
if (n > delay) {
_parent.next_level = true;
}
}
onClipEvent (load) {
n = 0;
delay = 20;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (n <= delay) {
++n;
}
new_scale = scale;
if (this.hitTest(_root._xmouse, _root._ymouse)) {
new_scale = scale * 1.05;
}
}
onClipEvent (enterFrame) {
_xscale = (_xscale + new_scale) / 2;
_yscale = (_xscale + new_scale) / 2;
}
}
}
movieClip 800 {
}
movieClip 802 {
}
movieClip 803 {
frame 1 {
stop();
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
if (next_level) {
_global.viewNumber += 1;
_global.viewNumber %= _global.gameArray.length;
_parent._parent.gotoAndStop(2);
}
}
}
instance of movieClip 800 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation - rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
_parent._parent.gotoAndStop(2);
}
}
instance of movieClip 802 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation + rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
_parent._parent._parent.gotoAndStop(1);
}
}
}
movieClip 821 {
frame 1 {
gotoAndStop(random(5) + 1);
}
}
movieClip 822 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
distance = random(150);
scale = random(50) + 25;
with (thing) {
_y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433);
_x = distance * Math.sin(rotation * 0.0174532925199433);
_yscale = scale;
_xscale = _yscale;
}
}
function cloud_move(thing) {
with (thing) {
edge = 150 * Math.sqrt(1 - _y * _y / 3600);
y_edge = 60 * Math.sqrt(1 - _x * _x / 22500);
_x += speed;
_y += y_speed;
_alpha = edge - Math.abs(_x);
second_alpha = (y_edge - Math.abs(_y)) / 0.4;
if (_alpha > second_alpha) {
_alpha = second_alpha;
}
if (_alpha <= 0) {
_x = -edge;
_y = -y_edge;
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
}
}
denominator = 6;
}
frame 2 {
stop();
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
}
movieClip 827 {
}
movieClip 830 {
}
movieClip 831 {
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 5 {
stop();
}
}
movieClip 832 {
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 8 {
_parent._parent.soft_step.start(0, 0);
}
frame 11 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 16 {
_parent._parent.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 833 {
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.jumping_frame);
}
}
frame 7 {
stop();
}
}
movieClip 834 {
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
frame 6 {
stop();
}
}
movieClip 835 {
instance of movieClip 671 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
frame 8 {
_parent._parent.softer_step.start(0, 0);
}
frame 16 {
_parent._parent.softer_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 836 {
frame 1 {
stop();
}
}
movieClip 838 {
}
movieClip 839 {
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 838 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
frame 20 {
stop();
}
}
movieClip 841 {
frame 1 {
_alpha = 0;
}
}
movieClip 843 {
}
movieClip 844 {
instance of movieClip 843 {
onClipEvent (load) {
_alpha = 0;
screen_width = 320;
screen_length = 200;
screen_diagonal = 377.359;
init_angle = 32.00538321;
}
onClipEvent (enterFrame) {
_root._x = _parent._x - screen_width;
_root._y = _parent._y - screen_length;
_root._rotation = -_parent._rotation;
angle = _root._rotation + 90 + init_angle;
_root._y += Math.cos(angle * 0.0174532925199433) * screen_diagonal;
_root._x -= Math.sin(angle * 0.0174532925199433) * screen_diagonal;
_root._x += screen_width;
_root._y += screen_length;
}
}
}
movieClip 845 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player3 of movieClip 836 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[2];
if (standing_frame == 200) {
_visible = false;
_parent.player_shadow3._visible = false;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
}
}
}
}
}
instance player2 of movieClip 836 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[1];
if (standing_frame == 200) {
_visible = false;
_parent.player_shadow2._visible = false;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
}
}
}
}
}
instance player of movieClip 836 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = _global.gameArray[_global.viewNumber].char[0];
this.jumping_frame = standing_frame + 1;
this.squatting_frame = standing_frame + 2;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
instance player4 of movieClip 836 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[3];
if (standing_frame == 200) {
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[4];
if (standing_frame == 200) {
_visible = false;
_parent.player_shadow4._visible = false;
}
}
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player._y > _y + 10 && !FOREVERDRIVE) {
FOREVERDRIVE = true;
if (_parent.player._x > _x) {
ForeverLeft = true;
left_is_pressed = false;
right_is_pressed = true;
} else {
ForeverRight = true;
right_is_pressed = false;
left_is_pressed = true;
}
} else {
if (ForeverLeft) {
left_is_pressed = false;
right_is_pressed = true;
} else {
if (ForeverRight) {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow4._x = _x;
_parent.player_shadow4._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow4._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
}
}
instance player5 of movieClip 836 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[3];
if (standing_frame == 200) {
_visible = false;
_parent.player_shadow5._visible = false;
}
this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[4];
if (standing_frame == 200) {
_visible = false;
_parent.player_shadow5._visible = false;
}
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player4._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player4._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player4._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player4._y > _y + 10) {
if (_parent.player4._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow5._x = _x;
_parent.player_shadow5._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow5._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
movieClip 846 {
frame 1 {
stop();
}
instance of movieClip 803 {
onClipEvent (load) {
var gong = new Sound();
gong.attachSound('gong');
gong.start(0, 0);
n = 0;
}
onClipEvent (enterFrame) {
++n;
if (n > 100) {
_parent.nextFrame();
}
}
onClipEvent (load) {
subtitle.embedFonts = true;
subtitle.text = '(AKA ' + _global.gameArray[_global.viewNumber].word[1] + ')';
myTitle = _global.gameArray[_global.viewNumber].word[0];
initdepth = letter.letter.getDepth();
spacing = 0;
i = 0;
while (i < myTitle.length) {
newName = 'letter' + i;
newDepth = initdepth + i + 1;
myFrame = myTitle.charCodeAt(i) - 64;
this.letter.letter.duplicateMovieClip(newName, newDepth, {'_x': spacing, 'frame': myFrame});
this.letter.letter.myFrame = myFrame;
with (this.letter.letter) {
if (myFrame < 0) {
if (myFrame >= -16 && myFrame <= -7) {
gotoAndStop(myFrame + 66);
} else {
switch (myFrame + 64) {
case 32:
gotoAndStop(27);
break;
case 39:
gotoAndStop(28);
break;
case 63:
gotoAndStop(29);
break;
case 33:
gotoAndStop(30);
break;
case 58:
gotoAndStop(31);
break;
case 46:
gotoAndStop(31);
break;
case 59:
gotoAndStop(32);
break;
case 44:
gotoAndStop(33);
}
}
} else {
gotoAndStop(myFrame);
}
}
if (myFrame == -32) {
spacing += 8;
} else {
spacing += this.letter.letter._width + 3;
}
++i;
}
this.letter.letter._visible = false;
this.letter._width = 580;
this.letter._height = 160;
}
}
instance of movieClip 845 {
onClipEvent (load) {
deathCount = 1;
if (_global.gameArray[_global.viewNumber].char[4] + 199 != 200) {
++deathCount;
}
if (_global.gameArray[_global.viewNumber].char[3] + 199 != 200) {
++deathCount;
}
}
onClipEvent (enterFrame) {
if (deathCount == 0) {
_parent.nextFrame();
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
frame 4 {
_root._x = 0;
_root._y = 0;
_root._rotation = 0;
_root._yscale = 100;
_root._xscale = 100;
}
instance of movieClip 803 {
onClipEvent (load) {
function omgtext(target) {
with (target) {
doesItHaveContent = false;
myTitle = _parent.myTitle;
initdepth = letter.getDepth();
spacing = 0;
i = 0;
while (i < myTitle.length) {
newName = 'letter' + i;
newDepth = initdepth + i + 1;
myFrame = myTitle.charCodeAt(i) - 64;
letter.duplicateMovieClip(newName, newDepth, {'_x': spacing, 'frame': myFrame});
letter.myFrame = myFrame;
with (letter) {
if (myFrame < 0) {
if (myFrame >= -16 && myFrame <= -7) {
gotoAndStop(myFrame + 66);
} else {
switch (myFrame + 64) {
case 32:
gotoAndStop(27);
break;
case 39:
gotoAndStop(28);
break;
case 63:
gotoAndStop(29);
break;
case 33:
gotoAndStop(30);
break;
case 58:
gotoAndStop(31);
break;
case 46:
gotoAndStop(31);
break;
case 59:
gotoAndStop(32);
break;
case 44:
gotoAndStop(33);
}
}
} else {
gotoAndStop(myFrame);
}
}
if (myFrame == -32) {
spacing += 8;
} else {
spacing += letter._width + 3;
doesItHaveContent = true;
}
++i;
}
letter._visible = false;
return doesItHaveContent;
}
}
var gong = new Sound();
gong.attachSound('gong');
gong.start(0, 0);
gotoAndStop(2);
subtitle.embedFonts = true;
subtitle.text = '(' + _global.gameArray[_global.viewNumber].word[5] + ')';
lineCount = 0;
myTitle = _global.gameArray[_global.viewNumber].word[2];
if (!omgtext(this.letter)) {
myTitle = _global.gameArray[_global.viewNumber].word[3];
if (!omgtext(this.letter)) {
myTitle = _global.gameArray[_global.viewNumber].word[4];
if (omgtext(this.letter)) {
++lineCount;
}
} else {
++lineCount;
myTitle = _global.gameArray[_global.viewNumber].word[4];
if (omgtext(this.letter2)) {
++lineCount;
}
}
} else {
++lineCount;
myTitle = _global.gameArray[_global.viewNumber].word[3];
if (!omgtext(this.letter2)) {
myTitle = _global.gameArray[_global.viewNumber].word[4];
if (omgtext(this.letter2)) {
++lineCount;
}
} else {
++lineCount;
myTitle = _global.gameArray[_global.viewNumber].word[4];
if (omgtext(this.letter3)) {
++lineCount;
}
}
}
this.letter3._width = 580;
this.letter2._width = 580;
this.letter._width = 580;
switch (lineCount) {
case 1:
this.letter._height = 160;
break;
case 2:
this.letter2._height = 68;
this.letter._height = 68;
this.letter2._y = -39;
break;
case 3:
this.letter3._height = 45;
this.letter2._height = 45;
this.letter._height = 45;
this.letter2._y += 3;
this.letter3._y += 3;
}
}
}
}
movieClip 847 {
frame 1 {
stop();
}
frame 1 {
function blankSlate(i) {
thegame.data.gameArray[i].icon = ['0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16), 0, 0, 0, 100];
thegame.data.gameArray[i].word = ['UNTITLED', 'substandard subtitle', 'I HAVE NO NAME', 'I DON\'T NEED', 'YOUR LABELS', 'you have to one-up this one-liner'];
thegame.data.gameArray[i].char = [1, 1, 1, 1, 1];
thegame.data.gameArray[i].info = ['anonymous', 'no comment.'];
}
}
instance editor of movieClip 513 {
onClipEvent (load) {
n = 0;
last_currentframe = 1;
stagger = 0;
initscale = _xscale;
}
onClipEvent (enterFrame) {
if (n % 30 == 29) {
n = 0;
_parent.thegame.data.gameArray = _global.gameArray;
_parent.thegame.data.flush();
}
++n;
}
onClipEvent (load) {
_y = 250;
}
onClipEvent (enterFrame) {
if (_currentframe <= 3) {
wanted_y = 250;
} else {
wanted_y = 170;
}
if (_currentframe != last_currentframe) {
stagger = 20;
}
_y = (_y * 4 + wanted_y) / 5;
scale = initscale + stagger;
stagger *= -0.8;
_yscale = scale;
_xscale = scale;
last_currentframe = _currentframe;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
title.text = _global.gameArray[_global.viewNumber].word[0].toUpperCase() + ' :the game:';
name.text = _global.gameArray[_global.viewNumber].info[0];
info.text = _global.gameArray[_global.viewNumber].info[1];
}
}
onClipEvent (load) {
function cryptify(string) {
codeName = new String('');
i = 0;
while (i < string.length) {
codeName += String.fromCharCode(string.charCodeAt(i) + 2);
++i;
}
return codeName;
}
function generateCode(game) {
GCicon = '&noci' + game.icon[0] + 'nl' + game.icon[1] + 'nl' + game.icon[2] + 'nl' + game.icon[3] + 'nl' + game.icon[4] + '%dnenoci';
GCdrow = '&drow' + cryptify(game.word[0]) + 'ilynpfyk' + cryptify(game.word[1]) + 'ilynpfyk' + cryptify(game.word[2]) + 'ilynpfyk' + cryptify(game.word[3]) + 'ilynpfyk' + cryptify(game.word[4]) + 'ilynpfyk' + cryptify(game.word[5]) + '%dnedrow';
GCchar = '&rahc' + game.char[0] + 'nl' + game.char[1] + 'nl' + game.char[2] + 'nl' + game.char[3] + 'nl' + game.char[4] + '%dnerahc';
GCinfo = '&ofni' + cryptify(game.info[0]) + 'ilynpfyk' + cryptify(game.info[1]) + '%dneofni';
return GCicon + GCdrow + GCchar + GCinfo;
}
function decryptify(string) {
codeName = new String('');
j = 0;
while (j < string.length) {
codeName += String.fromCharCode(string.charCodeAt(j) - 2);
++j;
}
return codeName;
}
function decipherAndCreate(plaintext) {
game = new Object();
game.icon = (plaintext.substring(plaintext.indexOf('&noci') + 5, plaintext.indexOf('%dnenoci'))).split('nl');
i = 1;
while (i < game.icon.length) {
game.icon[i] = parseInt(game.icon[i], 10);
++i;
}
game.word = (plaintext.substring(plaintext.indexOf('&drow') + 5, plaintext.indexOf('%dnedrow'))).split('ilynpfyk');
i = 0;
while (i < game.word.length) {
game.word[i] = decryptify(game.word[i]);
++i;
}
game.char = (plaintext.substring(plaintext.indexOf('&rahc') + 5, plaintext.indexOf('%dnerahc'))).split('nl');
i = 0;
while (i < game.char.length) {
game.char[i] = parseInt(game.char[i]);
++i;
}
game.info = (plaintext.substring(plaintext.indexOf('&ofni') + 5, plaintext.indexOf('%dneofni'))).split('ilynpfyk');
i = 0;
while (i < 2) {
game.info[i] = decryptify(game.info[i]);
++i;
}
return game;
}
}
onClipEvent (enterFrame) {
if (_currentframe != 3) {
generatedCode = undefined;
} else {
code.text = generatedCode;
}
}
}
instance select of movieClip 677 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
frame = _parent.editor._currentframe;
if (frame <= 3) {
wanted_y = 93;
} else {
wanted_y = -100;
}
if (_y < -80) {
_visible = false;
gotoAndStop(2);
} else {
if (!_visible) {
_visible = true;
gotoAndStop(1);
chooser._x = last_x;
chooser.chosen = last_chosen;
}
}
_y = (_y * 4 + wanted_y) / 5;
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
instance of movieClip 705 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' INTRO TO LEVEL EDITOR');
text[i].push('');
text[i].push('~ Yes. I know the levels aren\'t that complicated.');
text[i].push(' Which is why I overcompensated with:');
text[i].push('');
text[i].push('-> MAKING LEVELS');
text[i].push(' Wanna make a friend laugh? Think you\'re better');
text[i].push(' than me, PUNK? Then make your own level! JERK.');
text[i].push('');
text[i].push('-> SHARING LEVELS');
text[i].push(' GET your level\'s code and give!');
text[i].push(' LOAD someone else\'s code and receive!');
text[i].push('');
text[i].push('-> SAVING LEVELS');
text[i].push(' Wanna save lulz for a rainy day? All codes');
text[i].push(' loaded get stored, so you can play them again at');
text[i].push(' any time, without having to paste the code again.');
++i;
text[i] = new Array();
text[i].push(' INTRO TO LEVEL EDITOR part deux');
text[i].push('');
text[i].push('-> OPEN SOURCE');
text[i].push(' Is there really a point to protecting THESE levels.');
text[i].push(' No there isn\'t. Go wild and edit them.');
text[i].push('');
text[i].push('-> ATTRIBUTION');
text[i].push(' With this, you can spread your name, site,');
text[i].push(' or include some very insightful commentary.');
text[i].push(' You know, before people plagiarize off of you.');
++i;
text[i] = new Array();
text[i].push(' BUTTONS');
text[i].push('');
text[i].push('~CREATE NEW LEVEL:');
text[i].push(' makes a new level and brings you to its editing');
text[i].push(' screen.');
text[i].push('');
text[i].push('~LOAD CODE:');
text[i].push(' brings you to a screen where you may then paste');
text[i].push(' a code someone gave you, (aw. <3) press the \'+\'');
text[i].push(' button, and now you have more to play with!');
text[i].push('');
++i;
text[i] = new Array();
text[i].push(' BUTTONS (after you select a level from the top shelf)');
text[i].push('');
text[i].push('~PLAY:');
text[i].push(' Plays selected level, and if you don\'t quit,');
text[i].push(' continues to play all the following levels too.');
text[i].push('');
text[i].push('~EDIT:');
text[i].push(' Goes to editing screen for the selected level.');
text[i].push('');
text[i].push('~DELETE:');
text[i].push(' If it\'s REALLY bad, you should put it out of its');
text[i].push(' misery.');
text[i].push('');
text[i].push('~GET CODE:');
text[i].push(' Retrieve code, select all, copy, click');
text[i].push(' notebook-looking button, paste it all, share!');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
instance fade of movieClip 706 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (goTo != undefined) {
_alpha = _alpha + 20;
if (_alpha >= 100) {
_parent.gotoAndStop(goTo);
goTo = undefined;
if (viewTo != undefined) {
_global.viewNumber = viewTo;
viewTo = undefined;
}
}
} else {
if (_alpha > 0) {
_alpha = _alpha - 20;
} else {
if (_parent._currentframe == 3 && _parent.game._currentframe == 1) {
_parent.game.nextFrame();
}
}
}
}
}
instance of movieClip 747 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
if (n % 30 == 29) {
n = 0;
_parent.thegame.data.gameArray = _global.gameArray;
_parent.thegame.data.flush();
}
++n;
}
}
}
instance of movieClip 847 {
onClipEvent (enterFrame) {
if (_currentframe == 3) {
_parent.music.stop();
} else {
if (lastframe == 3) {
_parent.music.play();
}
}
lastframe = _currentframe;
}
}
movieClip 848 {
instance icon of movieClip 462 {
onClipEvent (load) {
if (_name != 'icon') {
scale_it = function (x) {
wut_x = Math.abs(x) * 90 / 600;
scale = Math.cos(wut_x * Math.PI / 180);
_yscale = scale * 100;
_xscale = scale * 100;
};
scale_it(_parent._x + _x);
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'icon') {
if (Math.abs(_parent._x + _x) < 450) {
_visible = true;
} else {
_visible = false;
}
scale_it(_parent._x + _x);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent._parent.clicked = myFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
}
}
movieClip 849 {
instance of movieClip 848 {
onClipEvent (load) {
var frame;
i = 0;
while (i < _global.levelArray.length) {
newname = 'icon' + i;
newdepth = icon.getDepth() + i + 1;
duplicateMovieClip(this.icon, newname, newdepth);
eval(newname)._x = 110 * i;
frame = _global.levelArray[i];
tellTarget ('newname') {
myFrame = _parent.frame;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
myFrame = _parent.frame;
}
++i;
}
x_speed = 0;
end = -110 * (_global.levelArray.length - 1);
}
onClipEvent (enterFrame) {
if (Math.abs(_parent._ymouse) < 65) {
if (_parent._xmouse > 160) {
x_speed -= 2;
}
if (_parent._xmouse < -160) {
x_speed += 2;
}
}
_x = _x + x_speed;
x_speed *= 0.8;
if (_x > 0) {
_x = 0;
x_speed *= -0.9;
}
if (_x < end) {
_x = end;
x_speed *= -0.9;
}
}
}
}
button 852 {
on (press) {
_parent.addPlaylist = input.text;
_parent.resetLight._alpha = 100;
}
}
movieClip 855 {
frame 1 {
stop();
}
instance of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (press) {
_parent._parent.gotoAndStop(1);
}
}
instance of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (press) {
_parent._parent.gotoAndStop(3);
}
}
instance of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (press) {
_parent._parent.playlist_shuffle = true;
}
}
instance of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (press) {
_global.levelArray = _global.playlistArray[_parent._parent.viewNumber].series;
_root.gotoAndPlay('STARTGAME');
}
}
}
button 858 {
on (press) {
rawtext = code.text;
decipheredNameArray = rawtext.split('ilynp');
decipheredName = new String('');
i = 0;
while (i < decipheredNameArray.length - 1) {
decipheredName += decipheredNameArray[i];
++i;
}
codeName = new String('');
i = 0;
while (i < decipheredName.length) {
codeName += String.fromCharCode(decipheredName.charCodeAt(i) - 2);
++i;
}
_parent.addPlaylist = codeName;
decipheredSeries = decipheredNameArray[decipheredNameArray.length - 1];
decipheredSeries = decipheredSeries.split('nl');
decipheredSeries.shift();
i = 0;
while (i < decipheredSeries.length) {
tmpValueSeries = '';
j = 0;
while (j < decipheredSeries[i].length) {
tmpValueSeries += String.fromCharCode(decipheredSeries[i].charCodeAt(j) - 2);
++j;
}
decipheredSeries[i] = tmpValueSeries;
++i;
}
_parent.addPlaylistSeries = decipheredSeries;
_parent.resetLight._alpha = 100;
}
}
button 860 {
on (press) {
getURL('http://pastebin.ca/', '_blank');
}
}
movieClip 863 {
frame 1 {
stop();
}
}
movieClip 864 {
instance icon of movieClip 462 {
onClipEvent (load) {
if (_name != 'icon') {
scale_it = function (x) {
wut_x = Math.abs(x) * 90 / 800;
scale = Math.cos(wut_x * Math.PI / 180);
_yscale = scale * 100;
_xscale = scale * 100;
};
scale_it(_parent._x + _x);
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'icon') {
if (Math.abs(_parent._x + _x) < 450) {
_visible = true;
} else {
_visible = false;
}
scale_it(_parent._x + _x);
}
}
onClipEvent (load) {
viewNumber = _parent._parent._parent.viewNumber;
}
onClipEvent (press) {
_global.playlistArray[viewNumber].series.splice(itemNumber, 1);
with (_parent) {
viewArray = new Array();
viewArray = viewArray.concat(_global.playlistArray[viewNumber].series);
refreshit();
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
}
}
movieClip 865 {
instance of movieClip 864 {
onClipEvent (load) {
function refreshit() {
_parent._parent.resetLight._alpha = 100;
i = viewArray.length;
while (i < biggest_number) {
newname = 'icon' + i;
tellTarget ('newname') {
gotoAndStop(3);
}
++i;
}
i = 0;
while (i < viewArray.length) {
newname = 'icon' + i;
newdepth = icon.getDepth() + i + 1;
duplicateMovieClip(this.icon, newname, newdepth);
eval(newname)._x = 110 * i;
frame = viewArray[i];
tellTarget ('newname') {
itemNumber = this.i;
gotoAndStop(1);
pic.gotoAndStop(this.frame);
}
++i;
}
end = -110 * (viewArray.length - 1);
}
function shuffle() {
arrayLength = _global.playlistArray[viewNumber].series.length;
i = 0;
while (i < arrayLength) {
random_value = random(arrayLength);
tmp_value = _global.playlistArray[viewNumber].series[i];
_global.playlistArray[viewNumber].series[i] = _global.playlistArray[viewNumber].series[random_value];
_global.playlistArray[viewNumber].series[random_value] = tmp_value;
++i;
}
}
var frame;
var viewArray = new Array();
viewNumber = _parent._parent.viewNumber;
viewArray = viewArray.concat(_global.playlistArray[viewNumber].series);
biggest_number = viewArray.length;
refreshit();
new_end = end;
x_speed = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.select.clicked != undefined) {
new_thing = _parent._parent._parent.select.clicked;
_parent._parent._parent.select.clicked = undefined;
_global.playlistArray[viewNumber].series.push(new_thing);
viewArray = new Array();
viewArray = viewArray.concat(_global.playlistArray[viewNumber].series);
refreshit();
_x = end;
x_speed = 2;
}
if (_parent._parent.playlist_shuffle == true) {
_parent._parent.playlist_shuffle = false;
shuffle();
viewArray = new Array();
viewArray = viewArray.concat(_global.playlistArray[viewNumber].series);
refreshit();
}
if (Math.abs(_parent._ymouse) < 65) {
if (_parent._xmouse < 390 && _parent._xmouse > 150) {
x_speed -= 2;
}
if (_parent._xmouse > -390 && _parent._xmouse < -150) {
x_speed += 2;
}
}
_x = _x + x_speed;
x_speed *= 0.8;
if (_x > 0) {
_x = 0;
x_speed = -Math.abs(x_speed) * 0.9;
}
new_end = (new_end * 2 + end) / 3;
if (_x < new_end) {
_x = new_end;
x_speed = Math.abs(x_speed) * 0.9;
}
if (biggest_number < _global.playlistArray[viewNumber].series.length) {
biggest_number = _global.playlistArray[viewNumber].series.length;
}
}
}
}
movieClip 869 {
}
button 871 {
on (press) {
trash = new Sound();
trash.attachSound('trash');
trash.start(0, 0);
_global.playlistArray.splice(viewNumber, 1);
viewNumber = undefined;
gotoAndStop(1);
}
}
button 872 {
on (press) {
gotoAndStop(2);
}
}
movieClip 873 {
frame 1 {
stop();
}
instance of movieClip 511 {
onClipEvent (load) {
function refreshit() {
i = 0;
while (i < _global.playlistArray.length) {
newname = 'playlist' + i;
newdepth = playlist.getDepth() + i + 1;
duplicateMovieClip(this.playlist, newname, newdepth);
eval(newname)._y = 50 * i;
name = _global.playlistArray[i].name;
series = _global.playlistArray[i].series;
tellTarget ('newname') {
name = this.name;
series = this.series;
viewNumber = this.i;
play_name.text = name + ' (' + series.length + ')';
}
++i;
}
end = -inity - 50 * (_global.playlistArray.length - 1);
}
y_speed = 0;
inity = _y;
refreshit();
}
onClipEvent (enterFrame) {
if (Math.abs(_parent._xmouse) < 266) {
if (_parent._ymouse > -69 && _parent._ymouse < -30) {
y_speed += 1;
}
if (_parent._ymouse < 69 && _parent._ymouse > 30) {
y_speed -= 1;
}
}
_y = _y + y_speed;
y_speed *= 0.85;
if (_y < end) {
_y = end;
y_speed *= -0.9;
}
if (_y > inity) {
_y = inity;
y_speed *= -0.9;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.select.clicked != undefined) {
_parent._parent.select.clicked = undefined;
}
}
onClipEvent (enterFrame) {
if (_parent.addPlaylist != undefined) {
newPlaylist = new Object();
newPlaylist.name = _parent.addPlaylist;
newPlaylist.series = new Array();
if (_parent.addPlaylistSeries != undefined) {
newPlaylist.series = _parent.addPlaylistSeries;
}
_global.playlistArray.push(newPlaylist);
_parent.addPlaylist = undefined;
_parent.addPlaylistSeries == undefined;
refreshit();
_y = end;
y_speed = 1;
}
}
}
instance resetLight of movieClip 509 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = _alpha / 2;
}
}
instance of movieClip 863 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 855 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 869 {
onClipEvent (load) {
highlight._alpha = 0;
viewNumber = _parent.viewNumber;
name = _global.playlistArray[viewNumber].name;
series = _global.playlistArray[viewNumber].series;
play_name.text = name;
play_no.text = ' (' + series.length + ')';
}
onClipEvent (enterFrame) {
series = _global.playlistArray[viewNumber].series;
_global.playlistArray[viewNumber].name = play_name.text;
play_no.text = ' (' + series.length + ')';
}
}
instance of movieClip 863 {
onClipEvent (load) {
gotoAndStop(2);
viewNumber = _parent.viewNumber;
n = 0;
}
onClipEvent (enterFrame) {
if (n % 10 == 0) {
n = 0;
playlist = _global.playlistArray[viewNumber];
name = playlist.name;
codeName = new String('');
i = 0;
while (i < name.length) {
codeName += String.fromCharCode(name.charCodeAt(i) + 2);
++i;
}
series = playlist.series;
seriesName = new String('');
i = 0;
while (i < series.length) {
seriesName += 'nl';
j = 0;
while (j < series[i].length) {
seriesName += String.fromCharCode(series[i].charCodeAt(j) + 2);
++j;
}
++i;
}
fullCode = codeName + 'ilynp' + seriesName;
code.text = fullCode;
}
++n;
}
}
instance of movieClip 511 {
onClipEvent (enterFrame) {
if (_parent._parent.select.clicked != undefined) {
_parent._parent.select.clicked = undefined;
}
}
}
}
movieClip 875 {
}
movieClip 876 {
}
movieClip 877 {
}
movieClip 878 {
frame 1 {
stop();
}
instance of movieClip 876 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 1) {
_parent.play();
_yscale = initscale;
_xscale = initscale;
}
}
}
instance forw of movieClip 363 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
++_parent.page_number;
_yscale = initscale;
_xscale = initscale;
}
}
}
instance back of movieClip 363 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
--_parent.page_number;
_yscale = initscale;
_xscale = initscale;
}
}
}
instance of movieClip 877 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
if (_parent._currentframe == 20) {
_parent.play();
_yscale = initscale;
_xscale = initscale;
}
}
}
frame 20 {
stop();
}
frame 40 {
gotoAndStop(1);
}
}
movieClip 879 {
instance select of movieClip 849 {
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
frame = _parent.playlist._currentframe;
if (frame == 2) {
wanted_y = 100;
} else {
wanted_y = -100;
}
if (_y < -80) {
_visible = false;
} else {
_visible = true;
}
_y = (_y * 4 + wanted_y) / 5;
}
}
instance playlist of movieClip 873 {
onClipEvent (load) {
n = 0;
last_currentframe = 1;
stagger = 0;
initscale = _xscale;
}
onClipEvent (enterFrame) {
if (n % 30 == 29) {
n = 0;
_parent.thegame.data.playlistArray = _global.playlistArray;
_parent.thegame.data.flush();
}
++n;
}
onClipEvent (load) {
_y = 180;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
wanted_y = 170;
}
if (_currentframe == 2) {
wanted_y = 236;
}
if (_currentframe == 3) {
wanted_y = 200;
}
if (_currentframe != last_currentframe) {
stagger = 20;
}
_y = (_y * 4 + wanted_y) / 5;
scale = initscale + stagger;
stagger *= -0.8;
_yscale = scale;
_xscale = scale;
last_currentframe = _currentframe;
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
instance of movieClip 878 {
onClipEvent (load) {
text = new Array();
page_number = 0;
i = 0;
text[i] = new Array();
text[i].push(' INTRO TO LEVEL PLAYLISTS');
text[i].push('');
text[i].push('~ Wanted to play only your favs?');
text[i].push('');
text[i].push('~ Wanted to recommend a list of levels to a friend?');
text[i].push('');
text[i].push('~ Wanted to go through all the Ron Paul levels in one sitting');
text[i].push(' for lulz?');
text[i].push('');
text[i].push('~ WELL NOW YOU CAN, with the LEVEL PLAYLIST.');
++i;
text[i] = new Array();
text[i].push('~ To add a new playlist, type in the name you want');
text[i].push(' for it and press the \'+\' button.');
text[i].push('');
text[i].push('~ To edit an existing playlist, click on its name.');
text[i].push('');
text[i].push(' -> Once that is done, to add a level you click');
text[i].push(' its icon in the top shelf. To remove a level you');
text[i].push(' click its icon in the bottom shelf.');
text[i].push('');
text[i].push(' -> You may also delete, shuffle, or play the');
text[i].push(' selected playlist.');
++i;
text[i] = new Array();
text[i].push('~ Wanna share playlists?');
text[i].push('');
text[i].push(' -> A playlist\'s code will appear at the bottom of its');
text[i].push(' playlist-editing screen. You may then share it at');
text[i].push(' PasteBin, which you can go to by clicking the');
text[i].push(' notepad-looking button on the bottom right.');
text[i].push('');
text[i].push(' (you *could* post your code in the comments/reviews...');
text[i].push(' but... uh... PASTEBIN HAS TWITTER. LOL.)');
text[i].push('');
text[i].push(' -> To use a playlist code someone gave you, (how sweet <3)');
text[i].push(' paste it into the box at the bottom of the playlist-');
text[i].push(' adding screen, and then press \'+\'.');
page = new Array(text.length);
i = 0;
while (i < page.length) {
page[i] = new String('');
line = 0;
while (line < text[i].length) {
page[i] += text[i][line] + '\n';
++line;
}
++i;
}
}
onClipEvent (enterFrame) {
infoclip.info.text = page[page_number];
if (page_number <= 0) {
page_number = 0;
back._visible = false;
} else {
back._visible = true;
}
if (page_number >= page.length - 1) {
page_number = page.length - 1;
forw._visible = false;
} else {
forw._visible = true;
}
}
}
}
movieClip 888 {
frame 1 {
stop();
}
instance of movieClip 462 {
onClipEvent (load) {
theName = 'AIG';
myScore = _global.highscores.aig;
myFrame = theName;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = theName;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.score.text = myScore;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
theName = 'EDUCATION';
myScore = _global.highscores.education;
myFrame = theName;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = theName;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.score.text = myScore;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
theName = 'STOCK';
myScore = _global.highscores.stock;
myFrame = theName;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = theName;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.score.text = myScore;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
theName = 'UTILITARIANISM';
myScore = _global.highscores.utilitarianism;
myFrame = theName;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = theName;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.score.text = myScore;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
theName = 'MACROECON';
myScore = _global.highscores.macroecon;
myFrame = theName;
if (hasItBeenPlayed(myFrame)) {
pic.gotoAndStop(myFrame);
} else {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = theName;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.score.text = myScore;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_END';
tehTitle = 'THE END';
tehSaying = 'Finish the game. OBVIOUS ENOUGH.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.end) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_CAKE';
tehTitle = 'PIECE OF CAKE';
tehSaying = 'Click on the Cooking By the Book character in EPICROLL: the cutscene. She\'s got pink hair and a chef hat. She\'s not douchily hidden, don\'t worry.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.cake) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_NO';
tehTitle = 'THERE IS NO REPLAY';
tehSaying = 'Hint: it\'s in the level which isn\'t as intelligently designed.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.no) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_BLOOD';
tehTitle = 'BLOODBATH';
tehSaying = 'Kill 150 of those buggers in the preloader game. If you didn\'t already do that, now\'s a good time to hit F5.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.blood) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_MONA';
tehTitle = 'WHERE THE HELL IS MONA?';
tehSaying = 'In ART: the game, click on the correct Mona Lisa. OH YES, THIS ONE WILL SUCK.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.mona) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_ALL';
tehTitle = 'UNLOCK-NESS MONSTER';
tehSaying = 'Unlock everything! Please? If you do I\'ll let you disable the censors. SCOUT\'S HONOUR.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.all) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 462 {
onClipEvent (load) {
tehFrame = 'UNLOCK_TWEET';
tehTitle = 'A LITTLE BIRDIE TOLD ME';
tehSaying = 'TWEET DREAMS ARE MADE OF THESE. JUST TWEET IT. TWEETY WOMAN. Okay I\'m done. Sorry MJ.';
pic.gotoAndStop(tehFrame);
if (!_global.unlockables.tweet) {
gotoAndStop(2);
}
}
onClipEvent (press) {
if (_currentframe == 1) {
_parent.clicked = tehFrame;
}
}
onClipEvent (rollOver, dragOver) {
wanted_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
wanted_alpha = 0;
}
onClipEvent (enterFrame) {
highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3;
}
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.1;
_parent.info.text = tehSaying;
if (_currentframe == 1) {
myStatus = 'UNLOCKED';
} else {
myStatus = 'LOCKED';
}
_parent.title.text = myStatus + ': ' + tehTitle;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
score.embedFonts = true;
}
onClipEvent (enterFrame) {
if (clicked != undefined) {
foundIt = false;
index = 0;
for (;;) {
if (!(!foundIt && index < _global.levelArray.length)) break;
++index;
if (_global.levelArray[index] == clicked) {
foundIt = true;
}
}
_root.levelIndex = index;
if (clicked == 'REPLAY') {
_root.levelIndex = 0;
}
_root.gotoAndPlay('STARTGAME');
}
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
instance of movieClip 888 {
onClipEvent (load) {
gotoAndStop(5);
score.embedFonts = true;
}
onClipEvent (load) {
score.embedFonts = true;
}
onClipEvent (enterFrame) {
if (!_global.unlockables.all && _global.unlockables.end && _global.unlockables.mona && _global.unlockables.blood && _global.unlockables.tweet && _global.unlockables.cake && _global.unlockables.no) {
_root.alert.newUnlock = 'holy crap, you did it.';
_global.unlockables.all = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
if (clicked != undefined) {
_root.gotoAndStop(clicked);
}
}
}
button 894 {
on (press) {
getURL('http://digg.com/submit?url=' + theFrigginURL + '&title=REPLAYING :the game:', '_blank');
}
}
button 899 {
on (press) {
getURL('http://www.stumbleupon.com/submit?url=' + theFrigginURL, '_blank');
}
}
button 904 {
on (press) {
getURL('http://www.reddit.com/submit?url=' + theFrigginURL, '_blank');
}
}
button 908 {
on (press) {
n -= 1;
}
}
button 911 {
on (press) {
tmp_n = n;
do {
n = random(tweet.length);
} while (tmp_n == n);
}
}
button 912 {
on (press) {
n += 1;
}
}
button 920 {
on (press) {
_root.alert.newUnlock = 'a little birdie told me';
_global.unlockables.tweet = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
getURL('http://twitter.com/home?status=' + tweetIt.text + ' ' + _parent.theFrigginURL, '_blank');
}
}
movieClip 921 {
}
movieClip 922 {
instance of movieClip 921 {
onClipEvent (load) {
urlol.text = 'url: ' + _parent.theFrigginURL;
tweet = new Array();
tweet.push('Don\'t worry, you didn\'t miss a THING last decade.');
tweet.push('REPLAYING :the game: (AKA all\'s equal in the sequel)');
tweet.push('Disclaimer: the following opinions are not necessarily those of faceless hopping amputees.');
tweet.push('I can\'t believe someone would so blatantly whore out this crap:');
tweet.push('5 original tracks. 30 levels. 150 characters. limitless lulz.');
tweet.push('Make your own levels, level playlists, and lulz!');
tweet.push('i accidentally the goddamn batman. he and i are done professionally.');
tweet.push('Philosophical zombie craves minds. and soul food.');
tweet.push('You have the right to remain violent.');
tweet.push('Let\'s strike a bipartisan compromise. Obama is the Kenyan Messiah.');
tweet.push('What do sarah palin, freud, and ron paul have in common?');
tweet.push('What do canada, ben bernanke, and chuck norris have in common?');
lengthOfThing = tweet.length;
i = 0;
while (i < lengthOfThing) {
tmp_i = random(lengthOfThing);
tmp_value = tweet[tmp_i];
tweet[tmp_i] = tweet[i];
tweet[i] = tmp_value;
++i;
}
n = 0;
tweetIt.text = tweet[n];
}
onClipEvent (enterFrame) {
tweetIt.text = tweet[n];
if (n < 0) {
n = tweet.length - 1;
}
if (n >= tweet.length) {
n = 0;
}
}
}
}
instance of movieClip 922 {
onClipEvent (load) {
theFrigginURL = 'http://bit.ly/8Y5yUO';
}
}
instance of movieClip 466 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
instance alert of movieClip 286 {
onClipEvent (load) {
initx = _x;
hidex = _x - 300;
_x = hidex;
count = 0;
unlocked.embedFonts = true;
var gong = new Sound();
gong.attachSound('alert');
}
onClipEvent (enterFrame) {
if (count > 0) {
wantedx = initx;
--count;
} else {
wantedx = hidex;
}
_x = (_x * 2 + wantedx) / 3;
if (_x < -100) {
_visible = false;
} else {
_visible = true;
}
if (newUnlock != undefined) {
unlocked.text = newUnlock;
newUnlock = undefined;
gong.start(0, 0);
count = 60;
}
if (newScore != undefined) {
newScore = undefined;
gong.start(0, 0);
count = 60;
}
}
}
frame 11 {
function createNewPlaylist() {
havePushedYet = true;
newPlaylist = new Object();
newPlaylist.name = newName;
newPlaylist.series = new Array();
_global.playlistArray.unshift(newPlaylist);
}
function addThisLevel() {
_global.playlistArray[0].series.push(_global.levelArray[_root.levelIndex - 1]);
_root.thegame.data.playlistArray = _global.playlistArray;
_root.thegame.data.flush();
}
function removeLastLevel() {
_global.playlistArray[0].series.pop();
thegame.data.playlistArray = _global.playlistArray;
thegame.data.flush();
}
if (!fromLvlSelect) {
_root.levelIndex = 0;
}
fromLvlSelect = false;
startGameTime = getTimer();
newName = 'My Fav Levels ~ ';
date = new Date();
switch (date.getDay()) {
case 0:
newName += 'Sun ';
break;
case 1:
newName += 'Mon ';
break;
case 2:
newName += 'Tues ';
break;
case 3:
newName += 'Wed ';
break;
case 4:
newName += 'Thur ';
break;
case 5:
newName += 'Fri ';
break;
case 6:
newName += 'Sat ';
}
if (date.getMinutes() < 10) {
theFrigginMinutes = '0' + date.getMinutes();
} else {
theFrigginMinutes = date.getMinutes();
}
if (date.getHours() >= 12) {
newName += date.getHours() - 12 + ':' + theFrigginMinutes + 'PM';
} else {
if (date.getHours() != 0) {
newName += date.getHours() + ':' + theFrigginMinutes + 'AM';
} else {
newName += '12:' + theFrigginMinutes + 'AM';
}
}
havePushedYet = false;
_global.all_around_hit = function (target, hitter) {
with (target) {
target.yes_all_around_hit = false;
if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) {
target.yes_all_around_hit = true;
}
}
};
_global.back_to_normal = function () {
_root.quality = 'HIGH';
_root._rotation = 0;
_root._x = 0;
_root._y = 0;
};
}
frame 12 {
stop();
}
movieClip 1000 {
}
instance of movieClip 1000 {
onClipEvent (load) {
if (_root.levelIndex >= _global.levelArray.length || _root.levelIndex < 0) {
_root.gotoAndStop('mainmenu');
}
_root.level_name = _global.levelArray[_root.levelIndex];
this.gotoAndStop(_root.level_name);
if (_root.level_name == 'THE END') {
min.embedFonts = true;
sec.embedFonts = true;
timeDiff = Math.round((getTimer() - _root.startGameTime) / 1000);
sec.text = timeDiff % 60;
min.text = (timeDiff - timeDiff % 60) / 60;
}
n = 0;
var gong = new Sound();
gong.attachSound('gong');
gong.start(0, 0);
}
onClipEvent (enterFrame) {
++n;
if (n > 100) {
_root.gotoAndStop(_root.level_name);
}
}
}
movieClip 1007 {
frame 3 {
gotoAndStop(1);
}
}
movieClip 1008 {
instance of movieClip 800 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation - rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
--_root.levelIndex;
_root.gotoAndStop('Start');
}
}
instance of movieClip 1007 {
onClipEvent (load) {
stop();
jump = false;
y_speed = 0;
inity = _y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
jump = true;
} else {
jump = false;
}
if (_y < inity - 0.02) {
jump = false;
}
if (jump) {
y_speed = -4;
}
y_speed += 1;
_y = _y + y_speed;
if (_y > inity) {
_y = inity;
y_speed *= -0.5;
}
}
onClipEvent (press) {
if (!_root.havePushedYet) {
_root.createNewPlaylist();
}
if (_currentframe == 1) {
_root.addThisLevel();
} else {
_root.removeLastLevel();
}
this.nextFrame();
}
}
instance of movieClip 802 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation + rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
}
movieClip 1019 {
}
movieClip 1054 {
frame 61 {
_visible = false;
stop();
}
}
movieClip 1086 {
}
movieClip 1087 {
frame 1 {
stop();
}
}
movieClip 1091 {
instance of movieClip 1087 {
onClipEvent (load) {
gotoAndStop(_parent.shit);
}
}
frame 180 {
stop();
}
}
movieClip 1110 {
instance of movieClip 796 {
onClipEvent (enterFrame) {
if (next_level) {
_root.gotoAndStop('start');
}
}
}
instance of movieClip 800 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation - rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
_visible = false;
_parent.explosion.play();
_root.alert.newUnlock = 'there is no replay';
_global.unlockables.no = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
}
instance of movieClip 1007 {
onClipEvent (load) {
stop();
jump = false;
y_speed = 0;
inity = _y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
jump = true;
} else {
jump = false;
}
if (_y < inity - 0.02) {
jump = false;
}
if (jump) {
y_speed = -4;
}
y_speed += 1;
_y = _y + y_speed;
if (_y > inity) {
_y = inity;
y_speed *= -0.5;
}
}
onClipEvent (press) {
if (!_root.havePushedYet) {
_root.createNewPlaylist();
}
if (_currentframe == 1) {
_root.addThisLevel();
} else {
_root.removeLastLevel();
}
this.nextFrame();
}
}
instance of movieClip 802 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
spin = false;
rotation_speed = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
if (spin) {
rotation_speed += 1;
}
rotation_speed *= 0.95;
_rotation = _rotation + rotation_speed;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
spin = true;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
spin = false;
}
onClipEvent (press) {
_root.gotoAndStop('MainMenu');
}
}
instance of movieClip 1091 {
onClipEvent (load) {
shit = 3;
}
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
if (next_level) {
_root.gotoAndStop('mainmenu');
}
}
}
}
instance of movieClip 1110 {
onClipEvent (load) {
_root._x = 0;
_root._y = 0;
Mouse.show();
_root._rotation = 0;
_root._quality = 'HIGH';
_root._yscale = 100;
_root._xscale = 100;
if (_root.level_name == 'THE END') {
_root.alert.newUnlock = 'the end';
_global.unlockables.end = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
this.gotoAndStop(_root.level_name);
_root.levelIndex += 1;
if (!_global.hasItBeenPlayed(_global.levelArray[_root.levelIndex])) {
_global.playedThrough.push(_global.levelArray[_root.levelIndex]);
thegame.data.playedThrough = _global.playedThrough;
thegame.data.flush();
}
var gong = new Sound();
if (_root.level_name == 'CHRISTIANITY') {
gong.attachSound('jesus');
gong.start(0, 0);
} else {
gong.attachSound('gong');
}
gong.start(0, 0);
}
}
instance alert of movieClip 286 {
onClipEvent (load) {
initx = _x;
hidex = _x - 300;
_x = hidex;
count = 0;
unlocked.embedFonts = true;
var gong = new Sound();
gong.attachSound('alert');
}
onClipEvent (enterFrame) {
if (count > 0) {
wantedx = initx;
--count;
} else {
wantedx = hidex;
}
_x = (_x * 2 + wantedx) / 3;
if (_x < -100) {
_visible = false;
} else {
_visible = true;
}
if (newUnlock != undefined) {
this.gotoAndStop(1);
unlocked.text = newUnlock;
newUnlock = undefined;
gong.start(0, 0);
count = 60;
}
if (newScore != undefined) {
this.gotoAndStop(2);
unlocked.text = newScore;
newScore = undefined;
gong.start(0, 0);
count = 60;
}
}
}
movieClip 1137 {
instance of movieClip 138 {
onClipEvent (load) {
if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) {
_xscale = _xscale * -1;
}
}
}
}
movieClip 1138 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 5 {
stop();
}
}
movieClip 1139 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 8 {
_parent._parent.soft_step.start(0, 0);
}
frame 11 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 16 {
_parent._parent.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1140 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.jumping_frame);
}
}
frame 7 {
stop();
}
}
movieClip 1141 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
frame 6 {
stop();
}
}
movieClip 1142 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
frame 8 {
_parent._parent.softer_step.start(0, 0);
}
frame 16 {
_parent._parent.softer_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1143 {
frame 1 {
stop();
}
}
movieClip 1144 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1143 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1150 {
}
movieClip 1153 {
}
movieClip 1154 {
}
movieClip 1161 {
}
movieClip 1163 {
}
movieClip 1169 {
}
movieClip 1171 {
}
movieClip 1174 {
frame 1 {
}
}
movieClip 1187 {
}
movieClip 1188 {
instance of movieClip 1187 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
moving = Math.round(_width * 5);
x_speed = (random(moving) - moving / 2) / 3;
y_speed = (random(moving) - moving / 2) / 3;
_x = _x + x_speed;
_y = _y + y_speed;
_alpha = random(25) + 75;
alpha = random(5) + 5;
_yscale = random(50) + 100;
_xscale = random(50) + 100;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_y = _y + y_speed;
x_speed *= 0.9;
y_speed *= 0.9;
if (_alpha < 0) {
this.gotoAndStop(6);
}
}
}
}
movieClip 1190 {
frame 1 {
stop();
}
}
movieClip 1191 {
instance of movieClip 1190 {
onClipEvent (load) {
moving = Math.round(_width * 2 / 3);
_x = _x + (random(moving) - moving / 2);
_y = _y + (random(moving) - moving / 2);
x_speed = (random(moving) - moving / 2) / 7;
y_speed = (random(moving) - moving / 2) / 7;
_alpha = random(25) + 75;
alpha = random(5) + 5;
_yscale = random(50) + 100;
_xscale = random(50) + 100;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_y = _y + y_speed;
_alpha = _alpha - alpha;
if (_alpha < 0) {
this.gotoAndStop(2);
}
}
}
}
movieClip 1197 {
frame 220 {
_root.gotoAndStop('end');
}
}
movieClip 1198 {
frame 1 {
stop();
}
instance of movieClip 1153 {
onClipEvent (mouseDown) {
lock = true;
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse) && lock) {
if (_root._xmouse > 416 && _root._xmouse < 463 && _root._ymouse > 190 && _root._ymouse < 253) {
_root.alert.newUnlock = 'where the hell is mona?';
_global.unlockables.mona = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
_parent.nextFrame();
}
}
}
frame 2 {
stop();
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 1161 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 1161 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1143 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 4;
this.jumping_frame = 5;
this.squatting_frame = 6;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
if (Key.isDown(38) && y_speed < 0) {
}
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 500) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
_parent.nextFrame();
}
}
if (_x < 214) {
_x = 214;
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
movieClip 1199 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
distance = random(150);
scale = random(50) + 25;
with (thing) {
_y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433);
_x = distance * Math.sin(rotation * 0.0174532925199433);
_yscale = scale;
_xscale = _yscale;
}
}
function cloud_move(thing) {
with (thing) {
edge = 150 * Math.sqrt(1 - _y * _y / 3600);
y_edge = 60 * Math.sqrt(1 - _x * _x / 22500);
_x += speed;
_y += y_speed;
fake_alpha = edge - Math.abs(_x);
second_alpha = (y_edge - Math.abs(_y)) / 0.4;
if (fake_alpha > second_alpha) {
fake_alpha = second_alpha;
}
if (fake_alpha <= 0) {
_x = -edge;
_y = -y_edge;
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
}
}
denominator = 6;
}
frame 2 {
stop();
_visible = true;
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
}
movieClip 1204 {
frame 1 {
stop();
}
}
movieClip 1205 {
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
instance of movieClip 1204 {
onClipEvent (load) {
_yscale = 20 + random(30);
_xscale = 20 + random(30);
gotoAndStop(random(6));
_x = random(640);
_y = random(400);
}
}
}
movieClip 1213 {
}
movieClip 1218 {
}
movieClip 1220 {
frame 1 {
stop();
}
instance of movieClip 1218 {
onClipEvent (load) {
_rotation = 0;
parent_x = _parent._x;
parent_y = _parent._y;
_rotation = _rotation + 12 / _parent.seconds;
}
onClipEvent (enterFrame) {
if (go) {
if (wait_til_black >= 30) {
_parent._parent.blackout.end = true;
} else {
wait_til_black += 1;
}
_parent._x = parent_x + random(9) - 4;
_parent._y = parent_y + random(9) - 4;
} else {
_rotation = _rotation + 12 / _parent.seconds;
}
if (last_rotation / _rotation < 0 && _rotation > 0 || _rotation == 0) {
wait_til_black = 0;
go = true;
}
last_rotation = _rotation;
}
}
}
movieClip 1235 {
frame 1 {
stop();
}
frame 1170 {
_parent._parent.black.gotoAndPlay(10);
}
frame 1201 {
stop();
}
}
movieClip 1236 {
instance of movieClip 1199 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1220 {
onClipEvent (load) {
seconds = 33;
}
onClipEvent (enterFrame) {
_rotation = _rotation - 0.1;
}
}
instance of movieClip 1235 {
onClipEvent (load) {
initx = _x;
inity = _y;
wait = 60;
}
onClipEvent (enterFrame) {
if (wait == 0) {
if (_currentframe == 1) {
gotoAndPlay(2);
}
if (_currentframe > 700) {
doom = Math.round(Math.pow(_currentframe - 700, 1.2) / 200);
i = 0;
while (i < doom) {
nextFrame();
++i;
}
_x = initx + Math.pow(doom, 3) * (random(10) - 5) / 80;
_y = inity + Math.pow(doom, 3) * (random(10) - 5) / 80;
_parent._parent.game._x = Math.pow(doom, 3) * (random(10) - 5) / 30;
_parent._parent.game._y = Math.pow(doom, 3) * (random(10) - 5) / 30;
}
} else {
wait -= 1;
}
if (this._currentframe > 559) {
_parent._parent.flaree.gotoAndStop(_currentframe - 558);
}
}
}
}
movieClip 1238 {
}
movieClip 1242 {
}
movieClip 1243 {
instance splat of movieClip 1242 {
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
}
}
movieClip 1244 {
frame 1 {
stop();
}
}
movieClip 1245 {
}
movieClip 1246 {
instance goo of movieClip 1244 {
onClipEvent (load) {
if (_name == 'goo') {
_alpha = 0;
}
}
}
}
movieClip 1252 {
frame 9 {
_parent.gotoAndStop(3);
}
}
movieClip 1253 {
frame 1 {
stop();
}
frame 2 {
this.cacheAsBitmap = false;
}
}
movieClip 1254 {
instance goo of movieClip 1253 {
onClipEvent (load) {
if (_name == 'goo') {
_alpha = 0;
back_scale = 1;
} else {
speed = random(10) + 10;
rotation = random(360);
_x = _x + (random(40) - 20);
_y = _y + (random(40) - 20);
gooname = '_parent._parent.back.' + _name;
eval(gooname)._x = this._x;
eval(gooname)._y = this._y;
y_speed = -speed * Math.cos(rotation * 0.0174532925199433);
x_speed = -speed * Math.sin(rotation * 0.0174532925199433);
}
}
onClipEvent (enterFrame) {
if (_name == 'goo') {
} else {
if (_currentframe == 1 && _y > -30 && _x > -30 && _x < 690 && _y < 430) {
if (_parent._parent.walls.hitTest(_x, _y, true)) {
gotoAndStop(2);
bloodyname = 's' + _parent._parent.splat.s_number;
initdepth = _parent._parent.splat.splat.getDepth() + _parent._parent.splat.s_number;
_parent._parent.splat.splat.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent._parent.splat.s_number += 1;
}
if (!stop_hit) {
_x = _x + x_speed / 5;
_y = _y + y_speed / 5;
}
gooname = '_parent._parent.back.' + _name;
eval(gooname)._x = this._x;
eval(gooname)._y = this._y;
} else {
gooname = '_parent._parent.back.' + _name;
tellTarget ('gooname') {
gotoAndStop(2);
_visible = false;
}
if (_currentframe != 2) {
this.gotoAndStop(3);
this._visible = false;
}
}
}
}
}
}
movieClip 1257 {
}
movieClip 1263 {
instance of movieClip 1257 {
onClipEvent (load) {
x_speed = random(20) - 10;
y_speed = -random(15) - 5;
_parent._x += x_speed;
_parent._y += y_speed;
rot = random(20) - 10;
alph = 5 + random(10);
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 7) {
_parent._x += x_speed / 5;
_parent._y += y_speed / 5;
_parent._rotation += rot;
if (_parent._y > 400 || _parent._y < -400 || _parent._x > 640 || _parent._x < -640) {
_parent._visible = false;
_parent.gotoAndStop(7);
}
}
}
}
}
movieClip 1265 {
}
movieClip 1266 {
instance of movieClip 1265 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
moving = Math.round(_width * 5);
x_speed = (random(moving) - moving / 2) / 3;
y_speed = (random(moving) - moving / 2) / 3;
_x = _x + x_speed;
_y = _y + y_speed;
_alpha = random(25) + 75;
alpha = random(5) + 5;
_yscale = random(50) + 100;
_xscale = random(50) + 100;
}
onClipEvent (enterFrame) {
_x = _x + x_speed / 2;
_y = _y + y_speed / 2;
_rotation = _rotation + rot;
if (_y > 400 || _y < -400 || _x > 640 || _x < -640) {
_visible = false;
}
}
}
}
movieClip 1275 {
frame 17 {
stop();
_visible = false;
}
}
movieClip 1280 {
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1263 {
onClipEvent (load) {
gotoAndStop(6);
}
}
frame 20 {
stop();
}
}
movieClip 1281 {
instance boom of movieClip 1280 {
onClipEvent (load) {
if (_name != 'boom') {
_visible = true;
} else {
_visible = false;
}
}
}
}
movieClip 1282 {
frame 1 {
var bloodsplode = new Sound();
bloodsplode.attachSound('Level_Bloodsplode');
bloodsplode.setVolume(50);
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
soft_step.setVolume(50);
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(25);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(75);
goo_number = 1;
back_goo_number = 1;
invisible_goo_number = 1;
}
instance splat of movieClip 1243 {
onClipEvent (load) {
s_number = 100;
}
}
instance player of movieClip 1143 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_y > 277 && _x > 173 && _x < 463) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_xscale = my_scale;
_yscale = my_y_scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
my_scale = _xscale;
my_y_scale = _yscale;
walking_speed = 0.8;
grav = 1;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
init_x = _x;
init_y = _y;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
if (Key.isDown(38) && y_speed < 0) {
}
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300 || _x > 533 || _x < 103) {
_parent.player_shadow._alpha = 0;
with (_parent.boom) {
bloodyname = 's' + s_number;
initdepth = boom.getDepth() + s_number;
boom.duplicateMovieClip(bloodyname, initdepth, {'_x': _parent.player._x, '_y': _parent.player._y});
s_number += 1;
}
with (_parent.front.goo) {
i = 0;
while (i <= 20) {
scale = 20 + random(20);
gooname = 'goo' + _parent._parent.goo_number;
initdepth = _parent._parent.front.goo.getDepth() + _parent._parent.goo_number;
_parent._parent.front.goo.duplicateMovieClip(gooname, initdepth, {'_alpha': 100, '_x': _parent._parent.player._x, '_y': _parent._parent.player._y, '_xscale': scale, '_yscale': scale});
_parent._parent.goo_number += 1;
gooname = 'goo' + _parent._parent.back_goo_number;
initdepth = _parent._parent.back.goo.getDepth() + _parent._parent.back_goo_number;
_parent._parent.back.goo.duplicateMovieClip(gooname, initdepth, {'_alpha': 100, '_x': _parent._parent.player._x, '_y': _parent._parent.player._y, '_xscale': scale * back_scale, '_yscale': scale * back_scale});
_parent._parent.back_goo_number += 1;
++i;
}
}
_parent.bloodsplode.start(0, 0);
_x = init_x;
_y = init_y;
x_speed = 0;
y_speed = 0;
_rotation = 0;
fall_off_edge = false;
gotoAndStop(1);
recovering = 6;
}
if (recovering == 6) {
_xscale = _xscale * 1.5;
_yscale = _yscale * 0.6;
}
if (recovering == 5) {
_xscale = _xscale * 0.7;
_yscale = _yscale * 1.3;
}
if (recovering == 4) {
_xscale = _xscale * 1.3;
_yscale = _yscale * 0.7;
}
if (recovering == 2) {
_xscale = _xscale * 0.9;
_yscale = _yscale * 1.1;
}
if (recovering > 0) {
recovering -= 1;
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance invisible of movieClip 1245 {
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
}
instance back of movieClip 1246 {
onClipEvent (load) {
_x = 0;
_y = 0;
}
}
instance front of movieClip 1254 {
onClipEvent (load) {
_x = 0;
_y = 0;
}
}
instance boom of movieClip 1281 {
onClipEvent (load) {
s_number = 100;
}
}
}
movieClip 1283 {
frame 1 {
stop();
}
frame 328 {
stop();
_visible = false;
}
}
movieClip 1284 {
}
movieClip 1289 {
frame 9 {
stop();
}
frame 30 {
_parent.gotoAndStop(2);
}
}
movieClip 1291 {
frame 1 {
_visible = false;
}
frame 614 {
_parent.addy._alpha = 100;
}
frame 765 {
_parent.addy._alpha = 60;
}
frame 920 {
_parent.addy._alpha = 100;
}
frame 1288 {
stop();
}
}
movieClip 1292 {
frame 1 {
stop();
}
instance addy of movieClip 1284 {
onClipEvent (load) {
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 1;
_visible = true;
} else {
_visible = false;
}
}
}
frame 2 {
play();
}
frame 125 {
_root.gotoAndStop('end');
}
}
movieClip 1293 {
frame 1 {
stop();
}
}
movieClip 1294 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 55;
this.jumping_frame = 56;
this.squatting_frame = 57;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1297 {
}
movieClip 1303 {
}
movieClip 1306 {
frame 250 {
_parent.gotoAndStop(2);
}
}
movieClip 1309 {
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
guncontrol_keyboard(this);
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
}
}
}
movieClip 1315 {
}
movieClip 1325 {
instance of movieClip 1315 {
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
}
frame 24 {
stop();
}
}
movieClip 1327 {
}
movieClip 1328 {
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance of movieClip 1327 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
_parent.shot._x = _parent._xmouse;
_parent.shot._y = _parent._ymouse;
_parent.shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
_parent.shot2._x = _parent._xmouse;
_parent.shot2._y = _parent._ymouse;
_parent.shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
_parent.shot3._x = _parent._xmouse;
_parent.shot3._y = _parent._ymouse;
_parent.shot3.gotoAndPlay(1);
}
}
}
};
}
}
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
guncontrol_keyboard(this);
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
}
}
}
movieClip 1330 {
}
movieClip 1332 {
instance of movieClip 1330 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
_parent.shot._x = _parent._xmouse;
_parent.shot._y = _parent._ymouse;
_parent.shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
_parent.shot2._x = _parent._xmouse;
_parent.shot2._y = _parent._ymouse;
_parent.shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
_parent.shot3._x = _parent._xmouse;
_parent.shot3._y = _parent._ymouse;
_parent.shot3.gotoAndPlay(1);
}
}
}
};
}
}
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
guncontrol_keyboard(this);
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
}
movieClip 1334 {
}
movieClip 1339 {
}
movieClip 1345 {
}
movieClip 1347 {
frame 1 {
stop();
}
instance of movieClip 1339 {
onClipEvent (load) {
frame = random(3) + 1;
gotoAndStop(frame);
}
}
instance of movieClip 1345 {
onClipEvent (load) {
frame = random(3) + 1;
gotoAndStop(frame);
}
}
frame 15 {
gotoAndStop(1);
}
}
movieClip 1348 {
instance gun of movieClip 1347 {
onClipEvent (mouseDown) {
_parent._parent.crosshair._xscale = 70;
if (!shoot && _parent._visible == true) {
this.gotoAndPlay(2);
_parent._parent.bang._alpha = 20;
_parent._parent.crosshair._rotation += random(50) + 20;
if (random(2) == 0) {
_parent._parent.pistol1.setVolume(100);
_parent._parent.pistol1.start(0, 0);
} else {
_parent._parent.pistol2.setVolume(100);
_parent._parent.pistol2.start(0, 0);
}
}
shoot = true;
}
onClipEvent (mouseUp) {
if (shoot) {
shoot = false;
_parent._parent.crosshair._xscale = 120;
}
}
onClipEvent (enterFrame) {
Mouse.hide();
_parent._parent.crosshair.startDrag(true);
_parent._parent.crosshair._rotation += 2;
_parent._parent.crosshair._xscale += 50;
_parent._parent.crosshair._xscale /= 1.5;
_parent._parent.crosshair._yscale = _parent._parent.crosshair._xscale;
_parent._x = _parent._parent.crosshair._x / 1.5 + 213;
_parent._y = _parent._parent.crosshair._y / 1.5 + 133;
delta_x = _parent._x - _root._xmouse;
delta_y = _parent._y - _root._ymouse;
_parent._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
}
}
}
movieClip 1352 {
}
movieClip 1359 {
}
movieClip 1361 {
}
movieClip 1363 {
}
movieClip 1371 {
}
movieClip 1389 {
frame 1 {
stop();
}
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
guncontrol_keyboard(this);
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance of movieClip 1371 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
_parent.shot._x = _parent._xmouse;
_parent.shot._y = _parent._ymouse;
_parent.shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
_parent.shot2._x = _parent._xmouse;
_parent.shot2._y = _parent._ymouse;
_parent.shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
_parent.shot3._x = _parent._xmouse;
_parent.shot3._y = _parent._ymouse;
_parent.shot3.gotoAndPlay(1);
}
}
}
};
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
frame 9 {
stop();
}
instance of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
}
onClipEvent (load) {
guncontrol_keyboard(this);
}
}
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
}
onClipEvent (load) {
if (_parent._name != 'blood') {
blood_function = function () {
guncontrol_keyboard(this);
tilt_frame = 50.89127587821378 * (_parent._x - 320) / (_parent._y - 215);
tilt_frame += 202;
_parent.tilt.gotoAndStop(Math.round(tilt_frame));
_parent.tilt._height = height_wanted;
_parent.tilt._width = width_wanted;
};
}
}
onClipEvent (enterFrame) {
if (_parent._name != 'blood') {
blood_function();
}
}
}
}
movieClip 1394 {
frame 1 {
stop();
}
}
movieClip 1396 {
frame 1 {
stop();
}
instance of movieClip 1394 {
onClipEvent (enterFrame) {
_xscale = 7000 / _parent._parent._xscale;
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x / 2) / 250;
_yscale = _xscale;
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x / 2) / 250;
_yscale = _xscale;
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x / 2) / 250;
_yscale = _xscale;
}
}
instance of movieClip 1394 {
onClipEvent (enterFrame) {
_xscale = 7000 / _parent._parent._xscale;
}
}
}
movieClip 1398 {
frame 1 {
stop();
}
instance wall of movieClip 1396 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
shot._x = _xmouse;
shot._y = _ymouse;
shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
shot2._x = _xmouse;
shot2._y = _ymouse;
shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
shot3._x = _xmouse;
shot3._y = _ymouse;
shot3.gotoAndPlay(1);
}
}
}
};
}
}
}
movieClip 1400 {
}
movieClip 1401 {
frame 1 {
stop();
}
instance of movieClip 1187 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
grav = (random(5) + 1) / 50;
y_speed = 0;
rot = (random(10) - 5) / 10;
inity = _y;
}
onClipEvent (enterFrame) {
if (_parent._visible) {
y_speed += grav;
_y = _y + y_speed;
_rotation = _rotation + rot;
_parent.drip._height = _y - inity + 50;
_parent.drip._alpha -= grav * 3;
if (_y > 450) {
_visible = false;
}
if (_parent.drip._alpha < 0) {
_parent.gotoAndStop(2);
_parent._visible = false;
}
}
}
}
}
movieClip 1402 {
instance gristle of movieClip 1401 {
onClipEvent (load) {
if (_name == 'gristle') {
_alpha = 0;
} else {
_alpha = 100;
_x = random(640);
_y = random(300);
}
}
}
}
movieClip 1403 {
frame 1 {
gotoAndStop(random(2) + 1);
_rotation = random(360);
}
}
movieClip 1404 {
}
movieClip 1405 {
}
movieClip 1406 {
frame 1 {
_visible = false;
}
instance brain of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
}
onClipEvent (load) {
if (_parent._name != 'blood') {
blood_function = function () {
guncontrol_keyboard(this);
tilt_frame = 50.89127587821378 * (_parent._x - 320) / (_parent._y - 215);
tilt_frame += 202;
_parent.tilt.gotoAndStop(Math.round(tilt_frame));
_parent.tilt._height = height_wanted;
_parent.tilt._width = width_wanted;
};
}
}
onClipEvent (enterFrame) {
if (_parent._name != 'blood') {
blood_function();
}
}
}
frame 2 {
_visible = true;
stop();
}
}
movieClip 1407 {
instance blood of movieClip 1406 {
onClipEvent (load) {
if (_name == 'blood') {
_alpha = 0;
} else {
_alpha = 100;
brain.height_wanted = _height;
brain.width_wanted = _width;
}
}
}
}
movieClip 1409 {
}
movieClip 1412 {
instance of movieClip 1409 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
_parent.shot._x = _parent._xmouse;
_parent.shot._y = _parent._ymouse;
_parent.shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
_parent.shot2._x = _parent._xmouse;
_parent.shot2._y = _parent._ymouse;
_parent.shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
_parent.shot3._x = _parent._xmouse;
_parent.shot3._y = _parent._ymouse;
_parent.shot3.gotoAndPlay(1);
}
}
}
};
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
}
movieClip 1414 {
frame 1 {
stop();
}
instance of movieClip 1409 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
_parent.shot._x = _parent._xmouse;
_parent.shot._y = _parent._ymouse;
_parent.shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
_parent.shot2._x = _parent._xmouse;
_parent.shot2._y = _parent._ymouse;
_parent.shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
_parent.shot3._x = _parent._xmouse;
_parent.shot3._y = _parent._ymouse;
_parent.shot3.gotoAndPlay(1);
}
}
}
};
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
}
}
}
movieClip 1420 {
}
movieClip 1423 {
instance of movieClip 47 {
onClipEvent (load) {
_rotation = random(360);
}
}
frame 70 {
stop();
}
}
movieClip 1424 {
instance of movieClip 41 {
onClipEvent (load) {
_rotation = random(360);
}
}
frame 71 {
stop();
}
}
movieClip 1425 {
frame 1 {
stop();
}
}
movieClip 1426 {
instance blood of movieClip 1425 {
onClipEvent (load) {
if (_name == 'blood') {
_alpha = 0;
} else {
gotoAndStop(random(2) + 1);
_alpha = 100;
_x = (blood_y - 215) * 1.76 / (_parent._parent._xscale / 100);
scale = _x * 1.13;
if (_parent._parent._parent._name == 'right_wall') {
multiplier = Math.abs(blood_x - _x) / (blood_y - 215) * 3.52;
multiplier *= 1.5;
}
if (_parent._parent._parent._name == 'left_wall') {
multiplier = Math.abs(blood_x - _x) / (blood_y - 215) * 3.52;
multiplier = 1.4 - multiplier;
}
if (multiplier < 0.3) {
multiplier = 0;
}
if (multiplier > 2) {
multiplier = 2;
}
scale *= multiplier;
_yscale = (random(100) + 100) * scale / 200;
_xscale = (random(100) + 100) * scale / 200;
_y = _y + (random(Math.round(_xscale)) - _xscale / 2) / 3;
}
}
}
}
movieClip 1429 {
frame 1 {
stop();
}
instance of movieClip 1420 {
onClipEvent (load) {
_visible = false;
if (_parent._parent._name == 'right_wall') {
this.gotoAndStop(2);
}
if (_parent._parent._name == 'left_wall') {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.mm.mm._currentframe == 3) {
_visible = true;
}
}
}
instance blood of movieClip 1426 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'blood_x': new_blood_x, 'blood_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance shot of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x * 66) / 100;
_xscale = _xscale / 5;
_yscale = _xscale;
}
}
instance shot2 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x * 66) / 100;
_xscale = _xscale / 5;
_yscale = _xscale;
}
}
instance shot3 of movieClip 1325 {
onClipEvent (load) {
gotoAndStop(24);
initscale = _xscale;
}
onClipEvent (enterFrame) {
_xscale = initscale * (100 + _x * 66) / 100;
_xscale = _xscale / 5;
_yscale = _xscale;
}
}
instance of movieClip 1394 {
onClipEvent (enterFrame) {
_xscale = 7000 / _parent._parent._xscale;
}
}
}
movieClip 1431 {
frame 1 {
stop();
}
instance wall of movieClip 1429 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
shot._x = _xmouse;
shot._y = _ymouse;
shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
shot2._x = _xmouse;
shot2._y = _ymouse;
shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
shot3._x = _xmouse;
shot3._y = _ymouse;
shot3.gotoAndPlay(1);
}
}
}
};
}
}
}
movieClip 1443 {
}
movieClip 1447 {
}
movieClip 1456 {
frame 17 {
stop();
}
}
movieClip 1457 {
instance of movieClip 1447 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1464 {
frame 13 {
stop();
_parent._parent._visible = false;
}
}
movieClip 1467 {
instance of movieClip 1257 {
onClipEvent (load) {
x_speed = random(20) - 10;
y_speed = -random(15) - 5;
_parent._x += x_speed;
_parent._y += y_speed;
rot = random(20) - 10;
scale = 100 + random(20) - 10;
alph = 5 + random(10);
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 7) {
_parent._x += x_speed;
_parent._y += y_speed;
y_speed += 2;
_parent._rotation += rot;
_parent._xscale *= scale / 100;
_parent._yscale = _parent._xscale;
_parent._alpha -= alph / 2;
if (_parent._alpha <= 0) {
_parent.gotoAndStop(7);
_parent._visible = false;
}
}
}
}
}
movieClip 1471 {
frame 1 {
stop();
}
instance of movieClip 1447 {
onClipEvent (load) {
gotoAndStop(_parent.standing_frame);
}
}
instance shot of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
instance shot2 of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
instance shot3 of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
frame 3 {
_parent._parent.bloodydeath.start(0, 0);
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(6);
}
}
}
movieClip 1472 {
instance of movieClip 1471 {
onClipEvent (load) {
health = 3;
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
walk_left_limit = -25;
walk_right_limit = 25;
this.standing_frame = random(_parent._parent.char_random_value) + _parent._parent.char_normal_value;
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
if (_currentframe == 1) {
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
shot._x = _xmouse;
shot._y = _ymouse;
shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
shot2._x = _xmouse;
shot2._y = _ymouse;
shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
shot3._x = _xmouse;
shot3._y = _ymouse;
shot3.gotoAndPlay(1);
}
}
}
_parent._y -= 5 * _parent._yscale / 100;
health -= 1;
};
}
}
onClipEvent (enterFrame) {
if (_currentframe < 3) {
if (random(10) == 0 && !walking) {
walking = true;
walk_x_speed = (random(5) - 2) / 2;
if (walk_x_speed == 0 && walk_y_speed == 0) {
walking = false;
}
}
if (walking) {
if (this._currentframe != 2) {
this.gotoAndStop(2);
}
if (_x < walk_left_limit) {
_x = walk_left_limit;
walk_x_speed *= -1;
}
if (_x > walk_right_limit) {
_x = walk_right_limit;
walk_x_speed *= -1;
}
if (random(20) == 0) {
walking = false;
walk_x_speed = 0;
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(1);
}
_x = _x + walk_x_speed;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 3) {
guncontrol_keyboard(this);
if (_parent._y < 220 || _parent._y > 700) {
_parent._visible = false;
} else {
_parent._visible = true;
}
} else {
_parent._visible = true;
}
}
onClipEvent (enterFrame) {
if (health <= 0 && _currentframe < 3) {
this.gotoAndStop(3);
_parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 30);
_parent._parent.blood.new_blood_x = _parent._x;
_parent._parent.blood.new_blood_y = _parent._y;
_parent._parent.right_wall.wall.blood.new_blood_x = _parent._x;
_parent._parent.right_wall.wall.blood.new_blood_y = _parent._y;
_parent._parent.left_wall.wall.blood.new_blood_x = _parent._x;
_parent._parent.left_wall.wall.blood.new_blood_y = _parent._y;
}
}
}
}
movieClip 1488 {
instance of movieClip 1257 {
onClipEvent (load) {
x_speed = random(30) - 15;
y_speed = -random(30) - 5;
_parent._x += x_speed;
_parent._y += y_speed;
rot = random(20) - 10;
alph = 5 + random(10);
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 6) {
_parent._x += x_speed;
_parent._y += y_speed;
y_speed += 3;
_parent._rotation += rot;
_parent._alpha -= alph / 2;
if (_parent._alpha <= 0) {
_parent.gotoAndStop(6);
_parent._visible = false;
}
}
}
}
}
movieClip 1505 {
instance of movieClip 1488 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1488 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1488 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1488 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1488 {
onClipEvent (load) {
gotoAndStop(5);
}
}
frame 30 {
stop();
}
}
movieClip 1509 {
frame 1 {
stop();
}
instance of movieClip 1257 {
onClipEvent (load) {
_xscale = 0;
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
}
onClipEvent (enterFrame) {
this.y_speed = Math.round(_global.y_speed * 5) / 5;
this.x_speed = Math.round(_global.x_speed * 5) / 5;
_parent._y -= (_parent._y - 215) * y_value * this.y_speed * 0.5;
_parent._x -= (_parent._x - 320) * y_value * this.y_speed * 0.5;
_parent._x += (_parent._y - 215) * x_value * this.x_speed * 0.9;
_parent._yscale = -(_parent._y - 215) * s_value / 5;
_parent._xscale = _parent._yscale;
if (_parent._y < -500) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
onClipEvent (enterFrame) {
if (_parent._currentframe != 10) {
_parent.tabEnabled = false;
_parent.onPress = function () {
_parent.gotoAndStop(10);
};
}
}
}
}
movieClip 1512 {
}
movieClip 1513 {
instance of movieClip 1512 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.mm.mm._currentframe == 3) {
_visible = true;
}
}
onClipEvent (load) {
start_health = 20;
health = start_health;
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
}
}
}
movieClip 1516 {
frame 1 {
stop();
}
}
movieClip 1517 {
frame 1 {
stop();
}
instance of movieClip 1447 {
onClipEvent (load) {
gotoAndStop(_parent.standing_frame);
}
}
instance shot of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
instance shot2 of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
instance shot3 of movieClip 1456 {
onClipEvent (load) {
gotoAndStop(17);
}
}
instance of movieClip 1447 {
onClipEvent (load) {
gotoAndStop(10);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1467 {
onClipEvent (load) {
gotoAndStop(6);
}
}
}
movieClip 1518 {
instance mm of movieClip 1517 {
onClipEvent (load) {
start_health = 20;
health = start_health;
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
walk_left_limit = -25;
walk_right_limit = 25;
this.standing_frame = 6;
n = 0;
}
onClipEvent (enterFrame) {
this.tabEnabled = false;
if (_currentframe == 1) {
this.onPress = function () {
n += 1;
if (n % 3 == 0) {
shot._x = _xmouse;
shot._y = _ymouse;
shot.gotoAndPlay(1);
} else {
if (n % 3 == 1) {
shot2._x = _xmouse;
shot2._y = _ymouse;
shot2.gotoAndPlay(1);
} else {
if (n % 3 == 2) {
shot3._x = _xmouse;
shot3._y = _ymouse;
shot3.gotoAndPlay(1);
}
}
}
health -= 1;
};
}
}
onClipEvent (enterFrame) {
if (_currentframe < 3) {
if (random(10) == 0 && !walking) {
walking = true;
walk_x_speed = (random(5) - 2) / 2;
if (walk_x_speed == 0 && walk_y_speed == 0) {
walking = false;
}
}
if (walking) {
if (this._currentframe != 2) {
this.gotoAndStop(2);
}
if (_x < walk_left_limit) {
_x = walk_left_limit;
walk_x_speed *= -1;
}
if (_x > walk_right_limit) {
_x = walk_right_limit;
walk_x_speed *= -1;
}
if (random(20) == 0) {
walking = false;
walk_x_speed = 0;
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(1);
}
_x = _x + walk_x_speed;
}
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
if (_parent._y < 220 || _parent._y > 700) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
onClipEvent (enterFrame) {
if (health <= 0 && _currentframe < 3) {
this.standing_frame += 1;
health = start_health;
}
if (this.standing_frame == 10 && _currentframe < 3) {
this.gotoAndStop(3);
_parent._parent.mm_hit_you._alpha = 100;
_parent._parent.music.stop();
_parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 10);
_parent._parent.blood.new_blood_x = _parent._x;
_parent._parent.blood.new_blood_y = _parent._y;
_parent._parent.right_wall.wall.blood.new_blood_x = _parent._x;
_parent._parent.right_wall.wall.blood.new_blood_y = _parent._y;
_parent._parent.left_wall.wall.blood.new_blood_x = _parent._x;
_parent._parent.left_wall.wall.blood.new_blood_y = _parent._y;
}
if (_currentframe == 3 && _parent._visible) {
_parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 500);
}
}
onClipEvent (enterFrame) {
if (_parent._y > 420) {
if (cam._currentframe == 1) {
cam.gotoAndPlay(2);
_parent._parent.crunch.start(0, 0);
}
if (cam._currentframe == 5) {
_parent._parent.mover.my_y_speed += 20;
_parent._parent.mm_hit_you._alpha = 70;
}
}
}
onClipEvent (enterFrame) {
if (_parent._x < 150) {
_parent._x = 150;
}
}
}
}
movieClip 1522 {
}
movieClip 1526 {
}
movieClip 1527 {
frame 30 {
stop();
}
instance ball of movieClip 1526 {
onClipEvent (load) {
start_health = 20;
health = start_health;
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
}
onClipEvent (enterFrame) {
if (_parent._parent.mm.mm._currentframe < 3 || _currentframe != 1) {
guncontrol_keyboard(this);
if (_currentframe >= 19) {
_parent._y += (_parent._y - 215) * y_value * 80 * 0.1;
_parent._x += (_parent._x - 321.9) * y_value * 80 * 0.1;
_parent._x += bowl_x_speed;
} else {
bowl_x_speed = (320 - _parent._parent.mm._x) / 8;
_parent._x = _parent._parent.mm._x;
_parent._y = _parent._parent.mm._y;
}
if (_parent._y < 220 || _parent._y > 700) {
_parent._visible = false;
} else {
_parent._visible = true;
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_currentframe <= 3) {
crunched = false;
}
if (_parent._y > 550 && _currentframe >= 26 && _parent._visible) {
if (Math.abs(_parent._x - 320) < 200) {
_parent._parent.mover.my_y_speed += 5;
_parent._parent.mm_hit_you._alpha = 70;
if (!crunched) {
_parent._parent.crunch.start(0, 0);
crunched = true;
}
}
}
}
}
}
movieClip 1533 {
}
movieClip 1535 {
frame 29 {
_parent._parent.gotoAndStop(21);
}
frame 74 {
_root.gotoAndStop('end');
}
}
movieClip 1536 {
frame 1 {
stop();
}
instance of movieClip 1257 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
_parent._y -= (_parent._y - 215) * y_value * 80 * 0.5;
_parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5;
}
onClipEvent (enterFrame) {
guncontrol_keyboard(this);
_xscale = _xscale * 5;
_yscale = _yscale * 5;
if (_parent._y > 300) {
_parent.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._x < 250) {
_parent._x = 250;
}
}
}
instance of movieClip 1257 {
onClipEvent (load) {
scale = (800 - _parent._xscale) / 30;
xxx = (320 - _parent._x) / 30;
yyy = (600 - _parent._y) / 30;
}
onClipEvent (enterFrame) {
_parent._xscale += scale;
_parent._yscale = _parent._xscale;
_parent._x += xxx;
_parent._y += yyy;
}
}
}
movieClip 1542 {
frame 45 {
_root.gotoAndStop('end');
}
frame 46 {
stop();
}
}
movieClip 1543 {
frame 1 {
guncontrol_level = 2;
_global.y_speed = 0;
_global.x_speed = 0;
_global.guncontrol_move_speed = 0.6;
_global.guncontrol_keyboard = function (target) {
with (target) {
this.y_speed = Math.round(y_speed * 5) / 5;
this.x_speed = Math.round(x_speed * 5) / 5;
_parent._y -= (_parent._y - 215) * y_value * this.y_speed * 0.5;
_parent._x -= (_parent._x - 320) * y_value * this.y_speed * 0.5;
_parent._x -= (_parent._y - 215) * x_value * this.x_speed * 0.9;
_parent._yscale = (_parent._y - 215) * s_value;
_parent._xscale = _parent._yscale;
}
};
stop();
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var pistol1 = new Sound();
pistol1.attachSound('Lvl_GUNCONTROL_pistol1');
var pistol2 = new Sound();
pistol2.attachSound('Lvl_GUNCONTROL_pistol2');
var bloodydeath = new Sound();
bloodydeath.attachSound('LVL_GUNCONTROL_Bloodsplode');
bloodydeath.setVolume(300);
}
instance bang of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha <= 0) {
_visible = false;
} else {
_visible = true;
_alpha = _alpha - 10;
}
}
}
instance mover of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
if (Key.isDown(32)) {
trace(imaginary_x);
trace(imaginary_y);
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280) {
_parent.end.next_level = true;
}
if (imaginary_x < -30) {
my_x_speed = 0;
imaginary_x = -30;
}
if (imaginary_x > 50) {
my_x_speed = 0;
imaginary_x = 50;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance end of movieClip 1361 {
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!next_level) {
if (_alpha <= 0) {
_visible = false;
} else {
_visible = true;
_alpha = _alpha - 10;
}
} else {
_visible = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_parent.guncontrol_level += 1;
_parent.gotoAndStop(20);
}
}
}
}
frame 3 {
stop();
}
instance door of movieClip 1389 {
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 245.5555555555555;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
wall._xscale *= 0.7;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance gristle of movieClip 1402 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_gristle != undefined) {
i = 0;
while (i < new_gristle) {
bloodyname = 'gristle' + s_number;
initdepth = gristle.getDepth() + s_number;
gristle.duplicateMovieClip(bloodyname, initdepth);
s_number += 1;
++i;
}
new_gristle = undefined;
}
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x < -125) {
_parent.end.next_level = true;
}
if (imaginary_x < -145) {
my_x_speed = 0;
imaginary_x = -145;
}
if (imaginary_x > 26) {
my_x_speed = 0;
imaginary_x = 26;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 4 {
char_random_value = 0;
char_normal_value = 1;
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 7) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance door of movieClip 1389 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 245.5555555555555;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
wall._xscale *= 0.7;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x < -125) {
_parent.end.next_level = true;
}
if (imaginary_x < -145) {
my_x_speed = 0;
imaginary_x = -145;
}
if (imaginary_x > 26) {
my_x_speed = 0;
imaginary_x = 26;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 6 {
char_random_value = 2;
char_normal_value = 4;
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 8) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance door of movieClip 1389 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 245.5555555555555;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
wall._xscale *= 0.7;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x < -125) {
_parent.end.next_level = true;
}
if (imaginary_x < -145) {
my_x_speed = 0;
imaginary_x = -145;
}
if (imaginary_x > 26) {
my_x_speed = 0;
imaginary_x = 26;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance of movieClip 1361 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.mm.mm._currentframe == 3) {
_visible = true;
}
}
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(11);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(12);
}
}
instance mm_hit_you of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha <= 0) {
_visible = false;
} else {
_visible = true;
_alpha = _alpha - 10;
}
}
}
instance mover of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 1) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
} else {
if (imaginary_y < -608) {
my_y_speed = 0;
imaginary_y = -608;
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 9 {
music.play();
}
instance door of movieClip 1389 {
onClipEvent (load) {
gotoAndStop(10);
}
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 442;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_x = _x + (_xscale / 100) * 200;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x > 95) {
_parent.end.next_level = true;
}
if (imaginary_x > 115) {
my_x_speed = 0;
imaginary_x = 115;
}
if (imaginary_x < -36) {
my_x_speed = 0;
imaginary_x = -36;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 10 {
char_random_value = 0;
char_normal_value = 11;
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 8) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance door of movieClip 1389 {
onClipEvent (load) {
gotoAndStop(11);
}
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 442;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_x = _x + (_xscale / 100) * 200;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x > 95) {
_parent.end.next_level = true;
}
if (imaginary_x > 115) {
my_x_speed = 0;
imaginary_x = 115;
}
if (imaginary_x < -36) {
my_x_speed = 0;
imaginary_x = -36;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 12 {
char_random_value = 2;
char_normal_value = 2;
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 8) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
instance door of movieClip 1389 {
onClipEvent (load) {
gotoAndStop(12);
}
}
instance right_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 442;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1398 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 208;
point_x = 1326;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 173.8;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_x = _x + (_xscale / 100) * 200;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -300) {
my_y_speed = 0;
imaginary_y = -300;
}
if (imaginary_y < -280 && imaginary_x > 95) {
_parent.end.next_level = true;
}
if (imaginary_x > 115) {
my_x_speed = 0;
imaginary_x = 115;
}
if (imaginary_x < -36) {
my_x_speed = 0;
imaginary_x = -36;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 14 {
music.stop();
}
instance blood of movieClip 1407 {
onClipEvent (load) {
s_number = 100;
_y = 0;
_x = 0;
}
onClipEvent (enterFrame) {
if (new_blood_x != undefined) {
bloodyname = 'blood' + s_number;
initdepth = blood.getDepth() + s_number;
blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y});
s_number += 1;
new_blood_x = undefined;
}
}
}
instance door of movieClip 1414 {
onClipEvent (enterFrame) {
end_diff = 15.5 * _parent.left_wall._xscale / 100;
left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff);
end_diff = 15.5 * _parent.right_wall._xscale / 100;
right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff);
_x = (left_end + right_end) / 2;
bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100;
top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100;
_height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700;
_width = 1.73 * _height;
_y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700;
if (_currentframe == 2) {
shake._xscale = 100 + (random(20) - 10) / 5;
shake._yscale = shake._xscale;
shake._rotation = (random(20) - 10) / 5;
}
_yscale = _yscale * 1.3;
}
}
instance right_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = (_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance left_wall of movieClip 1431 {
onClipEvent (load) {
x_value = 0.02;
y_value = 0.011360655;
s_value = 1.329;
point_y = 97;
point_x = 170;
end_x = _x + point_x * _xscale / 100;
end_y = _y + point_y * _xscale / 100;
init_wall_end_y = _y + 188.5;
final_wall_end_y = init_wall_end_y - 80;
init_wall_scale = wall._xscale;
}
onClipEvent (enterFrame) {
guncontrol_keyboard2(this);
final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5;
wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5;
wall._xscale = wall._yscale;
end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9;
_x = -(_y - 215) / ((end_y - 215) / (end_x - 320));
_x = _x + 320;
_xscale = (end_x - _x) * 100 / point_x;
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(8);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(9);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(6);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(7);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1509 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_quality = 'medium';
my_y_speed = 0;
my_x_speed = 0;
imaginary_y = 0;
imaginary_x = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) || Key.isDown(87)) {
my_y_speed -= guncontrol_move_speed;
}
if (Key.isDown(40) || Key.isDown(83)) {
my_y_speed += guncontrol_move_speed;
}
if (Key.isDown(37) || Key.isDown(65)) {
my_x_speed -= guncontrol_move_speed;
}
if (Key.isDown(39) || Key.isDown(68)) {
my_x_speed += guncontrol_move_speed;
}
my_y_speed *= 0.9;
my_x_speed *= 0.9;
imaginary_y += my_y_speed;
imaginary_x += my_x_speed;
if (imaginary_y > 0) {
my_y_speed = 0;
imaginary_y = 0;
}
if (imaginary_y < -750) {
my_y_speed = 0;
imaginary_y = -750;
}
if (_parent.blood.s_number - 100 == 8) {
if (imaginary_y < -730) {
_parent.end.next_level = true;
}
if (_parent.door._currentframe == 1) {
_parent.door.gotoAndStop(2);
}
}
if (imaginary_x < -64) {
my_x_speed = 0;
imaginary_x = -64;
}
if (imaginary_x > 80) {
my_x_speed = 0;
imaginary_x = 80;
}
_global.y_speed = my_y_speed;
_global.x_speed = my_x_speed;
}
}
frame 20 {
gotoAndStop(guncontrol_level);
}
frame 21 {
_root.Mouse.show();
}
}
movieClip 1545 {
}
movieClip 1546 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 73;
this.jumping_frame = 74;
this.squatting_frame = 75;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1548 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
distance = random(150);
scale = random(50) + 25;
with (thing) {
_y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433);
_x = distance * Math.sin(rotation * 0.0174532925199433);
_yscale = scale;
_xscale = _yscale;
}
}
function cloud_move(thing) {
with (thing) {
edge = 150 * Math.sqrt(1 - _y * _y / 3600);
y_edge = 60 * Math.sqrt(1 - _x * _x / 22500);
_x += speed;
_y += y_speed;
_alpha = edge - Math.abs(_x);
second_alpha = (y_edge - Math.abs(_y)) / 0.4;
if (_alpha > second_alpha) {
_alpha = second_alpha;
}
if (_alpha <= 0) {
_x = -edge;
_y = -y_edge;
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
}
}
denominator = 6;
}
frame 2 {
stop();
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
}
movieClip 1570 {
}
movieClip 1577 {
frame 1 {
gotoAndStop(random(5) + 1);
}
}
movieClip 1578 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
distance = random(150);
scale = random(50) + 25;
with (thing) {
_y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433);
_x = distance * Math.sin(rotation * 0.0174532925199433);
_yscale = scale;
_xscale = _yscale;
}
}
function cloud_move(thing) {
with (thing) {
edge = 150 * Math.sqrt(1 - _y * _y / 3600);
y_edge = 60 * Math.sqrt(1 - _x * _x / 22500);
_x += speed;
_y += y_speed;
_alpha = edge - Math.abs(_x);
second_alpha = (y_edge - Math.abs(_y)) / 0.4;
if (_alpha > second_alpha) {
_alpha = second_alpha;
}
if (_alpha <= 0) {
_x = -edge;
_y = -y_edge;
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
}
}
denominator = 6;
}
frame 2 {
stop();
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 1577 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
}
movieClip 1580 {
}
movieClip 1583 {
}
movieClip 1587 {
}
movieClip 1588 {
frame 1 {
stop();
}
instance of movieClip 1587 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
}
movieClip 1589 {
instance of movieClip 1587 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 8 {
_parent._parent.soft_step.start(0, 0);
}
frame 11 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 16 {
_parent._parent.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1591 {
instance of movieClip 1587 {
onClipEvent (load) {
gotoAndStop(_parent._parent.jumping_frame);
}
}
frame 2 {
stop();
}
}
movieClip 1592 {
frame 1 {
stop();
}
instance of movieClip 1587 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
}
movieClip 1593 {
instance of movieClip 1587 {
onClipEvent (load) {
gotoAndStop(_parent._parent.squatting_frame);
}
}
frame 8 {
_parent._parent.softer_step.start(0, 0);
}
frame 16 {
_parent._parent.softer_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1594 {
frame 1 {
stop();
}
}
movieClip 1596 {
}
movieClip 1597 {
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
instance of movieClip 1596 {
onClipEvent (load) {
_x = random(20) - 10;
x_speed = _x / 5;
_yscale = random(50) + 75;
_xscale = random(50) + 75;
scale_speed = random(10) + 5;
alpha_speed = random(10) + 10;
}
onClipEvent (enterFrame) {
_x = _x + x_speed;
_xscale = _xscale + scale_speed;
_yscale = _xscale;
_alpha = _alpha - alpha_speed;
}
}
frame 20 {
stop();
}
}
movieClip 1598 {
}
movieClip 1600 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
var mindbody = new Sound(sfx4);
mindbody.attachSound('Level_MindBody_Stat');
mindbody.setVolume(0);
mindbody.start(0, 3000);
}
instance of movieClip 1548 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 1548 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x > 177.2 && _x < 464.2 && _y > 280 && _y < 290) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
instance lolstat of movieClip 1570 {
onClipEvent (load) {
_alpha = 0;
init_x = _x;
player_initx = _parent.player._x;
init_y = _y;
player_inity = _parent.player._y;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
diffx = player_initx - _parent.player._x;
diffy = player_inity - _parent.player._y;
volume = Math.sqrt(diffx * diffx + diffy * diffy);
if (volume > 500) {
_parent.mindbody.setVolume(500);
} else {
_parent.mindbody.setVolume(volume);
}
}
}
onClipEvent (enterFrame) {
if (_alpha >= 100) {
_alpha = 100;
_parent.gotoAndStop(2);
if (volume > 100) {
volume -= 20;
}
_parent.mindbody.setVolume(volume);
} else {
_alpha = (random(30) + 10) * volume / 100;
if (random(2) == 0) {
_xscale = _xscale * -1;
}
}
}
}
instance camera of movieClip 844 {
onClipEvent (load) {
inity = _y;
}
onClipEvent (enterFrame) {
if (_parent._currentframe == 1) {
if (_parent.player._y < 500) {
distance = _parent.lolstat.volume / (random(50) + 2);
if (random(30) == 0) {
distance *= random(6);
}
if (distance > 100) {
distance = 100;
}
if (random(2) == 0) {
distance *= -1;
}
} else {
distance *= -0.98;
}
_y = inity + distance;
} else {
_y = inity;
}
}
}
instance of movieClip 1091 {
onClipEvent (load) {
shit = 1;
}
onClipEvent (enterFrame) {
if (_currentframe >= 140) {
_parent.gotoAndStop(3);
}
}
}
frame 3 {
stop();
gotoAndStop(3);
}
instance of movieClip 1578 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 1578 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1594 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x > 177.2 && _x < 464.2 && _y > 280 && _y < 290) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 4;
grav = 0;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
digijump = 6;
}
onClipEvent (enterFrame) {
if (_y < 190 || !Key.isDown(38)) {
y_speed = digijump;
}
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -digijump;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (it_hit_it) {
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed = -walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed = -walking_speed;
}
} else {
x_speed = -walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed = walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed = walking_speed;
}
} else {
x_speed = walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed = 0;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -digijump / 2;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -digijump / 2;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._xscale = _y - 153.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
} else {
if (_y > 450) {
if (!countDownToDoom) {
countDownToDoom = true;
secondsUntilEnd = 95;
} else {
secondsUntilEnd -= 1;
if (secondsUntilEnd == 0) {
_root.gotoAndStop('end');
}
}
if (!past_death) {
past_death = true;
shake_decay = 6;
_parent.lolstat.mario_death.start(0, 0);
_parent.music.stop();
} else {
shake_x = random(40) - 20;
_parent.camera._x = 320 + Math.round(shake_x * shake_decay / 10) * 10;
shake_decay *= 0.8;
}
}
}
}
}
}
instance dust of movieClip 1597 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance lolstat of movieClip 1570 {
onClipEvent (load) {
_alpha = 100;
var mario_death = new Sound(sfx4);
mario_death.attachSound('death');
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 10;
_parent.mindbody.setVolume(_alpha);
} else {
_parent.mindbody.stop();
_visible = false;
}
}
}
}
movieClip 1624 {
frame 9 {
gotoAndPlay(1);
}
frame 18 {
gotoAndPlay(10);
}
}
movieClip 1629 {
frame 15 {
_parent._visible = false;
_parent.gotoAndStop(3);
}
}
movieClip 1630 {
frame 1 {
stop();
}
}
movieClip 1637 {
frame 1 {
stop();
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.nextFrame();
}
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent.prevFrame();
}
}
instance forw of movieClip 489 {
onClipEvent (load) {
initscale = _xscale;
wanted_scale = initscale;
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
wanted_scale = initscale;
}
_yscale = (_xscale * 2 + wanted_scale) / 3;
_xscale = (_xscale * 2 + wanted_scale) / 3;
}
onClipEvent (rollOver) {
wanted_scale = initscale * 1.2;
}
onClipEvent (rollOut) {
wanted_scale = initscale;
}
onClipEvent (press) {
_parent._parent.gotoAndPlay(2);
}
}
}
movieClip 1639 {
}
movieClip 1648 {
}
movieClip 1649 {
frame 1 {
stop();
}
frame 54 {
_parent.whiteout._alpha = 100;
_parent.whiteout._visible = true;
_parent.muzak.stop();
_parent.death.play();
}
instance of movieClip 1648 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (enterFrame) {
_alpha = _alpha * 0.95;
if (_alpha < 2) {
gotoAndStop(4);
_alpha = 0;
}
if (random(150) == 0 && _currentframe == 4) {
_rotation = random(30) - 15;
_yscale = 50 + random(50);
_xscale = 50 + random(50);
_x = random(640) - 320;
gotoAndStop(random(3) + 1);
_alpha = 100;
}
}
}
instance of movieClip 1648 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (enterFrame) {
_alpha = _alpha * 0.95;
if (_alpha < 2) {
gotoAndStop(4);
_alpha = 0;
}
if (random(150) == 0 && _currentframe == 4) {
_rotation = random(30) - 15;
_yscale = 50 + random(50);
_xscale = 50 + random(50);
_x = random(640) - 320;
gotoAndStop(random(3) + 1);
_alpha = 100;
}
}
}
instance of movieClip 1648 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (enterFrame) {
_alpha = _alpha * 0.95;
if (_alpha < 2) {
gotoAndStop(4);
_alpha = 0;
}
if (random(150) == 0 && _currentframe == 4) {
_rotation = random(30) - 15;
_yscale = 50 + random(50);
_xscale = 50 + random(50);
_x = random(640) - 320;
gotoAndStop(random(3) + 1);
_alpha = 100;
}
}
}
instance of movieClip 1648 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (enterFrame) {
_alpha = _alpha * 0.95;
if (_alpha < 2) {
gotoAndStop(4);
_alpha = 0;
}
if (random(150) == 0 && _currentframe == 4) {
_rotation = random(30) - 15;
_yscale = 50 + random(50);
_xscale = 50 + random(50);
_x = random(640) - 320;
gotoAndStop(random(3) + 1);
_alpha = 100;
}
}
}
frame 256 {
gotoAndPlay(56);
}
}
movieClip 1661 {
frame 1 {
stop();
}
frame 22 {
_visible = false;
gotoAndStop(1);
}
}
movieClip 1688 {
frame 1 {
stop();
}
}
movieClip 1691 {
frame 75 {
stop();
}
}
movieClip 1698 {
frame 1 {
stop();
}
instance of movieClip 1691 {
onClipEvent (enterFrame) {
_rotation = _parent._parent.ron_rotate;
_parent.gotoAndStop(_parent._parent.ron_frame);
}
}
}
movieClip 1706 {
frame 1 {
stop();
}
}
movieClip 1728 {
}
movieClip 1730 {
frame 1 {
}
frame 2 {
_parent._parent.gold_blast._visible = true;
_parent._parent.gold_blast.gotoAndPlay(1);
_parent._parent.gold_blast._x = _x / 1.1 + _parent._x;
_parent._parent.gold_blast._y = _y / 1.1 + _parent._y;
_parent._parent.gold_blast._rotation = _rotation;
}
}
movieClip 1732 {
}
movieClip 1735 {
frame 1 {
stop();
ron_frame = random(5) + 1;
ron_rotate = random(360);
}
instance glitch_image of movieClip 1698 {
onClipEvent (load) {
initx = _x;
}
}
instance of movieClip 1730 {
onClipEvent (load) {
back_and_forth = 0;
speed = 0.02 + (_parent.ron_damage + _parent._parent._parent.score.cdo / 120);
if (speed > 0.2) {
speed = 0.2;
}
if (random(2) == 0) {
speed *= -1;
}
}
onClipEvent (enterFrame) {
_rotation = Math.sin(back_and_forth) * 45;
back_and_forth += speed;
if (_currentframe > 1 && _currentframe < 5) {
back_and_forth -= speed;
}
if (_currentframe == 2) {
if (_parent._y < 0) {
_parent.blast.start(0, 0);
}
}
}
}
}
movieClip 1736 {
frame 1 {
stop();
}
instance blimp of movieClip 1735 {
onClipEvent (load) {
blast = new Sound();
blast.attachSound('blast');
gotoAndStop(2);
ron_damage = 0;
n = 0;
}
onClipEvent (enterFrame) {
if (ron_damage != 0) {
skin.gotoAndStop((ron_damage - ron_damage % 5) / 5 + 1);
}
}
onClipEvent (enterFrame) {
glitching = (ron_damage - ron_damage % 5) / 5;
if (n % 2 == 0 && glitching != 0) {
normal_frame = glitching * 6 - 3 + random(3) * 2;
normal.gotoAndStop(normal_frame);
glitch.gotoAndStop(normal_frame + 1);
}
if (glitching != 0) {
glitch_image._x = glitch_image.initx + (random(ron_damage) - ron_damage / 2);
}
if (glitching >= 5) {
this.gotoAndStop(3);
_parent.doom_state = true;
}
n += 1;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
mask._yscale = (360 - _y / 3) / 1.1;
}
}
}
}
movieClip 1760 {
frame 28 {
stop();
}
}
movieClip 1761 {
instance boom of movieClip 1760 {
onClipEvent (load) {
all_around_hit(this, _parent._parent.blimp);
if (yes_all_around_hit) {
_parent._parent.blimp.blimp.ron_damage += 1;
}
}
}
}
movieClip 1766 {
}
movieClip 1769 {
frame 1 {
stop();
}
}
movieClip 1770 {
instance gold of movieClip 1769 {
onClipEvent (load) {
gotoAndStop(random(2) + 1);
n = 0;
}
onClipEvent (enterFrame) {
if (_name != 'gold') {
n += 1;
if (n == 90) {
_xscale = _xscale * 1.2;
_yscale = _yscale * 1.2;
}
if (n == 92) {
_xscale = _xscale * 0.6;
_yscale = _yscale * 0.6;
}
if (n == 94) {
_xscale = _xscale * 0.3;
_yscale = _yscale * 0.3;
}
if (n == 96) {
_visible = false;
gotoAndStop(5);
}
}
}
}
}
movieClip 1774 {
frame 1 {
stop();
}
frame 25 {
stop();
}
}
movieClip 1775 {
instance toxic of movieClip 1774 {
onClipEvent (load) {
if (_name != 'toxic') {
back_and_forth = random(63) / 10;
deviant = random(5) - 2;
grav = 1.5 + random(10) / 10;
movement = 0.05 + random(10) / 100;
grav = 2;
y_speed = -5 - random(15);
x_speed = (random(19) - 10) / 2;
rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) / 4;
}
}
onClipEvent (enterFrame) {
if (_visible && _currentframe == 1) {
if (_name != 'toxic') {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + rotate;
if (_y >= 315) {
if (_x > 10 && 630 > _x) {
_y = 315;
y_speed *= -0.8;
x_speed *= 0.8;
_rotation = 0;
if (y_speed < -1) {
rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) / 4;
}
}
}
}
}
}
onClipEvent (enterFrame) {
all_around_hit(this, _parent._parent.ben);
if (yes_all_around_hit && _currentframe == 1 && Math.abs(y_speed) <= 5) {
this.gotoAndPlay(2);
_parent._parent.score.cdo = parseInt(_parent._parent.score.cdo) + 1;
}
}
}
}
movieClip 1776 {
instance bomb of movieClip 1774 {
onClipEvent (load) {
if (_name != 'bomb') {
back_and_forth = random(63) / 10;
deviant = random(5) - 2;
grav = 1.5 + random(10) / 10;
movement = 0.05 + random(10) / 100;
grav = 2;
y_speed = -20 - random(10);
x_speed = (random(19) - 10) * 1.5;
rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) * 2;
n = 15;
}
}
onClipEvent (enterFrame) {
if (_visible && _currentframe == 1) {
if (_name != 'bomb') {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + rotate;
if (n == 0) {
this.gotoAndStop(25);
bloodyname = 'boom' + _parent._parent.boom.s_number;
initdepth = _parent._parent.boom.boom.getDepth() + _parent._parent.boom.s_number;
_parent._parent.boom.boom.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent._parent.boom.s_number += 1;
} else {
n -= 1;
}
if (_x < -50) {
_x = 690;
}
if (_x > 690) {
_x = -50;
}
}
}
}
}
}
movieClip 1798 {
instance of movieClip 1257 {
onClipEvent (load) {
x_speed = random(20) - 10;
y_speed = -random(25) - 20;
_parent._x += x_speed;
_parent._y += y_speed;
rot = random(40) - 20;
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 7) {
_parent._x += x_speed;
_parent._y += y_speed;
y_speed += 2;
_parent._rotation += rot;
_parent._alpha -= alph / 2;
if (_parent._y > 150) {
_parent.gotoAndStop(7);
_parent._visible = false;
}
}
}
}
}
movieClip 1799 {
frame 1 {
stop();
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
}
instance of movieClip 1361 {
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
onClipEvent (enterFrame) {
this.colour = new Color(this);
this.colour.setRGB(_parent.wind_col);
}
}
frame 4 {
this.swapDepths(_parent.depth);
_parent.depth += 1;
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(5);
}
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(6);
}
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.house_col);
}
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.door_col);
}
}
instance of movieClip 1798 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(_parent.roof_col);
}
}
}
movieClip 1800 {
instance goldhouse of movieClip 1799 {
onClipEvent (load) {
n = 0;
wind_col = '0xECDE60';
door_col = '0xECDE60';
house_col = '0xECDE60';
roof_col = '0xECDE60';
gotoAndStop(houseframe);
}
onClipEvent (enterFrame) {
if (_name != 'goldhouse') {
n += 1;
if (n == 90) {
_xscale = _xscale * 1.2;
_yscale = _yscale * 1.2;
}
if (n == 92) {
_xscale = _xscale * 0.6;
_yscale = _yscale * 0.6;
}
if (n == 94) {
_xscale = _xscale * 0.3;
_yscale = _yscale * 0.3;
}
if (n == 96) {
_visible = false;
gotoAndStop(5);
}
}
}
}
}
movieClip 1801 {
frame 1 {
depth = 100;
}
instance house of movieClip 1799 {
onClipEvent (load) {
if (_name != 'house') {
n = 0;
roof_col = '0x' + random(1000000);
house_col = '0x' + random(1000000);
door_col = '0x' + random(1000000);
wind_col = '0x' + random(1000000);
init_xscale = _xscale;
init_yscale = _yscale;
_xscale = init_xscale * 1.3;
_yscale = init_xscale * 0.4;
}
}
onClipEvent (enterFrame) {
if (_name != 'house') {
if (_visible && _currentframe <= 3) {
_xscale = (_xscale + init_xscale) / 2;
_yscale = (_yscale + init_yscale) / 2;
all_around_hit(this, _parent._parent.money);
if (yes_all_around_hit) {
n += 1;
} else {
if (this.hitTest(_parent._parent.ben.butt) && Key.isDown(32)) {
n += 1;
}
}
if (n >= 30) {
n = 0;
this.nextFrame();
if (_currentframe == 4) {
_parent.housing -= 1;
_parent._parent.score.dow += 500;
i = 0;
while (i < 3) {
bloodyname = 'toxic' + _parent._parent.toxic.s_number;
initdepth = _parent._parent.toxic.toxic.getDepth() + _parent._parent.toxic.s_number;
_parent._parent.toxic.toxic.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y - 60});
_parent._parent.toxic.s_number += 1;
++i;
}
_parent.popped.start(0, 0);
} else {
_xscale = init_xscale * 1.5;
_yscale = init_yscale * 0.6;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_name != 'house') {
if (_visible && _currentframe <= 3) {
all_around_hit(this, _parent._parent.blimp.gold_blast);
if (yes_all_around_hit) {
bloodyname = 'goldhouse' + _parent._parent.goldhouse.s_number;
initdepth = _parent._parent.goldhouse.goldhouse.getDepth() + _parent._parent.goldhouse.s_number;
_parent._parent.goldhouse.goldhouse.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y, 'houseframe': _currentframe});
_parent._parent.goldhouse.s_number += 1;
bloodyname = 'gold' + _parent._parent.gold.s_number;
initdepth = _parent._parent.gold.gold.getDepth() + _parent._parent.gold.s_number;
_parent._parent.gold.gold.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent._parent.gold.s_number += 1;
bloodyname = 'fume' + _parent._parent.fume.s_number;
initdepth = _parent._parent.fume.fume.getDepth() + _parent._parent.fume.s_number;
_parent._parent.fume.fume.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y - 30});
_parent._parent.fume.s_number += 1;
_visible = false;
gotoAndStop(5);
_parent.housing -= 1;
}
}
}
}
}
}
movieClip 1802 {
instance money of movieClip 1630 {
onClipEvent (load) {
if (_name != 'money') {
back_and_forth = random(63) / 10;
deviant = random(5) - 2;
grav = 1.5 + random(10) / 10;
movement = 0.05 + random(10) / 100;
_y = _y + grav;
_x = _x + Math.sin(back_and_forth);
back_and_forth += movement;
_x = _x + deviant / 2;
_rotation = 45 * Math.cos(back_and_forth);
all_around_hit(this, _parent._parent.house);
if (yes_all_around_hit) {
gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (_visible && _currentframe == 1) {
if (_name != 'money') {
_y = _y + grav;
_x = _x + Math.sin(back_and_forth);
back_and_forth += movement;
_x = _x + deviant / 2;
_rotation = 45 * Math.cos(back_and_forth);
}
if (_y >= 340) {
if (_x > 10 && 630 > _x) {
_y = _y - grav;
movement *= 0.8;
deviant *= 0.8;
_x = _x - Math.sin(back_and_forth);
}
_alpha = _alpha - 2;
} else {
all_around_hit(this, _parent._parent.gold);
if (yes_all_around_hit) {
_y = _y - grav;
movement *= 0.8;
deviant *= 0.8;
_x = _x - Math.sin(back_and_forth);
_alpha = _alpha - 2;
}
all_around_hit(this, _parent._parent.goldhouse);
if (yes_all_around_hit) {
_y = _y - grav;
movement *= 0.8;
deviant *= 0.8;
_x = _x - Math.sin(back_and_forth);
_alpha = _alpha - 2;
}
}
if (_alpha <= 0) {
_visible = false;
gotoAndStop(3);
}
all_around_hit(this, _parent._parent.house);
if (yes_all_around_hit) {
gotoAndStop(2);
}
}
}
}
}
movieClip 1807 {
frame 5 {
stop();
}
}
movieClip 1811 {
frame 5 {
stop();
}
}
movieClip 1812 {
frame 1 {
stop();
}
}
movieClip 1814 {
frame 1 {
stop();
}
instance of movieClip 1624 {
onClipEvent (load) {
gotoAndPlay(1);
}
}
instance of movieClip 1624 {
onClipEvent (load) {
gotoAndPlay(10);
}
}
}
movieClip 1815 {
}
movieClip 1816 {
}
movieClip 1817 {
}
movieClip 1818 {
instance of movieClip 1257 {
onClipEvent (load) {
x_speed = random(20) - 10;
y_speed = -random(15) - 5;
_parent._x += x_speed;
_parent._y += y_speed;
rot = random(20) - 10;
alph = 5 + random(10);
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 7) {
_parent._x += x_speed;
_parent._y += y_speed;
y_speed += 2;
_parent._rotation += rot;
_parent._alpha -= alph / 2;
if (_parent._alpha <= 0) {
_parent.gotoAndStop(7);
_parent._visible = false;
}
}
}
}
}
movieClip 1832 {
frame 27 {
stop();
}
}
movieClip 1833 {
frame 1 {
stop();
}
frame 2 {
_visible = true;
}
frame 70 {
stop();
_parent.ben.gotoAndStop(2);
}
frame 70 {
sploosh = new Sound();
sploosh.attachSound('Level_Bloodsplode');
sploosh.start(0, 0);
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1818 {
onClipEvent (load) {
gotoAndStop(6);
}
}
}
movieClip 1840 {
}
movieClip 1884 {
frame 1 {
stop();
_global.all_around_hit = function (target, hitter) {
with (target) {
target.yes_all_around_hit = false;
if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) {
target.yes_all_around_hit = true;
}
}
};
}
instance death of movieClip 1363 {
onClipEvent (load) {
gotoAndStop(30);
}
}
instance blimp of movieClip 1736 {
onClipEvent (load) {
_root._quality = 'MEDIUM';
_visible = false;
n = 0;
y_speed = 0;
x_speed = random(10) - 5;
rot = random(20) - 10;
extra_round = 0;
new_x = 240;
}
onClipEvent (enterFrame) {
n += 1;
if (n == 200) {
_parent.sky.gotoAndPlay(2);
}
if (n >= 300 && n < 450) {
_visible = true;
attack_stage = false;
idle_stage = true;
}
if (n >= 450 && n < 600) {
idle_stage = false;
attack_stage = true;
}
if (n >= 600) {
n = 300;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (!doom_state) {
if (idle_stage) {
new_y = 242;
extra_x_rounding = 30;
if (blimp._y > 220) {
blimp.gotoAndStop(1);
}
}
if (attack_stage) {
new_y = -130;
extra_x_rounding = 120;
if (blimp._y < -120) {
blimp.gotoAndStop(2);
}
}
extra_x = Math.sin(extra_round) * extra_x_rounding;
extra_y = 20 + Math.cos(extra_round) * 20;
extra_round -= 0.05;
blimp._x = (new_x + (blimp._x + extra_x) * 6) / 7 - extra_x;
blimp._y = (new_y + (blimp._y + extra_y) * 6) / 7 - extra_y;
} else {
if (_parent.sky._currentframe != 1) {
_parent.sky.gotoAndStop(1);
_parent.whiteout._alpha = 100;
_parent.whiteout._visible = true;
}
y_speed += 0.5;
blimp._y += y_speed;
blimp._x += x_speed;
blimp._rotation += rot / 10;
bloodyname = 'boom' + _parent.boom.s_number;
initdepth = _parent.boom.boom.getDepth() + _parent.boom.s_number;
_parent.boom.boom.duplicateMovieClip(bloodyname, initdepth, {'_xscale': 200, '_yscale': 200, '_x': blimp._x + random(780) - 390, '_y': blimp._y - 230 + random(440)});
_parent.boom.s_number += 1;
if (blimp._y > 800) {
this.gotoAndStop(2);
_parent.fallpaul.gotoAndPlay(2);
_parent.nextFrame();
} else {
if (random(3) == 0) {
blimp.blast.start(0, 0);
}
}
}
}
}
}
instance boom of movieClip 1761 {
onClipEvent (load) {
s_number = 100;
}
}
instance of movieClip 1766 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.ben._currentframe == 2 && !_visible) {
_visible = true;
_x = _parent.ben._x;
_xscale = (340 - _parent.ben._y) * 1.3;
}
}
}
instance gold of movieClip 1770 {
onClipEvent (load) {
s_number = 100;
}
}
instance toxic of movieClip 1775 {
onClipEvent (load) {
s_number = 100;
}
}
instance bomb of movieClip 1776 {
onClipEvent (load) {
s_number = 100;
}
}
instance goldhouse of movieClip 1800 {
onClipEvent (load) {
s_number = 100;
}
}
instance house of movieClip 1801 {
onClipEvent (load) {
popped = new Sound();
popped.attachSound('popsound');
s_number = 100;
housing = 0;
i = 0;
while (i < 3) {
housing += 1;
bloodyname = 'house' + s_number;
initdepth = house.getDepth() + s_number;
house.duplicateMovieClip(bloodyname, initdepth, {'_x': 60 + random(520)});
s_number += 1;
++i;
}
}
onClipEvent (enterFrame) {
if (random(60) == 0 && housing < 5) {
housing += 1;
bloodyname = 'house' + s_number;
initdepth = house.getDepth() + s_number;
house.duplicateMovieClip(bloodyname, initdepth, {'_x': 60 + random(520), '_y': house._y});
s_number += 1;
}
}
}
instance ben of movieClip 1814 {
onClipEvent (load) {
x_speed = 0;
y_speed = 0;
movement = 0.5;
up_and_down = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) || Key.isDown(37) || Key.isDown(39) || Key.isDown(38) || Key.isDown(40)) {
ben.gotoAndStop(2);
} else {
ben.gotoAndStop(1);
}
if (Key.isDown(37)) {
x_speed -= movement;
}
if (Key.isDown(39)) {
x_speed += movement;
}
if (Key.isDown(38)) {
y_speed -= movement;
}
if (Key.isDown(40)) {
y_speed += movement;
}
_x = _x + x_speed;
_y = _y + y_speed;
x_speed *= 0.95;
y_speed *= 0.95;
_y = _y + Math.sin(up_and_down);
up_and_down += 0.05;
ben._rotation = -Math.atan2(x_speed, -5) / 0.0174532925199433 + 180;
_rotation = Math.atan2(x_speed, 20) / 0.0174532925199433;
if (ben._rotation < 0) {
ben._xscale = -100;
} else {
ben._xscale = 100;
}
}
onClipEvent (load) {
s_number = 100;
money_n = 0;
bomb_n = 0;
}
onClipEvent (enterFrame) {
money_n += 1;
money_y = _y - 30 * Math.cos((ben._rotation + _rotation + 180) * 0.0174532925199433);
if (Key.isDown(32) && money_n % 2 == 0) {
money_x = _x + 30 * Math.sin((ben._rotation + _rotation + 180) * 0.0174532925199433);
bloodyname = 'money' + s_number;
initdepth = _parent.money.money.getDepth() + s_number;
_parent.money.money.duplicateMovieClip(bloodyname, initdepth, {'_x': money_x, '_y': money_y});
s_number += 1;
}
bomb_n += 1;
if (Key.isDown(90) && _parent.score.cdo > 0 && bomb_n % 4 == 0) {
bloodyname = 'bomb' + _parent.bomb.s_number;
initdepth = _parent.bomb.bomb.getDepth() + _parent.bomb.s_number;
_parent.bomb.bomb.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent.bomb.s_number += 1;
_parent.score.cdo -= 1;
}
}
onClipEvent (enterFrame) {
if (_x < -50) {
_x = 690;
}
if (_x > 690) {
_x = -50;
}
if (_y < 10) {
_y = 10;
y_speed *= -1;
}
if (_y - (_y - money_y) > 340) {
_y = 340 + (_y - money_y);
y_speed *= -1;
}
}
onClipEvent (enterFrame) {
if (falter_stage) {
if (falter > 0) {
falter -= 1;
if (falter % 2 == 0) {
_visible = false;
} else {
_visible = true;
}
} else {
falter_stage = false;
_visible = true;
}
} else {
all_around_hit(this, _parent.blimp.gold_blast);
if (yes_all_around_hit) {
falter_stage = true;
falter = 30;
gotoSpotX = _parent.blimp.gold_blast._x;
gotoSpotY = _parent.blimp.gold_blast._y;
delta_x = _x - gotoSpotX;
delta_y = _y - gotoSpotY;
blast_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
y_speed += 15 * Math.cos(blast_rotation * 0.0174532925199433);
x_speed -= 15 * Math.sin(blast_rotation * 0.0174532925199433);
bloodyname = 'fume' + _parent.fume.s_number;
initdepth = _parent.fume.fume.getDepth() + _parent.fume.s_number;
_parent.fume.fume.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent.fume.s_number += 1;
}
}
}
}
instance fume of movieClip 1816 {
onClipEvent (load) {
s_number = 100;
}
}
frame 3 {
stop();
}
instance fallpaul of movieClip 1833 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe > 2 && _currentframe < 70) {
_y = _parent.ben._y + 60 * Math.cos((_parent.ben.ben._rotation + _parent.ben._rotation + 180) * 0.0174532925199433);
_x = _parent.ben._x - 60 * Math.sin((_parent.ben.ben._rotation + _parent.ben._rotation + 180) * 0.0174532925199433);
}
}
}
instance score of movieClip 1840 {
onClipEvent (load) {
dow = 0;
trace(_currentframe);
trace(_y);
trace(_visible);
}
onClipEvent (enterFrame) {
doww = '$' + dow;
dollarr = 150 / (50 + _parent.ben.s_number);
dollar = '$' + Math.round(dollarr * 100) / 100;
if (_parent.fallpaul._currentframe > 2 && _y > -100) {
_y = _y - 2;
if (!notSubmittedHiscoreAlready) {
notSubmittedHiscoreAlready = true;
if (dow > _global.highscores.macroecon) {
_root.alert.newScore = 'subprime: ' + Math.round(dow);
_global.highscores.macroecon = dow;
thegame.data.highscores = _global.highscores;
thegame.data.flush();
}
}
}
}
}
instance whiteout of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_alpha != 0) {
_alpha = _alpha - 2;
} else {
_visible = false;
}
}
}
instance whiteout of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
n = 210;
}
onClipEvent (enterFrame) {
if (n <= 0) {
_alpha = _alpha + 2;
}
n -= 1;
if (_alpha >= 100) {
_parent.nextFrame();
}
}
}
frame 5 {
gotoAndPlay(10);
}
frame 366 {
_root.gotoAndStop('end');
}
}
movieClip 1887 {
frame 1 {
stop();
}
}
movieClip 1890 {
frame 1 {
stop();
}
}
movieClip 1891 {
instance riserun of movieClip 1890 {
onClipEvent (load) {
if (_name != 'riserun' && _currentframe != 3) {
_rotation = random(60) - 30;
speed = random(5) - 2;
y_speed = (-random(3) - 2) / 3;
}
}
onClipEvent (enterFrame) {
if (_name != 'riserun' && _currentframe != 3) {
_rotation = _rotation + speed;
_y = _y + y_speed;
_alpha = _alpha - 10;
if (_alpha <= 0) {
gotoAndStop(3);
_visible = false;
}
}
}
}
}
movieClip 1892 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1143 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 52;
this.jumping_frame = 53;
this.squatting_frame = 54;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
_parent.formula.nextFrame();
_parent.formula._yscale = 130;
_parent.formula._xscale = 130;
} else {
if (shake_decay > 0.0004) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance formula of movieClip 1887 {
onClipEvent (enterFrame) {
scale = _xscale - 100;
_yscale = 100 + scale * -0.85;
_xscale = 100 + scale * -0.85;
}
}
instance riserun of movieClip 1891 {
onClipEvent (load) {
number = 0;
time_n = 0;
}
onClipEvent (enterFrame) {
if (time_n % 5 == 0) {
n = 0;
if (_parent.player._y < 270) {
++number;
newName = 'riserun' + number;
newDepth = riserun.getDepth() + number;
duplicateMovieClip(riserun, newName, newDepth);
eval(newName)._x = _parent.player._x;
eval(newName)._y = _parent.player._y;
} else {
if (Key.isDown(37) || Key.isDown(39)) {
++number;
newName = 'riserun' + number;
newDepth = riserun.getDepth() + number;
duplicateMovieClip(riserun, newName, newDepth);
tellTarget ('newName') {
gotoAndStop(2);
}
eval(newName)._x = _parent.player._x;
eval(newName)._y = _parent.player._y - 10;
}
}
}
++time_n;
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
movieClip 1894 {
}
movieClip 1895 {
instance of movieClip 843 {
onClipEvent (load) {
_alpha = 0;
screen_width = 320;
screen_length = 200;
screen_diagonal = 377.359;
init_angle = 32.00538321;
}
onClipEvent (enterFrame) {
_root._x = _parent._x - screen_width;
_root._y = _parent._y - screen_length;
pre_scale_x = _parent._x;
pre_scale_y = _parent._y;
_root._xscale = 10000 / _parent._xscale;
_root._yscale = 10000 / _parent._yscale;
_root._x -= pre_scale_x * _root._xscale / 100;
_root._y -= pre_scale_y * _root._yscale / 100;
_root._x += pre_scale_x;
_root._y += pre_scale_y;
_root._rotation = -_parent._rotation;
angle = _root._rotation + 90 + init_angle;
_root._y += Math.cos(angle * 0.0174532925199433) * screen_diagonal;
_root._x -= Math.sin(angle * 0.0174532925199433) * screen_diagonal;
_root._x += screen_width;
_root._y += screen_length;
}
}
}
movieClip 1914 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
var mindbody = new Sound(sfx4);
mindbody.attachSound('Level_MindBody_Stat');
mindbody.setVolume(0);
mindbody.start(0, 3000);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance player of movieClip 1143 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 43;
this.jumping_frame = 44;
this.squatting_frame = 45;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
_parent.music.stop();
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
if (shake_decay < 0.01) {
_parent.play();
}
}
}
}
}
}
}
instance of movieClip 1894 {
onClipEvent (load) {
init_x = _x;
player_initx = _parent.player._x;
init_y = _y;
player_inity = _parent.player._y;
}
onClipEvent (enterFrame) {
diffx = player_initx - _parent.player._x;
diffy = player_inity - _parent.player._y;
_x = init_x + diffx / 8;
_y = init_y + diffy / 8;
volume = Math.sqrt(diffx * diffx + diffy * diffy);
if (volume > 500) {
_parent.mindbody.setVolume(500);
} else {
_parent.mindbody.setVolume(volume);
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
instance of movieClip 1257 {
onClipEvent (load) {
_parent.mindbody.setVolume(500);
}
onClipEvent (enterFrame) {
if (!enditall) {
volumee = _parent.mindbody.getVolume();
_parent.mindbody.setVolume(volumee - 15);
if (volumee - 15 <= 0) {
enditall = true;
}
} else {
_parent.mindbody.setVolume(0);
_parent.mindbody.stop();
}
}
}
frame 270 {
_root.gotoAndStop('end');
}
}
movieClip 1915 {
instance of movieClip 1137 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 8 {
_parent._parent.soft_step.start(0, 0);
}
frame 11 {
if (_parent._parent._name == 'player') {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 16 {
_parent._parent.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1916 {
frame 1 {
stop();
}
}
movieClip 1917 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player3 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 77;
this.jumping_frame = 29;
this.squatting_frame = 30;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player2 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 76;
this.jumping_frame = 26;
this.squatting_frame = 27;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 176 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 78;
this.jumping_frame = 79;
this.squatting_frame = 80;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1920 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 1922 {
}
movieClip 1923 {
instance tip of movieClip 1922 {
onClipEvent (load) {
point_x_array = new Array();
point_x_array.push(_x);
point_y_array = new Array();
point_y_array.push(_y);
shift = 0;
start_point = 0;
inity = _y;
y_shift = 0;
line_y_speed = 0;
wave_n = 0;
seconds = 0;
wave_calc = function () {
if (seconds < 20) {
wave_shift = -Math.cos(wave_n / 20);
wave_n += 0.25;
y_speed += wave_shift * 5;
} else {
if (seconds < 40) {
wave_shift = -Math.sin(wave_n / 20);
wave_n += 0.5;
y_speed += wave_shift * 6;
} else {
if (seconds < 60) {
wave_shift = Math.cos(wave_n / 20);
wave_n += 1;
y_speed += wave_shift * 7;
} else {
if (seconds < 90) {
wave_shift = -Math.sin(wave_n / 20);
wave_n += 2;
y_speed += wave_shift * 8;
} else {
if (seconds < 110) {
wave_shift = -Math.cos(wave_n / 20);
wave_n += 3;
y_speed += wave_shift * 10;
} else {
if (seconds < 120) {
y_speed -= Math.pow((seconds - 100) / 3, 1.5);
} else {
if (seconds < 123) {
y_speed = 80;
_parent.its_all_over_now = true;
} else {
y_speed = 0;
}
}
}
}
}
}
}
seconds += 0.03333333333333333;
};
}
onClipEvent (enterFrame) {
if (shift % 2 == 0) {
y_speed = random(21) - 10;
}
wave_calc();
point_x_array.push(_x + shift * 15);
point_y_array.push(_y - _parent.line._y);
shift += 1;
_y = _y + y_speed;
_y = _y + line_y_speed;
_parent.line._y += line_y_speed;
_parent._parent.bg._y += line_y_speed / 5;
_rotation = -Math.atan2(-15, -y_speed) / 0.0174532925199433;
if (seconds < 121) {
if (_y < 100) {
line_y_speed += 1;
}
if (_y > 300) {
line_y_speed -= 1;
}
if (seconds > 110) {
if (_y < 100) {
line_y_speed += 2;
}
if (_y > 300) {
line_y_speed -= 2;
}
}
}
line_y_speed *= 0.9;
_parent.line.createEmptyMovieClip('stock', -100);
_parent.line.stock.lineStyle(10, 16585491, 100);
_parent.line_shadow.createEmptyMovieClip('stock', -100);
_parent.line_shadow.stock.lineStyle(10, 0, 20);
if (_x < shift * 15) {
point_x_array.shift();
point_y_array.shift();
}
first_line = true;
i = 1;
while (i < point_x_array.length) {
if (point_y_array[i] + _parent.line._y < 450) {
if (first_line) {
_parent.line.stock.moveTo(point_x_array[i] - shift * 15, point_y_array[i]);
_parent.line_shadow.stock.moveTo(point_x_array[i] - shift * 15, point_y_array[i]);
first_line = false;
} else {
_parent.line.stock.lineTo(point_x_array[i] - shift * 15, point_y_array[i]);
_parent.line_shadow.stock.lineTo(point_x_array[i] - shift * 15, point_y_array[i]);
}
}
++i;
}
_parent.line.stock.lineTo(_x, _y - _parent.line._y);
_parent.line_shadow.stock.lineTo(_x, _y - _parent.line_shadow._y);
sedge_rotation = _rotation - 135;
sedge_y = -25 * Math.cos(sedge_rotation * 0.0174532925199433);
sedge_x = 25 * Math.sin(sedge_rotation * 0.0174532925199433);
_parent.line_shadow.stock.lineTo(_x + sedge_x, _y - _parent.line_shadow._y + sedge_y);
_parent.line_shadow.stock.lineTo(_x, _y - _parent.line_shadow._y);
sedge_rotation = _rotation + 135;
sedge_y = -25 * Math.cos(sedge_rotation * 0.0174532925199433);
sedge_x = 25 * Math.sin(sedge_rotation * 0.0174532925199433);
_parent.line_shadow.stock.lineTo(_x + sedge_x, _y - _parent.line_shadow._y + sedge_y);
_parent.line_shadow._x = _parent.line._x + 10;
_parent.line_shadow._y = _parent.line._y + 10;
}
}
}
movieClip 1928 {
}
movieClip 1938 {
}
movieClip 1939 {
instance spark of movieClip 1938 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
}
}
}
movieClip 1941 {
}
movieClip 1945 {
frame 1 {
stop();
}
}
movieClip 1946 {
frame 1 {
stop();
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
}
instance bg of movieClip 1920 {
onClipEvent (load) {
inity = _y;
}
}
instance of movieClip 1939 {
onClipEvent (load) {
find_point = function (displace) {
pointy = _parent.line.tip.point_y_array[Math.round((_x + displace) / 15) + 1];
pointy += _parent.line.line._y;
};
x_speed = 0;
y_speed = -80;
hit_ground = false;
grav = 2;
}
onClipEvent (enterFrame) {
if (_y > 450) {
_x = _x + 10;
}
if (_parent.line.its_all_over_now && fall_y == undefined) {
fall_y = _y;
}
if (_y - fall_y > 400) {
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y - fall_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
if (_y - fall_y > 1337) {
if (_parent.current_score > _global.highscores.stock) {
_root.alert.newScore = 'stock market: ' + Math.round(_parent.current_score);
_global.highscores.stock = Math.round(_parent.current_score);
thegame.data.highscores = _global.highscores;
thegame.data.flush();
}
_root.gotoAndStop('end');
}
}
if (Key.isDown(37)) {
x_speed -= 3;
}
if (Key.isDown(39)) {
x_speed += 3;
}
x_speed *= 0.8;
_x = _x + x_speed;
if (_x > 500) {
_x = 500;
x_speed *= -1;
}
if (_x < 20) {
_x = 20;
x_speed *= -1;
}
find_point(-20);
left_point = pointy;
find_point(0);
middle_point = pointy;
find_point(20);
right_point = pointy;
if (hit_ground) {
delta_x = -50;
delta_y = left_point - right_point;
_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433 - 90;
if (Key.isDown(38)) {
y_speed -= 20 + Math.cos((_rotation + 90) * 0.0174532925199433) * 10;
}
score_slope = delta_y / delta_x;
score_run = 15 + x_speed;
_parent.current_score -= score_slope * score_run;
if (score_slope * score_run < -1) {
_parent.score.score_colour = _parent.score.green_score_colour;
} else {
if (score_slope * score_run > 1) {
_parent.score.score_colour = _parent.score.red_score_colour;
} else {
_parent.score.score_colour = '0xFFFFFF';
}
}
} else {
if (this.spark._alpha > 0) {
this.spark._alpha -= 10;
}
y_speed += grav;
_rotation = _rotation * 0.9;
}
_y = _y + y_speed;
if (_y > middle_point) {
if (!hit_ground && y_speed > 15) {
this.spark._alpha = 100;
}
_y = middle_point;
y_speed = 0;
hit_ground = true;
} else {
hit_ground = false;
}
}
}
instance score of movieClip 1941 {
onClipEvent (load) {
_parent.current_score = 0;
score.text = _parent.current_score;
_parent.score2.score.text = this.score.text;
colour = new Color(this);
red_score_colour = '0xD81F1F';
green_score_colour = '0x18C529';
score_colour = '0xFFFFFF';
colour.setRGB(score_colour);
}
onClipEvent (enterFrame) {
colour.setRGB(score_colour);
score.text = Math.round(_parent.current_score);
_parent.score2.score.text = this.score.text;
}
}
instance of movieClip 1945 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
n += 1;
if (n > 210) {
_alpha = _alpha - 2;
if (_alpha <= 0) {
gotoAndStop(2);
}
} else {
if (n < 200 && Key.isDown(38)) {
n = 200;
}
}
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1951 {
}
movieClip 1955 {
}
movieClip 1958 {
frame 1 {
stop();
}
frame 2 {
if (_parent.correctAnswer * 100 > _global.highscores.education) {
_root.alert.newScore = 'education: ' + _parent.correctAnswer * 100;
_global.highscores.education = _parent.correctAnswer * 100;
thegame.data.highscores = _global.highscores;
thegame.data.flush();
}
}
}
movieClip 1959 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 1951 {
onClipEvent (load) {
pressed = false;
n = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
pressed = true;
}
if (pressed) {
++n;
switch (n) {
case 1:
scale = 80;
break;
case 2:
scale = 70;
break;
case 3:
scale = 80;
break;
case 4:
scale = 100;
break;
case 5:
scale = 130;
break;
case 6:
scale = 180;
break;
case 7:
scale = 280;
break;
case 8:
scale = 480;
break;
case 9:
_parent.gotoAndStop(2);
}
_yscale = scale;
_xscale = scale;
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
_parent.answerScreen.STOPPIT = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.001) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_parent.gotoAndPlay(3);
}
}
}
}
}
}
}
instance answerScreen of movieClip 1955 {
onClipEvent (load) {
seq.embedFonts = true;
answer.embedFonts = true;
sequenceArray = new Array();
typeOfSequence = random(4);
switch (typeOfSequence) {
case 0:
currentValue = random(4) + 1;
multValue = random(2) + 2;
while (currentValue < 50) {
sequenceArray.push(currentValue);
currentValue *= multValue;
}
sequenceArray.push(currentValue);
break;
case 1:
currentValue = random(10) + 1;
addValue = random(5) + 1;
metaValue = random(3);
while (currentValue < 40) {
sequenceArray.push(currentValue);
currentValue += addValue;
addValue += metaValue;
}
sequenceArray.push(currentValue);
break;
case 2:
taboo = new Array(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 39);
endAll = random(20) + 20;
currentValue = 1;
while (currentValue < endAll) {
pushIt = true;
i = 0;
for (;;) {
if (!(pushIt && taboo[i] < currentValue)) break;
if (currentValue / taboo[i] == Math.round(currentValue / taboo[i])) {
pushIt = false;
}
++i;
}
if (pushIt) {
sequenceArray.push(currentValue);
}
++currentValue;
}
break;
case 3:
firstValue = random(5) + 1;
secondValue = firstValue + random(5);
currentValue = firstValue + secondValue;
sequenceArray.push(firstValue);
sequenceArray.push(secondValue);
while (currentValue < 40) {
sequenceArray.push(currentValue);
firstValue = secondValue;
secondValue = currentValue;
currentValue = firstValue + secondValue;
}
sequenceArray.push(currentValue);
}
while (sequenceArray.length > 8) {
sequenceArray.shift();
}
correctAnswer = sequenceArray.pop();
seq.text = '';
i = 0;
while (i < sequenceArray.length) {
seq.text += sequenceArray[i];
seq.text += ', ';
++i;
}
seq.text += '?';
currentAnswer = 0;
n = 0;
waitN = Math.round(210 / correctAnswer) + 1;
answer.text = currentAnswer;
}
onClipEvent (enterFrame) {
if (!STOPPIT) {
if (n % waitN == 0) {
n = 0;
++currentAnswer;
answer.text = currentAnswer;
}
++n;
} else {
if (currentAnswer == correctAnswer) {
_parent.win = true;
_parent.correctAnswer = correctAnswer;
} else {
_parent.win = false;
}
}
}
}
instance of movieClip 1284 {
onClipEvent (enterFrame) {
if (_visible) {
_alpha = _alpha - 20;
if (_alpha < 1) {
_visible = false;
}
}
}
}
instance win of movieClip 1958 {
onClipEvent (load) {
if (_parent.win) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 35 {
_root.gotoAndStop('end');
}
}
movieClip 1960 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 81;
this.jumping_frame = 82;
this.squatting_frame = 83;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 1962 {
}
movieClip 1965 {
}
movieClip 1966 {
instance of movieClip 1965 {
onClipEvent (load) {
gotoAndStop(_parent._parent.standing_frame);
}
}
frame 3 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 8 {
_root.soft_step.start(0, 0);
}
frame 11 {
if (Key.isDown(37) || Key.isDown(39)) {
play();
} else {
_parent.gotoAndStop(1);
}
}
frame 16 {
_root.soft_step.start(0, 0);
}
frame 17 {
gotoAndPlay(1);
}
}
movieClip 1967 {
instance of movieClip 1965 {
onClipEvent (load) {
gotoAndStop(_parent._parent.jumping_frame);
}
}
frame 7 {
stop();
}
}
movieClip 1968 {
frame 1 {
stop();
}
frame 3 {
play();
}
frame 5 {
stop();
}
}
movieClip 1969 {
instance guy of movieClip 1968 {
onClipEvent (enterFrame) {
if (_name != 'guy') {
this.swapDepths(_y);
} else {
_visible = false;
}
}
onClipEvent (load) {
if (_name != 'guy') {
_rotation = 0;
this.standing_frame = 1;
this.jumping_frame = 2;
rotation = random(360);
speed = (random(10) + 5) / 10;
y_speed = -speed * Math.cos(rotation * 0.0174532925199433);
x_speed = speed * Math.sin(rotation * 0.0174532925199433);
if (x_speed < 0) {
extra_xscale = -1;
} else {
extra_xscale = 1;
}
created = 0;
init_yscale = _yscale;
init_xscale = _xscale;
_yscale = init_yscale * 0.6;
_xscale = init_xscale * 1.3 * extra_xscale;
extra_y = 8.44;
_y = _y + extra_y;
}
}
onClipEvent (enterFrame) {
if (_name != 'guy') {
if (x_speed < 0) {
extra_xscale = -1;
} else {
extra_xscale = 1;
}
if (created < 5) {
created += 1;
}
if (created == 3) {
_yscale = init_yscale * 1.1;
_xscale = init_xscale * 0.9 * extra_xscale;
extra_y = -2.11;
}
if (created == 5) {
_yscale = init_yscale;
_xscale = init_xscale * extra_xscale;
extra_y = 0;
}
}
}
onClipEvent (enterFrame) {
if (_name != 'guy') {
_y = _y - extra_y;
this.tabEnabled = false;
this.onPress = function () {
if (_currentframe == 1) {
startDrag(this, false);
gotoAndStop(2);
}
};
if (_currentframe == 1) {
_y = _y + y_speed;
_x = _x + x_speed;
if (past_currentframe == 2) {
y_speedd = _y - past_y;
x_speedd = _x - past_x;
}
_y = _y + y_speedd;
_x = _x + x_speedd;
y_speedd *= 0.8;
x_speedd *= 0.8;
}
if (_currentframe == 2) {
_rotation = (_rotation + (_x - past_x)) / 2;
}
past_x = _x;
past_y = _y;
past_currentframe = _currentframe;
all_around_border(this, 60, 580, 60, 340);
_y = _y + extra_y;
}
}
onClipEvent (mouseUp) {
if (_name != 'guy') {
stopDrag();
if (_currentframe == 2) {
gotoAndStop(1);
_rotation = 0;
}
}
}
onClipEvent (enterFrame) {
_xscale = _xscale * 1.5;
_yscale = _yscale * 1.5;
all_around_hit(this, _parent._parent.tram);
if (yes_all_around_hit && _currentframe < 3) {
gotoAndPlay(3);
_parent.limit -= 1;
limit += 1;
s_number = _parent._parent.blood.s_number;
bloodyname = 's' + s_number;
initdepth = _parent._parent.blood.blood.getDepth() + s_number;
_parent._parent.blood.blood.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent._parent.blood.s_number += 1;
s_number = _parent._parent.bloood.s_number;
bloodyname = 's' + s_number;
initdepth = _parent._parent.bloood.bloood.getDepth() + s_number;
_parent._parent.bloood.bloood.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y});
_parent._parent.bloood.s_number += 1;
}
_xscale = _xscale / 1.5;
_yscale = _yscale / 1.5;
}
}
}
movieClip 1970 {
}
movieClip 1971 {
instance blood of movieClip 1970 {
onClipEvent (load) {
_parent._parent.score_number += 1;
if (_name != 'blood') {
_parent._parent.splat.start(0, 0);
}
}
}
}
movieClip 1981 {
}
movieClip 1992 {
}
movieClip 1993 {
instance five of movieClip 1981 {
onClipEvent (load) {
init_scale = _xscale;
y_speed = 0;
x_speed = 0;
}
}
instance four of movieClip 1981 {
onClipEvent (load) {
init_scale = _xscale;
y_speed = 0;
x_speed = 0;
}
}
instance three of movieClip 1981 {
onClipEvent (load) {
init_scale = _xscale;
y_speed = 0;
x_speed = 0;
}
}
instance two of movieClip 1981 {
onClipEvent (load) {
init_scale = _xscale;
y_speed = 0;
x_speed = 0;
}
}
instance head of movieClip 1992 {
onClipEvent (load) {
init_scale = _xscale;
rotation = 180;
if (random(2) == 0) {
rotation *= -1;
}
y_speed = 0;
x_speed = 0;
}
onClipEvent (enterFrame) {
_parent.tram_direct(this);
_parent.head_x_array.unshift(_x);
_parent.head_y_array.unshift(_y);
_parent.head_rotation_array.unshift(rotation);
if (random(90) == 0) {
rotation += (random(10) - 5) / 3;
}
all_around_hit(this, _parent._parent.guize);
ccw_hit = yes_all_around_hit;
if (ccw_hit) {
delta_x = _x - 320;
delta_y = _y - 200;
outta_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
deflect_y = _parent.speed * Math.cos(outta_rotation * 0.0174532925199433);
deflect_x = -_parent.speed * Math.sin(outta_rotation * 0.0174532925199433);
delta_x = -(x_speed + deflect_x * (random(3) + 5) / 10);
delta_y = -(y_speed + deflect_y * (random(3) + 5) / 10);
rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
_parent.speed = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2));
_parent.speed *= 0.5;
}
if (rotation > 180) {
rotation -= 360;
}
if (rotation < -180) {
rotation += 360;
}
_parent.speed = (_parent.speed * 15 + _parent.full_speed) / 16;
y_speed = (y_speed * 15 + -_parent.speed * Math.cos(rotation * 0.0174532925199433)) / 16;
x_speed = (x_speed * 15 + _parent.speed * Math.sin(rotation * 0.0174532925199433)) / 16;
_y = _y + y_speed;
_x = _x + x_speed;
}
onClipEvent (enterFrame) {
with (_parent.two) {
_parent.tram_body(_parent.two, _parent.head);
}
with (_parent.three) {
_parent.tram_body(_parent.three, _parent.two);
}
with (_parent.four) {
_parent.tram_body(_parent.four, _parent.three);
}
with (_parent.five) {
_parent.tram_body(_parent.five, _parent.four);
}
}
}
}
movieClip 1994 {
frame 40 {
stop();
_visible = false;
}
}
movieClip 1995 {
}
movieClip 1999 {
}
movieClip 2001 {
instance of movieClip 1218 {
onClipEvent (load) {
parent_x = _parent._x;
parent_y = _parent._y;
_rotation = _rotation + 12 / _parent.seconds;
}
onClipEvent (enterFrame) {
if (go) {
if (wait_til_black >= 30) {
_parent._parent.blackout.end = true;
} else {
wait_til_black += 1;
}
_parent._x = parent_x + random(9) - 4;
_parent._y = parent_y + random(9) - 4;
} else {
_rotation = _rotation + 12 / _parent.seconds;
}
if (last_rotation / _rotation < 0 && _rotation > 0 || _rotation == 0) {
wait_til_black = 0;
go = true;
}
last_rotation = _rotation;
}
}
}
movieClip 2002 {
frame 1 {
splat = new Sound();
splat.attachSound('Level_Bloodsplode');
_global.all_around_hit = function (target, hitter) {
with (target) {
target.yes_all_around_hit = false;
if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) {
target.yes_all_around_hit = true;
}
}
};
_global.all_around_loop2 = function (target, left, wide, top, tall) {
with (target) {
if (_x > left + wide) {
_x -= wide;
}
if (_x < left) {
_x += wide;
}
if (_y > top + tall) {
_y -= tall;
}
if (_y < top) {
_y += tall;
}
}
};
_global.all_around_border = function (target, left, right, top, bottom) {
with (target) {
if (target._x > right) {
target._x = right;
target.x_speed *= -1;
}
if (target._x < left) {
target._x = left;
target.x_speed *= -1;
}
if (target._y > bottom) {
target._y = bottom;
target.y_speed *= -1;
}
if (target._y < top) {
target._y = top;
target.y_speed *= -1;
}
}
};
}
frame 1 {
stop();
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
if (next_level) {
_parent.nextFrame();
}
}
}
frame 2 {
stop();
score_number = -1;
score_number2 = 5;
}
frame 2 {
_root._quality = 'MEDIUM';
}
instance guize of movieClip 1969 {
onClipEvent (load) {
limit = 0;
s_number = 1;
i = 0;
while (i < 5) {
bloodyname = 's' + s_number;
initdepth = guy.getDepth() + s_number;
this.guy.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(520) + 60, '_y': random(280) + 60});
s_number += 1;
limit += 1;
++i;
}
}
onClipEvent (enterFrame) {
if (limit < 30 && random(30) == 0) {
bloodyname = 's' + s_number;
initdepth = guy.getDepth() + s_number;
this.guy.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(520) + 60, '_y': random(280) + 60});
s_number += 1;
limit += 1;
_parent.score_number2 += 1;
}
}
}
instance blood of movieClip 1971 {
onClipEvent (load) {
s_number = 100;
}
onClipEvent (enterFrame) {
_visible = true;
}
}
instance line of movieClip 1257 {
onClipEvent (enterFrame) {
}
}
instance tram of movieClip 1993 {
onClipEvent (load) {
tram_distance = 8;
speed = 0;
full_speed = 10;
tram_direct = function (target) {
with (target) {
frame = 9 - Math.round(rotation / 22.5);
if (frame <= 9) {
_xscale = init_scale;
} else {
_xscale = -init_scale;
frame = 9 + Math.round(rotation / 22.5);
}
gotoAndStop(frame);
swapDepths(_y);
all_around_loop2(target, -80, 800, -80, 560);
}
};
tram_body = function (target, follow) {
with (target) {
follow_teh_x = follow._x;
follow_teh_y = follow._y;
if (_y - follow_teh_y > 280) {
follow_teh_y += 560;
}
if (_x - follow_teh_x > 400) {
follow_teh_x += 800;
}
if (_y - follow_teh_y < -280) {
follow_teh_y -= 560;
}
if (_x - follow_teh_x < -400) {
follow_teh_x -= 800;
}
delta_x = _x - follow_teh_x;
delta_y = _y - follow_teh_y;
target.rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
y_speed = (y_speed * 15 + -_parent.speed * Math.cos(rotation * 0.0174532925199433)) / 16;
x_speed = (x_speed * 15 + _parent.speed * Math.sin(rotation * 0.0174532925199433)) / 16;
_y += y_speed;
_x += x_speed;
keep_in_line = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2)) - 80;
if (keep_in_line > 0) {
_y -= keep_in_line * Math.cos(rotation * 0.0174532925199433);
_x += keep_in_line * Math.sin(rotation * 0.0174532925199433);
}
tram_direct(target);
}
};
}
onClipEvent (load) {
head_x_array = new Array();
head_y_array = new Array();
head_rotation_array = new Array();
}
onClipEvent (load) {
rail_function = function (start_target, end_target) {
start_x = start_target._x;
start_y = start_target._y;
end_x = end_target._x;
end_y = end_target._y;
if (Math.abs(start_x - end_x) < 100 && Math.abs(start_y - end_y) < 100) {
end_x += 20 * Math.sin(end_target.rotation * 0.0174532925199433);
end_y -= 20 * Math.cos(end_target.rotation * 0.0174532925199433);
_parent.line.line.moveTo(start_x, start_y);
_parent.line.line.lineTo(end_x, end_y);
}
};
}
onClipEvent (enterFrame) {
_parent.line.createEmptyMovieClip('line', 1);
_parent.line.line.lineStyle(5, 0, 100);
rail_function(this.head, this.two);
rail_function(this.two, this.three);
rail_function(this.three, this.four);
rail_function(this.four, this.five);
}
}
instance bloood of movieClip 1995 {
onClipEvent (load) {
s_number = 100;
}
}
instance score of movieClip 1999 {
onClipEvent (enterFrame) {
score = Math.round(100 - 100 * _parent.score_number / _parent.score_number2) + '% still alive';
}
}
instance of movieClip 2001 {
onClipEvent (load) {
seconds = 59;
}
}
instance blackout of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (end) {
_visible = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
scoreValue = Math.round(100 - 100 * _parent.score_number / _parent.score_number2);
if (scoreValue * 100 > _global.highscores.utilitarianism) {
_root.alert.newScore = 'morality: ' + scoreValue * 100;
_global.highscores.utilitarianism = scoreValue * 100;
thegame.data.highscores = _global.highscores;
thegame.data.flush();
}
_root.gotoAndStop('end');
}
}
}
}
}
movieClip 2003 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
scale = random(50) + 25;
tellTarget ('thing') {
thing.init_x = _x;
thing.init_y = _y;
thing.radius = 10;
thing.disp_x = random(radius * 2) - radius;
thing.disp_y = random(radius * 2) - radius;
_yscale = scale;
_xscale = scale;
}
}
function cloud_move(thing) {
tellTarget ('thing') {
disp_x += speed / 3;
disp_y += y_speed / 3;
_alpha = 100 - Math.sqrt(disp_x * disp_x + disp_y * disp_y) * 100 / radius;
if (disp_x > radius) {
disp_x = -radius;
}
if (disp_x < -radius) {
disp_x = radius;
}
if (disp_y > radius) {
disp_y = -radius;
}
if (disp_y < -radius) {
disp_y = radius;
}
_x = init_x + disp_x;
_y = init_y + disp_y;
}
}
denominator = 6;
}
frame 2 {
stop();
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
instance of movieClip 821 {
onClipEvent (load) {
_parent.cloud_position(this);
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
onClipEvent (enterFrame) {
_parent.cloud_move(this);
}
}
}
movieClip 2004 {
frame 1 {
var scream = new Sound();
scream.attachSound('Level_ORGASM');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
frame 1 {
stop();
}
instance of movieClip 2003 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 920) {
_x = -280;
}
}
}
instance of movieClip 2003 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -430) {
_x = 1060;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 16;
this.jumping_frame = 17;
this.squatting_frame = 18;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 2007 {
}
movieClip 2009 {
}
movieClip 2011 {
}
movieClip 2015 {
}
movieClip 2020 {
}
movieClip 2022 {
}
movieClip 2023 {
}
movieClip 2026 {
}
movieClip 2047 {
}
movieClip 2080 {
}
movieClip 2081 {
instance draww of movieClip 2080 {
onClipEvent (load) {
if (_name == 'draww') {
gotoAndStop(4);
} else {
gotoAndStop(random(3) + 1);
}
}
}
}
button 2083 {
on (press) {
draw_now = true;
}
on (release) {
draw_now = false;
}
}
movieClip 2085 {
frame 1 {
stop();
}
frame 4 {
stop();
}
frame 7 {
gotoAndStop(1);
}
}
movieClip 2093 {
frame 1 {
stop();
}
frame 130 {
stop();
_parent.panic = true;
}
}
movieClip 2100 {
}
movieClip 2108 {
frame 5 {
stop();
}
}
movieClip 2110 {
}
movieClip 2114 {
frame 1 {
stop();
}
frame 70 {
_parent.cursor.gotoAndStop(4);
}
frame 140 {
stop();
_parent.panic = true;
}
}
movieClip 2116 {
}
movieClip 2119 {
}
movieClip 2124 {
frame 20 {
stop();
}
}
movieClip 2125 {
instance of movieClip 1257 {
onClipEvent (load) {
_parent.x_diff = 0;
_parent.y_diff = 0;
_parent.inity = _parent._y;
_parent.initx = _parent._x;
ovah = true;
_parent.scalee = _parent._xscale;
_parent.boing_n = 0;
}
onClipEvent (enterFrame) {
with (_parent) {
if (_currentframe < 3) {
if (boing_n % 2 == 0) {
if (Math.abs(scalee - _xscale) > 5) {
_yscale = scalee + (scalee - _xscale) * 0.6;
_xscale = _yscale;
} else {
_yscale = scalee;
_xscale = _yscale;
}
}
boing_n += 1;
boing_n %= 2;
if (_parent.cursor._currentframe == 2) {
ovah = true;
}
if (!ovah || _parent.cursor._currentframe == 5 && this.hitTest(_parent.cursor)) {
if (_parent._ymouse > inity) {
ovah = true;
} else {
x_diff = _parent._xmouse - _x;
y_diff = _parent._ymouse - _y;
_x = _parent._xmouse;
_y = _parent._ymouse;
ovah = false;
}
} else {
if (ovah) {
_x += x_diff;
_y += y_diff;
if (_y >= inity) {
_y = inity;
y_diff *= -0.5;
x_diff *= 0.8;
if (Math.abs(y_diff) < 2) {
y_diff = 0;
}
} else {
y_diff += 1;
}
if (_x < -200) {
_x = -200;
x_diff *= -0.8;
}
if (_x > 200) {
_x = 200;
x_diff *= -0.8;
}
if (this.hitTest(_parent.knap)) {
if (_currentframe == 1 && _parent.knap.a) {
_parent.score += 7;
_parent.money += 8;
}
if (_currentframe == 2 && _parent.knap.b) {
_parent.score += 4;
_parent.money += 3;
}
if (_currentframe == 1 && _parent.knap.a || _currentframe == 2 && _parent.knap.b) {
gotoAndStop(_currentframe + 2);
count_n = 0;
_parent.knap._xscale = 115;
_parent.knap._yscale = 80;
}
}
}
}
} else {
if (count_n < 30) {
count_n += 1;
} else {
gotoAndStop(_currentframe - 2);
_x = initx;
_y = inity;
_yscale = scalee * 0.5;
_xscale = _yscale;
x_diff = 0;
y_diff = 0;
}
}
}
}
}
}
movieClip 2127 {
}
movieClip 2129 {
frame 1 {
stop();
}
instance draww of movieClip 2081 {
onClipEvent (load) {
draw_number = 100;
}
}
instance of movieClip 2085 {
onClipEvent (load) {
startDrag(this, true, -230, -150, 230, 150);
}
onClipEvent (enterFrame) {
if (draw_now) {
if (Math.abs(_x) < 40 && Math.abs(_y) < 40) {
doom = true;
}
if (_currentframe < 4) {
play();
}
speed = Math.round(Math.sqrt(Math.pow(last_x - _x, 2) + Math.pow(last_y - _y, 2))) + 1;
i = 0;
while (i < speed) {
gooname = 'draw' + _parent.draww.draw_number;
initdepth = _parent.draww.draww.getDepth() + _parent.draww.draw_number;
middle_x = (_x * i + last_x * (speed - i)) / speed;
middle_y = (_y * i + last_y * (speed - i)) / speed;
_parent.draww.draww.duplicateMovieClip(gooname, initdepth, {'_x': middle_x, '_y': middle_y});
_parent.draww.draw_number += 1;
i += 5;
}
} else {
if (doom && _parent.doom._currentframe == 1) {
_parent.doom.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (_currentframe >= 4) {
play();
}
}
onClipEvent (enterFrame) {
x_cept = (_x - _y) / 2;
y_cept = (_y - _x) / 2;
distance = Math.sqrt(Math.pow(x_cept - _x, 2) + Math.pow(y_cept - _y, 2));
if (_y > -_x) {
_rotation = -distance / 3;
} else {
_rotation = distance / 3;
}
}
onClipEvent (enterFrame) {
startDrag(this, true);
last_x = _x;
last_y = _y;
}
}
instance of movieClip 2100 {
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(40) && _currentframe < 174) {
nextFrame();
nextFrame();
nextFrame();
nextFrame();
if (_currentframe > 174) {
gotoAndPlay(174);
}
}
play();
if (n == 3) {
_parent.panic = true;
}
if (_currentframe == 174) {
n += 1;
}
}
}
instance of movieClip 2110 {
onClipEvent (load) {
gotoAndStop(1);
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
onClipEvent (enterFrame) {
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
}
instance of movieClip 1257 {
onClipEvent (enterFrame) {
if (Math.abs(_parent.piece._x - _x) < 10 && Math.abs(_parent.piece._y - _y) < 10 && _parent.doom._currentframe == 1) {
_parent.doom.gotoAndPlay(2);
}
}
}
instance of movieClip 1257 {
onClipEvent (enterFrame) {
if (Math.abs(_parent.piece._x - _x) < 10 && Math.abs(_parent.piece._y - _y) < 10 && _parent.doom._currentframe == 1) {
_parent.doom.gotoAndPlay(2);
}
}
}
instance cursor of movieClip 2110 {
onClipEvent (load) {
gotoAndStop(2);
move_x = 0;
move_y = 0;
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
onClipEvent (enterFrame) {
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
onClipEvent (mouseDown) {
if (_currentframe == 2) {
if (this.hitTest(_parent.piece) && _parent.doom._currentframe == 1) {
gotoAndStop(3);
_parent.piece._visible = false;
} else {
gotoAndStop(5);
}
}
}
onClipEvent (mouseUp) {
if (_currentframe == 3) {
gotoAndStop(2);
_parent.piece._visible = true;
_parent.piece._x = _x;
_parent.piece._y = _y + 10;
} else {
if (_currentframe == 5) {
gotoAndStop(2);
}
}
}
}
instance knap of movieClip 2119 {
onClipEvent (load) {
a = true;
b = true;
}
onClipEvent (enterFrame) {
_xscale = (_xscale + 100) / 2;
_yscale = (_yscale + 100) / 2;
if (17 - _parent.score < 7) {
a = false;
}
if (17 - _parent.score < 4) {
b = false;
}
}
}
instance a of movieClip 2125 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance b of movieClip 2125 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 2127 {
onClipEvent (load) {
initx = _x;
inity = _y;
}
onClipEvent (enterFrame) {
_x = initx + (random(7) - 3) / 3;
_y = inity + (random(7) - 3) / 3;
all_around_hit(this, _parent.a);
if (_parent._parent.death._currentframe == 1) {
if (this.hitTest(_parent.a) || this.hitTest(_parent.b)) {
_parent._parent.death.gotoAndPlay(2);
}
if (this.hitTest(_parent.cursor) && _parent.cursor._currentframe == 5) {
_parent._parent.death.gotoAndPlay(2);
}
}
}
}
instance cursor of movieClip 2110 {
onClipEvent (load) {
gotoAndStop(2);
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
onClipEvent (enterFrame) {
_x = _parent._xmouse;
_y = _parent._ymouse;
all_around_border(this, -230, 230, -150, 150);
}
onClipEvent (mouseDown) {
gotoAndStop(5);
}
onClipEvent (mouseUp) {
gotoAndStop(2);
}
}
}
movieClip 2136 {
frame 1 {
stop();
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
frame 30 {
douche = true;
stop();
}
}
movieClip 2142 {
frame 1 {
stop();
}
frame 9 {
_parent.nextFrame();
}
}
movieClip 2144 {
instance of movieClip 2047 {
onClipEvent (enterFrame) {
_alpha = random(10) + 10;
}
}
frame 55 {
stop();
_parent.pathe.nextFrame();
}
instance of movieClip 2129 {
onClipEvent (load) {
gotoAndStop(_parent.game_frame);
panic = false;
mov = 1;
initx = _x;
inity = _y;
score = 0;
money = 0;
}
onClipEvent (enterFrame) {
if (panic) {
mov *= -1.1;
_y = inity + mov;
_x = initx + random(Math.abs(mov)) - Math.abs(mov) / 2;
if (mov > 20 && _parent.fire._currentframe == 1) {
_parent.fire.gotoAndPlay(2);
}
}
if (_currentframe == 4) {
_parent.score.text = score;
_parent.money.text = money;
}
}
}
instance fire of movieClip 2136 {
onClipEvent (load) {
inity = _parent._y;
y_speed = 0;
grav = 4;
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_yscale = _yscale * 1.02;
_xscale = _yscale * 1.02;
if (douche) {
Mouse.show();
_parent._y -= y_speed;
y_speed += grav;
if (_parent._y < -200) {
_parent._parent.nextFrame();
}
}
}
}
}
instance of movieClip 1257 {
onClipEvent (enterFrame) {
if (_parent._xmouse > -230 && _parent._xmouse < 230 && _parent._ymouse > -150 && _parent._ymouse < 150) {
Mouse.hide();
} else {
Mouse.show();
}
}
}
frame 56 {
_parent.nextFrame();
Mouse.show();
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1213 {
onClipEvent (load) {
gotoAndPlay(random(14));
}
}
instance of movieClip 1361 {
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
}
}
}
movieClip 2145 {
frame 1 {
stop();
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 2015 {
onClipEvent (load) {
gotoAndPlay(random(30));
}
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 2015 {
onClipEvent (load) {
gotoAndPlay(random(30));
}
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance pathe of movieClip 2020 {
onClipEvent (load) {
stop();
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 13;
this.jumping_frame = 14;
this.squatting_frame = 15;
stopittheren = 0;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it && stop_it_there) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
if (Key.isDown(38) && y_speed < 0) {
}
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (this._x > _parent.next_wall._x) {
stop_it_there = false;
} else {
stop_it_there = true;
}
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37) && stop_it_there) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39) && stop_it_there) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40) && stop_it_there) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
if (hit_ground && !stop_it_there) {
this.gotoAndStop(1);
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
if (!stop_it_there) {
if (stopittheren == 20) {
_parent.nextFrame();
stopittheren = 21;
} else {
if (stopittheren < 20) {
stopittheren += 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_x > 460) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_root._quality = 'LOW';
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
if (shake_decay < 0.3) {
_root._quality = 'HIGH';
_root.gotoAndStop('end');
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_x < 145) {
_x = 145;
x_speed = 0;
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
instance of movieClip 2144 {
onClipEvent (load) {
game_frame = 1;
}
}
frame 3 {
player.stopittheren = 0;
}
instance of movieClip 2144 {
onClipEvent (load) {
game_frame = 2;
}
}
frame 5 {
player.stopittheren = 0;
}
instance of movieClip 2144 {
onClipEvent (load) {
game_frame = 3;
}
}
frame 7 {
player.stopittheren = 0;
}
instance of movieClip 2144 {
onClipEvent (load) {
game_frame = 4;
}
}
frame 9 {
player.stopittheren = 0;
}
}
movieClip 2150 {
}
movieClip 2152 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 61;
this.jumping_frame = 62;
this.squatting_frame = 63;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
instance player2 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 64;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player._y > _y + 10 && !FOREVERDRIVE) {
FOREVERDRIVE = true;
if (_parent.player._x > _x) {
ForeverLeft = true;
left_is_pressed = false;
right_is_pressed = true;
} else {
ForeverRight = true;
right_is_pressed = false;
left_is_pressed = true;
}
} else {
if (ForeverLeft) {
left_is_pressed = false;
right_is_pressed = true;
} else {
if (ForeverRight) {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player3 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 69;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player2._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player2._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player2._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player2._y > _y + 10) {
if (_parent.player2._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player4 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 70;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player3._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player3._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player3._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player3._y > _y + 10) {
if (_parent.player3._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow4._x = _x;
_parent.player_shadow4._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow4._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player5 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 67;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player4._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player4._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player4._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player4._y > _y + 10) {
if (_parent.player4._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow5._x = _x;
_parent.player_shadow5._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow5._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player6 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 68;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player5._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player5._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player5._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player5._y > _y + 10) {
if (_parent.player5._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow6._x = _x;
_parent.player_shadow6._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow6._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player7 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 66;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player6._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player6._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player6._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player6._y > _y + 10) {
if (_parent.player6._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow7._x = _x;
_parent.player_shadow7._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow7._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player8 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 65;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player7._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player7._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player7._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player7._y > _y + 10) {
if (_parent.player7._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow8._x = _x;
_parent.player_shadow8._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow8._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player9 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 72;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player8._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player8._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player8._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player8._y > _y + 10) {
if (_parent.player8._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow9._x = _x;
_parent.player_shadow9._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow9._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
instance player10 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 71;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player9._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player9._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player9._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player9._y > _y + 10) {
if (_parent.player9._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
if (_x < 110) {
_x = 110;
}
if (_x > 530) {
_x = 530;
}
if (_parent.player9._y > _y + 10) {
left_is_pressed = false;
right_is_pressed = false;
if (_currentframe == 1) {
endAll = true;
}
}
if (endAll) {
if (!godwhatthefuck) {
godwhatthefuck = true;
countDOOM = 80;
} else {
countDOOM -= 1;
if (countDOOM <= 0) {
_root.gotoAndStop('CUTSCENE_HAMLET');
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow10._x = _x;
_parent.player_shadow10._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow10._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
}
movieClip 2154 {
}
movieClip 2155 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('QuittinPalin');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 49;
this.jumping_frame = 50;
this.squatting_frame = 51;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
_parent.rage._visible = true;
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.002) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance rage of movieClip 2154 {
onClipEvent (load) {
_visible = false;
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 2158 {
}
movieClip 2159 {
instance walls of movieClip 827 {
onClipEvent (load) {
_visible = false;
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 10;
this.jumping_frame = 11;
this.squatting_frame = 12;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
if (Key.isDown(38) && y_speed < 0) {
}
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
movieClip 2162 {
}
movieClip 2164 {
}
movieClip 2166 {
}
movieClip 2168 {
}
movieClip 2169 {
frame 1 {
function cloud_position(thing) {
rotation = random(360);
distance = random(150);
scale = random(50) + 25;
with (thing) {
_y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433);
_x = distance * Math.sin(rotation * 0.0174532925199433);
_yscale = scale;
_xscale = _yscale;
}
}
function cloud_move(thing) {
with (thing) {
edge = 150 * Math.sqrt(1 - _y * _y / 3600);
y_edge = 60 * Math.sqrt(1 - _x * _x / 22500);
_x += speed;
_y += y_speed;
_alpha = edge - Math.abs(_x);
second_alpha = (y_edge - Math.abs(_y)) / 0.4;
if (_alpha > second_alpha) {
_alpha = second_alpha;
}
if (_alpha <= 0) {
_x = -edge;
_y = -y_edge;
speed = (random(5) + 1) / _parent.denominator;
y_speed = (random(5) + 1) / _parent.denominator * 2;
}
}
}
denominator = 6;
}
frame 2 {
stop();
}
instance of movieClip 2162 {
onClipEvent (load) {
speed = random(10) + 1;
if (random(2)) {
speed *= -1;
}
}
onClipEvent (enterFrame) {
_rotation = _rotation + speed;
}
}
instance of movieClip 2164 {
onClipEvent (load) {
speed = random(10) + 1;
if (random(2)) {
speed *= -1;
}
}
onClipEvent (enterFrame) {
_rotation = _rotation + speed;
}
}
instance of movieClip 2166 {
onClipEvent (load) {
speed = random(10) + 1;
if (random(2)) {
speed *= -1;
}
}
onClipEvent (enterFrame) {
_rotation = _rotation + speed;
}
}
instance of movieClip 2168 {
onClipEvent (load) {
speed = random(10) + 1;
if (random(2)) {
speed *= -1;
}
n = 0;
}
onClipEvent (enterFrame) {
_rotation = 50 * Math.sin(n);
n += speed / 30;
}
}
}
movieClip 2171 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 2169 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 2169 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
movieClip 2174 {
}
movieClip 2176 {
}
movieClip 2177 {
instance s of movieClip 2176 {
onClipEvent (load) {
if (_name == 's') {
s_number = 1;
rotation = -135;
scale = _xscale;
n = 0;
while (n < 50) {
bloodyname = 's' + s_number;
initdepth = this.getDepth() + s_number;
this.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(750) - 25, '_y': random(400) - 25, 'scale': scale + (random(20) - 10) / scale, 'rotation': rotation + random(20) - 10});
s_number += 1;
n += 1;
}
} else {
_rotation = random(360);
_yscale = scale;
_xscale = scale;
start_waver = random(314) / 50;
waver = random(10) / 100;
speed = scale / 3;
rotate = random(20) - 10;
}
}
onClipEvent (enterFrame) {
if (_name != 's') {
frotation = rotation + Math.sin(start_waver);
start_waver += waver;
_y = _y - speed * Math.cos(frotation * 0.0174532925199433);
_x = _x + speed * Math.sin(frotation * 0.0174532925199433);
_rotation = _rotation + rotate;
if (_y > 455) {
_y = -25;
}
if (_y < -25) {
_y = 455;
}
if (_x > 705) {
_x = -25;
}
if (_x < -25) {
_x = 705;
}
}
}
}
}
movieClip 2178 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player5 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 28;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player4._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player4._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player4._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player4._y > _y + 10) {
if (_parent.player4._x > _x) {
left_is_pressed = false;
right_is_pressed = true;
} else {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow5._x = _x;
_parent.player_shadow5._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow5._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
}
}
instance player4 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 25;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
down_is_pressed = false;
if (_parent.player._y < _y - 40) {
} else {
up_is_pressed = false;
}
if (_parent.player._x < _x - 50) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_parent.player._y > _y + 10 && !FOREVERDRIVE) {
FOREVERDRIVE = true;
if (_parent.player._x > _x) {
ForeverLeft = true;
left_is_pressed = false;
right_is_pressed = true;
} else {
ForeverRight = true;
right_is_pressed = false;
left_is_pressed = true;
}
} else {
if (ForeverLeft) {
left_is_pressed = false;
right_is_pressed = true;
} else {
if (ForeverRight) {
right_is_pressed = false;
left_is_pressed = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (down_is_pressed) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (down_is_pressed) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow4._x = _x;
_parent.player_shadow4._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow4._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
}
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 22;
this.jumping_frame = 23;
this.squatting_frame = 24;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.05) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
if (!iDiedForSure) {
iDiedForSure = true;
--_parent.deathCount;
}
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
}
instance of movieClip 2178 {
onClipEvent (load) {
deathCount = 3;
}
onClipEvent (enterFrame) {
if (deathCount == 0) {
_root.gotoAndStop('end');
}
}
}
movieClip 2186 {
}
movieClip 2302 {
}
movieClip 2392 {
}
movieClip 2576 {
}
movieClip 2723 {
}
button 2744 {
on (press) {
_root.alert.newUnlock = 'piece of cake';
_global.unlockables.cake = true;
thegame.data.unlockables = _global.unlockables;
thegame.data.flush();
}
}
movieClip 2971 {
frame 2615 {
_root.gotoAndStop('end');
}
}
movieClip 2973 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance walls of movieClip 827 {
onClipEvent (load) {
_visible = false;
}
}
instance player3 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 89;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player4 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 88;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow4._x = _x;
_parent.player_shadow4._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow4._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player2 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 535 && _x > 105 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 87;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 176 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 84;
this.jumping_frame = 85;
this.squatting_frame = 86;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
}
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
}
movieClip 2974 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 1;
this.jumping_frame = 2;
this.squatting_frame = 3;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance player2 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 58;
this.jumping_frame = 59;
this.squatting_frame = 60;
up_is_pressed = false;
left_is_pressed = false;
right_is_pressed = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_is_pressed && !right_is_pressed) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
if (_parent.player._y < _y - 40) {
up_is_pressed = true;
} else {
up_is_pressed = false;
}
if (_parent.player._x < _x - 40) {
left_is_pressed = true;
} else {
left_is_pressed = false;
}
if (_parent.player._x > _x + 40) {
right_is_pressed = true;
} else {
right_is_pressed = false;
}
if (_x < 185) {
_x = 185;
}
if (_x > 455) {
_x = 455;
}
if (_parent.player._y > _y + 10) {
left_is_pressed = false;
right_is_pressed = false;
if (_currentframe == 1) {
endAll = true;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
hittyTest();
if (up_is_pressed && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (!fall_off_edge) {
if (left_is_pressed && right_is_pressed) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (left_is_pressed) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (right_is_pressed) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!left_is_pressed && !right_is_pressed) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
}
onClipEvent (enterFrame) {
if (!endAll) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
}
}
movieClip 2976 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 31;
this.jumping_frame = 32;
this.squatting_frame = 33;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_root.gotoAndStop('end');
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance music of movieClip 371 {
onClipEvent (load) {
gotoAndPlay(735);
}
}
}
movieClip 2977 {
instance money of movieClip 1630 {
onClipEvent (load) {
if (_name != 'money') {
back_and_forth = random(63) / 10;
deviant = random(5) - 2;
grav = 1.5 + random(10) / 10;
movement = 0.05 + random(10) / 100;
_y = _y + grav;
_x = _x + Math.sin(back_and_forth);
back_and_forth += movement;
_x = _x + deviant / 2;
_rotation = 45 * Math.cos(back_and_forth);
}
}
onClipEvent (enterFrame) {
if (_visible && _currentframe == 1) {
if (_name != 'money') {
_y = _y + grav;
_x = _x + Math.sin(back_and_forth);
back_and_forth += movement;
_x = _x + deviant / 2;
_rotation = 45 * Math.cos(back_and_forth);
}
if (_y >= 279) {
if (_x > 175 && 465 > _x) {
grav = 0;
movement *= 0.8;
deviant *= 0.8;
_alpha = _alpha - 2;
_x = _x - Math.sin(back_and_forth);
}
}
if (_alpha <= 0 || _y > 420) {
_visible = false;
gotoAndStop(3);
}
all_around_hit(this, _parent._parent.player);
if (yes_all_around_hit) {
gotoAndStop(2);
_parent._parent.score_number += 1;
}
}
}
}
}
movieClip 2980 {
}
movieClip 2991 {
frame 30 {
score = '$' + _parent.score_number * 1000;
}
frame 141 {
bonus = '$' + _parent.score_number;
}
frame 280 {
total = '$' + _parent.score_number * 1001;
i;
}
frame 281 {
if (_parent.score_number * 1001 > _global.highscores.aig) {
_root.alert.newScore = 'aig bonuses: ' + _parent.score_number * 1001;
_global.highscores.aig = _parent.score_number * 1001;
thegame.data.highscores = _global.highscores;
thegame.data.flush();
}
}
frame 310 {
stop();
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
if (next_level) {
_root.gotoAndStop('end');
}
}
}
}
movieClip 2992 {
frame 1 {
stop();
score_number = 0;
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
var ring = new Sound(sfx4);
ring.attachSound('Level_Loud_Step');
ring.setVolume(150);
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x + 1.4;
if (_x > 820) {
_x = -180;
}
}
}
instance of movieClip 822 {
onClipEvent (enterFrame) {
_x = _x - 2;
if (_x < -230) {
_x = 860;
}
}
}
instance player of movieClip 1293 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 7;
this.jumping_frame = 8;
this.squatting_frame = 9;
wait_til_black = 0;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
if (Key.isDown(38) && y_speed < 0) {
}
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping && (_currentframe == 1 || _currentframe == 2)) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
if (wait_til_black >= 30) {
_parent.blackout.end = true;
} else {
wait_til_black += 1;
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
instance money of movieClip 2977 {
onClipEvent (load) {
s_number = 100;
n = 0;
}
onClipEvent (enterFrame) {
if (n % 6 == 0) {
bloodyname = 'money' + s_number;
initdepth = money.getDepth() + s_number;
money.duplicateMovieClip(bloodyname, initdepth, {'_x': 175 + random(290)});
s_number += 1;
n = 0;
}
n += 1;
}
}
instance score of movieClip 2980 {
onClipEvent (enterFrame) {
score = '$' + _parent.score_number * 1000;
}
onClipEvent (load) {
myText.embedFonts = true;
}
}
instance of movieClip 2001 {
onClipEvent (load) {
seconds = 29;
}
}
instance blackout of movieClip 1361 {
onClipEvent (load) {
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (end) {
_visible = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_parent.gotoAndStop(2);
}
}
}
}
}
movieClip 2999 {
frame 1 {
stop();
}
frame 1 {
var scream = new Sound();
scream.attachSound('Level_Scream');
var crunch = new Sound();
crunch.attachSound('Level_Crunch');
var soft_step = new Sound(sfx1);
soft_step.attachSound('Level_Step');
var softer_step = new Sound(sfx2);
softer_step.attachSound('Level_Step');
softer_step.setVolume(50);
var loud_step = new Sound(sfx3);
loud_step.attachSound('Level_Loud_Step');
loud_step.setVolume(150);
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
_x = _parent.quatchi_x;
this.standing_frame = 90;
this.jumping_frame = 91;
this.squatting_frame = 92;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_parent.nextFrame();
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
frame 2 {
play();
}
frame 10 {
stop();
}
instance player3 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
_x = _parent.quatchi_x;
this.standing_frame = 37;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
_x = _parent.sumi_x;
this.standing_frame = 34;
this.jumping_frame = 35;
this.squatting_frame = 36;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_parent.nextFrame();
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
frame 11 {
play();
}
frame 20 {
stop();
}
instance player3 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 42;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow3._x = _x;
_parent.player_shadow3._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow3._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player2 of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 41;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (!left_key_down && !right_key_down) {
if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) {
this.gotoAndStop(1);
}
}
}
RANDOM_WAIT = 120;
if (random(RANDOM_WAIT) == 0) {
left_key_down = true;
}
if (random(RANDOM_WAIT) == 0) {
right_key_down = true;
}
if (random(RANDOM_WAIT) < 10) {
left_key_down = false;
right_key_down = false;
}
if (_x < 240) {
left_key_down = false;
}
if (_x > 400) {
right_key_down = false;
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (left_key_down && right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
} else {
if (left_key_down) {
flip = -1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed -= walking_speed;
} else {
x_speed -= walking_speed;
}
}
if (right_key_down) {
flip = 1;
if (hit_ground) {
this.gotoAndStop(2);
x_speed += walking_speed;
} else {
x_speed += walking_speed;
}
}
if (!left_key_down && !right_key_down) {
if (hit_ground) {
this.gotoAndStop(1);
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow2._x = _x;
_parent.player_shadow2._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow2._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
}
}
}
}
}
}
instance player of movieClip 1916 {
onClipEvent (load) {
function hittyTest() {
_yscale = 5;
_xscale = 5;
if (_x < 463 && _x > 175 && _y < 285 && _y > 280) {
it_hit_it = true;
} else {
it_hit_it = false;
}
_yscale = scale;
_xscale = scale;
}
function up_ground() {
hit_ground = false;
hittyTest();
if (it_hit_it) {
_yscale = 5;
_xscale = 5;
i = 0;
while (i < 10) {
hittyTest();
if (!it_hit_it) {
i = 10;
} else {
_y = _y - 1;
}
++i;
}
_y = _y + 1;
hit_ground = true;
y_speed = 0;
}
_yscale = scale;
_xscale = scale;
}
anim_stand.gotoAndStop(5);
x_speed = 0;
y_speed = 0;
scale = _xscale;
walking_speed = 0.8;
grav = 2;
this.standing_frame = 38;
this.jumping_frame = 39;
this.squatting_frame = 40;
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
hittyTest();
if (Key.isDown(38) && it_hit_it) {
y_speed = -20;
jumping = true;
hit_ground = false;
this.gotoAndStop(3);
}
y_speed += grav;
_y = _y + y_speed;
up_ground();
hittyTest();
if (jumping) {
if (!it_hit_it) {
_rotation = -(y_speed * x_speed) / 5;
} else {
_rotation = 0;
jumping = false;
_parent.dust._x = _x;
_parent.dust.gotoAndPlay(1);
_parent.loud_step.start(0, 0);
}
}
}
}
onClipEvent (enterFrame) {
if (!fall_off_edge) {
if (Key.isDown(37) && Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
} else {
if (Key.isDown(37)) {
flip = -1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed -= walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed -= walking_speed;
}
} else {
x_speed -= walking_speed;
}
}
if (Key.isDown(39)) {
flip = 1;
if (hit_ground) {
if (Key.isDown(40)) {
this.gotoAndStop(5);
x_speed += walking_speed / 2;
} else {
this.gotoAndStop(2);
x_speed += walking_speed;
}
} else {
x_speed += walking_speed;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
if (hit_ground) {
if (Key.isDown(40)) {
if (_currentframe == 5) {
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
} else {
this.gotoAndStop(4);
}
} else {
this.gotoAndStop(1);
}
}
}
}
_x = _x + x_speed;
x_speed *= 0.8;
_xscale = _xscale * flip;
}
}
onClipEvent (enterFrame) {
if (fall_off_edge) {
y_speed += grav;
_y = _y + y_speed;
_x = _x + x_speed;
_rotation = _rotation + x_speed;
}
if (!fall_off_edge && !hit_ground && !jumping) {
if (_currentframe == 1 || _currentframe == 2) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(1);
} else {
if (_currentframe == 4 || _currentframe == 5) {
fall_off_edge = true;
y_speed = -10;
this.gotoAndStop(4);
anim_duck.gotoAndStop(6);
}
}
}
_parent.player_shadow._x = _x;
_parent.player_shadow._alpha = _y - 133.3;
if (_y > 300) {
_parent.player_shadow._alpha = 0;
if (!past_screen) {
past_screen = true;
_parent.scream.start(0, 0);
} else {
if (_y > 700) {
if (!past_death) {
past_death = true;
shake_decay = 1;
_parent.crunch.start(0, 0);
} else {
if (shake_decay > 0.01) {
shake_rotate = random(40) - 20;
shake_y = random(40) - 20;
shake_x = random(40) - 20;
_parent.camera._rotation = shake_rotate * shake_decay;
_parent.camera._y = 200 + shake_y * shake_decay;
_parent.camera._x = 320 + shake_x * shake_decay;
shake_decay *= 0.8;
} else {
_parent.nextFrame();
}
}
}
}
}
}
}
instance dust of movieClip 839 {
onClipEvent (load) {
gotoAndStop(20);
}
onClipEvent (enterFrame) {
if (_currentframe < 20) {
play();
}
}
}
frame 21 {
play();
}
frame 70 {
_root.gotoAndStop('end');
}